/* Capcade portal: "clean arcade glass", shared with Sky Rush */
/* Fonts are self-hosted (OFL licences in assets/fonts): faster on phones, and no request to Google. */
@font-face{font-family:'Rubik';src:url(assets/fonts/rubik-latin.woff2) format('woff2');font-weight:300 900;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fredoka';src:url(assets/fonts/fredoka-latin.woff2) format('woff2');font-weight:300 700;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --ink:#0B1026; --ink2:#141B3A; --line:rgba(255,255,255,.16); --line2:rgba(255,255,255,.24);
  --muted:rgba(255,255,255,.80); --dim:rgba(255,255,255,.62);
  --sun:#FFC233; --sun-ink:#231800; --sky:#5CD6FF; --sky2:#9BE6FF; --mint:#6BF0A0; --coral:#FF7A88; --coral2:#FF9AA5; --star:#FFD54A;
  --glass:rgba(11,16,38,.66); --card:rgba(255,255,255,.06);
  --ui:'Rubik',system-ui,-apple-system,'Segoe UI',sans-serif; --disp:'Fredoka','Rubik',system-ui,sans-serif;
  --r-lg:28px; --r-md:20px; --r-sm:14px;
  --pad:clamp(16px,3vw,24px);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:var(--ink);color:#fff;font-family:var(--ui);font-size:16px;line-height:1.4;-webkit-tap-highlight-color:transparent}
a{color:var(--sky)} a:hover{color:var(--sky2)}
button,input{font:inherit;color:inherit}
img{display:block;max-width:100%}
h1,h2,h3{margin:0;font-family:var(--disp);font-weight:700;letter-spacing:-.01em;line-height:1.05}
p{margin:0}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--sky);outline-offset:3px}
.ic{width:22px;height:22px;flex:none}
.star{color:var(--star)}
.lbl{font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.muted{color:var(--muted)}
.glass{background:var(--glass);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid var(--line)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md)}

/* ---------- layout ---------- */
.wrap{max-width:1280px;margin:0 auto;padding:0 var(--pad)}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px var(--pad);max-width:1280px;margin:0 auto}
.brand{display:flex;align-items:center;gap:10px;min-height:44px;text-decoration:none;color:#fff}
.brand svg{width:44px;height:38px}
.brand b{display:block;font-family:var(--disp);font-weight:700;font-size:24px;line-height:1}
.brand small{display:block;font-size:10px;font-weight:700;letter-spacing:.16em;color:var(--sky);margin-top:3px;white-space:nowrap}
.brand b i{font-style:normal;color:var(--sun)}
.topnav{display:flex;align-items:center;gap:8px;min-width:0}
.chip.player span:last-child{max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:480px){.topbar.signed .brand span{display:none}}
main{display:flex;flex-direction:column;gap:clamp(32px,5vw,56px);padding-bottom:48px}
.section{display:flex;flex-direction:column;gap:16px}
.section h2{font-weight:600;font-size:clamp(24px,3vw,30px)}

/* ---------- buttons & chips ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 22px;border-radius:16px;border:1px solid var(--line);
  background:rgba(255,255,255,.1);color:#fff;font-size:17px;font-weight:600;cursor:pointer;text-decoration:none;transition:transform .12s,background .12s}
.btn:hover{background:rgba(255,255,255,.16);color:#fff}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--sun);color:var(--sun-ink);border:none;font-weight:700;box-shadow:0 10px 28px rgba(255,194,51,.25)}
.btn.primary:hover{background:#FFCF5C;color:var(--sun-ink)}
.btn.lg{min-height:62px;font-size:20px;padding:0 30px;border-radius:18px}
.btn.wide{width:100%}
.btn.danger{background:transparent;border-color:rgba(255,122,136,.6);color:var(--coral2)}
.btn.danger:hover{background:rgba(255,122,136,.12);color:var(--coral2)}
.btn.small{min-height:44px;font-size:15px;padding:0 16px;border-radius:14px}
.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;border:1px solid var(--line);background:var(--glass);color:#fff;cursor:pointer;flex:none;text-decoration:none}
.iconbtn:hover{background:rgba(30,38,80,.85);color:#fff}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:22px;font-weight:700;font-size:16px;color:#fff;text-decoration:none}
.chip.player{padding:0 14px 0 4px;font-weight:600}
.chip:hover{color:#fff}
.pill{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:14px;font-size:13px;font-weight:700;letter-spacing:.06em}
.pill.new{background:var(--mint);color:var(--ink)}
.pill.soon{background:rgba(11,16,38,.78);color:#fff}
.tag{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:17px;background:rgba(92,214,255,.16);color:var(--sky2);font-weight:600;font-size:14px}
.backlink{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:600;text-decoration:none;align-self:flex-start}

/* ---------- avatar ---------- */
.av{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;flex:none;color:var(--ink)}
.av svg{width:56%;height:56%}

/* ---------- home ---------- */
.hero{position:relative;border-radius:32px;overflow:hidden;min-height:clamp(420px,46vw,540px);border:1px solid var(--line)}
.hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero .panel{position:absolute;left:clamp(12px,2.4vw,32px);right:clamp(12px,2.4vw,32px);bottom:clamp(12px,2.4vw,32px);max-width:520px;padding:clamp(18px,2.4vw,32px);border-radius:24px;display:flex;flex-direction:column;gap:14px}
.hero .pill{align-self:flex-start}
.hero h1{font-size:clamp(46px,6vw,76px);line-height:.95}
.hero p{font-size:clamp(17px,1.6vw,19px);color:rgba(255,255,255,.88)}
.hero .btn{align-self:flex-start}
@media (max-width:560px){.hero .btn{align-self:stretch}}

.cont{display:flex;gap:16px;flex-wrap:wrap}
.contcard{flex:1 1 420px;max-width:640px;display:flex;gap:16px;align-items:center;padding:12px;border-radius:24px;background:var(--card);border:1px solid var(--line);color:#fff;text-decoration:none}
.contcard:hover{background:rgba(255,255,255,.1);color:#fff}
.contcard img{width:clamp(110px,22vw,176px);aspect-ratio:16/10;object-fit:cover;border-radius:16px;flex:none}
.contcard .t{font-family:var(--disp);font-weight:600;font-size:22px}
.contcard .meta{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:15px}
.bar{height:10px;border-radius:5px;background:rgba(255,255,255,.12);overflow:hidden}
.bar i{display:block;height:100%;background:var(--star);border-radius:5px}
.playdot{width:56px;height:56px;border-radius:50%;background:var(--sun);color:var(--sun-ink);display:flex;align-items:center;justify-content:center;flex:none}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,40vw),1fr));gap:clamp(12px,1.6vw,20px)}
.tile{position:relative;display:flex;flex-direction:column;border-radius:22px;overflow:hidden;background:var(--card);border:1px solid var(--line);color:#fff;text-decoration:none}
.tile:hover{background:rgba(255,255,255,.1);color:#fff}
.tile img{width:100%;aspect-ratio:16/10;object-fit:cover}
.tile .body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:4px}
.tile .t{font-family:var(--disp);font-weight:600;font-size:clamp(18px,2vw,22px)}
.tile .s{font-size:14px;color:var(--muted)}
.tile.soon{background:transparent;border:1px dashed rgba(255,255,255,.24)}
.tile .pill{position:absolute;top:10px;right:10px}
.tile .pill.play{background:var(--sun);color:var(--sun-ink)}

footer.foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);color:var(--muted);font-size:15px}
footer.foot nav{display:flex;gap:20px}
footer.foot a{min-height:44px;display:inline-flex;align-items:center}

/* ---------- game page ---------- */
.gamewrap{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.stage{position:relative;flex:999 1 640px;min-width:0;aspect-ratio:16/9;border-radius:24px;overflow:hidden;border:1px solid var(--line);background:#000}
.stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#0B1026}
.stage .poster{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:16px;isolation:isolate}
.stage .poster::before{content:"";position:absolute;inset:0;background:rgba(11,16,38,.5);z-index:-1}
.stage .poster>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.stage .poster .ic.big{width:64px;height:64px}
.stage .fsbtn{position:absolute;right:14px;bottom:14px;z-index:3}
.stage .rotate{display:none}
.stage .exitbtn{display:none}
.gameaside{flex:1 1 300px;display:flex;flex-direction:column;gap:16px}
.gameaside h1{font-size:clamp(34px,4.4vw,52px)}
.gameaside .tags{display:flex;gap:8px;flex-wrap:wrap}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.stat{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.06)}
.stat .v{font-family:var(--disp);font-weight:600;font-size:22px}
.stat .k{font-size:12px;font-weight:700;letter-spacing:.1em;color:var(--muted)}
.bigstars{display:flex;align-items:center;gap:10px}
.bigstars .n{font-family:var(--disp);font-weight:700;font-size:44px;line-height:1}
.worlds{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,40vw),1fr));gap:14px}
.world{border-radius:18px;overflow:hidden;background:var(--card);border:1px solid var(--line)}
.world img{width:100%;aspect-ratio:16/9;object-fit:cover}
.world .row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 12px}
.world .nm{font-family:var(--disp);font-weight:600;font-size:17px}
.world .st{display:flex;gap:1px}
.world .st .ic{width:16px;height:16px}
.off{color:rgba(255,255,255,.26)}

/* Immersive play (phones, or when the player asks for it) */
body.playing{overflow:hidden;overscroll-behavior:none}
.stage.immersive{position:fixed;inset:0;z-index:50;border-radius:0;border:0;aspect-ratio:auto;width:100vw;height:100vh;height:100dvh}
.stage.immersive .fsbtn{display:none}
.stage.immersive .exitbtn{display:inline-flex;position:absolute;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:4;width:44px;height:44px;opacity:.75}
@media (orientation:portrait){
  .stage.immersive.wantslandscape .rotate{display:flex;position:absolute;inset:0;z-index:5;background:var(--ink);flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:24px}
}
.touchonly{display:none}
@media (pointer:coarse){.touchonly{display:block}}
.rotate .ic{width:80px;height:80px}
.rotate b{font-family:var(--disp);font-size:28px}
.rotate .btn{margin-top:8px}

/* Guest nudge: sits inside the stage so it shows in fullscreen too */
.nudge{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:6;width:min(420px,calc(100% - 24px));padding:18px;border-radius:24px;display:flex;flex-direction:column;gap:12px;
  background:rgba(11,16,38,.86);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid var(--line);animation:pop .35s cubic-bezier(.2,1.4,.4,1)}
.nudge .h{display:flex;align-items:center;gap:12px}
.nudge .h span{width:48px;height:48px;border-radius:14px;background:var(--sun);color:var(--sun-ink);display:flex;align-items:center;justify-content:center;flex:none}
.nudge h2{font-size:26px}
.nudge .row{display:flex;gap:10px}
.nudge .row .btn{min-height:52px}
.nudge .row .btn.primary{flex:1}
@keyframes pop{from{transform:translate(-50%,24px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@media (max-height:480px){
  .nudge{left:auto;right:12px;bottom:12px;transform:none;width:min(380px,46%);padding:14px;gap:8px;animation-name:popr}
  .nudge h2{font-size:22px}.nudge p{font-size:15px}
}
@keyframes popr{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.stage:has(.nudge) .exitbtn{display:none}

/* ---------- forms / flows ---------- */
.flow{max-width:460px;margin:0 auto;width:100%;display:flex;flex-direction:column;gap:20px}
.flowhead{display:flex;align-items:center;justify-content:space-between}
.kicker{font-size:13px;font-weight:700;letter-spacing:.14em;color:var(--sky)}
.flow h1{font-size:clamp(30px,5vw,36px)}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:15px;font-weight:600}
.field input{min-height:54px;padding:0 16px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid var(--line2);color:#fff;font-size:17px;width:100%}
.field input:focus{border-color:var(--sky);outline:none;box-shadow:0 0 0 3px rgba(92,214,255,.25)}
.check{display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:16px;background:var(--card);border:1px solid var(--line);font-size:15px;color:rgba(255,255,255,.9);cursor:pointer}
.check input{width:22px;height:22px;margin:1px 0 0;accent-color:var(--sun);flex:none}
.err{color:var(--coral2);font-weight:600;font-size:15px;min-height:1.4em}
.ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;color:var(--muted);font-size:15px}
.ticks li{display:flex;gap:10px;align-items:center}
.ticks .ic{color:var(--mint);width:20px;height:20px}
.center{text-align:center}
.linkbtn{background:none;border:0;color:var(--sky);cursor:pointer;min-height:44px;font-size:16px;padding:0 8px;text-decoration:underline}

.preview{display:flex;flex-direction:column;align-items:center;gap:14px;padding:24px 16px;border-radius:28px;background:var(--card);border:1px solid var(--line)}
.preview .nick{font-family:var(--disp);font-weight:700;font-size:clamp(26px,7vw,32px)}
.badges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.badge{height:72px;border-radius:20px;border:3px solid transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;color:var(--ink)}
.badge svg{width:34px;height:34px}
.badge[aria-pressed="true"]{border-color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.18)}

.who{display:flex;flex-direction:column;align-items:center;gap:28px;padding-top:clamp(16px,6vh,64px)}
.who h1{font-size:clamp(34px,6vw,48px)}
.whogrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,190px));justify-content:center;gap:16px;width:100%}
.whotile{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 8px;border-radius:28px;background:var(--card);border:1px solid var(--line);color:#fff;text-decoration:none;cursor:pointer;font:inherit}
.whotile:hover{background:rgba(255,255,255,.1);color:#fff}
.whotile .nm{font-family:var(--disp);font-weight:600;font-size:18px}
.whotile.add{background:transparent;border:2px dashed rgba(255,255,255,.28)}
.whotile .plus{width:104px;height:104px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center}
.whotile .plus .ic{width:44px;height:44px}
.row{display:flex;gap:10px;flex-wrap:wrap}

/* ---------- profile ---------- */
.phead{display:flex;align-items:center;gap:clamp(16px,3vw,32px);flex-wrap:wrap;padding:clamp(20px,3vw,36px);border-radius:32px;background:var(--card);border:1px solid var(--line)}
.phead h1{font-size:clamp(32px,5vw,56px)}
.phead .who-text{flex:1 1 260px;display:flex;flex-direction:column;gap:8px}
.starbox{display:flex;align-items:center;gap:12px;padding:16px 24px;border-radius:28px;background:rgba(255,213,74,.14);border:1px solid rgba(255,213,74,.4)}
.starbox .ic{width:48px;height:48px}
.starbox .n{font-family:var(--disp);font-weight:700;font-size:clamp(40px,5vw,56px);line-height:1}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));gap:18px}
.pcard{display:flex;flex-direction:column;border-radius:24px;overflow:hidden;background:var(--card);border:1px solid var(--line)}
.pcard img{width:100%;aspect-ratio:2/1;object-fit:cover}
.pcard .body{padding:16px;display:flex;flex-direction:column;gap:12px}
.pcard .top{display:flex;align-items:center;justify-content:space-between}
.pcard .t{font-family:var(--disp);font-weight:600;font-size:24px}
.pcard.soon{border:1px dashed rgba(255,255,255,.24);background:transparent}
.stats3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}

/* ---------- parent area ---------- */
.parent{max-width:640px;margin:0 auto;width:100%;display:flex;flex-direction:column;gap:22px}
.prow{padding:14px;border-radius:20px;background:var(--card);border:1px solid var(--line);display:flex;flex-direction:column;gap:12px}
.prow .who-line{display:flex;align-items:center;gap:12px}
.prow .who-line b{font-size:18px;font-weight:600}
.prow .acts{display:flex;gap:8px;flex-wrap:wrap}
.prow .acts .btn{flex:1 1 auto;white-space:nowrap}
.consent{padding:16px;border-radius:20px;background:rgba(107,240,160,.08);border:1px solid rgba(107,240,160,.35);display:flex;flex-direction:column;gap:8px}
.consent h2{font-family:var(--ui);font-size:17px;display:flex;align-items:center;gap:8px}
.consent .ic{color:var(--mint)}
.addrow{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;border-radius:16px;border:2px dashed rgba(255,255,255,.28);color:#fff;text-decoration:none;font-weight:600;background:none;cursor:pointer;width:100%}
.addrow:hover{color:#fff;background:rgba(255,255,255,.05)}
.gate{max-width:420px;margin:0 auto;display:flex;flex-direction:column;gap:18px;padding-top:24px}
.prose{max-width:680px;display:flex;flex-direction:column;gap:14px;color:rgba(255,255,255,.88)}
.prose h2{font-size:22px;margin-top:8px}
.note{padding:14px;border-radius:16px;border:1px solid rgba(255,194,51,.5);background:rgba(255,194,51,.08);font-size:15px}

/* ---------- toast & modal ---------- */
.toast{position:fixed;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translateX(-50%);z-index:100;padding:14px 20px;border-radius:18px;background:rgba(11,16,38,.92);border:1px solid var(--line);font-weight:600;display:flex;align-items:center;gap:10px;box-shadow:0 12px 30px rgba(0,0,0,.4);max-width:calc(100% - 32px)}
.toast .ic{color:var(--mint)}
.modal{position:fixed;inset:0;z-index:90;background:rgba(5,8,20,.7);display:flex;align-items:center;justify-content:center;padding:16px}
.modal .box{width:min(440px,100%);padding:22px;border-radius:24px;background:var(--ink2);border:1px solid var(--line);display:flex;flex-direction:column;gap:14px}
.modal h2{font-size:24px}
.modal .row .btn{flex:1}

.empty{padding:20px;border-radius:20px;border:1px dashed rgba(255,255,255,.24);color:var(--muted)}
.spin{padding:80px 0;text-align:center;color:var(--muted)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- my stars: save codes & tips ---------- */
.codebox{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px;border-radius:16px;background:rgba(255,213,74,.08);border:1px solid rgba(255,213,74,.35)}
.codebox .lbl{flex-basis:100%}
.code{flex:1 1 100%;font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;font-size:clamp(15px,3.6vw,18px);font-weight:700;letter-spacing:.06em;color:#fff;user-select:all}
.code span{white-space:nowrap}
.safegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));gap:14px}
.tip{display:flex;gap:14px;align-items:flex-start;padding:16px;border-radius:20px;background:var(--card);border:1px solid var(--line)}
.tip>div{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.tip b{font-size:17px}
.tip p{font-size:15px}
.tipic{width:44px;height:44px;border-radius:14px;background:rgba(92,214,255,.16);color:var(--sky);display:flex;align-items:center;justify-content:center;flex:none}
.restore{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.restore input{font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace;letter-spacing:.06em;text-transform:uppercase}
.phead .av .ic{width:56%;height:56%}

/* ---------- ads: always labelled, never over a game being played ---------- */
.adslot{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 0;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.adlabel{align-self:center;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);padding:2px 8px;border-radius:6px;border:1px solid rgba(255,255,255,.24)}
.adbox{width:100%;max-width:728px;min-height:50px;display:flex;justify-content:center}
.adbox.placeholder{height:90px;border-radius:12px;border:2px dashed rgba(255,255,255,.22);background:rgba(255,255,255,.04);flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-weight:600}
.adbox.placeholder small{font-weight:500;font-size:13px;color:var(--dim)}
@media (max-width:759px){.adbox{max-width:320px}.adbox.placeholder{height:50px}}
.adbox.placeholder.big{height:auto;min-height:220px;max-width:420px;padding:24px;text-align:center}
.adbreak{position:absolute;inset:0;z-index:8;background:rgba(5,8,20,.92);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px}
.adbreak-top{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(420px,100%)}
.adbreak-top .adlabel{align-self:center}
.adbreak-body{width:min(420px,100%);display:flex;justify-content:center}
@media (max-height:480px){.adbox.placeholder.big{min-height:150px}}

/* the game coming next gets a brighter label and a solid border */
.pill.soon.next{background:var(--sky);color:var(--ink)}
.tile.soon.next{border-style:solid;border-color:rgba(92,214,255,.45)}
.gameaside .pill.soon{background:rgba(255,255,255,.12)}
.gameaside .pill.soon.next{background:var(--sky);color:var(--ink)}

/* ---------- phones and tablets ---------- */
a,button,input,label{touch-action:manipulation}
.wrap,.topbar{padding-left:max(var(--pad),env(safe-area-inset-left));padding-right:max(var(--pad),env(safe-area-inset-right))}
.inlink{display:inline-block;padding:12px 2px;margin:-12px -2px}
@media (orientation:landscape){.stage .poster .touchonly{display:none}}
/* Phones held sideways: keep the banner's Play button and the game's Play button on screen */
@media (orientation:landscape) and (max-height:500px){
  .topbar{padding-top:6px;padding-bottom:6px}
  main{gap:24px}
  .hero{min-height:max(260px,calc(100svh - 76px))}
  .hero .panel{max-width:440px;gap:10px}
  .stage:not(.immersive){aspect-ratio:auto;flex-basis:100%;height:max(220px,calc(100svh - 116px))}
}
