/* Site polish pass (owner 11-22, after the motion + UX sweep). Loaded last on every page (components/rd/shell.phtml).
   1. appear on scroll   2. solid header   3. no text under 14 px on the public pages   4. phone forms */

/* ---- 1. appear on scroll: starts just before a block enters the screen (assets/rd/js/site.js), a short soft move,
        the hero is simply there, card rows come in one card after another ---- */
:root .rv{transition:opacity .5s cubic-bezier(.22,1,.36,1),transform .5s cubic-bezier(.22,1,.36,1)!important;transition-delay:0s!important}
:root .rv:not(.in){transform:translateY(12px)}
:root .hero .rv{opacity:1!important;transform:none!important;transition:none!important}
/* a row of cards: the row itself is there, its cards (.rvc, numbered --rvi by the script) follow 60 ms apart.
   "translate" (not transform) so a card keeps its own transform; the script drops both classes when the row is in. */
:root .rv.rvg{opacity:1!important;transform:none!important;transition:none!important}
.rvg>.rvc{transition:opacity .5s cubic-bezier(.22,1,.36,1),translate .5s cubic-bezier(.22,1,.36,1)!important;transition-delay:calc(var(--rvi,0)*60ms)!important}
.rvg:not(.in)>.rvc{opacity:0!important;translate:0 12px}
html.nxload .rvg>.rvc{transition:none!important}
@media (prefers-reduced-motion:reduce){
 :root .rv,.rvg>.rvc{opacity:1!important;transform:none!important;translate:none!important;transition:none!important}
}

/* ---- 2. header: a solid dark strip once the page is scrolled (it was a see-through fade; text showed behind the buttons).
        Dark in the day look too, like every panel. ---- */
:root .nav.solid{background:linear-gradient(180deg,rgba(14,11,8,.98),rgba(16,12,8,.95))!important;padding-bottom:8px!important;
 box-shadow:0 1px 0 rgba(216,180,106,.3),0 12px 26px -14px rgba(0,0,0,.85)}

/* ---- 3. small text: nothing under 14 px ---- */
:root .kicker,:root .fh,:root .fbot span,:root .fbot .lang span{font-size:14px!important}
:root .fh{letter-spacing:.12em!important}
/* the small outline buttons (Details, Discord, Server Details): same selector as fx.css, one step bigger */
:root:root:root:root .nx-ghost.nx-ghost.nx-ghost.nx-ghost.nx-ghost.nx-md.nx-md{font-size:14px!important;letter-spacing:.1em!important}
/* home */
:root .tmu small,:root .tmr .tmsd,:root .wst,:root .w3 span,:root .wbt .btn.sm,:root .tlist .tn2,:root .stats span,:root .ulab,
:root .story .sec,:root .sheet .sec,:root .sheet .by,:root .sheet .by b,:root .memes .mh,:root .row3 .bh,
:root .fdc .ftx small,:root .fdc .ftx em,:root .cp .cpt p{font-size:14px!important}
:root .w3 span,:root .ulab,:root .sheet .sec{letter-spacing:.06em!important}
/* news */
:root .ncount,:root .nitem small span,:root .npn small{font-size:14px!important}
/* manual */
:root .tbc small,:root .tbn,:root .urole,:root .ustats small,:root .ucost span{font-size:14px!important}
:root .tbc small,:root .ustats small{letter-spacing:.04em!important}
/* server details */
:root .wtab small,:root .pill2,:root .rst span,:root .sdbig .t span,:root .ways small,:root .dcard h4,:root .gold small,:root .gold em,:root .phase h5 small{font-size:14px!important}
/* hall of fame */
:root .hwt button,:root .hstep small,:root .hwin small,:root .hbar span,:root .hs .pt,:root .hs .pt span,:root .hround small{font-size:14px!important}
/* forge */
:root .fgd span,:root .f2s span,:root .f2s em,:root .fgside h3,:root .fgside li span{font-size:14px!important}
/* guides, rules */
:root .gart h3 small,:root .glv,:root .gpc,:root .ritem h3 b{font-size:14px!important}
:root .rsec h2 span small,:root h2 span small{font-size:14px!important}

/* ---- 4. phone forms: a field under 16 px makes an iPhone zoom the page; a bigger tick box ---- */
:root .mchk input[type=checkbox]{width:20px;height:20px;flex:none;accent-color:#e8822a}
@media (max-width:760px){
 :root input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),:root select,:root textarea{font-size:16px!important}
 :root .mchk{min-height:44px;align-items:center}
 :root .mchk input[type=checkbox]{width:24px;height:24px}
}

/* ---- 5. account pages (owner 11-22) ---- */
/* the account menu keeps one width on all four tabs (My realms is a wider page: the bar used to jump sideways) */
:root .acct .lob:not(.apage) .atabs{max-width:1176px;margin-inline:auto}
/* Where you are logged in: 5 rows, the rest behind "Show all" */
:root .acct .slist.cut li.more{display:none}
:root .acct #form-logout-others{flex-wrap:wrap;gap:10px}
:root .acct #form-logout-others .sbtn{white-space:nowrap}
/* Gold Bank: My receipts in the History title row */
:root .acct .bkhh{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
:root .acct .bkhh h2{margin:0}
/* link targets: 32 px tall at least, 44 px on phones */
:root .foot .fcols a,:root .acct .alink{display:inline-flex;align-items:center;min-height:32px}
@media (max-width:760px){
 :root .foot .fcols a,:root .acct .alink,:root .acct .anote a{min-height:44px}
}

/* ---- 6. lighter scrolling (owner 11-22) ---- */
/* frosted glass only on the three big panels (menu, hero status bar, tribe sheet); the small ones get a plain dark fill */
:root .nav .pill,:root .wst,:root .wpan{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
:root .nav .pill{background-color:rgba(26,20,13,.94)!important}
:root .wst{background-color:rgba(14,11,8,.8)!important}
:root .wpan{background-color:rgba(20,15,10,.96)!important}
:root:root:root:root .nx-ghost.nx-ghost.nx-ghost.nx-ghost.nx-ghost{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* the empty stretch between two home sections: 300 px -> 210 px */
@media (min-width:761px){
 :root .band{padding-top:105px!important;padding-bottom:105px!important}
}
/* owner 11-22 (player report): Log in next to Create account in the phone header */
.nav .mlog{display:none}
@media (max-width:900px){
 .nav .mlog{display:inline-flex;align-items:center;height:42px;padding:0 12px;border-radius:6px;font:700 14px Inter,sans-serif;color:var(--head);text-decoration:none;white-space:nowrap;background:var(--panel2);box-shadow:0 0 0 1px var(--line)}
 .nav .mplay{white-space:nowrap}
}
@media (max-width:430px){
 .nav .in{gap:6px!important;padding:10px 8px!important}
 .nav .mlog{padding:0 9px;font-size:13px}
 .nav .mplay{padding:0 10px!important;font-size:13px!important}
}
@media (max-width:360px){
 .nav .pill .div,.nav .pill .tgl{display:none}
}
