/* TONON OT — dark fantasy presentation layer.
   Customize these tokens; existing MyAAC form and route contracts stay intact. */
body.tonon-theme {
  --reign-bg: #0b0b10;
  --reign-surface: #13131c;
  --reign-raised: #191922;
  --reign-text: #eeedf1;
  --reign-muted: #b3b1be;
  --reign-gold: #dbb575;
  --reign-gold-light: #f4d49b;
  --reign-line: #ffffff13;
  --reign-space: clamp(20px, 3vw, 40px);
  --reign-radius: 10px;
  --tonon-bg: var(--reign-bg);
  --tonon-surface: var(--reign-surface);
  --tonon-text: var(--reign-text);
  --tonon-muted: var(--reign-muted);
  --tonon-gold: var(--reign-gold);
  --tonon-gold-bright: var(--reign-gold-light);
  background-color: var(--reign-bg);
  background-image: linear-gradient(90deg,#080d17b8,#0b101ba3 48%,#0b0c15ab),linear-gradient(180deg,#080d1720,#0b0b10a8 90%),url('../images/tononot/nightwatch-desktop.webp');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--reign-text);
}
.tonon-theme *, .tonon-theme *::before, .tonon-theme *::after { box-sizing: border-box; }
.tonon-theme :is(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--reign-gold-light); outline-offset: 5px; }
.tonon-theme [hidden] { display: none !important; }
.reign-atmosphere { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.reign-atmosphere::before { content: ''; position: absolute; inset: -10%; background: radial-gradient(ellipse at 0 30%,#2486c51e,transparent 45%),radial-gradient(ellipse at 100% 65%,#eaa24a20,transparent 45%); animation: reign-breath 18s ease-in-out infinite alternate; }
.reign-atmosphere::after { content: ''; position: absolute; width: 3px; height: 3px; left: 12%; top: 85%; border-radius: 50%; background: #ffd491; box-shadow: 14vw -30vh 1px #e8ac6966,36vw -52vh 0 #ffca8b88,59vw -14vh 1px #ffb25a88,76vw -61vh 0 #edbb8077,83vw -32vh 1px #ffd79a55; opacity: .45; animation: reign-embers 26s linear infinite; }
.tonon-theme .tonon-page, .tonon-theme .tonon-footer { position: relative; z-index: 1; }
@keyframes reign-breath { from { opacity: .45; transform: scale(1); } to { opacity: .9; transform: scale(1.06); } }
@keyframes reign-embers { from { transform: translateY(5vh); opacity: 0; } 20%,75% { opacity: .5; } to { transform: translate(3vw,-42vh); opacity: 0; } }
.tonon-theme .tonon-shell { width: min(1280px, calc(100% - 64px)); }
.tonon-theme .tonon-header { position: sticky; top: 0; z-index: 100; background: linear-gradient(90deg,#101724f2,#14121ef5 60%,#251c1af2); border-bottom: 1px solid #d8b67650; box-shadow: 0 10px 35px #0004,0 1px 16px #d5a4510d; backdrop-filter: blur(16px); }
.tonon-theme .tonon-header-inner { min-height: 80px; padding: 8px 0; justify-content: space-between; gap: 30px; }
.tonon-theme .tonon-header-inner::before, .tonon-theme .tonon-header-inner::after { display: none; }
.tonon-theme .tonon-header .tonon-wordmark { width: 160px; height: auto; filter: none; }
.tonon-theme .tonon-brand { flex-shrink: 0; }
.tonon-theme .tonon-brand-caption { display: none; }
.reign-topnav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; }
.reign-topnav a, .reign-login { color: #c7c3cf; font-size: 13px; text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.reign-topnav a:hover, .reign-topnav a[aria-current] { color: var(--reign-gold-light); }
.reign-topnav a[aria-current] { position: relative; }
.reign-topnav a[aria-current]::after { content: ''; position: absolute; height: 2px; bottom: -27px; inset-inline: 0; background: var(--reign-gold); }
.reign-login { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border: 1px solid #d8b67640; border-radius: 6px; }
.reign-login:hover { background: #dbb57512; border-color: var(--reign-gold); color: var(--reign-gold-light); }
.tonon-theme.tonon-home .tonon-reference-layout { display: block; padding-top: 0; }
.tonon-home .tonon-reference-layout > .tonon-right-sidebar, .tonon-home .tonon-reference-layout > .tonon-left-sidebar { display: none; }
.tonon-home .tonon-quickbar { display: none; }
.tonon-theme .tonon-reference-layout { padding-top: 32px; }
.tonon-theme.tonon-home .tonon-center-column { container-type: normal; }
.reign-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 640px; padding: 80px 48px 112px; }
.reign-hero-art { position: absolute; inset: 0 calc((1280px - 100vw) / 2); z-index: -2; overflow: hidden; }
.reign-hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.reign-hero::before { content: ''; position: absolute; z-index: -1; inset: 0 calc((1280px - 100vw) / 2); background: linear-gradient(90deg,#0b0b10ed 0%,#0b0b10af 38%,#0b0b1030 74%),linear-gradient(0deg,#0b0b10 0%,transparent 40%,#0b0b101a); }
.reign-hero-copy { max-width: 650px; }
.reign-kicker { margin: 0 0 18px; color: var(--reign-gold); font: 600 10px/1.6 var(--tonon-body,system-ui); letter-spacing: .2em; }
.reign-diamond { margin-right: 10px; font-size: 10px; }
.reign-hero h1 { margin: 0; color: #f6f0e5; font: 400 clamp(38px,4.4vw,64px)/1.12 var(--tonon-heading,Georgia); letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 3px 18px #0006; }
.reign-hero h1 em { color: var(--reign-gold-light); font-style: normal; }
.reign-lead { max-width: 440px; margin: 24px 0 30px; color: #c7c4cd; font-size: 15px; line-height: 1.9; }
.reign-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.reign-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 52px; padding: 14px 26px; border: 1px solid #e2bd7c; border-radius: 5px; background: linear-gradient(135deg,#ebcc93,#c89b59); box-shadow: 0 5px 22px #c29a4520; color: #21190d; font: 700 13px/1.4 var(--tonon-body,system-ui); text-decoration: none; transition: transform .2s, filter .2s, border-color .2s; }
.tonon-theme a.reign-button { color: #21190d; }
.tonon-theme a.reign-button:hover { color: #21190d; text-decoration: none; filter: brightness(1.1); transform: translateY(-2px); }
.reign-button-ghost { background: #101018a6; color: #f0e6d6; border-color: #c2aa8055; box-shadow: none; }
.tonon-theme a.reign-button-ghost, .tonon-theme a.reign-button-ghost:hover { color: #fff1d6; }
.reign-opening { margin: 20px 0 0; color: #c3bcc1; font-size: 10px; letter-spacing: .015em; }
.reign-opening span { color: var(--reign-gold); margin-right: 8px; }
.reign-hero-status { position: absolute; right: 36px; bottom: 80px; display: flex; align-items: center; gap: 14px; min-width: 260px; padding: 18px 22px; border: 1px solid #e2c18b30; border-radius: 8px; background: #101016d9; color: #f0e4cf; font-size: 14px; text-decoration: none; box-shadow: 0 10px 32px #0004; }
.reign-hero-status small { display: block; margin-top: 3px; color: var(--reign-muted); font-size: 10px; }
.reign-hero-status > span:last-child { margin-left: auto; color: var(--reign-gold); }
.reign-live-dot { width: 8px; height: 8px; flex-shrink: 0; background: #928b94; border-radius: 50%; }
.reign-live-dot.is-live { background: #8fd5aa; box-shadow: 0 0 0 5px #8fd5aa15; }
.reign-statusbar { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); position: relative; margin-top: -28px; padding: 25px 18px; border: 1px solid #e1ba7325; border-radius: 8px; background: linear-gradient(120deg,#1c1a22,#101017); }
.reign-statusbar > div { padding-inline: 28px; border-right: 1px solid var(--reign-line); }
.reign-statusbar > div:last-child { border-right: 0; }
.reign-stat-label { display: block; margin-bottom: 8px; color: #b7adbc; font-size: 9px; font-weight: 600; letter-spacing: .13em; }
.reign-statusbar strong { color: #e8dfd0; font: 400 23px/1.3 var(--tonon-heading,Georgia); }
.reign-statusbar a { color: var(--reign-gold-light); font-size: 12px; text-decoration: none; }
.reign-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 64px 0 28px; }
.reign-section-head .reign-kicker { margin-bottom: 8px; }
.reign-section-head h2, .reign-card h2, .reign-faq h2, .reign-discord h2 { margin: 0; color: #ede6dc; font: 400 clamp(26px,2.4vw,34px)/1.25 var(--tonon-heading,Georgia); }
.reign-section-head > a { color: var(--reign-gold); font-size: 12px; text-decoration: none; }
.tonon-theme.tonon-home .Content .tonon-content-box { padding: 0; border: 0; background: transparent; box-shadow: none; }
.tonon-home .tonon-content-box > .Border_3 > .BoxContent { padding: 0; }
.tonon-theme .tonon-news-home { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 24px; align-items: start; }
.tonon-theme .tonon-news-home > section { margin: 0; background: var(--reign-surface); border: 1px solid var(--reign-line); border-radius: var(--reign-radius); box-shadow: none; }
.tonon-theme .tonon-news-home > section::after, .tonon-theme .tonon-side-section::after { display: none; }
.tonon-theme .Content .tonon-news-home .tonon-strip-title { background: #ffffff03; border-bottom: 1px solid var(--reign-line); }
.tonon-theme .tonon-home-publication { padding: 24px; background: none; }
.tonon-theme .Content .tonon-news-body { color: #bdb8c8; font-size: 13px; }
.tonon-theme .Content .tonon-update-row summary { background: transparent; color: #d1cad7; }
.tonon-theme .Content .tonon-news-category { color: var(--reign-gold-light); }
.reign-community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.reign-card { min-width: 0; padding: 30px; border: 1px solid #a9a8c326; border-radius: var(--reign-radius); background: linear-gradient(140deg,#1c2534f5,#151521f5); box-shadow: 0 12px 32px #0004,inset 0 1px #e5ca9420; transition: border-color .25s, transform .25s, box-shadow .25s; }
.reign-card:hover { border-color: #d9b47470; box-shadow: 0 16px 40px #0005,0 0 24px #ceab5b0b; }
.reign-card .reign-kicker { margin-bottom: 10px; font-size: 9px; }
.reign-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.reign-card-icon { color: var(--reign-gold); font-size: 36px; }
.reign-leaderboard { list-style: none; padding: 0; margin: 24px 0 18px; }
.reign-leaderboard li { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--reign-line); }
.reign-rank-number { color: #898290; width: 24px; font: 400 22px var(--tonon-heading,Georgia); }
.reign-leaderboard li:first-child .reign-rank-number { color: var(--reign-gold-light); }
.reign-leaderboard a { color: #eee4d2; font-size: 13px; text-decoration: none; }
.reign-leaderboard small { display: block; color: var(--reign-muted); font-size: 10px; margin-top: 3px; }
.reign-level { margin-left: auto; color: #aaa1b3; font-size: 8px; letter-spacing: .1em; text-align: right; }
.reign-level strong { display: block; color: var(--reign-gold); font-size: 18px; font-weight: 500; }
.reign-text-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--reign-gold); font-size: 12px; text-decoration: none; }
.reign-text-link:hover { color: var(--reign-gold-light); }
.reign-empty { margin: 30px 0; color: var(--reign-muted); font-size: 13px; line-height: 1.9; }
.reign-update { display: flex; align-items: start; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--reign-line); color: var(--reign-text); text-decoration: none; }
.reign-update:last-child { border-bottom: 0; padding-bottom: 0; }
.reign-update > span { color: var(--reign-gold); font-size: 12px; }
.reign-update > span:last-child { margin-left: auto; }
.reign-update h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #ede6db; }
.reign-update p, .reign-feature p, .reign-discord p, .reign-faq p { margin: 0; color: var(--reign-muted); font-size: 12px; line-height: 1.9; }
.reign-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.reign-feature { position: relative; overflow: hidden; padding: 32px; background: linear-gradient(145deg,#1a1821,#111118); }
.reign-feature:nth-child(1) { background: linear-gradient(0deg,#101923fa,#111b2be0 50%,#14273b88),url('../images/tononot/journey-mobile.webp') center / cover; }
.reign-feature:nth-child(2) { background: linear-gradient(0deg,#181324fa,#20172de0 50%,#221b3588),url('../images/tononot/nightwatch-mobile.webp') center / cover; }
.reign-feature:nth-child(3) { background: linear-gradient(0deg,#21170ffa,#271c14e0 50%,#3c2c1888),url('../images/tononot/fortress-mobile.webp') center / cover; }
.reign-feature-no { display: inline-block; margin-bottom: 34px; color: #ddba7a; font: 400 30px var(--tonon-heading,Georgia); }
.reign-feature h3 { margin: 0 0 14px; color: #f0e4d1; font: 400 24px/1.3 var(--tonon-heading,Georgia); }
.reign-feature p { min-height: 72px; }
.reign-feature .reign-text-link { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--reign-line); }
.reign-faq { display: grid; grid-template-columns: .9fr 1.1fr; gap: calc(var(--reign-space) * 1.8); margin-block: 88px; padding-top: 60px; border-top: 1px solid var(--reign-line); }
.reign-faq > div > p:last-child { margin-top: 20px; }
.reign-faq-list details { border-bottom: 1px solid var(--reign-line); }
.reign-faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; color: #e4dfe8; font-size: 13px; cursor: pointer; list-style: none; }
.reign-faq-list summary::-webkit-details-marker { display: none; }
.reign-faq-list summary span { color: var(--reign-gold); font-size: 20px; transition: transform .2s; }
.reign-faq-list details[open] summary span { transform: rotate(45deg); }
.reign-faq-list details p { padding: 0 24px 24px 0; }
.reign-faq-list a { color: var(--reign-gold-light); }
.reign-discord { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-bottom: 48px; padding: 48px; border: 1px solid #b09a622b; border-radius: var(--reign-radius); background: radial-gradient(ellipse at right,#d6ac5a16,transparent 70%),#15131d; }
.reign-discord p:last-child { margin-top: 14px; }
.reign-discord .reign-button { flex-shrink: 0; }
.tonon-theme .tonon-side-section, .tonon-theme .tonon-side-group { background: linear-gradient(145deg,#172334f5,#151522f2); border-color: #c5b28532; box-shadow: 0 8px 24px #0005,inset 0 1px #f2c7770b; }
.tonon-theme .tonon-strip-title, .tonon-theme .tonon-side-group > summary, .tonon-theme .tonon-section-heading { background: linear-gradient(110deg,#342338,#252538 65%,#1c2433); color: #f1d6a5; border-bottom-color: #d2ad6240; }
.tonon-theme .tonon-side-donation { background: radial-gradient(ellipse at top,#bb873921,transparent 75%),linear-gradient(150deg,#252235f7,#171c2af5); }
.tonon-theme .tonon-side-community { background: radial-gradient(ellipse at center,#6a79e01b,transparent 80%),linear-gradient(145deg,#1c2339f5,#171b2af5); }
.tonon-theme.tonon-inner .Content .tonon-content-box { background: linear-gradient(135deg,#1a2534f5,#171c2af7); border-color: #c3a56a52; box-shadow: 0 18px 50px #0005,inset 0 1px #e8c4890c; }
.tonon-theme .Content .tonon-account-card { background: linear-gradient(135deg,#202c3af7,#1b2333f7); border-color: #a8b0c32b; box-shadow: 0 8px 24px #0002; }
.tonon-theme .tonon-side-group > summary::after, .tonon-theme .tonon-section-heading::after { display: none; }
.tonon-theme .tonon-section-heading .reign-page-label { margin: 0; color: inherit; font: 400 21px/1.4 var(--tonon-heading,Georgia); }
.tonon-theme .tonon-side-actions .tonon-portal-button, .tonon-theme .tonon-side-donation .tonon-portal-button { background: #c29a60; border-color: #dbb575; color: #20190f; }
.tonon-theme .tonon-tool-content, .tonon-theme .tonon-quickbar { background: var(--reign-surface); border-color: var(--reign-line); }
.tonon-theme .tonon-fixed-tool .tonon-tool-content { border: 0; border-radius: 0 0 8px 8px; }
/* Custom MyAAC pages may still emit bgcolor attributes without TableContent. */
.tonon-theme .Content #commands table { width: 100%; border-collapse: collapse; border: 1px solid #ffffff1a; background: #13131c; }
.tonon-theme .Content #commands table tr { background: #171720 !important; }
.tonon-theme .Content #commands table tr:nth-child(even) { background: #1c1b26 !important; }
.tonon-theme .Content #commands table tr:first-child { background: #292432 !important; }
.tonon-theme .Content #commands table :is(td,th) { padding: 13px 14px; border: 1px solid #ffffff16; background: transparent !important; color: #eee8f1; line-height: 1.7; text-align: left; overflow-wrap: anywhere; }
.tonon-theme .Content #commands table tr:first-child :is(td,th) { color: #f4d49b; font-weight: 600; }
.tonon-theme .Content #commands table :is(i,b,a) { color: inherit; }
.tonon-theme .tonon-footer { background: #0a090f; border-top: 1px solid var(--reign-line); padding-top: 44px; }
.tonon-theme .tonon-footer-grid { gap: 30px; }
.tonon-theme .tonon-footer-grid h2 { color: #e6d2ae; }
.tonon-theme .tonon-footer-grid a, .tonon-theme .tonon-footer p { color: #b7b0c0; }
.reign-legal { margin-block: 24px; padding-top: 24px; border-top: 1px solid var(--reign-line); color: #a49ba9; font-size: 10px; line-height: 1.8; }
.reign-legal a { color: var(--reign-gold); margin-left: 12px; }
.tonon-theme .tonon-footer-bottom { border: 0; color: #a49ba9; }
/* JS enhances visibility only. Everything remains visible when scripts are unavailable. */
.reign-reveal { transition: opacity .5s ease, transform .5s ease; }
.reign-reveal.reign-pending { opacity: 0; transform: translateY(16px); }
@media (max-width: 1343px) {
  .reign-hero-art, .reign-hero::before { inset-inline: -32px; }
}
@media (max-width: 1023px) {
  .reign-topnav, .reign-login { display: none; }
  .tonon-theme .tonon-header-inner { min-height: 72px; padding: 8px 0; justify-content: center; }
  .tonon-theme .tonon-header .tonon-wordmark { width: 150px; }
  .tonon-theme .tonon-sidebar-toggle, .tonon-theme .tonon-mobile-account { display: inline-flex; position: absolute; top: 18px; }
  .tonon-theme .tonon-sidebar-toggle { left: 0; }
  .tonon-theme .tonon-mobile-account { right: 0; }
  .tonon-home .tonon-reference-layout > .tonon-left-sidebar:not([hidden]) { display: block; }
  .reign-enhanced .tonon-theme .tonon-left-sidebar:not([hidden]) { position: fixed; top: 80px; left: 16px; z-index: 99; width: min(360px,calc(100% - 32px)); max-height: calc(100dvh - 100px); overflow-y: auto; padding: 18px; background: #111019; border: 1px solid #d6ba763b; border-radius: 8px; box-shadow: 0 18px 60px #000a; }
  .reign-hero { padding: 70px 10px 120px; min-height: 600px; }
  .reign-hero-copy { max-width: 550px; }
  .reign-hero h1 { font-size: 52px; }
  .reign-hero-status { right: 0; bottom: 34px; padding: 13px 18px; }
  .reign-statusbar { margin-top: 0; }
  .reign-statusbar > div { padding-inline: 18px; }
  .reign-statusbar strong { font-size: 20px; }
  .reign-feature-grid { gap: 16px; }
  .reign-feature { padding: 24px; }
  .reign-faq { gap: 40px; }
}
@media (max-width: 760px) {
  body.tonon-theme { background-image: linear-gradient(180deg,#0b132487,#0b0d18d9),url('../images/tononot/nightwatch-mobile.webp'); background-attachment: scroll; background-size: 100% 100%,auto 1100px; background-color: #0b0d18; }
  .tonon-theme .tonon-shell { width: calc(100% - 36px); }
  .reign-hero-art, .reign-hero::before { inset-inline: -18px; }
  .reign-hero::before { background: linear-gradient(90deg,#0b0b10cf,#0b0b1070),linear-gradient(0deg,#0b0b10,transparent 65%); }
  .reign-hero-art img { object-position: 65% center; }
  .reign-hero { min-height: 620px; padding: 64px 4px 130px; }
  .reign-hero h1 { font-size: clamp(35px,8.4vw,52px); }
  .reign-hero .reign-kicker { font-size: 8px; letter-spacing: .16em; }
  .reign-lead { font-size: 13px; max-width: 350px; }
  .reign-button { gap: 14px; padding: 14px 20px; font-size: 12px; }
  .reign-hero-status { left: 4px; right: auto; bottom: 32px; min-width: min(280px,100%); }
  .reign-opening { font-size: 9px; line-height: 1.8; }
  .reign-statusbar { grid-template-columns: 1fr 1fr; row-gap: 24px; padding: 24px 6px; }
  .reign-statusbar > div { padding-inline: 16px; }
  .reign-statusbar > div:nth-child(2) { border-right: 0; }
  .reign-stat-label { font-size: 8px; }
  .reign-statusbar strong { font-size: 21px; }
  .reign-section-head { margin-top: 48px; gap: 12px; }
  .reign-section-head > a { font-size: 10px; white-space: nowrap; }
  .reign-community-grid, .reign-feature-grid, .reign-faq, .tonon-theme .tonon-news-home { grid-template-columns: 1fr; }
  .reign-card { padding: 24px; }
  .reign-feature p { min-height: 0; }
  .reign-feature-no { margin-bottom: 22px; }
  .reign-faq { gap: 24px; margin-block: 56px; padding-top: 40px; }
  .reign-discord { flex-direction: column; align-items: start; gap: 24px; padding: 28px; }
  .tonon-theme .tonon-home-publication { padding: 20px; }
  .tonon-theme .tonon-footer-grid { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .tonon-theme *, .tonon-theme *::before, .tonon-theme *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reign-reveal.reign-pending { opacity: 1; transform: none; }
}
