@font-face{font-family:Party;src:local('Arial');font-display:swap}
:root{color-scheme:dark;--bg:#020806;--surface:#09140f;--surface-2:#102017;--accent:#c8ff2e;--lime:#b4fa20;--text:#f5f8f3;--muted:#a5b2a8;--border:#31422b;--danger:#ff665e;--radius:24px;--shadow:0 14px 38px #0006,0 0 25px #9ddb1510;--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}
html{min-width:0;background:var(--bg);scroll-behavior:smooth}
body{margin:0;font-family:Inter,Party,Arial,sans-serif;color:var(--text);font-size:16px;line-height:1.5;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:contain}
button,input,textarea,select{font:inherit}
button{cursor:pointer;color:inherit}
button,input,textarea,select,a{-webkit-touch-callout:none}
button{touch-action:manipulation}
button:disabled{cursor:default;opacity:.43;filter:saturate(.5)}
button:active:not(:disabled){transform:scale(.98)}
button{transition:transform .12s,background .12s,border-color .12s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
img,svg{max-width:100%}
img{display:block}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.12;font-weight:900;letter-spacing:-.045em}
h1{font-size:clamp(32px,8vw,50px)}
h2{font-size:25px}
h3{font-size:20px}strong{color:var(--accent)}small{font-size:13px}a{color:var(--accent)}[hidden]{display:none!important}
.ambient{position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 0,#28481755,transparent 40%),radial-gradient(ellipse at 90% 55%,#16351c35,transparent 35%),#020806;pointer-events:none}
.app-shell{max-width:760px;margin:auto;padding:calc(20px + env(safe-area-inset-top,0px)) 20px calc(95px + var(--safe-bottom))}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.brand{border:0;background:transparent;padding:0;display:flex;align-items:center;text-align:left;gap:10px;min-width:0}
.brand>span{min-width:0}
.brand img{border-radius:14px;box-shadow:0 0 15px #adf72922;flex:none}
.brand-title{display:block;font-size:25px;font-weight:900;letter-spacing:-.055em;line-height:1.2;white-space:nowrap}
.brand-tag{display:block;font-size:9px;font-weight:700;letter-spacing:.2em;color:#b4beb6;margin-top:4px}

#view{outline:none;min-width:0;animation:enter .18s ease-out}
#view>*{min-width:0}
.connection{background:#362818;color:#f4d8a0;padding:9px 12px;border-radius:14px;font-size:14px;margin-bottom:14px}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;padding:8px 20px calc(8px + var(--safe-bottom));display:flex;justify-content:center;gap:8px;background:#05100eec;border-top:1px solid #30422c;backdrop-filter:blur(18px);z-index:15}

.bottom-nav.playing{display:none}
.foot{display:flex;align-items:center;justify-content:center;gap:12px;color:#a1af9e;font-size:10px;font-weight:700;letter-spacing:.14em;text-align:center;margin:30px 0 0}
.foot span{height:1px;flex:1;background:linear-gradient(90deg,transparent,#aefa22)}
.foot span:last-child{transform:rotate(180deg)}
.panel,.section,.rejoin-card{background:linear-gradient(145deg,#172619dd,#07100deb 65%);border:1px solid #456039;border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);margin-bottom:16px}
.section{margin-top:18px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;min-width:0}
.section-head h2{font-size:22px}
.section-head>span{font-size:13px;color:var(--muted);text-align:right}
.kicker,.eyebrow,.room-label,.time-target-label,.music-personal-label{font-size:12px;text-transform:uppercase;letter-spacing:.15em;color:var(--accent);font-weight:800}
.hero p{font-size:9px;letter-spacing:.2em;color:#b7c2b6;font-weight:700}
.home-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.entry-btn.primary{background:linear-gradient(145deg,#d7ff72,#b2f431 58%,#8dd619);border-color:#edffa6;color:#091500;box-shadow:inset 0 1px 0 #fff8,0 7px 23px #a2e22222}
.host-link{background:transparent;border:0;color:#b9caaa;min-height:44px;width:100%;font-size:14px;margin-bottom:10px}
.home-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:20px 0 14px}
.home-head h2{font-size:25px}
.home-head span{font-size:12px;color:var(--muted)}
.game-card.active{border-color:var(--accent);box-shadow:inset 0 0 15px #c3ff2310,0 0 15px #c3ff2318}

.mini-leader b{font-size:21px;line-height:1.1;display:block;font-weight:900;letter-spacing:-.04em}
.mini-leader p{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.45}
.pagehead{display:flex;align-items:center;gap:12px;margin:4px 0 18px}
.pagehead h2{font-size:27px}
.back{width:44px;height:44px;border:1px solid #465b37;border-radius:14px;background:#101c13;font-size:23px;flex:none}
.lead{font-size:15px;color:var(--muted);max-width:440px;line-height:1.55}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:13px 20px;border-radius:17px;border:1px solid #587039;background:linear-gradient(135deg,#1a291b,#0b160f);color:var(--text);font-size:16px;font-weight:800;text-align:center;line-height:1.25}
.btn.primary,.time-start{background:linear-gradient(130deg,#e4ff67,#b9fa22 60%,#96df13);border-color:#e4ff8b;color:#091000;box-shadow:0 0 24px #b5ff1920}
.btn.ghost{background:#0c1911;border-color:#3f5337;color:#d9e3d2}
.btn.secondary{background:linear-gradient(135deg,#233a1c,#111d12)}
.btn.small{min-height:44px;padding:10px 13px;font-size:14px;border-radius:13px}
.btn.full{width:100%;margin-top:15px}
.actions{display:flex;flex-wrap:wrap;gap:10px}
.actions>.btn{flex:1;min-width:120px}
.danger-link{background:none;border:0;min-height:44px;padding:8px;font-size:14px;color:var(--danger);font-weight:700}
.danger-btn{border:1px solid #864838;background:#351a16;width:100%;padding:14px;border-radius:15px;color:#ffc0b5;margin:10px 0 0;font-weight:700;min-height:48px}
.danger-btn.strong{background:linear-gradient(135deg,#eb5844,#aa251f);color:white;border-color:#ff8270}
.form-block{margin:22px 0}
.form-block label,.field-label{display:block;font-size:14px;font-weight:700;color:#c5d1bf;margin-bottom:10px}
.input,.textarea,.select{display:block;width:100%;min-width:0;border:1px solid #536548;background:linear-gradient(135deg,#122015,#08100b);color:var(--text);border-radius:16px;min-height:56px;padding:14px 16px;font-size:17px;line-height:1.3}
.textarea{min-height:110px;resize:vertical}
.select option{background:#0a170f}
.input::placeholder,.textarea::placeholder{color:#667960}
.input:focus,.textarea:focus{border-color:var(--accent);box-shadow:0 0 18px #b5ff1610}
.score-picker{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #38542a;border-radius:18px;padding:12px;background:#111e11}
.round-btn{width:47px;height:47px;border:1px solid #526b3a;background:#213217;border-radius:14px;font-size:28px}
.score-value{font-size:34px;line-height:1;font-weight:900;color:var(--accent)}
.mode-list{display:grid;gap:10px}
.mode{display:block;text-align:left;width:100%;position:relative;background:linear-gradient(130deg,#19271c,#0c160f);border:1px solid #40523a;border-radius:17px;padding:16px 40px 16px 17px}
.mode.active{border-color:var(--accent);background:linear-gradient(130deg,#2f4415,#10200c)}
.mode-title{font-weight:800;font-size:16px;line-height:1.25}
.mode-copy{font-size:14px;color:#aab8a0;line-height:1.45;margin-top:6px}
.mode-dot{position:absolute;right:14px;top:19px;width:15px;height:15px;border:1px solid #719055;border-radius:50%}
.active .mode-dot{background:var(--accent);border-color:var(--accent);box-shadow:0 0 10px #b5ef3160}
.note,.skip-note,.leader-note{font-size:14px;color:var(--muted);line-height:1.55;padding:12px 0}
.note b{color:#d8e7c4}
.rule-note{border-left:2px solid #a0d62c;padding:2px 0 2px 12px;margin-top:14px;font-size:14px;color:var(--muted)}
.npc-box{padding:16px;border:1px solid #4c6530;border-radius:15px;background:#22331466;margin-top:12px}
.name-add,.time-custom-row{display:flex;align-items:center;gap:8px;min-width:0}
.name-add .input,.time-custom-row .input{flex:1;width:0;min-width:0}
.name-add .btn{flex:none}
.names-list{margin-top:14px}
.name-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #283c25;padding:5px 0;min-width:0}
.name-row .name-text{flex:1;overflow-wrap:anywhere}
.name-row .avatar{width:36px;height:36px;font-size:12px}
.time-preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.time-preset{padding:13px 10px;border:1px solid #425635;border-radius:15px;background:#122011;font-size:12px;font-weight:800;min-width:0;text-align:left;letter-spacing:.02em}
.time-preset.active{border-color:var(--accent);color:var(--accent);background:#2b3c1255}
.time-preset small{display:block;font-size:11px;color:var(--muted);font-weight:400;letter-spacing:0;margin-top:5px;line-height:1.5}
.time-targets{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.time-chip{display:flex;align-items:center;gap:5px;background:#223a1855;border:1px solid #455f34;border-radius:13px;padding:5px 6px 5px 12px;font-size:14px;font-weight:700}
.time-chip button{border:0;background:transparent;color:#bedb94;font-size:23px;width:44px;height:44px;padding:0}
.time-count{font-size:13px;color:var(--muted);margin-top:14px}
.time-count b{color:var(--accent)}
.room-header{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #6b8e3c;border-radius:22px;padding:19px;background:linear-gradient(140deg,#2e421966,#09100c);margin-bottom:16px}
.room-code{font-size:40px;font-weight:900;letter-spacing:.1em;line-height:1.2;color:var(--accent)}
.room-actions{display:flex;flex-direction:column;gap:6px}
.lobby-meta{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin:16px 0}
.meta{border:1px solid #364f29;border-radius:15px;padding:13px 9px;background:#12200f;min-width:0}
.meta span{display:block;font-size:12px;color:var(--muted)}
.meta b{display:block;font-size:16px;font-weight:900;margin-top:5px;overflow-wrap:anywhere}
.players{display:grid;gap:9px}
.player{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 12px;border:1px solid #3b5330;border-radius:17px;background:linear-gradient(130deg,#162519,#08100c);min-width:0}
.player-left{display:flex;align-items:center;gap:12px;min-width:0}
.player-left>div:last-child{min-width:0}
.player-name{font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.player-sub{font-size:12px;color:var(--muted);line-height:1.45;margin-top:5px}
.avatar{position:relative;width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:50%;border:0;background:none;box-shadow:none;font-size:14px}
.avatar.white{background:none;border:0}
.avatar.dark{background:none;border:0}
.avatar.gold{background:none;border:0}
.pill{font-size:12px;font-weight:800;color:var(--accent);border:1px solid #62733c;background:#24351199;border-radius:10px;padding:5px 8px;flex:none;max-width:130px;text-align:center}
.status,.single-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 18px;border-bottom:1px solid #284322;padding-bottom:15px}
.status .gm,.single-top .gm{font-size:13px;color:#a7ba97}
.round{font-size:14px;font-weight:800;color:var(--accent)}
.status>div:last-child{max-width:70%;text-align:right}
.game-heading{display:flex;align-items:center;gap:13px;margin-bottom:23px;min-width:0}
.game-heading h1{font-size:clamp(26px,7.5vw,36px);overflow-wrap:anywhere}
.game-heading p{font-size:10px;letter-spacing:.1em;color:var(--muted);margin-top:7px;line-height:1.45}
.auto-badge,.npc-badge{display:inline-flex;align-items:center;border:1px solid #526d31;border-radius:12px;padding:7px 11px;color:#c1e694;font-size:12px;font-weight:700;margin-bottom:13px}
.question-panel{padding:23px 20px;border-color:#618c35;box-shadow:inset 0 1px 0 #cbff3c22,0 0 25px #b5ff1610}
.question{font-size:clamp(27px,7.5vw,42px);font-weight:900;letter-spacing:-.04em;line-height:1.18;margin:14px 0 22px;overflow-wrap:anywhere}
.hint-row{margin:15px 0;position:relative}
.hint-btn{width:100%;background:linear-gradient(135deg,#1d3019,#0b170f);border:1px solid #57783c;border-radius:16px;min-height:52px;text-align:left;padding:13px 15px 13px 48px;font-size:14px;font-weight:700;color:#d2eac1}
.hint-btn:before{content:none}
.hint-box{display:none;padding:13px 3px 0;font-size:14px;color:#bfd49f}
.hint-box.show{display:block;animation:enter .15s}
.answer-wrap{margin-top:18px}
.answer-grid{display:flex;align-items:stretch;gap:0;background:#11200d;border:1px solid #a5d23e;border-radius:20px;box-shadow:0 0 15px #b9fb2920;min-width:0;overflow:hidden}
.guess-input-wrap{position:relative;flex:1;min-width:0}
.guess-input-wrap .input{background:transparent;border:0;border-radius:0;font-size:38px;font-weight:900;text-align:center;padding:17px 12px 17px 40px;min-height:80px;box-shadow:none}
.sign-toggle{position:absolute;left:4px;top:50%;transform:translateY(-50%);width:36px;height:44px;color:#b8d59c;background:transparent;border:0;font-size:20px}
.sign-toggle:active:not(:disabled){transform:translateY(-50%) scale(.98)}
.unit{display:grid;place-items:center;min-width:60px;max-width:35%;padding:12px;border-left:1px solid #658137;font-size:17px;font-weight:700;color:#c7d4bc;overflow-wrap:anywhere}
.answer-wrap>.primary{width:100%;min-height:63px;margin-top:13px;font-size:19px}
.secret{font-size:14px;padding:18px 0;color:#c9ddb4}
.submitted{text-align:center;padding:20px 10px}
.submitted .tick{font-size:35px;width:64px;height:64px;display:grid;place-items:center;margin:0 auto 15px;border:1px solid #b4e431;background:#9ccc2522;border-radius:50%;color:var(--accent)}
.submitted h3{font-size:24px}
.submitted p{font-size:14px;color:var(--muted);margin-top:8px}
.progress-row{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-bottom:9px}
.progress-track{height:8px;border:1px solid #32472b;background:#172319;border-radius:99px;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,#79c915,#d4ff3c);border-radius:99px;box-shadow:0 0 10px #b5ff2277;transition:width .2s}
.waitlist{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.wait{border:1px solid #354c2d;border-radius:15px;padding:13px 10px;min-width:0;background:#0e1b11}
.wait.done{border-color:#83a340;background:#203415}
.wait-top{display:flex;align-items:center;gap:8px}
.wait .avatar{width:30px;height:30px;font-size:11px}
.wait-name{font-weight:800;font-size:14px;overflow-wrap:anywhere;min-width:0;flex:1}
.wait-check{color:var(--accent);font-weight:900}
.wait small{display:block;color:var(--muted);margin-top:8px;font-size:12px}
.skip-question-btn{background:none;border:0;min-height:44px;width:100%;font-size:14px;color:#b4cc92;margin-top:9px}
.skip-note{text-align:center;padding-top:0;font-size:12px}
.disconnect-box{border:1px solid #866334;border-radius:15px;padding:15px;margin:15px 0;background:#49331233}
.disconnect-box b,.disconnect-box span{display:block;font-size:14px}
.disconnect-box span{margin:8px 0;color:var(--muted)}
.scoreline{display:grid;grid-template-columns:23px 36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #30412a;min-width:0}
.scoreline:last-child{border-bottom:0}
.scoreline .pos{font-size:16px;font-weight:900;color:#b2c29f}
.scoreline:first-child .pos{color:var(--accent)}
.scoreline b{font-size:15px;overflow-wrap:anywhere}
.scoreline .avatar{width:34px;height:34px;font-size:12px}
.pts{font-size:17px;font-weight:900;color:var(--accent);white-space:nowrap}
.score-bar{height:4px;border-radius:99px;background:#23351d;overflow:hidden;grid-column:3/5}
.score-bar i{display:block;height:100%;background:#b5ef2b;border-radius:99px}
.handoff,.turn-wait{padding:30px 22px;text-align:center;border:1px solid #648738;border-radius:26px;background:radial-gradient(circle at 50% 15%,#5777132c,transparent 65%),linear-gradient(140deg,#152919,#06100b);box-shadow:0 0 30px #b6f72410;margin-top:14px}
.handoff-icon{width:112px;height:112px;display:grid;place-items:center;margin:0 auto 16px;background:radial-gradient(circle,#b4fa2019,transparent 70%);border:0;box-shadow:none}

.handoff h2,.turn-wait h2{font-size:36px;color:var(--accent);margin:12px 0 16px;overflow-wrap:anywhere}
.handoff p,.turn-wait p{font-size:15px;color:var(--muted);margin-bottom:22px}
.handoff .btn{width:100%}
.source-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:20px 0}
.source-tab{border:1px solid #435b2f;border-radius:12px;background:#10200e;font-size:13px;font-weight:700;padding:12px 6px;min-height:50px;min-width:0}
.source-tab.active{background:#b5f52c;color:#0b1303;border-color:#d3ff74}
.bank-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between}
.bank-toolbar label{font-size:14px}
.bank-list{display:grid;gap:10px}
.bank-item{text-align:left;width:100%;border:1px solid #435d31;background:linear-gradient(130deg,#1a2a17,#09140d);border-radius:17px;padding:17px}
.bank-question{font-size:16px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.bank-unit{font-size:12px;color:var(--muted);margin-top:8px}
.saved-tools{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px}
.saved-question{position:relative}
.saved-question>.bank-item{padding-bottom:49px}
.saved-delete{position:absolute;right:12px;bottom:5px;border:0;background:transparent;color:var(--danger);font-size:12px;min-height:38px;padding:9px}
.import-label{display:inline-flex!important;margin:0!important}
.import-label input{display:none}
.source-card{margin:18px 0;border:1px solid #304c23;border-radius:18px;padding:15px;background:#111f0d}
.source-card>span{font-size:12px;color:var(--muted)}
.source-link{width:100%;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:transparent;text-align:left;color:#c0e699;padding:10px 0}
.source-link small{color:var(--muted);font-size:12px}
.results-head{position:relative;text-align:center;padding:24px 18px;background:radial-gradient(ellipse at center,#b4ef2230,transparent 75%),#101b0c;border:1px solid #7cac30;border-radius:25px;margin:15px 0;overflow:hidden}
.results-head>span{font-size:13px;letter-spacing:.1em;color:#c6d9a8;display:block}
.correct{font-size:clamp(40px,12vw,72px);font-weight:900;color:var(--accent);line-height:1.2;margin:10px 0;overflow-wrap:anywhere}
.correct-unit{font-size:19px;color:#cbdcbb}
.reveal-brand{font-size:14px;letter-spacing:.08em;font-weight:900;margin-bottom:18px}
.reveal-logo{width:48px;border-radius:13px;margin:0 auto 12px}
.reveal{border:1px solid #455d30;background:linear-gradient(140deg,#1d2a1b,#0a120d);border-radius:18px;padding:18px;margin:10px 0;animation:enter .25s ease both}
.reveal.winner{border-color:var(--accent);background:linear-gradient(145deg,#314512,#10210b);box-shadow:0 0 20px #b5ff2518}
.reveal-top{display:grid;grid-template-columns:1fr auto;gap:5px;min-width:0}
.place{grid-column:1/3;font-size:11px;font-weight:800;letter-spacing:.1em;color:#a7c176}
.reveal-name{font-size:18px;font-weight:800;overflow-wrap:anywhere}
.reveal-value{font-size:18px;font-weight:900;color:#d1efab;overflow-wrap:anywhere;max-width:160px;text-align:right}
.comment{font-size:13px;color:var(--muted);margin-top:9px}
.choice-list{display:grid;gap:10px;margin:18px 0 0}
.choice-btn{border:1px solid #617d39;border-radius:17px;background:linear-gradient(130deg,#233619,#101c0e);padding:18px;text-align:left;font-size:17px;font-weight:800;min-height:62px;line-height:1.4;display:flex;align-items:center;gap:14px}
.choice-letter{display:grid;place-items:center;border:1px solid #6e8c40;border-radius:10px;flex:none;width:32px;height:32px;font-size:14px;color:var(--accent);background:#c4ff2810}
.clue-card{border:1px solid #546e33;border-radius:17px;padding:18px;background:linear-gradient(135deg,#2a3d16,#11200d);margin:10px 0;font-size:16px;line-height:1.5}
.clue-card b{display:block;color:var(--accent);font-size:12px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:6px}
.clue-cost{font-size:14px;color:#b8d48b;margin:12px 0}
.round-answer{background:linear-gradient(130deg,#33491a,#10200c);border:1px solid #93b34a;border-radius:20px;padding:20px;margin:20px 0}
.round-answer>span{display:block;font-size:12px;letter-spacing:.08em;color:#c7dbac;text-transform:uppercase;margin-bottom:10px}
.round-answer b{font-size:26px;line-height:1.2;color:var(--accent);overflow-wrap:anywhere}
.result-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #2c4025}
.result-row>div:first-child{min-width:0}
.result-row:last-child{border:0}
.result-who{font-size:17px;font-weight:800;overflow-wrap:anywhere}
.result-sub{font-size:13px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.delta{font-size:18px;font-weight:900;flex:none}
.delta.good{color:var(--accent)}
.delta.bad{color:var(--danger)}
.music-turn{border:1px solid #9cca3d;border-radius:23px;padding:23px;background:radial-gradient(ellipse at 0 0,#77a80d35,transparent 75%),linear-gradient(140deg,#1d3017,#08140c);box-shadow:0 0 25px #b2ff2015}
.music-card-title{font-size:30px;font-weight:900;line-height:1.13;letter-spacing:-.04em;margin-top:15px;overflow-wrap:anywhere}
.music-card-artist{font-size:18px;color:#b9cbae;margin-top:9px}
.music-hidden-year{font-size:12px;color:#c1e293;margin-top:18px;font-weight:700;display:flex;align-items:center;gap:8px}

.music-result-ok{border-color:var(--accent);animation:success .35s}
.music-result-bad{border-color:var(--danger);animation:failure .25s}
.music-result-bad .music-personal-label{color:var(--danger)}
.music-year-reveal{font-size:49px;font-weight:900;color:var(--accent);line-height:1.2;margin-top:15px}
.music-timeline{position:relative;display:flex;flex-direction:column;gap:11px;padding:3px 0}
.music-timeline:before{content:'';position:absolute;top:0;bottom:0;left:25px;width:2px;background:linear-gradient(transparent,#c0f335,#688824,#c0f335,transparent);z-index:0}
.music-slot{position:relative;z-index:1;width:calc(100% - 14px);margin-left:14px;min-height:62px;border:1px dashed #b5e445;border-radius:15px;background:#10220ded;display:flex;align-items:center;gap:12px;text-align:left;padding:11px 13px;color:#ebfbd7}
.slot-plus{border:1px solid #9dbf3a;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:25px;flex:none;color:var(--accent);background:#c4ff2220}
.music-slot b{display:block;font-size:14px}
.music-slot small{display:block;font-size:11px;font-weight:700;color:var(--accent);letter-spacing:.06em;margin-top:3px}
.music-tcard{position:relative;z-index:1;display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:11px;align-items:center;padding:15px 13px;border:1px solid #738d44;border-radius:19px;background:linear-gradient(140deg,#22311c,#08120d);box-shadow:0 0 16px #aefa1c0c;animation:enter .2s ease}
.album-symbol{display:grid;place-items:center;width:52px;height:52px;border-radius:13px;border:1px solid #627943;background:radial-gradient(circle,#a6d93322,#05100b);color:#cdf27f;font-size:29px}

.music-t-song{font-size:17px;font-weight:800;line-height:1.18;overflow-wrap:anywhere}
.music-t-artist{font-size:13px;color:var(--muted);margin-top:6px}
.music-t-year{font-size:19px;font-weight:900;color:var(--accent)}
.timeline-progress{margin-top:18px}
.timeline-progress p{font-size:13px;text-align:center;color:var(--muted);margin-top:8px}
.time-stage{text-align:center;padding:23px 15px;border:1px solid #9ab94a;border-radius:28px;background:radial-gradient(ellipse at center,#749e172c,transparent 75%),#0b190d;box-shadow:inset 0 0 20px #a5f2120b,0 0 26px #a4f1230c;margin:18px 0}
.time-target-label{color:#b5c3a7;font-size:13px;letter-spacing:.22em}
.time-target{font-size:clamp(45px,13.3vw,85px);font-weight:900;letter-spacing:-.055em;line-height:1.2;color:#d1ff48;text-shadow:0 0 20px #b8ff1833;margin:10px 0;overflow-wrap:anywhere}
.time-target .time-unit{font-size:.45em;letter-spacing:0}
.time-player{font-size:14px;color:#afc098;font-weight:700}
.timer-console{position:relative;border:1px solid #7fa83a68;border-radius:30px;padding:21px 18px;background:radial-gradient(ellipse at 50% 15%,#97c71d21,transparent 70%),linear-gradient(145deg,#172c1b,#06120d);margin:18px 0;box-shadow:inset 0 1px 0 #c1fa3229,0 12px 28px #0004;text-align:center}
.timer-symbol{width:104px;height:104px;margin:0 auto 2px;filter:none}

.time-stop,.time-start{border:1px solid #e7ff79;display:block;min-height:95px;width:100%;border-radius:23px;font-size:35px;font-weight:900;letter-spacing:-.025em;box-shadow:0 0 24px #baff2320}
.time-stop{border-color:#ff9a72;background:linear-gradient(145deg,#ff7758,#ff2525 55%,#d01613);color:white;box-shadow:0 0 24px #fd393832}
.time-running{font-size:13px;color:#b8cbaa;margin:10px 0 14px}
.time-result{border:1px solid #af6e44;background:linear-gradient(140deg,#412b19,#140f09);border-radius:24px;padding:23px 15px;text-align:center;animation:enter .2s}
.time-result.good{border-color:var(--accent);background:linear-gradient(130deg,#324515,#10200b);animation:success .35s}
.measured{font-size:clamp(38px,11vw,62px);font-weight:900;letter-spacing:-.04em;margin:10px 0;overflow-wrap:anywhere}
.verdict{font-size:16px;font-weight:800;color:#ebc79a}
.good .verdict{color:var(--accent)}
.time-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}
.time-stat{border:1px solid #4b6233;border-radius:16px;background:linear-gradient(140deg,#1c2e17,#0b150e);padding:14px 8px;text-align:center;min-width:0}
.time-stat span{font-size:11px;color:var(--muted);display:block}
.time-stat b{display:block;font-size:23px;line-height:1.15;margin-top:6px;color:#e3f2d1;overflow-wrap:anywhere}
.win{position:relative;padding:28px 20px;text-align:center;border:1px solid #95b540;border-radius:28px;background:radial-gradient(circle at 50% 15%,#729d1638,transparent 65%),#101b0d;overflow:hidden}
.win img{width:100%;max-height:200px;object-fit:cover;mask-image:linear-gradient(#000 70%,transparent);margin-bottom:-20px;border-radius:20px}
.win h2{font-size:37px;color:var(--accent);margin:15px 0;overflow-wrap:anywhere}
.win p{font-size:15px;color:#b6c8a7}
.win-mark{font-size:43px;color:var(--accent);margin-bottom:10px}
.win-value{font-size:28px;font-weight:900;color:var(--accent);margin:18px 0}
.win .btn{width:100%;margin-top:10px}
.confetti{position:absolute;left:var(--x);top:5%;width:6px;height:13px;background:var(--c);border-radius:2px;animation:confetti .95s ease-out both;pointer-events:none}
.leader-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;border:1px solid #657a454f;border-radius:22px;background:#0b160feb;margin:22px 0}
.leader-tabs button:last-child{border:0}
.leader-tabs .active{background:linear-gradient(140deg,#cee97424,#74922418);color:#d8ff7a;box-shadow:inset 0 0 0 1px #a3d14250}
.leader-current{border:1px solid #536f37;background:#162715;border-radius:18px;padding:16px;margin:16px 0}
.leader-current>span{display:block;font-size:12px;color:#b1c49c;margin-bottom:5px}
.leader-current b{font-size:15px;overflow-wrap:anywhere}
.leader-current select{margin-top:10px;font-size:14px}
.leader-empty{position:relative;overflow:hidden;border:1px solid #76964160;border-radius:30px;padding:28px 22px;text-align:center;background:radial-gradient(ellipse at 50% 18%,#89ac2825,transparent 65%),linear-gradient(145deg,#132419,#050f0a);font-size:14px;color:#bbc9b0;line-height:1.6}

.leader-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:15px 0}
.leader-filter{min-height:48px;padding:12px;border:1px solid #4c6338;background:#152412;border-radius:14px;font-size:14px;text-align:left;font-weight:700}
.leader-filter.active{border-color:var(--accent);background:#314719;color:var(--accent)}
.podium{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr);gap:7px;align-items:end;margin:37px 0 24px;padding-top:18px;background:radial-gradient(ellipse at 50% 80%,#a5e52a20,transparent 70%)}
.podium-item{text-align:center;min-width:0;position:relative}
.podium-item>.avatar{width:66px;height:66px;margin:0 auto 10px}
.podium-item:first-child>.avatar{margin-top:30px}
.podium-item:last-child>.avatar{margin-top:47px}
.podium-item .podium-step{border:1px solid #4d672f;border-radius:16px 16px 0 0;background:linear-gradient(#425a24,#14220f);font-size:31px;font-weight:900;line-height:1;height:51px;padding-top:11px;color:#d9e9bf}
.podium-item:first-child .podium-step{height:46px}
.podium-item:nth-child(2) .podium-step{height:72px;border-color:#bfd44c;color:#eeff6c;background:linear-gradient(145deg,#668a27,#273b18);box-shadow:inset 0 1px 0 #f0ff9466,0 0 25px #c3ff271c}
.podium-info{border:1px solid #66833c79;background:linear-gradient(150deg,#1a2e19,#08120c);border-radius:16px;padding:12px 6px;margin-top:-5px;position:relative;min-height:103px}
.podium-info b{display:block;font-size:13px;line-height:1.2;overflow-wrap:anywhere}
.podium-info strong{display:block;font-size:21px;margin:6px 0 3px}
.podium-info small{font-size:11px;color:var(--muted)}
.leader-row{display:grid;grid-template-columns:24px 32px minmax(0,1fr) auto;gap:9px;align-items:center;padding:13px 0;border-bottom:1px solid #2c4324;min-width:0}
.leader-row .avatar{width:32px;height:32px;font-size:11px}
.leader-name{font-size:15px;font-weight:800;overflow-wrap:anywhere}
.leader-stat{text-align:right;font-size:14px;font-weight:800;color:var(--accent)}
.leader-sub{font-size:12px;color:var(--muted);font-weight:400;margin-top:4px}
.leader-rank{font-weight:800;color:#bfceaa}
.leader-group{display:block;width:100%;padding:15px;border-radius:16px;border:1px solid #425e2e;text-align:left;background:#11210d;margin-bottom:9px;font-size:14px}
.leader-group.active{border-color:var(--accent)}
.leader-group small{display:block;color:var(--muted);margin-top:6px}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.stats-card{border:1px solid #65864150;background:linear-gradient(145deg,#1a2c1c,#09160e);border-radius:20px;padding:14px 7px;text-align:center;min-width:0}
.stats-card b{display:block;font-size:26px;color:var(--accent);line-height:1}
.stats-card small{display:block;font-size:11px;color:var(--muted);line-height:1.3;margin-top:9px}
.modal{position:fixed;inset:0;background:#000b;backdrop-filter:blur(9px);z-index:30;display:none;align-items:center;justify-content:center;padding:20px}
.modal.show{display:flex}
.modal-card{width:100%;max-width:450px;max-height:calc(100dvh - 50px - env(safe-area-inset-top) - var(--safe-bottom));overflow-y:auto;background:linear-gradient(140deg,#1a2b1a,#08110c);border:1px solid #66843f;border-radius:25px;padding:22px;box-shadow:0 0 45px #92db181c;animation:enter .18s}
.modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}
.modal-head h2{font-size:25px}
.close-btn{display:grid;place-items:center;width:44px;height:44px;border:1px solid #526b3b;background:#1f3217;border-radius:12px;font-size:25px;flex:none}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:11px;padding:18px 0;border-bottom:1px solid #38512c}
.setting-copy b{display:block;font-size:17px}
.setting-copy span{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.toggle{position:relative;width:50px;height:30px;border:1px solid #5a7142;border-radius:99px;background:#24331d;flex:none}
.toggle:before{content:'';position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:#a4b299;transition:transform .15s}
.toggle.on{background:#b3f026;border-color:#d4ff69}
.toggle.on:before{background:#163106;transform:translateX(20px)}
.room-settings-section{margin-top:20px}
.room-settings-title{font-size:14px;color:var(--muted);margin-bottom:10px}
.confirm-icon{width:68px;height:68px;margin:0 auto;text-align:center}
.confirm-copy{font-size:15px;color:#c1cfb3;line-height:1.6;margin:16px 0 22px}
.qr-wrap{text-align:center}
.qr-frame{background:white;padding:14px;border-radius:18px;max-width:280px;margin:auto}

.qr-code{font-size:30px;letter-spacing:.12em;font-weight:900;color:var(--accent);margin:15px 0}
.qr-hint{font-size:14px;color:var(--muted)}
.toast{position:fixed;bottom:calc(80px + var(--safe-bottom));left:50%;transform:translate(-50%,15px);width:max-content;max-width:calc(100% - 32px);padding:13px 17px;background:#c4ff30;color:#111d06;border:1px solid #e5ff92;border-radius:14px;font-weight:700;font-size:14px;line-height:1.35;box-shadow:0 8px 30px #0008;z-index:50;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s}
.toast.show{opacity:1;transform:translate(-50%,0)}
.welcome{display:flex;flex-direction:column;min-height:calc(100svh - 160px - env(safe-area-inset-top) - var(--safe-bottom));text-align:center;justify-content:center;align-items:center}
.welcome-logo{width:94px;height:94px;border-radius:26px;box-shadow:0 0 40px #a9fa272b;margin:16px auto 23px}
.welcome h1{font-size:clamp(32px,8.4vw,52px);line-height:1.03}
.welcome .tagline{font-size:10px;font-weight:700;letter-spacing:.25em;margin-top:14px;color:#bac5b4}
.welcome-art{width:100%;margin:12px 0 -8px;max-width:550px;border-radius:30px;mask-image:linear-gradient(transparent,#000 10%,#000 80%,transparent)}
.welcome .btn{width:100%;font-size:22px;min-height:70px;border-radius:24px;margin:20px 0}
.welcome .welcome-note{font-size:10px;font-weight:700;letter-spacing:.18em;color:#b6c5a8;margin-top:5px}
.rejoin-title{font-size:20px;font-weight:900}
.rejoin-code{font-size:13px;color:var(--accent);font-weight:800;margin:5px 0}
.rejoin-copy{font-size:14px;color:var(--muted);margin:9px 0 16px}
.rejoin-actions{display:flex;align-items:center;gap:10px}
.rejoin-actions .btn{flex:1}
.rejoin-dismiss{border:0;background:none;font-size:12px;min-height:44px;color:#aabe94}
.game-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.game-picker button{border:1px solid #3f5b2d;background:#10200d;border-radius:14px;display:flex;align-items:center;gap:9px;padding:13px 10px;min-height:58px;text-align:left;font-size:14px;font-weight:800;min-width:0;line-height:1.2}
.game-picker .game-icon{width:39px;height:39px;flex:none}

.game-picker button.active{border-color:var(--accent);background:#314719;color:var(--accent)}
@keyframes enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes success{50%{box-shadow:0 0 28px #baff3245}}@keyframes failure{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}@keyframes confetti{to{transform:translate(var(--dx),220px) rotate(250deg);opacity:0}}
@media(min-width:600px){.app-shell{padding-left:34px;padding-right:34px}
.topbar{margin-bottom:26px}
.brand-title{font-size:32px}
.brand-tag{font-size:11px}
.brand img{width:56px;height:56px}
.home-actions{gap:14px}
.question-panel{padding:30px}
.question{font-size:38px}
.waitlist{grid-template-columns:repeat(4,1fr)}}
@media(max-width:380px){.app-shell{padding-left:15px;padding-right:15px}
.brand-title{font-size:23px}
.brand-tag{font-size:8px}
.brand{gap:8px}
.brand img{width:42px;height:42px}
.panel,.section{padding:17px}
.room-code{font-size:32px}
.room-header{padding:16px}
.time-target{font-size:46px}
.music-tcard{grid-template-columns:42px minmax(0,1fr) auto;padding:14px 11px;gap:9px}
.album-symbol{width:42px;height:42px}
.music-t-song{font-size:15px}
.music-t-year{font-size:17px}
.podium-item>.avatar{width:48px;height:48px;font-size:17px}
.name-add .btn{padding:12px 10px;font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.confetti{display:none}}
.entry-btn>span{min-width:0}
.game-card:before{content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid #d3ff2410;pointer-events:none}
.game-music{background:radial-gradient(ellipse at 28% 10%,#59a79020,transparent 68%),linear-gradient(150deg,#14271f,#070f0c)}
.game-bluff{background:radial-gradient(ellipse at 28% 10%,#ced09817,transparent 68%),linear-gradient(150deg,#24291d,#090f0b)}
.game-whoami{background:radial-gradient(ellipse at 28% 10%,#cddd541a,transparent 68%),linear-gradient(150deg,#232c18,#070f0c)}
.mini-leader>span:nth-child(2){flex:1;min-width:0}
.leader-chevron{color:#c4e890;font-size:28px;flex:none}
.section-title{display:flex;align-items:center;gap:7px;min-width:0;flex-wrap:wrap}
.section-title>.art-icon{width:30px;height:30px}
.game-heading>div{min-width:0}
.avatar>.art-icon{position:absolute;inset:0;width:100%;height:100%}
.avatar-initials{position:absolute;bottom:-3px;right:-3px;font-size:8px;line-height:14px;min-width:16px;padding:0 2px;border-radius:5px;background:#09140fed;border:1px solid #9dbe5555;color:#deebcd;font-weight:800}
.scoreline .pos>.art-icon{width:24px;height:24px}
.hint-symbol{position:absolute;left:11px;top:10px;width:29px;height:29px;pointer-events:none}
.music-hidden-year>.art-icon{width:20px;height:20px}
.album-symbol{border:0;background:radial-gradient(circle,#b9f33119,#07100c);padding:5px}
.time-stat>.art-icon{width:31px;height:31px;margin:0 auto 6px}
.leader-empty h2{font-size:31px;margin-top:11px;line-height:1.05}
.leader-empty .kicker{font-size:10px}
.leader-empty .btn>.art-icon{width:27px;height:27px;background:#11200d;border-radius:8px;padding:2px}
.podium-crown{position:absolute;width:42px;height:42px;left:50%;top:-30px;transform:translateX(-50%)}
.podium-item.rank-1 .avatar{width:76px;height:76px}
.podium-item.rank-1 .podium-info{border-color:#a6c84c80}
.stats-card>.art-icon{width:38px;height:38px;margin:0 auto 10px}
.stats-card b{font-variant-numeric:tabular-nums}
.winner-emblem{position:absolute;top:19px;left:18px;width:58px;height:58px;z-index:2}
.setting-symbol{width:39px;height:39px;flex:none}
.setting-copy{flex:1;min-width:0}
.back>.art-icon{width:28px;height:28px;margin:auto}
@media (hover:hover){.game-card:hover{border-color:#badb5c90;transform:translateY(-2px);box-shadow:inset 0 1px 0 #e7ff7c35,0 12px 26px #0006}.entry-btn:hover{border-color:#d1f97d}}
@media(min-width:600px){}
@media(max-width:380px){.mini-leader b{font-size:19px}.section-head{gap:7px}.section-head h2{font-size:20px}.section-head>span{font-size:11px}}

.qr-frame svg{display:block;width:100%;height:auto}
.game-modal-symbol{width:96px;height:96px;margin:0 auto 12px}
.welcome .btn>.art-icon{width:30px;height:30px;background:#0b1b0d;border-radius:10px;padding:3px}
.skip-question-btn{display:flex;align-items:center;justify-content:center;gap:6px}
.skip-question-btn>.art-icon{width:26px;height:26px}
.music-t-artist,.stats-card b,.stats-card small,.status,.leader-sub,.hint-box,.leader-empty p{overflow-wrap:anywhere}
.pill{overflow-wrap:anywhere}
.room-header>div:first-child{min-width:0;flex:1}
.room-actions{flex:none}

/* Explicit icon dimensions prevent intrinsic image sizes escaping controls. */
.art-icon{display:block;width:24px;height:24px;max-width:100%;max-height:100%;object-fit:contain;flex:none;pointer-events:none}
.game-icon,.symbol,.setting-symbol,.handoff-icon,.confirm-icon,.album-symbol,.timer-symbol,.hint-symbol,.game-modal-symbol,.winner-emblem,.podium-crown{display:flex;align-items:center;justify-content:center;flex-shrink:0}
.game-icon>.art-icon,.symbol>.art-icon,.setting-symbol>.art-icon,.handoff-icon>.art-icon,.confirm-icon>.art-icon,.album-symbol>.art-icon,.timer-symbol>.art-icon,.hint-symbol>.art-icon,.game-modal-symbol>.art-icon,.winner-emblem>.art-icon,.podium-crown>.art-icon{width:100%;height:100%}
.icon-btn{width:46px;height:46px;min-width:46px;min-height:46px;flex:0 0 46px;padding:9px;border:1px solid #536347;border-radius:16px;background:linear-gradient(135deg,#233127,#0b100d);display:flex;align-items:center;justify-content:center;line-height:0;box-shadow:0 3px 12px #0008}
.icon-btn>.art-icon{position:static;width:26px;height:26px;min-width:26px;max-width:26px;margin:0;transform:none}
.bottom-nav button{width:auto;flex:1 1 0;max-width:200px;min-width:0;min-height:52px;padding:10px 14px;display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:8px;border:1px solid transparent;border-radius:14px;background:transparent;color:#a8b4ab;font-size:14px;font-weight:800;line-height:1.2}
.bottom-nav button>.art-icon{position:static;width:24px;height:24px;min-width:24px;max-width:24px;flex:0 0 24px;margin:0;transform:none}
.bottom-nav button>span{display:block;min-width:0;white-space:nowrap}
.bottom-nav button.active{background:#baf72b13;border-color:#b8ec3338;color:#d3ff70}
/* Preserve the original hero artwork, crop and title composition. */
.hero{position:relative;text-align:center;border-radius:26px;margin-top:-6px;margin-bottom:20px;overflow:hidden;isolation:isolate}
.hero img{width:100%;aspect-ratio:1.65;object-fit:cover;object-position:center 47%;mask-image:linear-gradient(#000 70%,transparent);margin-bottom:-32px}
.hero h1{font-size:32px;position:relative;max-width:360px;margin:0 auto 12px;line-height:1.05;text-shadow:0 4px 20px #000}
.entry-btn{border:1px solid #65873d;border-radius:22px;background:linear-gradient(145deg,#172c1d,#07120c);text-align:left;display:flex;align-items:center;gap:10px;padding:16px 12px;min-width:0;min-height:108px;box-shadow:inset 0 1px 0 #e6ff7424,0 8px 20px #0004}
.entry-btn>.art-icon{width:34px;height:34px;flex:0 0 34px;margin:0}
.entry-btn b{display:block;font-size:16px;line-height:1.15;letter-spacing:-.03em}
.entry-btn small{display:block;font-size:11px;font-weight:500;margin-top:6px;opacity:.8;line-height:1.3}
.game-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.game-card{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) 18px;grid-template-rows:auto auto auto;align-items:center;column-gap:15px;row-gap:5px;text-align:left;padding:18px;min-width:0;min-height:115px;border:1px solid #567c386b;border-radius:23px;background:radial-gradient(ellipse at 12% 50%,#82b83a16,transparent 65%),linear-gradient(150deg,#14251a,#07100c);box-shadow:inset 0 1px 0 #ecff8f20,0 7px 20px #0004;isolation:isolate}
.game-icon{width:64px;height:64px;color:var(--accent)}
.game-card .game-icon{grid-column:1;grid-row:1/4;align-self:center;position:static}
.game-name{grid-column:2;grid-row:1;font-size:19px;font-weight:900;line-height:1.15;letter-spacing:-.035em;margin:0;min-width:0;overflow-wrap:anywhere}
.game-desc{grid-column:2;grid-row:2;font-size:13px;color:#b4c1b7;line-height:1.4;margin:0;min-width:0;overflow-wrap:anywhere}
.game-badge{grid-column:2;grid-row:3;font-size:10px;color:#bfda9c;margin:1px 0 0;padding:0;letter-spacing:.04em;text-transform:uppercase;font-weight:700;min-width:0;overflow-wrap:anywhere}
.card-chevron{position:static;grid-column:3;grid-row:1/4;align-self:center;display:block;color:#bfdd89;font-size:28px;line-height:1;width:18px;height:28px;background:none;border:0}
.mini-leader{display:flex;gap:13px;align-items:center;text-align:left;width:100%;background:linear-gradient(135deg,#1a281b,#07120d);border:1px solid #789a454d;padding:18px;border-radius:23px;margin-top:22px;min-height:104px;box-shadow:inset 0 1px 0 #f4ff7a22}
.mini-leader .symbol{width:52px;height:52px;flex:none}
.game-heading .game-icon{width:56px;height:56px;background:none;border:0;border-radius:0}
.leader-tabs button{min-width:0;min-height:58px;padding:8px 3px;background:transparent;border:0;font-size:11px;font-weight:800;line-height:1.2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:17px}
.leader-tabs .art-icon{width:22px;height:22px}
.leader-empty .symbol{width:80px;height:80px;margin:0 auto 14px}
@media(min-width:600px){.hero img{aspect-ratio:2.1}.hero h1{font-size:41px;max-width:490px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-card{grid-template-columns:56px minmax(0,1fr) 16px;column-gap:12px;padding:17px}.game-card .game-icon{width:56px;height:56px}.game-name{font-size:18px}.game-desc{font-size:12px}.entry-btn{padding:18px;min-height:110px}.entry-btn b{font-size:21px}.entry-btn small{font-size:13px}}
@media(max-width:380px){.game-card{padding:16px;column-gap:13px;min-height:112px}.game-name{font-size:18px}.entry-btn{padding:14px 10px;gap:8px}.entry-btn>.art-icon{width:30px;height:30px;flex-basis:30px}.entry-btn b{font-size:15px}.entry-btn small{font-size:10px}.section-head{gap:7px}.section-head h2{font-size:20px}.section-head>span{font-size:11px}}

/* Optional identity and series screens use the established compact premium system. */
.player-art{display:block;flex:none;width:52px;height:52px;object-fit:contain}
.custom-avatar{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;flex:0 0 42px;width:42px;height:42px;overflow:visible}
.custom-avatar .player-art{width:100%;height:100%;object-fit:contain}
.avatar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0;max-height:52vh;overflow-y:auto;overscroll-behavior:contain}
.avatar-choice{display:flex;flex-direction:column;align-items:center;gap:5px;background:#101b14;border:1px solid #273626;border-radius:16px;padding:8px;min-width:0;color:#eaf1e5;cursor:pointer}
.avatar-choice .player-art{width:64px;height:64px;max-width:100%}
.avatar-choice small{font-size:10px;overflow-wrap:anywhere}
.avatar-choice.selected,.library-choice.selected,.series-game.selected{border-color:#c5ff2a;background:#1e3017;box-shadow:inset 0 0 0 1px #c5ff2a}
.library-list{display:grid;gap:8px;margin-top:12px;max-height:350px;overflow-y:auto}
.library-choice{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:8px 12px;color:#f1f7ec;border:1px solid #293929;background:#111c14;border-radius:14px;min-height:64px;min-width:0}
.library-choice span{flex:1;min-width:0;overflow-wrap:anywhere}.library-choice small,.profile-row small{display:block;color:#96a38e;font-size:11px;margin-top:3px}
.library-choice[hidden]{display:none}.player-library-select .section-head{gap:10px;flex-wrap:wrap}.player-library-select label{display:block;margin-top:12px}
.profile-row{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #273329;min-width:0;overflow-wrap:anywhere}
.profile-row>div,.profile-row>span{flex:1;min-width:0}.profile-row p{font-size:11px;color:#aab8a4;line-height:1.6;margin-top:4px}.profile-name{flex:1;min-width:0;text-align:left;background:none;border:0;color:#f4f8ef;overflow-wrap:anywhere}.profile-row .btn{flex:none;padding:8px;min-height:44px;font-size:10px}
.profile-hero{text-align:center;padding:24px 14px}.profile-hero>.player-art{width:112px;height:112px;margin:auto}.profile-hero>.game-icon{display:block;width:80px;height:80px;margin:auto}.profile-hero h1{font-size:clamp(25px,7vw,36px);overflow-wrap:anywhere}.profile-hero p{color:#aab8a4;font-size:13px;margin:10px 0}.profile-hero .btn{margin-top:12px}
.extension-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px}.extension-grid button{display:flex;align-items:center;gap:8px;min-width:0;text-align:left;padding:12px 8px;background:#121e16;border:1px solid #293c25;border-radius:16px;color:#f4f8ef}.extension-grid .art-icon{width:35px!important;height:35px!important;flex:none}.extension-grid span{min-width:0;overflow-wrap:anywhere}.extension-grid b{font-size:12px}.extension-grid small{display:block;font-size:10px;color:#a4b09b;margin-top:4px;line-height:1.5}
.series-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.series-game{display:flex;align-items:center;gap:6px;min-width:0;min-height:64px;padding:10px 7px;background:#152017;border:1px solid #30442a;border-radius:14px;color:#f0f7e9;font-size:12px;text-align:left}.series-game .art-icon{width:36px!important;height:36px!important;flex:none}.series-game span{flex:1;min-width:0;overflow-wrap:anywhere}.series-game b{font-size:12px}.series-summary{margin-top:14px}.series-banner{display:flex;align-items:center;gap:10px;justify-content:space-between;border:1px solid #3d552d;padding:12px;border-radius:14px;font-size:12px;background:#172314}.series-banner .btn{font-size:10px;flex:none}
.personal-rank{width:100%;color:#f0f7e9;text-align:left;background:none;border-top:0;border-left:0;border-right:0}.personal-rank strong{color:#c5ff2a;font-size:20px}.personal-rank strong small{font-size:9px}.handoff>.custom-avatar{margin:10px auto;width:64px;height:64px}.handoff-done{font-size:13px;color:#b3c3a7;margin-bottom:10px}.win>.custom-avatar{display:inline-block;width:56px;height:56px}.leader-tabs{flex-wrap:wrap}.leader-tabs>button{flex:1 1 90px;min-width:0}.name-row small{font-size:10px;display:block;color:#a5b29c}.series-game-grid+.note{padding-top:0}
.vote-reveal{font-size:13px;color:#afbe9f;line-height:1.6;margin:12px 0}.reveal-enter{animation:revealIn .24s ease-out both}.feedback-good{animation:goodPulse .35s ease-out}.feedback-bad{animation:badPulse .3s ease-out}
@keyframes revealIn{from{opacity:.35;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes goodPulse{50%{box-shadow:inset 0 0 0 2px #a6d742,0 0 15px #95c63022}}
@keyframes badPulse{50%{box-shadow:inset 0 0 0 2px #cb625b}}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){.reveal-enter,.feedback-good,.feedback-bad{animation:none!important}}
@media(min-width:420px){.avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.leader-tabs{display:flex;flex-wrap:wrap;gap:4px}.clue-progress{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#c3d6b3;margin:12px 0}.clue-progress span{color:#c5ff2a;letter-spacing:.12em}.timeline-new-card{animation:timelinePlace .32s ease-out}
@keyframes timelinePlace{from{opacity:.4;transform:translateY(-14px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.timeline-new-card{animation:none!important}}
.record-source{display:block;color:#8ea07f;font-size:10px;margin-top:3px;line-height:1.4}
.win .custom-avatar .player-art,.win .winner-emblem>.art-icon{mask-image:none;margin:0;border-radius:0;object-fit:contain}
.profile-row>.custom-avatar,.profile-row>.game-icon{flex:0 0 42px;width:42px;height:42px}
.status .gm{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.status .gm>span{min-width:0;overflow-wrap:anywhere}.status .gm>.custom-avatar{flex:0 0 28px;width:28px;height:28px}
.result-identity{display:flex;align-items:center;gap:7px;min-width:0}.result-identity>span{min-width:0;overflow-wrap:anywhere}.result-identity>.custom-avatar{flex:0 0 30px;width:30px;height:30px}

/* 16.1: scoped feature cards, accessible choices and shared-group controls. */
.extensions-home{padding:20px 16px;border-color:#3d5633;background:radial-gradient(ellipse at 0 0,#b4f5280b,transparent 70%),linear-gradient(145deg,#112018,#07110d);box-shadow:0 12px 36px #0005}
.extensions-home .section-head{align-items:flex-start;gap:8px;margin-bottom:18px}
.extensions-home .section-head h2{font-size:clamp(21px,5.3vw,27px);line-height:1.2;letter-spacing:-.04em}
.extensions-home .section-head>span{font-size:10px;line-height:1.5;padding:4px 8px;border:1px solid #50683a66;border-radius:30px;flex:none;color:#b4c89e;margin-top:3px}
.extensions-home .extension-grid{padding:0;gap:10px}
.extensions-home .extension-grid button{position:relative;display:grid;grid-template-columns:1fr;align-content:start;justify-items:start;gap:12px;padding:16px 12px;min-height:172px;background:radial-gradient(ellipse at 0 0,#a6d72f0c,transparent 80%),linear-gradient(150deg,#19281c,#0b160f);border:1px solid #3e5131;border-radius:20px;box-shadow:inset 0 1px 0 #d8fca80b,0 4px 14px #0002}
.extensions-home .extension-grid button:after{content:'›';position:absolute;right:12px;top:20px;color:#a9c27b;font-size:23px;line-height:1}
.extensions-home .extension-grid .art-icon{width:44px!important;height:44px!important;flex:none;filter:drop-shadow(0 3px 7px #0005)}
.extensions-home .extension-grid button>span{width:100%;min-width:0;overflow-wrap:normal;word-break:normal;hyphens:none}
.extensions-home .extension-grid b{display:block;font-size:14px;font-weight:800;line-height:1.3;letter-spacing:-.03em;overflow-wrap:normal;word-break:normal;white-space:nowrap}
.extensions-home .extension-grid small{font-size:12px;color:#adbea2;line-height:1.5;margin-top:7px;overflow-wrap:normal;word-break:normal;hyphens:none}
body[data-screen=seriesSetup] .source-tabs,.personal-ranking-tabs{grid-template-columns:repeat(2,minmax(0,1fr));padding:5px;gap:5px;background:#07120c;border:1px solid #304b2c;border-radius:18px;box-shadow:inset 0 2px 7px #0004}
body[data-screen=seriesSetup] .panel .source-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-screen=seriesSetup] .source-tabs>button,.personal-ranking-tabs>button{appearance:none;-webkit-appearance:none;min-width:0;min-height:50px;padding:11px 5px;border:1px solid transparent;border-radius:13px;background:linear-gradient(150deg,#17241a,#101d13);color:#bac9b1;font-size:13px;font-weight:750;line-height:1.3;text-align:center;overflow-wrap:normal;word-break:normal;box-shadow:inset 0 1px 0 #d6f0bb08;transition:background .15s,border-color .15s,box-shadow .15s,transform .12s}
body[data-screen=seriesSetup] .source-tabs>button.active,.personal-ranking-tabs>button.active{background:linear-gradient(145deg,#3a501f,#24351a);color:#e3ffac;border-color:#a9d354;box-shadow:inset 0 1px 0 #e1ffaf22,0 0 10px #b6ff1a0a}
body[data-screen=seriesSetup] .source-tabs>button:active,.personal-ranking-tabs>button:active{background:#334a24}
body[data-screen=seriesSetup] .panel>label{display:block;font-size:14px;font-weight:700;color:#c4d2ba;margin:18px 0 8px}
body[data-screen=seriesSetup] .panel>label:first-child{margin-top:0}
body[data-screen=seriesSetup] .panel .source-tabs{margin:10px 0 18px}
body[data-screen=seriesSetup] .series-game{min-height:76px;border-radius:17px;gap:8px;padding:12px 9px;background:linear-gradient(140deg,#18261b,#0b160f);border-color:#3b5131;box-shadow:inset 0 1px 0 #d6f0bb08}
body[data-screen=seriesSetup] .series-game.selected{border-color:#a9d354;background:linear-gradient(145deg,#283b1d,#182819);box-shadow:inset 0 1px 0 #d6f0bb18}
body[data-screen=seriesSetup] .series-game span{font-size:12px;font-weight:700;line-height:1.4;overflow-wrap:normal;word-break:normal}
body[data-screen=seriesSetup] .series-game .art-icon{width:32px!important;height:32px!important}
body[data-screen=seriesSetup] .series-game b{color:#d9f6a4}
body[data-screen=seriesSetup] .name-add .btn{background:linear-gradient(145deg,#23381b,#101f13);border-color:#688342;color:#e2f3cf}
.group-sync-panel .section-head h2{font-size:20px;line-height:1.2}
.group-sync-panel .section-head{align-items:flex-start}
.group-badge{flex:none;border:1px solid #526b3a;padding:4px 8px;border-radius:20px;font-size:10px!important;color:#d4edaa!important}
.group-sync-panel .shared-group-name{display:block;font-size:22px;line-height:1.3;overflow-wrap:anywhere}
.group-sync-panel label{display:block;margin:16px 0 8px;font-size:13px;color:#b2c4a6}
.group-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.group-actions .btn{font-size:13px;padding:12px 8px;min-height:52px;line-height:1.35}
.group-sync-panel .note{font-size:13px;padding-top:8px}
.group-import{display:flex;gap:10px;align-items:flex-start;margin-top:16px;font-size:14px;line-height:1.5;color:#bfcfb4}
.group-import input{width:22px;height:22px;flex:none;accent-color:#bafa32;margin-top:0}
.connect-code-input{text-transform:uppercase;font-weight:800;letter-spacing:.07em}
.group-connect-code{font-size:clamp(20px,6vw,28px);font-weight:900;letter-spacing:.07em;color:#d8ff89;margin:18px 0;white-space:nowrap}
@media(hover:hover){.extensions-home .extension-grid button:hover{border-color:#90af58;background-color:#1e301a;box-shadow:0 5px 20px #0004}.group-actions .btn:hover{border-color:#97b362}}
@media(min-width:640px){.extensions-home .extension-grid button{grid-template-columns:48px minmax(0,1fr);min-height:125px;align-content:center;align-items:center;padding:20px 18px;gap:13px}.extensions-home .extension-grid b{font-size:17px}.extensions-home .extension-grid small{font-size:13px}.extensions-home .extension-grid button:after{display:none}}
@media(max-width:380px){.extensions-home{padding:18px 12px}.extensions-home .extension-grid{gap:8px}.extensions-home .extension-grid button{padding:14px 10px;min-height:165px;border-radius:18px}.extensions-home .extension-grid b{font-size:13px}.extensions-home .extension-grid small{font-size:11px}.extensions-home .section-head h2{font-size:21px}.extensions-home .section-head>span{font-size:9px;padding:4px 6px}}
