:root{
  --bg:#0f091d;
  --text:#f8f5fb;
  --text-2:#c8bfd2;
  --text-3:#91889e;
  --line:rgba(255,255,255,.10);
  --panel:rgba(20,13,41,.84);
  --panel-strong:rgba(18,11,37,.94);
  --panel-soft:rgba(255,255,255,.055);
  --pink:#ff4f97;
  --orange:#ff963d;
  --violet:#9165ff;
  --blue:#5689ff;
  --green:#62d995;
  --yellow:#ffd073;
  --danger:#ff7b77;
  --shadow:0 18px 46px rgba(0,0,0,.32);
  --radius-xl:26px;
  --radius-lg:22px;
  --radius-md:18px;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
body{min-height:100vh;min-height:100dvh}
button{font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
button,input{outline:none}
.app-shell{width:100%;min-height:100vh;min-height:100dvh;margin:0 auto}
.screen{position:relative;min-height:100vh;min-height:100dvh;overflow:hidden;background:#10091f}
.screen::before{content:"";position:fixed;inset:0;z-index:0;background-size:cover;background-position:center top;background-repeat:no-repeat;filter:saturate(.9) brightness(.72);transform:scale(1.015)}
.screen::after{content:"";position:fixed;inset:0;z-index:0;background:linear-gradient(180deg,rgba(9,5,22,.12),rgba(9,5,22,.42) 45%,rgba(9,5,22,.76) 100%);pointer-events:none}
.screen-home::before{background-image:url('/assets/backgrounds/home.webp')}
.screen-lobby::before,.screen-waiting::before{background-image:url('/assets/backgrounds/lobby.webp')}
.screen-question::before,.screen-voting-intro::before{background-image:url('/assets/backgrounds/question.webp')}
.screen-results::before{background-image:url('/assets/backgrounds/results.webp')}
.screen-error::before,.screen-expired::before,.screen-bot::before{background-image:url('/assets/backgrounds/home.webp')}
.content{position:relative;z-index:2;width:min(100%,520px);margin:0 auto;padding:max(18px,env(safe-area-inset-top)) 16px max(26px,env(safe-area-inset-bottom))}
.loading-content,.state-content{min-height:100vh;min-height:100dvh;display:grid;align-content:center}
.loading-card,.state-card{padding:24px;border-radius:var(--radius-xl);background:rgba(17,10,36,.88);border:1px solid var(--line);backdrop-filter:blur(18px);box-shadow:var(--shadow)}
.brand-kicker,.screen-kicker{font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#d8bbed}
.loading-card h1,.state-card h1{margin:8px 0 0;font-size:28px;line-height:1.08;letter-spacing:-.035em}
.state-card p{margin:11px 0 0;color:var(--text-2);font-size:14px;line-height:1.5}
.corner-art{position:absolute;z-index:1;pointer-events:none;user-select:none;opacity:.42;filter:saturate(.75)}
.corner-art.disco{width:92px;right:-30px;top:8px;transform:rotate(7deg)}
.corner-art.star{width:44px;right:18px;top:102px;transform:rotate(9deg);opacity:.32}
.home-content{padding-top:max(34px,env(safe-area-inset-top));padding-bottom:max(30px,env(safe-area-inset-bottom))}
.top-meta{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin-bottom:30px}
.meta-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:rgba(15,9,32,.65);border:1px solid var(--line);backdrop-filter:blur(14px);font-size:10px;font-weight:700;color:#d9d0e2}
.meta-dot{width:6px;height:6px;border-radius:50%;background:linear-gradient(135deg,var(--orange),var(--pink));box-shadow:0 0 12px rgba(255,79,151,.55)}
.brand{margin-bottom:30px;text-align:center}
.brand h1{margin:7px 0 10px;font-size:44px;line-height:.98;letter-spacing:-.052em;font-weight:830;text-wrap:balance}
.brand p{max-width:345px;margin:0 auto;color:var(--text-2);font-size:14px;line-height:1.5;text-wrap:balance}
.section-label{margin:0 0 10px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#b7adbf}
.pack-list{display:grid;gap:9px}
.pack{appearance:none;width:100%;border:1px solid var(--line);border-radius:var(--radius-lg);padding:11px;display:grid;grid-template-columns:74px 1fr 34px;gap:12px;align-items:center;text-align:left;background:linear-gradient(145deg,rgba(31,20,54,.91),rgba(17,11,35,.92));box-shadow:0 14px 34px rgba(0,0,0,.20);cursor:pointer;transition:border-color .16s,background .16s,transform .16s}
.pack:active{transform:scale(.992)}
.pack.selected{border-color:rgba(255,104,164,.54);background:linear-gradient(145deg,rgba(47,25,67,.94),rgba(19,11,39,.94));box-shadow:0 16px 38px rgba(0,0,0,.25),0 0 0 1px rgba(255,77,150,.06) inset}
.pack:disabled{opacity:.55;cursor:default}
.pack-art{width:74px;height:74px;border-radius:19px;overflow:hidden;position:relative;background:#20153d;border:1px solid rgba(255,255,255,.08);display:grid;place-items:center}
.avatar-collage{position:absolute;inset:0}
.avatar-collage img{position:absolute;width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #241640}
.avatar-collage img:nth-child(1){left:3px;top:4px}.avatar-collage img:nth-child(2){right:3px;top:5px}.avatar-collage img:nth-child(3){left:12px;bottom:-3px}.avatar-collage img:nth-child(4){right:7px;bottom:-4px}
.bath-art{background:radial-gradient(circle at 42% 35%,rgba(255,200,104,.20),rgba(78,43,115,.45) 55%,rgba(24,14,48,.88))}
.bath-art img{width:100%;height:100%;display:block;object-fit:cover}
.pack-copy{min-width:0}.pack-title-row{display:flex;align-items:center;gap:7px;min-width:0}.pack-copy h2{font-size:17px;line-height:1.1;margin:0;font-weight:760;letter-spacing:-.018em}.pack-copy p{margin:6px 0 0;color:var(--text-3);font-size:12px;line-height:1.4}.popular{display:inline-flex;padding:3px 6px;border-radius:999px;background:rgba(255,79,151,.14);border:1px solid rgba(255,79,151,.25);color:#ffb4d2;font-size:8px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.chevron{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.06);border:1px solid var(--line);color:#d6cede;font-size:20px}
.primary,.secondary,.tertiary{appearance:none;width:100%;border:0;border-radius:19px;padding:15px 17px;font-weight:760;cursor:pointer;transition:transform .15s,filter .15s,opacity .15s}
.primary:active,.secondary:active,.tertiary:active{transform:scale(.99)}
.primary{margin-top:14px;background:linear-gradient(105deg,#ff9239,#ff4f84 47%,#a352ff);box-shadow:0 12px 28px rgba(229,62,126,.25);font-size:16px;color:#fff}
.secondary{margin-top:9px;background:rgba(255,255,255,.075);border:1px solid var(--line);font-size:14px;color:#f2eef8;backdrop-filter:blur(14px)}
.tertiary{margin-top:9px;padding:11px 14px;background:transparent;border:1px solid rgba(255,255,255,.075);font-size:12px;color:#aaa2b3}
.primary:disabled,.secondary:disabled{opacity:.42;filter:grayscale(.35);cursor:default}
.tiny-note{text-align:center;margin:11px 0 0;color:#8f879b;font-size:10px;line-height:1.4}
.back{position:absolute;left:16px;top:max(17px,env(safe-area-inset-top));width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:rgba(10,7,24,.68);backdrop-filter:blur(14px);display:grid;place-items:center;font-size:23px;cursor:pointer;z-index:5}
.screen-header{padding-top:58px;margin-bottom:20px}.screen-header h1{text-align:center;margin:7px 0 8px;font-size:34px;line-height:1.03;letter-spacing:-.045em;font-weight:820}.screen-header p{text-align:center;margin:0 auto;color:var(--text-2);font-size:13px;line-height:1.45;max-width:330px;text-wrap:balance}.screen-kicker{text-align:center}
.panel{border-radius:var(--radius-lg);background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(18px)}
.invite-panel{padding:14px;margin-bottom:12px}.invite-row{display:grid;grid-template-columns:.72fr 1.28fr;gap:8px}.invite-chip{min-width:0;padding:10px 11px;border-radius:15px;background:rgba(255,255,255,.045);border:1px solid var(--line)}.invite-chip small{display:block;color:var(--text-3);font-size:9px;line-height:1.1;text-transform:uppercase;letter-spacing:.08em;font-weight:750}.invite-chip strong{display:block;margin-top:5px;font-size:16px;line-height:1.15;font-weight:780;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.invite-chip.link strong{font-size:11px;color:#d8d0e9}
.player-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.player-card{padding:12px 8px 10px;text-align:center;border-radius:20px;background:rgba(18,12,38,.88);border:1px solid var(--line);box-shadow:0 12px 28px rgba(0,0,0,.17);min-width:0}.avatar{width:62px;height:62px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:linear-gradient(145deg,#7551bf,#d5578f);font-size:22px;font-weight:800;color:#fff;overflow:hidden;flex:0 0 auto}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.player-card .avatar{width:80px;height:80px;margin:0 auto 8px;border:2px solid rgba(255,255,255,.16)}.player-card strong{display:block;font-size:15px;font-weight:760;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.state{display:inline-flex;align-items:center;gap:5px;margin-top:5px;padding:4px 7px;border-radius:999px;background:rgba(91,221,145,.08);border:1px solid rgba(91,221,145,.18);font-size:9px;font-weight:750;color:#83eaae}.state::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.state.owner{color:#ffd079;background:rgba(255,199,102,.08);border-color:rgba(255,199,102,.18)}
.quorum{display:flex;align-items:center;justify-content:center;gap:7px;width:max-content;max-width:100%;margin:12px auto 2px;padding:7px 11px;border-radius:999px;background:rgba(91,221,145,.08);border:1px solid rgba(91,221,145,.15);color:#b3efc9;font-size:10px;font-weight:650}.quorum.pending{color:#d2c9dd;background:rgba(255,255,255,.045);border-color:var(--line)}.quorum strong{color:#fff}
.progress-wrap{padding:12px 13px;margin-bottom:12px;border-radius:18px;background:rgba(15,10,33,.78);border:1px solid var(--line);backdrop-filter:blur(16px)}.progress-top{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--text-2);font-weight:650}.progress-top span:last-child{color:#e6b4ef;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar{height:6px;border-radius:999px;background:rgba(255,255,255,.07);margin-top:9px;overflow:hidden}.bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#ff9a37,#ff4f97);transition:width .18s ease}
.question-card{padding:22px 17px 18px;text-align:center;margin-bottom:11px}.question-card h1{margin:0 auto 9px;max-width:340px;font-size:24px;line-height:1.22;letter-spacing:-.026em;font-weight:780;text-wrap:balance}.question-card p{margin:0;color:#bfb5cb;font-size:11px}
.answers{display:grid;gap:8px}.answer{display:flex;align-items:center;gap:11px;width:100%;padding:8px 10px;border-radius:18px;background:rgba(17,12,35,.88);border:1px solid var(--line);cursor:pointer;text-align:left}.answer .avatar{width:50px;height:50px;border:2px solid rgba(255,255,255,.11);font-size:17px}.answer strong{flex:1;font-size:14px;font-weight:730;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.answer-mark{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);color:#81778f;font-size:17px;flex:0 0 auto}.answer.selected{border-color:rgba(255,112,164,.52);background:linear-gradient(100deg,rgba(255,116,52,.24),rgba(255,79,151,.2),rgba(142,100,255,.20));box-shadow:0 0 0 1px rgba(255,84,148,.06) inset}.answer.selected .answer-mark{background:linear-gradient(135deg,#ff9a37,#ff4f97);border-color:transparent;color:white}.answer.saving{opacity:.72}.privacy{display:flex;justify-content:center;align-items:center;gap:6px;margin:11px auto 0;color:#8f879e;font-size:10px;text-align:center}
.waiting-content{padding-top:94px;text-align:center}.done-icon{width:78px;height:78px;margin:0 auto 17px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(142,100,255,.85),rgba(255,79,151,.9));box-shadow:0 16px 36px rgba(119,64,210,.28);font-size:35px;font-weight:800}.waiting-content h1{margin:0;font-size:34px;line-height:1.05;letter-spacing:-.04em;font-weight:820}.waiting-content p{margin:11px auto 0;max-width:315px;color:var(--text-2);font-size:13px;line-height:1.5}.wait-panel{margin-top:24px;padding:15px;text-align:left}.stacked{display:flex;padding-left:10px}.stacked .avatar{width:52px;height:52px;margin-left:-10px;border:3px solid #17102d;opacity:.42;font-size:16px}.stacked .avatar.done{opacity:1}.wait-row{display:flex;justify-content:space-between;gap:10px;margin-top:13px;font-size:11px;color:var(--text-3)}.wait-row strong{color:#fff}.bar.wait i{background:linear-gradient(90deg,#5bdd91,#8e64ff,#ff4f97)}
.results-header{padding-top:53px;margin-bottom:13px}.results-header h1{text-align:center;margin:7px 0 5px;font-size:36px;line-height:1.02;letter-spacing:-.045em;font-weight:830}.results-header p{text-align:center;margin:0;color:var(--text-2);font-size:12px}.hero-medal{width:78px;height:78px;margin:16px auto;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 36% 28%,#fff4b8,#ffc766 42%,#ff9a37 75%);box-shadow:0 17px 42px rgba(242,159,54,.28);color:#8e4d12;font-size:32px;border:5px solid rgba(255,255,255,.2)}.result-list{display:grid;gap:8px}.result-card{display:grid;grid-template-columns:34px 1fr 50px auto;align-items:center;gap:9px;padding:10px;border-radius:20px;background:rgba(18,12,38,.91);border:1px solid var(--line)}.rank{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:rgba(255,199,102,.12);border:1px solid rgba(255,199,102,.22);color:#ffd079;font-size:12px;font-weight:800}.result-card:nth-child(3n+2) .rank{background:rgba(165,187,255,.10);border-color:rgba(165,187,255,.19);color:#bac9ff}.result-card:nth-child(3n) .rank{background:rgba(255,117,111,.10);border-color:rgba(255,117,111,.18);color:#ff9c98}.result-copy{min-width:0}.result-copy span{display:block;color:#b8afc5;font-size:10px;line-height:1.28}.result-copy strong{display:block;margin-top:3px;font-size:16px;font-weight:770;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.1)}.result-avatar.fallback{display:grid;place-items:center;background:linear-gradient(145deg,#7551bf,#d5578f);font-weight:800}.pct{padding:5px 7px;border-radius:11px;background:rgba(255,255,255,.05);border:1px solid var(--line);font-size:12px;font-weight:790;color:#ffe0a6;white-space:nowrap}.no-result{color:#8f879e;font-size:11px}
.intro-card{padding:24px 18px;text-align:center;margin-top:72px}.intro-card h1{margin:8px 0 9px;font-size:34px;line-height:1.05;letter-spacing:-.04em}.intro-card p{margin:0;color:var(--text-2);font-size:13px;line-height:1.5}.intro-count{display:inline-flex;margin:18px auto 0;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.055);border:1px solid var(--line);font-size:11px;font-weight:750;color:#ddd5e6}
@media(max-width:360px){.brand h1{font-size:38px}.pack{grid-template-columns:66px 1fr 30px}.pack-art{width:66px;height:66px}.content{padding-inline:14px}.player-card .avatar{width:72px;height:72px}.screen-header h1{font-size:31px}.question-card h1{font-size:21px}.result-card{grid-template-columns:31px 1fr 43px auto;gap:7px}.result-avatar{width:43px;height:43px}.pct{font-size:11px;padding-inline:5px}}
.live-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:11px auto 0;color:#9d94a8;font-size:10px;text-align:center}.live-note span{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(98,217,149,.08),0 0 14px rgba(98,217,149,.38)}.waiting-live{margin-top:16px}
.modal-backdrop{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center;background:rgba(4,2,12,.64);backdrop-filter:blur(5px);padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom))}.modal-sheet{width:min(100%,520px);border-radius:28px;padding:12px 16px 18px;background:linear-gradient(180deg,rgba(28,18,52,.99),rgba(14,9,29,.995));border:1px solid rgba(255,255,255,.11);box-shadow:0 26px 70px rgba(0,0,0,.52)}.modal-handle{width:40px;height:4px;border-radius:999px;background:rgba(255,255,255,.18);margin:0 auto 13px}.modal-title-row{display:flex;align-items:flex-start;gap:12px}.modal-title-row>div{flex:1;min-width:0}.modal-title-row h2{margin:0;font-size:21px;line-height:1.15;letter-spacing:-.025em}.modal-title-row p{margin:7px 0 0;color:var(--text-2);font-size:12px;line-height:1.45}.modal-close{flex:0 0 auto;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.055);font-size:22px;color:#cfc6d8;cursor:pointer}.share-preview{white-space:pre-wrap;word-break:break-word;margin-top:15px;padding:13px 14px;border-radius:17px;background:rgba(255,255,255,.045);border:1px solid var(--line);font-size:11px;line-height:1.5;color:#e7e1eb;max-height:210px;overflow:auto}.modal-sheet .primary{margin-top:12px}.modal-sheet .secondary{margin-top:8px}
.role-list{display:grid;gap:8px}.role-card{display:grid;grid-template-columns:56px 1fr auto;align-items:center;gap:11px;padding:10px 12px;border-radius:20px;background:rgba(18,12,38,.91);border:1px solid var(--line);box-shadow:0 12px 28px rgba(0,0,0,.14)}.role-card .result-avatar{width:54px;height:54px}.role-copy{min-width:0}.role-copy strong{display:block;font-size:15px;font-weight:770;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.role-copy span{display:block;margin-top:4px;color:#ffc6df;font-size:12px;line-height:1.25;font-weight:690}.role-score{min-width:31px;height:31px;padding:0 7px;border-radius:999px;display:grid;place-items:center;background:rgba(255,199,102,.10);border:1px solid rgba(255,199,102,.19);color:#ffd079;font-size:11px;font-weight:800}.role-score.muted{color:#8f879e;background:rgba(255,255,255,.04);border-color:var(--line)}
@media(max-width:360px){.role-card{grid-template-columns:48px 1fr auto}.role-card .result-avatar{width:46px;height:46px}.modal-backdrop{padding-inline:10px}.modal-sheet{padding-inline:14px}}
