:root {
    color-scheme: dark;
    --ink: #10100f;
    --ink-soft: #181816;
    --paper: #f1eddf;
    --paper-muted: #c9c4b5;
    --line: rgba(241, 237, 223, .16);
    --line-strong: rgba(241, 237, 223, .3);
    --acid: #d9ff52;
    --acid-dark: #a8c92e;
    --coral: #ff5b4d;
    --blue: #8fc9ff;
    --shadow: 0 24px 80px rgba(0, 0, 0, .38);
    --radius: 22px;
    --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--ink);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--paper);
    background:
        radial-gradient(circle at 70% 0%, rgba(92, 98, 55, .18), transparent 38rem),
        var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--acid);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 10px;
    left: 10px;
    padding: .7rem 1rem;
    color: var(--ink);
    background: var(--acid);
    transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }

.ambient {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.ambient__orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .14; }
.ambient__orb--one { width: 44rem; height: 44rem; top: 10%; right: -22rem; background: var(--acid); }
.ambient__orb--two { width: 36rem; height: 36rem; bottom: -20rem; left: -16rem; background: var(--coral); }
.ambient__grid {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.site-header {
    width: min(1460px, calc(100% - 48px));
    height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: inherit;
    text-decoration: none;
}

.brand__mark {
    position: relative;
    width: 30px;
    height: 30px;
    border: 1px solid var(--paper);
    border-radius: 50%;
}

.brand__mark span { position: absolute; display: block; width: 13px; height: 19px; top: 5px; border: 1px solid var(--paper); border-radius: 50%; }
.brand__mark span:first-child { left: 4px; }
.brand__mark span:last-child { right: 4px; }
.brand__word { font-weight: 900; font-size: .9rem; letter-spacing: .18em; }
.brand__edition { padding-left: .8rem; border-left: 1px solid var(--line-strong); color: var(--paper-muted); font-size: .66rem; letter-spacing: .14em; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .text-button {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s;
}
.icon-button:hover, .text-button:hover { border-color: var(--paper-muted); background: rgba(255,255,255,.07); }
.icon-button:active, .text-button:active { transform: translateY(1px); }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; }
.text-button { min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sound-off { display: none; }
.icon-button[aria-pressed="false"] .icon--sound-on { display: none; }
.icon-button[aria-pressed="false"] .icon--sound-off { display: block; }

#app { width: min(1460px, calc(100% - 48px)); margin: 0 auto; }

.loading-screen {
    min-height: calc(100vh - 88px);
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 1rem;
    color: var(--paper-muted);
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .16em;
}
.loading-screen__stamp { padding: .5rem .7rem; border: 2px solid var(--coral); color: var(--coral); font-weight: 900; transform: rotate(-4deg); }

.eyebrow {
    margin: 0 0 1rem;
    color: var(--acid);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.landing {
    min-height: calc(100vh - 88px);
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(350px, .72fr);
    align-items: stretch;
    padding: clamp(50px, 7vw, 105px) 0 56px;
}

.landing__copy { position: relative; padding-right: clamp(40px, 7vw, 120px); }
.landing__copy::after {
    content: "PIÈCE À CONVICTION";
    position: absolute;
    top: 0;
    right: 4%;
    padding: .6rem .8rem;
    border: 2px solid rgba(255,91,77,.65);
    color: var(--coral);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .15em;
    transform: rotate(7deg);
}

.landing h1 {
    max-width: 980px;
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(4.2rem, 8.6vw, 9.2rem);
    line-height: .83;
    letter-spacing: -.065em;
}
.landing h1 em { color: var(--acid); font-weight: 400; }
.landing__lede { max-width: 660px; margin: clamp(28px,4vw,52px) 0 0; color: var(--paper-muted); font-size: clamp(1.05rem,1.6vw,1.42rem); line-height: 1.55; }
.landing__lede strong { color: var(--paper); }

.case-stats { display: flex; gap: 34px; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); }
.case-stat span { display: block; color: var(--paper-muted); font-size: .62rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.case-stat strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 1.6rem; font-weight: 400; }

.entry-card {
    align-self: center;
    position: relative;
    padding: clamp(26px, 4vw, 46px);
    color: var(--ink);
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: rotate(.5deg);
}
.entry-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(16,16,15,.18); pointer-events: none; }
.entry-card__index { display: flex; justify-content: space-between; margin: 0 0 30px; color: #716d62; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.entry-card h2 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.entry-card__intro { margin: 0 0 30px; color: #656157; line-height: 1.5; }

.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field label { font-size: .68rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.field input, .field select {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid #b9b4a7;
    border-radius: 0;
    color: var(--ink);
    background: rgba(255,255,255,.36);
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--acid-dark); }
.field input::placeholder { color: #8f8a7e; }

.button {
    min-height: 54px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button--dark { width: 100%; color: var(--paper); background: var(--ink); box-shadow: 0 7px 0 #aaa599; }
.button--dark:hover { box-shadow: 0 9px 0 var(--acid-dark); }
.button--acid { color: var(--ink); background: var(--acid); box-shadow: 0 6px 0 #7d9425; }
.button--acid:hover { box-shadow: 0 8px 0 #7d9425; }
.button--outline { border-color: var(--line-strong); background: transparent; }
.button--outline:hover { border-color: var(--paper); background: rgba(255,255,255,.05); }
.button--danger { color: var(--coral); border-color: rgba(255,91,77,.35); background: transparent; }
.button--small { min-height: 42px; padding: 0 17px; font-size: .78rem; }

.entry-card__divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: #817c70; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.entry-card__divider::before, .entry-card__divider::after { content: ""; flex: 1; height: 1px; background: #c3beb0; }
.demo-button { width: 100%; min-height: 50px; border: 1px solid #aaa599; color: var(--ink); background: transparent; border-radius: 999px; cursor: pointer; font-weight: 800; }
.demo-button:hover { background: #ded9ca; }
.entry-card__note { margin: 17px 0 0; color: #817c70; font-size: .72rem; line-height: 1.4; text-align: center; }

.game-shell { min-height: calc(100vh - 88px); padding: 30px 0 44px; }
.game-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-bottom: 28px; }
.room-badge { display: flex; align-items: center; gap: 13px; }
.room-badge__label { color: var(--paper-muted); font-size: .6rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.room-badge__code { font-family: var(--display); font-size: 1.5rem; letter-spacing: .09em; }
.copy-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; background: transparent; cursor: pointer; }
.copy-button:hover { border-color: var(--acid); color: var(--acid); }
.phase-chip { justify-self: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--paper-muted); font-size: .65rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.phase-chip--live { color: var(--ink); background: var(--coral); border-color: var(--coral); animation: pulse-chip 1.8s ease-in-out infinite; }
.topbar-actions { justify-self: end; display: flex; gap: 10px; }

.lobby-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 24px; }
.panel { position: relative; border: 1px solid var(--line); background: rgba(24,24,22,.82); box-shadow: 0 20px 65px rgba(0,0,0,.2); }
.panel__head { min-height: 76px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel__head h2, .panel__head h3 { margin: 0; font-family: var(--display); font-weight: 400; }
.panel__head h2 { font-size: 2rem; }
.panel__head h3 { font-size: 1.45rem; }
.count-chip { padding: 6px 9px; border-radius: 999px; color: var(--ink); background: var(--acid); font-size: .68rem; font-weight: 900; }

.player-list { list-style: none; margin: 0; padding: 10px 26px 26px; }
.player-row { min-height: 74px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.player-row:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--acid); font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; }
.player-row__name { min-width: 0; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-row__meta { margin-top: 3px; color: var(--paper-muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.player-row__score { font-family: var(--display); font-size: 1.5rem; }
.online-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #6ce18b; }
.online-dot--off { background: #777; }

.lobby-brief { padding: 34px; display: flex; min-height: 440px; flex-direction: column; justify-content: space-between; }
.lobby-brief__number { color: var(--coral); font-size: .65rem; font-weight: 900; letter-spacing: .16em; }
.lobby-brief h1 { max-width: 520px; margin: 18px 0; font-family: var(--display); font-size: clamp(3rem,6vw,5.4rem); font-weight: 400; line-height: .94; letter-spacing: -.05em; }
.lobby-brief p { max-width: 490px; color: var(--paper-muted); font-size: 1rem; line-height: 1.6; }
.lobby-brief__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.waiting-note { display: flex; align-items: center; gap: 10px; color: var(--paper-muted); font-size: .82rem; }
.waiting-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(217,255,82,.12); animation: waiting 1.3s infinite; }

.round-layout { display: grid; grid-template-columns: minmax(0,1fr) 370px; gap: 24px; }
.interrogation { min-height: 660px; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.interrogation__head { padding: 22px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.role-person { display: flex; align-items: center; gap: 11px; }
.role-person--right { flex-direction: row-reverse; text-align: right; }
.role-person__label { display: block; color: var(--paper-muted); font-size: .58rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.role-person__name { display: block; margin-top: 3px; font-weight: 800; }
.versus { font-family: var(--display); color: var(--coral); font-style: italic; font-size: 1.4rem; }

.messages { min-height: 0; max-height: 510px; overflow-y: auto; padding: 32px 26px; scroll-behavior: smooth; }
.message { max-width: 72%; margin: 0 0 20px; }
.message--mine { margin-left: auto; text-align: right; }
.message__meta { margin-bottom: 6px; color: var(--paper-muted); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.message__bubble { display: inline-block; padding: 13px 16px; border: 1px solid var(--line); border-radius: 0 18px 18px 18px; color: var(--paper); background: rgba(255,255,255,.04); text-align: left; line-height: 1.45; }
.message--mine .message__bubble { border-color: rgba(217,255,82,.38); border-radius: 18px 0 18px 18px; color: var(--ink); background: var(--acid); }
.message--system { max-width: 100%; text-align: center; }
.message--system .message__bubble { padding: 7px 12px; border: 0; border-radius: 999px; color: var(--paper-muted); background: rgba(255,255,255,.04); font-size: .7rem; }

.chat-form { padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px; border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }
.chat-form input { min-width: 0; height: 52px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--paper); background: transparent; }
.chat-form input:focus { outline: 0; border-color: var(--acid); }
.chat-form button { width: 52px; height: 52px; border: 0; border-radius: 50%; color: var(--ink); background: var(--acid); cursor: pointer; font-size: 1.3rem; }
.observer-note { padding: 18px 24px; border-top: 1px solid var(--line); color: var(--paper-muted); font-size: .82rem; text-align: center; }

.round-sidebar { display: grid; align-content: start; gap: 16px; }
.timer-card { padding: 24px; color: var(--ink); background: var(--paper); }
.timer-card__top { display: flex; justify-content: space-between; align-items: baseline; }
.timer-card__label { font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.timer-card__value { font-family: var(--display); font-size: 3.1rem; line-height: 1; }
.timer-track { height: 6px; margin-top: 17px; background: #c9c3b4; overflow: hidden; }
.timer-track span { display: block; height: 100%; background: var(--coral); transform-origin: left; transition: transform .35s linear; }

.brief-card { padding: 24px; }
.brief-card__stamp { display: inline-block; margin-bottom: 20px; padding: 5px 8px; border: 1px solid currentColor; color: var(--coral); font-size: .55rem; font-weight: 900; letter-spacing: .12em; transform: rotate(-2deg); }
.brief-card h2 { margin: 0; font-family: var(--display); font-size: 2rem; font-weight: 400; line-height: 1.05; }
.brief-card__identity { margin: 18px 0; padding: 17px; border-left: 3px solid var(--acid); background: rgba(217,255,82,.07); }
.brief-card__identity span { display: block; color: var(--paper-muted); font-size: .57rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brief-card__identity strong { display: block; margin-top: 5px; color: var(--acid); font-family: var(--display); font-size: 1.6rem; font-weight: 400; }
.brief-card p { color: var(--paper-muted); font-size: .86rem; line-height: 1.5; }

.vote-card { padding: 22px; }
.vote-card h3 { margin: 0 0 7px; font-family: var(--display); font-size: 1.55rem; font-weight: 400; }
.vote-card > p { margin: 0 0 18px; color: var(--paper-muted); font-size: .78rem; line-height: 1.45; }
.vote-card select { width: 100%; height: 50px; margin-bottom: 12px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 0; color: var(--paper); background: var(--ink-soft); }
.vote-card .button { width: 100%; }
.prediction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prediction-option { min-height: 62px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.prediction-option:hover, .prediction-option--active { border-color: var(--acid); color: var(--acid); background: rgba(217,255,82,.06); }
.prediction-option span { display: block; color: var(--paper-muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .09em; }
.prediction-option strong { display: block; margin-top: 4px; }

.score-mini { padding: 0 22px 14px; }
.score-mini__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .78rem; }
.score-mini__row:last-child { border-bottom: 0; }
.score-mini__row strong { color: var(--acid); }

.reveal { min-height: calc(100vh - 150px); display: grid; grid-template-columns: minmax(0,1.1fr) minmax(330px,.9fr); gap: 24px; align-items: stretch; }
.verdict-card { position: relative; padding: clamp(34px,6vw,78px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.verdict-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -160px; bottom: -160px; border: 55px solid rgba(217,255,82,.05); border-radius: 50%; }
.verdict-stamp { width: fit-content; padding: 9px 12px; border: 3px solid var(--coral); color: var(--coral); font-weight: 950; letter-spacing: .18em; transform: rotate(-5deg); }
.verdict-card h1 { max-width: 850px; margin: 34px 0 24px; font-family: var(--display); font-size: clamp(4rem,8vw,8rem); font-weight: 400; line-height: .86; letter-spacing: -.06em; }
.verdict-card h1 em { color: var(--acid); font-weight: 400; }
.verdict-card__story { max-width: 690px; color: var(--paper-muted); font-size: 1.15rem; line-height: 1.6; }
.verdict-card__story strong { color: var(--paper); }
.points-earned { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 26px; }
.points-earned span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; }

.leaderboard { display: flex; flex-direction: column; }
.leaderboard .player-list { flex: 1; }
.leaderboard__footer { padding: 22px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.leaderboard__waiting { color: var(--paper-muted); font-size: .82rem; text-align: center; }

.winner-crown { display: inline-flex; align-items: center; gap: 8px; color: var(--acid); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.rules-panel { position: fixed; z-index: 100; inset: 0; visibility: hidden; }
.rules-panel[aria-hidden="false"] { visibility: visible; }
.rules-panel__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.68); opacity: 0; transition: opacity .3s; }
.rules-panel__sheet { position: absolute; top: 0; right: 0; width: min(560px,100%); height: 100%; padding: clamp(28px,5vw,56px); color: var(--ink); background: var(--paper); overflow-y: auto; transform: translateX(100%); transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.rules-panel[aria-hidden="false"] .rules-panel__backdrop { opacity: 1; }
.rules-panel[aria-hidden="false"] .rules-panel__sheet { transform: translateX(0); }
.rules-panel__head { display: flex; align-items: flex-start; justify-content: space-between; }
.rules-panel__head .eyebrow { color: #767166; }
.rules-panel__head .icon-button { color: var(--ink); border-color: rgba(16,16,15,.2); font-size: 1.5rem; }
.rules-panel h2 { margin: 28px 0 42px; font-family: var(--display); font-size: clamp(2.5rem,6vw,4.2rem); font-weight: 400; line-height: .95; letter-spacing: -.045em; }
.rules-list { list-style: none; margin: 0; padding: 0; }
.rules-list li { padding: 22px 0; display: grid; grid-template-columns: 42px 1fr; gap: 15px; border-top: 1px solid rgba(16,16,15,.16); }
.rules-list > li > span { color: #827d71; font-family: var(--display); font-style: italic; }
.rules-list strong { font-size: .96rem; }
.rules-list p { margin: 5px 0 0; color: #666258; line-height: 1.45; }
.rules-panel__fineprint { margin: 34px 0 0; padding: 17px; color: #565249; background: #ddd8ca; font-size: .76rem; line-height: 1.5; }

.toast-region { position: fixed; z-index: 150; right: 22px; bottom: 22px; display: grid; gap: 9px; pointer-events: none; }
.toast { min-width: min(340px,calc(100vw - 44px)); padding: 14px 17px; border-left: 4px solid var(--acid); color: var(--paper); background: #292925; box-shadow: var(--shadow); animation: toast-in .3s ease-out; }
.toast--error { border-left-color: var(--coral); }
.noscript { margin: 3rem; color: var(--coral); }

.skeleton { overflow: hidden; position: relative; background: rgba(255,255,255,.05); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.06),transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }

@keyframes pulse-chip { 50% { box-shadow: 0 0 0 6px rgba(255,91,77,.12); } }
@keyframes waiting { 50% { opacity: .35; transform: scale(.75); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1050px) {
    .landing { grid-template-columns: 1fr; gap: 60px; }
    .landing__copy { padding-right: 0; }
    .entry-card { width: min(620px,100%); }
    .lobby-grid, .reveal { grid-template-columns: 1fr; }
    .round-layout { grid-template-columns: minmax(0,1fr) 320px; }
}

@media (max-width: 800px) {
    .site-header, #app { width: min(100% - 28px,1460px); }
    .site-header { height: 72px; }
    .brand__edition { display: none; }
    .text-button { padding: 0 13px; }
    .landing { min-height: calc(100vh - 72px); padding-top: 48px; }
    .landing__copy::after { display: none; }
    .case-stats { gap: 22px; flex-wrap: wrap; }
    .round-layout { grid-template-columns: 1fr; }
    .round-sidebar { grid-template-columns: 1fr 1fr; }
    .timer-card { grid-column: 1 / -1; }
    .game-topbar { grid-template-columns: 1fr auto; }
    .phase-chip { display: none; }
}

@media (max-width: 570px) {
    .site-header, #app { width: min(100% - 22px,1460px); }
    .brand__word { font-size: .78rem; }
    .header-actions { gap: 6px; }
    .text-button { width: 42px; padding: 0; overflow: hidden; color: transparent; }
    .text-button span { color: var(--paper); }
    .landing h1 { font-size: clamp(3.7rem,20vw,6rem); }
    .landing__lede { font-size: 1rem; }
    .case-stat strong { font-size: 1.3rem; }
    .entry-card { padding: 28px 22px; }
    .game-shell { padding-top: 18px; }
    .room-badge__label { display: none; }
    .room-badge__code { font-size: 1.2rem; }
    .topbar-actions .button--danger { display: none; }
    .lobby-brief { padding: 27px; min-height: 390px; }
    .lobby-brief h1 { font-size: 3.3rem; }
    .panel__head { padding: 0 19px; }
    .player-list { padding: 8px 19px 20px; }
    .round-sidebar { grid-template-columns: 1fr; }
    .interrogation { min-height: 560px; }
    .interrogation__head { padding: 18px 15px; }
    .avatar { width: 34px; height: 34px; }
    .role-person__name { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .messages { padding: 24px 15px; max-height: 420px; }
    .message { max-width: 88%; }
    .reveal { min-height: 0; }
    .verdict-card { padding: 38px 25px; }
    .verdict-card h1 { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
