/* Impostor preview. Local assets, readable mobile layout, no decorative video.
 * Red is reserved for this game's identity/reveal; learning cards stay white.
 */
.home-feature-actions.imp-entry-wrap{display:block;width:100%;max-width:860px;margin:24px auto 4px}
.imp-entry.btn{display:flex;align-items:center;gap:18px;width:100%;min-height:120px;padding:23px 26px;text-align:left;border:1px solid #57202c;border-radius:22px;background:#211319;color:#fff;box-shadow:0 10px 26px #3010181a}
.imp-entry:hover{background:#30151e;transform:translateY(-2px)}
.imp-entry-symbol{display:grid;place-items:center;flex-shrink:0;width:62px;height:62px;border:1px solid #a7465b;border-radius:20px;background:#6a2036;color:#ffced9}
.imp-entry-symbol svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.6}
.imp-entry-copy{flex:1;min-width:0}.imp-entry-copy>small{display:block;margin-bottom:7px;color:#e6aaba;font-size:.62rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.imp-entry-copy>strong{font:750 1.7rem/1.1 var(--display);letter-spacing:-.04em}.imp-entry-copy>span{display:block;margin-top:7px;color:#e2d7dc;font-size:.82rem;line-height:1.45}
.imp-preview{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;padding:6px 9px;border:1px solid #d7a6b4;border-radius:8px;background:#fff0f4;color:#7a1d38;font-size:.63rem;font-weight:800;white-space:nowrap}
#impostor[hidden],#impostor [hidden],#impostorConfirm[hidden]{display:none!important}
.imp-shell{width:100%;max-width:860px;margin:auto;text-align:left}
.imp-header{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:26px;flex-wrap:wrap}.imp-header .btn{min-height:44px}.imp-header-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.imp-kicker{margin:0 0 10px;color:#952c49;font-size:.65rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.imp-hero h2{margin:0;font:750 clamp(1.75rem,4vw,2.9rem)/1.1 var(--display);letter-spacing:-.05em}.imp-hero>p:not(.imp-kicker){max-width:650px;color:#5f6871;font-size:.94rem;line-height:1.65}
.imp-note{padding:13px 16px;border:1px solid #e8d4da;border-radius:14px;background:#fff8fa;color:#744152;font-size:.79rem;line-height:1.6}
#impostor[data-room="true"] #impIntro,#impostor[data-room="true"] #impNote,#impostor[data-room="true"] .imp-kicker{display:none}
#impostor[data-room="true"] .imp-hero h2{font-size:clamp(1.4rem,3vw,2rem)}
.imp-setup{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.imp-panel{min-width:0;border:1px solid #dfe3e6;background:#fff;border-radius:22px;padding:22px}.imp-panel h3{margin:0 0 18px;font:750 1.2rem var(--display);letter-spacing:-.04em}
#impostor label,.imp-label{display:block;margin:14px 0 7px;font-size:.8rem;font-weight:750;color:#343c43}
#impostor input,#impostor select{width:100%;min-height:46px;padding:11px 13px;border:1px solid #ccd2d7;border-radius:12px;background:#f8f9fa;color:#182029;font:inherit;font-size:.92rem}
#impCodeInput{text-transform:uppercase;letter-spacing:.2em;font-weight:800}
#impostor .btn{min-height:44px;font-weight:750}#impostor .imp-primary{background:#9b2948;color:white;border:1px solid #821f3a;border-radius:12px}.imp-panel>.btn,.imp-panel form>.btn{margin-top:17px;width:100%}
.imp-help{color:#65717a;font-size:.78rem;line-height:1.65}.imp-rules{margin:20px 0;padding:18px 22px;border:1px solid #e0e4e7;border-radius:18px;background:#f7f8f9}.imp-rules summary{cursor:pointer;min-height:28px;font-weight:800;font-size:.86rem}.imp-rules ol{padding-left:21px;color:#5d6770;font-size:.83rem;line-height:1.8}
.imp-status{min-height:25px;margin:12px 0;color:#586770;font-size:.82rem;line-height:1.55}.imp-status[data-error="true"]{color:#a22343;font-weight:650}
.imp-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.imp-room-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 20px;border:1px solid #e0e3e6;border-radius:18px;background:#f4f5f6;margin:20px 0}.imp-code-label{display:block;font-size:.62rem;font-weight:850;text-transform:uppercase;letter-spacing:.1em;color:#69747b}.imp-code{font-size:1.6rem;font-weight:850;letter-spacing:.15em;color:#222a32;user-select:all}.imp-round-label{font-size:.84rem;font-weight:800}.imp-clock{display:block;min-height:20px;margin-top:6px;color:#64717c;font-size:.78rem;font-variant-numeric:tabular-nums}
.imp-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;list-style:none;margin:16px 0;padding:0}.imp-person{display:grid;justify-items:center;align-content:start;gap:8px;min-width:0;padding:17px 10px;border:1px solid #e1e5e8;border-radius:16px;background:#fafbfc;text-align:center}.imp-person .player-avatar{width:58px;height:58px;flex-shrink:0}.imp-person strong{max-width:100%;font-size:.84rem;overflow-wrap:anywhere}.imp-person small{font-size:.64rem;color:#68747c}
.imp-owner-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.imp-owner-actions .btn{flex:1}.imp-quiet{border:1px solid #d9dfe3;background:#f5f7f8;color:#505e68}
.imp-secret{margin:18px 0;padding:25px;border:1px solid #e0d5da;border-radius:22px;background:#fff;text-align:center}.imp-secret[data-role="impostor"]{border-color:#e7aabd;background:#fff4f7}.imp-secret h3{margin:0 0 10px;font:750 1.3rem var(--display)}.imp-secret[data-role="impostor"] h3{color:#ab2349}.imp-secret-word{margin:18px 0 10px;font:800 clamp(2rem,6vw,3.25rem)/1.2 var(--display);letter-spacing:-.04em;overflow-wrap:anywhere}.imp-secret .btn{margin-top:12px}.imp-clue-label{color:#943651;font-weight:750;font-size:.78rem}.imp-translation{color:#67727a;font-size:.88rem}.imp-secret-tip{font-size:.76rem;color:#66727d;line-height:1.65}
.imp-votes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0}.imp-vote-choice{display:flex;gap:10px;align-items:center;width:100%;min-height:74px;padding:12px;border:1px solid #dce2e6;border-radius:16px;background:#fff;text-align:left;color:#202a32}.imp-vote-choice .player-avatar{width:44px;height:44px;flex-shrink:0}.imp-vote-choice strong{overflow-wrap:anywhere;font-size:.85rem}.imp-vote-choice[aria-pressed="true"]{border:2px solid #a72e50;background:#fff0f5}.imp-vote-choice:disabled{opacity:.5;cursor:default}.imp-vote-progress{color:#67737b;font-size:.8rem;line-height:1.5}
.imp-reveal{position:relative;isolation:isolate;min-height:350px;padding:34px 22px;border:1px solid #912b44;border-radius:26px;background:#8a1e3c;color:white;text-align:center;overflow:hidden}.imp-reveal h3{margin:9px 0;font:750 clamp(1.5rem,4vw,2rem)/1.2 var(--display);letter-spacing:-.035em}.imp-reveal p{color:#ffe6ed;font-size:.91rem;line-height:1.6}.imp-reveal .player-avatar{width:130px;height:130px;margin:18px auto;background:#fff1f5;border:3px solid #ffffffb3}.imp-reveal .imp-reveal-name{display:block;margin:12px 0;font:750 1.8rem var(--display);overflow-wrap:anywhere}.imp-reveal .imp-reveal-word{font-size:1rem}.imp-reveal .imp-reveal-word b{color:#fff;font-size:1.3rem}.imp-reveal small{color:#f7c7d4;font-size:.7rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase}
.imp-mystery{display:grid;place-items:center;width:120px;height:120px;margin:25px auto;border:2px solid #eea2b7;border-radius:50%;background:#61152a;color:#ffd7e3;font:800 4.5rem var(--display)}
.imp-suspense .imp-mystery{animation:impPulse .6s ease-in-out 3}.imp-reveal.is-revealed .imp-reveal-body{animation:impAppear .5s ease-out both}@keyframes impPulse{50%{transform:scale(1.07);box-shadow:0 0 0 15px #ffc4d610}}@keyframes impAppear{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
.imp-earned{margin:18px 0;padding:17px 20px;border:1px solid #d9c779;border-radius:17px;background:#fff9e6;color:#66551e;font-size:.84rem;line-height:1.65}.imp-earned strong{display:block;margin-bottom:4px}.imp-final-label{font-size:.7rem;font-weight:850;color:#87314a;letter-spacing:.08em;text-transform:uppercase}
#impostorConfirm{width:min(440px,calc(100% - 28px));padding:24px;border:1px solid #d9dde1;border-radius:23px;background:#fff;color:#202a32;box-shadow:0 24px 80px #0004}#impostorConfirm::backdrop{background:#11182077}#impostorConfirm h2{font:750 1.35rem var(--display);margin:0 0 12px}#impostorConfirm p{color:#61707b;font-size:.87rem;line-height:1.65}#impostorConfirm .imp-owner-actions{justify-content:flex-end}#impostorConfirm .btn{min-height:44px}.imp-danger{background:#982449!important;color:#fff!important}
.imp-badges-title{margin:22px 0 10px;color:#6b4c58;font-size:.77rem;font-weight:850}.imp-badge-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.imp-badge-grid .achievement-card{min-height:110px}.imp-badge-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f9e3eb;color:#94284a;font-size:1.3rem;font-weight:900}.imp-badge-note{color:#74808a;font-size:.66rem;line-height:1.6}
#impostor :focus-visible,#impostorOpen:focus-visible,#impostorConfirm :focus-visible{outline:3px solid #cd7a91;outline-offset:3px}
@media(max-width:760px){
 .imp-entry-wrap{margin:18px 0 2px}.imp-entry.btn{gap:12px;min-height:108px;padding:17px 15px;border-radius:18px}.imp-entry-symbol{width:44px;height:48px;border-radius:14px}.imp-entry-symbol svg{width:30px}.imp-entry-copy>strong{font-size:1.35rem}.imp-entry-copy>span{font-size:.73rem}.imp-entry-copy>small{font-size:.53rem;letter-spacing:.06em}.imp-entry .imp-preview{padding:5px 7px;font-size:.57rem}
 .imp-header{gap:8px;margin-bottom:20px}.imp-header-actions{gap:7px}.imp-header .btn{padding:9px 13px;font-size:.73rem}.imp-setup{grid-template-columns:1fr;gap:12px}.imp-panel{padding:18px;border-radius:18px}.imp-votes{grid-template-columns:1fr}.imp-people{grid-template-columns:repeat(2,minmax(0,1fr))}.imp-person{padding:13px 8px}.imp-room-meta{padding:14px}.imp-secret{padding:20px 15px}.imp-reveal{padding:25px 17px}.imp-reveal .player-avatar{width:110px;height:110px}.imp-hero>p:not(.imp-kicker){font-size:.85rem}.imp-owner-actions .btn{flex:1 1 130px}
}
@media(prefers-reduced-motion:reduce){.imp-suspense .imp-mystery,.imp-reveal.is-revealed .imp-reveal-body{animation:none!important}.imp-entry:hover{transform:none}}
