:root{
  --bg:#050d09;--panel:#0c1712;--panel2:#101f18;--text:#f8f4e3;--muted:#a8b4ad;--gold:#e8c55a;--gold2:#b9861e;--green:#18d57d;--red:#e7655d;--orange:#efa83e;--line:#ffffff14;--shadow:0 24px 70px #0008;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 20% 0,#10271d 0,transparent 36%),linear-gradient(180deg,#06110d,#030805);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh;overflow-x:hidden}.ambient{position:fixed;border-radius:50%;filter:blur(100px);opacity:.16;z-index:-2;pointer-events:none}.a1{width:430px;height:430px;background:#f1c94f;right:-140px;top:-160px}.a2{width:420px;height:420px;background:#00b96a;left:-180px;bottom:4%}.a3{width:360px;height:360px;background:#6a5317;left:38%;top:32%}button,input{font:inherit}button{cursor:pointer}.site-header{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:14px clamp(14px,3vw,34px);background:#05100bd9;backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;background:none;border:0;color:inherit;padding:0;text-align:left}.brand img{width:46px;height:46px;object-fit:contain;filter:drop-shadow(0 8px 18px #d7ad3044)}.brand strong{display:block;font-size:13px;letter-spacing:.08em}.brand small{display:block;color:var(--gold);font-size:10px;letter-spacing:.24em;margin-top:3px}.header-actions{display:flex;align-items:center;gap:8px}.icon-btn,.ghost,.primary,.start,.warn,.resume,.danger{border:0;border-radius:14px;padding:12px 16px;font-weight:800;transition:.2s ease}.icon-btn{background:#ffffff0b;color:#fff;border:1px solid var(--line)}.ghost{background:#ffffff08;color:#f5f5ed;border:1px solid var(--line)}.ghost:hover,.icon-btn:hover{border-color:#e7c65766;background:#ffffff10}.small{padding:10px 13px}.primary,.start{background:linear-gradient(135deg,#f7dc79,#b88218);color:#211904;box-shadow:0 10px 28px #c8992530}.primary:hover,.start:hover{transform:translateY(-1px);filter:brightness(1.05)}.warn{background:linear-gradient(135deg,#ffc76a,#d58b25);color:#2c1c05}.resume{background:linear-gradient(135deg,#7ee8ad,#21a866);color:#06190f}.danger{background:linear-gradient(135deg,#f47a71,#bd3934);color:#fff}.wide{width:100%}main{width:min(1200px,100%);margin:auto;padding:28px clamp(14px,3vw,30px) 118px}.screen{animation:fade .28s ease}.hidden{display:none!important}@keyframes fade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}.glass{background:linear-gradient(180deg,#112119df,#0a1510e8);border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(18px)}.hero-screen{display:grid;grid-template-columns:1.08fr .92fr;gap:34px;align-items:center;min-height:calc(100vh - 180px);padding:4vh 0}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#e8cd74;font-size:11px;font-weight:800;letter-spacing:.18em;text-transform:uppercase}.hero-copy h1{font-size:clamp(52px,7.6vw,96px);line-height:.9;letter-spacing:-.05em;margin:22px 0}.hero-copy h1 em{font-style:normal;color:var(--gold)}.hero-copy>p{font-size:clamp(17px,2vw,21px);line-height:1.55;max-width:680px;color:#b8c3bc}.meta-row{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.meta-row span{padding:8px 11px;border-radius:999px;background:#ffffff08;border:1px solid var(--line);font-size:13px;color:#d8ded9}.join-card{border-radius:24px;padding:20px;margin-top:20px;max-width:820px}.join-title{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:14px}.join-title span{font-weight:900;font-size:19px}.join-title small{color:var(--muted)}.join-grid{display:grid;grid-template-columns:1.2fr .85fr auto;gap:10px;align-items:end}label{display:grid;gap:7px;color:#d6ddd8;font-size:13px}label span{font-size:12px;color:#b7c3bb}input{width:100%;border-radius:13px;border:1px solid #ffffff16;background:#06100c;color:#fff;padding:14px 15px;outline:none}input:focus{border-color:#e9c95b88;box-shadow:0 0 0 3px #d7ae2c14}.join-grid button{height:49px}.micro{font-size:12px!important;color:#8fa198!important;line-height:1.5!important;margin:12px 0 0!important}.rule-chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.rule-chips span{font-size:12px;color:#b6c1ba;background:#0b1812;border:1px solid var(--line);padding:8px 10px;border-radius:999px}.hero-art{position:relative;min-height:560px;display:grid;place-items:center}.hero-coins{width:min(100%,600px);aspect-ratio:1/1;object-fit:cover;border-radius:34px;filter:saturate(1.08) contrast(1.04);box-shadow:0 35px 90px #000b}.hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 60%,#050d09 98%);pointer-events:none}.coin-halo{position:absolute;width:70%;aspect-ratio:1;border-radius:50%;background:#dcb83435;filter:blur(60px)}.hero-badge{position:absolute;z-index:2;right:4%;bottom:7%;padding:16px 20px;border-radius:18px;background:#07120eea;border:1px solid #e9c45855;box-shadow:0 18px 50px #0008}.hero-badge span,.hero-badge small{display:block;color:#a9b5ae;font-size:10px;letter-spacing:.12em}.hero-badge strong{display:block;font-size:27px;color:#f0d46f;margin:3px 0}.narrow{max-width:760px;margin:5vh auto}.stage-card{border-radius:30px;padding:34px}.center{text-align:center}.stage-coin{width:120px;height:120px;object-fit:contain;filter:drop-shadow(0 18px 30px #d4ac3438)}.stage-card h2{font-size:clamp(34px,6vw,56px);margin:10px 0}.stage-card p{color:#aebbb3;font-size:17px;line-height:1.6}.lobby-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:28px 0}.lobby-stats div{background:#07110d;border:1px solid var(--line);border-radius:18px;padding:16px}.lobby-stats strong{display:block;font-size:26px;color:var(--gold)}.lobby-stats span{font-size:11px;color:#97a59d}.pulse-line{display:flex;justify-content:center;align-items:center;gap:10px;margin:18px 0 22px;color:#cfd7d2}.pulse-line i{width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 0 0 #18d57d66;animation:pulse 1.4s infinite}@keyframes pulse{70%{box-shadow:0 0 0 12px #18d57d00}100%{box-shadow:0 0 0 0 #18d57d00}}.game-shell{max-width:900px;margin:2vh auto}.game-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.game-topbar>div{display:grid;gap:4px}.round-pill{display:inline-block;font-size:12px;letter-spacing:.12em;font-weight:900;color:#f0d168}.game-topbar small{color:#9aa9a0}.balance{text-align:right}.balance strong{font-size:22px;color:#f3d76f}.round-progress{height:5px;background:#ffffff0b;border-radius:999px;overflow:hidden;margin-bottom:14px}.round-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#18d57d,#f0ca52);transition:width .5s linear}.powerbar{border-radius:20px;padding:10px;display:grid;grid-template-columns:auto repeat(3,1fr);gap:8px;align-items:center;margin-bottom:16px}.power-title{font-size:11px;color:#a7b3ac;text-transform:uppercase;letter-spacing:.12em;padding:0 8px}.powerbar button{border:1px solid var(--line);background:#07110d;color:#fff;border-radius:14px;padding:11px 8px}.powerbar button b,.powerbar button small{display:block}.powerbar button small{font-size:10px;color:#8fa198;margin-top:3px}.powerbar button.used{opacity:.35;pointer-events:none}.powerbar button.active{border-color:#efca55;background:#392f0c}.question-wrap{position:relative;padding-top:32px}.timer-ring{position:absolute;z-index:5;top:0;right:24px;width:88px;height:88px;border-radius:50%;display:grid;place-items:center;align-content:center;background:radial-gradient(circle,#0b1c14 60%,transparent 61%),conic-gradient(var(--gold) var(--pct,100%),#253027 0);box-shadow:0 10px 30px #0008}.timer-ring span{font-size:28px;font-weight:900;line-height:1}.timer-ring small{font-size:9px;color:#a5b2aa;margin-top:3px}.question-card{border-radius:28px;padding:30px;min-height:420px}.question-meta{display:flex;justify-content:space-between;padding-right:90px;gap:10px;color:#9eaba3;font-size:11px;letter-spacing:.1em}.question-card h2{font-size:clamp(26px,4.4vw,42px);line-height:1.18;margin:30px 0 22px;max-width:760px}.lucky{background:linear-gradient(90deg,#7a5b0f,#3d2e0d);border:1px solid #e9c45555;color:#ffdf7b;border-radius:12px;padding:10px 12px;margin:16px 100px 0 0;font-size:11px;font-weight:900;letter-spacing:.06em}.options{display:grid;grid-template-columns:1fr 1fr;gap:11px}.option{display:flex;align-items:center;gap:12px;padding:16px;border-radius:16px;border:1px solid #ffffff12;background:#10231a;color:#fff;text-align:left;font-weight:700}.option b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ffffff0a;border:1px solid #ffffff14;color:#f1d36c;flex:0 0 auto}.option:hover:not(:disabled){border-color:#ebc75466;transform:translateY(-1px)}.option:disabled{opacity:.55;cursor:not-allowed}.option.hidden-option{opacity:.15;filter:grayscale(1);pointer-events:none}.option.correct-flash{border-color:#27de89;background:#0e3c28}.option.wrong-flash{border-color:#e96760;background:#3a1615}.game-message{margin-top:18px;color:#94a299;font-size:13px}.mobile-board{display:block;margin:14px auto}.spectator-card .status-icon{font-size:50px}.cheers{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:24px 0}.cheers button{background:#07110d;border:1px solid var(--line);color:#fff;border-radius:14px;padding:12px 14px;font-size:18px}.section-head{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:18px}.section-head h2{font-size:clamp(38px,6vw,64px);line-height:.95;margin:5px 0 0}.board-screen{max-width:1000px;margin:2vh auto}.summary-strip{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.summary-strip span{padding:10px 12px;background:#0a1711;border:1px solid var(--line);border-radius:999px;color:#bfc8c2;font-size:12px}.summary-strip b{color:var(--gold)}.board-tabs{display:flex;gap:8px;overflow:auto;padding-bottom:8px}.board-tabs button{border:1px solid var(--line);background:#ffffff06;color:#aebbb3;border-radius:999px;padding:9px 15px;font-weight:800;white-space:nowrap}.board-tabs button.active{background:#d8b344;color:#201904}.leaderboard-card{border-radius:22px;overflow:hidden;margin-top:10px}.leader-row{display:grid;grid-template-columns:55px 1.4fr .8fr .8fr;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line)}.leader-row:last-child{border-bottom:0}.leader-row.head{color:#8e9d94;font-size:11px;text-transform:uppercase;letter-spacing:.08em;background:#ffffff05}.rank{font-size:18px;font-weight:900}.leader-name{font-weight:800}.leader-name small{display:block;font-weight:500;color:#86968d;margin-top:3px}.aya-cell{font-weight:900;color:#ecd067}.status-tag{justify-self:start;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;background:#ffffff08}.status-tag.active{color:#54e99e}.status-tag.eliminated{color:#ed8882}.status-tag.finalist{color:#f1d170}.hall-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.hall-card{border-radius:22px;padding:20px;background:linear-gradient(160deg,#172419,#0a120d);border:1px solid #e7c4522f}.hall-card .crown{font-size:30px}.hall-card h3{margin:8px 0;font-size:22px}.hall-card strong{color:var(--gold);font-size:20px}.hall-card small{display:block;color:#8ea097;margin-top:6px}.admin-login{border-radius:28px;padding:28px;display:grid;gap:14px}.lock{font-size:42px}.admin-login h2{font-size:42px;margin:0}.admin-screen{max-width:1120px;margin:0 auto}.admin-actions{display:flex;gap:8px}.admin-stat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin:15px 0}.admin-stat{background:#0b1812;border:1px solid var(--line);border-radius:17px;padding:15px}.admin-stat small{display:block;color:#87988e;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.admin-stat strong{display:block;font-size:23px;margin-top:6px}.admin-alert{padding:13px 15px;border-radius:14px;background:#462f0e;border:1px solid #e6b54755;color:#ffe49a;margin-bottom:14px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-card{border-radius:22px;padding:20px}.admin-card h3{margin:0 0 14px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:18px}.field-grid.three{grid-template-columns:repeat(3,1fr)}.field-grid label small{color:#829188;font-size:10px;line-height:1.4}.round-display{text-align:center;border-radius:20px;background:#06100c;border:1px solid var(--line);padding:22px;margin-bottom:12px}.round-display span,.round-display small{display:block;color:#84958b;font-size:10px;letter-spacing:.1em}.round-display strong{display:block;font-size:44px;color:var(--gold);margin:4px 0}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.logic-note{font-size:12px;color:#9dacA2;background:#07120d;border-radius:12px;padding:11px;margin-top:10px;line-height:1.5}.question-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.question-stats div{background:#07110d;border-radius:12px;padding:11px}.question-stats strong{display:block;color:#f0d16b;font-size:20px}.question-stats small{color:#87978e}.admin-card form{display:flex;gap:8px;align-items:center}.admin-card form input[type=file]{padding:9px}.download-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.download-row a{color:#e9cb67;text-decoration:none;font-size:12px}.mini-table{font-size:12px}.mini-table.empty{color:#8c9b92;padding:20px 0}.payout-row{display:grid;grid-template-columns:1fr .7fr .7fr;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}.players-card{margin-top:14px}.card-head{display:flex;justify-content:space-between;align-items:center}.admin-board{overflow:auto}.admin-table{width:100%;border-collapse:collapse;min-width:720px}.admin-table th,.admin-table td{padding:11px;border-bottom:1px solid var(--line);text-align:left;font-size:12px}.admin-table th{color:#85958c;font-size:10px;text-transform:uppercase;letter-spacing:.08em}.danger-grid{grid-template-columns:repeat(3,1fr);margin-top:14px}.danger-zone{border-color:#e45e5942}.bottom-nav{position:fixed;z-index:18;left:50%;bottom:max(14px,env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:4px;background:#07120ded;border:1px solid var(--line);border-radius:20px;padding:7px;backdrop-filter:blur(16px);box-shadow:0 16px 50px #0009}.bottom-nav button{width:78px;border:0;background:transparent;color:#dbe0dc;border-radius:14px;padding:7px}.bottom-nav button span,.bottom-nav button small{display:block}.bottom-nav button small{font-size:9px;margin-top:2px;color:#94a39a}#toast{position:fixed;z-index:80;top:18px;left:50%;transform:translate(-50%,-20px);background:#f8f3df;color:#141711;border-radius:14px;padding:12px 16px;box-shadow:0 18px 50px #0009;opacity:0;pointer-events:none;transition:.22s;max-width:min(90vw,560px);font-weight:700;font-size:13px}#toast.show{opacity:1;transform:translate(-50%,0)}.celebration{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:18px;background:#020805e6;overflow:hidden}.celebration-glow{position:absolute;width:70vmin;height:70vmin;border-radius:50%;background:#d6a72c35;filter:blur(70px)}.celebration-card{position:relative;z-index:4;width:min(680px,96vw);border:1px solid #f3d16655;border-radius:30px;overflow:hidden;background:#07110d;box-shadow:0 40px 100px #000}.celebration-card .heap{width:100%;height:280px;object-fit:cover;object-position:center 52%;display:block}.celebration-content{text-align:center;padding:24px}.celebration-content h2{font-size:clamp(34px,7vw,60px);margin:7px 0}.celebration-content>strong{display:block;color:#54ed9d;font-size:clamp(34px,7vw,58px)}.celebration-content p{color:#b1beb6;font-size:16px}.celebrate-balance{display:inline-block;background:#ffffff08;border:1px solid var(--line);padding:10px 14px;border-radius:12px;margin:0 0 16px;color:#f0d16b;font-weight:900}.coin-rain{position:absolute;inset:0;overflow:hidden;z-index:3;pointer-events:none}.falling-coin{position:absolute;top:-90px;width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 8px 8px #0008);animation:coinfall linear forwards}@keyframes coinfall{to{transform:translate3d(var(--drift),115vh,0) rotate(var(--spin));opacity:.95}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition:none!important}.coin-rain{display:none}}
@media(max-width:900px){.hero-screen{grid-template-columns:1fr}.hero-art{min-height:420px;order:-1}.hero-coins{width:min(100%,520px);height:420px}.hero-badge{bottom:2%}.admin-stat-grid{grid-template-columns:repeat(3,1fr)}.danger-grid{grid-template-columns:1fr}.hall-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.site-header{padding:11px 12px}.brand img{width:40px;height:40px}.brand strong{font-size:11px}.brand small{font-size:8px}.header-actions .icon-btn{display:none}main{padding:18px 12px 112px}.hero-screen{padding-top:0}.hero-art{min-height:300px}.hero-coins{height:300px;border-radius:22px}.hero-badge{padding:12px 14px}.hero-badge strong{font-size:20px}.hero-copy h1{font-size:52px}.join-grid{grid-template-columns:1fr}.join-title{display:block}.join-title small{display:block;margin-top:4px}.join-grid button{width:100%}.lobby-stats{grid-template-columns:1fr 1fr}.lobby-stats div:last-child{grid-column:1/-1}.game-topbar{align-items:end}.balance strong{font-size:18px}.powerbar{grid-template-columns:repeat(3,1fr)}.power-title{grid-column:1/-1}.powerbar button{padding:10px 5px}.question-card{padding:22px 15px 20px;min-height:420px}.question-meta{padding-right:80px}.options{grid-template-columns:1fr}.lucky{margin-right:75px}.timer-ring{right:10px;width:78px;height:78px}.timer-ring span{font-size:24px}.leader-row{grid-template-columns:42px 1fr .75fr}.leader-row .status-tag{grid-column:2/4}.leader-row.head{display:none}.section-head{align-items:center}.section-head h2{font-size:42px}.admin-grid{grid-template-columns:1fr}.admin-stat-grid{grid-template-columns:1fr 1fr}.field-grid,.field-grid.three{grid-template-columns:1fr}.control-grid{grid-template-columns:1fr 1fr}.admin-card form{display:grid}.hall-grid{grid-template-columns:1fr}.celebration-card .heap{height:210px}.celebration-content{padding:20px 16px}.bottom-nav button{width:68px}}

/* === AYA Challenge 2.1 • premium mobile-first polish === */
:root{
  --bg-deep:#020704;
  --panel-glass:rgba(12,27,20,.78);
  --panel-glass-strong:rgba(9,21,15,.94);
  --gold-soft:#ffe79a;
  --gold-bright:#f6cf55;
  --emerald:#20e58b;
  --ring:rgba(244,204,83,.18);
}
body{
  background:
    radial-gradient(900px 520px at 82% -12%,rgba(224,181,54,.13),transparent 62%),
    radial-gradient(700px 460px at -8% 78%,rgba(18,189,105,.13),transparent 60%),
    linear-gradient(160deg,#06110d 0%,#020805 58%,#07110c 100%);
}
body:before{
  content:"";position:fixed;inset:0;z-index:-3;pointer-events:none;opacity:.22;
  background-image:linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px);
  background-size:36px 36px;
  mask-image:linear-gradient(to bottom,black,transparent 88%);
}
.site-header{
  border-bottom-color:rgba(243,205,88,.11);
  box-shadow:0 10px 35px rgba(0,0,0,.22);
}
.brand img{transition:transform .3s ease,filter .3s ease}.brand:hover img{transform:rotate(-5deg) scale(1.05);filter:drop-shadow(0 10px 22px rgba(240,196,67,.35))}
.glass{
  background:linear-gradient(145deg,rgba(18,38,28,.88),rgba(6,17,12,.84));
  border-color:rgba(255,255,255,.085);
  box-shadow:0 28px 75px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.035);
}
.join-card,.question-card,.admin-card,.stage-card,.leaderboard-card,.hall-card,.admin-login{position:relative;overflow:hidden}
.join-card:before,.question-card:before,.admin-card:before,.stage-card:before,.admin-login:before{
  content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(247,213,107,.45),transparent);pointer-events:none;
}
.hero-copy h1 em{
  background:linear-gradient(105deg,#fff0a8,#e7b83c 52%,#ffd86c);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:0 12px 45px rgba(232,185,59,.10);
}
.hero-coins{border:1px solid rgba(255,225,126,.16);box-shadow:0 40px 100px rgba(0,0,0,.74),0 0 70px rgba(218,173,47,.08)}
.hero-badge{box-shadow:0 22px 55px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.05)}
.meta-row span,.rule-chips span,.summary-strip span{backdrop-filter:blur(10px)}
input{
  min-height:50px;background:linear-gradient(180deg,rgba(2,10,6,.92),rgba(7,19,13,.9));
  border-color:rgba(255,255,255,.11);transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
input:hover{border-color:rgba(255,255,255,.18)}
input:focus{background:#06130d;border-color:rgba(245,205,82,.6);box-shadow:0 0 0 4px rgba(230,185,52,.10),0 12px 28px rgba(0,0,0,.22)}
.icon-btn,.ghost,.primary,.start,.warn,.resume,.danger,.remove-player{position:relative;overflow:hidden;min-height:44px;transform:translateZ(0)}
.primary:after,.start:after,.warn:after,.resume:after{
  content:"";position:absolute;inset:0;transform:translateX(-120%);background:linear-gradient(100deg,transparent,rgba(255,255,255,.25),transparent);transition:transform .45s ease;pointer-events:none;
}
.primary:hover:after,.start:hover:after,.warn:hover:after,.resume:hover:after{transform:translateX(120%)}
button:active{transform:translateY(1px) scale(.995)!important}
.join-grid .primary{letter-spacing:.03em;border:1px solid rgba(255,244,188,.24)}
.balance strong{background:linear-gradient(90deg,#fff0a5,#e6b83a);-webkit-background-clip:text;background-clip:text;color:transparent}
.round-progress{height:7px;background:rgba(255,255,255,.055);box-shadow:inset 0 1px 3px rgba(0,0,0,.5)}
.round-progress i{box-shadow:0 0 16px rgba(40,223,139,.28)}
.powerbar{border-color:rgba(237,201,83,.10)}
.powerbar button{transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease}
.powerbar button:hover:not(.used){transform:translateY(-2px);border-color:rgba(240,204,86,.42);box-shadow:0 10px 24px rgba(0,0,0,.22)}
.powerbar button.active{box-shadow:0 0 0 2px rgba(239,202,85,.10),0 10px 30px rgba(218,172,43,.12)}
.timer-ring{border:1px solid rgba(255,228,133,.15);box-shadow:0 14px 38px rgba(0,0,0,.58),0 0 30px rgba(237,194,61,.10)}
.question-card{border-color:rgba(244,211,111,.10)}
.option{min-height:64px;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.option:hover:not(:disabled){background:#143024;border-color:rgba(239,203,85,.52);box-shadow:0 10px 26px rgba(0,0,0,.22)}
.option b{box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.lucky{box-shadow:0 8px 24px rgba(200,156,30,.12);animation:luckyGlow 1.9s ease-in-out infinite alternate}
@keyframes luckyGlow{to{box-shadow:0 8px 28px rgba(233,188,47,.23),0 0 0 1px rgba(255,221,107,.08)}}
.leaderboard-card{border-color:rgba(255,255,255,.075)}
.leader-row{transition:background .16s ease}.leader-row:not(.head):hover{background:rgba(255,255,255,.025)}
.leader-row:nth-child(2) .rank,.leader-row:nth-child(3) .rank,.leader-row:nth-child(4) .rank{filter:drop-shadow(0 4px 10px rgba(229,190,62,.18))}
.status-tag{border:1px solid rgba(255,255,255,.06)}
.status-tag.active{background:rgba(26,202,116,.09)}.status-tag.eliminated{background:rgba(222,86,80,.09)}.status-tag.finalist{background:rgba(236,194,61,.10)}
.admin-stat{background:linear-gradient(160deg,rgba(17,36,26,.88),rgba(6,17,12,.9));box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.admin-card h3{letter-spacing:-.01em}.round-display{box-shadow:inset 0 0 35px rgba(213,172,44,.025)}
.admin-table thead th{position:sticky;top:0;background:#09150f;z-index:1}
.admin-table tbody tr{transition:background .15s ease}.admin-table tbody tr:hover{background:rgba(255,255,255,.026)}
.remove-player{border:1px solid rgba(239,102,94,.28);background:rgba(187,52,47,.14);color:#ffaaa4;border-radius:10px;padding:8px 11px;font-weight:800;font-size:11px}
.remove-player:hover{background:rgba(207,64,57,.25);border-color:rgba(255,125,116,.48)}
.logic-note{border:1px solid rgba(255,255,255,.045)}
.bottom-nav{background:rgba(5,17,11,.88);border-color:rgba(245,211,103,.11);box-shadow:0 20px 60px rgba(0,0,0,.65)}
.bottom-nav button{transition:background .18s ease,color .18s ease,transform .18s ease}.bottom-nav button:hover{background:rgba(255,255,255,.055);color:#fff}
.celebration-card{border-color:rgba(249,215,104,.44);box-shadow:0 45px 120px rgba(0,0,0,.82),0 0 80px rgba(230,183,53,.09)}
.celebration-content>strong{text-shadow:0 8px 30px rgba(44,231,143,.15)}
#toast{border:1px solid rgba(255,255,255,.45)}
@media(max-width:700px){
  body{background:radial-gradient(520px 320px at 90% -5%,rgba(229,184,53,.13),transparent 65%),linear-gradient(180deg,#06110c,#020805)}
  .site-header{backdrop-filter:blur(22px)}
  .hero-copy h1{font-size:clamp(45px,14vw,62px)}
  .hero-copy>p{font-size:16px}
  .join-card,.stage-card,.admin-card,.admin-login{border-radius:20px}
  .question-card{border-radius:22px}
  .option{min-height:60px;font-size:15px}
  .admin-table{min-width:800px}
  .bottom-nav{width:calc(100% - 24px);justify-content:space-around;bottom:max(10px,env(safe-area-inset-bottom))}
  .bottom-nav button{flex:1;width:auto;min-height:48px}
}
@media(max-width:420px){
  .header-actions .ghost{padding:10px 12px}.brand strong{letter-spacing:.045em}
  .hero-art{min-height:270px}.hero-coins{height:270px}
  .question-card h2{font-size:25px;margin-top:26px}.question-meta{font-size:10px}
  .powerbar button b{font-size:12px}.powerbar button small{font-size:9px}
  .timer-ring{width:72px;height:72px}.timer-ring span{font-size:22px}
}


/* === AYA Challenge 2.2 • universal-device responsive hardening === */
html,body{width:100%;max-width:100%;min-height:100%;min-height:100dvh}
body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.site-header{padding-top:max(11px,env(safe-area-inset-top));}
main{max-width:100%;min-height:calc(100dvh - 72px)}
img,svg,video,canvas{max-width:100%;height:auto}
.admin-board,.mini-table,.leaderboard-card{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.admin-table{width:100%;min-width:760px}
.admin-table th,.admin-table td{white-space:nowrap}
.question-card,.stage-card,.admin-card,.join-card{max-width:100%}
.option span,.question-card h2,.stage-card p,.logic-note,.admin-card p{overflow-wrap:anywhere;word-break:normal}
input,button{max-width:100%}
.end-game-card{border-color:rgba(239,102,94,.28);background:linear-gradient(160deg,rgba(55,18,16,.86),rgba(16,9,8,.9))}
.end-game-card h3{color:#ffb1aa}
#toast{max-width:min(92vw,520px);left:auto;right:max(14px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));line-height:1.35}
@media(max-width:1100px){
  .admin-grid{grid-template-columns:1fr 1fr}.hero-screen{gap:24px}.hero-copy h1{font-size:clamp(50px,8vw,82px)}
}
@media(max-width:820px){
  .hero-screen{grid-template-columns:1fr}.hero-art{order:-1;min-height:340px}.hero-coins{height:340px;width:min(100%,560px)}
  .admin-grid,.danger-grid{grid-template-columns:1fr}.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .control-grid{grid-template-columns:1fr 1fr}.section-head{align-items:flex-start;flex-wrap:wrap}
}
@media(max-width:600px){
  .site-header{gap:8px}.header-actions{gap:5px}.header-actions .ghost{padding:9px 10px;font-size:12px}
  main{padding-left:10px;padding-right:10px;padding-bottom:calc(105px + env(safe-area-inset-bottom))}
  .hero-art{min-height:250px}.hero-coins{height:250px;border-radius:20px}.hero-badge{right:2%;bottom:2%}
  .hero-copy h1{font-size:clamp(42px,14vw,56px)}.hero-copy>p{font-size:15px;line-height:1.5}
  .join-card,.question-card,.stage-card,.admin-card,.admin-login{padding:16px;border-radius:18px}
  .game-shell{margin-top:0}.game-topbar{gap:10px}.balance strong{font-size:16px}.round-pill{font-size:10px}
  .powerbar{gap:6px;padding:8px}.powerbar button{min-height:58px}.powerbar button b{font-size:11px}.powerbar button small{font-size:8.5px}
  .question-wrap{padding-top:27px}.timer-ring{width:68px;height:68px;right:7px}.timer-ring span{font-size:20px}
  .question-meta{padding-right:70px}.question-card h2{font-size:clamp(22px,7vw,30px);line-height:1.23;margin-top:24px}
  .option{padding:13px 12px;min-height:58px;font-size:14px}.option b{width:28px;height:28px}
  .lobby-stats{gap:8px}.lobby-stats div{padding:12px}.lobby-stats strong{font-size:22px}
  .admin-stat-grid{grid-template-columns:1fr 1fr;gap:8px}.admin-stat{padding:13px}.admin-stat strong{font-size:18px}
  .control-grid{grid-template-columns:1fr}.control-grid button{width:100%}
  .field-grid,.field-grid.three{grid-template-columns:1fr}
  .bottom-nav{left:12px;right:12px;transform:none;width:auto;bottom:max(8px,env(safe-area-inset-bottom));padding:6px}
  .bottom-nav button{min-width:0;padding:8px 5px}.bottom-nav button small{font-size:9px}
  #toast{left:12px;right:12px;max-width:none;text-align:center}
}
@media(max-width:360px){
  .brand strong{font-size:10px}.brand small{letter-spacing:.16em}.brand img{width:36px;height:36px}
  .header-actions .ghost{font-size:11px;padding:8px}.hero-copy h1{font-size:40px}
  .powerbar{grid-template-columns:1fr 1fr}.power-title{grid-column:1/-1}.powerbar button:last-child{grid-column:1/-1}
  .question-card{padding:14px 11px}.question-card h2{font-size:21px}.option{font-size:13px}
  .admin-stat-grid{grid-template-columns:1fr}.lobby-stats{grid-template-columns:1fr}.lobby-stats div:last-child{grid-column:auto}
}
@media(orientation:landscape) and (max-height:560px){
  .site-header{position:relative}.hero-screen{min-height:auto}.hero-art{display:none}.narrow{margin:1vh auto}.question-card{min-height:auto}.bottom-nav{position:sticky;margin:12px auto;transform:none;left:auto;bottom:6px;width:max-content}
}

/* ===== v2.3 WhatsApp + family social layer ===== */
.social-cta-row,.lobby-actions,.spectator-actions,.head-actions,.poster-actions,.celebration-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.social-cta-row{margin-top:15px}.whatsapp-btn{background:linear-gradient(135deg,#25d366,#128c4a);color:#04150b!important;border:1px solid #8bf0ad!important;box-shadow:0 10px 30px #25d36624;font-weight:900}.whatsapp-btn:hover{filter:brightness(1.08);transform:translateY(-1px)}.whatsapp-btn.small{padding:10px 13px;font-size:13px}.sponsor-banner{margin:16px 0;padding:14px 18px;display:grid;grid-template-columns:auto 1fr;gap:2px 14px;align-items:center;border-color:#e7c45455;background:linear-gradient(135deg,#1c190cdd,#0b2017dd)}.sponsor-banner>span{grid-row:1/3;color:#e7c657;font-size:11px;font-weight:900;letter-spacing:.12em}.sponsor-banner strong{color:#fff4c2;font-size:18px}.sponsor-banner small{color:#b5c2b9}.rsvp-card{max-width:660px;margin:auto}.rsvp-form{display:grid;gap:12px;margin:22px 0;text-align:left}.rsvp-form label{display:grid;gap:7px}.rsvp-form label span{font-size:13px;color:#c6d0ca}.rsvp-count{margin:12px 0 18px;padding:12px;border-radius:14px;background:#0a2e1e;color:#bff6d0;font-weight:800}.prediction-card{width:100%;margin-top:18px;padding:18px;border-radius:20px;border:1px solid #e4c5523b;background:linear-gradient(145deg,#0b1813,#0d251b);text-align:left}.prediction-card h3{margin:7px 0}.prediction-card p,.prediction-card small{color:#9fb0a6}.prediction-card select{width:100%;margin:10px 0 12px;padding:14px;border-radius:13px;border:1px solid #ffffff18;background:#06100c;color:#fff}.social-hub-card{grid-column:1/-1}.social-admin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.social-admin-grid button{min-height:74px;background:#10261c;color:#f4efdc;border:1px solid #ffffff12}.social-admin-grid button:hover{border-color:#d9b84a66;background:#153326}.poster-actions{margin-top:10px}.rsvp-preview{margin-top:14px;padding-top:14px;border-top:1px solid #ffffff10}.rsvp-preview>small{display:block;color:#e2c65c;margin-bottom:8px}.rsvp-preview>div{display:flex;flex-wrap:wrap;gap:7px}.rsvp-preview span{padding:7px 10px;border-radius:999px;background:#0a1711;color:#cbd6cf;font-size:12px;border:1px solid #ffffff10}.poster-modal{position:fixed;inset:0;z-index:1000;background:#010705e8;display:grid;place-items:center;padding:18px;backdrop-filter:blur(12px)}.poster-shell{width:min(620px,100%);max-height:94vh;overflow:auto;border-radius:25px;padding:16px}.poster-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.poster-head h3{margin:4px 0 0}.poster-shell>img{display:block;width:100%;height:auto;border-radius:18px;border:1px solid #dcbf5355;box-shadow:0 25px 70px #000a}.poster-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.celebration-actions{justify-content:center;margin-top:14px}.lobby-actions{justify-content:center}.spectator-actions{justify-content:center}.head-actions{justify-content:flex-end}

@media(max-width:900px){.social-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.social-hub-card{grid-column:auto}}
@media(max-width:700px){.social-cta-row,.lobby-actions,.spectator-actions,.celebration-actions{display:grid;grid-template-columns:1fr;width:100%}.social-cta-row button,.lobby-actions button,.spectator-actions button,.celebration-actions button{width:100%}.sponsor-banner{grid-template-columns:1fr}.sponsor-banner>span{grid-row:auto}.social-admin-grid{grid-template-columns:1fr 1fr}.poster-modal{padding:8px}.poster-shell{padding:10px;border-radius:18px}.poster-modal-actions{grid-template-columns:1fr}.head-actions{gap:6px}.head-actions button{padding:9px 10px}.prediction-card{padding:15px}}
@media(max-width:430px){.social-admin-grid{grid-template-columns:1fr}.sponsor-banner strong{font-size:16px}.rsvp-card{padding:18px}.poster-actions{display:grid;grid-template-columns:1fr;width:100%}.poster-actions button{width:100%}}

/* v2.5 — live Admin round-completion dashboard */
.round-completion{margin-top:18px;padding:18px;border:1px solid rgba(232,193,81,.22);border-radius:22px;background:linear-gradient(145deg,rgba(8,22,16,.92),rgba(13,34,25,.82));box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 18px 40px rgba(0,0,0,.22);transition:.25s ease}
.round-completion.all-complete{border-color:rgba(83,224,144,.58);box-shadow:0 0 0 1px rgba(83,224,144,.12),0 0 38px rgba(83,224,144,.12),inset 0 1px 0 rgba(255,255,255,.05)}
.round-completion-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.round-completion-head h4{margin:4px 0 0;font-size:18px}.progress-clock{white-space:nowrap;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.22);padding:9px 11px;border-radius:999px;font-size:12px;font-weight:800;color:#f3d975}
.completion-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.completion-counter{padding:12px;border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;gap:2px}.completion-counter strong{font-size:24px;line-height:1}.completion-counter small{font-size:11px;color:#a8b6ac}.completion-counter.complete strong{color:#69e89b}.completion-counter.playing strong{color:#f0c65b}.completion-counter.idle strong{color:#c5cbc7}.completion-counter.total strong{color:#fff}
.completion-meter{height:9px;background:rgba(255,255,255,.07);border-radius:999px;overflow:hidden;margin:14px 0 10px}.completion-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#dcae35,#f5d66d,#66e79a);border-radius:inherit;transition:width .4s ease}
.completion-notice{font-size:13px;line-height:1.55;color:#c8d1cb;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.035)}.all-complete .completion-notice{background:rgba(65,200,124,.10);color:#dffbea;border:1px solid rgba(83,224,144,.18)}
.round-progress-board{margin-top:12px;max-height:310px;overflow:auto;border-radius:14px}.progress-table{font-size:13px}.progress-table th{position:sticky;top:0;z-index:1;background:#0d2018}.progress-table tr.progress-not_started td{opacity:.75}.progress-table tr.progress-completed td{background:rgba(69,190,115,.04)}.progress-empty{padding:18px;text-align:center;color:#96a39a}
#endRoundBtn.ready-to-end{background:linear-gradient(135deg,#2ac56e,#76e49e)!important;color:#042311!important;border-color:rgba(139,255,181,.75)!important;box-shadow:0 0 0 1px rgba(91,226,141,.24),0 12px 34px rgba(46,199,110,.28)!important;animation:readyPulse 1.7s ease-in-out infinite}
@keyframes readyPulse{0%,100%{transform:translateY(0);box-shadow:0 0 0 1px rgba(91,226,141,.22),0 12px 34px rgba(46,199,110,.22)}50%{transform:translateY(-1px);box-shadow:0 0 0 4px rgba(91,226,141,.08),0 16px 42px rgba(46,199,110,.36)}}
@media(max-width:720px){.completion-counters{grid-template-columns:repeat(2,minmax(0,1fr))}.round-completion{padding:14px}.round-completion-head{align-items:flex-start}.progress-clock{font-size:11px;padding:8px 9px}.round-progress-board{max-height:260px;overflow-x:auto}.progress-table{min-width:560px}.completion-counter strong{font-size:21px}}
@media(max-width:420px){.round-completion-head{flex-direction:column}.progress-clock{align-self:flex-start}.completion-counter{padding:10px}.completion-counter small{font-size:10px}}


/* ===== v2.8 Admin joining switch + Friday 7 PM WAT lobby gate ===== */
.join-lock-notice{margin:14px 0 16px;padding:15px 16px;display:flex;gap:13px;align-items:flex-start;border:1px solid rgba(239,193,74,.28);border-radius:18px;background:linear-gradient(135deg,rgba(48,36,8,.76),rgba(8,24,16,.92));box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 16px 34px rgba(0,0,0,.18)}
.join-lock-icon{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:14px;background:rgba(232,188,53,.12);border:1px solid rgba(241,207,92,.22);font-size:21px}.join-lock-notice strong{display:block;color:#fff1b5;font-size:15px}.join-lock-notice p{margin:5px 0;color:#b9c5bd;font-size:13px;line-height:1.5}.join-lock-notice b{display:inline-block;margin-top:2px;color:#61e79a;font-size:13px;letter-spacing:.02em}.join-card input:disabled{opacity:.45;cursor:not-allowed}.join-card #joinBtn:disabled{opacity:.62;cursor:not-allowed;filter:saturate(.55)}
.join-admin-control{margin:4px 0 20px;padding:15px;border-radius:18px;border:1px solid rgba(232,196,81,.16);background:linear-gradient(145deg,rgba(8,24,17,.82),rgba(5,16,11,.92))}.toggle-row{display:flex!important;grid-template-columns:none!important;justify-content:space-between;align-items:center!important;gap:18px!important;margin:0!important}.toggle-row>span:first-child{display:grid;gap:3px}.toggle-row b{color:#f4e5a0}.toggle-row small{color:#9ead9f;line-height:1.4}.switch{position:relative;display:inline-flex;flex:0 0 58px;width:58px;height:32px}.switch input{position:absolute;opacity:0;pointer-events:none}.switch i{position:absolute;inset:0;border-radius:999px;background:#3b4540;border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 2px 6px rgba(0,0,0,.3);transition:.22s ease;cursor:pointer}.switch i:before{content:"";position:absolute;width:24px;height:24px;left:3px;top:3px;border-radius:50%;background:#d7ddd9;box-shadow:0 3px 10px rgba(0,0,0,.42);transition:.22s ease}.switch input:checked+i{background:linear-gradient(135deg,#1fa95f,#48dc88);border-color:rgba(118,240,163,.65);box-shadow:0 0 22px rgba(55,211,119,.17)}.switch input:checked+i:before{transform:translateX(26px);background:#f1fff6}.switch input:disabled+i{opacity:.45;cursor:not-allowed}.joining-schedule{margin-top:11px;padding-top:10px;border-top:1px solid rgba(255,255,255,.07);font-size:12px;color:#d9c674;line-height:1.5}
@media(max-width:520px){.join-lock-notice{padding:13px}.join-lock-icon{width:38px;height:38px;flex-basis:38px}.toggle-row{gap:10px!important}.switch{flex-basis:54px;width:54px;height:30px}.switch i:before{width:22px;height:22px}.switch input:checked+i:before{transform:translateX(24px)}}

/* ===== v2.9 Tournament history ===== */
.tournament-history-card{margin-top:18px}.tournament-history-card .card-head{align-items:flex-start}.tournament-history-card .card-head p{margin:5px 0 0;color:#98a79e;max-width:760px;font-size:13px;line-height:1.5}.history-list{display:grid;gap:10px;margin-top:14px}.history-item{width:100%;display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:16px;align-items:center;text-align:left;background:linear-gradient(145deg,#0b1b14,#0b2118);color:#eaf2ed;border:1px solid #ffffff10;padding:15px 16px;border-radius:17px}.history-item:hover{border-color:#d9bb4c66;background:#102b20}.history-item>span{display:grid;gap:3px;min-width:0}.history-item b{font-size:14px;color:#f5f0d8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-item small{font-size:11px;color:#94a59b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-item i{font-style:normal;color:#e4c75b;font-weight:900;font-size:12px}.history-empty,.history-loading{padding:22px;text-align:center;color:#94a59b;border:1px dashed #ffffff13;border-radius:16px;background:#07120d80}.history-detail{margin-top:18px;border-top:1px solid #ffffff0f;padding-top:18px}.history-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.history-detail-head h3{margin:4px 0 0}.history-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:18px}.history-summary>div{display:grid;gap:4px;padding:12px;border-radius:15px;background:#081710;border:1px solid #ffffff0d}.history-summary small{color:#93a39a;font-size:10px;text-transform:uppercase;letter-spacing:.07em}.history-summary b{font-size:14px;color:#f1ead0;overflow-wrap:anywhere}.history-detail h4{margin:20px 0 10px;color:#f2d36d}.history-table-wrap{overflow:auto;border:1px solid #ffffff0d;border-radius:15px}.history-table-wrap .admin-table{min-width:760px}.history-round-table .admin-table{min-width:980px}.history-round-chips{display:flex;flex-wrap:wrap;gap:8px}.history-round-chips span{padding:8px 10px;border-radius:999px;background:#0a1d15;border:1px solid #ffffff0d;color:#aebbb3;font-size:12px}.history-round-chips b{color:#eed36d}.history-detail .admin-table td,.history-detail .admin-table th{white-space:nowrap}
@media(max-width:900px){.history-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.history-item{grid-template-columns:1fr 1fr auto}.history-item>span:nth-child(3){display:none}}
@media(max-width:620px){.history-item{grid-template-columns:1fr auto}.history-item>span:nth-child(2),.history-item>span:nth-child(3){display:none}.history-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.history-detail-head{flex-direction:column}.history-detail-head .head-actions{width:100%;justify-content:flex-start}.history-detail-head .head-actions button{flex:1}.tournament-history-card .card-head{flex-direction:column}.tournament-history-card .card-head>button{width:100%}}

/* v3.0 archived payout/poster controls */
.history-formula-note{margin:-2px 0 10px;color:#aebbb3;font-size:12px;line-height:1.55}.history-formula-note b{color:#f1d36d}.history-actions{max-width:720px}.history-actions button{white-space:nowrap}@media(max-width:620px){.history-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}.history-actions button{width:100%}}

/* v3.5 stable responsive player interface */
html{scroll-behavior:auto;-webkit-text-size-adjust:100%}
body{min-height:100vh;min-height:100dvh}
main{width:min(1320px,100%);padding-block:clamp(16px,2.5vw,30px);padding-bottom:calc(112px + env(safe-area-inset-bottom))}
.screen{min-width:0}
#game.screen,#game.screen *{overflow-anchor:none}
#game.screen{animation:none}
#game .game-shell{width:100%;max-width:940px;margin:clamp(0px,1.5vh,14px) auto}
.game-topbar{gap:14px}
.powerbar{min-width:0}
.question-wrap{padding-top:30px}
.question-card{min-height:clamp(390px,52vh,500px);padding:clamp(22px,3.2vw,34px);border-radius:26px}
.question-meta{align-items:center;flex-wrap:wrap}
.question-card h2{max-width:100%;overflow-wrap:anywhere;text-wrap:pretty}
.options{grid-template-columns:repeat(2,minmax(0,1fr))}
.option{min-width:0;min-height:clamp(60px,8vh,74px);touch-action:manipulation;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
.option:hover:not(:disabled){transform:none}
.option span{min-width:0;overflow-wrap:anywhere}
.admin-card,.join-card,.stage-card,.leaderboard-card{border-radius:24px}
.admin-grid{align-items:start}
.admin-stat{min-width:0}
.history-item{grid-template-columns:minmax(150px,1fr) minmax(220px,1.5fr) auto;gap:14px;padding:15px}
.history-record-title,.history-record-metrics{display:grid;gap:4px;min-width:0}
.history-record-title>b,.history-record-metrics b{color:#f5f0d8;font-size:14px}
.history-record-title>small,.history-record-metrics small{color:#98a89e;font-size:11px;line-height:1.45}
.history-record-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.history-record-metrics>span{display:grid;gap:3px;min-width:0}
.history-record-actions{display:flex;justify-content:flex-end;gap:8px}
.history-record-actions button{white-space:nowrap}
.history-item:hover{transform:none}
@media(max-height:720px){
  #game .game-shell{margin:0 auto}
  .question-card{min-height:0}
  .question-wrap{padding-top:26px}
  .question-card h2{margin:18px 0}
  .option{min-height:54px;padding:12px}
  .powerbar{margin-bottom:10px;padding:8px}
}
@media(max-width:760px){
  main{padding:16px 12px calc(100px + env(safe-area-inset-bottom))}
  .game-shell{margin-top:0}
  .game-topbar{align-items:center}
  .question-card{min-height:0;padding:clamp(16px,4vw,22px);border-radius:20px}
  .question-card h2{font-size:clamp(22px,5.8vw,31px);line-height:1.22;margin:22px 0 18px}
  .question-wrap{padding-top:27px}
  .timer-ring{right:10px;width:72px;height:72px}
  .timer-ring span{font-size:23px}
  .question-meta{padding-right:72px}
  .options{grid-template-columns:1fr;gap:9px}
  .option{min-height:58px;padding:13px}
  .history-item{grid-template-columns:1fr;gap:12px}
  .history-record-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .history-record-actions{justify-content:stretch}
  .history-record-actions button{flex:1}
  .bottom-nav{position:fixed;left:12px;right:12px;bottom:max(8px,env(safe-area-inset-bottom));transform:none;width:auto;margin:0}
}
@media(max-width:420px){
  .site-header{padding-inline:10px}
  .brand{gap:7px}
  .brand img{width:36px;height:36px}
  .brand strong{font-size:10px}
  .brand small{letter-spacing:.14em}
  .game-topbar{gap:8px}
  .round-pill{font-size:9px;letter-spacing:.08em}
  .balance strong{font-size:15px}
  .powerbar{gap:6px}
  .powerbar button{font-size:12px}
  .history-record-metrics{grid-template-columns:1fr}
  .history-record-actions button{padding:10px 8px;font-size:12px}
}
@media(orientation:landscape) and (max-height:560px){
  .site-header{position:sticky;top:0}
  #game .game-shell{max-width:1000px}
  .game-topbar{margin-bottom:7px}
  .round-progress{margin-bottom:8px}
  .powerbar{grid-template-columns:auto repeat(3,minmax(0,1fr));margin-bottom:8px;padding:7px}
  .power-title{grid-column:auto}
  .question-wrap{padding-top:22px}
  .question-card{min-height:0;padding:14px 18px}
  .question-card h2{font-size:clamp(20px,3vw,30px);margin:14px 0}
  .timer-ring{width:62px;height:62px;right:14px}
  .timer-ring span{font-size:20px}
  .options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .option{min-height:46px;padding:8px 11px}
  .bottom-nav{position:fixed;left:auto;right:12px;bottom:8px;transform:none}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  #game.screen,.option,.bottom-nav button{animation:none!important;transition:none!important}
}
/* v3.5 player dashboard polish */
#lobby .stage-card{padding:clamp(22px,5vw,48px);border-color:rgba(239,203,85,.16);background:radial-gradient(circle at 50% 0,rgba(222,184,62,.09),transparent 48%),linear-gradient(160deg,#10251b,#09140f)}
#lobby .stage-coin{width:clamp(82px,12vw,130px);height:clamp(82px,12vw,130px);margin-bottom:4px}
#lobby .stage-card h2{font-size:clamp(30px,6vw,52px);overflow-wrap:anywhere}
#lobby .stage-card>p,#spectator .stage-card>p{max-width:620px;margin-inline:auto}
#lobby .lobby-stats{gap:clamp(8px,2vw,14px);margin:24px 0}
#lobby .lobby-stats div{display:grid;align-content:center;gap:7px;min-width:0;min-height:94px;background:linear-gradient(150deg,#0a1d14,#07110d);border-color:rgba(255,255,255,.09)}
#lobby .lobby-stats strong{font-size:clamp(20px,4vw,30px);overflow-wrap:anywhere}
#lobby .lobby-stats span{font-size:clamp(10px,1.4vw,12px);text-transform:uppercase;letter-spacing:.07em}
#leader .leaderboard-card{padding:clamp(10px,2vw,18px);border-radius:24px}
#leader .leader-row{min-width:0;gap:10px}
#leader .leader-name{min-width:0;overflow-wrap:anywhere}
#leader .board-tabs button{min-height:42px}
#spectator .stage-card{padding:clamp(20px,4vw,36px)}
@media(max-width:480px){
  #leader .section-head{align-items:flex-start;flex-direction:column}
  #leader .section-head .head-actions{width:100%;justify-content:stretch}
  #leader .section-head .head-actions button{flex:1}
  #lobby .lobby-stats div{min-height:82px;padding:12px 8px}
}
/* v3.6 inline answer score feedback */
.answer-feedback{min-height:42px;margin:6px 0 0;padding:7px 12px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:14px;background:transparent;color:transparent;text-align:center;font-size:14px;font-weight:900;line-height:1.3;visibility:hidden}
.answer-feedback.is-visible{visibility:visible}
.answer-feedback.is-correct{border-color:rgba(71,220,135,.3);background:linear-gradient(120deg,rgba(18,87,51,.75),rgba(8,38,26,.84));color:#9af0b9;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.answer-feedback.is-negative{border-color:rgba(235,103,96,.25);background:linear-gradient(120deg,rgba(97,35,32,.62),rgba(48,19,18,.78));color:#ffc0b9}
.answer-feedback.is-retry{border-color:rgba(239,203,85,.25);background:linear-gradient(120deg,rgba(94,72,19,.58),rgba(45,35,12,.74));color:#ffe68e}
@media(max-width:760px){.answer-feedback{min-height:40px;margin-top:5px;padding:7px 10px;font-size:13px}.question-wrap{padding-top:12px}}
@media(prefers-reduced-motion:reduce){.answer-feedback{transition:none}}
@media(max-height:560px){.answer-feedback{min-height:36px;margin-top:4px;padding:5px 8px;font-size:12px}.question-wrap{padding-top:8px}}

.round-intro{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;overflow:hidden;padding:24px;background:#000;color:#fff}
.round-intro img{display:block;width:min(88vw,760px);max-height:66vh;object-fit:contain}
.round-intro.is-splash .round-intro-count{display:none}
.round-intro.is-countdown img{display:none}
.round-intro-count{font-size:96px;font-weight:900;line-height:1;color:#fff}
@media(max-width:600px){.round-intro{padding:18px}.round-intro-count{font-size:72px}}
/* v3.8 question focus, progress, accessible lifelines and answer states */
#game .question-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:30px;gap:10px}
#game #cat{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#game #questionCount{min-width:56px;color:#e8d589;font-size:10px;font-weight:900;letter-spacing:.08em;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#game .question-progress{height:4px;margin:12px 0 0;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.09)}
#game .question-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#35d987,#f4d16c);box-shadow:0 0 12px rgba(60,220,135,.25);transition:width .2s ease}
#game .option.is-selected{border-color:rgba(244,211,111,.65);background:linear-gradient(145deg,#302913,#1a2417);box-shadow:inset 0 0 0 1px rgba(244,211,111,.12),0 0 18px rgba(220,183,65,.1)}
#game .option.is-correct{opacity:1;border-color:#51dd91;background:linear-gradient(145deg,#12452d,#0e3122);color:#d9ffe7}
#game .option.is-incorrect{opacity:1;border-color:#ef7770;background:linear-gradient(145deg,#4b211e,#321715);color:#ffe5e0}
#game .option.is-correct b{border-color:#51dd91;background:rgba(81,221,145,.15);color:#d9ffe7}
#game .option.is-incorrect b{border-color:#ef7770;background:rgba(239,119,112,.14);color:#ffe5e0}
#game .powerbar button:focus-visible,#game .option:focus-visible,#game .mobile-board:focus-visible,.power-confirm button:focus-visible{outline:3px solid rgba(244,211,111,.82);outline-offset:3px}
.power-confirm{width:min(440px,calc(100vw - 28px));max-width:none;padding:0;overflow:visible;border:1px solid rgba(239,207,104,.28);border-radius:24px;background:transparent;color:#f7f3e5;box-shadow:0 28px 85px rgba(0,0,0,.62)}
.power-confirm::backdrop{background:rgba(0,7,4,.78);backdrop-filter:blur(5px)}
.power-confirm-card{padding:clamp(22px,5vw,32px);border-radius:inherit;background:radial-gradient(ellipse at 50% 0,rgba(209,171,60,.15),transparent 52%),linear-gradient(155deg,#11251a,#06100b);text-align:center}
.power-confirm-icon{display:grid;width:56px;height:56px;place-items:center;margin:0 auto 14px;border:1px solid rgba(244,211,111,.3);border-radius:18px;background:rgba(224,184,61,.1);color:#f7d96f;font-size:23px;font-weight:900}
.power-confirm-card h2{margin:9px 0;color:#fff9e9;font-size:clamp(23px,5vw,29px);line-height:1.2}
.power-confirm-card p{margin:0 auto 12px;max-width:340px;color:#c4cec7;font-size:14px;line-height:1.55}
.power-confirm-card>small{display:block;color:#d9be6e;font-size:11px;line-height:1.45}
.power-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:22px}
.power-confirm-actions button{min-height:48px;padding:10px 12px;font-size:12px}
@media(max-width:420px){
  #game .question-meta{gap:7px}
  #game #questionCount{min-width:52px;font-size:9px}
  #game .powerbar button{min-height:66px;padding:7px 4px}
  #game .powerbar button b{font-size:10px;line-height:1.15}
  #game .powerbar button small{display:block!important;font-size:7px;line-height:1.2}
  .power-confirm-actions{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){#game .question-progress i{transition:none}}
/* v3.7 question page polish */
#game .game-topbar{position:relative;gap:16px;margin-bottom:10px;padding:12px 16px;border:1px solid rgba(255,255,255,.075);border-radius:20px;background:linear-gradient(125deg,rgba(15,34,24,.94),rgba(6,17,12,.94));box-shadow:0 14px 34px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.035)}
#game .game-topbar>div:first-child{align-content:center;gap:5px}
#game .round-pill{width:max-content;padding:6px 10px;border:1px solid rgba(240,205,92,.2);border-radius:999px;background:rgba(223,181,53,.09);color:#f5d879;font-size:11px;letter-spacing:.12em}
#game .game-topbar small{font-size:11px;letter-spacing:.025em}
#game .balance{padding-left:14px;border-left:1px solid rgba(255,255,255,.09)}
#game .balance small{display:block;margin-bottom:3px;color:#aebbb3;font-size:9px;font-weight:800;letter-spacing:.15em}
#game .balance strong{color:#f6d976;font-size:clamp(16px,2.6vw,22px);line-height:1.1}
#game .round-progress{height:7px;margin:0 3px 12px;background:rgba(255,255,255,.07);box-shadow:inset 0 1px 3px rgba(0,0,0,.25)}
#game .round-progress i{border-radius:inherit;background:linear-gradient(90deg,#35d987 0%,#8ce5a4 55%,#f4d16c 100%);box-shadow:0 0 16px rgba(60,220,135,.23)}
#game .powerbar{grid-template-columns:auto repeat(3,minmax(0,1fr));gap:9px;margin-bottom:8px;padding:10px;border:1px solid rgba(255,255,255,.075);border-radius:19px;background:linear-gradient(145deg,rgba(15,32,23,.96),rgba(7,17,12,.96));box-shadow:0 12px 26px rgba(0,0,0,.15)}
#game .power-title{color:#aebbb2;font-size:10px;font-weight:900;letter-spacing:.13em}
#game .powerbar button{min-width:0;min-height:61px;padding:9px 10px;border:1px solid rgba(255,255,255,.085);border-radius:14px;background:linear-gradient(145deg,#12261b,#0a1710);color:#f4f1df;line-height:1.25;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
#game .powerbar button b{color:#f4dfa0;font-size:12px}
#game .powerbar button small{margin-top:4px;color:#a8b6ac;font-size:9px;line-height:1.25}
#game .powerbar button:hover:not(.used){transform:none;border-color:rgba(244,211,111,.38);background:linear-gradient(145deg,#193426,#0c2016);box-shadow:0 5px 18px rgba(0,0,0,.2)}
#game .powerbar button.used{opacity:.42}
#game .powerbar button.active{border-color:rgba(244,211,111,.54);background:linear-gradient(145deg,#352d12,#1d2113);box-shadow:inset 0 0 0 1px rgba(244,211,111,.08),0 0 18px rgba(220,183,65,.08)}
#game .question-wrap{padding-top:32px}
#game .timer-ring{top:0;right:clamp(14px,3vw,26px);width:76px;height:76px;border:1px solid rgba(255,232,160,.22);background:radial-gradient(circle,#10251a 59%,transparent 61%),conic-gradient(#f6d978 var(--pct,100%),#26382d 0);box-shadow:0 12px 30px rgba(0,0,0,.42),0 0 24px rgba(236,197,79,.09)}
#game .timer-ring span{color:#fff3c1;font-size:25px;font-variant-numeric:tabular-nums}
#game .timer-ring small{color:#aebbb2;font-size:8px;font-weight:900;letter-spacing:.13em}
#game .question-card{min-height:clamp(390px,51vh,500px);padding:clamp(24px,3.5vw,38px);border:1px solid rgba(239,207,104,.16);border-radius:26px;background:radial-gradient(ellipse at 50% 0,rgba(208,170,55,.075),transparent 40%),linear-gradient(155deg,rgba(17,34,25,.985),rgba(7,16,12,.99));box-shadow:0 24px 60px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.045)}
#game .question-card:before{opacity:.46}
#game .question-meta{align-items:center;min-height:28px;padding-right:88px;color:#aebcb1;font-size:10px;letter-spacing:.11em}
#game #cat{display:inline-flex;align-items:center;min-height:26px;padding:5px 10px;border:1px solid rgba(240,204,89,.17);border-radius:999px;background:rgba(219,177,51,.075);color:#e9d58f;font-weight:900}
#game #questionCount{color:#9cab9f;font-size:10px;font-weight:800;letter-spacing:.07em}
#game .question-card h2{max-width:820px;margin:clamp(22px,3vw,34px) 0 26px;color:#fff9e9;font-size:clamp(27px,4vw,43px);font-weight:780;line-height:1.2;letter-spacing:-.025em;text-wrap:balance}
#game .lucky{margin:16px 96px 0 0;padding:10px 13px;border:1px solid rgba(244,211,111,.27);border-radius:14px;background:linear-gradient(110deg,rgba(113,80,15,.42),rgba(42,34,13,.8));color:#ffe59b;font-size:10px;line-height:1.45;letter-spacing:.09em}
#game .options{gap:11px}
#game .option{min-height:72px;gap:13px;padding:14px 16px;border:1px solid rgba(255,255,255,.085);border-radius:17px;background:linear-gradient(145deg,rgba(20,42,30,.98),rgba(11,27,19,.98));color:#f3f4e9;font-size:clamp(14px,1.7vw,16px);line-height:1.4;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
#game .option b{width:34px;height:34px;border:1px solid rgba(243,213,119,.23);background:linear-gradient(145deg,rgba(229,190,70,.15),rgba(226,188,72,.07));color:#f6d979;font-size:12px}
#game .option span{font-weight:650}
#game .option:hover:not(:disabled){transform:none;border-color:rgba(241,208,103,.45);background:linear-gradient(145deg,#183626,#10271b);box-shadow:0 7px 22px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.04)}
#game .option:active:not(:disabled){border-color:rgba(241,208,103,.6);background:#193827}
#game .option:focus-visible{outline:3px solid rgba(244,211,111,.72);outline-offset:2px}
#game .option.correct-flash{border-color:#51dd91;background:linear-gradient(145deg,#12452d,#0e3122);color:#d9ffe7}
#game .option.wrong-flash{border-color:#ef7770;background:linear-gradient(145deg,#4b211e,#321715);color:#ffe5e0}
#game .game-message{min-height:20px;margin-top:17px;padding-top:12px;border-top:1px solid rgba(255,255,255,.065);color:#a6b5aa;font-size:12px;line-height:1.45}
#game .mobile-board{border-color:rgba(241,208,103,.22);border-radius:14px;background:rgba(16,34,24,.88);color:#ead999}
@media(max-height:720px){#game .question-card{min-height:0}}
@media(max-width:760px){
  #game .game-topbar{margin-bottom:8px;padding:10px 12px;border-radius:17px}
  #game .round-pill{font-size:10px}
  #game .balance{padding-left:10px}
  #game .round-progress{margin-bottom:9px}
  #game .powerbar{gap:7px;margin-bottom:5px;padding:8px;border-radius:16px}
  #game .power-title{font-size:9px}
  #game .powerbar button{min-height:56px;padding:8px 6px;border-radius:12px}
  #game .powerbar button b{font-size:11px}
  #game .powerbar button small{font-size:8px}
  #game .question-wrap{padding-top:29px}
  #game .question-card{min-height:0;padding:22px 16px 16px;border-radius:22px}
  #game .timer-ring{right:10px;width:68px;height:68px}
  #game .timer-ring span{font-size:22px}
  #game .question-meta{padding-right:70px}
  #game .question-card h2{margin:22px 0 19px;font-size:clamp(23px,6vw,32px);line-height:1.24}
  #game .lucky{margin-right:72px;font-size:9px}
  #game .options{grid-template-columns:1fr;gap:9px}
  #game .option{min-height:60px;padding:12px 13px;border-radius:15px;font-size:15px}
  #game .option b{width:31px;height:31px}
  #game .game-message{margin-top:14px;padding-top:10px}
}
@media(max-width:420px){
  #game .powerbar{grid-template-columns:repeat(3,minmax(0,1fr))}
  #game .power-title{grid-column:1/-1}
  #game .powerbar button{min-height:52px}
  #game .powerbar button small{display:none}
  #game .question-card{padding:20px 13px 14px}
  #game .question-card h2{font-size:clamp(22px,6vw,27px)}
  #game .question-meta{font-size:9px}
  #game .option{min-height:58px;padding:11px}
}
@media(orientation:landscape) and (max-height:560px){
  #game .game-topbar{padding:7px 11px}
  #game .round-progress{margin-bottom:6px}
  #game .powerbar{margin-bottom:3px;padding:6px}
  #game .powerbar button{min-height:44px;padding:6px}
  #game .powerbar button small{display:none}
  #game .question-wrap{padding-top:24px}
  #game .timer-ring{width:56px;height:56px;right:14px}
  #game .timer-ring span{font-size:18px}
  #game .question-card{padding:13px 16px}
  #game .question-card h2{margin:12px 0;font-size:clamp(20px,3vw,29px)}
  #game .option{min-height:44px;padding:7px 9px;font-size:13px}
  #game .option b{width:25px;height:25px}
  #game .game-message{margin-top:8px;padding-top:6px}
}
/* Final v3.8 overrides keep the new question controls tidy on compact screens. */
@media(min-height:721px) and (min-width:761px){
  #game .question-card{min-height:clamp(450px,54vh,530px)}
  #game .question-card h2{min-height:2.35em}
}
@media(max-width:420px){
  #game .powerbar button{min-height:66px;padding:7px 4px}
  #game .powerbar button b{font-size:10px;line-height:1.15}
  #game .powerbar button small{display:block!important;font-size:8px;line-height:1.2}
}
@media(orientation:landscape) and (max-height:560px){
  #game .powerbar button{min-height:44px;padding:6px}
  #game .powerbar button small{display:none!important}
  #game .question-card h2{min-height:0}
}

@media(max-width:380px){
  #game .game-topbar{flex-wrap:wrap;gap:8px}
  #game .game-topbar>div:first-child{flex:1 1 130px;min-width:0}
  #game .balance{flex:0 1 auto;max-width:48%;padding-left:8px}
  #game .balance strong{font-size:14px;overflow-wrap:anywhere}
  #game .question-meta{padding-right:68px}
  #game .timer-ring{right:7px;width:58px;height:58px}
  #game .timer-ring span{font-size:18px}
  #game .lucky{margin-right:68px}
  #game .option{gap:9px;padding:10px;font-size:14px}
  .bottom-nav{gap:3px;padding:5px}
  .bottom-nav button{min-width:0;padding:7px 3px}
  .bottom-nav button small{font-size:8px}
}
@media(orientation:landscape) and (max-height:480px){
  main{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  #game .question-wrap{padding-top:18px}
  #game .question-card{padding:10px 13px}
  #game .question-card h2{margin:9px 0;font-size:20px}
  #game .option{min-height:40px;padding:6px 8px}
  .bottom-nav{min-height:42px}
}
/* v3.9 connection recovery, onboarding, clear round results, and player preferences */
.player-settings{position:relative}
.player-settings>summary{display:grid;min-width:44px;min-height:44px;place-items:center;padding:9px 11px;list-style:none;font-size:16px}
.player-settings>summary::-webkit-details-marker,.player-guide>summary::-webkit-details-marker{display:none}
.player-settings>summary::marker,.player-guide>summary::marker{content:""}
.settings-panel{position:absolute;top:calc(100% + 9px);right:0;z-index:45;width:min(330px,calc(100vw - 22px));max-height:min(76vh,560px);overflow:auto;padding:16px;border:1px solid rgba(239,207,104,.2);border-radius:19px;background:linear-gradient(155deg,#10231a,#06100b);box-shadow:0 22px 55px rgba(0,0,0,.55)}
.settings-panel>strong{display:block;margin:2px 2px 10px;color:#f0d271;font-size:10px;letter-spacing:.15em}
.setting-row{display:flex!important;justify-content:space-between;align-items:center!important;gap:12px!important;margin:0 0 8px;padding:11px 10px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:rgba(255,255,255,.025)}
.setting-row>span{display:grid;gap:3px;color:#ecf0eb;font-size:12px}
.setting-row>span small{color:#9eafa4;font-size:10px;line-height:1.35}
.setting-row select{width:auto;min-width:94px;padding:8px 9px;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:#07110d;color:#fff}
.setting-row input[type=checkbox]{width:21px;height:21px;flex:0 0 21px;margin:0;padding:0;accent-color:#38d985}
.player-guide{margin:0 0 15px;border:1px solid rgba(239,207,104,.16);border-radius:16px;background:rgba(5,15,10,.48)}
.player-guide>summary{padding:12px 14px;color:#f1d777;font-size:13px;font-weight:850;cursor:pointer;list-style:none}
.guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 10px 10px}
.guide-steps>div{min-width:0;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.025)}
.guide-steps b{color:#f5df99;font-size:11px}
.guide-steps p{margin:5px 0 0;color:#aab8af;font-size:10px;line-height:1.45}
.join-lock-notice button{margin-top:7px}
.connection-notice{min-height:38px;display:flex;align-items:center;margin:0 0 8px;padding:0 13px;visibility:hidden;border:1px solid transparent;border-radius:13px;font-size:12px;font-weight:800;line-height:1.35}
.connection-notice.is-visible{visibility:visible}
.connection-notice.is-offline{border-color:rgba(239,119,112,.32);background:linear-gradient(110deg,rgba(98,35,32,.68),rgba(47,20,18,.86));color:#ffd0ca}
.connection-notice.is-connecting{border-color:rgba(239,207,104,.3);background:linear-gradient(110deg,rgba(91,70,19,.62),rgba(42,34,13,.86));color:#ffebac}
.connection-notice.is-online{border-color:rgba(71,220,135,.3);background:linear-gradient(110deg,rgba(18,87,51,.65),rgba(8,38,26,.85));color:#b8f8ce}
.celebrate-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:430px;margin:15px auto 13px}
.celebrate-summary>div{display:grid;gap:5px;padding:11px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.035)}
.celebrate-summary small{color:#aab8af;font-size:9px;font-weight:850;letter-spacing:.12em}
.celebrate-summary b{color:#f5d978;font-size:16px;overflow-wrap:anywhere}
html.aya-large-text #game #question{font-size:clamp(30px,4.4vw,47px)}
html.aya-large-text #game .option{font-size:clamp(16px,2vw,19px)}
html.aya-large-text #game .game-message,html.aya-large-text #game .answer-feedback{font-size:15px}
html.aya-large-text #game .powerbar button b{font-size:14px}
html.aya-large-text #game .powerbar button small{font-size:10px}
html.aya-large-text .player-guide>summary{font-size:15px}
html.aya-large-text .guide-steps b{font-size:13px}
html.aya-large-text .guide-steps p{font-size:12px}
html.aya-reduced-motion *,html.aya-reduced-motion *::before,html.aya-reduced-motion *::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
html.aya-reduced-motion .coin-rain{display:none!important}
@media(max-width:700px){
  .settings-panel{right:0;width:min(330px,calc(100vw - 18px))}
  .guide-steps{grid-template-columns:1fr}
  .guide-steps>div{padding:9px 11px}
  .guide-steps p{font-size:11px}
  html.aya-large-text #game #question{font-size:clamp(26px,6.5vw,36px)}
  html.aya-large-text #game .option{font-size:17px}
}
@media(max-width:420px){.celebrate-summary{gap:7px}.celebrate-summary>div{padding:9px}.celebrate-summary b{font-size:14px}}
@media(orientation:landscape) and (max-height:560px){.guide-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Family teams, prompts, and theme controls */
.player-reward-badge{display:inline-flex;align-self:center;padding:7px 11px;border-radius:999px;background:#163425;border:1px solid rgba(84,233,158,.28);color:#a7f3c5;font-size:11px;font-weight:850}
.admin-card select{width:100%;border-radius:13px;border:1px solid #ffffff16;background:#0b1711;color:#fff;padding:14px 15px;outline:none}
#game #playerTeamBadge,#game #playerRewardBadgeGame{color:#9ead9f;font-size:10px;line-height:1.35}
.team-standing-head,.team-standing-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(130px,.8fr) minmax(110px,.7fr);gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}
.team-standing-head{color:#91a197;background:#ffffff05;font-size:10px;font-weight:850;text-transform:uppercase}
.team-standing-row strong{overflow-wrap:anywhere}.team-standing-row span{color:#9aaba0;font-size:12px}.team-standing-row b{color:var(--gold);text-align:right}.team-empty{padding:24px;text-align:center;color:#a6b2aa;line-height:1.5}
.family-prompt{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding:16px 18px;border-radius:18px}.family-prompt h3{margin:5px 0;font-size:17px}.family-prompt p{margin:0;color:#c5d0c8;line-height:1.5}
@media(min-width:701px){.join-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.join-grid label:last-of-type,.join-grid button{grid-column:1/-1}}
@media(max-width:700px){.join-grid{grid-template-columns:1fr}.join-grid label:last-of-type,.join-grid button{grid-column:auto}.team-standing-head,.team-standing-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.team-standing-head span:nth-child(2){display:none}.team-standing-row span{grid-column:1}.team-standing-row b{grid-column:2;grid-row:1/3}.family-prompt{align-items:flex-start;padding:14px}.family-prompt button{flex:0 0 auto}}
@media(prefers-reduced-motion:reduce){.connection-notice,.settings-panel,.player-guide{scroll-behavior:auto}}

/* v10: distinct challenge presentation while keeping the same four-choice scoring. */
#game .game-mode-badge{display:inline-flex;align-items:center;gap:7px;margin:17px 0 0;padding:7px 11px;border:1px solid rgba(241,209,110,.28);border-radius:999px;background:rgba(241,209,110,.08);color:#f5d875;font-size:10px;font-weight:900;letter-spacing:.12em}
#game .game-play-area{margin:15px 0 0;padding:18px;border:1px solid rgba(255,255,255,.08);border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018));text-align:center}
#game .mode-caption{display:block;margin-bottom:12px;color:#aab7ad;font-size:10px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
#game .scramble-tiles{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}
#game .scramble-tiles span{display:grid;width:clamp(37px,7vw,54px);height:clamp(42px,8vw,60px);place-items:center;border:1px solid rgba(241,209,110,.34);border-radius:12px;background:linear-gradient(145deg,#2a2818,#171c13);color:#ffe888;font-size:clamp(20px,4vw,30px);font-weight:950;box-shadow:0 7px 16px rgba(0,0,0,.2)}
#game .pattern-sequence{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px}
#game .pattern-sequence span{min-width:48px;padding:10px 12px;border:1px solid rgba(255,255,255,.1);border-radius:11px;background:#09140e;color:#fff5ce;font-size:clamp(16px,3vw,23px);font-weight:850}
#game .pattern-sequence span:last-child{border-color:rgba(241,209,110,.48);color:#f5d875}
#game .memory-sequence{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px}
#game .memory-sequence span{padding:11px 14px;border:1px solid rgba(84,217,144,.28);border-radius:13px;background:rgba(84,217,144,.08);color:#e2ffed;font-size:clamp(15px,2.5vw,20px);font-weight:850}
#game .memory-hidden{color:#f5d875;font-size:13px;font-weight:850}
#game .options.awaiting-memory{display:none!important}
@media(max-width:700px){#game .game-play-area{margin:12px 0 0;padding:14px 10px}#game .pattern-sequence{gap:5px}#game .pattern-sequence span{min-width:39px;padding:9px 8px}#game .memory-sequence{gap:6px}#game .memory-sequence span{padding:9px 10px;font-size:14px}}
