:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
body{margin:0;font:14px system-ui,sans-serif}
img{max-width:100%}
[hidden]{display:none!important}

:root{
  --bg:#141127;
  --panel:#1d1937;
  --panel-2:#2a2450;
  --line:#3b3468;
  --fg:#efeaff;
  --muted:#a59ecb;
  --gold:#f5c542;
  --gold-ink:#2b1f00;
  --danger:#ff5468;
  --ok:#43dd9c;
  --font-display:'Bungee', 'Russo One', Impact, 'Arial Black', system-ui, sans-serif;
  --font-ui:'Chakra Petch', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:#0b0718;color:var(--fg);font-family:var(--font-ui);font-size:15px;line-height:1.45;position:relative;isolation:isolate}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 120' width='480' height='120' shape-rendering='crispEdges'%3E%3Crect x='20' y='62' width='26' height='58' fill='%23150c36'/%3E%3Crect x='20' y='58' width='3' height='4' fill='%23150c36'/%3E%3Crect x='26' y='58' width='3' height='4' fill='%23150c36'/%3E%3Crect x='32' y='58' width='3' height='4' fill='%23150c36'/%3E%3Crect x='38' y='58' width='3' height='4' fill='%23150c36'/%3E%3Crect x='44' y='58' width='3' height='4' fill='%23150c36'/%3E%3Crect x='96' y='76' width='18' height='44' fill='%23150c36'/%3E%3Crect x='96' y='72' width='3' height='4' fill='%23150c36'/%3E%3Crect x='102' y='72' width='3' height='4' fill='%23150c36'/%3E%3Crect x='108' y='72' width='3' height='4' fill='%23150c36'/%3E%3Crect x='150' y='54' width='30' height='66' fill='%23150c36'/%3E%3Crect x='150' y='50' width='3' height='4' fill='%23150c36'/%3E%3Crect x='156' y='50' width='3' height='4' fill='%23150c36'/%3E%3Crect x='162' y='50' width='3' height='4' fill='%23150c36'/%3E%3Crect x='168' y='50' width='3' height='4' fill='%23150c36'/%3E%3Crect x='174' y='50' width='3' height='4' fill='%23150c36'/%3E%3Crect x='236' y='70' width='20' height='50' fill='%23150c36'/%3E%3Crect x='236' y='66' width='3' height='4' fill='%23150c36'/%3E%3Crect x='242' y='66' width='3' height='4' fill='%23150c36'/%3E%3Crect x='248' y='66' width='3' height='4' fill='%23150c36'/%3E%3Crect x='254' y='66' width='3' height='4' fill='%23150c36'/%3E%3Crect x='300' y='58' width='28' height='62' fill='%23150c36'/%3E%3Crect x='300' y='54' width='3' height='4' fill='%23150c36'/%3E%3Crect x='306' y='54' width='3' height='4' fill='%23150c36'/%3E%3Crect x='312' y='54' width='3' height='4' fill='%23150c36'/%3E%3Crect x='318' y='54' width='3' height='4' fill='%23150c36'/%3E%3Crect x='324' y='54' width='3' height='4' fill='%23150c36'/%3E%3Crect x='372' y='74' width='18' height='46' fill='%23150c36'/%3E%3Crect x='372' y='70' width='3' height='4' fill='%23150c36'/%3E%3Crect x='378' y='70' width='3' height='4' fill='%23150c36'/%3E%3Crect x='384' y='70' width='3' height='4' fill='%23150c36'/%3E%3Crect x='430' y='66' width='24' height='54' fill='%23150c36'/%3E%3Crect x='430' y='62' width='3' height='4' fill='%23150c36'/%3E%3Crect x='436' y='62' width='3' height='4' fill='%23150c36'/%3E%3Crect x='442' y='62' width='3' height='4' fill='%23150c36'/%3E%3Crect x='448' y='62' width='3' height='4' fill='%23150c36'/%3E%3Crect x='0' y='90' width='480' height='30' fill='%231d1147'/%3E%3Crect x='0' y='90' width='480' height='2' fill='%2333207a'/%3E%3Crect x='0' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='0' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='12' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='12' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='24' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='24' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='36' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='36' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='48' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='48' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='60' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='60' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='72' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='72' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='84' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='84' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='96' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='96' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='108' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='108' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='120' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='120' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='132' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='132' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='144' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='144' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='156' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='156' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='168' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='168' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='180' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='180' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='192' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='192' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='204' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='204' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='216' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='216' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='228' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='228' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='240' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='240' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='252' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='252' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='264' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='264' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='276' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='276' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='288' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='288' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='300' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='300' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='312' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='312' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='324' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='324' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='336' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='336' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='348' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='348' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='360' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='360' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='372' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='372' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='384' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='384' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='396' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='396' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='408' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='408' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='420' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='420' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='432' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='432' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='444' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='444' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='456' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='456' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='468' y='84' width='6' height='6' fill='%231d1147'/%3E%3Crect x='468' y='84' width='6' height='1' fill='%2333207a'/%3E%3Crect x='50' y='50' width='30' height='70' fill='%231d1147'/%3E%3Crect x='50' y='50' width='30' height='2' fill='%2333207a'/%3E%3Crect x='50' y='50' width='2' height='70' fill='%2333207a' opacity='0.6'/%3E%3Crect x='50' y='44' width='5' height='6' fill='%231d1147'/%3E%3Crect x='50' y='44' width='5' height='1' fill='%2333207a'/%3E%3Crect x='58' y='44' width='5' height='6' fill='%231d1147'/%3E%3Crect x='58' y='44' width='5' height='1' fill='%2333207a'/%3E%3Crect x='66' y='44' width='5' height='6' fill='%231d1147'/%3E%3Crect x='66' y='44' width='5' height='1' fill='%2333207a'/%3E%3Crect x='74' y='44' width='5' height='6' fill='%231d1147'/%3E%3Crect x='74' y='44' width='5' height='1' fill='%2333207a'/%3E%3Crect x='63' y='64' width='4' height='7' fill='%23ffcf4d' opacity='0.85'/%3E%3Crect x='63' y='84' width='4' height='7' fill='%23ffcf4d' opacity='0.5'/%3E%3Crect x='65' y='28' width='1' height='16' fill='%2333207a'/%3E%3Crect x='66' y='28' width='9' height='6' fill='%239b4dff' opacity='0.9'/%3E%3Crect x='180' y='32' width='36' height='88' fill='%231d1147'/%3E%3Crect x='180' y='32' width='36' height='2' fill='%2333207a'/%3E%3Crect x='180' y='32' width='2' height='88' fill='%2333207a' opacity='0.6'/%3E%3Crect x='180' y='26' width='5' height='6' fill='%231d1147'/%3E%3Crect x='180' y='26' width='5' height='1' fill='%2333207a'/%3E%3Crect x='188' y='26' width='5' height='6' fill='%231d1147'/%3E%3Crect x='188' y='26' width='5' height='1' fill='%2333207a'/%3E%3Crect x='196' y='26' width='5' height='6' fill='%231d1147'/%3E%3Crect x='196' y='26' width='5' height='1' fill='%2333207a'/%3E%3Crect x='204' y='26' width='5' height='6' fill='%231d1147'/%3E%3Crect x='204' y='26' width='5' height='1' fill='%2333207a'/%3E%3Crect x='212' y='26' width='5' height='6' fill='%231d1147'/%3E%3Crect x='212' y='26' width='5' height='1' fill='%2333207a'/%3E%3Crect x='196' y='46' width='4' height='7' fill='%23ffcf4d' opacity='0.85'/%3E%3Crect x='196' y='66' width='4' height='7' fill='%23ffcf4d' opacity='0.5'/%3E%3Crect x='198' y='10' width='1' height='16' fill='%2333207a'/%3E%3Crect x='199' y='10' width='9' height='6' fill='%239b4dff' opacity='0.9'/%3E%3Crect x='330' y='46' width='30' height='74' fill='%231d1147'/%3E%3Crect x='330' y='46' width='30' height='2' fill='%2333207a'/%3E%3Crect x='330' y='46' width='2' height='74' fill='%2333207a' opacity='0.6'/%3E%3Crect x='330' y='40' width='5' height='6' fill='%231d1147'/%3E%3Crect x='330' y='40' width='5' height='1' fill='%2333207a'/%3E%3Crect x='338' y='40' width='5' height='6' fill='%231d1147'/%3E%3Crect x='338' y='40' width='5' height='1' fill='%2333207a'/%3E%3Crect x='346' y='40' width='5' height='6' fill='%231d1147'/%3E%3Crect x='346' y='40' width='5' height='1' fill='%2333207a'/%3E%3Crect x='354' y='40' width='5' height='6' fill='%231d1147'/%3E%3Crect x='354' y='40' width='5' height='1' fill='%2333207a'/%3E%3Crect x='343' y='60' width='4' height='7' fill='%23ffcf4d' opacity='0.85'/%3E%3Crect x='343' y='80' width='4' height='7' fill='%23ffcf4d' opacity='0.5'/%3E%3Crect x='345' y='24' width='1' height='16' fill='%2333207a'/%3E%3Crect x='346' y='24' width='9' height='6' fill='%239b4dff' opacity='0.9'/%3E%3Crect x='440' y='60' width='26' height='60' fill='%231d1147'/%3E%3Crect x='440' y='60' width='26' height='2' fill='%2333207a'/%3E%3Crect x='440' y='60' width='2' height='60' fill='%2333207a' opacity='0.6'/%3E%3Crect x='440' y='54' width='5' height='6' fill='%231d1147'/%3E%3Crect x='440' y='54' width='5' height='1' fill='%2333207a'/%3E%3Crect x='448' y='54' width='5' height='6' fill='%231d1147'/%3E%3Crect x='448' y='54' width='5' height='1' fill='%2333207a'/%3E%3Crect x='456' y='54' width='5' height='6' fill='%231d1147'/%3E%3Crect x='456' y='54' width='5' height='1' fill='%2333207a'/%3E%3Crect x='464' y='54' width='5' height='6' fill='%231d1147'/%3E%3Crect x='464' y='54' width='5' height='1' fill='%2333207a'/%3E%3Crect x='451' y='74' width='4' height='7' fill='%23ffcf4d' opacity='0.85'/%3E%3Crect x='451' y='94' width='4' height='7' fill='%23ffcf4d' opacity='0.5'/%3E%3Crect x='453' y='38' width='1' height='16' fill='%2333207a'/%3E%3Crect x='454' y='38' width='9' height='6' fill='%239b4dff' opacity='0.9'/%3E%3Crect x='14' y='102' width='3' height='5' fill='%23ffcf4d' opacity='0.6'/%3E%3Crect x='120' y='102' width='3' height='5' fill='%23ffcf4d' opacity='0.6'/%3E%3Crect x='150' y='102' width='3' height='5' fill='%23ffcf4d' opacity='0.6'/%3E%3Crect x='262' y='102' width='3' height='5' fill='%23ffcf4d' opacity='0.6'/%3E%3Crect x='290' y='102' width='3' height='5' fill='%23ffcf4d' opacity='0.6'/%3E%3Crect x='400' y='102' width='3' height='5' fill='%23ffcf4d' opacity='0.6'/%3E%3C/svg%3E") center bottom / auto min(30vh,260px) repeat-x,
  radial-gradient(55% 45% at 12% -5%, rgba(155,77,255,.50), transparent 70%),
  radial-gradient(45% 40% at 96% 12%, rgba(255,77,160,.20), transparent 70%),
  radial-gradient(80% 45% at 50% 108%, rgba(155,77,255,.42), transparent 72%),
  linear-gradient(180deg,#180e3b 0%,#100a28 55%,#0b0718 100%)}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' shape-rendering='crispEdges'%3E%3Crect x='155' y='18' width='2' height='2' fill='%23c9b3ff' opacity='.8'/%3E%3Crect x='30' y='131' width='2' height='2' fill='%23ffffff' opacity='.25'/%3E%3Crect x='107' y='42' width='2' height='2' fill='%239b4dff' opacity='.25'/%3E%3Crect x='193' y='87' width='4' height='4' fill='%23c9b3ff' opacity='.25'/%3E%3Crect x='38' y='125' width='2' height='2' fill='%23ffcf4d' opacity='.8'/%3E%3Crect x='107' y='10' width='2' height='2' fill='%23c9b3ff' opacity='.25'/%3E%3Crect x='171' y='19' width='4' height='4' fill='%23ffcf4d' opacity='.25'/%3E%3Crect x='195' y='142' width='4' height='4' fill='%23ffffff' opacity='.4'/%3E%3Crect x='146' y='202' width='4' height='4' fill='%23ffffff' opacity='.8'/%3E%3Crect x='224' y='209' width='2' height='2' fill='%23c9b3ff' opacity='.25'/%3E%3Crect x='80' y='87' width='4' height='4' fill='%23c9b3ff' opacity='.55'/%3E%3Crect x='177' y='89' width='3' height='3' fill='%23c9b3ff' opacity='.25'/%3E%3Crect x='152' y='127' width='4' height='4' fill='%23c9b3ff' opacity='.4'/%3E%3Crect x='148' y='204' width='2' height='2' fill='%239b4dff' opacity='.4'/%3E%3Crect x='116' y='17' width='2' height='2' fill='%23ffffff' opacity='.25'/%3E%3Crect x='215' y='23' width='4' height='4' fill='%23ffffff' opacity='.4'/%3E%3Crect x='69' y='121' width='3' height='3' fill='%239b4dff' opacity='.8'/%3E%3Crect x='178' y='170' width='2' height='2' fill='%23ffcf4d' opacity='.8'/%3E%3Crect x='16' y='15' width='2' height='2' fill='%23c9b3ff' opacity='.4'/%3E%3Crect x='187' y='179' width='2' height='2' fill='%23c9b3ff' opacity='.25'/%3E%3Crect x='79' y='165' width='4' height='4' fill='%23c9b3ff' opacity='.8'/%3E%3Crect x='147' y='174' width='2' height='2' fill='%23ffcf4d' opacity='.55'/%3E%3C/svg%3E") 0 0 / 240px 240px;animation:skydrift 90s steps(240) infinite, twinkle 3.6s ease-in-out infinite alternate;will-change:opacity;mask-image:linear-gradient(180deg,#000 0%,#000 55%,transparent 88%)}
@keyframes skydrift{to{background-position:240px 480px}}
@keyframes twinkle{from{opacity:.55}to{opacity:1}}
.app{min-height:100%;max-width:1180px;margin:0 auto;display:flex;flex-direction:column;gap:12px;padding-block:12px 24px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.top{display:flex;align-items:center;justify-content:space-between;gap:8px 16px}
.top .logo{grid-column:1}
.top .toggles{grid-column:2;grid-row:1;align-self:center}
.top .status{grid-column:1 / -1}
.status{display:flex;gap:8px;flex-wrap:wrap;align-items:center;min-height:30px;min-width:0}
.top .logo{min-width:0}
.logo{font-family:var(--font-display);font-size:22px;display:flex;align-items:center;gap:8px;white-space:nowrap}
.logo svg{width:30px;height:24px;flex:none}
.logo .dtlogo{height:72px;width:auto;margin:-6px 0 -6px -2px}
.biglogo{margin:0 auto;line-height:0}
.biglogo img{width:min(240px,70%);height:auto;display:block;margin:0 auto}
.ladder{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.node{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:4px 9px;border-radius:999px;border:1px solid var(--line);color:var(--muted);display:inline-flex;align-items:center;gap:5px}
.node svg{width:14px;height:11px}
.node.done{color:var(--fg);background:var(--panel-2);border-color:var(--panel-2)}
.node.cur{color:var(--gold);border-color:var(--gold)}
.node.on{background:var(--gold);color:var(--gold-ink);border-color:var(--gold)}
.link{width:8px;height:1px;background:var(--line)}
.reign{font-size:12px;font-weight:600;color:var(--gold);font-variant-numeric:tabular-nums}
.toggles{display:flex;gap:6px;align-items:center;justify-self:end;flex-wrap:wrap}
.langwrap{position:relative}
.pos-chip{font-size:13px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums;border:1px solid var(--line);border-radius:999px;padding:5px 12px}
.pos-chip b{color:var(--fg)}
.time-chip{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--fg);border:1px solid var(--muted);border-radius:999px;padding:4px 12px 4px 10px;font-variant-numeric:tabular-nums}
.time-chip svg{width:15px;height:15px;color:var(--muted)}
.time-chip b{font-family:var(--font-display);font-weight:400;font-size:15px;letter-spacing:.02em}
.time-chip.low{border-color:var(--danger);background:var(--danger)}
.time-chip.low svg,.time-chip.low b{color:#fff}
.pos-chip.top b{color:var(--gold)}
.pos-chip.side{border-radius:14px;background:var(--panel);text-align:center;padding:8px 12px}
.clanbar{display:flex;align-items:center;gap:12px;min-width:0}
.box.clanbar{padding:12px 14px}
.clanbar .lbl{margin-left:auto}
.clanbar .cflag{display:block;width:42px;height:28px;border-radius:5px;flex:none;box-shadow:0 0 0 2px #1b1630,0 0 14px var(--clan-glow,transparent)}
.clanbar .cn{font-family:var(--font-display);font-size:22px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;text-shadow:0 2px 0 #1b1630,0 0 18px var(--clan-glow,transparent)}
.clanbar .lbl{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);flex:none}
@media (max-width:560px){.clanbar .cn{font-size:19px}}
.fd-anim{animation:fdwave 2.2s ease-in-out infinite;transform-origin:left center}
@keyframes fdwave{0%,100%{transform:perspective(90px) rotateY(0deg)}50%{transform:perspective(90px) rotateY(9deg) skewY(-2deg)}}
.fprev{width:100%;aspect-ratio:160/150;border-radius:8px;background:#0e1730;display:grid;place-items:center;overflow:hidden}
.fprev img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .25s}
.item:hover .fprev img{transform:scale(1.06)}
.r0{--rc:#9aa3c7}.r1{--rc:#3da5ff}.r2{--rc:#b06cff}.r3{--rc:#ffb82e}
.rar{font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--rc)}
.items .item{border-color:color-mix(in srgb,var(--rc) 38%,var(--line))}
.items .item.r3{box-shadow:0 0 14px color-mix(in srgb,var(--rc) 22%,transparent)}
.items .item.on{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.items .item.tall{flex-basis:140px}
.item .rar{margin-bottom:-4px}
.shophero{display:flex;gap:14px;align-items:center;background:linear-gradient(115deg,color-mix(in srgb,var(--rc) 26%,#0e1730),#0e1730 72%);border:1px solid color-mix(in srgb,var(--rc) 55%,var(--line));border-radius:14px;padding:10px 14px 10px 10px;box-shadow:0 0 22px color-mix(in srgb,var(--rc) 18%,transparent)}
.shophero img{width:118px;height:110px;object-fit:contain;flex:none}
.shophero .txt{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;align-items:flex-start}
.shophero b{font-family:var(--font-display);font-weight:400;font-size:clamp(20px,5vw,26px);line-height:1.05}
.shophero p{margin:0;font-size:13px;color:var(--muted)}
.shophero .btn{padding:8px 16px;font-size:14px;margin-top:4px}
.shophero .btn.confirm{background:var(--danger);color:#fff}
#shop-body{display:flex;flex-direction:column;gap:12px}
.pflag{width:72px;height:48px;border-radius:5px;box-shadow:0 0 0 2px #1b1630;display:block}
.logo{cursor:pointer;border-radius:8px}
.tg.gold{background:var(--gold);color:var(--gold-ink);border-color:var(--gold);font-weight:700}
.tg.icon{display:inline-flex;align-items:center;gap:6px}
.tg.icon svg{width:15px;height:15px}
.tg.icon.only .lbl{display:none}
#tg-profile{display:inline-flex;align-items:center;gap:7px}
.avatar{width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;font-size:11px;font-weight:800;color:#fff;background:var(--panel-2);text-transform:uppercase}
.app:not(.home) .homeonly{display:none!important}
.app.home .chatbox,.app.home #runstats,.app.home #poschip,.app.home .feedbox{display:none!important}
.homecta{display:flex;flex-direction:column;gap:10px}
.homecta h2{margin:0;font-family:var(--font-display);font-weight:400;font-size:21px;line-height:1.1;text-wrap:balance}
.homecta h2 em{font-style:normal;color:var(--gold)}
.homecta p{margin:0;font-size:13px;color:var(--muted)}
.homecta .btn{width:100%}
.homerules{display:flex;flex-direction:column;gap:10px;min-height:0}
.homerules h3{margin:0;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.homerules ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;counter-reset:hr;min-height:0;overflow:auto;scrollbar-width:thin;padding:4px 0 0 5px}
.homerules li{counter-increment:hr;display:grid;grid-template-columns:54px 1fr;gap:10px;align-items:center;position:relative}
.homerules li canvas{width:54px;height:auto;aspect-ratio:160/96;border-radius:8px;background:#17132d;box-shadow:none;image-rendering:pixelated}
.homerules li::before{content:counter(hr);position:absolute;left:-4px;top:-3px;width:16px;height:16px;border-radius:50%;background:var(--gold);color:#1a1030;font-size:10px;font-weight:800;display:grid;place-items:center;z-index:1}
.homerules li span{font-size:13px;font-weight:600;line-height:1.25}
.homerules .btn{padding:9px 8px;font-size:14px;width:100%}
.homecta .row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.homecta .row2 .btn{padding:10px 8px;font-size:14px}
.livebox{display:flex;flex-direction:column;min-height:0}
.livelist{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:5px;overflow:auto;min-height:0}
.livelist button{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center;text-align:left;background:var(--bg);border:1px solid transparent;border-radius:10px;padding:7px 9px;font-size:13px}
.livelist button:hover{border-color:var(--line)}
.livelist button[aria-current="true"]{border-color:var(--gold)}
.livelist .vs{display:flex;align-items:center;gap:6px;min-width:0;font-weight:600}
.livelist .vs span.n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.livelist .vs i{font-style:normal;color:var(--muted);font-size:11px;flex:none}
.livelist .fl{width:16px;height:11px;border-radius:2px;flex:none}
.livelist .meta{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;text-align:right}
.livelist .watch{font-size:10px;font-weight:800;letter-spacing:.1em;color:var(--gold)}
.livelist button.crown{background:linear-gradient(90deg,rgba(245,197,66,.24),rgba(245,197,66,.06));border-color:rgba(245,197,66,.65);box-shadow:0 0 18px rgba(245,197,66,.12)}
.livelist button.crown[aria-current="true"]{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold),0 0 18px rgba(245,197,66,.25)}
.livelist .crtag{grid-column:1 / -1;display:flex;align-items:center;gap:6px;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.livelist .crtag svg{width:14px;height:14px;flex:none}
.btn.crownbtn{margin-top:8px;background:linear-gradient(180deg,#ffd970,#f5c542);color:#2b1f00;box-shadow:0 0 18px rgba(245,197,66,.35)}
.livebar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--muted);text-align:center}
.livebar b{color:var(--fg)}
.livebar .dotlive{width:8px;height:8px;border-radius:50%;background:var(--danger);display:inline-block;animation:blink 1.2s steps(2) infinite}
@keyframes blink{50%{opacity:.25}}
.providers{display:flex;flex-direction:column;gap:8px}
.prov{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:12px;padding:11px 14px;font-weight:700;font-size:15px;border:0}
.prov i{width:18px;height:18px;border-radius:5px;display:inline-grid;place-items:center;font-style:normal;font-size:11px;font-weight:900;background:rgba(0,0,0,.25)}
.fine{font-size:12px;color:var(--muted);margin:0}
.linkbtn{background:none;border:0;color:var(--gold);font-weight:700;font-size:14px;padding:4px;text-decoration:underline;text-underline-offset:3px}
.modal .card.authcard{max-width:400px}
.pwrow{display:flex;flex-direction:column;gap:4px;align-items:flex-start}.pwrow .input{width:100%}
.autherr{margin:8px 0 0;color:#ff7a86;font-size:13px;font-weight:600}
.reccode{margin:14px 0 10px;padding:14px;border-radius:12px;background:rgba(255,255,255,.07);border:1px dashed var(--gold,#f5c542);font:700 clamp(17px,5vw,22px)/1.2 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.06em;text-align:center;user-select:all;word-break:break-all}
#recovery-modal .btn{width:100%;margin-top:8px}
#prof-body{display:flex;flex-direction:column;gap:14px}
.modal .card.howcard{max-width:640px}
.howto{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.howto .howtile{grid-column:span 2}
.howto .howtile:nth-child(7):last-child{grid-column:3 / span 2}
@media (max-width:560px){.howto{grid-template-columns:repeat(4,1fr)}.howto .howtile:nth-child(7):last-child{grid-column:2 / span 2}}
.allrules.solo>summary{display:none}
.allrules.solo{border:0;padding:0;margin:0}
.howtile{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:8px 8px 10px;display:flex;flex-direction:column;gap:8px;align-items:stretch}
.howtile canvas{width:100%;aspect-ratio:160/96;height:auto;border-radius:10px;background:#17132d;box-shadow:none;image-rendering:pixelated}
.howtile p{margin:0;font-size:14px;font-weight:700;line-height:1.25;text-align:center;text-wrap:balance}
.allrules{text-align:left}
.allrules summary{cursor:pointer;color:var(--muted);font-size:13px;font-weight:700;text-align:center;list-style-position:inside}
.allrules .rules{margin-top:10px;font-size:13px;color:var(--muted)}
.modal .card.termscard{max-width:520px;text-align:left}
.terms{display:flex;flex-direction:column;gap:12px}
.terms h4{margin:0 0 3px;font-size:14px}
.terms p{margin:0;font-size:14px;color:var(--muted);line-height:1.5}
.linkbtn.inline{padding:0;font-size:inherit}
.profhead{display:flex;align-items:center;gap:12px;text-align:left}
.profhead .avatar{width:52px;height:52px;font-size:22px}
.profhead b{display:block;font-size:20px}
.profhead span{font-size:13px;color:var(--muted)}
.profnote{font-size:12px;margin:-6px 0 0}
.profrow{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.profrow .btn{padding:10px 8px;font-size:14px}
.btn.ghost.dangertxt{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 45%,var(--line))}
.cedeform{display:flex;flex-direction:column;gap:10px;text-align:left}
.cedeform label{font-weight:600;font-size:13px}
.btn.danger{background:var(--danger);color:#fff}
.btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
.profclan{display:flex;align-items:center;gap:10px;background:var(--bg);border-radius:12px;padding:10px 12px;text-align:left}
.profclan .cflag{width:42px;height:28px;border-radius:5px;flex:none;box-shadow:0 0 0 2px #1b1630;display:block}
.profclan b{font-family:var(--font-display);font-weight:400;font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.confrow{display:flex;justify-content:space-between;align-items:center;gap:12px;font-weight:600}
.confcol{display:flex;flex-direction:column;gap:8px;text-align:left;font-weight:600}
.confbtns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.confbtns .btn{padding:10px 8px;font-size:14px}
.switch{width:46px;height:26px;border-radius:999px;border:1px solid var(--line);background:var(--bg);position:relative;padding:0;flex:none}
.switch i{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--muted);transition:transform .15s}
.switch[aria-pressed="true"]{background:var(--gold);border-color:var(--gold)}
.switch[aria-pressed="true"] i{transform:translateX(20px);background:var(--gold-ink)}
.confpair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.confpair .confrow{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:8px 10px;min-width:0}
.confpair .confrow span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.modal .card.confcard{gap:12px;overflow:visible;max-height:none}
.langlist{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.langlist button{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:0 4px;height:36px;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.langlist button[aria-checked="true"]{border-color:var(--gold);color:var(--gold);background:color-mix(in srgb,var(--gold) 12%,var(--bg))}
.confbtns #tg-test{grid-column:1 / -1}
@media (max-width:420px){.langlist{grid-template-columns:repeat(2,minmax(0,1fr))}.langlist button{height:32px}}
@media (max-height:540px){.modal .card.confcard{max-width:640px;gap:8px;padding:14px 18px}.confcard .big{font-size:22px!important}.langlist{grid-template-columns:repeat(4,minmax(0,1fr))}.langlist button{height:28px;font-size:12px}.confbtns{grid-template-columns:repeat(3,1fr)}.confbtns #tg-test{grid-column:auto}.confbtns .btn,.confcard>.btn{padding:8px}}
@media (min-width:861px){.app.home aside .livebox{flex:1;min-height:120px}}
@media (max-width:560px){.tg.icon .lbl{display:none}}
.tg.shop{display:inline-flex;align-items:center;gap:6px;color:var(--gold);border-color:var(--gold)}
.tg.shop svg{width:14px;height:14px}
.modal .card.shopcard{max-width:640px;text-align:left;gap:12px}
.shophead{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.shophead .btn{padding:8px 14px;font-size:13px}
.shopnote{margin:0;font-size:13px;color:var(--muted)}
.shopnote b{color:var(--fg);font-weight:600}
.shopsec{display:flex;flex-direction:column;gap:8px}
.shopsec h3{margin:0;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.shopsec .sh{display:flex;align-items:center;justify-content:space-between;gap:8px}
.shopsec .arrows{display:flex;gap:6px}
.shopsec .arrows button{width:30px;height:30px;border-radius:9px;border:1px solid var(--line);background:var(--panel-2);color:var(--fg);font-size:15px;line-height:1;display:grid;place-items:center;padding:0}
.shopsec .arrows button:disabled{opacity:.35;cursor:default}
.items{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding-bottom:6px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;overscroll-behavior-x:contain}
.items .item{flex:0 0 128px;scroll-snap-align:start}
.item .nm{flex:1;line-height:1.25}
.item button{margin-top:auto}
.item{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:6px;align-items:stretch;min-width:0}
.item.on{border-color:var(--gold)}
.item canvas{width:100%;aspect-ratio:3/2;height:auto;border-radius:8px;background:#17132d;box-shadow:none;image-rendering:pixelated}
.item .nm{font-weight:700;font-size:13px}
.item button{border-radius:9px;padding:6px 8px;font-size:12px;font-weight:700;border:1px solid var(--line);background:var(--panel-2);color:var(--fg)}
.item button.buy{background:var(--gold);color:var(--gold-ink);border-color:var(--gold)}
.item button.confirm{background:var(--danger);border-color:var(--danger);color:#fff}
.item.locked .fprev img{filter:saturate(.35) brightness(.6)}
.item button.locked[disabled]{color:var(--muted);border-color:var(--line);display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:11px}
.item button[disabled]{background:transparent;color:var(--gold);border-color:var(--gold);cursor:default}
.langmenu[hidden]{display:none}
.langmenu{position:absolute;right:0;top:calc(100% + 6px);z-index:40;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:6px;display:flex;flex-direction:column;min-width:150px;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.langmenu button{background:transparent;border:0;text-align:left;padding:8px 10px;border-radius:8px;font-size:14px;display:flex;justify-content:space-between;gap:10px}
.langmenu button:hover,.langmenu button[aria-checked="true"]{background:var(--panel-2)}
.langmenu button[aria-checked="true"]{color:var(--gold)}
.langmenu button span{color:var(--muted);font-size:12px}
.reign{font-size:13px;font-weight:700;color:var(--gold);font-variant-numeric:tabular-nums;border:1px solid var(--gold);border-radius:999px;padding:5px 12px}
.tg{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:6px 11px;font-size:13px;font-weight:600;color:var(--muted)}
.tg{color:var(--fg);border-color:var(--muted)}
.tg[aria-pressed="false"]{color:var(--muted);border-color:var(--line)}
main{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.leftcol{display:flex;flex-direction:column;gap:12px;min-width:0;order:2}
.stage{order:1}
aside{order:3}
.leftcol .reign{align-self:flex-start}
@media (max-width:560px){.toggles{justify-self:end}}
.stage{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0;padding-top:24px}
#timechip{position:absolute;top:-24px;left:50%;transform:translateX(-50%);z-index:3;background:#1d1937;border-color:#6a55d8;box-shadow:0 4px 14px rgba(4,2,14,.6);white-space:nowrap}
.arena{position:relative;width:min(100%, calc((100dvh - 158px) * 2 / 3));min-width:min(100%,300px);aspect-ratio:2/3;max-width:100%}
canvas{display:block;width:100%;height:100%;border-radius:16px;touch-action:none;background:#17132d;box-shadow:0 0 0 2px #3b2a8a,0 0 0 5px #120b2c,0 0 46px rgba(155,77,255,.38),0 24px 60px rgba(4,2,14,.6)}
.controls{display:flex;flex-wrap:wrap;gap:10px 14px;justify-content:center;align-items:center;width:100%}
.kgroup{display:flex;align-items:center;gap:8px}
.kbtn{position:relative;overflow:hidden;background:var(--panel-2);border:1px solid var(--line);border-radius:12px;padding:10px 16px;font-weight:700;font-size:14px;min-width:96px;--cd:0}
.kbtn::after{content:"";position:absolute;inset:auto 0 0 0;height:3px;background:var(--gold);transform-origin:left;transform:scaleX(calc(1 - var(--cd)))}
.kbtn[data-cool="1"]{color:var(--muted)}
.klabel{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:700}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.seg button{background:transparent;border:0;padding:7px 11px;font-size:13px;font-weight:600;color:var(--muted)}
.seg button+button{border-left:1px solid var(--line)}
.seg button[aria-pressed="true"]{background:var(--panel-2);color:var(--gold)}
.opt{display:flex;align-items:center;gap:6px}
.runstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%}
.runstats div{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px 6px;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.runstats b{font-size:20px;font-variant-numeric:tabular-nums}
.runstats span{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);text-align:center}
#rs-kills{color:var(--gold)}
#rs-lost{color:var(--danger)}
@media (max-width:420px){.runstats{gap:6px}.runstats b{font-size:17px}.runstats span{font-size:8.5px;letter-spacing:.06em}}
.hint{font-size:12px;color:var(--muted);text-align:center;max-width:62ch;margin:0}
kbd{font-family:var(--font-ui);font-size:11px;border:1px solid var(--line);border-bottom-width:2px;border-radius:5px;padding:0 5px;color:var(--fg)}
aside{display:flex;flex-direction:column;gap:12px;min-width:0}
.box{background:rgba(29,25,55,.93);border:1px solid var(--line);border-radius:14px;padding:12px 14px;box-shadow:0 10px 30px rgba(5,2,18,.35)}
.box h3{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);display:flex;align-items:center;gap:8px}
.live{width:8px;height:8px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 0 rgba(255,84,104,.6);animation:live 1.6s infinite}
@keyframes live{70%{box-shadow:0 0 0 7px rgba(255,84,104,0)}100%{box-shadow:0 0 0 0 rgba(255,84,104,0)}}
.log{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px;font-size:13px;height:calc(3 * 1.4em + 6px);overflow:hidden}
.log li{line-height:1.4;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.log .lt{color:var(--muted);font-variant-numeric:tabular-nums;margin-right:6px}
.log .em{font-weight:700}
.log .ff{color:var(--danger);font-weight:700}
.log .gold{color:var(--gold);font-weight:700}
.rank{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.rank li,.rankcols{display:grid;grid-template-columns:30px 16px minmax(0,1fr) 34px 64px;gap:6px;align-items:center;font-size:13px;padding:5px 8px;border-radius:9px;background:var(--panel-2)}
.rankcols{background:none;padding:0 8px 4px;font-size:9.5px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
.rankcols span:nth-child(n+4){text-align:right}
.rankhead{display:flex;justify-content:space-between;align-items:center;gap:8px}
.rankhead .online{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ok);white-space:nowrap}
.rankhead .online::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px rgba(53,217,138,.18)}
.rankhead .online[hidden]{display:none}
.mybest:empty{display:none}
.rank .pos{font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}
.rank li:first-child .pos{color:var(--gold)}
.rank .dot{width:16px;height:11px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.rank .nm{display:flex;align-items:baseline;gap:6px;min-width:0;line-height:1.3}
.rank .nm > span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank .tag{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.rank .tag.me{color:var(--gold)}
.rank .st{font-variant-numeric:tabular-nums;color:var(--muted);text-align:right;font-size:12px;white-space:nowrap}
.rank .st b{color:var(--fg)}
.mybest{margin-top:6px;padding-top:6px;border-top:1px dashed var(--line)}
.rank li.me{box-shadow:inset 0 0 0 1px var(--gold)}
.rank li.first{background:linear-gradient(90deg, rgba(245,197,66,.28), rgba(245,197,66,.08));box-shadow:inset 0 0 0 1px var(--gold)}
.rank li.first .nm > span:first-child, .rank li.first .st b{color:var(--gold)}
.rank .dot{position:relative}
.rank .dot svg{position:absolute;left:50%;top:-11px;width:14px;height:11px;transform:translateX(-50%);color:var(--gold);filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}
.rank li.first{padding-top:9px}
.rank li.me .pos{color:var(--gold);font-size:12px}
.mybest .lbl{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--gold);font-weight:700}
.mybest .v{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.mybest .v b{color:var(--fg)}
.mybest .p{font-family:var(--font-display);font-size:18px;color:var(--gold);font-variant-numeric:tabular-nums}
.note{font-size:11px;color:var(--muted);margin:8px 0 0}
.rules{margin:0;padding-left:18px;font-size:14px;display:flex;flex-direction:column;gap:7px;color:var(--fg);text-align:left}
.modal[hidden]{display:none}
#terms-modal{z-index:60}
.modal{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;background:rgba(10,8,22,.78);padding:16px max(16px,env(safe-area-inset-right,0px)) 16px max(16px,env(safe-area-inset-left,0px))}
.modal .card{max-width:440px;max-height:calc(100dvh - 32px);overflow:auto}
.mx{position:sticky;top:-10px;z-index:3;align-self:flex-end;flex:none;width:36px;height:36px;margin:-10px -10px -50px 0;display:grid;place-items:center;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--muted);cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.mx:hover{color:var(--fg);border-color:var(--muted)}
.mx:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.card:has(>.mx) h2.big{padding-inline:42px}
.card:has(>.mx)>.eyebrow:first-of-type{padding-inline:42px;min-height:30px;margin-top:-4px;display:flex;align-items:center;justify-content:center;text-align:center}
.card.termscard:has(>.mx) h2.big{padding-left:0}
.card h2.big,.card .fit1,.card:has(>.mx)>.eyebrow:first-of-type{white-space:nowrap}
.fit1{min-width:0}
.modal .card .shophead{padding-right:34px}
.mvp{display:flex;flex-direction:column;gap:2px;margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid var(--line);height:84px;overflow:hidden}
.mvp .row1.blank .nm,.mvp .row1.blank .k{color:var(--line)!important;font-weight:400}
.mvp .row1{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:8px;align-items:center;font-size:13px}
.mvp .row1 .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.mvp .row1 .k{font-variant-numeric:tabular-nums;color:var(--muted)}
.mvp .row1:first-of-type .k{color:var(--gold);font-weight:700}
.mvp .empty{font-size:12px;color:var(--muted)}
.mvp .lbl{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:var(--gold);font-weight:700;display:flex;align-items:center;gap:5px}
.mvp .lbl svg{width:13px;height:10px}
.chat{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;height:360px;overflow:auto;font-size:13px}
.badge{font-size:13px;font-weight:700;color:var(--fg);background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:7px 11px;display:inline-flex;gap:6px;align-items:center}
.badge svg{width:12px;height:12px;color:var(--muted)}
.seg.wide{display:flex}
.seg.wide button{flex:1;padding:9px 8px}
.chat li{line-height:1.4;overflow-wrap:anywhere}
.chat .who{font-weight:700;margin-right:4px}
.chat .sys{color:var(--muted);font-style:italic}
.chat .sys.dead{color:var(--danger);font-style:normal;font-weight:600}
.chat .sys.kill{color:var(--fg);font-style:normal}
.chat .ghost{opacity:.6}
.chat .me .who{color:var(--gold)}
.chatform{display:flex;gap:6px;margin-top:10px}
.chatform .input{font-size:14px;padding:8px 10px;flex:1;min-width:0}
.chatform .btn{padding:8px 12px;font-size:13px}
.box h3 .sub2{margin-left:auto;font-size:10px;letter-spacing:.08em;color:var(--muted);text-transform:none;font-weight:600}
.rules li::marker{color:var(--gold)}
.leadbar{position:absolute;left:10px;right:10px;bottom:10px;z-index:6;display:flex;flex-direction:column;gap:8px;align-items:stretch}
.leadbar[hidden]{display:none}
.leadbar .lbcard{background:var(--panel);border:2px solid var(--gold);border-radius:14px;padding:12px 14px;text-align:center;box-shadow:0 0 26px rgba(245,197,66,.28);display:flex;flex-direction:column;gap:8px}
.leadbar .lbcard b{color:var(--gold);font-size:15px}.leadbar .lbcard p{margin:0;font-size:13px;color:var(--muted)}
.leadbar .lbt{font-family:'Bungee',Impact,sans-serif;font-size:22px;color:var(--gold)}
.leadbar .lbrow{display:flex;gap:8px}.leadbar .lbrow .btn{flex:1;min-height:44px}
.leadbar .lbpill{align-self:flex-start;min-height:36px;padding:0 12px;font-size:13px}
.cedeov{z-index:8}
.heirs .heir small{display:block;color:var(--muted);font-size:11px}
.overlay[hidden]{display:none}
.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(14,11,30,.8);border-radius:16px;overflow:auto}
.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;width:100%;max-width:380px;display:flex;flex-direction:column;gap:14px;text-align:center;margin:auto;animation:rise .28s ease-out}
@keyframes rise{from{transform:translateY(10px) scale(.98);opacity:.4}to{transform:none;opacity:1}}
.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.16em;color:var(--muted);font-weight:700}
.big{font-family:var(--font-display);font-size:clamp(30px,8vw,46px);line-height:.95;text-wrap:balance;margin:0;font-weight:400}
.big.gold{color:var(--gold)}
.big.red{color:var(--danger)}
.sub{margin:0;color:var(--muted);font-size:14px;text-wrap:pretty}
.field{display:flex;flex-direction:column;gap:6px;text-align:left}
.field label,.flabel{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:700}
.input{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font:inherit;font-size:16px;color:var(--fg);width:100%}
.swatches{display:flex;gap:8px;flex-wrap:wrap}
.swrow{display:flex;align-items:center;gap:6px;min-width:0}
.swatches.scroll{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scroll-behavior:smooth;padding:4px 2px;flex:1;min-width:0;scrollbar-width:none;mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%)}
.swatches.scroll::-webkit-scrollbar{display:none}
.swatches.scroll .sw{flex:none;scroll-snap-align:start}
.swarr{flex:none;width:28px;height:28px;border-radius:8px;border:1px solid var(--line);background:var(--panel-2);color:var(--fg);font-size:17px;line-height:1;display:grid;place-items:center;padding:0}
.swarr:disabled{opacity:.3;cursor:default}
.clanprev{--pc:#ff4d5e;display:flex;align-items:center;gap:14px;padding:12px 14px 8px 20px;border-radius:14px;border:1px solid color-mix(in srgb,var(--pc) 45%,var(--line));background:radial-gradient(120% 140% at 50% 110%,color-mix(in srgb,var(--pc) 38%,transparent),transparent 70%),var(--bg)}
.clanprev .flag{width:78px;height:52px;border-radius:5px;flex:none}
.clanprev canvas{flex:1;min-width:0;width:100%;height:auto;max-height:84px;object-fit:contain;image-rendering:pixelated;background:none;box-shadow:none;border-radius:0}
.flabelrow{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:24px}
.patmini{display:flex;gap:6px}
.patmini[hidden]{display:none}
.patmini button{width:32px;height:22px;border-radius:4px;border:0;padding:0;box-shadow:0 0 0 1px var(--line);opacity:.55}
.patmini button[aria-pressed="true"]{box-shadow:0 0 0 2px var(--gold);opacity:1}
@media (max-width:560px){.clanprev{padding:8px 10px 6px 16px;gap:10px}.clanprev .flag{width:60px;height:40px}.clanprev canvas{max-height:58px}.swgrid .sw{max-width:32px}.swgrid.two .sw{max-width:28px}}
.swgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;justify-items:center}
.swgrid.two{grid-template-columns:repeat(9,minmax(0,1fr));gap:6px}
.swgrid .sw{width:100%;max-width:38px;height:auto;aspect-ratio:1;transition:transform .12s}
.swgrid .sw[aria-checked="true"]{box-shadow:0 0 0 3px var(--gold);transform:scale(1.08)}
.swgrid .sw[hidden]{display:none}
.namerow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}
.namerow .flag{width:58px;height:40px;margin-bottom:4px;margin-left:8px}
.biglogo.small img{width:min(180px,55%)}
.sw{width:34px;height:34px;border-radius:50%;border:3px solid var(--panel);box-shadow:0 0 0 1px var(--line)}
.sw[aria-checked="true"]{box-shadow:0 0 0 2px var(--gold)}
.sw.none{background:var(--bg);position:relative;overflow:hidden}
.sw.none::after{content:"";position:absolute;left:50%;top:-4px;bottom:-4px;width:2px;background:var(--muted);transform:rotate(45deg)}
.flagprev{display:flex;align-items:center;gap:14px;justify-content:center;padding:4px 0}
.flagprev .flag{width:72px;height:48px}
.flag{box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.seg.pat button{padding:7px 10px}
.field[hidden]{display:none}
.profiles{display:flex;flex-direction:column;gap:8px;text-align:left}
.profile{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:11px 14px;display:flex;flex-direction:column;gap:2px;cursor:pointer;color:var(--fg)}
.profile b{font-size:15px}
.profile span{font-size:13px;color:var(--muted)}
.profile:hover,.profile:focus-visible{border-color:var(--gold)}
.profile:hover b{color:var(--gold)}
.slot.me{border-color:var(--gold);color:var(--gold)}
.slots.room{grid-template-columns:repeat(3,minmax(0,1fr));max-height:168px;overflow:auto;align-content:start;min-height:72px}
.input[hidden]{display:none}
.roomstats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.roomstats div{background:var(--bg);border-radius:10px;padding:8px 6px;display:flex;flex-direction:column;align-items:center;gap:2px}
.roomstats b{font-family:var(--font-display);font-weight:400;font-size:24px;font-variant-numeric:tabular-nums;line-height:1.1}
.roomstats b.gold{color:var(--gold)}
.roomstats span{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);text-align:center}
.row[hidden]{display:none}
.dots::after{content:'';animation:dots 1.4s steps(4,end) infinite}
@keyframes dots{0%{content:''}25%{content:'.'}50%{content:'..'}75%{content:'...'}}
.heirs{max-height:220px;overflow:auto}
.heir{background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:7px 8px;font-size:13px;text-align:left;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.heir:hover{border-color:var(--gold);color:var(--gold)}
.mvbox{background:var(--bg);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;text-align:left}
.mvrow{display:grid;grid-template-columns:minmax(0,96px) minmax(0,1fr) auto;gap:8px;align-items:baseline;font-size:14px}
.mvrow b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mvlbl{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mvk{color:var(--gold);font-weight:700;font-variant-numeric:tabular-nums}
.btn{border:0;border-radius:12px;padding:12px 16px;font-weight:700;font-size:15px;background:var(--gold);color:var(--gold-ink);font-family:var(--font-ui);letter-spacing:.02em}
.btn:disabled{background:var(--panel-2);color:var(--muted);cursor:not-allowed}
.btn.ghost{background:transparent;color:var(--muted);border:1px solid var(--line)}
.btn.pulse:not(:disabled){animation:pulse 1.2s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 6px rgba(245,197,66,.18)}}
.row{display:flex;gap:8px;align-items:center}
.row > *{min-width:0}
.linkbox{flex:1;background:var(--bg);border:1px dashed var(--line);border-radius:10px;padding:9px 10px;font-size:13px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;user-select:all}
.slots{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.slot{border-radius:8px;background:var(--bg);border:1px dashed var(--line);padding:6px 8px;font-size:13px;text-align:left;min-height:32px;display:flex;align-items:center;gap:6px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.slot.on{background:var(--panel-2);border-style:solid;color:var(--fg);animation:pop .25s ease-out}
.slot .n{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;flex:none}
@keyframes pop{from{transform:scale(.9)}to{transform:none}}
.count{font-family:var(--font-display);font-size:28px;font-variant-numeric:tabular-nums}
.count.full{color:var(--ok)}
.bench{font-size:12px;color:var(--muted);min-height:18px}
.vs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center}
.vs .side{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.vs .nm{font-weight:700;font-size:15px;overflow-wrap:anywhere}
.vs .x{font-family:var(--font-display);font-size:22px;color:var(--muted)}
.flag{width:46px;height:32px;border-radius:4px;position:relative;flex:none}
.flag::before{content:"";position:absolute;left:-6px;top:-4px;bottom:-10px;width:3px;border-radius:2px;background:var(--muted)}
.code{font-family:var(--font-display);font-size:clamp(34px,10vw,48px);letter-spacing:.16em;color:var(--gold);min-height:1.1em}
.code.wait{color:var(--muted)}
.racers{display:grid;grid-template-columns:1fr 1fr;gap:4px;font-size:12px;text-align:left}
.racers div{display:flex;justify-content:space-between;gap:6px;padding:3px 7px;border-radius:6px;background:var(--bg);min-width:0}
.racers div span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.racers div.me{background:var(--gold);color:var(--gold-ink);font-weight:700}
.racers div span:last-child{font-variant-numeric:tabular-nums;color:var(--muted)}
.racers div.me span:last-child{color:var(--gold-ink)}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.stats div{background:var(--bg);border-radius:10px;padding:8px 4px;display:flex;flex-direction:column}
.stats b{font-size:20px;font-variant-numeric:tabular-nums}
.stats span{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}
.mobilecta{display:none}
@media (max-width:860px){
  .app.home{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .app.home .mobilecta{position:fixed;left:0;right:0;bottom:0;z-index:6;display:grid;grid-template-columns:1.5fr 1fr;gap:8px;padding:10px max(16px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));background:rgba(14,9,32,.97);border-top:1px solid var(--line)}
  .mobilecta .btn{padding:12px 8px;font-size:14px;margin:0}
  .top .logo .dtlogo{height:54px}
}
@media (min-width:861px){
  html,body{height:100%;overflow:hidden}
  .app{height:100%;min-height:0;width:fit-content;max-width:100%}
  main{flex:1;min-height:0;align-items:stretch;grid-template-columns:auto 320px;grid-template-rows:auto minmax(0,1fr);justify-content:center;gap:12px 24px}
  .stage{min-height:0;grid-column:1;grid-row:1 / span 2;order:0}
  .leftcol{grid-column:2;grid-row:1;order:0}
  aside{grid-column:2;grid-row:2;order:0;min-height:0;overflow:auto;scrollbar-width:thin}
  aside .box.chatbox{flex:1;min-height:140px;display:flex;flex-direction:column}
  aside .chat{flex:1;height:auto;min-height:0}
  .arena{width:calc((100dvh - 158px) * 2 / 3);max-width:calc(100vw - 400px)}
  .app.home .livebar{display:none}
  .leftcol .feedbox{display:none}
}
@media (min-width:1120px){
  main{grid-template-columns:290px auto 320px;grid-template-rows:minmax(0,1fr)}
  .leftcol{grid-column:1;grid-row:1;min-height:0}
  .stage{grid-column:2;grid-row:1}
  aside{grid-column:3;grid-row:1;height:100%;overflow:visible}
  .arena{max-width:calc(100vw - 700px)}
  .leftcol .runstats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .leftcol .runstats div{padding:12px 6px}
  .leftcol .runstats b{font-size:24px}
  .leftcol .feedbox{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
  .leftcol .feedbox .log{flex:1;height:auto}
  .app.home .leftcol .feedbox{display:none!important}
  .homecta h2{font-size:26px}
  .app.home .leftcol{height:100%}
  .app.home .homerules{flex:1;min-height:0}
  .app.home .homerules ol{flex:1;justify-content:space-between}
}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}
