/* A second game shares the existing library footprint. No extra section. */
.games-library:has([data-game=impostor]){grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:clamp(18px,3vw,42px);max-width:1100px}
[data-game=impostor]{--card-tilt:-2deg}
.games-library:has([data-game=impostor]) [data-game=family]{--card-tilt:2deg}
[data-game=impostor] .game-cover{background:#162d43}
.imp-cover-image{width:100%;height:100%;object-fit:cover;display:block}
[data-game=impostor] .game-card-cta{background:#234754;border-color:#172f39;box-shadow:0 4px 0 #172f39}
.imp-cover-label{position:absolute;left:18px;top:18px;font-size:10px;font-weight:700;letter-spacing:.09em;color:#ffefd2;border:1px solid #f8e5c566;background:#142737b3;padding:6px 10px;transform:rotate(-3deg)}
@media(max-width:760px){
 .games-library:has([data-game=impostor]){gap:15px;padding:0 3px;max-width:530px}
 .games-library:has([data-game=impostor]) .game-card{border-radius:16px;box-shadow:3px 5px 0 #49332c}
 .games-library:has([data-game=impostor]) .game-launch{border-radius:14px}
 .games-library:has([data-game=impostor]) .game-cover{aspect-ratio:1/1;border-radius:13px 13px 0 0}
 .games-library:has([data-game=impostor]) .game-cover-art{object-fit:cover}
 .games-library:has([data-game=impostor]) .game-card-info{display:block;padding:14px 11px 15px}
 .games-library:has([data-game=impostor]) .game-card-name{display:block;font-size:clamp(24px,6.6vw,36px);margin:0 0 12px;letter-spacing:-.025em}
 .games-library:has([data-game=impostor]) .game-card-cta{padding:8px 12px;min-height:44px;justify-content:space-between;font-size:13px;gap:5px}
 .games-library:has([data-game=impostor]) .game-card-cta svg{width:13px;height:15px}
 .games-library:has([data-game=impostor]) .game-cover-play{display:none}
 .imp-cover-label{font-size:7px;left:7px;top:9px;padding:4px 5px;letter-spacing:.03em}
}

/* The player is scoped to Impostor; Haters keeps its existing room and sizing. */
#game-screen-impostor{background:#152a3b}
#game-screen-impostor .play-screen{background:#152a3b}
#game-screen-impostor .play-screen-toolbar{max-width:1220px}
#game-screen-impostor .play-screen-close,#game-screen-impostor .play-screen-expand{background:#1d3548;border-color:#577084}
.impostor-game{--imp-ink:#182f40;--imp-paper:#f3e9d3;--imp-gold:#f0bd58;--imp-red:#bd5336;position:relative;width:100%;height:100%;min-height:0;max-width:1220px;overflow:auto;overscroll-behavior:contain;border:1px solid #557082;border-radius:22px;background:#e9dfc9;color:var(--imp-ink);font-family:Body,Arial,sans-serif;-webkit-overflow-scrolling:touch}
.impostor-game *{box-sizing:border-box}
.impostor-game button,.impostor-game input{font:inherit}
.impostor-game button{cursor:pointer;-webkit-tap-highlight-color:transparent}
.impostor-game button:disabled{opacity:.4;cursor:default;box-shadow:none}
.impostor-game :focus-visible{outline:3px solid #b7532c;outline-offset:4px}
.imp-shell{min-height:100%;background:radial-gradient(ellipse at 6% 16%,#fff9e455,transparent 55%),repeating-linear-gradient(0deg,#182f4003 0px,#182f4003 1px,transparent 1px,transparent 4px)}
.imp-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #233a452a;padding:10px 28px;font-size:9px;letter-spacing:.1em;font-weight:700;min-height:47px}
.imp-topline b{margin-left:12px;font-size:10px;color:#95682e}
.imp-topline .imp-text{font-size:11px;padding:5px;min-height:30px;margin:0}
.imp-content{padding:clamp(20px,3vw,38px)}
.imp-setup{display:grid;grid-template-columns:1fr .94fr;gap:clamp(25px,4vw,62px);align-items:start;max-width:1100px;margin:auto}
.imp-intro{position:sticky;top:20px;padding-top:6px}
.imp-intro-art{position:relative;transform:rotate(-2deg);border:5px solid #fff4da;outline:1px solid #aaa18d;box-shadow:8px 10px 0 #1c364228;aspect-ratio:1.5}
.imp-intro-art img{width:100%;height:100%;object-fit:cover;display:block}
.imp-art-stamp{position:absolute;bottom:15px;right:-12px;font-size:9px;letter-spacing:.08em;padding:8px 10px;background:var(--imp-gold);transform:rotate(5deg);font-weight:700;color:#3d2b16;border:1px solid #695130}
.imp-intro-copy{padding:30px 7px 0}
.imp-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;margin:0 0 9px;color:#70583b}
.imp-intro h1{font:clamp(46px,6.5vw,82px)/.97 Display,Arial;margin:0;letter-spacing:-.035em}
.imp-title-dot{display:inline-block;color:#bf5130;transform:rotate(12deg);margin-left:2px}
.imp-intro-copy>p:not(.imp-eyebrow){font-size:19px;margin:12px 0 18px}
.imp-facts{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.04em;font-weight:700}
.imp-facts i{width:4px;height:4px;background:#ac7850;border-radius:50%}
.imp-config{padding:5px 0}
.imp-config-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.imp-config h2{font:32px/1 Display,Arial;margin:0}
.imp-seal{width:45px;height:45px;display:grid;place-items:center;border:2px solid currentColor;border-radius:50%;font:23px Display,Arial;color:#ab5337;transform:rotate(-15deg);outline:1px solid currentColor;outline-offset:3px;flex-shrink:0;opacity:.9}
.imp-counts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}
.imp-counter{padding-bottom:14px;border-bottom:1px solid #59645d47}
.imp-counter>span{display:block;font-size:12px;font-weight:700;margin-bottom:10px}
.imp-counter>div{display:flex;align-items:center;gap:13px}
.imp-counter output{font:30px Display,Arial;min-width:32px;text-align:center}
.imp-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:8px;min-height:48px;padding:12px 20px;font-weight:700!important;font-size:14px!important;text-decoration:none;line-height:1.2;transition:background .16s,transform .16s;touch-action:manipulation}
.imp-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;flex-shrink:0}
.imp-primary{background:var(--imp-ink);color:#fff3d6;box-shadow:0 4px 0 #091d2a;letter-spacing:.035em}
.imp-primary:active{transform:translateY(2px);box-shadow:0 2px 0 #091d2a}
.imp-secondary{background:#dbd0b7;color:var(--imp-ink);border:1px solid #b3a68a}
.imp-step{width:44px;height:44px;min-height:44px;padding:0;font-size:26px!important;background:#f8efdc;border:1px solid #aea48b;box-shadow:0 2px 0 #c6b89a}
.imp-text{background:none;color:#47544e;min-height:44px;padding:9px 4px;font-size:12px!important;text-decoration:underline;text-underline-offset:4px;font-weight:600!important;box-shadow:none}
.imp-names{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.imp-name{display:flex;align-items:center;gap:8px;border-bottom:1px solid #788078;background:#f6eedc;padding:1px 10px}
.imp-name>span{font:14px Display,Arial;color:#a57b48}
.imp-name input{width:100%;min-width:0;background:none;border:0;border-radius:0;padding:11px 0;color:var(--imp-ink);font-size:16px;min-height:44px}
.imp-config-note{font-size:12px;line-height:1.55;margin:14px 0 5px;color:#5b6155}
.imp-error{font-size:12px;color:#972f22;font-weight:700;margin:0;line-height:1.5}
.imp-error:empty{display:none}
.imp-start{width:100%;margin:14px 0 12px;justify-content:space-between}
.imp-rules{font-size:12px;color:#3b504e;line-height:1.7;max-width:640px;margin:16px auto 0;text-align:left}
.imp-rules summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700;border-top:1px solid #6a756146;padding-top:8px}
.imp-rules summary:after{content:'+';margin-left:auto;font-size:20px}
.imp-rules[open] summary:after{content:'−'}
.imp-rules ol{padding-left:23px;margin:8px 0}
.imp-rules li{padding:4px 0 8px 4px}
.imp-page-heading{margin:0 auto 18px;text-align:center;max-width:680px}
.imp-page-heading h2{font:clamp(29px,4vw,45px)/1.04 Display,Arial;margin:0;text-wrap:balance;overflow-wrap:anywhere}
.imp-note{font-size:14px;line-height:1.5;margin:10px 0 0;text-wrap:balance;color:#45564f}
.imp-private-view,.imp-vote-pass{max-width:650px;margin:auto;text-align:center}
.imp-progress{display:flex;justify-content:center;gap:5px;margin:12px 0 21px}
.imp-progress i{width:19px;height:4px;border-radius:3px;background:#b8b6a6}.imp-progress i.done{background:#456662}.imp-progress i.current{background:#b75131}
.imp-secret-wrap{max-width:360px;margin:auto;perspective:1200px;transform:rotate(-1.5deg)}
.imp-secret{position:relative;width:100%;aspect-ratio:1.32;min-height:240px;border:2px solid #d5b16d;border-radius:16px;background:var(--imp-ink);box-shadow:7px 9px 0 #1733472b;overflow:hidden;user-select:none;-webkit-user-select:none}
.imp-card-back{position:absolute;inset:9px;border:1px solid #c6a77163;border-radius:9px;color:#f4db9a;display:flex;align-items:center;justify-content:center;flex-direction:column;background:repeating-linear-gradient(45deg,transparent 0px,transparent 16px,#f8e0ad04 16px,#f8e0ad04 17px)}
.imp-card-back>svg{width:104px;height:70px;fill:#e6bc71;stroke:#091d2a;stroke-width:2}
.imp-eye{fill:#162f42;stroke:none}
.imp-classified{position:absolute;left:17px;top:16px;font-size:8px;letter-spacing:.16em;font-weight:700}
.imp-card-back-name{font:26px/.93 Display,Arial;letter-spacing:.02em;margin-top:8px}
.imp-card-number{position:absolute;right:17px;bottom:13px;font:23px Display,Arial;opacity:.5}
.imp-card-back .imp-seal{position:absolute;left:18px;bottom:19px;width:27px;height:27px;font-size:15px;color:#e6bc71;border-width:1px;outline-offset:2px}
.imp-card-front{position:absolute;inset:0;display:grid;grid-template-rows:44% 1fr;background:#fff3d9;color:#192f40}
.imp-card-front>img{width:100%;height:100%;object-fit:cover;object-position:50% 31%;pointer-events:none}
.imp-secret-copy{display:flex;flex-direction:column;justify-content:center;padding:8px 13px 12px;gap:5px}
.imp-secret-copy>span{font-size:9px;letter-spacing:.13em;font-weight:700;color:#9b5937}
.imp-secret-copy strong{font:clamp(24px,3.8vw,36px)/1.04 Display,Arial;overflow-wrap:anywhere;text-wrap:balance}
.imp-secret-copy p{font-size:12px;line-height:1.3;margin:0}
.imp-private-controls{display:grid;max-width:360px;margin:24px auto 0;gap:2px}
.imp-hold{background:#d2ad65;color:#272b2a;box-shadow:0 3px 0 #a78347;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.imp-hold>svg{width:34px;height:23px;fill:#2b393c;stroke:none}.imp-hold .imp-eye{fill:#d2ad65}
.imp-private-controls .imp-primary{margin-top:7px}
.imp-table-view,.imp-vote-view{max-width:640px;margin:auto;text-align:center}
.imp-starter{display:flex;justify-content:center;align-items:center;gap:22px;margin:26px auto 23px;text-align:left}
.imp-portrait{display:block;width:76px;height:93px;flex-shrink:0;overflow:hidden}
.imp-button .imp-portrait{fill:none;stroke:none}
.imp-starter>div>span{font-size:10px;letter-spacing:.1em;font-weight:700;color:#8a6335}.imp-starter strong{display:block;font:34px/1.05 Display,Arial;overflow-wrap:anywhere;max-width:400px}.imp-starter p{font-size:12px;margin:6px 0 0;color:#516256}
.imp-player-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;max-width:520px;margin:auto}
.imp-player-chips>span{font-size:12px;border:1px solid #9d9e89;border-radius:4px;background:#f4ecd9;padding:5px 10px;overflow-wrap:anywhere;max-width:100%}.imp-player-chips>span.is-out{opacity:.55;text-decoration:line-through}.imp-player-chips i{font-style:normal;margin-right:4px}
.imp-category{margin:25px auto;max-width:390px;padding:15px 16px;border:1px dashed #938565;border-radius:8px;min-height:99px;background:#eee0be70}
.imp-category>span{font-size:9px;font-weight:700;letter-spacing:.12em;color:#806437}.imp-category strong{display:block;font:27px/1.15 Display,Arial;margin-top:5px}.imp-category p{font-size:11px;color:#596452;margin:7px 0 0;line-height:1.4}
.imp-category .imp-button{background:transparent;padding:0;color:#384c43;min-height:35px;font-size:13px!important;gap:18px}
.imp-category .imp-button span{font-size:25px;font-weight:400}
.imp-secondary-actions{display:flex;justify-content:center;gap:20px;margin-top:10px;flex-wrap:wrap}
.imp-vote-pass .imp-primary{max-width:100%;overflow-wrap:anywhere}
.imp-ballot-envelope{position:relative;width:250px;height:167px;margin:40px auto;background:#dbc292;box-shadow:7px 9px 0 #35453521;transform:rotate(2deg);border:1px solid #a08452;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
.imp-ballot-envelope:before{content:'';position:absolute;inset:0;background:linear-gradient(30deg,transparent 49.4%,#a78c604a 50%,transparent 50.6%),linear-gradient(-30deg,transparent 49.4%,#a78c604a 50%,transparent 50.6%);pointer-events:none}
.imp-ballot-envelope>svg{width:78px;height:50px;fill:#243c49}.imp-ballot-envelope .imp-eye{fill:#dbc292}
.imp-ballot-envelope>span:not(.imp-seal){font-size:11px;font-weight:700;letter-spacing:.14em}
.imp-ballot-envelope .imp-seal{position:absolute;right:15px;bottom:18px;width:25px;height:25px;font-size:14px}
.imp-footnote{font-size:12px;line-height:1.5;color:#526151;margin-top:20px}
.imp-vote-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:25px 0}
.imp-choice{display:flex;justify-content:flex-start;gap:12px;border:1px solid #9b9f8d;border-bottom-width:3px;background:#f7edd8;color:#203843;text-align:left;min-height:77px;padding:8px 12px;overflow-wrap:anywhere}
.imp-choice .imp-portrait{width:43px;height:51px}
.imp-choice>span:not(.imp-portrait){min-width:0}
.imp-choice[aria-pressed=true]{border-color:#294f51;background:#c6d5bc;box-shadow:0 0 0 2px #294f51}
.imp-choice-check{margin-left:auto;color:#31574e;opacity:0}.imp-choice[aria-pressed=true] .imp-choice-check{opacity:1}
.imp-verdict-symbol{width:120px;height:115px;display:grid;place-items:center;margin:24px auto;font:100px Display,Arial;color:#af573b}.imp-verdict-symbol>svg{width:120px;fill:#263f4e}.imp-verdict-symbol .imp-eye{fill:#e9dfc9}.imp-verdict-symbol .imp-portrait{width:100px;height:115px}
.imp-vote-totals{display:flex;justify-content:center;flex-wrap:wrap;gap:9px}.imp-vote-totals span{display:flex;gap:13px;padding:8px 12px;border:1px solid #aaa487;font-size:13px}.imp-vote-totals b{color:#a6472d}
.imp-ballots,.imp-scoreboard{margin:19px auto;max-width:440px;text-align:left;font-size:12px}
.imp-ballots summary,.imp-scoreboard summary{cursor:pointer;min-height:44px;padding:13px 0;border-block:1px solid #5e776337;font-weight:700}
.imp-ballots ul,.imp-scoreboard ol{padding:0;list-style:none;margin:8px 0}.imp-ballots li,.imp-scoreboard li{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px dashed #929e824a;overflow-wrap:anywhere}.imp-ballots li>span{flex:1}.imp-ballots i{font-style:normal}.imp-ballots strong{flex:1;text-align:right}
.imp-scoreboard summary span{float:right;font-size:10px;font-weight:400;color:#587057}.imp-scoreboard li{justify-content:space-between}
.imp-result-view{max-width:740px;margin:auto;text-align:center}
.imp-result-art{width:min(100%,400px);aspect-ratio:2.1;margin:22px auto 0;transform:rotate(-1deg);border:4px solid #fff4db;box-shadow:4px 5px 0 #2a403d21;overflow:hidden}.imp-result-art img{width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.imp-word-answer{padding:20px 0 10px}.imp-word-answer>span{font-size:9px;letter-spacing:.13em;color:#9f6037;font-weight:700}.imp-word-answer strong{display:block;font:clamp(30px,5vw,48px)/1.1 Display,Arial;margin:6px 0;overflow-wrap:anywhere}.imp-word-answer small{font-size:11px;color:#536850}
.imp-spy-list{font-size:14px;line-height:1.6;margin:10px 0}.imp-spy-list>span{display:block;font-size:9px;font-weight:700;letter-spacing:.13em;color:#a24e37}
.imp-result-actions{display:flex;flex-direction:column;gap:5px;max-width:320px;margin:20px auto 0}
.imp-reset-confirm{position:relative;padding:16px 22px;background:#f4d6af;border-bottom:1px solid #a36241;text-align:center;z-index:5}.imp-reset-confirm p{font-size:14px;margin:0 0 10px}.imp-reset-confirm button{margin:4px}
@media(max-width:760px){
 #game-screen-impostor .play-screen{padding:5px max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left))}
 .impostor-game{border-radius:15px}
 .imp-topline{padding:8px 16px;font-size:8px;min-height:39px}.imp-topline b{margin-left:6px;font-size:8px}
 .imp-content{padding:19px 17px 25px}.imp-setup{display:block}.imp-intro{position:relative;top:auto;display:grid;grid-template-columns:100px minmax(0,1fr);gap:16px;align-items:center;padding:0 0 20px}.imp-intro-art{aspect-ratio:1;border-width:3px;box-shadow:3px 5px 0 #1c364228}.imp-intro-art img{object-position:50% 35%}.imp-art-stamp{display:none}.imp-intro-copy{padding:0}.imp-intro h1{font-size:clamp(32px,8.2vw,50px)}.imp-intro-copy>p:not(.imp-eyebrow){font-size:12px;margin:7px 0 10px}.imp-intro-copy .imp-eyebrow{font-size:8px;letter-spacing:.05em;margin-bottom:5px}.imp-facts{font-size:7px;gap:5px;letter-spacing:0}
 .imp-config-top{margin:4px 0 16px}.imp-config h2{font-size:26px}.imp-config-top .imp-seal{width:28px;height:28px;font-size:16px;outline-offset:2px;border-width:1px}.imp-counts{gap:22px;margin-bottom:13px}.imp-counter>div{justify-content:space-between;gap:6px}.imp-counter output{font-size:27px;min-width:28px}.imp-counter>span{font-size:11px;margin-bottom:8px}.imp-counter{padding-bottom:11px}.imp-names{gap:9px}.imp-name{gap:5px;padding-inline:7px}.imp-name input{font-size:16px}.imp-name>span{font-size:12px}.imp-config-note{font-size:11px;margin-top:12px}.imp-button{font-size:12px!important;padding:12px 16px;gap:8px}.imp-step{font-size:24px!important;padding:0}.imp-text{font-size:11px!important;padding:8px 3px}.imp-rules{font-size:12px;margin-top:10px}.imp-start{margin-top:12px}.imp-page-heading h2{font-size:31px}.imp-eyebrow{font-size:9px}.imp-note{font-size:12px;margin-top:8px}.imp-progress{margin:12px 0 18px}.imp-secret{min-height:225px;max-height:265px}.imp-private-controls{margin-top:18px}.imp-private-controls .imp-primary{margin-top:3px}.imp-card-back-name{font-size:24px}.imp-secret-copy strong{font-size:28px}.imp-secret-copy p{font-size:11px}.imp-table-view .imp-primary{width:100%}.imp-starter{gap:14px;margin:20px 0}.imp-starter strong{font-size:29px;max-width:210px}.imp-starter p{font-size:11px}.imp-category{margin:19px auto}.imp-secondary-actions{gap:0;justify-content:space-around}.imp-player-chips>span{font-size:11px;padding:4px 8px}.imp-ballot-envelope{margin:30px auto}.imp-vote-options{gap:9px;margin:19px 0}.imp-choice{padding:8px;gap:7px;min-height:72px;font-size:12px!important}.imp-choice .imp-portrait{width:34px;height:43px}.imp-choice-check{display:none}.imp-vote-view>.imp-primary{width:100%}.imp-result-art{margin-top:15px}.imp-word-answer{padding-top:17px}.imp-result-actions{margin-top:15px}.imp-scoreboard,.imp-ballots{font-size:11px}
}
@media(max-width:360px){.imp-intro{grid-template-columns:82px minmax(0,1fr);gap:12px}.imp-content{padding-inline:13px}.imp-intro h1{font-size:32px}.imp-facts{flex-wrap:wrap;font-size:7px}.imp-counts{gap:17px}.imp-counter>div{gap:2px}.imp-page-heading h2{font-size:28px}.imp-secret{min-height:215px}.imp-secret-copy strong{font-size:25px}.imp-config h2{font-size:23px}.imp-private-controls{margin-top:16px}}
@media(min-width:761px) and (max-height:760px){.imp-content{padding:22px}.imp-intro-art{max-height:285px}.imp-intro-copy{padding-top:23px}.imp-intro h1{font-size:62px}.imp-config-top{margin-bottom:16px}.imp-private-view .imp-page-heading{margin-bottom:10px}.imp-private-view .imp-note{margin-top:5px}.imp-progress{margin:8px 0 13px}.imp-secret{min-height:200px;aspect-ratio:1.6}.imp-private-controls{margin-top:17px}.imp-private-view .imp-page-heading h2{font-size:34px}}
@media(prefers-reduced-motion:reduce){.imp-cover-image,.imp-button{transition:none}}

/* v26: a midnight game room, with gold props and warm character portraits. */
.impostor-game{--imp-ink:#112b3b;--imp-gold:#efc475;color:#ffefd2;background:#0d2434;border-color:#486479}
.imp-shell{position:relative;isolation:isolate;background:radial-gradient(ellipse at 50% 20%,#33596875,transparent 63%),repeating-linear-gradient(90deg,#6b8e9607 0 1px,transparent 1px 54px),#102737;overflow:hidden}
.imp-shell:before,.imp-shell:after{content:'?';position:absolute;font:360px/1 Display,Arial;color:#f6d99304;z-index:-1;pointer-events:none;transform:rotate(-20deg);left:-80px;top:160px}.imp-shell:after{left:auto;right:-45px;top:80px;transform:rotate(18deg);font-size:480px}
.imp-topline{border-color:#d6c29a21;color:#c3c4b6}.imp-topline b{color:#eac27f}.imp-top-actions{display:flex;align-items:center;gap:12px}.imp-top-actions .imp-sound{border:1px solid #d5c3a83d;background:#1e3e50;color:#e8d5ae;width:36px;height:32px;min-height:32px;padding:0;font-size:18px!important}
.imp-topline .imp-text{color:#d4cbb8}
.imp-primary{background:#efc475;color:#152c37;box-shadow:0 4px 0 #967039}.imp-primary:active{box-shadow:0 2px 0 #967039}.imp-secondary{background:#24495b;color:#f7e4c0;border-color:#8fa6a25c}.imp-text{color:#c1d1cf}.imp-note{color:#c2cfce}.imp-eyebrow{color:#d5b575}.impostor-game :focus-visible{outline-color:#fff0ad}
.imp-content{animation:imp-arrive .28s ease-out both}
.imp-config{color:#172f3e;background:#f5e8cd;padding:25px;border-radius:10px;box-shadow:6px 8px 0 #05172580;transform:rotate(.6deg)}.imp-config .imp-primary{background:#193b4a;color:#fff0cf;box-shadow:0 4px 0 #071d2a}.imp-config .imp-text,.imp-config .imp-rules{color:#344c50}.imp-config .imp-eyebrow{color:#806033}.imp-config .imp-seal{color:#aa4e39}.imp-intro-art{border-color:#e7c88c;outline:0;box-shadow:8px 10px 0 #061722}.imp-intro-copy>p:not(.imp-eyebrow){color:#cdd6d0}.imp-title-dot{color:#edab52}.imp-facts{color:#e6c18c}.imp-rules{color:#c5d1ca}
.imp-page-heading h2{color:#fff0cf;text-shadow:0 3px 0 #071d2a}.imp-page-heading{margin-bottom:23px}
.imp-private-view{padding-top:6px}.imp-secret-wrap{transform:rotate(-2deg);max-width:385px;transition:transform .2s}.imp-secret-wrap:has(.is-revealed){transform:rotate(0)}.imp-secret{aspect-ratio:1.5;min-height:235px;max-height:none;background:#153443;border-color:#e6c27c;box-shadow:7px 9px 0 #04162480}
.imp-card-back{inset:11px;border:1px solid #d6b8788c;background:repeating-radial-gradient(ellipse at 50% 52%,transparent 0 6px,#a6beaf0b 7px 8px);overflow:hidden;gap:24px}
.imp-card-back-name{position:absolute;left:16px;top:15px;font:10px Body,Arial;letter-spacing:.13em;margin:0;color:#e2c894}
.imp-classified{position:relative;inset:auto;font:clamp(33px,6vw,45px)/1 Display,Arial;border-block:3px solid #e7c381;padding:7px 8px 5px;letter-spacing:.015em;transform:rotate(-7deg);z-index:1;margin-top:20px}
.imp-card-fingerprint{position:absolute;right:20px;bottom:-18px;font:160px Display,Arial;color:#e6ca8b09;transform:rotate(13deg)}
.imp-card-back .imp-seal{left:20px;bottom:20px}.imp-card-front{grid-template-rows:56% 1fr;background:#f9e7bf}.imp-card-front>img{object-position:50% 40%}.imp-secret-copy{gap:7px}.imp-secret-copy strong{font-size:34px}.imp-private-controls{max-width:385px;gap:12px;margin-top:25px}.imp-hold{background:#1d495a;border:1px solid #a5c7c34d;color:#f6e0b4;box-shadow:0 3px 0 #071a27}.imp-hold>svg{fill:none;stroke:currentColor;stroke-width:1.6;width:23px;height:25px}.imp-card-navigation{display:flex;gap:10px}.imp-card-navigation>.imp-primary{flex:1;margin:0}.imp-card-navigation>.imp-secondary{width:50px;font-size:28px!important;padding:5px}
.imp-wheel-view,.imp-category-view{text-align:center;max-width:650px;margin:auto}.imp-wheel-stage{display:flex;align-items:center;justify-content:center;gap:30px;margin:10px auto 25px}.imp-wheel-wrap{position:relative;width:min(60vw,325px);flex-shrink:0;filter:drop-shadow(0 12px 12px #04111d80)}.imp-wheel{display:block;width:100%;height:auto;font-family:Body,Arial;font-weight:700;will-change:transform}.imp-wheel-pointer{position:absolute;left:50%;top:0;transform:translate(-50%,-20%);width:25px;height:36px;clip-path:polygon(0 0,100% 0,50% 100%);background:#fff0c4;z-index:2;filter:drop-shadow(0 3px 2px #0008)}.imp-wheel-result{width:180px;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.imp-wheel-result>span{font:15px/1.4 Display,Arial;color:#b3c7c7;letter-spacing:.1em;max-width:100px}.imp-wheel-result .imp-portrait{width:83px;height:105px;animation:imp-winner .6s cubic-bezier(.2,.9,.3,1.3) both}.imp-wheel-result strong{font:30px/1.1 Display,Arial;color:#efc475;overflow-wrap:anywhere;max-width:100%}
.imp-category-dossier{position:relative;width:300px;max-width:90%;height:215px;margin:40px auto 30px;background:#d8b572;color:#183646;transform:rotate(-4deg);border-radius:4px 13px 8px 8px;border:1px solid #f0d292;box-shadow:7px 8px 0 #03172488;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px}.imp-dossier-tab{position:absolute;top:-24px;left:-1px;background:#d8b572;width:89px;height:28px;border-radius:7px 12px 0 0;text-align:left;padding:7px 14px;font:12px Body,Arial;letter-spacing:.1em}.imp-category-dossier>span:not(.imp-dossier-tab){font:10px Body,Arial;letter-spacing:.14em;font-weight:700}.imp-category-dossier>strong{font:70px/1.1 Display,Arial;overflow-wrap:anywhere;max-width:90%}.imp-category-dossier.is-open>strong{font-size:35px;animation:imp-stamp .28s ease-out both}.imp-category-dossier>i{position:absolute;right:18px;bottom:22px;transform:rotate(11deg);font-style:normal}.imp-category-dossier .imp-seal{width:26px;height:26px;font-size:14px;color:#8c3c2a}.imp-category-actions{display:flex;justify-content:center;gap:12px}.imp-category-actions>.imp-button{min-width:115px}
.imp-countdown-view{min-height:460px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.imp-countdown-number{font:clamp(80px,17vw,160px)/1 Display,Arial;color:#f3c06b;text-shadow:5px 6px 0 #843e32;animation:imp-count .7s cubic-bezier(.16,.8,.2,1) both;transform:rotate(-5deg)}.imp-countdown-faces{display:flex;align-items:center;margin-top:35px;gap:20px}.imp-countdown-faces .imp-portrait{width:66px;height:82px}.imp-countdown-faces .imp-portrait:nth-child(2){transform:translateY(-15px)}
.imp-family-clock{position:relative;width:290px;height:275px;margin:10px auto 0}.imp-clock-dial{position:absolute;width:210px;height:210px;left:40px;top:27px;border:9px solid #e3bf78;border-radius:50%;background:radial-gradient(circle,#315366,#132d40 68%);box-shadow:0 0 0 3px #6b5136,0 0 0 9px #ddb37319,0 12px 24px #03132188}.imp-clock-ticks{position:absolute;inset:9px;border-radius:50%;background:repeating-conic-gradient(from -1deg,#ddc28b 0deg 2deg,transparent 2deg 30deg);mask:radial-gradient(circle,transparent 61%,#000 62%)}.imp-clock-word{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);font:29px Display,Arial;color:#b7b69b5c}.imp-clock-hand{position:absolute;left:calc(50% - 3px);bottom:50%;width:6px;height:70px;background:#f8ce7d;border-radius:5px;transform-origin:50% 100%;animation:imp-clock 8s linear infinite;box-shadow:0 0 10px #f8ce7d33}.imp-clock-pin{position:absolute;left:calc(50% - 7px);top:calc(50% - 7px);width:14px;height:14px;background:#ed825e;border:3px solid #ffdfa8;border-radius:50%}.imp-clock-face{position:absolute;z-index:2;filter:drop-shadow(0 4px 3px #061827);animation:imp-bob 2.4s ease-in-out infinite alternate}.imp-clock-face .imp-portrait{width:71px;height:89px}.imp-clock-face-0{left:0;top:120px;transform:rotate(-15deg);animation-delay:-.6s}.imp-clock-face-1{left:110px;top:-3px;animation-delay:-1.6s}.imp-clock-face-2{right:0;top:120px;animation-delay:-1.1s}.imp-clock-face-1 .imp-portrait{width:63px}
.imp-now-playing{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin:0 auto 15px}.imp-now-playing>span{font-size:10px;letter-spacing:.12em;color:#b5c6c5}.imp-now-playing>strong{font:28px/1.05 Display,Arial;color:#f0c477;max-width:100%;overflow-wrap:anywhere}.imp-category-reminder{display:inline-block;border:1px dashed #bf9c5e77;color:#edd299;padding:6px 15px;font-size:12px;margin:0 auto 13px;transform:rotate(-2deg)}.imp-player-chips{margin-bottom:24px}.imp-player-chips>span{background:#244252;border-color:#647e8263;color:#d3ddd3}.imp-live-view>.imp-primary{min-width:290px}
.imp-people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:25px 0}.imp-person{display:flex;flex-direction:column;position:relative;overflow:visible;border:1px solid #88908d66;border-bottom:4px solid #081e2c;border-radius:9px;background:#234553;color:#f7e4bf;min-width:0;padding:12px 8px;gap:8px;transform:rotate(-2deg);min-height:165px}.imp-person:nth-child(3n+2){transform:rotate(2deg);background:#3c4e50}.imp-person:nth-child(3n){background:#334753}.imp-person:disabled{opacity:.6}.imp-person-art{position:relative;display:grid;place-items:center;width:100%;height:112px}.imp-person .imp-portrait{width:85px;height:109px;filter:drop-shadow(1px 5px 2px #0c202b88);stroke:none}.imp-person-name{font:19px/1.1 Display,Arial!important;overflow-wrap:anywhere;max-width:100%;position:relative}.imp-person[aria-pressed=true]{border-color:#e9ba65;box-shadow:0 0 0 2px #d5a34e,0 0 24px #b94e3a36;transform:rotate(0) translateY(-4px);background:#5d4b3c}.imp-person[aria-pressed=true] .imp-portrait{animation:imp-hit .3s ease-out}.imp-target{position:absolute;width:91px;height:91px;left:50%;top:50%;border:2px solid #f6b15e;border-radius:50%;transform:translate(-50%,-50%);opacity:0;pointer-events:none}.imp-target:before,.imp-target:after{content:'';position:absolute;background:#f6b15e;left:50%;top:-8px;width:2px;height:103px;transform:translateX(-50%);mask:linear-gradient(#000 0 18%,transparent 18% 82%,#000 82%)}.imp-target:after{transform:translateX(-50%) rotate(90deg)}.imp-person[aria-pressed=true] .imp-target{opacity:1;animation:imp-lock .3s ease-out}.imp-voted{position:absolute;right:8px;top:8px;background:#e9c274;color:#173b47;border:2px solid #fce6b2;border-radius:50%;width:29px;height:29px;display:grid;place-items:center}
.imp-vote-view{position:relative;max-width:690px}.imp-vote-view>.imp-text{display:block;margin:10px auto 0}.imp-vote-view .imp-eyebrow{font:25px/1.1 Display,Arial;color:#edc27c;letter-spacing:0;overflow-wrap:anywhere}.imp-vote-locked{position:absolute;inset:0;z-index:3;background:#0a263be6;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:30px;backdrop-filter:blur(3px)}.imp-vote-locked[hidden]{display:none}.imp-vote-locked>span{border:4px solid #e0c483;padding:14px 15px;font:36px Display,Arial;transform:rotate(-9deg);animation:imp-stamp .25s both;color:#e5c689}
.imp-verdict-portrait{position:relative;width:200px;height:220px;margin:35px auto 25px;display:grid;place-items:center}.imp-verdict-portrait>.imp-portrait{width:142px;height:190px}.imp-verdict-portrait>strong{font:180px/1 Display,Arial;color:#eec078}.imp-verdict-portrait>span:not(.imp-player-badge){position:absolute;bottom:0;left:50%;transform:translateX(-50%) rotate(-9deg);font:27px Display,Arial;background:#b94932;color:#fff0d2;border:2px solid #ffcb85;padding:8px 17px;white-space:nowrap;animation:imp-stamp .3s both}.imp-table-view>.imp-note{margin-bottom:20px}
.imp-result-view{position:relative;max-width:700px}.imp-result-view .imp-page-heading{position:relative;z-index:2;max-width:600px;margin-bottom:0}.imp-result-view .imp-page-heading h2{font-size:clamp(30px,4vw,46px);color:#f8d58b}.imp-result-art{position:relative;width:min(100%,520px);aspect-ratio:2.25;margin:4px auto 0;transform:none;border:0;box-shadow:none;overflow:hidden;mask-image:linear-gradient(transparent,#000 9% 82%,transparent)}.imp-result-art img,.imp-result-art video{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 43%}.imp-word-answer{position:relative;margin-top:-2px;padding:0 0 6px}.imp-word-answer>span{color:#a9c0bf}.imp-word-answer strong{font-size:clamp(30px,5vw,46px);color:#ffe3ab;margin-bottom:0}.imp-spy-list{margin:7px 0;color:#e8dabc;font-size:14px}.imp-spy-list>span{color:#d7a266}.imp-scoreboard{margin:12px auto}.imp-scoreboard summary{border-color:#acc0b633}.imp-scoreboard summary span{color:#b9c7bb}.imp-scoreboard li{border-color:#a7baa338}.imp-result-actions{margin-top:13px}.imp-confetti{position:absolute;inset:-10px -30px 0;overflow:hidden;pointer-events:none;z-index:2}.imp-confetti>i{position:absolute;top:-5%;left:var(--x);width:7px;height:12px;background:var(--color);animation:imp-confetti 3.6s linear var(--delay) 3;animation-fill-mode:both;opacity:0}.imp-reset-confirm{color:#173442}
@keyframes imp-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes imp-winner{from{transform:scale(.45) rotate(-20deg);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes imp-stamp{from{scale:1.5;opacity:0}to{scale:1;opacity:1}}
@keyframes imp-count{from{scale:1.7;opacity:0}25%,80%{scale:1;opacity:1}to{scale:.9;opacity:1}}
@keyframes imp-clock{to{transform:rotate(360deg)}}
@keyframes imp-bob{from{translate:0 -4px;rotate:-4deg}to{translate:0 4px;rotate:4deg}}
@keyframes imp-hit{0%,100%{transform:none}30%{transform:rotate(-9deg) scale(.93)}65%{transform:rotate(7deg)}}
@keyframes imp-lock{from{scale:1.4;opacity:0}to{scale:1;opacity:1}}
@keyframes imp-confetti{0%{opacity:0;transform:translateY(0) rotate(0)}10%{opacity:.85}85%{opacity:.6}100%{opacity:0;transform:translateY(600px) rotate(var(--turn))}}
.impostor-game:not(.is-expanded) *,.impostor-game.imp-paused *{animation-play-state:paused!important}
@media(hover:hover) and (pointer:fine){.imp-person:not(:disabled):hover{border-color:#d9b477;translate:0 -3px}.imp-primary:not(:disabled):hover{background:#ffe0a4}}
@media(max-width:760px){
 .imp-content{padding:20px 15px 25px}.imp-config{padding:18px 14px;transform:none}.imp-config h2{font-size:25px}.imp-config .imp-counts{gap:18px}.imp-config .imp-config-note{font-size:11px}.imp-intro{padding-bottom:23px}.imp-topline{padding-inline:12px;gap:5px}.imp-topline>span{font-size:7px;letter-spacing:.04em}.imp-top-actions{gap:6px}.imp-top-actions .imp-sound{width:32px}.imp-topline .imp-text{font-size:10px!important}.imp-private-view{padding-top:8px}.imp-private-view .imp-page-heading h2{font-size:32px}.imp-secret{min-height:220px;aspect-ratio:1.45}.imp-card-back-name{font-size:9px}.imp-classified{font-size:35px}.imp-private-controls{margin-top:23px;gap:13px}.imp-secret-copy strong{font-size:29px}.imp-wheel-stage{display:block;margin:0 auto 15px}.imp-wheel-wrap{width:min(100%,290px);margin:auto}.imp-wheel-result{width:100%;min-height:90px;flex-direction:row;gap:15px}.imp-wheel-result .imp-portrait{width:48px;height:67px}.imp-wheel-result strong{font-size:27px;max-width:230px}.imp-wheel-result>span{max-width:none;font-size:13px}.imp-wheel-view .imp-page-heading h2{font-size:29px}.imp-category-dossier{width:275px;height:220px;margin-top:43px}.imp-countdown-view{min-height:440px}.imp-countdown-number{font-size:102px}.imp-countdown-faces .imp-portrait{width:61px;height:78px}.imp-family-clock{width:260px;height:258px;margin-top:12px}.imp-clock-dial{width:190px;height:190px;left:35px;top:28px}.imp-clock-face .imp-portrait{width:65px;height:83px}.imp-clock-face-1{left:98px;top:0}.imp-clock-face-0,.imp-clock-face-2{top:122px}.imp-clock-hand{height:61px}.imp-live-view>.imp-primary{min-width:0}.imp-people-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:25px 0}.imp-person{min-height:156px;padding:10px 6px}.imp-person-art{height:100px}.imp-person .imp-portrait{width:76px;height:99px}.imp-person-name{font-size:18px!important}.imp-vote-view .imp-eyebrow{font-size:22px}.imp-vote-locked>span{font-size:29px}.imp-result-art{aspect-ratio:1.65;margin-top:8px}.imp-result-view .imp-page-heading h2{font-size:31px}.imp-result-actions{margin-top:12px}.imp-now-playing strong{font-size:26px}.imp-now-playing{gap:8px}.imp-result-view .imp-word-answer{padding-top:0}.imp-result-view .imp-scoreboard{font-size:12px}.imp-classified{letter-spacing:0}
}
@media(max-width:360px){.imp-intro{grid-template-columns:78px 1fr;gap:10px}.imp-intro h1{font-size:29px}.imp-config{padding:16px 11px}.imp-content{padding-inline:12px}.imp-classified{font-size:30px}.imp-secret{min-height:213px}.imp-wheel-wrap{width:245px}.imp-page-heading h2{font-size:28px}.imp-topline>span{max-width:115px}.imp-topline b{display:block;margin:2px 0 0}.imp-category-dossier{width:240px}.imp-countdown-number{font-size:85px}}
@media(min-width:761px) and (max-height:760px){.imp-content{padding:22px 28px}.imp-secret{min-height:213px;aspect-ratio:1.75}.imp-private-controls{margin-top:18px;gap:10px}.imp-family-clock{scale:.85;margin-block:-12px -26px}.imp-live-view .imp-page-heading{margin-bottom:8px}.imp-player-chips{margin-bottom:18px}.imp-wheel-wrap{width:280px}.imp-category-dossier{height:200px;margin-block:36px 25px}.imp-countdown-view{min-height:400px}.imp-result-art{width:410px;aspect-ratio:2.6}.imp-result-view .imp-page-heading h2{font-size:35px}.imp-word-answer strong{font-size:35px}.imp-result-actions{margin-top:7px}.imp-result-actions .imp-button{min-height:43px}.imp-scoreboard{margin-block:7px}.imp-config{padding:22px}}
@media(prefers-reduced-motion:reduce){.impostor-game *{animation:none!important;transition:none!important}.imp-confetti{display:none}}
.imp-wheel g>path{stroke:#102938;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter}
.imp-wheel g:nth-of-type(4n+1)>path{fill:#e6b957}.imp-wheel g:nth-of-type(4n+2)>path{fill:#234b5c}.imp-wheel g:nth-of-type(4n+3)>path{fill:#b94e3a}.imp-wheel g:nth-of-type(4n)>path{fill:#648675}
.imp-result-art video{position:absolute;inset:0;opacity:0}.imp-result-art.has-video video{opacity:1}.imp-result-art.has-video img{visibility:hidden}.imp-celebration-toggle{position:absolute;right:13px;bottom:30px;z-index:3;border:1px solid #edd09e80;border-radius:50%;background:#142a3be6;color:#ffe2a4;width:38px;height:38px;cursor:pointer;font-size:15px!important;display:grid;place-items:center}.imp-celebration-toggle[hidden]{display:none}


/* v27: one clear interaction per step, with tactile controls and centred casting. */
.imp-hold{justify-content:center;gap:14px;min-height:62px;padding:9px 18px;border:1px solid #e5d4aa;border-radius:12px;background:#f1e4c6;color:#183646;box-shadow:0 4px 0 #998359;font:20px/1.1 Display,Arial!important;letter-spacing:.025em;transition:background .16s,box-shadow .16s,translate .16s}
.imp-hold-icon{display:grid;place-items:center;width:37px;height:37px;flex:none;border:1px solid #17384738;border-radius:50%;background:#ddcba680}
.imp-hold .imp-hold-icon svg{width:29px;height:29px;fill:none;stroke:#244552;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.imp-hold.is-held{background:#cbe0d4;box-shadow:0 1px 0 #78998c;translate:0 3px;border-color:#b0cbbc}
.imp-hold.is-held .imp-hold-icon{background:#b6cec0}
.imp-return{color:#e7d7b6;background:#1a3545;border:1px solid #bca47780;border-radius:100px;min-height:44px;padding:10px 17px;gap:9px;box-shadow:0 2px 0 #071b27;font-size:11px!important;letter-spacing:.06em;text-decoration:none}
.imp-return svg{width:20px;height:20px;stroke-width:1.7}
.imp-return>span:empty{display:none}
.imp-card-navigation>.imp-return{width:52px;padding:10px;border-radius:12px}
.imp-card-navigation>.imp-return svg{width:24px;height:24px}
.imp-vote-view>.imp-return{display:flex;width:max-content;margin:17px auto 0}
#game-screen-impostor .play-screen-close{background:#173343;border:1px solid #bca47770;color:#ebdfc4;box-shadow:0 2px 0 #071b27;gap:9px}
#game-screen-impostor .play-screen-close svg{width:22px;height:22px;border-radius:50%;background:#d5bd8530;padding:3px;box-sizing:content-box}
.imp-wheel-stage{flex-direction:column;gap:16px;margin-bottom:25px}
.imp-wheel-result[hidden]{display:none}
.imp-wheel-result{width:100%;min-height:0;flex-direction:row;gap:15px}
.imp-wheel-result .imp-portrait{width:48px;height:65px}
.imp-wheel-result strong{max-width:75%}
.imp-category-actions{flex-wrap:wrap}
.imp-category-actions>.imp-button{font-size:12px!important;min-width:0}
.imp-category-help{max-width:390px;margin:20px auto 0;font-size:13px;line-height:1.6;color:#c7d4cf}
.imp-category-help summary{list-style:none;cursor:pointer;display:flex;gap:8px;align-items:center;justify-content:center;min-height:44px;color:#e6c789}
.imp-category-help summary::-webkit-details-marker{display:none}
.imp-category-help summary>span{display:grid;place-items:center;flex:none;width:21px;height:21px;border:1px solid #cbb17b88;border-radius:50%;font:14px Display,Arial}
.imp-category-help[open] summary>span{background:#d5b77d;color:#183646}
.imp-category-help p{margin:8px 0 0;padding:14px 17px;background:#264351;border-left:2px solid #ccac70;border-radius:0 8px 8px 0;text-align:left}
.imp-people-grid{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:18px}
.imp-person{flex:0 1 calc((100% - 36px)/3);max-width:210px;align-items:center}
.imp-person-name{text-align:center;width:100%}
.imp-target{transition:opacity .15s,scale .18s}
[data-imp=choose-vote]:focus-visible .imp-target{opacity:1;animation:imp-lock .3s ease-out}
@media(hover:hover) and (pointer:fine){
 [data-imp=choose-vote]:not(:disabled):hover .imp-target{opacity:1;animation:imp-lock .3s ease-out}
 .imp-return:not(:disabled):hover{border-color:#e5c88e;background:#2b4b5b;translate:0 -1px}
 .imp-hold:not(.is-held):hover{background:#fff0d3}
}
#game-screen-impostor .play-screen{position:relative;isolation:isolate}
.imp-celebration-rain{position:absolute;inset:0;z-index:8;overflow:hidden;pointer-events:none;contain:strict}
.imp-celebration-rain>i{position:absolute;top:-22px;left:var(--x);width:var(--w);height:var(--h);background:var(--color);opacity:0;animation:imp-rain var(--duration) linear var(--delay) 2 both}
.imp-celebration-rain>i:nth-child(3n){border-radius:50%}
.imp-celebration-rain>i:nth-child(5n){clip-path:polygon(50% 0,62% 36%,100% 50%,62% 64%,50% 100%,38% 64%,0 50%,38% 36%);width:14px;height:14px}
.imp-effects-paused .imp-celebration-rain>i{animation-play-state:paused}
@keyframes imp-rain{0%{opacity:0;transform:translate3d(0,-20px,0) rotate(0)}5%,78%{opacity:.95}100%{opacity:0;transform:translate3d(var(--drift),calc(100dvh + 45px),0) rotate(var(--turn))}}
@media(max-width:760px){
 .imp-person{flex-basis:calc((100% - 14px)/2);max-width:190px}.imp-people-grid{gap:14px}
 .imp-hold{font-size:18px!important;min-height:58px;padding-inline:12px;gap:10px}
 .imp-hold-icon{width:33px;height:33px}.imp-hold .imp-hold-icon svg{width:26px;height:26px}
 .imp-wheel-stage{display:flex}.imp-wheel-result{min-height:0}
 .imp-category-actions{gap:9px}.imp-category-actions>.imp-button{padding-inline:13px;font-size:11px!important}
 .imp-category-help{font-size:12px;margin-top:13px}
 .games-library:has([data-game=impostor]) .game-card-name{font-size:clamp(21px,5.8vw,34px);white-space:nowrap}
}
@media(min-width:761px) and (max-height:760px){.imp-wheel-wrap{width:260px}.imp-wheel-stage{gap:12px;margin-bottom:18px}.imp-wheel-result .imp-portrait{height:55px;width:42px}.imp-wheel-result strong{font-size:27px}}
@media(prefers-reduced-motion:reduce){
 .imp-celebration-rain{display:none}
}
.games-library [data-game=family] .game-card-name{position:relative}
.games-library .game-card-name small{position:absolute;left:1px;top:-12px;font:700 10px/1 Body,Arial;letter-spacing:.14em;white-space:nowrap}
.library-future{position:absolute;z-index:1;left:50%;bottom:54px;display:flex;gap:12px;align-items:center;width:max-content;transform:translateX(-50%) rotate(-2deg)}
.library-future .library-controller{width:52px;height:42px;margin:0;flex:none}
.library-future>span{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.library-future b{font:18px/1 Display,Arial;white-space:nowrap}
.library-future small{font:700 9px/1 Body,Arial;letter-spacing:.10em;border:1px solid #393b3088;border-radius:2px;padding:4px 7px;color:#3c463f}
@media(max-width:760px){
 .library-future{bottom:51px;gap:8px}
 .library-future .library-controller{width:35px;height:29px}
 .library-future b{font-size:14px}.library-future>span{gap:4px}.library-future small{font-size:7px;padding:2px 4px}
 .games-library .game-card-name small{top:-9px;font-size:7px;letter-spacing:.12em}
}

/* The secret is the card's main content; art has a separate, fixed space. */
.imp-secret{min-height:250px;aspect-ratio:1.45}
.imp-card-front{grid-template-rows:minmax(0,1fr);text-align:center}
.imp-secret-copy{min-width:0;min-height:0;align-items:center;padding:16px 18px;gap:9px}
.imp-secret-copy>span{font-size:11px;letter-spacing:.1em}
.imp-secret-copy strong{display:block;max-width:100%;font-size:clamp(30px,6vw,42px);line-height:1.06;letter-spacing:-.015em}
.imp-card-art{min-width:0;min-height:0;overflow:hidden;border-top:1px solid #bd9d6480;background:#173847}
.imp-card-art>img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 28%;pointer-events:none}

.imp-wheel-rotor{width:100%;transform-origin:50% 50%;will-change:transform}

/* Personal tokens remain distinct for the whole party, independent of roles. */
.imp-player-badge{position:relative;display:grid;place-items:center;flex:none;width:82px;height:82px;border-radius:50%;background:var(--player-color);color:#152d3c;border:3px solid #f2dfb7;outline:1px solid #183744;box-shadow:0 5px 0 #0c2234,0 9px 13px #03172540;isolation:isolate}
.imp-player-badge:before{content:'';position:absolute;inset:5px;border:1px dashed #19374880;border-radius:50%;pointer-events:none}
.imp-player-badge b{font:36px/1 Display,Arial;letter-spacing:-.025em}
.imp-name .imp-player-badge{width:27px;height:27px;border-width:1px;outline:0;box-shadow:0 2px 0 #172f3e40;margin-right:2px;color:#152d3c}
.imp-name .imp-player-badge:before{inset:3px;border-style:solid;opacity:.35}
.imp-name .imp-player-badge b{font-size:13px}
.imp-private-identity{display:flex;justify-content:center;margin:0 auto 13px}
.imp-private-identity .imp-player-badge{width:40px;height:40px;border-width:2px;box-shadow:0 3px 0 #0c2234}
.imp-private-identity .imp-player-badge b{font-size:18px}
.imp-person[aria-pressed=true] .imp-player-badge{animation:imp-hit .3s ease-out}
.imp-wheel-result .imp-player-badge{width:65px;height:65px}
.imp-wheel-result .imp-player-badge b{font-size:27px}
.imp-verdict-portrait{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px}
.imp-verdict-portrait .imp-player-badge{width:105px;height:105px}
.imp-verdict-portrait .imp-player-badge b{font-size:43px}
.imp-player-chips>span{display:inline-flex;align-items:center;gap:6px}
.imp-chip-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--player-color);flex:none}
.imp-clock-scene{position:relative;width:max-content;max-width:100%;margin:auto}
.imp-clock-toggle{position:absolute;right:0;bottom:16px;width:38px;height:38px;border:1px solid #bda477;border-radius:50%;background:#173547;color:#f7e4bf;display:grid;place-items:center;font-size:14px!important}
/* This gentle game indicator follows the game's explicit play/pause choice.
   Reduced-motion still suppresses decorative bounces and confetti. */
.impostor-game.imp-motion-on .imp-clock-hand{animation:imp-clock 12s linear infinite!important}
.impostor-game:not(.imp-motion-on) .imp-clock-hand,.impostor-game:not(.imp-motion-on) .imp-clock-face{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.impostor-game.imp-motion-on .imp-clock-hand{animation-duration:24s!important}}
.impostor-game:not(.is-expanded) .imp-clock-hand,.impostor-game.imp-paused .imp-clock-hand{animation-play-state:paused!important}
@media(max-width:760px){
 .imp-wheel-result .imp-player-badge{width:44px;height:44px}.imp-wheel-result .imp-player-badge b{font-size:21px}
 .imp-private-view .imp-page-heading{margin-bottom:14px}.imp-private-view{padding-top:0}
}

.imp-wheel-result>.imp-player-badge{color:#152d3c}

#game-screen-impostor .play-screen-name{display:block}
@media(max-width:380px){#game-screen-impostor .play-screen-name{font-size:10px}}
.imp-card-art>img{object-position:50% 12%}

/* A tied final place goes straight to a runoff; there are no eliminations. */
.imp-tied-players{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;margin:30px 0}
.imp-tied-players>div{display:flex;flex:0 1 140px;flex-direction:column;align-items:center;gap:12px;min-width:0}
.imp-tied-players strong{font:23px/1.1 Display,Arial;overflow-wrap:anywhere;max-width:100%}
.imp-tie-view .imp-note{max-width:370px;margin:12px auto 0}
@media(max-width:760px){.imp-tied-players{gap:20px 14px}.imp-tied-players>div{flex-basis:calc((100% - 28px)/3)}.imp-tied-players .imp-player-badge{width:60px;height:60px}.imp-tied-players .imp-player-badge b{font-size:25px}.imp-tied-players strong{font-size:19px}}
.imp-tie-actions{display:flex;flex-direction:column;align-items:center;gap:14px}.imp-tie-actions .imp-primary{width:min(100%,390px)}
