/* Game screens: dealing, Avalon, One Night, Undercover and the result pages. */

/* ── dealing and the private card ────────────────────────────────────────── */
.deal { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; animation: view-in 0.4s var(--ease-out) both; }
.deal-head { flex: none; padding: 4px 20px 0; text-align: center; }
.deal-head h2 { margin-top: 3px; font-size: 27px; }
.deal-table { position: relative; flex: 1; display: grid; place-items: center; }
.deal-fly { position: absolute; left: 50%; top: 46%; width: 74px; aspect-ratio: 2 / 3; margin: -55px 0 0 -37px; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); animation: deal-out 0.75s var(--ease-out) both; }
.deal-note { margin-top: 44%; font-family: var(--font-display); font-size: 17px; letter-spacing: 0.3em; color: var(--text-dim); animation: breathe 1.4s ease-in-out infinite; }
.deal-stage { flex: none; display: grid; justify-items: center; gap: 10px; padding: 14px 20px 6px; animation: card-land 0.7s var(--ease-spring) both; }
.deal-tip { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.500px; color: var(--text-dim); }
.deal-info { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 4px 20px 8px; opacity: 0; transform: translateY(8px); transition: opacity 0.45s 0.3s, transform 0.45s 0.3s var(--ease-out); }
.deal-info::-webkit-scrollbar { display: none; }
.deal-info.is-open { opacity: 1; transform: none; }
.card-sheet-stage { display: grid; justify-items: center; padding: 4px 0 2px; }
.card-sheet .card-lg { --w: min(54vw, 31vh, 230px); }
.card-sheet-info { animation: rise 0.4s 0.3s var(--ease-out) both; }

.role-info { display: grid; gap: 12px; }
.role-help { padding: 13px 15px; border-radius: 16px; font-size: 14.500px; line-height: 1.7; color: var(--parch-ink); background: linear-gradient(180deg, #fbf3e0, #ead9b5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 8px 20px rgba(0, 0, 0, 0.3); }
.secret { display: grid; gap: 10px; padding: 13px 15px; border-radius: 16px; background: rgba(0, 0, 0, 0.32); box-shadow: inset 0 0 0 1px var(--line); }
.clues { display: grid; gap: 10px; }
.clues.is-inline { gap: 6px; padding: 9px 12px; border-radius: 16px; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line); }
.clues.is-inline .role-chip { width: 44px; }
.clues.is-inline .role-chip-art { width: 40px; height: 40px; }
.clues.is-inline .role-chip-name { display: none; }
.fresh { display: grid; justify-items: center; gap: 16px; padding: 6px 0 2px; }
.fresh-cards { display: flex; justify-content: center; gap: 14px; }
.fresh-cards figure { display: grid; justify-items: center; gap: 8px; animation: card-land 0.6s var(--ease-spring) both; }
.fresh-cards figure:nth-child(2) { animation-delay: 0.12s; }
.fresh-cards figcaption { max-width: 132px; font-size: 13px; text-align: center; color: var(--text-dim); }
.fresh-cards figcaption b { display: block; font-size: 14.500px; color: var(--text); }
.fresh .card-md { --w: min(34vw, 20vh, 140px); }
.fresh .people { justify-content: center; padding: 12px 16px; border-radius: 18px; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line); }
.fresh .people-label { text-align: center; }
.host-row { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.clue { display: flex; align-items: center; gap: 12px; }
.clue p { flex: 1; min-width: 0; font-size: 13.500px; line-height: 1.55; color: var(--text-dim); }
.clue p b { display: block; font-size: 14.500px; color: var(--text); }
.clue.is-fresh { animation: clue-in 0.6s var(--ease-spring) both; }
.clue.is-fresh .role-chip-art img { animation: chip-flip 0.7s var(--ease-out) both; }

/* ── avalon ──────────────────────────────────────────────────────────────── */
.quests { display: grid; gap: 8px; padding: 12px 12px 10px; border-radius: 20px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.quest-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.quest { display: grid; justify-items: center; gap: 4px; }
.quest-disc { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text-dim); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.35)); box-shadow: inset 0 0 0 1.500px rgba(255, 255, 255, 0.2); transition: transform 0.4s var(--ease-spring), box-shadow 0.4s, background 0.4s; }
.quest-disc b { font: 700 20px/1 var(--font-num); }
.quest small { font-size: 10px; white-space: nowrap; color: var(--text-faint); }
.quest.is-current .quest-disc { color: #2b1a07; background: radial-gradient(circle at 35% 30%, #fff1c7, #d9b060); box-shadow: 0 0 0 3px rgba(236, 208, 143, 0.3), 0 0 22px rgba(236, 208, 143, 0.55); transform: scale(1.1); }
.quest.is-current small { color: var(--gold-3); }
.quest.is-win .quest-disc { color: #eaf3ff; background: radial-gradient(circle at 35% 30%, #7fb0f5, #23468c); box-shadow: inset 0 0 0 1.500px rgba(200, 224, 255, 0.7), 0 0 16px rgba(91, 143, 214, 0.5); }
.quest.is-fail .quest-disc { color: #ffe9e5; background: radial-gradient(circle at 35% 30%, #f07f7b, #8c2230); box-shadow: inset 0 0 0 1.500px rgba(255, 200, 190, 0.7), 0 0 16px rgba(207, 77, 79, 0.5); }
.quest.is-win small { color: var(--blue-glow); }
.quest.is-fail small { color: var(--red-glow); }
.rejects { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; letter-spacing: 0.12em; color: var(--text-faint); }
.rejects span { margin-right: 4px; }
.rejects i { width: 16px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); transition: background 0.3s, box-shadow 0.3s; }
.rejects i.is-on { background: var(--red-glow); box-shadow: 0 0 8px rgba(255, 120, 110, 0.7); }
.rejects.is-hot { color: var(--red-glow); }
.rejects.is-hot i.is-on { animation: pulse 0.9s ease-in-out infinite; }

.choice-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: grid; justify-items: center; gap: 8px; padding: 16px 10px 13px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-soft); transition: transform 0.2s var(--ease-spring), box-shadow 0.25s, background 0.25s; }
.choice b { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.1em; }
.choice:active { transform: scale(0.96); }
.choice.is-on { transform: translateY(-4px); background: rgba(236, 208, 143, 0.14); box-shadow: inset 0 0 0 2px var(--gold-3), 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 26px rgba(236, 208, 143, 0.25); }
.token { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; }
.token-yes { color: #3a2a12; background: radial-gradient(circle at 35% 28%, #fffdf4, #e8dcc0 62%, #b9a57c); box-shadow: inset 0 -4px 8px rgba(120, 90, 40, 0.35), 0 5px 12px rgba(0, 0, 0, 0.45); }
.token-no { color: #f1e6d2; background: radial-gradient(circle at 35% 28%, #5a5158, #241d22 62%, #0e0a0d); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.6), inset 0 0 0 1.500px rgba(255, 255, 255, 0.14), 0 5px 12px rgba(0, 0, 0, 0.45); }
.mission-face { width: 72px; height: 96px; display: grid; place-items: center; border-radius: 12px; color: var(--gold-4); background: repeating-linear-gradient(45deg, rgba(236, 208, 143, 0.1) 0 1.500px, transparent 1.500px 9px), radial-gradient(circle at 50% 40%, #3a4f86, #17203f); box-shadow: inset 0 0 0 1.500px rgba(236, 208, 143, 0.7), 0 8px 18px rgba(0, 0, 0, 0.45); }
.choice-fail .mission-face { background: repeating-linear-gradient(45deg, rgba(236, 208, 143, 0.1) 0 1.500px, transparent 1.500px 9px), radial-gradient(circle at 50% 40%, #8a3345, #3a1420); }

/* record sheet */
.record-scroll { margin: 0 -18px 0 -20px; padding: 0 18px 4px 20px; overflow-x: auto; scrollbar-width: none; }
.record-scroll::-webkit-scrollbar { display: none; }
.record { border-collapse: separate; border-spacing: 0; font-size: 12.500px; }
.record th, .record td { padding: 5px 4px; text-align: center; }
.record thead th { min-width: 38px; padding-bottom: 8px; font: 700 15px/1 var(--font-num); color: var(--text); }
.record thead th small { font-size: 11px; color: var(--text-faint); }
.record thead th.is-passed { color: var(--gold-3); }
.record .record-corner { font: 600 11px/1 var(--font-body); letter-spacing: 0.14em; color: var(--text-faint); }
.record tbody th, .record tfoot th, .record .record-corner { position: sticky; left: 0; z-index: 1; min-width: 96px; max-width: 96px; text-align: left; background: #201a1d; }
.record tbody th { display: flex; align-items: center; gap: 7px; padding: 6px 8px 6px 0; font-weight: 600; }
.record tbody th span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record tbody tr.is-me th span { color: var(--gold-3); }
.record td.on-team { background: rgba(236, 208, 143, 0.16); }
.record tbody tr:first-child td.on-team { border-radius: 10px 10px 0 0; }
.record tbody tr:last-child td.on-team { border-radius: 0 0 10px 10px; }
.record .is-first { border-left: 1px solid var(--line); }
.record tfoot th { padding-top: 10px; font: 600 11px/1 var(--font-body); letter-spacing: 0.14em; color: var(--text-faint); }
.record tfoot td { padding-top: 10px; }
.ballot { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; }
.ballot.is-yes { background: radial-gradient(circle at 35% 28%, #fffdf4, #d9cba8); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); }
.ballot.is-no { background: radial-gradient(circle at 35% 28%, #4c444a, #100c0f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 2px 4px rgba(0, 0, 0, 0.4); }
.ballot-crown { color: #b07a1c; }
.ballot.is-no .ballot-crown { color: var(--gold-3); }
.res { display: inline-block; padding: 2px 5px; border-radius: 6px; font-size: 10.500px; font-weight: 700; white-space: nowrap; color: var(--text-faint); }
.res-win { color: #eaf3ff; background: rgba(70, 120, 200, 0.6); }
.res-fail { color: #ffe9e5; background: rgba(190, 60, 66, 0.7); }
.res-reject { color: var(--text-faint); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.500px; color: var(--text-dim); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend .ballot { width: 14px; height: 14px; }
.legend-team { width: 14px; height: 14px; border-radius: 4px; background: rgba(236, 208, 143, 0.3); }

/* ── overlays (vote count, mission result, tallies) ──────────────────────── */
.overlay { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; padding: calc(var(--safe-top) + 24px) 22px calc(var(--safe-bottom) + 40px); text-align: center; background: radial-gradient(110% 80% at 50% 40%, rgba(24, 16, 20, 0.94), rgba(6, 4, 7, 0.98)); animation: fade-in 0.3s both; cursor: pointer; transition: background 0.6s; }
.overlay-gold { background: radial-gradient(110% 80% at 50% 40%, rgba(70, 50, 22, 0.95), rgba(8, 6, 7, 0.98)); }
.overlay-red { background: radial-gradient(110% 80% at 50% 40%, rgba(84, 20, 28, 0.95), rgba(8, 4, 6, 0.98)); }
.overlay-blue { background: radial-gradient(110% 80% at 50% 40%, rgba(26, 50, 100, 0.95), rgba(5, 6, 12, 0.98)); }
.overlay-body { width: 100%; max-height: 100%; overflow-y: auto; scrollbar-width: none; display: grid; justify-items: center; gap: 16px; }
.overlay-body::-webkit-scrollbar { display: none; }
.overlay-body h2 { font-size: 34px; letter-spacing: 0.12em; color: var(--gold-4); text-shadow: 0 0 30px rgba(236, 208, 143, 0.4); }
.overlay-body .people { justify-content: center; }
.overlay-body .people-label { text-align: center; }
.overlay-skip { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 16px); font-size: 12px; letter-spacing: 0.3em; color: var(--text-faint); animation: fade-in 0.6s 1.6s both; }

.ballot-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 6px; width: 100%; max-width: 330px; }
.ballot-cell { width: 60px; display: grid; justify-items: center; gap: 5px; animation: token-flip 0.5s var(--ease-spring) both; }
.ballot-cell em { max-width: 62px; font-style: normal; font-size: 11.500px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-dim); }
.ballot-cell .token { width: 46px; height: 46px; }
.verdict { display: grid; justify-items: center; gap: 2px; opacity: 0; transform: scale(2.2) rotate(-10deg); }
.verdict.is-in { animation: stamp 0.45s var(--ease-out) both; }
.verdict strong { padding: 2px 26px; border-radius: 12px; font-family: var(--font-display); font-size: 46px; font-weight: 900; letter-spacing: 0.24em; padding-left: calc(26px + 0.24em); border: 3px solid currentColor; }
.verdict span { margin-top: 8px; font-size: 13.500px; letter-spacing: 0.1em; color: var(--text-dim); }
.verdict.is-pass strong { color: var(--gold-4); text-shadow: 0 0 26px rgba(236, 208, 143, 0.6); }
.verdict.is-reject strong { color: var(--red-glow); text-shadow: 0 0 26px rgba(255, 110, 100, 0.6); }

.mission-cards { display: flex; justify-content: center; gap: 10px; min-height: 124px; padding-top: 6px; }
.mcard { width: 66px; height: 96px; perspective: 800px; transform: translateX(calc(var(--i) * 0px)); }
.is-shuffling .mcard { animation: shuffle 0.42s ease-in-out 3; }
.is-shuffling .mcard:nth-child(even) { animation-direction: reverse; }
.mcard-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.6s var(--ease-spring); }
.mcard.is-turned .mcard-inner { transform: rotateY(180deg); }
.mcard-back, .mcard-front { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55); }
.mcard-back { background: repeating-linear-gradient(45deg, rgba(236, 208, 143, 0.12) 0 1.500px, transparent 1.500px 9px), radial-gradient(circle at 50% 40%, #4a3a26, #1d1610); box-shadow: inset 0 0 0 1.500px rgba(236, 208, 143, 0.7), 0 10px 22px rgba(0, 0, 0, 0.55); }
.mcard-front { transform: rotateY(180deg); }
.mcard-front b { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.14em; }
.mcard.is-success .mcard-front { color: #eaf3ff; background: radial-gradient(circle at 50% 35%, #6fa2ec, #1d3d7c); box-shadow: inset 0 0 0 1.500px rgba(200, 224, 255, 0.8), 0 0 26px rgba(91, 143, 214, 0.55); }
.mcard.is-fail .mcard-front { color: #ffe9e5; background: radial-gradient(circle at 50% 35%, #e86a68, #7a1b28); box-shadow: inset 0 0 0 1.500px rgba(255, 200, 190, 0.8), 0 0 30px rgba(230, 70, 70, 0.7); }
.mcard.is-fail.is-turned { animation: shake 0.45s 0.25s; }
.mission-note { font-size: 14px; color: var(--text-dim); opacity: 0; transition: opacity 0.5s; }
.mission-note.is-in { opacity: 1; }

.tally { display: grid; gap: 10px; width: 100%; max-width: 340px; text-align: left; }
.tally-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-soft); }
.tally-row.is-zero { opacity: 0.5; }
.tally-row.is-out { background: rgba(184, 56, 63, 0.28); box-shadow: inset 0 0 0 1.500px rgba(255, 154, 143, 0.6); animation: tally-out 0.6s 1.8s var(--ease-out) both; }
.tally-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tally-name { display: flex; align-items: center; gap: 8px; }
.tally-name b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tally-bar { display: flex; flex-wrap: wrap; gap: 3px; min-height: 24px; }
.tally-voter { animation: pop 0.35s var(--ease-spring) both; }
.tally-count { flex: none; font: 700 26px/1 var(--font-num); color: var(--gold-4); }
.tally-note { margin-top: 4px; text-align: center; font-size: 12.500px; line-height: 1.6; color: var(--text-dim); }
.stamp { padding: 0 7px; border-radius: 6px; font-style: normal; font-size: 11.500px; font-weight: 700; letter-spacing: 0.1em; color: var(--red-glow); border: 1.500px solid currentColor; transform: rotate(-6deg); animation: stamp 0.4s 1.9s var(--ease-out) both; }

/* ── result pages ────────────────────────────────────────────────────────── */
.result-banner { position: relative; display: grid; justify-items: center; gap: 4px; padding: 20px 16px 18px; border-radius: 24px; text-align: center; overflow: hidden; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); animation: banner-in 0.7s var(--ease-spring) both; }
.result-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% 0%, var(--glow, rgba(236, 208, 143, 0.3)), transparent 70%); }
.result-banner > * { position: relative; }
.result-banner h2 { font-size: 34px; letter-spacing: 0.1em; }
.result-banner p { font-size: 13.500px; color: var(--text-dim); }
.result-banner.tone-blue { --glow: rgba(91, 143, 214, 0.5); box-shadow: inset 0 0 0 1px rgba(156, 194, 255, 0.5); }
.result-banner.tone-blue h2 { color: #dbe9ff; }
.result-banner.tone-red { --glow: rgba(207, 77, 79, 0.5); box-shadow: inset 0 0 0 1px rgba(255, 154, 143, 0.5); }
.result-banner.tone-red h2 { color: #ffd9d2; }
.result-banner.tone-amber { --glow: rgba(233, 185, 73, 0.5); }
.result-banner.tone-amber h2 { color: #ffe9b3; }
.result-banner.tone-dim { --glow: rgba(255, 255, 255, 0.08); }
.result-banner.tone-dim h2 { font-size: 26px; color: var(--text-dim); }
.result-you { margin-top: 6px; padding: 3px 14px; border-radius: 999px; font-size: 12.500px; font-weight: 700; letter-spacing: 0.14em; }
.result-you.is-won { color: #2b1a07; background: linear-gradient(180deg, #fbe7ae, #d9b060); }
.result-you.is-lost { color: var(--text-dim); background: rgba(255, 255, 255, 0.1); }

.reveal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
.reveal-card { display: grid; justify-items: center; gap: 1px; text-align: center; animation: reveal-in 0.6s var(--ease-spring) both; }
.reveal-art { position: relative; width: 100%; aspect-ratio: 2 / 2.5; margin-bottom: 5px; border-radius: 13px; overflow: hidden; box-shadow: 0 0 0 2px var(--tone, var(--gold-2)), 0 10px 20px rgba(0, 0, 0, 0.45); }
.reveal-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.reveal-who { position: absolute; right: 5px; bottom: 5px; }
.reveal-who .avatar { box-shadow: 0 0 0 2px rgba(8, 6, 9, 0.8), 0 3px 8px rgba(0, 0, 0, 0.5); }
.reveal-card b { font-family: var(--font-display); font-size: 15.500px; }
.reveal-card em { max-width: 100%; font-style: normal; font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reveal-card small { font-size: 10.500px; color: var(--text-faint); }
.reveal-card small.is-changed { color: var(--amber); }
.reveal-card.tone-blue { --tone: var(--blue); }
.reveal-card.tone-red { --tone: var(--red); }
.reveal-card.tone-amber { --tone: var(--amber); }
.reveal-card.tone-violet { --tone: var(--violet); }
.reveal-card.is-me em { color: var(--gold-3); font-weight: 700; }
.reveal-card.is-dead .reveal-art img { filter: grayscale(0.85) brightness(0.7); }
.reveal-mark { position: absolute; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.mark-hit { left: 6px; bottom: 6px; color: #fff; background: rgba(184, 40, 50, 0.92); transform: rotate(-5deg); }
.mark-win { right: 5px; top: 5px; padding: 4px; border-radius: 50%; color: #2b1a07; background: var(--gold-3); box-shadow: 0 0 12px rgba(236, 208, 143, 0.8); }
.center-reveal { display: grid; gap: 10px; padding: 13px 15px; border-radius: 18px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }

/* ── one night ───────────────────────────────────────────────────────────── */
.steps { position: relative; flex: none; display: flex; gap: 2px; margin: 0 -16px; padding: 4px 16px 6px; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { flex: none; width: 52px; display: grid; justify-items: center; gap: 3px; opacity: 0.42; transition: opacity 0.4s, transform 0.4s var(--ease-spring); scroll-snap-align: center; }
.step-art { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.500px rgba(198, 216, 255, 0.35); transition: box-shadow 0.4s, width 0.4s, height 0.4s; }
.step-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.step em { max-width: 100%; font-style: normal; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-dim); }
.step.is-past { opacity: 0.25; filter: grayscale(0.7); }
.step.is-now { opacity: 1; transform: translateY(-2px); }
.step.is-now .step-art { width: 42px; height: 42px; box-shadow: 0 0 0 2px #dfe9ff, 0 0 20px rgba(160, 190, 255, 0.75); }
.step.is-now em { color: #dfe9ff; font-weight: 700; }
.night-brief { display: grid; gap: 4px; padding: 13px 15px; border-radius: 18px; background: var(--glass-strong); box-shadow: inset 0 0 0 1.500px rgba(198, 216, 255, 0.5), 0 0 30px rgba(120, 150, 240, 0.2); animation: rise 0.45s var(--ease-out) both; }
.night-brief p { font-size: 14px; line-height: 1.6; color: var(--text); }
.center-cards { display: flex; justify-content: center; gap: 6px; }
.center-card { position: relative; width: 38px; aspect-ratio: 2 / 3; border-radius: 6px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); transition: transform 0.25s var(--ease-spring), box-shadow 0.25s; }
.center-card .card-back, .center-card img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6px; object-fit: cover; object-position: 50% 14%; }
.center-card .card-back::before { box-shadow: inset 0 0 0 1px rgba(198, 216, 255, 0.6); }
.center-card .back-frame { width: 70%; }
.center-card em { position: absolute; left: 0; right: 0; bottom: -17px; font: 700 11.500px/1 var(--font-num); font-style: normal; text-align: center; color: var(--text-dim); }
.center-card.is-extra em { color: var(--red-glow); }
.center-card.is-pickable { cursor: pointer; box-shadow: 0 0 0 1.500px rgba(223, 233, 255, 0.75), 0 0 16px rgba(160, 190, 255, 0.5), 0 4px 10px rgba(0, 0, 0, 0.5); animation: bob 2.2s ease-in-out infinite; }
.center-card.is-pickable:nth-child(2) { animation-delay: -0.5s; }
.center-card.is-pickable:nth-child(3) { animation-delay: -1s; }
.center-card.is-selected { transform: translateY(-9px) scale(1.12); animation: none; box-shadow: 0 0 0 2.500px var(--gold-4), 0 0 20px rgba(236, 208, 143, 0.75), 0 10px 16px rgba(0, 0, 0, 0.5); }
.center-card.is-known { box-shadow: 0 0 0 2px var(--gold-3), 0 4px 10px rgba(0, 0, 0, 0.5); animation: chip-flip 0.6s var(--ease-out) both; }
.ring-center:has(.center-cards) { padding-bottom: 14px; }
.idiot-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sleep { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; min-height: 250px; text-align: center; color: #c6d8ff; }
.sleep-moon { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 50%; color: #e9efff; background: radial-gradient(circle, rgba(140, 170, 255, 0.24), transparent 70%); animation: glow 3.6s ease-in-out infinite; }
.sleep h3 { font-size: 25px; letter-spacing: 0.14em; color: var(--text); }
.sleep p { max-width: 260px; font-size: 14px; color: var(--text-dim); }
.zz { display: flex; gap: 6px; height: 22px; font-family: var(--font-num); }
.zz i { font-style: italic; opacity: 0; animation: zz 2.4s ease-in-out infinite; }
.zz i:nth-child(2) { font-size: 17px; animation-delay: 0.4s; }
.zz i:nth-child(3) { font-size: 21px; animation-delay: 0.8s; }

.claims { display: grid; gap: 8px; }
.claim { padding: 8px 10px; border-radius: 15px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--line-soft); }
.claim-row { display: flex; align-items: center; gap: 9px; }
.claim-name { flex: 1; min-width: 0; font-size: 14.500px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.claim-role { flex: none; min-height: 34px; padding: 0 11px; border-radius: 10px; font-size: 13px; color: var(--text-faint); background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px var(--line-soft); }
.claim-role b { color: var(--text); }
.claim-role.tone-blue { box-shadow: inset 0 0 0 1.500px rgba(156, 194, 255, 0.6); }
.claim-role.tone-red { box-shadow: inset 0 0 0 1.500px rgba(255, 154, 143, 0.6); }
.claim-role.tone-amber { box-shadow: inset 0 0 0 1.500px rgba(240, 200, 110, 0.6); }
.claim-role.tone-violet { box-shadow: inset 0 0 0 1.500px rgba(190, 150, 235, 0.6); }
.claim-mark { flex: none; width: 34px; height: 34px; border-radius: 10px; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-faint); background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px var(--line-soft); }
.claim-mark.is-trust { color: #0c3324; background: #8fe3b8; }
.claim-mark.is-doubt { color: #fff; background: #c9484d; }
.claim-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-soft); animation: rise 0.25s var(--ease-out) both; }
.claim-pick .chip-btn { min-height: 34px; padding: 0 11px; font-size: 13px; }

.timeline { display: grid; gap: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline i { flex: none; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-3); background: rgba(236, 208, 143, 0.12); box-shadow: inset 0 0 0 1px var(--line); }
.timeline p { padding-top: 3px; font-size: 13.500px; line-height: 1.55; color: var(--text-dim); }
.timeline p b { color: var(--text); }
.vote-lines { display: grid; gap: 7px; }
.vote-lines li { display: flex; align-items: center; gap: 7px; font-size: 13.500px; color: var(--text-dim); }
.vote-lines b { color: var(--text); font-weight: 600; }

/* ── undercover ──────────────────────────────────────────────────────────── */
.bubbles { display: grid; gap: 8px; }
.bubbles li { display: flex; align-items: flex-start; gap: 9px; animation: rise 0.35s var(--ease-out) both; }
.bubbles p { padding: 7px 12px; border-radius: 4px 14px 14px 14px; font-size: 14px; line-height: 1.5; color: var(--parch-ink); background: linear-gradient(180deg, #fbf3e0, #ead9b5); }
.bubbles p b { margin-right: 7px; font-size: 12px; color: rgba(46, 34, 23, 0.6); }
.uc-turn { display: grid; gap: 10px; }
.uc-vote { display: grid; gap: 8px; justify-items: start; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.uc-vote .vote-lines { grid-template-columns: 1fr 1fr; gap: 5px 14px; width: 100%; }
.word-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.word-card { display: grid; justify-items: center; gap: 4px; padding: 16px 8px 18px; border-radius: 18px; color: var(--parch-ink); background: linear-gradient(180deg, #fbf3e0, #e7d6b0); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.6); animation: reveal-in 0.6s var(--ease-spring) both; }
.word-card:nth-child(2) { animation-delay: 0.15s; }
.word-card span { font-size: 11.500px; font-weight: 700; letter-spacing: 0.16em; }
.word-card strong { font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: 0.06em; line-height: 1.2; }
.word-card.tone-blue span { color: #2f5ea8; }
.word-card.tone-red span { color: #a8303a; }
.word-card.tone-red { box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(190, 60, 66, 0.55); }
.uc-reveal { display: grid; gap: 8px; }
.uc-reveal li { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 10px; border-radius: 16px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-soft); animation: rise 0.4s var(--ease-out) both; }
.uc-reveal li.is-undercover { background: rgba(130, 34, 44, 0.42); box-shadow: inset 0 0 0 1px rgba(255, 154, 143, 0.5); }
.uc-reveal li.is-out .avatar { filter: grayscale(0.9) brightness(0.75); }
.uc-reveal-name { flex: 1; min-width: 0; display: grid; }
.uc-reveal-name b { font-size: 14.500px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-reveal-name small { font-size: 11px; color: var(--text-faint); }
.uc-reveal li.is-me b { color: var(--gold-3); }
.uc-reveal-word { font-family: var(--font-display); font-size: 17px; color: var(--text); }
