/* ==========================================================================
   Boxcade — UI stylesheet
   Developed by Tawajo
   ========================================================================== */

*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{
  /* ---- Boxcade 1.3 "Midnight Carnival" palette ------------------------- */
  --bg:#05070f; --bg2:#0a0f20; --panel:#141b36; --panel2:#1b2447; --ink:#f7f9ff; --dim:#93a0c8;
  --gold:#ffd23d; --gold-2:#ffb020; --gold-deep:#a87508; --gold-soft:rgba(255,210,61,.14);
  --red:#ff5f57; --blue:#57b0ff; --green:#4ee39a; --purple:#b47cff;
  --orange:#ff9a3d; --cyan:#4fdcff; --pink:#ff7ad9;
  --line:rgba(255,255,255,.11); --line-strong:rgba(255,255,255,.24);
  --r-xl:1.5cqw; --r-lg:1.1cqw; --r-md:.8cqw; --r-sm:.5cqw;
  --shadow:0 1.2cqw 3.2cqw rgba(0,0,0,.55);
  --ease:cubic-bezier(.2,.9,.3,1.1);
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
html,body{height:100%}
[hidden]{display:none!important}
body{
  background:
    radial-gradient(120% 100% at 50% -12%,#1d2a58 0%,#0a1024 48%,#04060d 100%);
  font-family:'Baloo 2','Segoe UI',system-ui,-apple-system,sans-serif;
  color:var(--ink); overflow:hidden; user-select:none; -webkit-user-select:none;
  -webkit-font-smoothing:antialiased;
}
button{font-family:inherit;color:inherit;background:none;border:none;cursor:pointer}
button:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:.4em}
::selection{background:rgba(255,210,61,.28);color:#fff}
/* inline icon family */
.ico{width:1em;height:1em;display:inline-block;flex:none;vertical-align:-.14em;overflow:visible}
.tiny-ico{width:1em;height:1em;display:inline-block;vertical-align:-.12em;overflow:visible}
.inline-ico{width:1em;height:1em;display:inline-block;vertical-align:-.12em;overflow:visible;margin-left:.06em}
.btn-ico{width:1.18em;height:1.18em;display:inline-block;flex:none;overflow:visible;margin-right:.34em;opacity:.92}
.reward-ico{width:1em;height:1em;display:inline-block;vertical-align:-.12em;margin-right:.2em;overflow:visible}
.mini-arrow{width:1em;height:1em;display:inline-block;vertical-align:-.12em;overflow:visible;margin-left:.25em;transition:transform .2s var(--ease)}
.gold-word{color:var(--gold);display:inline-flex;align-items:center;gap:.25em}
kbd{
  display:inline-flex;align-items:center;justify-content:center;min-width:2.1em;height:2.1em;padding:0 .45em;
  background:linear-gradient(180deg,#2b3566,#1a2244);border:1px solid rgba(255,255,255,.18);border-bottom-width:3px;
  border-radius:.42em;font-family:inherit;font-weight:800;text-align:center;font-size:1em;line-height:1;
  box-shadow:0 .12em 0 rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.16);color:#eef2ff;
}
#app{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
#wrap{
  position:relative; aspect-ratio:16/9;
  width:min(100vw,calc(100vh * 16 / 9));
  container-type:size; overflow:hidden;
  background:#0c1128; border-radius:1.1cqw;
  box-shadow:0 2.4cqw 7cqw rgba(0,0,0,.72), 0 0 0 1px rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.04);
}
#cv{position:absolute;inset:0;width:100%;height:100%;display:block}

/* ======================= SPLASH ======================= */
#splash{
  position:absolute;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;
  background:
    radial-gradient(70% 60% at 50% 38%,rgba(48,70,150,.55),transparent 70%),
    radial-gradient(120% 90% at 50% 120%,rgba(255,154,61,.22),transparent 60%),
    linear-gradient(180deg,#0a0f26,#06080f);
  transition:opacity .6s ease,visibility .6s;
  overflow:hidden;
}
#splash.gone{opacity:0;visibility:hidden;pointer-events:none}
.splash-rays{
  position:absolute;inset:-40%;opacity:.5;
  background:repeating-conic-gradient(from 0deg at 50% 50%,rgba(255,255,255,.05) 0deg 5deg,transparent 5deg 15deg);
  animation:spin 34s linear infinite;
  mask-image:radial-gradient(circle at 50% 50%,#000 0%,transparent 62%);
  -webkit-mask-image:radial-gradient(circle at 50% 50%,#000 0%,transparent 62%);
}
@keyframes spin{to{transform:rotate(360deg)}}
.splash-inner{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;animation:splashIn .9s cubic-bezier(.2,.9,.3,1.05) both}
@keyframes splashIn{from{opacity:0;transform:translateY(2.4cqw) scale(.96)}}
.brandmark{width:11cqw;height:11cqw;filter:drop-shadow(0 .8cqw 1.6cqw rgba(0,0,0,.55));animation:bob 3.2s ease-in-out infinite}
.brandmark svg{width:100%;height:100%}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-.45cqw) rotate(1deg)}}
.splash-title{margin-top:1.4cqw;line-height:.9;letter-spacing:.05em}
.splash-title span{
  display:block;font-size:4.1cqw;font-weight:800;color:#dfe7ff;
  text-shadow:0 .3cqw 0 rgba(0,0,0,.55),0 .8cqw 2cqw rgba(0,0,0,.5);
}
.splash-title b{
  display:block;font-size:6.6cqw;font-weight:800;letter-spacing:.03em;
  background:linear-gradient(180deg,#fff0a8 8%,#ffd633 45%,#f08a1a 95%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 .35cqw 0 rgba(60,32,0,.55)) drop-shadow(0 .9cqw 2cqw rgba(0,0,0,.5));
}
.splash-tag{margin-top:1.2cqw;font-size:1.35cqw;font-weight:700;color:#aab6dd;letter-spacing:.06em}
.splash-load{margin-top:2.2cqw;width:22cqw;height:.55cqw;border-radius:1cqw;background:rgba(255,255,255,.1);overflow:hidden;position:relative}
.splash-load i{position:absolute;inset:0;width:0;background:linear-gradient(90deg,#ffd633,#ff9a3d);border-radius:1cqw;animation:loadbar 1.5s cubic-bezier(.3,.8,.3,1) .15s forwards}
@keyframes loadbar{to{width:100%}}
.splash-start{
  margin-top:2.4cqw;font-size:1.75cqw;font-weight:800;letter-spacing:.12em;padding:.85cqw 3.6cqw;
  border-radius:1.2cqw;color:#2a1b02;
  background:linear-gradient(180deg,#ffe268,#f4a92c);
  border:1px solid rgba(255,255,255,.4);
  box-shadow:0 .5cqw 0 #a76a06,0 1.2cqw 2.6cqw rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.7);
  animation:startPulse 2.2s ease-in-out 1.4s infinite;
  transition:transform .14s,filter .14s;
}
.splash-start:hover{transform:translateY(-.15cqw) scale(1.03);filter:brightness(1.06)}
.splash-start:active{transform:translateY(.2cqw) scale(.99);box-shadow:0 .2cqw 0 #a76a06}
@keyframes startPulse{0%,100%{box-shadow:0 .5cqw 0 #a76a06,0 1.2cqw 2.6cqw rgba(0,0,0,.45),0 0 0 0 rgba(255,214,51,.4)}50%{box-shadow:0 .5cqw 0 #a76a06,0 1.2cqw 2.6cqw rgba(0,0,0,.45),0 0 0 1.1cqw rgba(255,214,51,0)}}
.splash-note{margin-top:1.6cqw;font-size:1.02cqw;color:#7986ad;font-weight:600;letter-spacing:.04em}
.splash-credit{margin-top:.5cqw;font-size:1.05cqw;color:#9aa6cc;font-weight:600;letter-spacing:.06em}
.splash-credit strong{color:var(--gold);font-weight:800;letter-spacing:.09em}

/* ======================= SHELL / CORNER ======================= */
#corner{position:absolute;top:1.3cqw;right:1.3cqw;display:flex;gap:.6cqw;z-index:60}
.icobtn{
  width:3.2cqw;height:3.2cqw;border-radius:.9cqw;
  background:rgba(11,16,38,.72);border:1px solid rgba(255,255,255,.14);
  display:flex;align-items:center;justify-content:center;
  backdrop-filter:blur(8px);
  transition:transform .12s,background .12s,border-color .12s;
}
.icobtn svg{width:58%;height:58%;fill:#cdd6f4;filter:drop-shadow(0 1px 0 rgba(0,0,0,.4))}
.icobtn:hover{transform:translateY(-.12cqw) scale(1.06);background:rgba(38,48,94,.94);border-color:rgba(255,255,255,.28)}
.icobtn:active{transform:scale(.94)}
.icobtn.off svg{fill:#5a628a}

/* ======================= SCREENS ======================= */
#ui{position:absolute;inset:0;z-index:40;pointer-events:none}
.screen{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;
  opacity:0;pointer-events:none;transform:translateY(1.2cqw) scale(.994);
  transition:opacity .3s ease,transform .34s cubic-bezier(.2,.9,.3,1.1);
  overflow:hidden;
}
.screen.active{opacity:1;pointer-events:auto;transform:none}
.screen::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:3.2cqw 3.2cqw;opacity:.5;
  mask-image:radial-gradient(120% 90% at 50% 10%,#000 0%,transparent 78%);
  -webkit-mask-image:radial-gradient(120% 90% at 50% 10%,#000 0%,transparent 78%);
}
#scr-menu{
  background:
    radial-gradient(90% 74% at 50% 32%,rgba(10,15,36,.08),rgba(6,9,22,.66) 76%),
    linear-gradient(180deg,rgba(8,12,30,.3),rgba(5,8,19,.76));
  backdrop-filter:blur(1.5px) saturate(1.12) brightness(.96);
}
#scr-games,#scr-players,#scr-help{
  background:
    radial-gradient(80% 60% at 50% 0%,rgba(46,66,140,.24),transparent 65%),
    linear-gradient(180deg,#0b1128 0%,#070b1a 100%);
}
#scr-games::after,#scr-players::after,#scr-help::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:8cqw;pointer-events:none;
  background:linear-gradient(0deg,rgba(4,6,14,.9),transparent);
}

/* ======================= MENU ======================= */
.menu-inner{
  position:relative;z-index:2;width:100%;height:100%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:1.2cqw 0 5.2cqw;
}
.logo{position:relative;text-align:center;line-height:.92;margin-top:-.6cqw}
.logo::before{
  content:'';position:absolute;inset:-.65em -1.2em;pointer-events:none;
  background:linear-gradient(115deg,transparent 36%,rgba(255,255,255,.09) 48%,transparent 58%);
  background-size:220% 100%;background-position:120% 0;
  animation:logoshine 5.6s ease-in-out infinite;
  mix-blend-mode:screen;border-radius:1cqw;
}
@keyframes logoshine{0%,58%{background-position:120% 0}80%,100%{background-position:-60% 0}}
.l2{font-weight:800;letter-spacing:.07em;display:flex;justify-content:center}
.l2 span{
  display:inline-block;animation:bop 2.8s ease-in-out infinite;
  background:linear-gradient(180deg,#fff 26%,#cfdafd 85%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 .16em 0 rgba(6,9,26,.95)) drop-shadow(0 .42em .55em rgba(0,0,0,.42));
}
.l2 span{
  background:linear-gradient(180deg,#fff3b4 14%,#ffd633 52%,#f08a1a 96%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 .16em 0 rgba(74,40,0,.8)) drop-shadow(0 .42em .6em rgba(0,0,0,.45));
}
.l2{font-size:8.2cqw;margin-top:.25cqw}
@keyframes bop{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-.13em) rotate(1.2deg)}}
.tagline{
  margin-top:1.35cqw;color:#eef3ff;font-size:1.3cqw;font-weight:700;letter-spacing:.045em;
  background:rgba(10,14,32,.74);border:1px solid rgba(255,255,255,.2);
  padding:.38cqw 1.5cqw;border-radius:2cqw;display:inline-block;
  text-shadow:0 1px 0 rgba(0,0,0,.55);backdrop-filter:blur(6px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 .4cqw 1.2cqw rgba(0,0,0,.3);
}
.menu{margin-top:2.5cqw;display:flex;flex-direction:column;gap:.86cqw;align-items:center}
.menu .btn{animation:menuin .55s cubic-bezier(.2,.9,.3,1.15) backwards}
.menu .btn:nth-child(1){animation-delay:.04s}
.menu .btn:nth-child(2){animation-delay:.1s}
.menu .btn:nth-child(3){animation-delay:.16s}
.menu-sub{display:flex;gap:.86cqw;margin-top:.24cqw;animation:menuin .55s .22s cubic-bezier(.2,.9,.3,1.15) backwards}
@keyframes menuin{from{opacity:0;transform:translateY(1.5cqw) scale(.95)}}
.menu-hint{margin-top:1.5cqw;font-size:.98cqw;font-weight:600;color:#95a2c6;letter-spacing:.04em;display:flex;align-items:center;gap:.5cqw}
.menu-hint b{color:#ccd6f4}
.menu-hint .dot{width:.42cqw;height:.42cqw;border-radius:50%;background:var(--green);box-shadow:0 0 1cqw var(--green);animation:blip 2s infinite}
@keyframes blip{0%,100%{opacity:1}50%{opacity:.35}}

/* ======================= BUTTONS ======================= */
.btn{
  position:relative;font-weight:800;letter-spacing:.028em;color:#fff;
  background:linear-gradient(180deg,#2a3463,#1a2243);
  border-radius:1.05cqw;border:1px solid rgba(255,255,255,.13);
  box-shadow:0 .42cqw 0 #0a0f28,0 .9cqw 2cqw rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.13);
  transition:transform .13s cubic-bezier(.2,.8,.3,1.2),box-shadow .13s,filter .13s,border-color .13s;
  text-shadow:0 2px 0 rgba(0,0,0,.28);overflow:hidden;
}
.btn::after{
  content:'';position:absolute;top:0;bottom:0;left:-80%;width:46%;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.26),transparent);
  transform:skewX(-18deg);pointer-events:none;transition:left .5s ease;
}
.btn:hover::after{left:135%}
.btn:hover{transform:translateY(-.17cqw);filter:brightness(1.1);border-color:rgba(255,255,255,.24)}
.btn:active{transform:translateY(.2cqw) scale(.995);box-shadow:0 .14cqw 0 #0a0f28}
.btn:focus-visible{outline:none;box-shadow:0 0 0 .22cqw rgba(255,214,51,.85),0 .42cqw 0 #0a0f28,0 .9cqw 2cqw rgba(0,0,0,.36)}
.btn.xl{font-size:1.86cqw;height:4.1cqw;min-width:24.5cqw;padding:0 2.6cqw;display:flex;align-items:center;gap:.9cqw;justify-content:center}
.btn.md{font-size:1.32cqw;height:2.9cqw;padding:0 1.7cqw;display:inline-flex;align-items:center;gap:.55cqw;justify-content:center}
.btn.lg{font-size:1.5cqw;height:3.4cqw;min-width:13cqw;padding:0 2.1cqw}
.btn.sm{font-size:1.02cqw;height:2.2cqw;padding:0 1.2cqw}
.btn .ic{display:inline-flex;width:1.3em;height:1.3em;align-items:center;justify-content:center;transition:transform .2s cubic-bezier(.2,1.4,.4,1)}
.btn .ic svg{width:100%;height:100%;fill:currentColor;filter:drop-shadow(0 2px 0 rgba(0,0,0,.25))}
.btn:hover .ic{transform:translateY(-.1em) rotate(-4deg) scale(1.08)}
.btn.primary{
  background:linear-gradient(180deg,#ffe268 0%,#ffd033 48%,#f3a528 100%);
  color:#3a2503;border-color:rgba(255,255,255,.45);
  box-shadow:0 .42cqw 0 #9a6306,0 1cqw 2.4cqw rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.75);
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.btn.primary:hover{filter:brightness(1.06) saturate(1.05)}
.btn.gold{background:linear-gradient(180deg,#ffe268,#f4a92c);color:#3a2503;border-color:rgba(255,255,255,.4);text-shadow:0 1px 0 rgba(255,255,255,.35)}
.btn.ghost{background:rgba(255,255,255,.085);border-color:rgba(255,255,255,.2);box-shadow:0 .3cqw 0 rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.1);text-shadow:none}
.btn.ghost:hover{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.32)}
.btn.kb{outline:none;border-color:var(--gold);box-shadow:0 0 0 .2cqw rgba(255,214,51,.75),0 .42cqw 0 #0a0f28,0 .9cqw 2cqw rgba(0,0,0,.36);transform:translateY(-.17cqw)}
.btn.go{background:linear-gradient(180deg,#65e873,#2cae4a);color:#05280d;font-size:1.9cqw;height:3.9cqw;padding:0 3.2cqw;border-color:rgba(255,255,255,.4);
  box-shadow:0 .42cqw 0 #136c2b,0 1cqw 2.4cqw rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.55);text-shadow:0 1px 0 rgba(255,255,255,.3)}
.btn.go:hover{filter:brightness(1.07)}
.btn.danger{background:rgba(255,82,82,.14);border-color:rgba(255,82,82,.4);color:#ff9a9a;box-shadow:none;text-shadow:none}
.btn.danger:hover{background:rgba(255,82,82,.24)}
.btn:disabled{opacity:.35;cursor:not-allowed;transform:none;filter:none;box-shadow:none}
.btn.close{
  width:2.5cqw;height:2.5cqw;border-radius:50%;font-size:1.1cqw;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);box-shadow:none;display:grid;place-items:center;flex:none;
}
.btn.close:hover{background:rgba(255,82,82,.25);border-color:rgba(255,82,82,.5)}
.btn.back{
  width:3.2cqw;height:3.2cqw;border-radius:.9cqw;padding:0;
  background:rgba(255,255,255,.08);box-shadow:0 .3cqw 0 rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.1);
  display:flex;align-items:center;justify-content:center;flex:none;
}
.btn.back svg{width:58%;height:58%;fill:#fff}
.btn.back:hover{background:rgba(255,255,255,.15)}
.kbd-hint{
  position:absolute;right:1.1cqw;top:50%;transform:translateY(-50%);
  font-style:normal;font-size:.78cqw;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  color:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.2);border-radius:.4cqw;padding:.16cqw .45cqw;
  background:rgba(0,0,0,.18);
}
.btn.primary .kbd-hint{color:rgba(58,37,3,.62);border-color:rgba(58,37,3,.28);background:rgba(255,255,255,.18)}

/* ======================= MENU FOOTER ======================= */
.menu-foot{
  position:absolute;left:0;right:0;bottom:0;z-index:3;
  display:flex;align-items:center;justify-content:space-between;gap:2cqw;
  padding:1.1cqw 2.2cqw;
  background:linear-gradient(0deg,rgba(4,7,17,.86),transparent);
}
.foot-stats{display:flex;align-items:center;gap:.7cqw;font-size:1.02cqw;font-weight:800;color:#b7c2e6;letter-spacing:.02em}
.foot-stats .stat{display:inline-flex;align-items:center;gap:.34cqw;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);padding:.22cqw .7cqw;border-radius:1cqw}
.foot-stats .stat b{color:var(--gold)}
.credit{display:flex;align-items:center;gap:.55cqw;font-size:1cqw;font-weight:600;color:#9aa7ce;letter-spacing:.03em}
.credit strong{color:#ffd95e;font-weight:800;letter-spacing:.08em;text-shadow:0 .1cqw .6cqw rgba(255,214,51,.35)}
.credit .sep{opacity:.45;margin:0 .1cqw}
.credit .ver{opacity:.7;font-variant-numeric:tabular-nums}
.link{color:#9fb0e0;font-weight:700;font-size:inherit;text-decoration:underline;text-decoration-color:rgba(159,176,224,.4);text-underline-offset:.18em;transition:color .15s}
.link:hover{color:var(--gold)}
#demo-pill{
  position:absolute;top:1.35cqw;left:1.35cqw;z-index:3;display:flex;align-items:center;gap:.55cqw;
  font-size:.92cqw;font-weight:700;color:#c2cced;letter-spacing:.03em;
  background:rgba(9,13,30,.66);border:1px solid rgba(255,255,255,.13);border-radius:1cqw;
  padding:.34cqw .85cqw;backdrop-filter:blur(8px);
}
#demo-pill .live-dot{width:.5cqw;height:.5cqw;border-radius:50%;background:#ff5252;box-shadow:0 0 1cqw rgba(255,82,82,.9);animation:blip 1.4s infinite}
#demo-pill .dp-kicker{font-size:.74cqw;letter-spacing:.18em;color:#8391bb;font-weight:800}
#demo-name{color:var(--gold);font-weight:800}
#demo-pill.hide{display:none}

/* ======================= HEADERS ======================= */
.scr-head{display:flex;align-items:center;gap:1.1cqw;width:100%;padding:1.8cqw 15.4cqw 1.1cqw 2.3cqw;flex:none;position:relative;z-index:2}
.head-text{display:flex;flex-direction:column;gap:.05cqw}
.scr-head h2{font-size:2.55cqw;font-weight:800;letter-spacing:.02em;line-height:1;text-shadow:0 .18cqw 0 rgba(0,0,0,.35)}
.kicker{font-size:.78cqw;font-weight:800;letter-spacing:.2em;color:#7f8dbb;text-transform:uppercase}
.head-badge{
  margin-left:auto;font-size:.9cqw;font-weight:800;letter-spacing:.14em;color:var(--gold);
  background:rgba(255,214,51,.1);border:1px solid rgba(255,214,51,.36);
  padding:.3cqw .9cqw;border-radius:.8cqw;white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.scr-foot-hint{position:absolute;bottom:1.5cqw;left:0;right:0;text-align:center;font-size:.92cqw;color:#6c799f;font-weight:600;pointer-events:none;z-index:2}
.scr-foot-hint b{color:#aebbe0}
.games-extra{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 1.35fr;gap:.8cqw;
  width:calc(100% - 4.6cqw);margin:1.1cqw auto auto;position:relative;z-index:2;flex:none;
}
.gx{
  display:flex;align-items:center;gap:.75cqw;text-align:left;
  background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);
  border-radius:.8cqw;padding:.68cqw .9cqw;color:#cfd9f4;
}
.gx-ico{
  font-size:1.05cqw;line-height:1;flex:none;width:2cqw;height:2cqw;border-radius:50%;
  display:grid;place-items:center;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);
}
.gx b{display:block;font-size:.92cqw;font-weight:800;color:#fff;letter-spacing:.02em}
.gx span{display:block;font-size:.76cqw;font-weight:600;color:#95a2c8;margin-top:.06cqw}
.gx-cta{
  justify-content:center;flex-direction:column;gap:0;text-align:center;cursor:pointer;
  background:linear-gradient(120deg,rgba(255,214,51,.13),rgba(255,154,61,.05));
  border-color:rgba(255,214,51,.28);transition:background .16s,border-color .16s,transform .16s;
}
.gx-cta b{color:var(--gold)}
.gx-cta span{color:#d9def0;margin-top:.12cqw}
.gx-cta:hover{background:linear-gradient(120deg,rgba(255,214,51,.22),rgba(255,154,61,.1));border-color:rgba(255,214,51,.5);transform:translateY(-.12cqw)}

/* ======================= GAME GRID ======================= */
#scr-games{overflow:hidden}
#scr-games .grid{position:relative;z-index:2}
.grid{
  display:grid;grid-template-columns:repeat(6,1fr);gap:.95cqw;
  padding:.4cqw 2.3cqw 2.4cqw;width:100%;
}
.gcard{
  position:relative;overflow:hidden;text-align:center;
  background:linear-gradient(180deg,rgba(40,52,100,.72),rgba(19,25,52,.92));
  border:1px solid rgba(255,255,255,.1);border-radius:1.05cqw;
  padding:.55cqw .55cqw .8cqw;
  transition:transform .18s cubic-bezier(.2,.9,.3,1.2),box-shadow .18s,border-color .18s;
  box-shadow:0 .4cqw 0 rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.08);
  animation:gcardin .5s cubic-bezier(.2,.9,.3,1.1) backwards;
}
@keyframes gcardin{from{opacity:0;transform:translateY(1.2cqw) scale(.96)}}
.gcard:nth-child(1){animation-delay:.015s}.gcard:nth-child(2){animation-delay:.04s}
.gcard:nth-child(3){animation-delay:.065s}.gcard:nth-child(4){animation-delay:.09s}
.gcard:nth-child(5){animation-delay:.115s}.gcard:nth-child(6){animation-delay:.14s}
.gcard:nth-child(7){animation-delay:.165s}.gcard:nth-child(8){animation-delay:.19s}
.gcard:nth-child(9){animation-delay:.215s}.gcard:nth-child(10){animation-delay:.24s}
.gcard:nth-child(11){animation-delay:.265s}.gcard:nth-child(12){animation-delay:.29s}
.gcard::before{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
  background:radial-gradient(85% 55% at 50% 0%,var(--accent,rgba(255,214,51,.3)),transparent 72%);
  opacity:.2;transition:opacity .2s;
}
.gcard::after{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;
  background:linear-gradient(160deg,rgba(255,255,255,.09),transparent 40%);
  opacity:.7;
}
.gcard:hover{transform:translateY(-.35cqw) scale(1.025);border-color:rgba(255,214,51,.6);box-shadow:0 .8cqw 2.2cqw rgba(0,0,0,.45),0 0 0 1px rgba(255,214,51,.2)}
.gcard:hover::before{opacity:.4}
.gcard:focus-visible{outline:none;border-color:var(--gold);box-shadow:0 0 0 .2cqw rgba(255,214,51,.7)}
.gcard canvas{
  position:relative;z-index:2;
  width:100%;height:auto;aspect-ratio:140/96;display:block;
  border-radius:.72cqw;background:#0c1128;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09),0 .3cqw .8cqw rgba(0,0,0,.3);
  transition:transform .25s ease;
}
.gcard:hover canvas{transform:scale(1.035)}
.gcard h3{position:relative;z-index:2;font-size:1.05cqw;margin-top:.45cqw;font-weight:800;letter-spacing:.01em;transition:color .18s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gcard:hover h3{color:var(--gold)}
.gcard p{position:relative;z-index:2;font-size:.78cqw;color:#95a2c9;font-weight:600;line-height:1.25;margin-top:.1cqw;height:2em;overflow:hidden}
.gcard .gnum{
  position:absolute;top:.45cqw;left:.45cqw;z-index:3;
  font-size:.66cqw;font-weight:800;letter-spacing:.1em;color:#d8e0f7;
  background:rgba(7,10,24,.72);border:1px solid rgba(255,255,255,.18);border-radius:.45cqw;
  padding:.1cqw .38cqw;backdrop-filter:blur(4px);
}
.gcard .gdur{
  position:absolute;top:.45cqw;right:.45cqw;z-index:3;
  font-size:.64cqw;font-weight:800;color:#eaf0ff;letter-spacing:.04em;
  background:rgba(7,10,24,.72);border:1px solid rgba(255,255,255,.18);border-radius:.45cqw;
  padding:.1cqw .34cqw;backdrop-filter:blur(4px);
}
.gcard .gplay{
  position:absolute;inset:auto 0 2.55cqw 0;z-index:3;margin:auto;width:max-content;
  font-size:.66cqw;font-weight:800;letter-spacing:.14em;color:#2a1b02;text-transform:uppercase;
  background:linear-gradient(180deg,#ffe268,#f4a92c);border-radius:.5cqw;padding:.14cqw .55cqw;
  opacity:0;transform:translateY(.5cqw);transition:opacity .18s,transform .18s;
  box-shadow:0 .2cqw .6cqw rgba(0,0,0,.35);
}
.gcard:hover .gplay,.gcard:focus-visible .gplay{opacity:1;transform:none}

/* ======================= PLAYER SETUP ======================= */
.slots{display:grid;grid-template-columns:repeat(4,1fr);gap:1.15cqw;padding:.5cqw 2.6cqw 0;width:100%;position:relative;z-index:2;margin:auto 0 0}
.slot{
  position:relative;border-radius:1.25cqw;padding:.85cqw .9cqw .8cqw;text-align:center;
  background:linear-gradient(180deg,rgba(30,39,78,.9),rgba(15,20,43,.96));
  border:1px solid rgba(255,255,255,.1);
  transition:transform .18s,border-color .2s,box-shadow .2s,opacity .2s;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 .5cqw 1.4cqw rgba(0,0,0,.25);
  overflow:hidden;
}
.slot::before{
  content:'';position:absolute;left:0;right:0;top:0;height:2.2cqw;pointer-events:none;
  background:linear-gradient(180deg,color-mix(in srgb,var(--sc,#4da6ff) 26%,transparent),transparent);
  opacity:.65;transition:opacity .2s;
}
.slot.human{border-color:color-mix(in srgb,var(--sc,#4da6ff) 60%,transparent);box-shadow:0 0 2cqw color-mix(in srgb,var(--sc,#4da6ff) 20%,transparent),inset 0 1px 0 rgba(255,255,255,.12)}
.slot.ai{border-style:dashed;border-color:rgba(255,255,255,.22)}
.slot.bot{border-style:dashed;border-color:rgba(255,255,255,.22)}
.slot.off{opacity:.42;filter:saturate(.35)}
.slot.off .slot-avatar{filter:grayscale(1)}
.slot-head{display:flex;align-items:center;justify-content:space-between;gap:.4cqw;position:relative;z-index:2}
.seat-badge{
  font-size:.7cqw;font-weight:800;letter-spacing:.13em;color:#aab7dd;
  border:1px solid rgba(255,255,255,.16);border-radius:.45cqw;padding:.12cqw .42cqw;
  background:rgba(0,0,0,.2);
}
.slot.human .seat-badge{color:#0e1330;background:var(--sc);border-color:transparent}
.seg-role{display:flex;gap:.16cqw;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.07);border-radius:.55cqw;padding:.14cqw}
.seg-role button{
  font-size:.68cqw;font-weight:800;letter-spacing:.05em;color:#8d9ac2;
  padding:.18cqw .42cqw;border-radius:.38cqw;transition:background .14s,color .14s;
}
.seg-role button:hover{color:#fff;background:rgba(255,255,255,.1)}
.seg-role button.on{background:var(--sc,#4da6ff);color:#0d1230}
.slot-avatar{position:relative;height:9.6cqw;display:grid;place-items:center;margin:.3cqw 0 .25cqw;z-index:2}
.slot-avatar::after{
  content:'';position:absolute;bottom:.2cqw;left:50%;transform:translateX(-50%);
  width:6.4cqw;height:1.25cqw;border-radius:50%;
  background:radial-gradient(50% 50% at 50% 50%,color-mix(in srgb,var(--sc,#4da6ff) 38%,transparent),transparent 72%);
}
.slot canvas{width:8.5cqw;height:9.95cqw;display:block;position:relative;z-index:2;filter:drop-shadow(0 .3cqw .5cqw rgba(0,0,0,.45))}
.slot .sname{font-size:1.4cqw;font-weight:800;line-height:1;position:relative;z-index:2;letter-spacing:.01em}
.slot .keys{font-size:.72cqw;color:#98a5cd;font-weight:700;margin-top:.2cqw;letter-spacing:.08em;position:relative;z-index:2}
.slot-row{
  display:flex;align-items:center;justify-content:space-between;gap:.4cqw;margin-top:.55cqw;
  background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.06);
  border-radius:.6cqw;padding:.22cqw .45cqw;position:relative;z-index:2;
}
.slot-row .sl{font-size:.68cqw;font-weight:800;letter-spacing:.1em;color:#8e9bc3;text-transform:uppercase}
.slot-row .sval{font-size:.78cqw;font-weight:800;color:#e5ebff;display:flex;align-items:center;gap:.3cqw}
.slot .prow{display:flex;justify-content:center;align-items:center;gap:.5cqw;position:relative;z-index:2}
.arrow{width:1.85cqw;height:1.85cqw;border-radius:.5cqw;background:rgba(255,255,255,.08);font-size:.9cqw;font-weight:800;
  display:grid;place-items:center;transition:background .12s,transform .12s;color:#cfd8f5}
.arrow:hover{background:rgba(255,255,255,.2);transform:scale(1.08)}
.arrow:active{transform:scale(.92)}
.swatch{width:1.6cqw;height:1.6cqw;border-radius:50%;border:.18cqw solid rgba(255,255,255,.4);background:var(--c);
  box-shadow:0 0 .9cqw color-mix(in srgb,var(--c) 60%,transparent),inset 0 1px 0 rgba(255,255,255,.5)}
.slot .hatbtn{
  display:flex;align-items:center;justify-content:center;gap:.25cqw;width:100%;margin-top:.55cqw;
  font-size:.76cqw;font-weight:800;padding:.34cqw 0;border-radius:.5cqw;
  background:rgba(255,214,51,.1);color:#ffe17a;border:1px solid rgba(255,214,51,.3);
  transition:background .12s,border-color .12s,transform .12s;position:relative;z-index:2;
}
.slot .hatbtn:hover{background:rgba(255,214,51,.22);border-color:rgba(255,214,51,.55);transform:translateY(-.08cqw)}
.hat-next{
  font-size:.64cqw;font-weight:700;letter-spacing:.03em;color:#95a2c8;
  margin-top:.3cqw;position:relative;z-index:2;
}
.slot-note{
  margin-top:auto;padding-top:.55cqw;font-size:.68cqw;font-weight:700;letter-spacing:.03em;
  color:#95a2c8;position:relative;z-index:2;
}
.slot-note.off{color:#6f7ba0}
.slot-foot{display:flex;align-items:center;gap:2.2cqw;margin-top:1.2cqw;margin-bottom:auto;padding:1.1cqw 2.6cqw 1.4cqw;width:100%;position:relative;z-index:2}
.setting-row{display:flex;align-items:center;gap:.65cqw}
.setting-label{display:flex;align-items:center;gap:.34cqw;font-weight:800;color:#8e9bc3;font-size:.9cqw;letter-spacing:.04em;white-space:nowrap}
.setting-label svg{width:1.1cqw;height:1.1cqw;fill:#8e9bc3}
.seg{display:flex;gap:.22cqw;background:rgba(0,0,0,.26);border:1px solid rgba(255,255,255,.07);border-radius:.75cqw;padding:.18cqw}
.chip{
  padding:.28cqw 1cqw;border-radius:.55cqw;background:transparent;font-size:.95cqw;font-weight:800;color:#9aa7cd;
  transition:background .15s,transform .15s,color .15s,box-shadow .15s;letter-spacing:.02em;
}
.chip:hover{background:rgba(255,255,255,.1);color:#fff}
.chip:focus-visible{outline:.14cqw solid var(--gold);outline-offset:.08cqw}
.chip.on{background:linear-gradient(180deg,#ffe268,#f4a92c);color:#3a2503;box-shadow:0 .18cqw .8cqw rgba(255,214,51,.35),inset 0 1px 0 rgba(255,255,255,.5)}
.start-wrap{margin-left:auto;display:flex;flex-direction:column;align-items:center;gap:.28cqw}
.start-hint{font-size:.72cqw;font-weight:700;color:#7b88b0;letter-spacing:.06em}
.start-hint b{color:#b6c2e6}
.ctrl-hint{width:100%;text-align:center;color:#7885ad;font-size:.86cqw;font-weight:600;pointer-events:none;padding:0 0 1.2cqh;position:relative;z-index:2}
.ctrl-hint b{color:#c3ccef}

/* ======================= HELP ======================= */
.help-tabs{display:flex;gap:.4cqw;padding:0 2.3cqw;width:100%;position:relative;z-index:2;flex:none}
.tab{
  font-size:.95cqw;font-weight:800;letter-spacing:.04em;color:#8d9ac2;
  padding:.44cqw 1.3cqw;border-radius:.7cqw .7cqw 0 0;border:1px solid transparent;border-bottom:none;
  transition:color .15s,background .15s;
}
.tab:hover{color:#fff;background:rgba(255,255,255,.05)}
.tab.on{color:#0e1330;background:linear-gradient(180deg,#ffe268,#f4a92c);border-color:rgba(255,255,255,.4);box-shadow:0 -.2cqw .9cqw rgba(255,214,51,.28)}
.help-body{
  flex:1;min-height:0;width:100%;max-width:76cqw;padding:1.1cqw 2.3cqw 3.2cqh;overflow-y:auto;
  position:relative;z-index:2;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.2) transparent;
  display:flex;flex-direction:column;justify-content:safe center;
}
.help-body::-webkit-scrollbar{width:.45cqw}
.help-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:1cqw}
.tab-panel{display:none;animation:tabIn .28s ease}
.tab-panel.on{display:block}
@keyframes tabIn{from{opacity:0;transform:translateY(.6cqw)}}
.help-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:.9cqw;margin-bottom:1.1cqw}
.pcard{
  position:relative;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.1);border-radius:1cqw;padding:.85cqw .8cqw .9cqw;text-align:center;
  overflow:hidden;
}
.pcard::before{content:'';position:absolute;inset:0 0 auto 0;height:.22cqw;background:var(--pc);box-shadow:0 0 1.2cqw var(--pc)}
.pnum{display:inline-block;font-size:.64cqw;font-weight:800;letter-spacing:.12em;color:#0e1330;background:var(--pc);border-radius:.4cqw;padding:.1cqw .42cqw}
.pcard h3{font-size:1.1cqw;margin:.25cqw 0 .45cqw;font-weight:800}
.keys{display:flex;flex-direction:column;gap:.3cqw;align-items:center}
.keyrow{display:flex;align-items:center;gap:.3cqw;justify-content:center}
.pcard kbd{font-size:.88cqw;min-width:1.9em;height:1.9em;background:#232c55;border-color:#3d487f;color:#dfe6ff}
.keytag{font-size:.68cqw;color:#8b98bf;font-weight:700;letter-spacing:.04em;min-width:2.4em;text-align:left}
.help-cta{
  display:flex;align-items:center;justify-content:space-between;gap:1.4cqw;
  background:linear-gradient(100deg,rgba(255,214,51,.13),rgba(255,154,61,.06));
  border:1px solid rgba(255,214,51,.28);border-radius:1cqw;padding:.8cqw 1.1cqw;margin-bottom:1cqw;
  font-size:.94cqw;color:#d6def7;font-weight:600;
}
.help-cta b{color:var(--gold)}
.tips{list-style:none;display:flex;flex-direction:column;gap:.45cqw}
.tips li{
  position:relative;background:rgba(255,255,255,.035);border-left:.24cqw solid rgba(255,214,51,.75);
  padding:.55cqw .9cqw;border-radius:.55cqw;font-size:.92cqw;font-weight:600;color:#d6def5;line-height:1.35;
}
.tips b{color:var(--gold)}
.flow{
  display:flex;align-items:center;gap:.55cqw;margin-top:1.05cqw;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);
  border-radius:1cqw;padding:.7cqw .9cqw;
}
.flow-step{
  flex:1;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;
  column-gap:.5cqw;align-items:center;
}
.flow-step span{
  grid-row:1 / span 2;width:1.75cqw;height:1.75cqw;border-radius:50%;
  display:grid;place-items:center;font-size:.8cqw;font-weight:800;
  color:#241802;background:linear-gradient(180deg,#ffe268,#f4a92c);
  box-shadow:0 .18cqw .6cqw rgba(255,214,51,.3);
}
.flow-step b{font-size:.86cqw;font-weight:800;color:#fff;line-height:1.1}
.flow-step small{font-size:.7cqw;font-weight:600;color:#8d9ac2;line-height:1.2}
.flow-arrow{flex:none;font-size:.9cqw;color:#5d6b96;font-weight:800}
.mini-head{font-size:1.04cqw;font-weight:800;margin:1.15cqw 0 .6cqw;color:#eaf0ff}
.tip-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:.7cqw}
.tip-card{
  display:flex;gap:.6cqw;align-items:flex-start;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);border-radius:.85cqw;padding:.65cqw .8cqw;
}
.tip-card>span{font-size:1.2cqw;line-height:1.1}
.tip-card b{font-size:.84cqw;font-weight:800;color:#fff;display:block}
.tip-card p{font-size:.74cqw;font-weight:600;color:#95a2c8;line-height:1.35;margin-top:.12cqw}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.85cqw}
.icard{
  background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.09);border-radius:1cqw;padding:.9cqw 1cqw;
}
.ic-emoji{font-size:1.6cqw;line-height:1;filter:drop-shadow(0 .8cqw .8cqw rgba(0,0,0,.3))}
.icard h4{font-size:1.02cqw;font-weight:800;margin:.35cqw 0 .2cqw;color:#fff}
.icard p{font-size:.82cqw;color:#98a5cb;font-weight:600;line-height:1.4}
.icard p b{color:#c9d4f3}
.progress-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5cqw;margin-bottom:1cqw}
.progress-head h3{font-size:1.45cqw;font-weight:800;margin-top:.18cqw}
.trophy-total{
  text-align:center;background:rgba(255,214,51,.1);border:1px solid rgba(255,214,51,.3);
  border-radius:1cqw;padding:.5cqw 1.2cqw;min-width:7cqw;
}
.trophy-total span{display:block;font-size:2cqw;font-weight:800;color:var(--gold);line-height:1}
.trophy-total small{font-size:.64cqw;letter-spacing:.16em;color:#b7a35c;font-weight:800}
.hat-list{display:grid;grid-template-columns:repeat(5,1fr);gap:.7cqw;margin-bottom:1.1cqw}
.hat-item{
  text-align:center;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  border-radius:.85cqw;padding:.65cqw .3cqw;transition:border-color .2s,background .2s;
}
.hat-item.unlocked{border-color:rgba(255,214,51,.4);background:rgba(255,214,51,.08);box-shadow:0 0 1.4cqw rgba(255,214,51,.1)}
.hat-item .hi{font-size:1.7cqw;line-height:1.2;filter:grayscale(1);opacity:.4}
.hat-item.unlocked .hi{filter:none;opacity:1}
.hat-item b{display:block;font-size:.82cqw;margin-top:.2cqw}
.hat-item small{display:block;font-size:.68cqw;color:#8f9cc4;font-weight:700;margin-top:.08cqw}
.hat-item.unlocked small{color:var(--gold)}

/* ======================= INTRO CARD ======================= */
.card{
  position:absolute;left:50%;top:15%;transform:translateX(-50%) translateY(1.2cqw) scale(.86);opacity:0;z-index:45;
  width:42cqw;
  background:linear-gradient(180deg,rgba(22,30,62,.96),rgba(12,17,38,.96));
  border:1px solid rgba(255,255,255,.16);border-radius:1.4cqw;
  padding:1cqw 1.5cqw 1.2cqw;text-align:left;pointer-events:none;
  transition:opacity .3s,transform .4s cubic-bezier(.2,1.3,.4,1);
  box-shadow:0 1.6cqw 4.5cqw rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.12);
  overflow:hidden;
}
.card::before{
  content:'';position:absolute;inset:0 0 auto 0;height:.2cqw;
  background:linear-gradient(90deg,transparent,rgba(255,214,51,.9),transparent);
}
.card.show{opacity:1;transform:translateX(-50%) scale(1)}
.card-top{display:flex;justify-content:space-between;align-items:center;font-size:.72cqw;font-weight:800;letter-spacing:.18em;color:#8491b8;margin-bottom:.6cqw}
.card-top #intro-dur{color:var(--gold);letter-spacing:.08em}
.card-mid{display:grid;grid-template-columns:8.4cqw 1fr;gap:1.1cqw;align-items:center}
.card canvas{width:8.4cqw;height:auto;border-radius:.8cqw;display:block;background:#0d1228;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),0 .4cqw 1cqw rgba(0,0,0,.4)}
.card h3{font-size:2.2cqw;font-weight:800;color:var(--gold);line-height:1.05;text-shadow:0 .14cqw 0 rgba(0,0,0,.4)}
.card p{font-size:.95cqw;color:#c5cff0;font-weight:600;margin-top:.2cqw;line-height:1.35}
.card-keys{margin-top:.85cqw;display:flex;gap:.5cqw;justify-content:flex-start;flex-wrap:wrap}
.card-keys span{
  font-size:.74cqw;font-weight:800;padding:.24cqw .7cqw;border-radius:.55cqw;color:#0e1330;
  animation:keyin .4s cubic-bezier(.2,1.2,.3,1.1) backwards;letter-spacing:.03em;
  box-shadow:0 .2cqw .6cqw rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.45);
}
.card-keys span:nth-child(1){animation-delay:.15s}
.card-keys span:nth-child(2){animation-delay:.22s}
.card-keys span:nth-child(3){animation-delay:.29s}
.card-keys span:nth-child(4){animation-delay:.36s}
@keyframes keyin{from{opacity:0;transform:translateY(.8cqw) scale(.8)}}

/* ======================= OVERLAYS / PANELS ======================= */
.overlay{
  position:absolute;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(80% 70% at 50% 40%,rgba(14,20,44,.55),rgba(3,5,13,.86));
  backdrop-filter:blur(9px) saturate(1.05);
  opacity:0;pointer-events:none;transition:opacity .24s;
  padding:2cqw;
}
.overlay.show{opacity:1;pointer-events:auto}
.panel{
  position:relative;overflow:hidden;
  background:linear-gradient(180deg,#1b2549 0%,#111733 100%);
  border:1px solid rgba(255,255,255,.15);border-radius:1.5cqw;
  padding:1.8cqw 2.6cqw;text-align:center;min-width:30cqw;max-height:94%;
  box-shadow:0 2cqw 6cqw rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.12);
  transform:translateY(1.4cqw) scale(.96);transition:transform .3s cubic-bezier(.2,1.25,.4,1);
}
.panel::before{
  content:'';position:absolute;top:0;left:8%;right:8%;height:2px;
  background:linear-gradient(90deg,transparent,rgba(255,214,51,.8),transparent);
}
.panel::after{
  content:'';position:absolute;left:-20%;right:-20%;top:-60%;height:70%;pointer-events:none;
  background:radial-gradient(50% 60% at 50% 40%,rgba(90,120,255,.16),transparent 70%);
}
.overlay.show .panel{transform:none}
.panel.wide{min-width:43cqw;max-width:66cqw;padding-top:1.5cqw}
.p-icon{
  width:4.4cqw;height:4.4cqw;margin:0 auto .5cqw;border-radius:1.2cqw;
  background:rgba(255,214,51,.12);border:1px solid rgba(255,214,51,.4);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 2.4cqw rgba(255,214,51,.16),inset 0 1px 0 rgba(255,255,255,.16);
}
.p-icon svg{width:52%;height:52%;fill:var(--gold)}
.panel h2{font-size:2.7cqw;font-weight:800;letter-spacing:.03em;margin-bottom:.5cqw;text-shadow:0 .2cqw 0 rgba(0,0,0,.35);position:relative;z-index:2}
.panel-kicker{display:block;font-size:.72cqw;font-weight:800;letter-spacing:.22em;color:#8593bc;margin-bottom:.22cqw;position:relative;z-index:2}
.panel-sub{font-size:.95cqw;color:#9facd2;font-weight:600;line-height:1.4;max-width:32cqw;margin:0 auto .9cqw;position:relative;z-index:2}
.panel .row{display:flex;gap:.8cqw;justify-content:center;margin-top:1.1cqw;flex-wrap:wrap;position:relative;z-index:2}
.panel-foot{margin-top:.9cqw;font-size:.72cqw;font-weight:700;letter-spacing:.08em;color:#6f7ca4;position:relative;z-index:2}
.panel-head{display:flex;align-items:center;gap:1.1cqw;text-align:left;margin-bottom:1.1cqw;position:relative;z-index:2}
.panel-head h2{margin-bottom:0}
.panel-head .btn.close{margin-left:auto}
.panel.settings{width:38cqw;text-align:left}
.panel.credits{width:42cqw;text-align:left}
.panel.credits .panel-head h2{font-size:2.25cqw;white-space:nowrap}
.panel.welcome{width:31cqw;text-align:center}

/* pause buttons stack */
#ov-pause .panel{display:flex;flex-direction:column;align-items:stretch;gap:.5cqw;min-width:23cqw}
#ov-pause .p-icon{margin-bottom:.2cqw}
#ov-pause .panel h2{margin-bottom:.1cqw}
#ov-pause .btn.lg{width:100%}

/* results */
.results-head{display:flex;align-items:center;gap:1.2cqw;text-align:left;margin-bottom:1.1cqw;position:relative;z-index:2}
.win-avatar{
  width:5.2cqw;height:5.2cqw;border-radius:50%;flex:none;display:grid;place-items:center;font-size:2.4cqw;
  background:
    radial-gradient(circle at 38% 30%,rgba(255,255,255,.55),transparent 45%),
    linear-gradient(180deg,var(--c,#ffd633),color-mix(in srgb,var(--c,#ffd633) 55%,#1a2243));
  border:.22cqw solid rgba(255,255,255,.55);
  box-shadow:0 0 2.6cqw color-mix(in srgb,var(--c,#ffd633) 45%,transparent),inset 0 -.35cqw .6cqw rgba(0,0,0,.25);
  animation:avatarPop .5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes avatarPop{from{transform:scale(.4) rotate(-18deg);opacity:0}}
.results-title{flex:1;min-width:0}
.results-title h2{margin-bottom:.1cqw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reward{
  display:inline-block;margin-top:.18cqw;font-size:.78cqw;font-weight:800;letter-spacing:.04em;color:var(--gold);
  background:rgba(255,214,51,.1);border:1px solid rgba(255,214,51,.3);border-radius:.5cqw;padding:.14cqw .6cqw;
  animation:rewardIn .5s .35s both cubic-bezier(.2,1.3,.4,1);
}
@keyframes rewardIn{from{opacity:0;transform:translateY(.5cqw) scale(.9)}}
.results{display:flex;flex-direction:column;gap:.42cqw;margin:0 auto;width:100%;max-width:38cqw;position:relative;z-index:2}
.rrow{
  display:flex;align-items:center;gap:.7cqw;background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.05);border-radius:.7cqw;padding:.4cqw .8cqw;font-weight:800;font-size:1.1cqw;
  opacity:0;transform:translateX(-1.2cqw);animation:slidein .4s forwards;
}
@keyframes slidein{to{opacity:1;transform:none}}
.rrow.first{
  background:linear-gradient(90deg,rgba(255,214,51,.18),rgba(255,214,51,.04));
  border-color:rgba(255,214,51,.5);
  box-shadow:0 0 1.6cqw rgba(255,214,51,.14),inset 0 1px 0 rgba(255,255,255,.1);
}
.rrow .place{width:2.1cqw;font-size:1.15cqw;color:var(--gold);text-align:center}
.rrow .dotp{width:1.05cqw;height:1.05cqw;border-radius:50%;background:var(--c);border:.12cqw solid rgba(255,255,255,.45);flex:none;box-shadow:0 0 .7cqw color-mix(in srgb,var(--c) 65%,transparent)}
.rrow .nm{flex:1;text-align:left;display:flex;align-items:center;gap:.5cqw;font-size:1.08cqw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rrow .nm .you{font-size:.62cqw;letter-spacing:.1em;background:rgba(255,255,255,.12);border-radius:.3cqw;padding:.08cqw .32cqw;color:#aab7dd}
.rrow .sc{color:#fff;font-size:1.1cqw;font-variant-numeric:tabular-nums}
.rrow.first .sc{color:var(--gold)}
.rrow .pts{font-size:.8cqw;color:#8ee08e;background:rgba(88,216,88,.12);border:1px solid rgba(88,216,88,.2);padding:.1cqw .5cqw;border-radius:.4cqw;white-space:nowrap}
.rrow .mvt{font-size:.62cqw;color:#0e1330;background:#ffd633;border-radius:.3cqw;padding:.06cqw .3cqw;letter-spacing:.1em}
.standings{margin:1.1cqw auto 0;text-align:left;width:100%;max-width:38cqw;position:relative;z-index:2}
.standings h4{font-size:.74cqw;color:#8491b8;letter-spacing:.18em;margin-bottom:.45cqw;font-weight:800}
.strow{display:flex;align-items:center;gap:.6cqw;margin-bottom:.32cqw;font-weight:800;font-size:.88cqw}
.strow .nm{width:6.4cqw;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#cfd8f2}
.strow .bar{flex:1;height:1.05cqw;background:rgba(255,255,255,.06);border-radius:.55cqw;overflow:hidden}
.strow .fill{height:100%;border-radius:.55cqw;background:linear-gradient(90deg,color-mix(in srgb,var(--c) 65%,#1a2243),var(--c));width:0;transition:width .8s cubic-bezier(.2,.8,.2,1);box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.strow .pv{width:3.4cqw;color:var(--gold);font-variant-numeric:tabular-nums}
.strow .crown{width:1.2cqw}

/* ======================= PODIUM ======================= */
.podium{text-align:center;position:relative;width:100%}
.podium::before,.podium::after{
  content:'';position:absolute;top:-8cqw;bottom:-4cqw;width:16cqw;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,240,180,.16),transparent 70%);
  clip-path:polygon(45% 0,55% 0,100% 100%,0 100%);
  filter:blur(2px);
}
.podium::before{left:16%}
.podium::after{right:16%;transform:scaleX(-1)}
.podium-kicker{display:block;font-size:.8cqw;font-weight:800;letter-spacing:.25em;color:#9aa7cc;margin-bottom:.2cqw}
.podium h2{font-size:3.6cqw;color:var(--gold);letter-spacing:.04em;animation:bop 2s infinite;text-shadow:0 .2cqw 0 rgba(0,0,0,.4),0 0 3cqw rgba(255,214,51,.25)}
.podium-reward{
  display:inline-block;margin:-.3cqw 0 .4cqw;font-size:.9cqw;font-weight:800;color:var(--gold);
  background:rgba(255,214,51,.1);border:1px solid rgba(255,214,51,.32);border-radius:.6cqw;padding:.2cqw .8cqw;
  animation:rewardIn .5s .8s both cubic-bezier(.2,1.3,.4,1);
}
.steps{display:flex;align-items:flex-end;justify-content:center;gap:1.3cqw;margin:1.6cqw 0 1.3cqw;min-height:23cqh;position:relative;z-index:2}
.pstep{display:flex;flex-direction:column;align-items:center;transform:translateY(6cqh);opacity:0;animation:rise .7s cubic-bezier(.2,1.2,.3,1.15) forwards}
.pstep.p1 .pav{animation:pavglow 1.8s ease-in-out infinite}
@keyframes pavglow{0%,100%{box-shadow:0 0 2.2cqw color-mix(in srgb,var(--c) 55%,transparent)}50%{box-shadow:0 0 4.2cqw color-mix(in srgb,var(--c) 85%,transparent)}}
.pstep:nth-child(1){animation-delay:.3s}
.pstep:nth-child(2){animation-delay:.1s}
.pstep:nth-child(3){animation-delay:.5s}
@keyframes rise{to{transform:none;opacity:1}}
.pstep .pav{
  width:5.4cqw;height:5.4cqw;border-radius:50%;background:var(--c);border:.26cqw solid rgba(255,255,255,.6);
  display:flex;align-items:center;justify-content:center;font-size:2.1cqw;font-weight:800;color:#101020;
  box-shadow:0 0 2.2cqw color-mix(in srgb,var(--c) 55%,transparent);margin-bottom:.5cqw;
}
.pstep .pnm{font-weight:800;font-size:1.2cqw;margin-bottom:.35cqw;color:#eef2ff}
.pstep .block{
  width:9cqw;background:linear-gradient(180deg,#2f3a6e,#182046);border:1px solid rgba(255,255,255,.18);
  border-radius:.7cqw .7cqw 0 0;display:flex;align-items:flex-start;justify-content:center;
  font-size:2.2cqw;font-weight:800;color:var(--gold);padding-top:.5cqw;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 .5cqw 1.4cqw rgba(0,0,0,.35);
}
.pstep.p1 .block{height:10.4cqw;background:linear-gradient(180deg,#4a3a13,#251d09);border-color:rgba(255,214,51,.4)}
.pstep.p2 .block{height:7.2cqw}
.pstep.p3 .block{height:5.2cqw}
.pstep .troph{font-size:.78cqw;color:#9aa7cc;font-weight:700;margin-top:.3cqw}

/* ======================= TOASTS ======================= */
#toasts{position:absolute;bottom:3cqh;left:50%;transform:translateX(-50%);z-index:90;display:flex;flex-direction:column;gap:.5cqw;align-items:center;pointer-events:none}
.toast{
  background:rgba(18,25,52,.97);border:1px solid rgba(255,214,51,.5);color:var(--gold);
  font-weight:800;font-size:1.05cqw;padding:.5cqw 1.4cqw;border-radius:.85cqw;
  animation:toastin .34s cubic-bezier(.2,1.3,.4,1),toastout .4s 3s forwards;
  box-shadow:0 .6cqw 2cqw rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.14);
  display:flex;align-items:center;gap:.45cqw;
}
@keyframes toastin{from{opacity:0;transform:translateY(1.2cqw) scale(.94)}}
@keyframes toastout{to{opacity:0;transform:translateY(.8cqw) scale(.98)}}

/* ======================= SETTINGS / CREDITS ======================= */
.set-row{
  display:flex;align-items:center;justify-content:space-between;gap:1cqw;
  padding:.55cqw .8cqw;border-radius:.7cqw;background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.06);margin-bottom:.4cqw;position:relative;z-index:2;
}
.set-info{text-align:left}
.set-info b{display:block;font-size:.95cqw;font-weight:800;color:#eef2ff}
.set-info small{display:block;font-size:.74cqw;color:#8390b8;font-weight:600;margin-top:.05cqw}
.switch{
  width:3.2cqw;height:1.7cqw;border-radius:1cqw;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.14);position:relative;transition:background .2s,border-color .2s;flex:none;
}
.switch span{
  position:absolute;top:.16cqw;left:.16cqw;width:1.24cqw;height:1.24cqw;border-radius:50%;
  background:#cfd8f2;transition:transform .22s cubic-bezier(.2,1.3,.4,1),background .2s;
  box-shadow:0 .1cqw .3cqw rgba(0,0,0,.4);
}
.switch.on{background:linear-gradient(180deg,#65e873,#2cae4a);border-color:rgba(255,255,255,.3)}
.switch.on span{transform:translateX(1.5cqw);background:#fff}
.set-about{
  margin-top:.8cqw;padding-top:.7cqw;border-top:1px solid rgba(255,255,255,.08);
  font-size:.76cqw;color:#7d8ab1;font-weight:600;text-align:center;position:relative;z-index:2;
}
.set-about b{color:#c6d1ef}
.credits-mark{width:4.4cqw;height:4.4cqw;flex:none;filter:drop-shadow(0 .4cqw .8cqw rgba(0,0,0,.45))}
.credits-mark svg{width:100%;height:100%}
.credits-sub{font-size:.82cqw;color:#93a0c8;font-weight:600;margin-top:.12cqw}
.credits-body{position:relative;z-index:2}
.credit-hero{
  display:flex;align-items:center;justify-content:space-between;gap:1cqw;
  background:linear-gradient(100deg,rgba(255,214,51,.16),rgba(255,154,61,.06));
  border:1px solid rgba(255,214,51,.3);border-radius:.9cqw;padding:.7cqw 1.1cqw;margin-bottom:.9cqw;
}
.credit-hero span{font-size:.86cqw;font-weight:700;color:#b7c2e3;letter-spacing:.05em}
.credit-hero strong{font-size:1.7cqw;font-weight:800;letter-spacing:.14em;color:var(--gold);text-shadow:0 0 .9cqw rgba(255,214,51,.35)}
.credit-list{display:flex;flex-direction:column;gap:.34cqw}
.credit-list div{display:flex;align-items:baseline;justify-content:space-between;gap:1.2cqw;font-size:.8cqw;border-bottom:1px dashed rgba(255,255,255,.07);padding-bottom:.28cqw}
.credit-list b{color:#aab7db;font-weight:700;flex:none}
.credit-list span{color:#e3e9fb;font-weight:700;text-align:right}
.credit-note{font-size:.78cqw;color:#8b98bf;font-weight:600;line-height:1.45;margin-top:.8cqw}
.credit-copy{font-size:.76cqw;color:#6f7ca4;font-weight:700;margin-top:.5cqw;letter-spacing:.05em}
.welcome-art{width:7cqw;height:7cqw;margin:0 auto .5cqw;filter:drop-shadow(0 .6cqw 1.2cqw rgba(0,0,0,.5));animation:bob 3.2s ease-in-out infinite}
.welcome-art svg{width:100%;height:100%}
.panel.welcome h2{font-size:2.4cqw}

/* ======================= TOUCH ======================= */
#touch-ui{position:absolute;inset:0;z-index:50;pointer-events:none}
.tzone{position:absolute;bottom:3.6cqh;display:flex;gap:1.6cqw;pointer-events:auto}
.tzone.tl{left:2.4cqw}.tzone.tr{right:2.4cqw}
.tbtn{
  width:8cqw;height:8cqw;border-radius:50%;font-size:2.8cqw;font-weight:800;color:#fff;
  background:radial-gradient(circle at 38% 30%,rgba(255,255,255,.2),rgba(255,255,255,.07));
  border:2px solid rgba(255,255,255,.3);
  box-shadow:0 .5cqw 1.4cqw rgba(0,0,0,.3),inset 0 2px 0 rgba(255,255,255,.2);
  backdrop-filter:blur(3px);touch-action:none;
}
.tbtn.big{width:10cqw;height:10cqw;font-size:3.4cqw;border-color:rgba(255,214,51,.5);background:radial-gradient(circle at 38% 30%,rgba(255,214,51,.32),rgba(255,214,51,.1))}
.tbtn:active{transform:scale(.94);background:rgba(255,255,255,.28)}
.tzone.tl{flex-wrap:wrap;max-width:26cqw;justify-content:center}
.touch-hint{
  position:absolute;bottom:1cqh;left:50%;transform:translateX(-50%);
  font-size:.8cqw;font-weight:700;color:rgba(255,255,255,.55);letter-spacing:.05em;white-space:nowrap;
}

/* ======================= TUTORIAL ======================= */
.overlay.tut{padding:1.4cqw;z-index:85;align-items:center}
.tut-shell{
  width:100%;max-width:100%;height:auto;max-height:96%;display:flex;flex-direction:column;
  background:linear-gradient(180deg,rgba(24,33,67,.98),rgba(9,13,30,.99));
  border:1px solid rgba(255,255,255,.16);border-radius:1.3cqw;overflow:hidden;
  box-shadow:0 2cqw 6cqw rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.12);
  animation:tutIn .4s cubic-bezier(.2,1.2,.4,1) both;
}
@keyframes tutIn{from{opacity:0;transform:scale(.97) translateY(1cqw)}}
.tut-head{
  display:flex;align-items:center;justify-content:space-between;gap:1cqw;
  padding:.7cqw 1.1cqw;border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.04),transparent);flex:none;
}
.tut-brand{display:flex;align-items:center;gap:.5cqw}
.tut-dot{width:.42cqw;height:.42cqw;border-radius:50%;background:var(--gold);box-shadow:0 0 1cqw var(--gold)}
.tut-kicker{font-size:.72cqw;font-weight:800;letter-spacing:.2em;color:#9ba8cf}
.tut-stepno{font-size:.7cqw;font-weight:800;color:var(--gold);background:rgba(255,214,51,.1);border:1px solid rgba(255,214,51,.26);border-radius:.4cqw;padding:.08cqw .45cqw;margin-left:.3cqw}
.tut-body{flex:1;min-height:0;display:grid;grid-template-columns:1.22fr .92fr;gap:1.1cqw;padding:1.1cqw}
.tut-stage{
  position:relative;display:flex;flex-direction:column;justify-content:center;gap:.6cqw;min-height:0;
}
#tut-cv{
  width:100%;height:auto;max-height:100%;aspect-ratio:16/9;display:block;
  border-radius:.9cqw;border:1px solid rgba(255,255,255,.14);
  background:#0d1330;
  box-shadow:0 .8cqw 2cqw rgba(0,0,0,.45),inset 0 0 0 1px rgba(255,255,255,.04);
}
.tut-live{display:flex;align-items:center;justify-content:space-between;gap:1cqw;padding:0 .2cqw}
.tut-keypad{display:flex;gap:.3cqw;align-items:flex-end}
.tk{
  display:inline-flex;align-items:center;justify-content:center;gap:.24cqw;
  min-width:2.1cqw;height:2.1cqw;padding:0 .4cqw;border-radius:.42cqw;
  background:linear-gradient(180deg,#2b3566,#1a2244);border:1px solid rgba(255,255,255,.18);border-bottom-width:3px;
  font-size:.8cqw;font-weight:800;color:#dfe7ff;transition:transform .08s,background .12s,box-shadow .12s;
  cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;
}
.tk em{font-style:normal;font-size:.62cqw;color:#93a0c8;font-weight:700;letter-spacing:.04em}
.tk.wide{min-width:4.6cqw}
.tk.on{background:linear-gradient(180deg,#ffe268,#f4a92c);color:#3a2503;border-color:rgba(255,255,255,.5);transform:translateY(.16cqw);box-shadow:0 0 1.2cqw rgba(255,214,51,.45)}
.tut-alt{font-size:.76cqw;color:#7f8cb5;font-weight:600}
.tut-alt b{color:#c5cff0}
.tut-panel{
  display:flex;flex-direction:column;min-height:0;padding:.3cqw .2cqw;
}
.tut-tag{font-size:.68cqw;font-weight:800;letter-spacing:.2em;color:var(--gold);background:rgba(255,214,51,.1);border:1px solid rgba(255,214,51,.24);border-radius:.4cqw;padding:.1cqw .5cqw;align-self:flex-start}
.tut-panel h2{font-size:1.95cqw;font-weight:800;line-height:1.08;margin:.45cqw 0 .4cqw;text-shadow:0 .15cqw 0 rgba(0,0,0,.35)}
.tut-panel p{font-size:.92cqw;color:#b9c5e6;font-weight:600;line-height:1.45}
.tut-points{list-style:none;display:flex;flex-direction:column;gap:.3cqw;margin-top:.6cqw}
.tut-points li{display:flex;gap:.45cqw;align-items:flex-start;font-size:.82cqw;color:#a8b5d9;font-weight:600;line-height:1.35}
.tut-points li::before{content:'▸';color:var(--gold);font-weight:800;flex:none}
.tut-points b{color:#e4eaff}
.tut-task{
  margin-top:auto;display:flex;align-items:center;gap:.6cqw;
  background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);border-radius:.75cqw;
  padding:.55cqw .8cqw;font-size:.82cqw;font-weight:700;color:#a9b5d8;line-height:1.3;
}
.tut-task.done{background:rgba(88,216,88,.1);border-color:rgba(88,216,88,.4);color:#a9f0a9}
.tut-check{
  width:1.5cqw;height:1.5cqw;border-radius:50%;border:2px solid rgba(255,255,255,.24);flex:none;
  display:grid;place-items:center;font-size:.8cqw;color:#8794bb;transition:all .2s;
}
.tut-task.done .tut-check{background:#58d858;border-color:#58d858;color:#05280d;content:'✓'}
.tut-nav{display:flex;align-items:center;gap:.6cqw;margin-top:.8cqw}
.tut-nav .btn:last-child{margin-left:auto}
.tut-nav .btn.ready{animation:readyPulse 1.5s ease-in-out infinite}
@keyframes readyPulse{0%,100%{box-shadow:0 .42cqw 0 #9a6306,0 1cqw 2.4cqw rgba(0,0,0,.4),0 0 0 0 rgba(255,214,51,.4)}50%{box-shadow:0 .42cqw 0 #9a6306,0 1cqw 2.4cqw rgba(0,0,0,.4),0 0 0 .6cqw rgba(255,214,51,0)}}
.tut-dots{display:flex;gap:.3cqw;margin-top:.7cqw}
.tut-dots i{width:.42cqw;height:.42cqw;border-radius:1cqw;background:rgba(255,255,255,.16);transition:all .25s}
.tut-dots i.on{width:1.5cqw;background:var(--gold)}
.tut-dots i.done{background:rgba(255,214,51,.5)}
.tut-head .btn.sm{height:1.9cqw;font-size:.78cqw}

/* ======================= ROTATE HINT ======================= */
#rotate-hint{
  position:absolute;inset:0;z-index:300;display:none;flex-direction:column;align-items:center;justify-content:center;gap:1.4cqw;
  background:linear-gradient(180deg,#0a0f24,#06080f);text-align:center;padding:6cqw;
}
#rotate-hint b{font-size:3.4cqw;font-weight:800;color:#fff}
#rotate-hint span{font-size:2cqw;color:#8f9cc4;font-weight:600}
.rot-icon{font-size:8cqw;animation:rot 2.4s ease-in-out infinite}
@keyframes rot{0%,20%{transform:rotate(0)}55%,100%{transform:rotate(90deg)}}

@media (orientation:portrait) and (max-width:820px){
  #rotate-hint{display:flex}
}

/* ======================= RESPONSIVE TWEAKS ======================= */
@media (max-width:1060px){
  .grid{grid-template-columns:repeat(4,1fr);gap:1.1cqw}
  .gcard h3{font-size:1.3cqw}
  .gcard p{font-size:.95cqw;height:2.4em}
  #scr-games{overflow-y:auto}
  .slot-avatar{height:9cqw}
  .slot canvas{width:8cqw;height:9.4cqw}
}
@media (max-width:760px){
  #wrap{border-radius:0}
  .grid{grid-template-columns:repeat(3,1fr)}
  .slots{grid-template-columns:repeat(2,1fr);gap:1.4cqw;overflow-y:auto}
  .help-cols{grid-template-columns:repeat(2,1fr)}
  .info-grid{grid-template-columns:repeat(2,1fr)}
  .hat-list{grid-template-columns:repeat(3,1fr)}
  .credit .ver,.credit .sep{display:none}
  .logo{margin-top:0}
  .menu-hint{display:none}
  .btn.xl{height:4.6cqw;font-size:2.1cqw}
  .menu{gap:1.1cqw}
  .foot-stats .stat:nth-child(3){display:none}
  .tut-body{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  #tut-cv{max-height:26cqw}
  .tut-panel h2{font-size:2.5cqw}
  .tut-panel p{font-size:1.2cqw}
  .tut-points li{font-size:1.05cqw}
  .tut-task{font-size:1.05cqw;margin-top:.6cqw}
  .tut-nav{margin-top:.6cqw}
  .tut-dots{display:none}
}
@media (pointer:coarse){
  .icobtn{width:4.4cqw;height:4.4cqw}
  .arrow{width:2.4cqw;height:2.4cqw;font-size:1.1cqw}
  .seg-role button{padding:.28cqw .5cqw}
  .chip{padding:.4cqw 1.1cqw}
  .btn.back{width:4.2cqw;height:4.2cqw}
}
@media (max-height:520px){
  .menu-hint,.menu-foot .credit{display:none}
  .logo .l2{font-size:7cqw}
  .menu{margin-top:1.8cqw}
  .tagline{margin-top:1cqw}
}

/* respect users who prefer less motion */
@media (prefers-reduced-motion: reduce){
  .menu .btn,.menu-sub,.gcard,.card-keys span,.tab-panel{animation:none!important}
  .l2 span{animation:none!important}
  .logo::before,.splash-rays{animation:none!important;opacity:0}
  .pstep.p1 .pav,.podium h2,.brandmark,.welcome-art,.splash-start,.rot-icon{animation:none!important}
  .btn::after{display:none}
  .tut-nav .btn.ready{animation:none!important}
  *{scroll-behavior:auto!important}
}

/* ==========================================================================
   BOXCADE 1.3 — ART DIRECTION PASS
   "Midnight carnival": warm gold key light, deep indigo surfaces, hand-drawn
   iconography, printed-poster thumbnails and a consistent material language.
   This section intentionally sits last so it can refine the base system.
   ========================================================================== */

/* ---- shared material: paper grain, film vignette, glass ------------------ */
#wrap::before{
  content:'';position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;
  background:var(--grain);background-size:150px 150px;opacity:.055;mix-blend-mode:overlay;
}
#wrap::after{
  content:'';position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;
  box-shadow:inset 0 0 7cqw rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.08);
}
#wrap{border-radius:1.25cqw;box-shadow:0 2.4cqw 7cqw rgba(0,0,0,.78),0 0 0 1px rgba(255,255,255,.07),0 0 8cqw rgba(78,110,220,.12) inset}

/* ==========================================================================
   SPLASH
   ========================================================================== */
#splash{
  background:
    radial-gradient(70% 58% at 50% 36%,rgba(44,66,146,.5),transparent 68%),
    linear-gradient(180deg,#0a1028,#05070f);
}
.splash-art{position:absolute;inset:-2%;width:104%;height:104%;opacity:.95;animation:splashArtIn 1.6s ease both}
@keyframes splashArtIn{from{opacity:0;transform:scale(1.07)}}
#splash::after{
  content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(52% 62% at 50% 42%,rgba(6,9,22,.72),rgba(6,9,22,.18) 62%,rgba(4,6,13,.7) 100%),
    linear-gradient(0deg,rgba(4,6,13,.86),transparent 38%);
}
.splash-rays{z-index:2;opacity:.2}
.splash-grain{position:absolute;inset:0;z-index:2;pointer-events:none;background:var(--grain);background-size:160px 160px;opacity:.07;mix-blend-mode:overlay}
.splash-inner{z-index:4;gap:0}
.splash-eyebrow{
  font-size:.82cqw;font-weight:800;letter-spacing:.42em;text-indent:.42em;color:#ffd76a;
  padding:.34cqw 1.2cqw;border:1px solid rgba(255,210,61,.28);border-radius:2cqw;
  background:rgba(255,210,61,.06);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 0 2cqw rgba(255,180,40,.12);
  margin-bottom:1.2cqw;animation:splashIn .9s .1s both;
}
.brandmark{width:10.6cqw;height:10.6cqw;filter:drop-shadow(0 1.2cqw 2cqw rgba(0,0,0,.6)) drop-shadow(0 0 2.4cqw rgba(255,190,60,.18))}
.splash-title{margin-top:.7cqw}
.splash-title b{font-size:6.9cqw;letter-spacing:.045em}
.splash-tag{margin-top:1.05cqw;color:#c8d4f6;font-size:1.28cqw;letter-spacing:.08em}
.splash-load{margin-top:2cqw;height:.42cqw;background:rgba(255,255,255,.09);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.splash-load i{background:linear-gradient(90deg,#ff9a3d,#ffd23d 60%,#fff2a8);box-shadow:0 0 1.2cqw rgba(255,190,50,.6)}
.splash-start{
  margin-top:2.2cqw;display:inline-flex;align-items:center;gap:.9cqw;font-size:1.55cqw;
  letter-spacing:.14em;padding:.72cqw 2.7cqw .78cqw 1.1cqw;border-radius:1.15cqw;
  background:linear-gradient(180deg,#ffe985 0%,#ffd23d 42%,#f2a518 100%);
  box-shadow:0 .52cqw 0 #8f5c04,0 1.4cqw 3cqw rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.9),0 0 3.4cqw rgba(255,190,50,.22);
}
.ss-play{
  width:2.35cqw;height:2.35cqw;border-radius:50%;display:grid;place-items:center;
  background:rgba(58,34,2,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 0 1px rgba(58,34,2,.18);
}
.ss-play svg{width:48%;height:48%;fill:#3a2202;margin-left:.14em}
.splash-start span:last-child{text-shadow:0 1px 0 rgba(255,255,255,.4)}
.splash-note{margin-top:1.5cqw;color:#93a0c8;font-size:1cqw}
.splash-credit{color:#b9c5e6}
.splash-credit strong{color:var(--gold)}

/* ==========================================================================
   MENU
   ========================================================================== */
#scr-menu{
  background:
    radial-gradient(52% 62% at 50% 34%,rgba(7,11,28,.12),rgba(6,9,22,.56) 72%),
    linear-gradient(180deg,rgba(8,12,30,.28),rgba(4,7,16,.74));
}
#scr-menu::after{
  content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(34% 42% at 10% 82%,rgba(255,130,60,.16),transparent 68%),
    radial-gradient(30% 40% at 92% 78%,rgba(70,180,255,.14),transparent 68%),
    radial-gradient(60% 50% at 50% 0%,rgba(120,150,255,.1),transparent 65%),
    linear-gradient(0deg,rgba(4,7,16,.72),transparent 44%);
  mix-blend-mode:screen;
  opacity:.9;
}
#scr-menu::before{z-index:2}
.menu-inner{z-index:3}
.menu-foot,#demo-pill{z-index:4}
#scr-menu::before{
  background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:2.6cqw 2.6cqw;opacity:.55;
}
.menu-inner::before,.menu-inner::after{
  content:'';position:absolute;pointer-events:none;border-radius:50%;filter:blur(3cqw);z-index:0;
}
.menu-inner::before{width:36cqw;height:36cqw;left:-6cqw;top:8cqw;background:radial-gradient(circle,rgba(255,122,93,.14),transparent 66%)}
.menu-inner::after{width:42cqw;height:42cqw;right:-8cqw;top:2cqw;background:radial-gradient(circle,rgba(79,220,255,.13),transparent 66%)}
.menu-kicker{
  position:relative;z-index:2;display:flex;align-items:center;gap:.85cqw;
  font-size:.76cqw;font-weight:800;letter-spacing:.32em;text-indent:.32em;color:#9fb0dc;
  margin-bottom:1.1cqw;animation:menuin .5s .02s var(--ease) backwards;
}
.menu-kicker i{width:2.4cqw;height:1px;background:linear-gradient(90deg,transparent,rgba(255,210,61,.65));display:block}
.menu-kicker i:last-child{background:linear-gradient(270deg,transparent,rgba(255,210,61,.65))}
.logo{margin-top:0}
.l2{font-size:8.4cqw;margin-top:0;filter:drop-shadow(0 1.1cqw 2cqw rgba(0,0,0,.55))}
.l2 span{letter-spacing:.055em}
.logo::after{
  content:'';position:absolute;left:50%;bottom:-.5cqw;transform:translateX(-50%);
  width:60%;height:.22cqw;border-radius:2cqw;
  background:radial-gradient(closest-side,rgba(255,210,61,.85),rgba(255,210,61,0));
  filter:blur(1px);
}
.tagline{
  margin-top:1.25cqw;color:#e8eeff;font-size:1.22cqw;letter-spacing:.05em;
  background:rgba(11,16,38,.66);border:1px solid rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 .5cqw 1.4cqw rgba(0,0,0,.32);
}
.menu{margin-top:2.3cqw;gap:.78cqw}
.btn.xl{font-size:1.8cqw;height:4cqw;min-width:25.5cqw;padding:0 2.3cqw;gap:.85cqw;border-radius:1cqw}
.btn.xl .ic{width:1.5em;height:1.5em;padding:.2em;border-radius:.3em;background:rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.16)}
.btn.xl.primary .ic{background:rgba(58,34,2,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.28)}
.btn.md .ic{width:1.32em;height:1.32em}
.menu .btn{box-shadow:0 .4cqw 0 rgba(4,6,16,.7),0 1cqw 2.4cqw rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.12)}
.menu .btn:hover{box-shadow:0 .55cqw 0 rgba(4,6,16,.7),0 1.3cqw 3cqw rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.2)}
.menu .btn.primary{box-shadow:0 .46cqw 0 #8f5c04,0 1.2cqw 2.8cqw rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.85),0 0 2.6cqw rgba(255,190,50,.18)}
.menu-hint{margin-top:1.3cqw;color:#a4b0d4;font-size:.95cqw}
.menu-hint b{color:#ffe28a;font-weight:800}
.menu-hint .dot{background:var(--green);box-shadow:0 0 1cqw var(--green)}
.menu-foot{
  background:linear-gradient(0deg,rgba(4,7,16,.92),rgba(4,7,16,.5) 55%,transparent);
  padding:1.3cqw 1.9cqw 1.05cqw;
}
.foot-stats{gap:.6cqw}
.foot-stats .stat{
  padding:.3cqw .8cqw;border-radius:1.2cqw;gap:.42cqw;
  background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);transition:background .2s,transform .2s;
}
.foot-stats .stat:hover{background:rgba(255,255,255,.1);transform:translateY(-1px)}
.foot-stats .stat svg{width:1.12em;height:1.12em;overflow:visible}
.foot-stats .stat:nth-child(1) svg{color:var(--gold)}
.foot-stats .stat:nth-child(2) svg{color:#e3ebff}
.foot-stats .stat:nth-child(3) svg{color:var(--cyan)}
.foot-stats .stat b{color:#fff;font-variant-numeric:tabular-nums}
#demo-pill{border-radius:1.2cqw;padding:.38cqw .9cqw;background:rgba(8,12,28,.74);border-color:rgba(255,255,255,.14)}
#demo-pill .dp-kicker{color:#9aa8d2}
#demo-name{color:#ffe28a}

/* primary CTA gets a slow carnival shimmer */
.btn.primary{background-image:linear-gradient(180deg,#ffe985 0%,#ffd23d 46%,#f3a421 100%)}
.btn.primary::before{
  content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;opacity:.5;
  background:repeating-linear-gradient(115deg,rgba(255,255,255,.16) 0 2px,transparent 2px 13px);
  mask-image:linear-gradient(180deg,#000,transparent 70%);
  -webkit-mask-image:linear-gradient(180deg,#000,transparent 70%);
}
.btn.primary span,.btn.primary .ic,.btn.primary em{position:relative;z-index:2}
.btn .ic{transition:transform .25s cubic-bezier(.2,1.5,.4,1)}
.btn:hover .ic{transform:translateY(-.06em) rotate(-5deg) scale(1.07)}
.btn.go{border-radius:1.1cqw;background-image:linear-gradient(180deg,#7bf08a,#2fb84f 60%,#1c8f3b)}
.btn.go::before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.28),transparent 52%)}

/* ==========================================================================
   ICON BUTTONS
   ========================================================================== */
.icobtn{
  border-radius:.95cqw;background:linear-gradient(180deg,rgba(32,42,80,.86),rgba(12,18,40,.9));
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 .22cqw 0 rgba(3,5,12,.6),inset 0 1px 0 rgba(255,255,255,.14),0 .6cqw 1.4cqw rgba(0,0,0,.28);
}
.icobtn svg{filter:drop-shadow(0 1px 0 rgba(0,0,0,.45));transition:transform .3s cubic-bezier(.2,1.4,.4,1)}
.icobtn:hover{border-color:rgba(255,210,61,.42);background:linear-gradient(180deg,rgba(46,58,104,.95),rgba(20,28,58,.95))}
.icobtn:hover svg{transform:rotate(-8deg) scale(1.06)}
.icobtn:active{transform:translateY(.1cqw) scale(.95)}

/* ==========================================================================
   SCREEN HEADS
   ========================================================================== */
#scr-games,#scr-players,#scr-help{
  background:
    radial-gradient(70% 62% at 50% -6%,rgba(58,80,164,.3),transparent 64%),
    radial-gradient(40% 40% at 88% 20%,rgba(255,150,80,.07),transparent 70%),
    linear-gradient(180deg,#0a1024 0%,#060a18 100%);
}
#scr-games::before,#scr-players::before,#scr-help::before{
  background-image:radial-gradient(rgba(255,255,255,.055) 1px,transparent 1px);
  background-size:2.8cqw 2.8cqw;opacity:.5;
}
.scr-head{
  padding:1.55cqw 15.4cqw 1.15cqw 2.2cqw;gap:1.15cqw;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(255,255,255,.035),transparent);
  box-shadow:0 1px 0 rgba(0,0,0,.25);
}
.scr-head::after{
  content:'';position:absolute;left:2.2cqw;right:15.4cqw;bottom:-1px;height:1px;
  background:linear-gradient(90deg,rgba(255,210,61,.55),rgba(255,210,61,.08) 34%,transparent 70%);
}
.scr-head h2{font-size:2.7cqw;letter-spacing:.015em;text-shadow:0 .16cqw 0 rgba(0,0,0,.4),0 .5cqw 1.2cqw rgba(0,0,0,.25)}
.kicker{display:flex;align-items:center;gap:.42cqw;color:#8b99c4;font-size:.74cqw;letter-spacing:.22em}
.kicker::before{content:'';width:.34cqw;height:.34cqw;border-radius:50%;background:var(--gold);box-shadow:0 0 .7cqw rgba(255,210,61,.85);flex:none}
.head-badge{
  padding:.36cqw 1cqw;border-radius:2cqw;color:#ffe28a;letter-spacing:.15em;
  background:linear-gradient(180deg,rgba(255,210,61,.16),rgba(255,210,61,.07));
  border:1px solid rgba(255,210,61,.32);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 0 1.6cqw rgba(255,190,40,.1);
}
.btn.back{
  background:linear-gradient(180deg,rgba(38,49,92,.9),rgba(14,20,44,.95));
  border:1px solid rgba(255,255,255,.14);border-radius:.95cqw;
  box-shadow:0 .24cqw 0 rgba(3,5,12,.6),inset 0 1px 0 rgba(255,255,255,.14);
}
.btn.back:hover{background:linear-gradient(180deg,rgba(58,72,126,.95),rgba(24,32,64,.95));border-color:rgba(255,210,61,.38)}
.btn.back svg{transition:transform .2s var(--ease)}
.btn.back:hover svg{transform:translateX(-.12cqw)}

/* ==========================================================================
   GAME GRID — printed poster cards
   ========================================================================== */
.grid{grid-template-columns:repeat(6,1fr);gap:1.05cqw;padding:.75cqw 2.2cqw 1.6cqw}
.gcard{
  padding:.52cqw .52cqw .72cqw;border-radius:1.15cqw;
  background:
    linear-gradient(180deg,rgba(255,255,255,.055),transparent 30%),
    linear-gradient(180deg,#141b38,#0b1024);
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 .38cqw 0 rgba(2,4,10,.55),0 .9cqw 2cqw rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.09);
  isolation:isolate;
}
.gcard::before{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
  background:radial-gradient(66% 62% at var(--mx,50%) var(--my,0%),color-mix(in srgb,var(--accent) 40%,transparent),transparent 72%);
  opacity:0;transition:opacity .28s ease;
}
.gcard::after{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;
  background:linear-gradient(155deg,rgba(255,255,255,.10),transparent 34%);
  opacity:.6;
}
.gcard:hover{
  transform:translateY(-.42cqw) scale(1.022);border-color:color-mix(in srgb,var(--accent) 58%,transparent);
  box-shadow:0 .9cqw 2.6cqw rgba(0,0,0,.5),0 0 0 1px color-mix(in srgb,var(--accent) 30%,transparent),0 0 2.4cqw color-mix(in srgb,var(--accent) 18%,transparent);
}
.gcard:hover::before{opacity:.55}
.gcard:active{transform:translateY(-.12cqw) scale(.995)}
.gcard canvas{
  border-radius:.8cqw;background:#0b1024;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 .35cqw .9cqw rgba(0,0,0,.38);
  transition:transform .35s cubic-bezier(.2,.9,.3,1.1);
}
.gcard:hover canvas{transform:scale(1.045)}
.gcard h3{
  font-size:1.05cqw;margin-top:.42cqw;display:flex;align-items:center;justify-content:center;gap:.3cqw;
  letter-spacing:.015em;
}
.gcard h3::before{
  content:'';width:.3cqw;height:.3cqw;border-radius:50%;flex:none;
  background:var(--accent);box-shadow:0 0 .55cqw var(--accent);opacity:.85;
}
.gcard p{color:#93a0c8;font-size:.76cqw;margin-top:.08cqw;height:2.1em}
.gcard:hover h3{color:#ffe28a}
.gcard .gnum{
  top:.42cqw;left:.42cqw;padding:.12cqw .42cqw;border-radius:.45cqw;
  color:#e7edff;background:rgba(6,9,20,.78);border:1px solid rgba(255,255,255,.2);
  letter-spacing:.12em;box-shadow:0 1px 0 rgba(0,0,0,.35);backdrop-filter:blur(6px);
}
.gcard .gnum::after{content:'';position:absolute;left:.42cqw;right:.42cqw;bottom:-.08cqw;height:1px;background:color-mix(in srgb,var(--accent) 70%,transparent)}
.gcard .gdur{
  top:.42cqw;right:.42cqw;display:inline-flex;align-items:center;gap:.2em;
  padding:.12cqw .36cqw;border-radius:.45cqw;background:rgba(6,9,20,.78);
  border:1px solid rgba(255,255,255,.2);color:#f2f5ff;font-size:.62cqw;
  box-shadow:0 1px 0 rgba(0,0,0,.35);backdrop-filter:blur(6px);
}
.gcard .gdur svg{width:.95em;height:.95em;color:var(--accent);overflow:visible}
.gcard .gplay{
  top:38%;left:50%;right:auto;bottom:auto;inset:auto;
  display:inline-flex;align-items:center;gap:.3cqw;
  padding:.34cqw .72cqw .38cqw .55cqw;border-radius:2cqw;
  font-size:.7cqw;letter-spacing:.13em;color:#3a2202;
  background:linear-gradient(180deg,#ffe985,#ffd23d 55%,#f2a518);
  border:1px solid rgba(255,255,255,.6);
  box-shadow:0 .25cqw 0 #8f5c04,0 .6cqw 1.4cqw rgba(0,0,0,.45);
  transform:translate(-50%,-34%) scale(.82);
  transition:opacity .2s,transform .28s cubic-bezier(.2,1.4,.4,1);
}
.gcard .gplay svg{width:1.1em;height:1.1em;color:#3a2202;overflow:visible}
.gcard:hover .gplay,.gcard:focus-visible .gplay{opacity:1;transform:translate(-50%,-50%) scale(1)}
.gcard:focus-visible{outline:none;border-color:var(--gold);box-shadow:0 0 0 .22cqw rgba(255,210,61,.75),0 .9cqw 2.4cqw rgba(0,0,0,.45)}

/* stats strip */
.games-extra{padding:0 2.2cqw;width:100%;margin:.35cqw auto auto;gap:.85cqw}
.gx{
  border-radius:.95cqw;padding:.72cqw .95cqw;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.022));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .2s,background .2s,border-color .2s;
}
.gx:hover{transform:translateY(-.18cqw);background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.03));border-color:rgba(255,255,255,.16)}
.gx-ico{
  width:2.35cqw;height:2.35cqw;border-radius:.65cqw;
  background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.gx-ico svg{width:58%;height:58%;color:var(--gold);overflow:visible;filter:drop-shadow(0 .1cqw .3cqw rgba(0,0,0,.35))}
.gx:nth-child(2) .gx-ico svg{color:var(--cyan)}
.gx:nth-child(3) .gx-ico svg{color:#ffb37a}
.gx b{font-size:.9cqw}
.gx span{font-size:.74cqw}
.gx-cta{
  background:linear-gradient(120deg,rgba(255,210,61,.16),rgba(255,154,61,.06) 60%,rgba(255,255,255,.02));
  border-color:rgba(255,210,61,.3);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 0 2cqw rgba(255,190,40,.08);
}
.gx-cta:hover .mini-arrow{transform:translateX(.22cqw)}
.scr-foot-hint{color:#7885ad;font-size:.88cqw}
.scr-foot-hint b{color:#d6def7}

/* ==========================================================================
   PLAYER SETUP
   ========================================================================== */
.slots{gap:1.05cqw;padding:.65cqw 2.2cqw 0}
.slot{
  border-radius:1.35cqw;padding:.9cqw .95cqw .85cqw;
  background:
    linear-gradient(180deg,rgba(255,255,255,.055),transparent 26%),
    linear-gradient(180deg,rgba(27,36,73,.94),rgba(11,16,36,.97));
  border:1px solid rgba(255,255,255,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 .7cqw 1.8cqw rgba(0,0,0,.32);
}
.slot::before{
  height:3px;top:0;opacity:1;
  background:linear-gradient(90deg,transparent,var(--sc,#4da6ff) 24%,color-mix(in srgb,var(--sc,#4da6ff) 60%,#fff) 50%,var(--sc,#4da6ff) 76%,transparent);
  box-shadow:0 0 1.2cqw color-mix(in srgb,var(--sc,#4da6ff) 60%,transparent);
}
.slot.human{
  border-color:color-mix(in srgb,var(--sc,#4da6ff) 58%,transparent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 0 2.2cqw color-mix(in srgb,var(--sc,#4da6ff) 22%,transparent),0 .7cqw 1.8cqw rgba(0,0,0,.34);
}
.slot.human::after{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(70% 40% at 50% 0,color-mix(in srgb,var(--sc) 18%,transparent),transparent 70%);
}
.slot.seat-swap{animation:seatSwap .3s var(--ease)}
@keyframes seatSwap{0%{transform:scale(1)}45%{transform:scale(.985)}100%{transform:scale(1)}}
.seat-badge{letter-spacing:.15em;color:#b7c3e6;background:rgba(0,0,0,.24);border-color:rgba(255,255,255,.14)}
.slot.human .seat-badge{background:var(--sc);color:#0b0f20;box-shadow:0 0 .8cqw color-mix(in srgb,var(--sc) 55%,transparent)}
.seg-role{position:relative;background:rgba(3,6,16,.5);border-color:rgba(255,255,255,.08);border-radius:.62cqw;padding:.15cqw;isolation:isolate}
.seg-role::before{
  content:'';position:absolute;z-index:0;top:.15cqw;bottom:.15cqw;left:.15cqw;
  width:calc((100% - .3cqw)/var(--n,3));border-radius:.44cqw;
  background:var(--sc,#4da6ff);
  box-shadow:0 .12cqw .5cqw color-mix(in srgb,var(--sc,#4da6ff) 50%,transparent),inset 0 1px 0 rgba(255,255,255,.35);
  transform:translateX(calc(var(--i,0) * 100%));
  transition:transform .28s cubic-bezier(.2,1.3,.4,1),background .25s;
}
.seg-role button{position:relative;z-index:1;background:none}
.seg-role button:hover{background:none;color:#fff}
.seg-role button.on{background:none;color:#0b0f20}
.slot-avatar{height:9.5cqw}
.slot-avatar::before{
  content:'';position:absolute;top:50%;left:50%;width:7.6cqw;height:7.6cqw;transform:translate(-50%,-50%);
  border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--sc) 26%,transparent),transparent 68%);
  filter:blur(.35cqw);
}
.slot-avatar::after{
  width:6.8cqw;height:1.1cqw;
  background:radial-gradient(50% 50% at 50% 50%,color-mix(in srgb,var(--sc) 55%,transparent),transparent 72%);
}
.slot canvas{filter:drop-shadow(0 .45cqw .55cqw rgba(0,0,0,.5))}
.slot .sname{font-size:1.45cqw;letter-spacing:.02em;text-shadow:0 .12cqw 0 rgba(0,0,0,.35)}
.slot .keys{color:#9aa8cf}
.slot-row{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.07);box-shadow:inset 0 1px 0 rgba(255,255,255,.045)}
.slot-row .sl{color:#93a0c8}
.arrow{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.08)}
.arrow:hover{border-color:rgba(255,210,61,.45);background:rgba(255,255,255,.17)}
.swatch{box-shadow:0 0 1cqw color-mix(in srgb,var(--c) 70%,transparent),inset 0 1px 0 rgba(255,255,255,.6),0 0 0 2px rgba(0,0,0,.22)}
.slot .hatbtn{
  gap:.34cqw;background:linear-gradient(180deg,rgba(255,210,61,.14),rgba(255,210,61,.06));
  border-color:rgba(255,210,61,.32);color:#ffe28a;
}
.slot .hatbtn svg{width:1.15em;height:1.15em;color:#ffd23d;overflow:visible}
.slot .hatbtn:hover{background:linear-gradient(180deg,rgba(255,210,61,.24),rgba(255,210,61,.1));border-color:rgba(255,210,61,.55);transform:translateY(-.1cqw)}
.hat-next{color:#9aa8cf}
.slot-note{color:#9aa8cf;border-top:1px solid rgba(255,255,255,.06);padding-top:.5cqw}
.slot-foot{padding:1.15cqw 2.2cqw 1.35cqw;gap:2cqw}
.setting-label{color:#9aa8cf}
.setting-label svg{color:#9aa8cf;overflow:visible}
.seg{background:rgba(3,6,16,.42);border-color:rgba(255,255,255,.08)}
.chip{transition:background .18s,color .18s,transform .18s,box-shadow .18s}
.chip:not(.on):hover{background:rgba(255,255,255,.09);transform:translateY(-1px)}
.chip.on{background:linear-gradient(180deg,#ffe985,#ffd23d 55%,#f2a518);box-shadow:0 .16cqw 0 #8f5c04,0 .5cqw 1.2cqw rgba(255,190,40,.28),inset 0 1px 0 rgba(255,255,255,.7)}
.ctrl-hint{color:#8794bc;padding:0 0 1.15cqw}

/* ==========================================================================
   HELP / TABS
   ========================================================================== */
.help-tabs{gap:.45cqw}
.tab{
  position:relative;border-radius:.8cqw;border:1px solid transparent;padding:.5cqw 1.35cqw;
  color:#93a0c8;font-size:.93cqw;
}
.tab:hover{color:#fff;background:rgba(255,255,255,.055)}
.tab.on{
  color:#ffe28a;background:linear-gradient(180deg,rgba(255,210,61,.15),rgba(255,210,61,.05));
  border-color:rgba(255,210,61,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 .4cqw 1.2cqw rgba(0,0,0,.2);
}
.tab.on::after{
  content:'';position:absolute;left:1.1cqw;right:1.1cqw;bottom:-1px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
}
.help-body{padding-top:1.25cqw}
.pcard{
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.02));
  border-color:rgba(255,255,255,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 .6cqw 1.6cqw rgba(0,0,0,.2);
}
.pcard::before{height:3px;box-shadow:0 0 1.4cqw var(--pc)}
.pnum{box-shadow:0 0 .7cqw color-mix(in srgb,var(--pc) 55%,transparent)}
.pcard kbd{background:linear-gradient(180deg,#2c376c,#1a2244);border-color:#434f8e;color:#e8eeff}
.help-cta{
  border-radius:1cqw;background:linear-gradient(100deg,rgba(255,210,61,.16),rgba(255,154,61,.05) 62%,rgba(255,255,255,.02));
  border-color:rgba(255,210,61,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 0 2cqw rgba(255,190,40,.08);
}
.tips li{
  background:linear-gradient(95deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  border-left-color:rgba(255,210,61,.85);border-radius:.65cqw;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
.tips b{color:#ffe28a}
.flow{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));border-color:rgba(255,255,255,.09)}
.flow-step span{box-shadow:0 .18cqw .7cqw rgba(255,190,40,.35),inset 0 1px 0 rgba(255,255,255,.6)}
.mini-head{color:#f2f5ff;display:flex;align-items:center;gap:.5cqw}
.mini-head::before{content:'';width:.3cqw;height:1.1cqw;border-radius:1cqw;background:linear-gradient(180deg,var(--gold),var(--orange));box-shadow:0 0 .7cqw rgba(255,190,40,.5)}
.tip-card{
  border-radius:1cqw;background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.02));
  border-color:rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .2s,border-color .2s,background .2s;
}
.tip-card:hover{transform:translateY(-.15cqw);border-color:rgba(255,255,255,.16)}
.tc-ico{
  width:2.4cqw;height:2.4cqw;border-radius:.62cqw;flex:none;display:grid;place-items:center;
  background:color-mix(in srgb,var(--ic) 15%,transparent);border:1px solid color-mix(in srgb,var(--ic) 35%,transparent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 0 1.2cqw color-mix(in srgb,var(--ic) 16%,transparent);
}
.tc-ico svg{width:56%;height:56%;color:var(--ic);overflow:visible}
.icard{
  border-radius:1.1cqw;padding:1cqw 1.05cqw;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02));
  border-color:rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .2s,border-color .2s;
}
.icard:hover{transform:translateY(-.15cqw);border-color:rgba(255,255,255,.15)}
.ic-art{
  width:3.1cqw;height:3.1cqw;border-radius:.8cqw;display:grid;place-items:center;
  background:linear-gradient(180deg,color-mix(in srgb,var(--ic) 24%,transparent),color-mix(in srgb,var(--ic) 7%,transparent));
  border:1px solid color-mix(in srgb,var(--ic) 34%,transparent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 .5cqw 1.4cqw color-mix(in srgb,var(--ic) 14%,transparent);
}
.ic-art svg{width:58%;height:58%;color:var(--ic);overflow:visible;filter:drop-shadow(0 .1cqw .3cqw rgba(0,0,0,.35))}
.icard h4{margin-top:.55cqw}
.trophy-total{background:linear-gradient(180deg,rgba(255,210,61,.14),rgba(255,210,61,.05));border-color:rgba(255,210,61,.32);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.hat-list{gap:.7cqw}
.hat-item{
  border-radius:1cqw;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));
  border-color:rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:transform .2s,border-color .2s,background .2s;
}
.hat-item:hover{transform:translateY(-.16cqw);border-color:rgba(255,255,255,.16)}
.hat-item.unlocked{background:linear-gradient(180deg,rgba(255,210,61,.14),rgba(255,210,61,.04));box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 0 1.6cqw rgba(255,190,40,.12)}
.hat-item .hi{display:flex;justify-content:center;color:#c3cdec;filter:grayscale(1);opacity:.42;transition:filter .2s,opacity .2s}
.hat-item .hi svg{width:2cqw;height:2cqw;overflow:visible}
.hat-item.unlocked .hi{filter:none;opacity:1;color:var(--gold)}
.hat-item.unlocked small{color:#ffe28a}
.tut-dots i{background:rgba(255,255,255,.18)}
.tut-dots i.done{background:rgba(255,210,61,.55)}
.tut-dots i.on{background:linear-gradient(90deg,#ffd23d,#ff9a3d);box-shadow:0 0 1cqw rgba(255,190,40,.5)}
.tut-check{color:transparent}
.tut-check svg{width:70%;height:70%;color:#06240f;overflow:visible}
.tut-task.done .tut-check{background:linear-gradient(180deg,#7bf08a,#2fb84f);border-color:#7bf08a;box-shadow:0 0 1.2cqw rgba(78,227,154,.4)}

/* ==========================================================================
   INTRO CARD
   ========================================================================== */
.card{
  border-radius:1.5cqw;border-color:rgba(255,255,255,.18);
  background:
    linear-gradient(180deg,rgba(255,255,255,.06),transparent 26%),
    linear-gradient(180deg,rgba(28,37,73,.97),rgba(9,13,28,.98));
  box-shadow:0 1.8cqw 4.8cqw rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.12),0 0 4cqw rgba(255,190,40,.06);
}
.card::after{
  content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:var(--grain);background-size:140px;opacity:.05;mix-blend-mode:overlay;
}
.card canvas{border-radius:.85cqw;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 .45cqw 1.2cqw rgba(0,0,0,.45)}
.card h3{font-size:2.15cqw;text-shadow:0 .14cqw 0 rgba(0,0,0,.4),0 0 1.6cqw rgba(255,190,40,.2)}
.card-keys span{box-shadow:0 .2cqw 0 rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.55);display:inline-flex;align-items:center;gap:.3em}
.card-top{color:#9aa8cf}

/* ==========================================================================
   PANELS / OVERLAYS
   ========================================================================== */
.overlay{
  background:radial-gradient(70% 66% at 50% 38%,rgba(16,24,54,.5),rgba(2,4,10,.9));
  backdrop-filter:blur(10px) saturate(1.06);
}
.panel{
  background:
    linear-gradient(180deg,rgba(255,255,255,.055),transparent 22%),
    linear-gradient(180deg,#1b244a 0%,#10152e 100%);
  border-color:rgba(255,255,255,.16);border-radius:1.6cqw;
  box-shadow:0 2.2cqw 6.5cqw rgba(0,0,0,.75),inset 0 1px 0 rgba(255,255,255,.14),0 0 5cqw rgba(90,120,255,.06);
}
.panel::before{
  left:10%;right:10%;height:2px;
  background:linear-gradient(90deg,transparent,rgba(255,210,61,.95),rgba(255,210,61,.25) 70%,transparent);
}
.panel::after{
  background:radial-gradient(50% 60% at 50% 40%,rgba(98,130,255,.16),transparent 70%);
}
.panel h2{font-size:2.75cqw;letter-spacing:.02em;text-shadow:0 .18cqw 0 rgba(0,0,0,.4),0 .5cqw 1.4cqw rgba(0,0,0,.3)}
.panel-kicker{color:#9aa8cf;letter-spacing:.24em}
.panel-kicker::before{
  content:'';display:inline-block;width:.32cqw;height:.32cqw;border-radius:50%;margin-right:.45cqw;
  background:var(--gold);box-shadow:0 0 .7cqw rgba(255,210,61,.8);vertical-align:.05em;
}
.panel-sub{color:#a9b6d8}
.p-icon{
  width:4.6cqw;height:4.6cqw;border-radius:1.25cqw;
  background:linear-gradient(180deg,rgba(255,210,61,.2),rgba(255,210,61,.07));
  border-color:rgba(255,210,61,.42);
  box-shadow:0 0 2.6cqw rgba(255,190,40,.18),inset 0 1px 0 rgba(255,255,255,.2);
}
.p-icon svg{width:54%;height:54%;color:var(--gold);fill:none;overflow:visible}
.panel .btn.close{
  background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}
.panel .btn.close svg{width:42%;height:42%;color:#dfe6ff;overflow:visible;transition:transform .28s var(--ease)}
.panel .btn.close:hover{background:rgba(255,95,87,.24);border-color:rgba(255,95,87,.5)}
.panel .btn.close:hover svg{transform:rotate(90deg)}
.panel-foot{color:#7d8ab1}
.set-row{
  border-radius:.8cqw;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));
  border-color:rgba(255,255,255,.07);transition:background .2s,border-color .2s;
}
.set-row:hover{background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.03));border-color:rgba(255,255,255,.12)}
.set-info small{color:#8e9bc3}
.switch{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.14);box-shadow:inset 0 1px 2px rgba(0,0,0,.3)}
.switch.on{background:linear-gradient(180deg,#7bf08a,#2fb84f);box-shadow:inset 0 1px 2px rgba(0,0,0,.25),0 0 1.2cqw rgba(78,227,154,.35)}
.switch span{background:linear-gradient(180deg,#f3f6ff,#c3cdec)}
.set-about{color:#8b98bf;border-top-color:rgba(255,255,255,.08)}
.credits-mark{
  width:4.6cqw;height:4.6cqw;border-radius:1.2cqw;display:grid;place-items:center;
  background:linear-gradient(180deg,rgba(255,210,61,.18),rgba(255,210,61,.05));
  border:1px solid rgba(255,210,61,.36);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 0 1.8cqw rgba(255,190,40,.14);
}
.credits-mark svg{width:56%;height:56%;color:var(--gold);overflow:visible}
.credit-hero{
  background:linear-gradient(100deg,rgba(255,210,61,.18),rgba(255,154,61,.05) 65%,rgba(255,255,255,.02));
  border-color:rgba(255,210,61,.32);box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.credit-hero strong{text-shadow:0 0 1.2cqw rgba(255,190,40,.4)}
.credit-list div{border-bottom-color:rgba(255,255,255,.08)}
.welcome-art{
  width:6.4cqw;height:6.4cqw;border-radius:1.6cqw;margin:0 auto .7cqw;display:grid;place-items:center;
  background:linear-gradient(180deg,rgba(255,210,61,.22),rgba(255,210,61,.06));
  border:1px solid rgba(255,210,61,.4);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 0 2.4cqw rgba(255,190,40,.18);
}
.welcome-art svg{width:52%;height:52%;color:var(--gold);overflow:visible}

/* results */
.win-avatar{
  width:5.6cqw;height:5.6cqw;border-width:.2cqw;
  box-shadow:0 0 3cqw color-mix(in srgb,var(--c,#ffd633) 50%,transparent),inset 0 -.35cqw .6cqw rgba(0,0,0,.25),inset 0 .3cqw .5cqw rgba(255,255,255,.28);
}
.win-avatar svg{width:48%;height:48%;color:#12162a;overflow:visible;filter:drop-shadow(0 1px 0 rgba(255,255,255,.25))}
.reward{display:inline-flex;align-items:center;gap:.25cqw;padding:.18cqw .7cqw;border-radius:1cqw;background:rgba(255,210,61,.12);border-color:rgba(255,210,61,.34)}
.results{gap:.48cqw}
.rrow{
  border-radius:.8cqw;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.022));
  border-color:rgba(255,255,255,.07);box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.rrow.first{
  background:linear-gradient(90deg,rgba(255,210,61,.2),rgba(255,210,61,.04));
  border-color:rgba(255,210,61,.5);
  box-shadow:0 0 1.9cqw rgba(255,190,40,.16),inset 0 1px 0 rgba(255,255,255,.14);
}
.rrow .place{display:flex;align-items:center;justify-content:center;color:#cfd8ee}
.rrow .place svg{width:1.3cqw;height:1.3cqw;overflow:visible}
.rrow:nth-child(1) .place{color:#ffd23d;filter:drop-shadow(0 0 .5cqw rgba(255,190,40,.55))}
.rrow:nth-child(2) .place{color:#dbe4ff}
.rrow:nth-child(3) .place{color:#e0a679}
.rrow.first .place-num{color:var(--gold)}
.place-num{font-size:1.05cqw;font-weight:800;color:#9aa8cf}
.standings h4{color:#93a0c8}
.standings .crown svg{width:1.2cqw;height:1.2cqw;color:var(--gold);overflow:visible;filter:drop-shadow(0 0 .5cqw rgba(255,190,40,.6))}
.strow .bar{background:rgba(255,255,255,.07);box-shadow:inset 0 1px 2px rgba(0,0,0,.3)}
.strow .fill{background:linear-gradient(90deg,color-mix(in srgb,var(--c) 55%,#141a33),var(--c));box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 0 .8cqw color-mix(in srgb,var(--c) 40%,transparent)}

/* podium */
.podium-kicker{color:#9aa8cf}
.podium h2{text-shadow:0 .2cqw 0 rgba(0,0,0,.45),0 0 4cqw rgba(255,190,40,.32)}
.podium-reward{display:inline-flex;align-items:center;gap:.25cqw;padding:.24cqw .9cqw}
.pstep .pav{
  background:linear-gradient(180deg,color-mix(in srgb,var(--c) 80%,#fff),var(--c));
  border-color:rgba(255,255,255,.7);color:#101426;
  box-shadow:0 0 2.4cqw color-mix(in srgb,var(--c) 58%,transparent),inset 0 .2cqw .5cqw rgba(255,255,255,.4),inset 0 -.3cqw .6cqw rgba(0,0,0,.2);
}
.pstep .pav svg{width:50%;height:50%;overflow:visible;filter:drop-shadow(0 1px 0 rgba(255,255,255,.3))}
.pstep.p1 .pav{background:linear-gradient(180deg,#ffe985,#ffd23d 55%,#e8a017);box-shadow:0 0 3.6cqw rgba(255,190,40,.6),inset 0 .2cqw .5cqw rgba(255,255,255,.6)}
.pstep .block{
  background:linear-gradient(180deg,#33406f,#161d3c);border-color:rgba(255,255,255,.2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 .6cqw 1.6cqw rgba(0,0,0,.4),0 0 1.6cqw rgba(90,120,255,.08);
}
.pstep.p1 .block{background:linear-gradient(180deg,#5a4715,#241b07);border-color:rgba(255,210,61,.55);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 .6cqw 1.6cqw rgba(0,0,0,.4),0 0 2.4cqw rgba(255,190,40,.18)}
.pstep:nth-child(2) .block{background:linear-gradient(180deg,#3b4260,#1a2038)}
.pstep:nth-child(3) .block{background:linear-gradient(180deg,#4a3830,#241a16)}

/* toasts */
.toast{
  display:inline-flex;align-items:center;gap:.4cqw;
  background:linear-gradient(180deg,rgba(32,42,80,.98),rgba(14,20,42,.98));
  border-color:rgba(255,210,61,.45);border-radius:1cqw;
  box-shadow:0 .7cqw 2.2cqw rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.14),0 0 2cqw rgba(255,190,40,.1);
}
.toast svg{width:1.1em;height:1.1em;color:var(--gold);overflow:visible}

/* tutorial shell */
.tut-shell{
  background:
    linear-gradient(180deg,rgba(255,255,255,.04),transparent 18%),
    linear-gradient(180deg,rgba(26,36,72,.99),rgba(8,12,26,.99));
  border-color:rgba(255,255,255,.16);
  box-shadow:0 2.2cqw 6.5cqw rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.12);
}
.tut-tag,.tut-stepno{background:linear-gradient(180deg,rgba(255,210,61,.16),rgba(255,210,61,.05));border-color:rgba(255,210,61,.3);color:#ffe28a}
#tut-cv{border-color:rgba(255,255,255,.16);box-shadow:0 .8cqw 2cqw rgba(0,0,0,.5),inset 0 0 0 1px rgba(255,255,255,.05)}
.tk{background:linear-gradient(180deg,#303b73,#1a2244);border-color:rgba(255,255,255,.2);border-bottom-width:3px;box-shadow:0 .16cqw 0 rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.16)}
.tk.on{background:linear-gradient(180deg,#ffe985,#ffd23d 55%,#f2a518);box-shadow:0 0 1.4cqw rgba(255,190,40,.5),inset 0 1px 0 rgba(255,255,255,.6)}

/* rotate hint */
.rot-icon{width:7cqw;height:7cqw;display:grid;place-items:center;border-radius:1.8cqw;background:rgba(255,210,61,.1);border:1px solid rgba(255,210,61,.3)}
.rot-icon svg{width:52%;height:52%;color:var(--gold);overflow:visible}

/* crisper focus ring everywhere */
:where(button,[role="tab"],[role="switch"]):focus-visible{
  outline:none;box-shadow:0 0 0 .2cqw rgba(255,210,61,.9),0 0 0 .42cqw rgba(255,210,61,.18);
}

/* ==========================================================================
   RESPONSIVE REFINEMENTS
   ========================================================================== */
@media (max-width:1060px){
  .grid{grid-template-columns:repeat(4,1fr);gap:1.15cqw}
  .gcard h3{font-size:1.28cqw}
  .gcard p{font-size:.94cqw}
  .gcard .gdur{font-size:.78cqw}
  .gcard .gnum{font-size:.78cqw}
}
@media (max-width:760px){
  .grid{grid-template-columns:repeat(3,1fr)}
  .menu-kicker{display:none}
  .splash-eyebrow{font-size:1.1cqw}
  .splash-title b{font-size:8cqw}
  .splash-tag{font-size:1.7cqw}
  .splash-start{font-size:1.9cqw}
  .menu-inner::before,.menu-inner::after{display:none}
  .gcard h3{font-size:1.5cqw}
  .gcard p{font-size:1.05cqw}
  .gcard .gdur,.gcard .gnum{font-size:.9cqw}
  .gcard .gdur svg{width:1em}
}
@media (pointer:coarse){
  .gcard .gplay{opacity:1;transform:translate(-50%,-50%) scale(.92)}
  .slot .hatbtn{padding:.48cqw 0}
}
@media (max-height:520px){
  .menu-kicker{display:none}
  .splash-eyebrow{display:none}
}

/* keep the new motion respectful */
@media (prefers-reduced-motion: reduce){
  .splash-art,.menu-kicker,.gcard .gplay,.seg-role::before,.icobtn svg,.btn .ic{animation:none!important;transition:none!important}
  .gcard:hover,.tip-card:hover,.icard:hover,.gx:hover,.hat-item:hover{transform:none}
  #wrap::before{opacity:.035}
}

/* ---- 1.3b fit & finish --------------------------------------------------- */
#ui-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.set-row{gap:.85cqw}
.set-ico{
  width:2.9cqw;height:2.9cqw;border-radius:.75cqw;flex:none;display:grid;place-items:center;
  background:linear-gradient(180deg,color-mix(in srgb,var(--ic) 22%,transparent),color-mix(in srgb,var(--ic) 6%,transparent));
  border:1px solid color-mix(in srgb,var(--ic) 32%,transparent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 .4cqw 1.2cqw color-mix(in srgb,var(--ic) 12%,transparent);
}
.set-ico svg{width:56%;height:56%;color:var(--ic);overflow:visible}
.set-info{flex:1}
.slot .hatbtn svg{width:1.35em;height:1.35em}
.btn.go .btn-ico{color:#062a10;opacity:.9;margin-right:.45em}
.btn.go .help-body{max-width:none;padding-left:2.2cqw;padding-right:2.2cqw}
#scr-help .help-tabs{padding:0 2.2cqw}
.gcard .gdur{font-size:.7cqw}
.gcard .gplay{inset:auto;top:38%;left:50%;right:auto;bottom:auto}
@media (max-width:760px){
  .help-body{padding-left:2.2cqw;padding-right:2.2cqw}
  .set-ico{width:4cqw;height:4cqw}
}

/* ---- 1.3c: progression bar, small trims ---------------------------------- */
.unlock-track{
  margin:.1cqw 0 1.05cqw;padding:.72cqw 1cqw .6cqw;border-radius:1cqw;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.unlock-bar{
  height:.62cqw;border-radius:1cqw;overflow:hidden;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.08) 0 1px,transparent 1px 10%),
    rgba(3,6,16,.55);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.4);
}
.unlock-bar i{
  display:block;height:100%;border-radius:1cqw;width:0;
  background:linear-gradient(90deg,#ff9a3d,#ffd23d 58%,#fff0a0);
  box-shadow:0 0 .9cqw rgba(255,190,50,.55),inset 0 1px 0 rgba(255,255,255,.55);
  transition:width .8s cubic-bezier(.2,.8,.2,1);
}
.unlock-meta{display:flex;align-items:center;justify-content:space-between;gap:1cqw;margin-top:.42cqw;font-size:.8cqw;font-weight:700;color:#9aa8cf;letter-spacing:.02em}
.unlock-meta span{display:inline-flex;align-items:center;gap:.3em}
.unlock-meta svg{width:1.1em;height:1.1em;color:#ffd23d;overflow:visible}
.hat-list{margin-top:.2cqw}
.logo::after{width:40%;height:.16cqw;bottom:-.34cqw;opacity:.8}
.gcard .gdur::before{content:'';width:.3em;height:.3em;border-radius:50%;background:var(--accent);box-shadow:0 0 .5em var(--accent);flex:none}
.gcard .gdur{display:inline-flex;align-items:center;gap:.35em}
#scr-menu::after{opacity:.72}

/* ---- 1.3d: feedback, alignment, final trims ------------------------------ */
.help-body{justify-content:flex-start;padding-top:1.15cqw}
.rrow .place{width:2.2cqw}
.rrow .place svg{width:1.5cqw;height:1.5cqw}
.gx,.icobtn,.tab,.chip,.arrow,.hatbtn{position:relative;overflow:hidden}
.ripple{
  position:absolute;pointer-events:none;z-index:5;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.5),rgba(255,255,255,.16) 45%,transparent 70%);
  transform:scale(0);animation:rippleOut .6s cubic-bezier(.2,.7,.3,1) forwards;
  mix-blend-mode:screen;
}
.btn.primary .ripple,.btn.gold .ripple,.btn.go .ripple{background:radial-gradient(circle,rgba(40,24,0,.35),rgba(40,24,0,.1) 48%,transparent 72%);mix-blend-mode:normal}
@keyframes rippleOut{to{transform:scale(1);opacity:0}}

/* ---- touch & colour arrows use the icon family, not font glyphs ---------- */
.tbtn svg{width:34%;height:34%;color:#fff;overflow:visible;filter:drop-shadow(0 .1cqw .2cqw rgba(0,0,0,.4))}
.tbtn.big svg{width:38%;height:38%;color:#ffe28a}
svg.flip{transform:scaleX(-1)}
.tbtn svg.up{transform:rotate(90deg)}
.tbtn svg.down{transform:rotate(-90deg)}
.arrow svg{width:46%;height:46%;color:#dfe6ff;overflow:visible}

/* ---- 1.3e: podium light, rank badges, disabled controls ------------------ */
.podium::before{
  content:'';position:absolute;left:50%;top:-9cqw;width:52cqw;height:46cqw;transform:translateX(-50%);
  background:radial-gradient(50% 58% at 50% 42%,rgba(255,210,61,.2),rgba(255,154,61,.07) 45%,transparent 72%);
  filter:blur(1.4cqw);pointer-events:none;z-index:0;
}
.podium::after{display:none}
.podium>*{position:relative;z-index:1}
.pstep .block{position:relative;overflow:hidden}
.pstep .block::before{
  content:'';position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);
}
.pstep.p1 .block::before{background:linear-gradient(90deg,transparent,rgba(255,226,138,.95),transparent);box-shadow:0 0 1cqw rgba(255,190,40,.55)}
.pstep .pav .di{overflow:visible}

.rrow .place{
  width:2.1cqw;height:2.1cqw;border-radius:50%;flex:none;
  background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);
}
.rrow .place svg{width:1.15cqw;height:1.15cqw}
.rrow:nth-child(1) .place{background:rgba(255,210,61,.16);border-color:rgba(255,210,61,.4);box-shadow:0 0 1cqw rgba(255,190,40,.2)}
.rrow:nth-child(2) .place{background:rgba(219,228,255,.12);border-color:rgba(219,228,255,.28)}
.rrow:nth-child(3) .place{background:rgba(224,166,121,.12);border-color:rgba(224,166,121,.28)}
.place-num{font-size:1cqw;font-weight:800;color:#a9b6d8}

.btn:disabled{
  opacity:1;color:#8b98bf;text-shadow:none;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.02));
  border:1px dashed rgba(255,255,255,.18);
  box-shadow:none;filter:none;transform:none;
}
.btn:disabled::before,.btn:disabled::after{display:none}
.btn:disabled .btn-ico{opacity:.45}

/* ---- 1.3f: unify the live menu backdrop -------------------------------- */
#scr-menu{
  background:
    radial-gradient(60% 64% at 50% 30%,rgba(7,11,28,.44),rgba(6,9,22,.72) 70%),
    linear-gradient(180deg,rgba(8,12,30,.6),rgba(4,7,16,.86));
  backdrop-filter:blur(3px) saturate(1.06) brightness(.84);
}
#scr-menu::after{
  background:
    radial-gradient(50% 44% at 50% 6%,rgba(108,138,235,.12),transparent 70%),
    radial-gradient(70% 40% at 50% 100%,rgba(255,150,70,.07),transparent 70%),
    linear-gradient(0deg,rgba(4,7,16,.6),transparent 46%);
  mix-blend-mode:normal;opacity:1;
}
#scr-menu .menu-foot{background:linear-gradient(0deg,rgba(4,7,16,.96),rgba(4,7,16,.55) 58%,transparent)}
.slot canvas{
  border-radius:.95cqw;
  border:1px solid rgba(255,255,255,.1);
  background:#0d1226;
  box-shadow:0 .5cqw 1.2cqw rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.06);
}

/* ---- 1.3g: header breathing room + small-screen scrolling --------------- */
.scr-head{padding-right:20.8cqw}
.scr-head::after{right:20.8cqw}
@media (max-width:1060px){
  #scr-games{padding-bottom:2cqw}
  #scr-games .scr-foot-hint{display:none}
  .games-extra{margin-top:.7cqw}
  .scr-head{padding-right:22cqw}
  .scr-head::after{right:22cqw}
}
@media (max-width:760px){
  .scr-head{padding-right:23.5cqw}
  .scr-head::after{right:23.5cqw}
  .head-badge{display:none}
}

/* ---- 1.3h: final contrast trims ----------------------------------------- */
#scr-menu{backdrop-filter:blur(3px) saturate(1.06) brightness(.9)}
#scr-menu{
  background:
    radial-gradient(60% 64% at 50% 30%,rgba(7,11,28,.36),rgba(6,9,22,.66) 70%),
    linear-gradient(180deg,rgba(8,12,30,.52),rgba(4,7,16,.82));
}
.rrow .place{width:2.3cqw;height:2.3cqw}
.rrow .place svg{width:1.3cqw;height:1.3cqw}
.rrow:nth-child(2) .place-num{color:#dbe4ff}
.rrow:nth-child(3) .place-num{color:#e0a679}
.pstep .pav svg{width:56%;height:56%}
.slot .hatbtn svg{width:1.45em;height:1.45em}
