:root{--bg: #07130d;--bg-2: #0b1f15;--grass: #0f3a24;--grass-2: #124a2d;--card: rgba(255, 255, 255, .055);--card-strong: rgba(255, 255, 255, .09);--line: rgba(255, 255, 255, .12);--text: #f2fff6;--muted: #94b8a3;--accent: #c8ff2e;--accent-ink: #0a1a05;--cyan: #38e8ff;--gold: #ffc93c;--impostor: #ff3d6e;--danger: #ff4d5e;--radius: 20px;--radius-sm: 14px;--shadow: 0 12px 40px rgba(0, 0, 0, .35);--font-display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;--font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--safe-bottom: env(safe-area-inset-bottom, 0px);color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}body{font-family:var(--font);color:var(--text);font-size:16px;line-height:1.45;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overflow-x:hidden;background:radial-gradient(120% 60% at 50% -10%,rgba(200,255,46,.12),transparent 60%),repeating-linear-gradient(180deg,var(--bg) 0 64px,#081710 64px 128px);background-attachment:fixed}button,input{font:inherit;color:inherit}h1,h2,h3,h4,p{margin:0}h3{font-size:1.02rem;font-weight:700}.app{min-height:100dvh;max-width:560px;margin:0 auto}.screen{min-height:100dvh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:8px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;background:linear-gradient(180deg,#07130df5,#07130dcc);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}.topbar-title{font-family:var(--font-display);font-weight:400;font-size:1.6rem;letter-spacing:.04em;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-spacer{width:48px}.screen-body{flex:1;padding:18px 16px calc(24px + var(--safe-bottom));display:flex;flex-direction:column;gap:16px}.stack{display:flex;flex-direction:column;gap:14px}.center-stack{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding-top:8px}.full{width:100%}.center{text-align:center;justify-content:center}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}.btn-row{display:flex;gap:10px;flex-wrap:wrap}.btn-row>.btn{flex:1 1 140px}.btn-stack{display:flex;flex-direction:column;gap:10px}.divider{height:1px;background:var(--line);margin:8px 0}.muted{color:var(--muted)}.small{font-size:.86rem}.lead{font-size:1.08rem;max-width:34ch}.kicker,.role-kicker{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.14em;color:var(--accent)}.display{font-family:var(--font-display);font-weight:400;font-size:clamp(2.1rem,9vw,2.8rem);line-height:1;letter-spacing:.02em}.big-emoji{font-size:4rem;line-height:1}.waiting{text-align:center;color:var(--muted);padding:14px;border:1px dashed var(--line);border-radius:var(--radius-sm)}.waiting:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-right:8px;vertical-align:middle;animation:pulse 1.4s infinite}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:10px}.details summary{cursor:pointer;font-weight:600;min-height:32px;display:flex;align-items:center}.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:var(--card-strong);font-size:.8rem;font-weight:600;white-space:nowrap}.badge--impostor{background:#ff3d6e2e;color:#ff8fab}.badge--host{background:#ffc93c29;color:var(--gold)}.badge--warn{background:#ffc93c24;color:var(--gold);align-self:center;white-space:normal}.banner{padding:10px 14px;border-radius:var(--radius-sm);background:var(--card-strong);text-align:center;font-size:.92rem}.banner--warn{background:#ffc93c24;color:var(--gold)}.alert{color:var(--impostor);font-weight:700}.error-text{color:#ff8fa0;font-size:.9rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 18px;border-radius:var(--radius-sm);border:1px solid transparent;background:var(--card-strong);font-weight:700;font-size:1rem;cursor:pointer;transition:transform .12s ease,background .2s ease,box-shadow .2s ease,opacity .2s;touch-action:manipulation;-webkit-user-select:none;user-select:none}.btn:active:not(:disabled){transform:scale(.97)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn:focus-visible,.icon-btn:focus-visible,.chip:focus-visible,.vote-option:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}.btn--primary{background:var(--accent);color:var(--accent-ink);box-shadow:0 8px 28px #c8ff2e40}.btn--secondary{background:#fff;color:#07130d}.btn--ghost{background:transparent;border-color:var(--line)}.btn--danger{background:var(--danger);color:#fff}.btn--xl{min-height:60px;font-size:1.1rem;border-radius:18px}.btn--block{width:100%}.btn--small{min-height:40px;padding:8px 12px;font-size:.9rem}.btn--icon{width:52px;padding:0;font-size:1.6rem;flex-shrink:0}.icon-btn{width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-size:1.2rem;cursor:pointer;display:grid;place-items:center;flex-shrink:0}.icon-btn--danger{width:40px;height:40px;font-size:.95rem;color:#ff8fa0}.link-btn{background:none;border:none;color:var(--accent);font-weight:600;cursor:pointer;padding:8px 0;font-size:.9rem}.sticky-cta{position:sticky;bottom:0;margin:4px -16px calc(-24px - var(--safe-bottom));padding:14px 16px calc(16px + var(--safe-bottom));background:linear-gradient(180deg,#07130d00,#07130df2 30%);display:flex;flex-direction:column;gap:8px;z-index:5}.home{position:relative;overflow:hidden}.pitch-lines{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:.18;background:radial-gradient(circle at 50% 38%,transparent 118px,rgba(255,255,255,.9) 119px,rgba(255,255,255,.9) 121px,transparent 122px),linear-gradient(90deg,transparent calc(50% - 1px),rgba(255,255,255,.9) calc(50% - 1px),rgba(255,255,255,.9) calc(50% + 1px),transparent calc(50% + 1px));-webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 75%);mask-image:linear-gradient(180deg,#000 0%,transparent 75%)}.home-body{position:relative;flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:28px;padding:calc(40px + env(safe-area-inset-top,0px)) 16px calc(28px + var(--safe-bottom))}.home-hero{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center;margin-top:4vh}.home-tagline{font-size:1.12rem;color:var(--muted)}.home-tagline strong{color:var(--impostor)}.home-menu{display:flex;flex-direction:column;gap:12px}.home-menu .btn--xl{justify-content:flex-start;text-align:left;min-height:76px;padding:14px 18px}.btn-icon{font-size:1.8rem;width:44px;text-align:center}.btn-text{display:flex;flex-direction:column;font-size:1.2rem;line-height:1.2}.btn-text small{font-size:.82rem;font-weight:500;opacity:.75}.home-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.logo{display:flex;flex-direction:column;align-items:center;gap:8px}.logo-mark{filter:drop-shadow(0 10px 30px rgba(255,61,110,.35));animation:bob 4s ease-in-out infinite}.logo-text{display:flex;flex-direction:column;align-items:center;line-height:.85}.logo-top{font-family:var(--font-display);font-size:1.7rem;letter-spacing:.5em;margin-right:-.5em;color:var(--accent)}.logo-main{font-family:var(--font-display);font-size:clamp(3.6rem,18vw,5rem);letter-spacing:.04em;background:linear-gradient(180deg,#fff 40%,#b7d8c3);-webkit-background-clip:text;background-clip:text;color:transparent}.logo--compact{flex-direction:row}.field{display:flex;flex-direction:column;gap:6px}.field-label{font-size:.85rem;color:var(--muted);font-weight:600}.input{width:100%;min-height:52px;padding:12px 14px;border-radius:var(--radius-sm);border:1px solid var(--line);background:#00000040;font-size:1.05rem;outline:none;transition:border-color .2s}.input:focus{border-color:var(--accent)}.input--big{font-size:1.25rem;text-align:center;min-height:60px}.input--code{font-family:var(--font-display);font-size:1.8rem;letter-spacing:.12em;text-align:center}.add-player{display:flex;gap:8px}.stepper{display:flex;align-items:center;gap:4px;background:#00000040;border-radius:999px;padding:4px;flex-shrink:0}.stepper-btn{width:40px;height:40px;border-radius:50%;border:none;background:var(--card-strong);font-size:1.3rem;cursor:pointer}.stepper-btn:disabled{opacity:.3}.stepper-value{min-width:52px;text-align:center;font-weight:700}.toggle{width:56px;height:32px;border-radius:999px;border:none;background:#ffffff2e;position:relative;cursor:pointer;flex-shrink:0;transition:background .2s}.toggle-knob{position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:#fff;transition:transform .2s}.toggle.is-on{background:var(--accent)}.toggle.is-on .toggle-knob{transform:translate(24px);background:var(--accent-ink)}.segmented{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;background:#00000040;border-radius:var(--radius-sm)}.segmented button{min-height:44px;border:none;border-radius:10px;background:transparent;font-weight:600;cursor:pointer;transition:background .2s}.segmented button.is-active{background:#fff;color:#07130d}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:42px;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:transparent;font-weight:600;cursor:pointer;transition:all .15s}.chip.is-on{background:#c8ff2e24;border-color:var(--accent);color:var(--accent)}.config{display:flex;flex-direction:column;gap:14px}.player-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.player-row{display:flex;align-items:center;gap:12px;min-height:52px;padding:6px 8px;border-radius:14px;background:#0000002e}.player-name{flex:1;font-weight:600;overflow:hidden;text-overflow:ellipsis}.avatar{border-radius:50%;display:inline-grid;place-items:center;font-weight:800;color:#07130d;flex-shrink:0;box-shadow:inset 0 -3px #0000002e}.avatar.is-dim{filter:grayscale(1);opacity:.45}.avatar-row{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.avatar-check{position:relative}.avatar-check.is-done:after{content:"✓";position:absolute;right:-3px;bottom:-3px;width:18px;height:18px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:900;display:grid;place-items:center}.dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.dot--on{background:var(--accent);box-shadow:0 0 10px var(--accent)}.dot--off{background:#5a6b61}.code-pill{font-family:var(--font-display);font-size:1rem;letter-spacing:.08em;padding:4px 8px;border-radius:8px;background:var(--card-strong)}.room-code-card{align-items:center;text-align:center;background:linear-gradient(160deg,#c8ff2e1f,#38e8ff0f)}.room-code{font-family:var(--font-display);font-size:clamp(2.6rem,13vw,3.6rem);letter-spacing:.08em;line-height:1;-webkit-user-select:all;user-select:all}.room-code-card .btn-row{width:100%}.role-card{width:100%;min-height:300px;border-radius:26px;padding:28px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;position:relative;overflow:hidden;box-shadow:var(--shadow)}.role-card--civilian{background:radial-gradient(circle at 50% 0%,rgba(200,255,46,.25),transparent 60%),linear-gradient(170deg,var(--grass-2),var(--grass));border:2px solid rgba(200,255,46,.5)}.role-card--impostor{background:radial-gradient(circle at 50% 0%,rgba(255,61,110,.4),transparent 65%),linear-gradient(170deg,#3a0d1b,#1a060d);border:2px solid rgba(255,61,110,.6)}.role-card--impostor .role-kicker{color:#ff8fab}.role-word{font-family:var(--font-display);font-weight:400;font-size:clamp(2.6rem,12vw,3.6rem);line-height:1;overflow-wrap:anywhere}.role-title{font-family:var(--font-display);font-weight:400;font-size:clamp(2.6rem,12vw,3.4rem);line-height:1;color:var(--impostor)}.role-mask{font-size:3.6rem}.role-help{color:#ffffffc7;max-width:32ch}.role-hint{width:100%;padding:14px;border-radius:16px;background:#0000004d;border:1px dashed rgba(255,143,171,.6);display:flex;flex-direction:column;gap:4px}.role-hint span{font-size:.75rem;text-transform:uppercase;letter-spacing:.12em;color:#ff8fab}.role-hint strong{font-family:var(--font-display);font-weight:400;font-size:2.2rem;line-height:1;letter-spacing:.02em}.role-hint small{color:#ffffffa6;font-size:.8rem}.timer{position:relative;display:grid;place-items:center;flex-shrink:0}.timer svg{position:absolute;top:0;right:0;bottom:0;left:0}.timer-track{fill:none;stroke:#ffffff1a;stroke-width:9}.timer-bar{fill:none;stroke:var(--accent);stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset .25s linear,stroke .3s}.timer.is-urgent .timer-bar{stroke:var(--impostor)}.timer-label{display:flex;flex-direction:column;align-items:center;line-height:1}.timer-label strong{font-family:var(--font-display);font-size:2.6em;font-size:calc(var(--size, 1) * 2.6rem);font-weight:400}.timer-label span{font-size:.72rem;color:var(--muted)}.timer.is-urgent .timer-label strong{color:var(--impostor);animation:pulse 1s infinite}.timerbar{position:relative;height:40px;border-radius:12px;background:#ffffff14;overflow:hidden;display:grid;place-items:center}.timerbar-fill{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,#c8ff2e59,#c8ff2e99);transform-origin:left;transition:transform .25s linear}.timerbar.is-urgent .timerbar-fill{background:linear-gradient(90deg,#ff3d6e66,#ff3d6eb3)}.timerbar-text{position:relative;font-weight:800;font-variant-numeric:tabular-nums}.turn-header{display:flex;align-items:center;gap:16px}.clues ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.clues-round+.clues-round{margin-top:10px}.clue{display:grid;grid-template-columns:30px auto 1fr;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;background:#0003}.clue-name{font-weight:700;font-size:.92rem}.clue-text{overflow-wrap:anywhere}.clue.is-skipped .clue-text{color:var(--muted);font-style:italic;font-size:.88rem}.clue.is-pending{border:1px dashed var(--line);background:transparent}.typing{color:var(--muted);animation:pulse 1.4s infinite}.clue-form{border-color:#c8ff2e80}.vote-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}.vote-option{min-height:110px;border-radius:18px;border:2px solid var(--line);background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;font-weight:700;padding:10px;transition:all .15s;overflow-wrap:anywhere}.vote-option.is-selected{border-color:var(--impostor);background:#ff3d6e24;transform:scale(1.03)}.vote-counts{list-style:none;margin:6px 0 0;padding:0;width:100%;display:flex;flex-direction:column;gap:6px}.vote-counts li{display:grid;grid-template-columns:minmax(70px,auto) 1fr 24px;align-items:center;gap:8px;font-size:.92rem;text-align:left}.vote-bar{height:10px;border-radius:999px;background:var(--accent);min-width:10px}.verdict{align-items:center;text-align:center;padding:26px 18px;overflow:hidden}.verdict h2{font-family:var(--font-display);font-weight:400;font-size:2.6rem;line-height:1}.verdict-icon{font-size:3.2rem}.verdict-player{display:flex;flex-direction:column;align-items:center;gap:8px}.verdict-stamp{font-family:var(--font-display);font-size:2rem;letter-spacing:.06em;padding:8px 18px;border:4px solid currentColor;border-radius:10px;transform:rotate(-4deg)}.verdict--caught{border-color:#c8ff2e99}.verdict--caught .verdict-stamp{color:var(--accent)}.verdict--innocent{border-color:#ff3d6e99}.verdict--innocent .verdict-stamp{color:var(--impostor)}.results{position:relative;display:flex;flex-direction:column;gap:14px}.results-hero{text-align:center;padding:12px 0 4px;display:flex;flex-direction:column;align-items:center;gap:8px}.results-icon{font-size:4.2rem;animation:pop-in .6s cubic-bezier(.2,1.6,.4,1) both}.results-title{font-family:var(--font-display);font-weight:400;font-size:clamp(2.6rem,12vw,3.4rem);line-height:1}.results--civilians .results-title{color:var(--accent)}.results--impostors .results-title{color:var(--impostor)}.results-word{align-items:center;text-align:center}.results-word strong{font-family:var(--font-display);font-weight:400;font-size:2.4rem;line-height:1}.results-guess{font-size:1.1rem;font-weight:600}.confetti{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;overflow:hidden;z-index:30}.confetti span{position:absolute;top:-20px;width:9px;height:14px;border-radius:2px;animation:fall linear forwards}.how-step{flex-direction:row;align-items:flex-start;gap:14px}.how-step>div{display:flex;flex-direction:column;gap:8px}.how-num{flex-shrink:0;width:40px;height:40px;border-radius:12px;background:var(--accent);color:var(--accent-ink);font-family:var(--font-display);font-size:1.5rem;display:grid;place-items:center}.how-example{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:12px;background:#00000040;font-size:.92rem}.how-example .is-impostor{color:var(--impostor)}.how-list{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:8px}.toast{position:fixed;left:50%;bottom:calc(24px + var(--safe-bottom));transform:translate(-50%);z-index:50;width:min(92vw,480px);padding:14px 16px;border-radius:14px;background:#fff;color:#07130d;font-weight:600;box-shadow:var(--shadow);animation:toast-in .25s ease both;text-align:center}.toast--error{background:var(--danger);color:#fff}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#000000a6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:flex-end;justify-content:center;padding:16px 16px calc(16px + var(--safe-bottom));animation:fade-in .2s ease both}.modal{width:min(100%,480px);max-height:90dvh;overflow-y:auto;background:var(--bg-2);border:1px solid var(--line);border-radius:24px;padding:20px;display:flex;flex-direction:column;gap:14px;animation:rise-in .25s ease both}@media(min-height:700px)and (min-width:600px){.modal-backdrop{align-items:center}}.spinner{width:44px;height:44px;border-radius:50%;border:4px solid var(--line);border-top-color:var(--accent);animation:spin .9s linear infinite}.anim-rise{animation:rise-in .45s cubic-bezier(.2,.8,.2,1) both}.anim-fade{animation:fade-in .35s ease both}.anim-pop{animation:pop-in .3s cubic-bezier(.2,1.4,.4,1) both}.anim-flip{animation:flip-in .55s cubic-bezier(.2,.9,.3,1.1) both}.anim-stamp{animation:stamp .5s .35s cubic-bezier(.2,1.6,.4,1) both}.phase{display:flex;flex-direction:column;gap:16px}@keyframes rise-in{0%{opacity:0;transform:translateY(16px)}}@keyframes fade-in{0%{opacity:0}}@keyframes pop-in{0%{opacity:0;transform:scale(.85)}}@keyframes flip-in{0%{opacity:0;transform:perspective(800px) rotateY(80deg) scale(.9)}}@keyframes stamp{0%{opacity:0;transform:rotate(-4deg) scale(2.4)}}@keyframes fall{to{transform:translateY(110vh) rotate(720deg);opacity:.6}}@keyframes pulse{50%{opacity:.4}}@keyframes bob{50%{transform:translateY(-6px) rotate(-3deg)}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,12px)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.confetti{display:none}}:root[data-motion=reduced] *,:root[data-motion=reduced] *:before,:root[data-motion=reduced] *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}:root[data-motion=reduced] .confetti{display:none}@media(min-width:720px){.app{max-width:640px}.screen-body{padding:28px 24px 32px}.sticky-cta{margin-left:-24px;margin-right:-24px;padding-left:24px;padding-right:24px}}.install-btn{border-style:dashed;color:var(--accent)}.install-steps{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
