body.is-playing {
  min-width: 0;
  background: radial-gradient(ellipse at 35% 0, #223047 0, #0c1422 55%, #090f19 100%);
  padding-bottom: env(safe-area-inset-bottom);
}
body.is-playing .sidebar, body.is-playing .mobile-topbar, body.is-playing .mobile-nav { display: none; }
body.is-playing .main-content { max-width: 1600px; margin: 0 auto; padding: 24px 32px 40px; }
.game-page {
  --surface: #141f30;
  --surface-raised: #1b2b3d;
  --bg: #0f1928;
  --muted: #a6b9c8;
  --faint: #879eae;
  --border: rgba(163, 193, 216, .17);
  --gold: #e9c78d;
  --green: #8accc1;
  max-width: 1440px;
  color: #eaf0f4;
}
.game-page[data-phase="day"] .phase-hud { background: #304e60; border: 2px solid #f0d899; border-radius: 16px; padding: 14px; }
.game-page[data-phase="night"] .phase-hud { background: #121533; border: 2px solid #a59ce7; border-radius: 16px; padding: 14px; }
.game-page[data-phase="vote"] .phase-hud { background: #492b30; border: 2px solid #edb490; border-radius: 16px; padding: 14px; }
.claim-batch { display: grid; gap: 8px; grid-column: 1 / -1; }
.claim-batch label { display: flex; align-items: center; gap: 8px; min-height: 48px; overflow-wrap: anywhere; }
.claim-batch input { width: 24px; height: 24px; flex: 0 0 24px; }
.match-hud { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.match-brand { display: flex; align-items: center; gap: 12px; }
.match-brand .brand-mark { width: 42px; height: 48px; border-radius: 5px 16px 5px 16px; background: linear-gradient(140deg, #e8ce9e, #ad8b58); color: #17202e; }
.match-brand strong { font-size: 19px; letter-spacing: -.05em; }
.match-brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.phase-hud { display: flex; align-items: center; gap: 13px; }
.phase-symbol { color: var(--gold); font-size: 34px; }
.phase-hud h1 { margin: 0 0 5px; font-size: 22px; font-family: inherit; font-weight: 600; letter-spacing: -.04em; }
.phase-hud h1 span { color: var(--gold); }
.phase-weather { color: var(--muted); font-size: 11px; }
.phase-clock { min-width: 74px; margin-left: 8px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: #0e1827; color: #e8d6b8; font-size: 21px; font-variant-numeric: tabular-nums; text-align: center; }
.match-exit { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: #1c293b; color: #b5c5d4; cursor: pointer; font-size: 12px; }
.match-tools { display: flex; gap: 8px; flex-shrink: 0; }
.match-progress { display: flex; gap: 26px; margin: 16px 0 22px; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.match-progress span { position: relative; display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 12px; }
.match-progress b { color: #586e81; font-size: 10px; letter-spacing: .08em; }
.match-progress .is-current, .match-progress .is-current b { color: var(--gold); }
.match-progress .is-current::after { position: absolute; bottom: -14px; width: 100%; height: 2px; background: var(--gold); content: ""; box-shadow: 0 0 12px #e9c78d40; }
.experimental-rules { margin: -6px 0 16px; color: #c3b597; font-size: 12px; line-height: 1.7; }
.match-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 390px); gap: 22px; align-items: start; }
.match-stage-column, .match-intel { min-width: 0; }
.village-board { position: relative; min-height: 470px; overflow: hidden; border: 1px solid #718ca244; border-radius: 24px 24px 6px 6px; background: #192b42; isolation: isolate; }
.game-page { --weather-accent: #ffe49c; --weather-sky: #e9be5338; }
.game-page[data-weather="cloud"] { --weather-accent: #d3dce6; --weather-sky: #9daebe70; }
.game-page[data-weather="rain"] { --weather-accent: #80cfff; --weather-sky: #1b75ad80; }
.game-page[data-weather="fog"] { --weather-accent: #c4b0ff; --weather-sky: #8b72bb80; }
.game-page[data-weather="poison"] { --weather-accent: #b5ef79; --weather-sky: #679b3980; }
.game-page[data-weather="cult"] { --weather-accent: #f1a1e3; --weather-sky: #a5348b80; }
.game-page[data-weather="snow"] { --weather-accent: #e2f8ff; --weather-sky: #80a6b880; }
.game-page[data-weather="wind"] { --weather-accent: #9aeadc; --weather-sky: #43897f80; }
.game-page .village-board { border-top: 4px solid var(--weather-accent); }
.game-page .village-weather { background: linear-gradient(var(--weather-sky), transparent 75%); }
.game-page[data-weather-strength="heavy"] .village-weather { box-shadow: inset 0 100px 130px var(--weather-sky); }
.weather-scene-label { position: relative; display: flex; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--weather-accent); background: linear-gradient(100deg, #081321f5, var(--weather-sky)); color: var(--weather-accent); pointer-events: none; }
.weather-scene-label > span { font-size: 27px; line-height: 1; }
.weather-scene-label strong { font-size: 17px; }
.weather-scene-label small { margin-left: auto; color: #c5d2df; font-size: 11px; }
.early-vote-status { padding: 10px; border: 1px solid #dbbd7f66; border-radius: 10px; color: #f0d397; }
.survival-briefing { padding: 12px 14px; margin: 10px 0; border: 1px solid #86cbb877; border-radius: 12px; background: #102d2bf2; color: #d7f4e7; }
.survival-briefing p { margin: 6px 0; font-size: 13px; line-height: 1.5; }
.survival-briefing small { color: #a0c4b5; font-size: 11px; }
.screen-impact { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; pointer-events: none; }
.screen-impact::before { position: absolute; inset: 0; content: ""; }
.screen-impact-hit::before { background: radial-gradient(ellipse at center, #b5122633 18%, #e31d3f9c 100%); animation: screen-hit-flash 1.5s ease-out both; animation-delay: var(--impact-delay, 0ms); }
.screen-impact-healed::before { background: radial-gradient(ellipse at center, #28b97022 15%, #28e28b88 100%); animation: screen-heal-flash 1.5s ease-out both; animation-delay: var(--impact-delay, 0ms); }
.screen-impact span { position: relative; max-width: calc(100% - 32px); padding: 12px 18px; border: 1px solid #ffffff88; border-radius: 999px; background: #101a24d9; color: #fff; font-size: clamp(15px, 3vw, 21px); font-weight: 800; text-align: center; box-shadow: 0 8px 34px #0008; animation: impact-label 1.5s ease-out both; animation-delay: var(--impact-delay, 0ms); }
@keyframes screen-hit-flash { 0%, 100% { opacity: 0; } 12% { opacity: .78; } 48% { opacity: .24; } }
@keyframes screen-heal-flash { 0%, 100% { opacity: 0; } 18% { opacity: .62; } 55% { opacity: .2; } }
@keyframes impact-label { 0%, 100% { opacity: 0; transform: scale(.94); } 18%, 68% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .screen-impact-hit::before, .screen-impact-healed::before, .screen-impact span { animation: none; opacity: .28; }
}
.person-leg, .person-arm { transform-origin: 20px 36px; }
.is-walking .leg-left { animation: village-step .3s ease-in-out infinite alternate; }
.is-walking .leg-right { animation: village-step .3s ease-in-out infinite alternate-reverse; }
.is-walking .person-arm { animation: village-step .3s ease-in-out infinite alternate; }
@keyframes village-step { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
@media (prefers-reduced-motion: reduce) {
  .village-seat { transition: none !important; }
  .walking-person * { animation: none !important; }
  .game-page .village-seat .seat-portrait,
  .staging-page .staging-seat .seat-portrait { animation: none !important; }
}
@keyframes mobile-character-breathe {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -2px, 0); }
}
@media (max-width: 600px) {
  .weather-scene-label { padding: 8px 12px; gap: 8px; }
  .weather-scene-label > span { font-size: 22px; }
  .weather-scene-label strong { font-size: 15px; }
}
.village-art { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; pointer-events: none; }
.village-atmosphere { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #08132318, #0b192838 24%, #081423d9 100%); pointer-events: none; }
[data-plaza-theme="lantern-festival"] .village-art { filter: sepia(.45) saturate(1.5) brightness(.95); }
[data-plaza-theme="lantern-festival"] .village-atmosphere { background: radial-gradient(circle at 20% 30%, #ffb34733 0 4%, transparent 9%), radial-gradient(circle at 70% 24%, #ffcf6b33 0 3%, transparent 8%), linear-gradient(180deg, #2a160822, #1d1208d9 100%); }
[data-plaza-theme="snow-village"] .village-art { filter: saturate(.45) brightness(1.15) contrast(.95); }
[data-plaza-theme="snow-village"] .village-atmosphere { background: radial-gradient(circle, #ffffffcc 0 1px, transparent 1.6px) 0 0 / 22px 22px, radial-gradient(circle, #ffffff99 0 1px, transparent 1.4px) 11px 9px / 31px 31px, linear-gradient(180deg, #dfefff22, #0b1828d9 100%); }
[data-plaza-theme="witch-swamp"] .village-art { filter: hue-rotate(55deg) saturate(1.3) brightness(.72); }
[data-plaza-theme="witch-swamp"] .village-atmosphere { background: radial-gradient(ellipse at 50% 88%, #5fd18a44, transparent 55%), linear-gradient(180deg, #06140c30, #071a10e0 100%); }
[data-plaza-theme="ash-ruins"] .village-art { filter: grayscale(1) contrast(1.15) brightness(.72); }
[data-plaza-theme="ash-ruins"] .village-atmosphere { background: linear-gradient(180deg, #2a262433, #141211e0 100%); }
[data-plaza-theme="blood-moon"] .village-art { filter: sepia(.5) saturate(1.8) hue-rotate(-35deg) brightness(.7); }
[data-plaza-theme="blood-moon"] .village-atmosphere { background: radial-gradient(circle at 80% 12%, #ff3b3b66 0 5%, #ff3b3b22 9%, transparent 22%), linear-gradient(180deg, #2a060a33, #18040ae6 100%); }
.plaza-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.plaza-theme-option { display: grid; gap: 4px; min-height: 48px; padding: 6px; border: 2px solid #7199a855; border-radius: 12px; background: #0d1a27; color: #eef3f8; text-align: left; }
.plaza-theme-option[aria-pressed="true"] { border-color: #f1d89f; box-shadow: 0 0 0 1px #f1d89f; }
.plaza-theme-option:disabled { opacity: .5; }
.plaza-theme-option small { color: #b4c3cf; font-size: 11px; }
.plaza-theme-swatch { position: relative; isolation: isolate; display: block; height: 76px; overflow: hidden; border-radius: 8px; }
.drill-coach { position: fixed; z-index: 60; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(560px, calc(100vw - 16px)); max-height: 42dvh; overflow-y: auto; padding: 10px 12px; border: 2px solid #f1d89f; border-radius: 14px; background: #101d2bf7; color: #eef3f8; box-shadow: 0 10px 30px #000b; }
.drill-coach header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.drill-coach header span { color: #f1d89f; font-size: 11px; font-weight: 800; }
.drill-coach header strong { flex: 1; font-size: 14px; }
.drill-coach header small { color: #b4c3cf; font-size: 11px; }
.drill-coach p { margin: 6px 0; font-size: 13px; line-height: 1.5; }
.drill-goal b { margin-right: 4px; color: #ffe2b8; }
.drill-feedback.is-ok { color: #a9f0c8; }
.drill-feedback.is-wrong { color: #ffb4b4; }
.drill-actions { display: flex; gap: 6px; }
.drill-actions .button { min-height: 44px; }
.drill-coach.is-done { border-color: #8ccfba; }
.drill-collapse { min-height: 36px; padding: 2px 10px; border: 1px solid #f1d89f88; border-radius: 999px; background: transparent; color: #f1d89f; font-size: 11px; font-weight: 700; }
.drill-coach.is-collapsed .drill-situation, .drill-coach.is-collapsed .drill-feedback, .drill-coach.is-collapsed .drill-actions { display: none; }
.drill-coach.is-collapsed .drill-goal { margin: 4px 0 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.drill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.drill-card { display: grid; gap: 6px; align-content: start; padding: 12px; border: 1px solid #7199a855; border-radius: 12px; background: #0d1a27; }
.drill-card.is-done { border-color: #8ccfba; }
.drill-card p { margin: 0; color: #c7d3dc; font-size: 12px; line-height: 1.5; }
.drill-card small { color: #b4c3cf; }
.drill-level { justify-self: start; padding: 2px 8px; border-radius: 999px; background: #2b3b4c; color: #f1d89f; font-size: 11px; font-weight: 800; }
.drill-level[data-level="1"] { background: #1f4a37; color: #c9ffe4; }
.drill-level[data-level="3"] { background: #4a3a1a; }
.drill-level[data-level="4"] { background: #4a1a24; color: #ffd0d0; }
@media (max-width: 780px) { .drill-coach { bottom: 6px; max-height: 34dvh; padding: 8px 10px; } .drill-coach p { font-size: 12px; } }
.game-page[data-phase="night"] .village-atmosphere { background: linear-gradient(180deg, #060e2340, #0a162848 25%, #060d1bd9 100%); }
.game-page[data-phase="day"] .village-art, .game-page[data-phase="vote"] .village-art { filter: brightness(1.28) saturate(.72) sepia(.12); }
.game-page[data-phase="day"] .village-atmosphere, .game-page[data-phase="vote"] .village-atmosphere { background: linear-gradient(180deg, #efce8f1c, #233b4c38 24%, #0b1829d9 100%); }
.game-page .village-atmosphere { box-shadow: inset 0 160px 160px -80px var(--weather-sky); }
.game-page[data-weather="clear"] .village-art { filter: brightness(1.12) saturate(.72) sepia(.16); }
.game-page[data-weather="cloud"] .village-art { filter: brightness(.85) saturate(.18); }
.game-page[data-weather="rain"] .village-art { filter: brightness(.72) saturate(.75) hue-rotate(12deg); }
.game-page[data-weather="fog"] .village-art { filter: brightness(.95) saturate(.5) hue-rotate(32deg); }
.game-page[data-weather="poison"] .village-art { filter: brightness(.85) sepia(.45) hue-rotate(40deg) saturate(1.3); }
.game-page[data-weather="cult"] .village-art { filter: brightness(.8) hue-rotate(70deg) saturate(1.3); }
.game-page[data-phase="night"] .village-art { opacity: .8; }
.game-page[data-weather="fog"] .village-atmosphere::before { position: absolute; inset: 0; background: repeating-linear-gradient(174deg, transparent 0 110px, #adc9d519 150px, transparent 190px); content: ""; }
.game-page[data-weather="rain"] .village-atmosphere::before { position: absolute; inset: -40px; background: repeating-linear-gradient(108deg, transparent 0 32px, #bdd6ee17 33px, transparent 34px 76px); content: ""; animation: village-rain 1.3s linear infinite; }
.game-page[data-weather="snow"] .village-atmosphere::before { position: absolute; inset: 0; background-image: radial-gradient(circle, #e8f4ff90 1px, transparent 2px), radial-gradient(circle, #e8f4ff50 1px, transparent 2px); background-size: 67px 89px, 113px 61px; content: ""; }
.game-page[data-weather="wind"] .village-atmosphere::before { position: absolute; inset: 0; background: repeating-linear-gradient(174deg, transparent 0 110px, #a5c9de16 114px, transparent 117px 195px); content: ""; }
.village-weather { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.village-weather i { position: absolute; display: block; }
.game-page[data-weather="clear"] .village-weather { background: radial-gradient(ellipse at 75% 0, #f9df9a35, transparent 50%); }
.game-page[data-weather="clear"] .village-weather i { top: 18px; right: 28px; width: 34px; height: 34px; border-radius: 50%; background: #f7e6bc; box-shadow: 0 0 40px #f6dc9c60; }
.game-page[data-weather="clear"] .village-weather i:not(:first-child) { display: none; }
.game-page[data-weather="rain"] .village-weather { background: linear-gradient(#25465d40, transparent); }
.game-page[data-weather="rain"] .village-weather i { inset: -50px; background: repeating-linear-gradient(105deg, transparent 0 44px, #d1e7fa66 45px, transparent 46px 92px); animation: village-rain .8s linear infinite; }
.game-page[data-weather="rain"] .village-weather i:nth-child(2) { opacity: .3; transform: translateX(28px); animation-duration: 1.4s; }
.game-page[data-weather="rain"] .village-weather i:nth-child(3) { display: none; }
.game-page[data-weather="snow"] .village-weather i { inset: -90px; background-image: radial-gradient(circle, #f2f8ffd9 2px, transparent 3px); background-size: 73px 97px; animation: village-snow 9s linear infinite; }
.game-page[data-weather="snow"] .village-weather i:nth-child(2) { background-size: 119px 131px; opacity: .5; animation-duration: 14s; }
.game-page[data-weather="snow"] .village-weather i:nth-child(3) { background-size: 173px 113px; opacity: .35; animation-direction: reverse; }
.game-page[data-weather="fog"] .village-weather i { left: -40%; top: 10%; width: 160%; height: 120px; border-radius: 50%; background: radial-gradient(ellipse, #b9d1dd55, transparent 70%); animation: village-fog 15s ease-in-out infinite alternate; }
.game-page[data-weather="fog"] .village-weather i:nth-child(2) { top: 38%; opacity: .65; animation-delay: -7s; }
.game-page[data-weather="fog"] .village-weather i:nth-child(3) { top: 65%; opacity: .4; animation-delay: -3s; }
.game-page[data-weather="wind"] .village-weather i { left: -45%; top: 15%; width: 45%; height: 25px; border-top: 2px solid #ccdfdd88; border-radius: 50%; animation: village-wind 5s linear infinite; }
.game-page[data-weather="wind"] .village-weather i:nth-child(2) { top: 43%; animation-delay: -2s; width: 30%; }
.game-page[data-weather="wind"] .village-weather i:nth-child(3) { top: 73%; animation-delay: -3.5s; }
.game-page[data-weather="cloud"] .village-weather { background: linear-gradient(#7d899866, #263a4b22 55%, transparent); }
.game-page[data-weather="cloud"] .village-weather i { top: 5%; left: -20%; width: 140%; height: 100px; border-radius: 50%; background: radial-gradient(ellipse, #c1cbd24d, transparent 70%); }
.game-page[data-weather="poison"] .village-weather, .game-page[data-weather="cult"] .village-weather { background: linear-gradient(#4aaf4d40, transparent 80%); }
.game-page[data-weather="poison"] .village-weather i, .game-page[data-weather="cult"] .village-weather i { left: -40%; top: 20%; width: 160%; height: 140px; background: radial-gradient(ellipse, #8bde6055, transparent 70%); animation: village-fog 15s ease-in-out infinite alternate; }
.game-page[data-weather="cult"] .village-weather { background: linear-gradient(#c37fea4a, transparent 80%); }
.game-page[data-weather="cult"] .village-weather i { background: radial-gradient(ellipse, #dfa2f655, transparent 70%); }
.game-page[data-weather="poison"] .village-weather i:nth-child(2), .game-page[data-weather="cult"] .village-weather i:nth-child(2) { top: 50%; animation-delay: -5s; }
.game-page[data-weather="poison"] .village-weather i:nth-child(3), .game-page[data-weather="cult"] .village-weather i:nth-child(3) { top: 75%; opacity: .5; }
.game-page[data-weather-strength="heavy"] .village-weather { filter: contrast(1.3); }
.game-page[data-weather-strength="heavy"] .village-weather i { opacity: 1; }
.game-page[data-weather-strength="light"] .village-weather i { opacity: .65; }
.weather-report { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: #162738; }
.weather-report > span { flex-shrink: 0; color: var(--gold); font-size: 13px; }
.weather-report p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.weather-history { display: grid; min-width: 0; gap: 10px; margin: 12px 0 18px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #101e2d; }
.weather-history > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.weather-history > div > strong { color: #c9dce8; font-size: 12px; font-weight: 500; }
.weather-history small { color: #93aabb; font-size: 10px; line-height: 1.7; }
.weather-history ol { display: flex; min-width: 0; gap: 8px; max-width: 100%; margin: 0; padding: 0 0 6px; overflow-x: auto; list-style: none; scrollbar-width: thin; scrollbar-color: #526879 transparent; }
.weather-history li { display: grid; flex: 0 0 auto; gap: 5px; min-width: 130px; padding: 10px 12px; border: 1px solid #9ab5c333; border-radius: 10px; background: #1b3040; }
.weather-history li > strong { color: #e1c695; font-size: 13px; font-weight: 500; }
.village-location { padding: 27px 28px 12px; min-height: 147px; text-shadow: 0 2px 14px #061223; }
.village-location > span { display: block; color: #d1bb91; font-size: 9px; font-weight: 700; letter-spacing: .25em; }
.village-location > strong { display: block; margin-top: 8px; font-size: 25px; font-weight: 400; letter-spacing: -.06em; }
.village-location > small { display: block; margin-top: 7px; color: #d0dce5; font-size: 12px; }
.village-seats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; padding: 0 26px 20px; }
.village-seat { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 10px 5px 8px; border: 1px solid #b7ced62b; border-radius: 15px; background: linear-gradient(160deg, #273b4d9c, #0b1727d4); box-shadow: 0 8px 14px #02071235, inset 0 1px #d3e2f510; color: #e2edf3; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.village-seat:not(:disabled):hover { transform: translateY(-3px); border-color: #dfc393a0; background: linear-gradient(160deg, #4f4e499e, #192c3ce8); }
.village-seat:disabled { cursor: default; }
.seat-number { position: absolute; top: 9px; left: 10px; color: #a9bdce; font-size: 10px; font-variant-numeric: tabular-nums; }
.seat-vote-count { position: absolute; top: 7px; right: 7px; z-index: 2; padding: 2px 5px; border: 1px solid #f3d59a99; border-radius: 99px; background: #382f20f2; color: #ffe4a4; font-size: 10px; font-weight: 800; }
.seat-portrait { position: relative; display: block; width: 63px; height: 71px; overflow: hidden; border: 1px solid #a1b5c05c; border-radius: 20px 20px 12px 12px; background: #30465a; }
.seat-portrait[data-cosmetic="guardian-skin"] .avatar-cape { fill: #526f72; }
.seat-portrait[data-cosmetic="moon-mask"] .avatar-cape { fill: #77758f; }
.seat-portrait[data-cosmetic="starlight-tag"] .avatar-cape { fill: #655181; }
.seat-portrait[data-hat="traveler-hood"] .avatar-hood { fill: #667784; stroke: #d6c49a; stroke-width: .8; }
.seat-portrait[data-hat="moon-beret"] .avatar-hat { fill: #a9aed2; stroke: #34324a; stroke-width: .8; }
.seat-portrait[data-hat="moon-beret"] .avatar-hat-detail { fill: none; stroke: #e6e5f0; stroke-width: 1.2; }
.seat-portrait[data-hat="starlight-circlet"] .avatar-hat { fill: #e6cf91; stroke: #715a33; stroke-width: .6; }
.seat-portrait[data-hat="starlight-circlet"] .avatar-hat-detail { fill: none; stroke: #e6cf91; stroke-width: 1.5; }
.avatar-shadow { fill: #0008; }
.avatar-cape { fill: var(--avatar-outerwear, #657681); stroke: #263640; stroke-width: 1.3; stroke-linejoin: round; }
.avatar-legs { fill: var(--avatar-pants, #354152); stroke: #202936; stroke-width: 1; stroke-linejoin: round; }
.avatar-boot { fill: #24252b; stroke: #151a21; stroke-width: 1; stroke-linejoin: round; }
.avatar-body, .avatar-sleeve { fill: var(--avatar-color); stroke: #354650; stroke-width: 1.2; stroke-linejoin: round; }
.avatar-cuff { fill: #c9c1aa; stroke-width: 1; }
.avatar-neck { fill: #c99474; stroke: #855f52; stroke-width: .8; }
.avatar-face { stroke: #855f52; stroke-width: .8; }
.avatar-ear { fill: #d6a382; stroke: #855f52; stroke-width: .7; }
.avatar-hair { fill: var(--avatar-hair); stroke: #201d27; stroke-width: 1; stroke-linejoin: round; }
.avatar-hair-back { fill: var(--avatar-hair); stroke: #201d27; stroke-width: 1; stroke-linejoin: round; }
.avatar-style-detail { fill: none; stroke: #553a37; stroke-width: .8; stroke-linecap: round; }
.avatar-blush { fill: #d78079; opacity: .45; }
.avatar-brow { fill: none; stroke: #33262b; stroke-width: .8; stroke-linecap: round; }
.avatar-eye { stroke: #50332f; stroke-width: .5; }
.avatar-iris { stroke: none; }
.avatar-pupil { fill: #26232b; }
.avatar-eye-glint { fill: #fff8e8; }
.avatar-style-feminine .avatar-style-detail { stroke-width: .65; }
.avatar-style-masculine .avatar-brow { stroke-width: 1.05; }
.avatar-nose { fill: none; stroke: #a56e59; stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; }
.avatar-hood { fill: #667784; stroke: #354650; stroke-width: 1; stroke-linejoin: round; }
.avatar-shirt { stroke: #303742; stroke-width: .8; stroke-linejoin: round; }
.avatar-jacket { fill: var(--avatar-outerwear, #647c83); stroke: #263640; stroke-width: .9; stroke-linejoin: round; }
.avatar-necklace { fill: none; stroke: var(--avatar-necklace, #d6c39b); stroke-width: 1.3; stroke-linecap: round; }
.avatar-pendant { fill: var(--avatar-necklace, #d6c39b); stroke: #514638; stroke-width: .55; }
.avatar-lapel { fill: #94a1a0; stroke: #344550; stroke-width: .7; stroke-linejoin: round; }
.avatar-belt { fill: #44372e; stroke: #211e1c; stroke-width: .8; }
.avatar-buckle { fill: #e2c27b; stroke: #745c35; stroke-width: .6; }
.avatar-trim { fill: #334b54; stroke: #283943; stroke-width: .7; stroke-linejoin: round; }
.avatar-seam { fill: none; stroke: #d2bd98; stroke-opacity: .55; stroke-width: .65; stroke-linecap: round; }
.avatar-clasp { fill: #e2c27b; stroke: #745c35; stroke-width: .8; }
.avatar-glint { fill: #f5e1ae; opacity: .8; }
.preview-avatar { position: relative; width: 94px; height: 112px; margin: 0 auto 14px; }
.preview-avatar .walking-person { width: 100%; height: 100%; --avatar-color: #6f8e8a; }
.preview-avatar > span { position: absolute; top: 1px; right: 8px; display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #f2d69b99; border-radius: 50%; background: #111a25e8; color: #f1d59b; font-size: 16px; }
.preview-avatar[data-cosmetic="guardian-skin"] .avatar-cape,
.seat-portrait[data-cosmetic="guardian-skin"] .avatar-cape { fill: #526f72; }
.preview-avatar[data-cosmetic="moon-mask"] .avatar-cape,
.seat-portrait[data-cosmetic="moon-mask"] .avatar-cape { fill: #77758f; }
.preview-avatar[data-cosmetic="starlight-tag"] .avatar-cape,
.seat-portrait[data-cosmetic="starlight-tag"] .avatar-cape { fill: #655181; }
.player-portrait { display: block; width: 100%; height: 100%; --skin: #d1ad95; --hair: #292e3f; --coat: #677e82; --shirt: #b8b29e; --accent: #d6c49a; }
.palette-1 { --skin: #c5997e; --hair: #403a3c; --coat: #736377; --shirt: #d1bd9f; }
.palette-2 { --skin: #a7806c; --hair: #232936; --coat: #666d83; --shirt: #c6c7b6; }
.palette-3 { --skin: #dfb99c; --hair: #644c43; --coat: #537c77; --shirt: #c9b99f; }
.palette-4 { --skin: #bc947c; --hair: #a3a7a3; --coat: #72624f; --shirt: #b6c7c7; }
.palette-5 { --skin: #d4af97; --hair: #302f38; --coat: #805a59; --shirt: #b7bba8; }
.portrait-halo { fill: #54697c33; }
.portrait-cape { fill: #293849; stroke: #182838; stroke-width: 2; stroke-linejoin: round; }
.portrait-skin { fill: var(--skin); }
.portrait-ear, .portrait-face { stroke: #855f52; stroke-width: 1.2; }
.portrait-hair { fill: var(--hair); }
.portrait-brow { fill: none; stroke: var(--hair); stroke-width: 2; stroke-linecap: round; }
.portrait-eye { fill: #282a32; }
.portrait-nose, .portrait-mouth { fill: none; stroke: #865e53; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.portrait-coat { fill: var(--coat); }
.portrait-trim { fill: #334b54; stroke: #1d303b; stroke-width: 1; }
.portrait-shirt { fill: var(--shirt); }
.portrait-scarf { fill: var(--accent); }
.portrait-scarf-mark { fill: #f0d99a; }
.portrait-seam { fill: none; stroke: #d2bd98; stroke-opacity: .7; stroke-width: 1.5; stroke-linecap: round; }
.seat-name { display: block; width: 100%; margin-top: 7px; overflow: hidden; font-size: 12px; font-weight: 500; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.seat-status { margin-top: 4px; color: #a7bdc9; font-size: 10px; }
.village-seat.is-self { border-color: #8accc16b; background: linear-gradient(150deg, #2a514f85, #102d36c7); }
.village-seat.is-self .seat-status { color: #9ed8cd; }
.village-seat.is-self { outline: 2px solid #fff0ad; outline-offset: 3px; }
.self-seat-marker { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); padding: 3px 7px; border-radius: 6px; background: #fff0ad; color: #17202c; font-size: 11px; font-weight: 800; white-space: nowrap; z-index: 3; }
.own-character-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; padding: 10px 14px; margin: 8px 0; border: 1px solid var(--identity-color); border-radius: 10px; background: #132631; font-size: 13px; }
.own-character-banner > strong { color: #fff0ad; }
.player-reference { font-weight: 700; }
.village-seat.is-selected { border-color: #f3d59a; background: linear-gradient(150deg, #7b69444f, #29333ce8); box-shadow: 0 0 0 1px #e6bf807a, 0 0 30px #e2bb691c; }
.seat-check { position: absolute; right: 0; bottom: 0; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 8px 0 0; background: #edce98; color: #172b35; font-weight: 700; font-size: 14px; }
.village-seat.is-eliminated .player-portrait { filter: grayscale(1) brightness(.55); }
.village-seat.is-eliminated .seat-name { color: #e4eaf0; text-decoration: none; }
.village-seat.is-eliminated .seat-color { color: var(--seat-color); font-weight: 800; }
.village-seats .village-seat.is-eliminated { opacity: 1; border-color: var(--seat-color); background: #152333f2; }
.report-people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.report-person { display: grid; gap: 3px; min-width: 64px; max-width: 100%; padding: 6px 9px; border: 1px solid var(--report-color); border-radius: 8px; background: #142536; overflow-wrap: anywhere; }
.report-person small { color: var(--report-color); font-size: 12px; font-weight: 800; }
.report-person strong { color: #f2f5fa; font-size: 14px; }
.alias-panel { max-width: 520px; margin: 8vh auto; text-align: center; background: linear-gradient(145deg, #223b4b, #131f32); border-color: #ba9e6b; }
.alias-panel > p { line-height: 1.8; }
.alias-clock { display: block; margin: 24px 0; color: #f6d899; font-size: 56px; font-variant-numeric: tabular-nums; }
.alias-panel label { text-align: left; }
.private-role-cue { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #a9d8d3; font-size: 11px; }
.private-role-cue svg { flex: 0 0 20px; width: 20px; height: 20px; }
.seat-eliminated { position: absolute; inset: auto 0 0; padding: 5px 0; background: #1b2234c9; color: #c9cbd3; text-align: center; font-size: 11px; }
.board-legend { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 24px; border-top: 1px solid #a9c5d51a; background: #0a1422b3; color: #a9bdcd; font-size: 11px; }
.board-legend i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #91cec1; box-shadow: 0 0 9px #91cec1; }
.match-event { display: flex; align-items: baseline; gap: 12px; padding: 13px 17px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 16px 16px; background: #142033; }
.match-event > span { flex-shrink: 0; color: var(--gold); font-size: 11px; }
.match-event p { margin: 0; color: #c5d4df; font-size: 12px; line-height: 1.7; }
.action-dock { margin-top: 18px; overflow: hidden; border: 1px solid #c9b07c40; border-radius: 17px; background: linear-gradient(120deg, #253445, #162233); }
.dock-role { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #c0d6e31c; }
.dock-role .role-emblem { flex-shrink: 0; width: 44px; height: 44px; background: #d5b67a12; border: 1px solid #d5b67a40; border-radius: 12px; }
.dock-role small { color: #a5b6c4; font-size: 10px; }
.dock-role strong { display: block; margin-top: 4px; color: var(--gold); font-size: 16px; }
.dock-role p { margin: 6px 0 0; color: #adbfcd; font-size: 12px; line-height: 1.7; }
.role-change { display: flex; align-items: flex-start; gap: 14px; margin: 16px; padding: 18px; border: 1px solid #d1ad6b70; border-radius: 14px; background: radial-gradient(ellipse at top left, #b98b3830, transparent 70%), #252e3d; }
.role-change-seal { display: grid; flex-shrink: 0; place-items: center; width: 44px; height: 48px; border: 1px solid #dabb7a66; border-radius: 8px 16px 8px 16px; background: #b28a421a; color: #f1d193; font-size: 26px; }
.role-change > div { min-width: 0; }
.role-change .eyebrow { margin: 0; color: #c5ab7d; font-size: 9px; letter-spacing: .14em; }
.role-change h2 { margin: 8px 0; color: #f1d193; font-size: 18px; font-family: inherit; }
.role-change p { margin: 8px 0 0; color: #c0cedb; line-height: 1.8; font-size: 12px; overflow-wrap: anywhere; }
.action-dock .action-card.result-card { position: relative; padding: 28px 22px; background: radial-gradient(ellipse at top right, #c5a06420, transparent 70%); }
.action-dock .result-card[data-winner="mafia"] { background: radial-gradient(ellipse at top right, #b0667940, transparent 70%); }
.action-dock .result-card[data-winner="town"] { background: radial-gradient(ellipse at top right, #75c5b52b, transparent 70%); }
.result-emblem { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border: 1px solid #dbc18d66; border-radius: 22px; background: #ead09b0a; color: #ead09b; box-shadow: 0 0 35px #ead09b16; font-size: 30px; }
.action-dock .action-card.result-card h2 { color: #f0dab0; font-size: 25px; }
.result-summary { padding: 14px 0; border-top: 1px solid #a6bfd62b; border-bottom: 1px solid #a6bfd62b; color: #c8d9e4; line-height: 1.9; font-size: 13px; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.result-actions .waiting-hint { flex-basis: 100%; }
.result-actions button { min-height: 48px; }
.action-dock .action-card { border: 0; border-radius: 0; padding: 18px 20px; background: none; }
.action-dock .action-card h2 { font-size: 20px; font-family: inherit; font-weight: 500; }
.action-dock .action-card .eyebrow { color: #99b5cb; font-size: 10px; }
.game-page .button { min-height: 46px; background: linear-gradient(120deg, #e7ce9f, #c5a66e); border-color: #e0c18c; border-radius: 11px; color: #182535; font-size: 13px; }
.game-page .button.secondary { border-color: #7d94a54d; background: #1e3042; color: #d2dfe7; }
.target-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0; padding: 12px; border-radius: 10px; background: #09172973; }
.target-summary > span { color: #90a6b8; font-size: 11px; }
.target-summary > strong { min-width: 0; flex: 1; color: #e0cba7; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; font-weight: 500; }
.target-summary button { min-height: 44px; padding: 5px 9px; border: 1px solid #91a8bb33; border-radius: 8px; background: none; color: #b1c5d3; font-size: 12px; cursor: pointer; }
.night-submit { display: flex; gap: 8px; }
.night-submit .secondary { flex-shrink: 0; }
.command-targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.command-targets button { display: grid; gap: 5px; min-width: 0; min-height: 58px; padding: 10px; text-align: left; border: 1px solid #93a7ba50; border-radius: 10px; background: #1d3042; color: #dce7ef; cursor: pointer; }
.command-targets button[aria-pressed="true"] { border-color: var(--gold); background: #34404a; }
.command-targets small { color: #b6c8d6; font-size: 11px; }
.command-targets strong { overflow-wrap: anywhere; font-size: 13px; }
.command-targets .secondary { grid-column: 1 / -1; min-height: 44px; }
.mafia-plan { padding: 16px; border: 1px solid #c98e6366; border-radius: 18px; background: radial-gradient(circle at 0 0, #74473355, transparent 58%), linear-gradient(145deg, #281d24, #171923); box-shadow: 0 12px 32px #080a1070; }
.mafia-plan header { margin-bottom: 12px; }
.mafia-plan h2 { margin: 0; font-size: 16px; color: #ffe2b8; }
.mafia-plan p { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; color: #d4c0b9; }
.mafia-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.mafia-plan-entry { min-width: 0; padding: 12px; border: 1px solid #b1a3a833; border-left: 4px solid #d89b59; border-radius: 12px; background: #11141bc9; }
.mafia-plan-order { border-left-color: #f2b25f; }
.mafia-plan-recruitment { border-left-color: #bd83e8; }
.mafia-plan-attack { border-left-color: #e66d72; }
.mafia-plan-kind { display: block; margin-bottom: 8px; color: #f6d29a; font-size: 12px; font-weight: 850; }
.mafia-plan-recruitment .mafia-plan-kind { color: #dfb8fb; }
.mafia-plan-attack .mafia-plan-kind { color: #ffadb0; }
.mafia-plan-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.mafia-plan-person { display: grid; min-width: 0; gap: 3px; }
.mafia-plan-person small { color: #9cabb8; font-size: 10px; }
.mafia-plan-person strong { overflow-wrap: anywhere; color: #fff4e9; font-size: 14px; }
.mafia-roster li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.mafia-roster li small { color: #b7c3cc; font-size: 11px; }
.mafia-roster li.is-dead small { color: #e0a4aa; font-weight: 800; }
.mafia-plan-arrow { color: #d9a878; font-size: 20px; font-weight: 900; }
.team-discussion .claim-notice { color: #d6bcdf; }
.team-discussion[data-channel="society"] .claim-notice { color: #b8d7c4; }
.team-discussion[data-channel="undead"] .claim-notice { color: #b9d09a; }
.team-discussion[data-channel="cult"] .claim-notice { color: #e4d29d; }
.team-discussion[data-channel="spirits"] .claim-notice { color: #b2cedf; }
.public-draft-note { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.public-draft-note summary { min-height: 44px; color: #c1cfda; font-size: 12px; cursor: pointer; }
.game-page .speech-options { margin: 12px 0 0; }
.game-page .speech-option { min-height: 82px; background: #1d3042; border-color: #93a7ba30; }
.game-page .speech-option strong { font-size: 13px; }
.game-page .speech-option small { font-size: 11px; }
.match-intel { position: sticky; top: max(8px, env(safe-area-inset-top)); max-height: calc(100dvh - 16px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: 18px; background: #111e2df2; }
.intel-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); background: #192839; }
.match-intel > .intel-tabs { position: sticky; top: 0; z-index: 8; }
.intel-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 58px; padding: 12px 8px; border: 0; border-bottom: 2px solid transparent; background: none; color: #8ea6b9; font-size: 14px; cursor: pointer; }
.intel-tabs button span { color: #768da0; font-size: 9px; }
.intel-tabs button[aria-selected="true"] { border-bottom-color: var(--gold); background: #203143; color: #e8d2ad; }
.match-intel [hidden] { display: none; }
.match-intel .panel { margin: 0; border: 0; border-radius: 0; padding: 20px; background: none; box-shadow: none; }
.match-intel h2 { font-size: 16px; font-weight: 500; }
.match-intel .section-kicker { font-size: 10px; }
.match-intel .claim-notice { font-size: 12px; color: #acbbc7; }
.match-intel .game-feed { min-height: 270px; max-height: 400px; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; align-content: start; margin: 18px -4px 12px; padding: 12px 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: #435b72 transparent; }
.private-case-notes { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; background: #0e1a29; }
.private-case-notes > summary { min-height: 44px; padding: 12px; color: #e8d6a8; cursor: pointer; }
.private-case-notes > p { margin: 0 12px 10px; color: var(--muted); font-size: 11px; }
.case-note { display: grid; gap: 8px; min-width: 0; margin: 8px; padding: 10px; border: 1px solid var(--note-color); border-radius: 10px; }
.case-note legend { padding: 0 5px; color: var(--note-color); font-size: 12px; font-weight: 800; }
.case-note label { display: grid; gap: 4px; color: #c6d3de; font-size: 11px; }
.case-note select, .case-note textarea { box-sizing: border-box; width: 100%; min-height: 44px; padding: 9px; border: 1px solid #71859a66; border-radius: 8px; background: #0b1420; color: #edf2f6; font: inherit; }
.case-note textarea { min-height: 64px; font-size: 16px; resize: vertical; }
.match-intel .feed-line { gap: 6px; margin-bottom: 9px; font-size: 15px; line-height: 1.5; }
.match-intel .feed-line strong { font-size: 12px; }
.feed-line .feed-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--identity-color); }
.feed-identity b { font-size: 15px; }
.feed-identity small { color: var(--identity-color); font-size: 12px; font-weight: 600; }
.identity-text, .feed-line span.identity-text { color: var(--identity-color); font-weight: 750; }
.discussion-panel .feed-line { border-left: 4px solid var(--speaker-color, #aab2bf); padding-left: 10px; }
.discussion-panel .feed-spirit { background: #080c16; border-left-style: dashed; color: #989eac; padding: 10px; border-radius: 6px; }
.feed-spirit > span, .feed-spirit .spirit-label { color: #a1a6b3; }
.village-seats .village-seat.is-eliminated { border-color: #535965; background: #11151ded; }
.village-seat.is-eliminated .seat-color, .village-seats .village-seat.is-eliminated .seat-name { color: var(--seat-color); }
.village-seat.is-eliminated .seat-portrait { opacity: .4; filter: grayscale(1); }
.village-seat.is-eliminated .seat-eliminated { opacity: 1; background: #070a10; color: #f0f0f0; font-weight: 800; }
.village-seat:not(.is-eliminated) .player-portrait { animation: resident-breathe 4s ease-in-out infinite; transform-origin: bottom; }
.village-seat:nth-child(3n) .player-portrait { animation-delay: -1.4s; }
.village-seat:nth-child(3n + 1) .player-portrait { animation-delay: -2.8s; }
.village-seat:has(.seat-speech) { z-index: calc(20 + var(--speech-layer, 0)); }
.seat-speech { --speech-duration: 14s; position: absolute; z-index: 21; bottom: calc(100% + 7px); left: 50%; width: clamp(115px, 16vw, 180px); padding: 9px; border: 1px solid var(--seat-color); border-radius: 12px 12px 12px 0; background: #101b2bf5; color: #f4f5f7; font-size: 12px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; pointer-events: none; animation: speech-rise var(--speech-duration) both; animation-delay: var(--speech-age); }
.seat-speech b { display: block; color: var(--seat-color); font-size: 11px; margin-bottom: 4px; }
.seat-speech.speech-below { bottom: auto; top: calc(100% + 7px); }
.game-page.is-urgent .phase-clock, .game-page.is-urgent .plaza-clock time { color: #ff7979; animation: urgent-clock .8s ease-in-out infinite alternate; }
.seat-speech.is-spirit { background: #080b12f5; border-color: #626874; color: #9da3af; }
.seat-speech.is-team { background: #0b2925f5; border-color: #91d6c5; }
.seat-speech.speech-left { left: auto; right: 50%; }
.match-cinema { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 18px; background: radial-gradient(ellipse, #182e47eb, #020611f5); backdrop-filter: blur(10px); overflow-y: auto; overscroll-behavior: contain; }
.cinema-card { width: min(100%, 540px); max-height: calc(100dvh - 36px); overflow-y: auto; text-align: center; padding: 28px 22px; border: 1px solid #9eafc45e; border-radius: 24px; box-shadow: 0 0 100px #527ba13b; background: #0e1929; animation: cinema-enter .4s ease-out; }
.cinema-card h2 { margin: 12px 0; font-size: clamp(25px, 5vw, 38px); }
.cinema-card p, .cinema-card li { line-height: 1.7; }
.cinema-card ol { padding-left: 22px; text-align: left; }
.cinema-icon { font-size: 58px; color: #f0d395; }
.cinema-signals { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.cinema-signals > div { width: 100px; animation: clue-arrive .6s both; animation-delay: var(--event-delay); }
.cinema-signals svg { width: 64px; height: 64px; color: #f3d6a0; }
.cinema-signals strong { display: block; font-size: 12px; }
.evidence-composer { display: grid; gap: 10px; padding: 14px; border: 1px solid #829cb447; border-radius: 12px; }
.evidence-composer select { width: 100%; min-height: 44px; }
.weather-victims { padding: 14px 18px; border: 1px solid #7f9fb34d; border-radius: 12px; background: #142234; margin-bottom: 14px; }
.weather-victims p { margin: 8px 0; }
.weather-victims small { color: #b2bfce; line-height: 1.6; }
.weather-cumulative { border-color: #8aa3b54d; background: linear-gradient(135deg, #17283b, #11202e); }
.weather-execution { border-color: #d4ad695e; background: linear-gradient(135deg, #332a20, #172433 78%); box-shadow: 0 0 24px #d4ad6914; }
.weather-execution h3 { color: #f0d49a; }
.weather-execution-summary { color: #f5e5c0; font-weight: 700; }
.faction-chip { display: inline-flex; align-items: center; min-height: 23px; margin: 2px 3px 2px 0; padding: 2px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.faction-mafia { color: #ff9a91; background: #8e292944; }
.faction-neutral { color: #d7aaff; background: #632e8544; }
.faction-town { color: #a8e7ac; background: #276c3b44; }
.faction-undead { color: #c0c7d0; background: #59616d55; }
.faction-cult { color: #f1c278; background: #8c622a44; }
.demo-notice.compact-demo { display: block; margin-bottom: 12px; padding: 10px 14px; }
.compact-demo summary { cursor: pointer; color: #e1c480; font-size: 12px; }
.compact-demo[open] span { display: block; margin-top: 8px; font-size: 12px; }
.game-page[data-weather="rain"] .village-weather i { background-size: 92px 140px; animation-name: rain-fall; animation-duration: .65s; }
.game-page[data-weather="rain"] .village-weather i:nth-child(2) { background-size: 70px 95px; animation-duration: 1.1s; }
.game-page[data-weather="rain"] .village-weather i:nth-child(3) { display: block; inset: 0; background: radial-gradient(ellipse, transparent 35%, #bad7e84d 40%, transparent 48%); background-size: 110px 55px; opacity: .3; animation: puddle-ripple 2s ease-out infinite; }
@keyframes resident-breathe { 50% { transform: translateY(-2px) rotate(1deg); } }
@keyframes speech-rise { 0% { opacity: 0; transform: translateY(8px); } 8%, 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); visibility: hidden; } }
@keyframes speech-hold { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes cinema-enter { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes clue-arrive { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes rain-fall { to { background-position: -40px 280px; } }
@keyframes mobile-rain-drift { to { transform: translate3d(0, 140px, 0); } }
@keyframes urgent-clock { to { text-shadow: 0 0 15px #ff555599; } }
@keyframes puddle-ripple { from { background-position: 0 0; opacity: .1; } to { background-position: 30px 20px; opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .village-seat .player-portrait, .village-weather i, .village-atmosphere::before, .cinema-card, .cinema-signals > div, .game-page.is-urgent time { animation: none !important; }
  /* The duration here is a reading timeout, not a motion effect. */
  .seat-speech { animation-name: speech-hold; animation-duration: var(--speech-duration) !important; animation-timing-function: steps(1, end); }
}
.village-seats .seat-name, .village-seat.is-eliminated .seat-name { color: var(--seat-color); font-weight: 700; }
.match-intel .feed-line > span { display: block; padding: 10px 12px; border: 1px solid #adc9df12; border-radius: 0 12px 12px; background: #203044; color: #d8e4eb; }
.match-intel .feed-spirit > span { background: #0a101b; color: #a1a6b3; }
.match-intel .feed-system { padding: 8px 0; color: #c4b897; font-size: 14px; line-height: 1.5; }
.match-intel .quick-claims { gap: 6px; }
.match-intel .quick-claims button { flex: 1; padding: 8px 5px; border-color: #91a9bf30; background: #1c2e41; color: #d4dfe7; font-size: 12px; }
.public-claim-board { margin: 16px 0; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: #101e2c; }
.public-claim-board h2 { margin: 0; font-size: 18px; }
.public-claim-board .claim-notice, .claim-guide { color: var(--muted); font-size: 12px; line-height: 1.8; }
.claim-guide summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--gold); }
.claim-guide ul { margin: 0 0 14px; padding-left: 20px; }
.claim-guide li { margin: 8px 0; }
.claim-group { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.claim-group.is-contested { border-color: #d4a16d80; background: #352b252b; }
.claim-group header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.claim-group header > strong { color: var(--gold); }
.claim-group header > span, .claim-group small { color: var(--muted); font-size: 12px; }
.claim-group button { margin-left: auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #203348; color: #eaf0f4; cursor: pointer; }
.claim-group article { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.claim-group article small { margin-left: 10px; }
.claim-group article p { margin: 6px 0; line-height: 1.7; font-size: 13px; }
.claim-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 8px; }
.claim-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 8px; min-width: 0; }
.claim-groups .claim-group { margin: 0; }
.claim-group > header { grid-column: 1 / -1; gap: 6px; }
.claim-group .claimant-card { margin: 0; padding: 9px; border: 1px solid var(--claim-color); border-radius: 8px; background: #142534; }
.claimant-card header > strong { color: var(--claim-color); font-size: 16px; }
.claimant-card header > small { margin: 0; font-size: 11px; }
.claim-night-lines { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.claim-night-lines > span { padding: 5px 7px; border-radius: 5px; background: #263b4c; color: #eff5f7; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.claim-original summary { min-height: 32px; padding-top: 8px; font-size: 11px; color: #a7bac8; cursor: pointer; }
@media (max-width: 780px) {
  .claim-groups { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .claim-groups > .claim-group { flex: 0 0 min(340px, 88vw); scroll-snap-align: start; }
}
.match-evidence-column { min-width: 0; }
.match-evidence-column .public-claim-board { margin: 0; }
.weather-between-plaza { margin: 8px 12px 14px; padding: 10px 12px; border: 1px solid #829cb447; border-radius: 12px; background: #142332; }
.weather-between-plaza > h2 { margin: 0 0 8px; color: #d4c29e; font-size: 14px; }
.weather-between-plaza > .weather-overview { margin: 8px 0; }
.weather-between-plaza .weather-history { margin: 8px 0; }
.room-timing-settings { display: grid; gap: 10px; min-width: 0; margin: 12px 0; padding: 12px; border: 1px solid #738b9270; border-radius: 12px; }
.room-timing-settings > .form-hint { margin: 0; }
.room-timing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.room-timing-grid label { display: grid; gap: 6px; min-width: 0; font-weight: 700; }
.room-timing-grid input { width: 100%; min-width: 0; min-height: 48px; box-sizing: border-box; padding: 9px 11px; border: 1px solid #718993; border-radius: 8px; background: #111f2d; color: #f3f3e9; font: inherit; font-size: 16px; }
.room-timing-grid input:disabled { opacity: .55; }
.room-timing-grid small, .room-night-auto small { color: #adbfcd; font-size: 12px; line-height: 1.5; font-weight: 400; }
.room-night-auto { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; cursor: pointer; }
.room-night-auto input { flex: 0 0 24px; width: 24px; height: 24px; margin: 1px 0 0; }
.room-night-auto span { display: grid; gap: 3px; }
@media (min-width: 781px) {
  .match-layout { align-items: start; }
  .match-stage-column { grid-column: 1; grid-row: 1; }
  .match-evidence-column { grid-column: 1; grid-row: 2; }
  .match-intel { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; scrollbar-width: thin; }
}
.claim-badge { color: var(--gold); font-size: 10px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-actions button { min-height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #203348; color: #eaf0f4; cursor: pointer; }
.report-actions button:disabled { opacity: .45; cursor: default; }
.recruitment-report-shortcut { display: grid; gap: 8px; padding: 12px; margin: 10px 0; border: 1px solid #d2a96c88; border-radius: 12px; background: linear-gradient(135deg, #3a3022, #1a2531); }
.recruitment-report-shortcut > strong { color: #f4d391; font-size: 14px; }
.recruitment-report-shortcut > p { margin: 0; color: #d5dce0; font-size: 12px; line-height: 1.6; }
.recruitment-report-shortcut > button { min-height: 46px; white-space: normal; }
.recruitment-report-shortcut .report-actions > button { flex: 1 1 145px; white-space: normal; }
.intervention-ledger { margin: 12px 0 20px; }
.report-ledger-heading { margin-top: 14px; }
.intervention-ledger summary { display: flex; align-items: center; min-height: 44px; color: var(--gold); cursor: pointer; font-size: 13px; }
.report-ledger-line { display: block; width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.report-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 4px 10px; padding: 6px 0; }
.report-detail-line { min-width: 0; margin: 0; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.report-grid > div { min-width: 0; padding: 10px; border-radius: 8px; background: #1c2b3b; font-size: 12px; }
.report-grid strong { color: #d4dfe7; }
.report-grid p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.match-intel .quick-claims { flex-wrap: wrap; }
.match-intel .quick-claims button { min-height: 44px; min-width: 76px; }
.match-intel .quick-claims button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.match-intel .chat-form label span { font-size: 11px; }
.match-intel .chat-compose { gap: 6px; }
.match-intel .chat-compose input { font-size: 16px; }
.match-intel .chat-compose .button { padding: 8px 14px; }
.match-intel .form-hint { margin: 10px 0 0; font-size: 11px; }
.match-intel .journal-list { max-height: 540px; }
.match-intel .journal-list strong { font-size: 13px; }
.match-intel .journal-list button { flex-shrink: 0; padding: 8px; font-size: 12px; }
.journal-event { color: #e1be88 !important; }
@keyframes village-rain { to { transform: translate(-10px, 32px); } }
@keyframes village-snow { to { transform: translate(25px, 97px); } }
@keyframes village-fog { to { transform: translateX(22%); } }
@keyframes village-wind { to { transform: translateX(340%); } }
.beginner-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0; padding: 22px; border: 1px solid #b99a6655; border-radius: 18px; background: linear-gradient(120deg, #29394b, #182334); color: #e6edf3; }
.beginner-entry h2 { margin: 0; font-size: 20px; }
.beginner-entry p { max-width: 650px; color: #bdceda; line-height: 1.7; font-size: 13px; }
.first-night-path { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr); gap: 22px; margin: 18px 0 24px; padding: clamp(18px, 3vw, 30px); border: 1px solid #d6bd8366; border-radius: 20px; background: radial-gradient(ellipse at 12% 0, #8b714529, transparent 48%), linear-gradient(135deg, #1d3040, #111e2c); box-shadow: 0 12px 32px #0003; }
.first-night-path-copy > .eyebrow { margin: 0 0 8px; color: #f0d496; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.first-night-path h2 { margin: 0; font-size: clamp(21px, 3vw, 29px); line-height: 1.3; }
.first-night-path-copy > p:not(.eyebrow) { max-width: 620px; color: #c1cfda; line-height: 1.7; }
.first-night-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; max-width: 360px; margin: 16px 0; }
.first-night-progress strong { color: #f0d496; font-size: 18px; }
.first-night-progress span { color: #ccd7df; font-size: 12px; }
.first-night-progress > div { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 99px; background: #62738566; }
.first-night-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #bba06a, #9fe2c9); transition: width .25s ease; }
.first-night-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.first-night-actions .button { min-height: 46px; }
.first-night-steps { display: grid; align-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.first-night-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; border: 1px solid #8197a144; border-radius: 12px; background: #0c19245c; }
.first-night-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #d8c28c88; border-radius: 50%; color: #f0d496; font-weight: 800; }
.first-night-steps li.is-done { border-color: #83cbb377; }
.first-night-steps li.is-done > span { border-color: #83cbb3; color: #aaf0d7; }
.first-night-steps strong, .first-night-steps small { display: block; }
.first-night-steps strong { font-size: 12px; }
.first-night-steps small { margin-top: 3px; color: #b6c4cf; font-size: 10px; line-height: 1.4; }
.academy-path { scroll-margin-top: 16px; }
.academy-path > .eyebrow { margin-bottom: 6px; color: #f0d496; font-weight: 800; letter-spacing: .1em; }
.academy-path ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-left: 24px; }
.academy-path li { padding-left: 4px; color: #d3dee6; font-size: 13px; line-height: 1.55; }
.academy-path > small { display: block; margin-top: 10px; color: #afbec9; line-height: 1.6; }
.drill-more { margin-top: 14px; padding: 10px; border: 1px solid #7199a855; border-radius: 12px; background: #0c192455; }
.drill-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #f1d89f; font-weight: 700; }
.drill-more .drill-grid { margin-top: 8px; }
@media (max-width: 780px) {
  .first-night-path { grid-template-columns: 1fr; gap: 14px; }
  .first-night-steps { grid-template-columns: 1fr; }
  .academy-path ol { grid-template-columns: 1fr; gap: 6px; }
  .first-night-actions .button { flex: 1 1 100%; }
}
.beginner-coach { padding: 0 14px; border: 1px solid #8accc14a; border-radius: 12px; background: #183330; }
.beginner-coach > button { width: 100%; min-height: 48px; padding: 10px 0; border: 0; background: none; color: #c2e8df; text-align: left; font-size: 13px; cursor: pointer; }
.beginner-coach p { color: #c1d4cf; line-height: 1.8; font-size: 13px; }
.beginner-coach [hidden] { display: none; }
.tutorial-player { margin: 20px 0; padding: 24px; border: 1px solid #c1a67466; border-radius: 20px; background: linear-gradient(145deg, #233449, #101c2c); color: #e5edf4; }
.tutorial-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tutorial-heading .eyebrow { margin: 0; color: #e8c991; }
.tutorial-player h2 { font-family: inherit; font-size: 22px; line-height: 1.5; }
.tutorial-player p { color: #b9ccd8; font-size: 13px; line-height: 1.8; }
.tutorial-film { position: relative; display: grid; place-items: center; gap: 18px; min-height: 220px; overflow: hidden; padding: 24px; border: 1px solid #8daeb43b; border-radius: 15px; background: radial-gradient(ellipse at top, #3c5571, #111e31 70%); }
.tutorial-player[data-scene="day"] .tutorial-film { background: radial-gradient(ellipse at top, #6b6250, #243243 70%); }
.tutorial-player[data-scene="vote"] .tutorial-film { background: radial-gradient(ellipse at top, #6a475c, #222037 70%); }
.tutorial-emblem { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid #e6c88d88; border-radius: 24px; color: #efd9ae; background: #101c2b99; box-shadow: 0 0 45px #dfc28322; font-size: 35px; }
.tutorial-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.tutorial-story > span { display: grid; gap: 8px; min-width: 0; padding: 14px 10px; border: 1px solid #c3d6e344; border-radius: 12px; background: #152638dc; text-align: center; line-height: 1.6; font-size: 13px; animation: tutorial-enter .6s ease both; animation-delay: calc(var(--beat) * .35s); }
.tutorial-story b { color: #dabb81; font-size: 11px; }
.tutorial-quiz { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; border: 0; }
.tutorial-quiz legend { margin-bottom: 12px; font-size: 14px; line-height: 1.7; }
.tutorial-choice { min-height: 48px; padding: 12px; border: 1px solid #91abb94f; border-radius: 10px; background: #23384b; color: #dce8ef; text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.tutorial-choice[aria-pressed="true"] { border-color: #e1bf80; background: #3b4248; }
.tutorial-player .tutorial-feedback { min-height: 48px; color: #e2c597; }
.tutorial-player .tutorial-feedback.is-correct { color: #a3ded0; }
.tutorial-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tutorial-controls > span { color: #a4b9ca; font-size: 12px; white-space: nowrap; }
.role-handbook { margin-top: 24px; }
.role-handbook summary { min-height: 48px; padding: 14px 0; cursor: pointer; font-size: 14px; }
.role-handbook details { border-bottom: 1px solid #91a9bf30; }
.role-handbook p { line-height: 1.8; font-size: 13px; }
@keyframes tutorial-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1200px) {
  .village-seats { gap: 15px 24px; padding-right: 38px; padding-left: 38px; }
  .seat-portrait { width: 72px; height: 81px; }
  .village-location { min-height: 176px; }
}
@media (max-width: 1050px) {
  body.is-playing .main-content { padding: 18px; }
  .match-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
  .match-intel .panel { padding: 15px; }
  .village-seats { gap: 10px; padding-right: 15px; padding-left: 15px; }
  .seat-number { top: 6px; left: 6px; font-size: 9px; }
  .seat-portrait { width: 52px; height: 59px; }
  .seat-name { font-size: 11px; }
  .village-location { padding-left: 20px; }
}
@media (max-width: 760px) {
  body.is-playing .main-content { padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 24px max(12px, env(safe-area-inset-left)); }
  .match-hud { flex-wrap: wrap; min-height: 88px; gap: 14px 8px; }
  .match-brand { gap: 9px; }
  .match-brand .brand-mark { width: 31px; height: 36px; font-size: 16px; }
  .match-brand strong { font-size: 16px; }
  .match-brand small { font-size: 10px; }
  .match-exit { margin-left: auto; font-size: 11px; }
  .match-tools { margin-left: auto; gap: 6px; }
  .phase-hud { order: 3; flex: 1 0 100%; justify-content: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; background: #152235; }
  .phase-hud h1 { margin-bottom: 3px; font-size: 17px; }
  .phase-symbol { font-size: 27px; }
  .phase-weather { font-size: 10px; }
  .phase-clock { margin-left: auto; padding: 7px 9px; font-size: 22px; border: 0; background: none; }
  .match-progress { justify-content: space-between; gap: 5px; margin: 12px 0; padding: 10px 0; }
  .match-progress span { gap: 4px; font-size: 10px; white-space: nowrap; }
  .match-progress b { font-size: 8px; }
  .match-progress .is-current::after { bottom: -11px; }
  .match-layout { grid-template-columns: 1fr; gap: 15px; }
  .experimental-rules { margin: 0 0 12px; font-size: 11px; }
  .village-board { min-height: 0; border-radius: 17px 17px 4px 4px; }
  .village-location { min-height: 139px; padding: 20px 18px 12px; }
  .village-location > strong { font-size: 22px; }
  .village-location > small { font-size: 11px; }
  .village-seats { gap: 9px; padding: 0 12px 14px; }
  .village-seat { min-height: 100px; padding: 8px 3px; border-radius: 11px; }
  .seat-portrait { width: 45px; height: 51px; border-radius: 15px 15px 9px 9px; }
  .seat-number { left: 5px; top: 5px; font-size: 8px; }
  .seat-name { margin-top: 6px; font-size: 11px; }
  .seat-status { font-size: 9px; }
  .board-legend { gap: 6px; padding: 11px 12px; font-size: 10px; }
  .match-event { gap: 8px; padding: 11px 12px; }
  .match-event p { font-size: 11px; }
  .action-dock { margin-top: 12px; }
  .dock-role { padding: 13px 14px; }
  .dock-role p { font-size: 12px; }
  .role-change { gap: 10px; margin: 12px; padding: 14px; }
  .role-change h2 { font-size: 16px; }
  .action-dock .action-card { padding: 15px 14px; }
  .action-dock .action-card h2 { font-size: 17px; }
  .game-page .action-card > p:not(.eyebrow) { font-size: 12px; }
  .match-intel .game-feed { min-height: 180px; max-height: 280px; }
  .intel-tabs button { min-height: 52px; }
  .night-submit .button { font-size: 12px; }
  .tutorial-player { padding: 16px; }
  .tutorial-player h2 { font-size: 18px; }
  .tutorial-film { padding: 16px 10px; }
  .tutorial-story { gap: 6px; }
  .tutorial-story > span { padding: 10px 5px; font-size: 11px; overflow-wrap: anywhere; }
  .tutorial-controls .button { padding: 10px; font-size: 12px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .village-atmosphere::before { animation: none !important; }
  .village-weather i, .tutorial-story > span { animation: none !important; }
  .game-page[data-weather="wind"] .village-weather i { left: 30%; }
  .village-seat { transition: none; }
}
.claim-builder { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; min-width: 0; margin: 12px 0; border: 1px solid #50636b; border-radius: 12px; padding: 12px; }
.claim-builder label { display: grid; gap: 6px; min-width: 0; }
.claim-builder select { min-height: 44px; width: 100%; min-width: 0; background: #18282d; color: #f4f0df; border: 1px solid #6b8086; border-radius: 8px; padding: 8px; }
.claim-builder legend { max-width: 100%; font-size: 0.85rem; }
.claim-builder .form-hint { grid-column: 1 / -1; }
.special-rules { display: grid; gap: 10px; min-width: 0; border: 1px solid #50636b; border-radius: 12px; padding: 12px; }
.special-rules label { display: flex; gap: 10px; align-items: center; min-height: 48px; cursor: pointer; }
.special-rules input[type="checkbox"] { flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; }
.special-rules label span { display: grid; gap: 4px; min-width: 0; }
.special-rules small { color: #a6b9c2; line-height: 1.5; }
.village-seats { position: relative; display: block; height: 800px; padding: 0; margin: 0 8px; }
.village-seats.is-walkable { cursor: crosshair; touch-action: manipulation; }
.village-seats::before { content: ""; position: absolute; inset: 15% 17%; border: 1px dashed #b7cdd55c; border-radius: 50%; background: radial-gradient(ellipse, #9dc4be19, transparent 65%); pointer-events: none; }
.village-seats .village-seat { position: absolute; left: var(--seat-x); top: var(--seat-y); transform: translate(-50%, -50%); width: 76px; height: 118px; min-height: 44px; padding: 5px 2px; border: 2px solid var(--seat-color); border-radius: 12px; overflow: visible; transition: left .22s linear, top .22s linear; }
.village-seats .village-seat:not(:disabled):hover { transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--seat-color); }
.village-seats .seat-portrait { width: 35px; height: 39px; border-radius: 9px; }
.village-seats .walking-person { --avatar-color: var(--seat-color); width: 100%; height: 100%; display: block; }
.village-seats .seat-number { top: 4px; left: 4px; font-size: 8px; }
.seat-color { color: var(--seat-color); font-size: 10px; line-height: 16px; font-weight: 700; }
.village-seats .seat-name { margin-top: 3px; font-size: 10px; line-height: 12px; }
.village-seats .seat-status { font-size: 9px; line-height: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.game-page[data-phase="vote"] .village-seats .seat-status { display: none; }
.game-page[data-phase="vote"] .village-seats .village-seat:has(.seat-ballot) .seat-portrait { display: none; }
.seat-ballot { display: grid; align-content: center; gap: 2px; width: 100%; min-height: 40px; padding: 3px 1px; border: 1px solid #637785; border-radius: 7px; background: #101e2af5; color: #b4c2cd; font-size: 10px; line-height: 14px; pointer-events: none; }
.seat-ballot.has-ballot { border-color: var(--ballot-color); color: var(--ballot-color); }
.ballot-color, .ballot-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-ballot .ballot-color { font-size: 12px; font-weight: 800; }
.seat-ballot .ballot-name { color: #f2f6fa; font-size: 10px; }
.public-ballots { position: relative; margin: 12px; padding: 12px; border-radius: 12px; background: #101b2be8; font-size: 12px; }
.public-ballots > strong { display: block; margin-bottom: 10px; }
.public-ballots > summary, .discussion-tools > summary, .discussion-help > summary { display: list-item; min-height: 44px; padding: 12px 4px; cursor: pointer; font-size: 12px; }
.discussion-tools { margin-top: 10px; border-top: 1px solid var(--border); }
.public-ballots { padding-top: 2px; padding-bottom: 2px; }
.public-ballots > div { display: flex; gap: 12px; justify-content: space-between; padding: 5px 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .village-seats { height: 800px; margin: 0; }
  .village-seats .village-seat { width: 54px; height: auto; min-height: 126px; box-sizing: border-box; }
  .village-seats .seat-portrait { width: 31px; height: 44px; }
  .village-seats .claim-badge { max-width: 100%; overflow-wrap: anywhere; white-space: normal; font-size: 8px; line-height: 1.2; text-align: center; }
}
.table-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 132px; text-align: center; z-index: 2; }
.table-center:not(.plaza-night-controls) { width: 260px; }
.village-location { position: relative; padding-right: 136px; }
.plaza-clock { position: absolute; right: 20px; top: 25px; display: grid; gap: 4px; width: min(39%, 210px); min-width: 132px; padding: 10px; border: 1px solid #ceaf725e; border-radius: 12px; background: linear-gradient(135deg, #223749ed, #10202ee8); text-align: center; box-shadow: 0 4px 20px #06101b80, inset 0 1px #ffeac51a; }
.plaza-clock span { font-size: 11px; color: #f1d8a8; }
.plaza-clock time { font-size: 26px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .03em; }
.plaza-clock small { font-size: 9px; color: #aebfc9; }
.plaza-clock .plaza-weather-fact { display: grid; gap: 2px; padding-top: 5px; border-top: 1px solid #bbd0df33; }
.plaza-clock .plaza-weather-fact b { color: var(--weather-accent); font-size: 11px; }
.plaza-clock .plaza-weather-fact small { color: #c3d0d9; font-size: 9px; line-height: 1.35; }
.plaza-orbit { position: absolute; inset: 8% 10%; pointer-events: none; border: 1px solid #d4b16a38; border-radius: 50%; box-shadow: 0 0 32px #8cb4c210, inset 0 0 40px #e6ba6610; }
.plaza-orbit::before, .plaza-orbit::after { content: ""; position: absolute; inset: 5%; border: 1px dashed #b6d4d42b; border-radius: 50%; animation: plaza-turn 70s linear infinite; }
.plaza-orbit::after { inset: 13%; border-style: solid; border-color: #c9a56818; animation-direction: reverse; }
.plaza-orbit i { position: absolute; inset: 0; border-radius: 50%; animation: plaza-turn 25s linear infinite; }
.plaza-orbit i::before { content: ""; position: absolute; left: 50%; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: #f9d793; box-shadow: 0 0 12px 3px #f1c46a70; }
.plaza-orbit i:nth-child(2) { animation-delay: -8s; opacity: .55; }
.plaza-orbit i:nth-child(3) { animation-delay: -17s; opacity: .35; }
.penguin-table { box-shadow: 0 0 24px #a2c8c126, inset 0 0 12px #e8d79c12; }
.village-seat.is-selected .seat-portrait { animation: selected-breath 2s ease-in-out infinite; }
[data-signal-kind="heal"] { color: #b9f4c5; }
[data-signal-kind="revival"] { color: #a9e8c3; }
[data-signal-kind="roadkill"] { color: #ffd597; }
.signal-evidence-note { border-top: 1px solid #c9d8dd30; padding-top: 6px; }
@keyframes plaza-turn { to { transform: rotate(360deg); } }
@keyframes selected-breath { 50% { filter: drop-shadow(0 0 8px #f2d49480); } }
@media (max-width: 600px) {
  .village-location { padding-left: 14px; padding-right: 116px; }
  .village-location > strong { font-size: 20px; }
  .village-location > small { max-width: 170px; font-size: 10px; }
  .plaza-clock { right: 10px; min-width: 86px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .plaza-orbit::before, .plaza-orbit::after, .plaza-orbit i,
  .village-seat.is-selected .seat-portrait { animation: none; }
}
.table-report-window { display: grid; gap: 4px; padding: 8px; border: 1px solid #8eacb7; border-radius: 12px; background: #122537f5; }
.table-report-window strong { font-size: 13px; }
.table-report-window small { font-size: 10px; line-height: 1.4; }
.table-report-window .report-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.table-report-window .report-actions button { padding: 4px; font-size: 11px; }
.table-center:has(.table-report-window) .table-center-actions,
.table-center:has(.table-report-window) > .night-signals { display: none; }
.penguin-table { display: grid; justify-items: center; width: 100%; min-height: 100px; border: 1px solid #88b4bb; border-radius: 50%; padding: 8px; background: radial-gradient(ellipse, #354c56, #132d38); color: #e7f4ed; cursor: pointer; }
.penguin-table:disabled { opacity: .8; cursor: default; }
.penguin-table svg { width: 75px; height: 75px; }
.penguin-table strong { font-size: 14px; }
.penguin-table small { font-size: 10px; }
.night-signals { margin-top: 12px; border: 1px solid #899bb250; border-radius: 14px; background: #0c132ce8; padding: 8px; }
.night-signals summary { min-height: 44px; font-size: 12px; cursor: pointer; }
.night-signals p { font-size: 10px; line-height: 1.5; color: #b7c8d2; }
.signal-reel { position: relative; height: 106px; }
.sound-signal { position: absolute; inset: 0; display: grid; justify-items: center; color: #e4bb83; opacity: 0; animation: signal-arrives .55s linear var(--signal-delay) both; }
.sound-signal:last-child { animation-name: signal-remains; }
.sound-signal svg { width: 72px; height: 72px; filter: drop-shadow(0 0 9px #e7bd7d); }
.sound-signal small { font-size: 11px; }
.signal-history { display: flex; gap: 6px; overflow-x: auto; padding: 5px 0; }
.signal-history span { flex: 0 0 30px; display: grid; color: #a9c3d2; font-size: 9px; }
.signal-history svg { width: 28px; height: 28px; }
.private-control-signal svg, .night-signal-wait svg { width: 48px; height: 48px; color: #bd9ae9; }
.private-control-signal small, .night-signal-wait small, .quiet-night small { display: block; font-size: 11px; }
.private-control-signal { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 4px 10px; padding: 12px; margin-bottom: 10px; border: 1px solid #bd9ae9; border-radius: 12px; background: #302242; color: #ebd5ff; animation: tutorial-enter .4s ease-out; }
.private-control-signal svg { grid-row: span 2; }
.private-control-signal strong { font-size: 15px; }
.private-receipt-row { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid #c0d6e31c; }
.private-receipt-row .report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.private-receipt-row button { min-height: 44px; padding: 8px 12px; }
.private-receipt-row small { color: #adbfcd; }
.private-receipt-row label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.private-receipt-row select { min-width: 90px; min-height: 44px; }
.forged-report-options { padding: 12px; border: 1px dashed #bfa07866; border-radius: 12px; }
.night-signal-wait { padding-top: 20px; animation: night-breath 3s ease-in-out infinite; }
.death-ledger { display: flex; align-items: stretch; gap: 8px; max-width: 100%; margin: 12px; padding: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; border: 1px solid #839aac55; border-radius: 12px; background: #102033; font-size: 12px; line-height: 1.6; scrollbar-width: thin; scrollbar-color: #71899d transparent; }
.death-ledger > strong { flex: 0 0 auto; align-self: center; color: #e1c695; }
.death-ledger p { display: grid; flex: 0 0 auto; gap: 4px; max-width: min(70vw, 260px); margin: 0; padding: 7px 10px; overflow-wrap: anywhere; border: 1px solid #839aac44; border-top: 3px solid var(--death-color, #839aac); border-radius: 8px; scroll-snap-align: start; }
.death-summary { display: block; }
.death-faction-candidates { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; color: #d2dce4; font-size: 10px; }
.death-faction-candidates .faction-chip { min-height: 18px; margin: 0 2px 0 0; padding: 1px 6px; font-size: 9px; }
.death-faction-candidates.is-unknown { color: #9aabb7; }
.death-identity { color: var(--death-color, #e1c695); font-weight: 700; }
.weather-overview { display: grid; flex: 1 1 100%; gap: 5px; min-width: 0; margin: 8px 12px; }
.weather-overview .weather-victims { min-width: 0; margin: 0; padding: 7px 9px; border-radius: 10px; }
.weather-overview .weather-victims > strong { display: block; color: #e6d3a5; font-size: 11px; line-height: 1.4; }
.weather-overview .weather-victims > div { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 3px; }
.weather-overview .weather-victims > div > small { color: #adbdca; font-size: 10px; }
.weather-overview .weather-victims p { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin: 3px 0; font-size: 10px; }
.weather-overview .faction-chip { min-height: 19px; margin: 1px; padding: 1px 6px; font-size: 10px; }
.report-quick-controls { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #d0a56b99; border-radius: 12px; background: linear-gradient(145deg, #29232af5, #171d27f5); color: #f2e6d2; font-size: 12px; }
.report-quick-controls > strong { display: block; margin-bottom: 5px; color: #f3d18c; }
.report-quick-help { display: block; margin-bottom: 4px; color: #d4c0b9; }
.report-quick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.report-quick-kind { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; min-height: 52px; padding: 7px; border: 1px solid #c0aa7c55; border-radius: 9px; background: #0f1923; cursor: pointer; }
.report-quick-kind input { width: 22px; height: 22px; margin: 0; accent-color: #78c99a; }
.report-quick-kind > span { display: grid; gap: 2px; min-width: 0; }
.report-quick-kind strong { overflow-wrap: anywhere; color: #f0e3c7; font-size: 11px; }
.report-quick-kind small { color: #adbfcd; font-size: 9px; }
.report-quick-kind > b { grid-column: 2; color: #a9e0bc; font-size: 10px; }
.report-quick-kind.is-forged > b { color: #e5b2a8; }
.report-quick-kind input:focus-visible { outline: 2px solid #f3d18c; outline-offset: 2px; }
.death-vignette { position: fixed; inset: 0; z-index: 6; pointer-events: none; background: radial-gradient(ellipse, transparent 50%, #70172b55); border: 6px solid #6e233b55; }
.death-vignette.is-recent { background: radial-gradient(ellipse, transparent 25%, #8e142eaa); animation: death-settles 5s ease-out both; }
.own-death-notice { padding: 12px; border: 1px solid #b26475; border-radius: 12px; color: #ffd6de; background: #471a2b; }
.journal-selector { border: 1px solid #678d98; border-radius: 12px; padding: 10px; min-width: 0; }
.journal-selector legend { font-size: 13px; }
.journal-selector-row { display: grid; grid-template-columns: 54px repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 0; border-bottom: 1px solid #8098a433; align-items: end; }
.journal-selector-row label { min-width: 0; font-size: 11px; display: grid; gap: 4px; }
.journal-selector-row label.journal-night-check { display: flex; align-items: center; min-height: 44px; }
.journal-selector-row input { width: 22px; height: 22px; min-height: 22px; }
.journal-selector-row select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #678d98; border-radius: 8px; background: #1c2d3e; color: #eaf4ec; padding: 5px; }
.journal-selector-row select { box-sizing: border-box; padding: 8px 10px; font-size: 14px; }
.journal-selector-row label:nth-child(4) { grid-column: 2 / -1; }
.journal-key { padding: 10px; border-radius: 10px; background: #182c3c; color: #deebed; font-size: 12px; line-height: 1.8; }
.journal-selector > .button { margin-top: 12px; }
.journal-advanced summary { min-height: 44px; padding-top: 12px; cursor: pointer; font-size: 12px; }
.claim-journal-updates { border-top: 1px solid #8caeae55; margin-top: 8px; padding-top: 8px; }
.claim-journal-updates > summary { min-height: 40px; padding: 8px 0; color: #c9d8e2; cursor: pointer; }
.intervention-window { padding: 12px; border: 1px solid #a4bcd6; border-radius: 12px; background: #284355; color: #eef8ff; line-height: 1.7; }
.weather-helper { margin: 12px 0; padding: 12px; border: 1px solid #7596af66; border-radius: 12px; background: #132337; font-size: 12px; line-height: 1.7; min-width: 0; }
.weather-helper summary { min-height: 44px; cursor: pointer; font-weight: 700; }
.weather-helper .button { min-height: 44px; white-space: normal; }
.weather-candidates { max-height: 320px; overflow: auto; margin-top: 12px; }
.weather-candidates table { width: 100%; border-collapse: collapse; text-align: center; font-variant-numeric: tabular-nums; }
.weather-candidates th { position: sticky; top: 0; background: #274056; }
.weather-candidates th, .weather-candidates td { padding: 8px 4px; border-bottom: 1px solid #97bac733; }
.match-shortcuts { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; flex-wrap: nowrap; gap: 6px; padding: 8px; background: #122332f5; border: 1px solid #89aebb66; border-radius: 12px; margin-bottom: 12px; backdrop-filter: blur(14px); }
.match-shortcuts button { flex: 1 1 48px; min-width: 0; min-height: 44px; padding: 4px; color: #e9f4ef; background: #294153; border: 1px solid #7596af66; border-radius: 8px; font-size: 12px; }
.match-shortcuts .chat-shortcut { color: #172333; border-color: #f0d496; background: linear-gradient(135deg, #f1d49b, #d6b574); font-weight: 800; }
.match-shortcuts .match-quick-exit { display: none; }
.match-shortcuts .save-match-log { flex-basis: 48px; align-self: stretch; min-height: 48px; margin: 0; padding: 6px 4px; border-color: #e6c78e99; background: linear-gradient(145deg, #705a36, #3e382b); color: #fff0ca; font-size: 11px; font-weight: 800; }
.mobile-today-intel { display: grid; gap: 8px; margin: 0 0 12px; padding: 10px; border: 1px solid #8eacb766; border-radius: 12px; background: linear-gradient(145deg, #172b3b, #101c29); color: #edf4f2; }
.mobile-today-intel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mobile-today-intel > header strong { color: #f3d18c; font-size: 13px; }
.mobile-today-intel > header small { color: #b6c8d3; font-size: 10px; }
.mobile-today-reports { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.mobile-today-report { display: grid; gap: 3px; min-width: 0; padding: 6px; border-radius: 7px; background: #0c1722; font-size: 10px; }
.mobile-today-report strong { color: #b6c8d3; }
.mobile-today-report span { display: flex; flex-wrap: wrap; gap: 4px; }
.mobile-today-report b { font-size: 11px; }
.mobile-today-claims { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.mobile-today-claims li { display: grid; grid-template-columns: minmax(74px, auto) minmax(0, 1fr); gap: 7px; padding-top: 6px; border-top: 1px solid #a8c2d522; font-size: 10px; line-height: 1.4; }
.mobile-today-claims li > strong { color: #e8ca91; }
.mobile-today-claims li > span { min-width: 0; overflow-wrap: anywhere; color: #d3e0e5; }
.evidence-dock { margin: 12px 0; scroll-margin-top: 140px; border: 1px solid #88a9bd66; border-radius: 16px; background: linear-gradient(145deg, #172c3c, #111d2a); }
.evidence-dock .evidence-composer { border: 0; }
.evidence-dock h2 { margin: 0; color: #f1d89f; font-size: 16px; }
.table-vote-clock { display: grid; gap: 5px; margin-bottom: 8px; padding: 10px 3px; border: 1px solid #e4bb83; border-radius: 12px; background: #192e40; color: #ffe1a1; }
.table-vote-clock strong, .table-vote-clock small { font-size: 11px; }
.table-vote-clock time { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.signal-history span { flex-basis: 80px; }
.signal-history small { font-size: 10px; line-height: 1.4; }
.sound-signal small { text-align: center; }
.revealed-role { color: #ffe1a1; font-weight: 700; font-size: 10px; line-height: 12px; }
.village-seat:has(.revealed-role) .seat-status { display: none; }
.intel-tabs { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
.forged-journal > label { display: grid; gap: 8px; margin-bottom: 12px; }
.forged-journal > label select { min-height: 44px; background: #21394b; color: #edf4f1; }
.village-board, .public-claim-board, .match-intel { scroll-margin-top: 70px; }
.match-information { font-size: 12px; margin-bottom: 8px; }
.match-information > summary { min-height: 44px; padding: 12px; cursor: pointer; }
.shortcut-clock { align-self: center; font-size: 13px; color: #ffe1a1; font-variant-numeric: tabular-nums; }
.execution-scene { position: relative; display: grid; gap: 6px; justify-items: center; max-height: 220px; overflow: auto; padding: 8px 4px; margin-top: 8px; border: 1px solid #dbaf7a; border-radius: 12px; background: #192a38; }
.execution-person { width: 42px; height: 45px; animation: approach-penguin .5s ease-out both; }
.execution-person svg { width: 100%; height: 100%; }
.execution-scene strong, .execution-scene small { font-size: 12px; }
.execution-scene p { max-height: 54px; overflow: auto; margin: 0; font-size: 11px; line-height: 18px; overflow-wrap: anywhere; }
.execution-scene button { width: 100%; min-height: 44px; color: #f6eddd; border: 1px solid #7596af; border-radius: 8px; background: #2d4355; font-size: 11px; }
.last-words-options { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.table-center:has(.table-last-words-form) { width: min(360px, calc(100vw - 32px)); }
.execution-scene:has(.table-last-words-form) { box-sizing: border-box; width: 100%; max-height: min(50dvh, 280px); padding: 12px; }
.table-last-words-form { display: grid; width: 100%; gap: 8px; text-align: left; }
.table-last-words-form input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: 8px; }
.table-last-words-form button { width: 100%; white-space: normal; }
.execution-flash { position: absolute; inset: 0; display: grid; place-items: center; font-size: 90px; color: #ffe6ac; animation: execution-shot .8s ease-out both; pointer-events: none; }
.execution-scene[data-execution-stage="shot"] .execution-person { opacity: .3; transform: rotate(18deg); animation: none; }
.village-seats .is-condemned { animation: seat-to-center .55s ease-in var(--execution-delay, 0s) both; }
.game-page[data-phase="execution"] .penguin-table { min-height: 70px; height: 70px; padding: 2px; }
.game-page[data-phase="execution"] .penguin-table svg { width: 45px; height: 45px; }
.game-page[data-phase="execution"] .penguin-table small { display: none; }
.game-page[data-phase="execution"] .table-vote-clock { gap: 2px; padding: 5px; }
.game-page[data-phase="execution"] .table-vote-clock time { font-size: 24px; }
@keyframes approach-penguin { from { opacity: 0; transform: translateY(-55px) scale(.7); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes execution-shot { from { opacity: 1; background: #ffe2a555; } to { opacity: 0; background: transparent; } }
@keyframes seat-to-center { from { left: var(--seat-x); top: var(--seat-y); opacity: 1; } to { left: 50%; top: 50%; opacity: 0; } }
@media (max-width: 780px) {
  .room-timing-grid { grid-template-columns: minmax(0, 1fr); }
  .journal-selector-row { grid-template-columns: minmax(0, 1fr); }
  .journal-selector-row label:nth-child(4) { grid-column: auto; }
  .match-layout { display: flex; flex-direction: column; gap: 10px; }
  .match-stage-column { display: contents; }
  .match-layout > *, .match-stage-column > * { width: 100%; min-width: 0; }
  .village-board { order: 0; }
  .match-intel { position: static; order: 1; max-height: none; overflow: visible; }
  .match-intel > .intel-tabs { top: env(safe-area-inset-top, 0px); border-radius: 17px 17px 0 0; }
  .match-stage-column > .evidence-dock { order: 2; }
  .match-event { order: 3; }
  .match-stage-column > .survival-briefing { order: 4; }
  .match-stage-column > .mafia-plan { order: 5; }
  .match-evidence-column { order: 6; }
  .action-dock { order: 7; }
  .match-stage-column > .weather-between-plaza { order: 8; }
  .game-page[data-phase="night"] .match-intel { order: 1; }
  .match-intel, .match-evidence-column, .match-stage-column > .evidence-dock { margin-top: 12px; }
  .match-shortcuts { gap: 3px; padding: 5px; }
  .match-shortcuts button { font-size: 11px; }
  .match-shortcuts .save-match-log { flex: 1 1 48px; }
  .evidence-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-options label:last-child { grid-column: 1 / -1; }
  .match-progress { display: none; }
}
.village-seats { height: 720px; }
@media (max-width: 900px) { .village-seats { height: 840px; } }
.plaza-night-controls { position: relative; margin: 8px 12px; min-width: 0; }
.plaza-night-controls .action-card { margin: 0; padding: 12px; border-color: #bda16b; background: #112334f5; }
.plaza-night-controls .eyebrow { margin: 0 0 4px; font-size: 10px; }
.plaza-night-controls h2 { margin: 4px 0; font-size: 16px; }
.plaza-night-controls .night-submit { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; }
.plaza-night-controls .button { min-height: 44px; white-space: normal; padding: 8px; }
.plaza-target-summary { margin: 8px 0; font-size: 13px; }
.journal-quick-row { min-width: 0; padding: 8px 0; border-bottom: 1px solid #6d88944a; }
.journal-quick-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.journal-quick-line input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 8px; }
.journal-quick-line .button { font-size: 12px; padding: 6px; min-height: 44px; }
.journal-night-check { display: flex; align-items: center; gap: 6px; min-width: 52px; min-height: 44px; font-size: 12px; }
.journal-night-check input { width: 22px; height: 22px; margin: 0; accent-color: #9bd5b1; }
.journal-validation { display: block; margin: 5px 0; color: #ffd28d; font-size: 11px; line-height: 1.5; }
.journal-color-pad { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 4px; margin-top: 8px; }
.journal-color-pad button { color: var(--identity-color); border: 1px solid var(--identity-color); background: #122536; font-weight: 800; }
.journal-result-pad { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.journal-color-pad button, .journal-result-pad button { min-height: 44px; min-width: 44px; border-radius: 8px; padding: 6px; }
.journal-result-pad button { flex: 1; background: #203d4d; color: #f1e3bb; border: 1px solid #82949b; }
.journal-row-details > summary { min-height: 44px; display: flex; align-items: center; font-size: 11px; color: #bacbd4; cursor: pointer; }
.journal-fact { border: 1px solid #cf9d68; border-radius: 10px; padding: 10px; margin: 8px 0; background: #352b25; }
.journal-fact p { margin: 8px 0; font-size: 13px; }
.journal-fact small { display: block; margin-top: 6px; font-size: 11px; }
.journal-fact .button { min-height: 44px; }
.private-result-summary { border: 1px solid #97c9c5; border-radius: 14px; background: #132b36; padding: 14px; margin: 12px 0; overflow-wrap: anywhere; }
.private-result-summary h2 { font-size: 18px; margin: 6px 0 12px; }
.private-result-action, .private-result-incoming { padding: 12px; margin: 8px 0; border-radius: 10px; background: #071a2380; }
.private-result-action > strong { color: #e6c78e; }
.private-result-incoming > strong { color: #a2e1e3; }
.private-result-summary p { line-height: 1.7; margin: 6px 0; }
.private-result-summary small { color: #bcced7; display: block; line-height: 1.7; }
.private-result-summary .button { min-height: 44px; }
.private-result-summary.is-expanded { margin: 8px 0 14px; padding: 12px; }
.evidence-targets { display: grid; grid-template-columns: repeat(var(--evidence-count, 11), minmax(0, 1fr)); gap: 4px; min-width: 0; padding: 8px; border: 1px solid #829cb447; border-radius: 10px; }
.evidence-targets legend { padding: 0 5px; color: #e5d3a8; font-size: 12px; }
.evidence-targets label { position: relative; display: grid; align-items: center; min-width: 0; min-height: 48px; padding: 4px; border-radius: 8px; background: #142738; font-size: 12px; cursor: pointer; text-align: center; }
.evidence-targets label:has(input:checked) { outline: 2px solid #9bd5b1; background: #1b453c; }
.evidence-targets input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.evidence-targets label:focus-within { outline: 2px solid #e8cf8f; outline-offset: 2px; }
.evidence-targets label:has(input:checked) strong::before { content: "\2713 "; }
.evidence-targets span { display: block; min-width: 0; }
.evidence-targets strong { color: var(--identity-color); }
.evidence-targets strong, .evidence-targets small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.evidence-quick-drafts { display: flex; flex-wrap: wrap; gap: 6px; }
.evidence-quick-drafts button { min-height: 44px; }
.night-submitted { padding: 6px; border: 1px solid #8ccfba66; border-radius: 8px; font-size: 12px; line-height: 1.4; background: #12392e88; }
.night-submitted small { display: block; margin-top: 4px; font-size: 10px; }
.evidence-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.evidence-options label { display: grid; min-width: 0; gap: 4px; font-size: 11px; }
.evidence-options select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; }
.claim-block-notes { margin: 8px 0; padding: 10px; border: 1px solid #cd947f; border-radius: 10px; background: #39252a; color: #ffe0d4; }
.claim-block-notes > strong { color: #ffd39d; }
.claim-block-notes p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.private-insight, .private-insight-note { margin: 10px 0; padding: 12px; border: 1px solid #e6c78e; border-radius: 12px; background: linear-gradient(135deg, #443822, #27313a); color: #fff0ce; }
.private-insight strong { display: block; font-size: 16px; }
.private-insight p, .private-insight-note { line-height: 1.6; }
.claim-spotlight-button { border: 1px solid #f2d596; background: linear-gradient(135deg, #e3bf73, #bd8748); color: #19232c; font-weight: 800; box-shadow: 0 3px 16px #e9c78d35; }
.private-result-summary .claim-spotlight-button { width: 100%; white-space: normal; }
.report-choice-panel { padding: 12px; margin: 8px 0 12px; border: 1px solid #b8c9df; border-radius: 14px; background: linear-gradient(145deg, #18384c, #172738); }
.report-choice-panel > h3 { margin: 0 0 6px; font-size: 16px; color: #f1d69c; }
.report-choice-panel > p { margin: 6px 0; color: #d6e3ec; font-size: 12px; line-height: 1.6; }
.report-choice-panel > time { display: block; margin: 8px 0; color: #ffe1a1; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.report-bulk-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.report-bulk-shortcuts .button { min-height: 48px; padding: 8px; white-space: normal; }
.mobile-tools-card .report-choice-panel button { min-height: 48px; }
.table-center.plaza-night-controls { width: 154px; margin: 0; z-index: 3; }
.table-center.plaza-night-controls .action-card { padding: 6px; }
.compact-night-card h2 { font-size: 13px; }
.compact-night-card .night-submit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.compact-night-card .button { font-size: 11px; padding: 4px; }
.compact-night-card > small { display: block; font-size: 9px; line-height: 1.25; margin-top: 4px; }
.compact-night-slots { display: grid; gap: 4px; margin: 6px 0; }
.compact-night-order { display: flex; gap: 4px; }
.compact-night-order > [data-night-slot] { flex: 1; min-width: 0; }
.compact-night-order > [data-action="clear-order"] { flex: 0 0 44px; }
.compact-night-slots button { min-height: 44px; padding: 4px; border: 1px solid #6c8e9e; border-radius: 8px; color: #e5d8b8; background: #162f43; }
.compact-night-slots [aria-pressed="true"] { border-color: #efd68d; box-shadow: inset 0 0 0 1px #efd68d; }
.compact-night-card input { box-sizing: border-box; width: 100%; min-height: 44px; }
.village-seats::before { border-style: solid; background: radial-gradient(ellipse, #d8bb8130, #233d4529 55%, transparent 70%); box-shadow: inset 0 0 30px #040d19a0; }
.village-seats .village-seat:not(.is-selected):not(.is-condemned):not(.is-eliminated) { background: transparent; border-color: transparent; box-shadow: none; }
.village-seats .seat-portrait { border: 0; border-radius: 0; background: transparent; height: 62px; width: 44px; filter: drop-shadow(2px 4px 2px #0009); overflow: visible; }
.village-seats .seat-name { text-shadow: 0 1px 3px #000, 0 0 5px #000; }
.village-seat.is-selected .walking-person { filter: drop-shadow(0 0 4px var(--seat-color)); }
.village-location { min-height: 104px; padding-top: 14px; padding-bottom: 12px; }
.plaza-heading { display: flex; flex-wrap: wrap; align-items: flex-start; }
.plaza-heading > .village-location { flex: 1 1 300px; }
.plaza-heading > .weather-victims { flex: 1 1 180px; margin: 8px 12px; padding: 8px; min-width: 0; }
.plaza-heading .weather-victims h3 { margin: 0 0 5px; font-size: 12px; }
.plaza-heading .weather-victims p { margin: 4px 0; font-size: 11px; }
.plaza-heading .weather-victims > small { display: block; font-size: 10px; line-height: 1.4; }
.village-board > .night-signals { margin: 6px auto 12px; width: calc(100% - 20px); max-width: 650px; padding: 8px; box-sizing: border-box; background: #102333f2; border: 1px solid #7199a855; border-radius: 10px; }
.village-board > .night-signals > summary { text-align: center; }
.time-extension { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 8px; font-size: 12px; }
.time-extension[hidden] { display: none; }
.table-center-actions { display: flex; align-items: center; justify-content: center; gap: 8px; width: 260px; }
.table-center-actions > .penguin-table { flex: 0 0 116px; }
.table-center-actions > .time-extension { flex: 1 1 130px; flex-direction: column; gap: 6px; padding: 8px 5px; border: 1px solid #7097a688; border-radius: 12px; background: #0b1a2fed; }
.table-center-actions > .time-extension .button { width: 100%; min-height: 44px; padding: 6px; font-size: 11px; }
.table-center:has(.center-signals) .table-center-actions { width: 260px; }
.table-center:has(.center-signals) .time-extension { pointer-events: auto; }
.mobile-tools-modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: #030916dc; }
.report-selection-modal { inset: auto 0 0; display: flex; justify-content: center; padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left)); pointer-events: none; background: linear-gradient(0deg, #030916cc, transparent); }
.report-selection-modal .mobile-tools-card { width: min(100%, 580px); max-height: 48dvh; margin: 0 auto; padding-bottom: max(12px, env(safe-area-inset-bottom)); pointer-events: auto; border-radius: 18px 18px 0 0; }
.final-role-reveal { margin: 14px 0; padding: 12px; border: 1px solid #d0a56b88; border-radius: 14px; background: #101f2b; }
.final-role-reveal h3 { margin: 0 0 8px; color: #f3d18c; }
.final-role-reveal ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.final-role-reveal li { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 8px; border-left: 3px solid var(--identity-color, #839aac); border-radius: 7px; background: #0b1822; }
.final-role-reveal li > span { color: var(--identity-color, #b8c7d1); font-size: 11px; }
.final-role-reveal li > strong { grid-column: 1; overflow-wrap: anywhere; }
.final-role-reveal li > b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #ffe1a1; }
.final-role-reveal li > small { color: #adbdca; }
.mobile-tools-card { width: min(100%, 580px); max-height: 85dvh; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #8eabb4; border-radius: 18px; padding: 14px; box-sizing: border-box; background: #10232f; box-shadow: 0 16px 80px #0009; }
.mobile-tools-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mobile-tools-card h2 { font-size: 18px; }
.mobile-tools-card button, .mobile-tools-card select { min-height: 44px; }
.mobile-tools-card .forged-report-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mobile-tools-card .forged-report-options h3 { flex-basis: 100%; }
.mobile-tools-card .forged-journal { margin: 0; padding: 0; border: 0; }
.claim-dialog { box-sizing: border-box; min-width: 0; }
.claim-dialog .mobile-tools-card { display: flex; flex-direction: column; min-width: 0; max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: hidden; }
.claim-dialog .mobile-tools-card > header { flex: 0 0 auto; flex-wrap: wrap; }
.claim-dialog-body { min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.claim-dialog .chat-form, .claim-dialog fieldset { min-width: 0; }
.claim-dialog .chat-compose { position: sticky; top: 0; z-index: 2; padding: 8px 0; background: #10232f; }
.claim-dialog .chat-compose textarea { flex: 1 1 0; box-sizing: border-box; min-width: 0; width: 100%; min-height: 76px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; resize: vertical; }
.claim-dialog .chat-compose > .button { flex: 0 0 auto; padding: 8px 14px; }
.claim-dialog .main-claim-dock { margin-top: 10px; }
@media (max-width: 390px) {
  .mobile-tools-card { max-height: 88dvh; padding: 10px; }
  .report-selection-modal .mobile-tools-card { max-height: 48dvh; }
  .final-role-reveal ol { grid-template-columns: 1fr; }
  .report-bulk-shortcuts { grid-template-columns: 1fr; }
}
.table-center:has(.center-signals) { width: 260px; pointer-events: none; }
.discussion-panel .feed-line > span { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.discussion-panel .feed-system { overflow-wrap: anywhere; }
.driver-comparison { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid #88a9bd55; border-radius: 12px; background: #14263a; }
.driver-comparison > strong { color: #ead5aa; font-size: 13px; }
.night-action-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; padding: 0; list-style: none; }
.night-action-steps li { min-width: 0; padding: 8px 5px; border: 1px solid #7290a866; border-radius: 9px; color: #bdc8d2; text-align: center; font-size: 11px; }
.night-action-steps li.is-done { border-color: #82cdb6; color: #aaf0d7; background: #1d594532; }
.profile-portrait-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.profile-portrait-button:focus-visible { outline: 3px solid #f1d795; outline-offset: 3px; }
.profile-modal-backdrop { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); background: #030916dd; }
.profile-modal { position: relative; width: min(100%, 420px); box-sizing: border-box; padding: 22px; border: 1px solid #8eabb4; border-radius: 18px; background: #10232f; box-shadow: 0 16px 80px #000b; }
.profile-modal-hero { display: grid; grid-template-columns: minmax(84px, 104px) minmax(0, 1fr); align-items: center; gap: 14px; }
.profile-modal-avatar.seat-portrait { width: 100%; height: 168px; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.profile-modal-avatar .walking-person { display: block; width: 100%; height: 100%; }
.profile-modal h2 { margin: 0 0 6px; }
.profile-modal-close { float: right; min-height: 44px; }
.profile-level { color: #e8d6a8; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.profile-stats > div { display: grid; gap: 4px; padding: 10px 6px; border: 1px solid #7090a744; border-radius: 10px; text-align: center; }
.profile-stats strong { font-size: 18px; }
.profile-stats span { color: #c6d0d7; font-size: 12px; }
.profile-friend-status { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #7691a35c; border-radius: 10px; color: #d6e0e8; text-align: center; }
.profile-friend-status.is-friend { border-color: #8accc166; background: #8accc113; color: #a9e3ce; }
.own-will-card { display: grid; gap: 10px; margin: 14px 0; padding: 14px; border: 1px solid #bb9f6b70; border-radius: 14px; background: linear-gradient(145deg, #29271f, #17212b 72%); box-shadow: inset 0 1px #fff1, 0 8px 18px #0003; }
.own-will-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.own-will-heading .eyebrow { margin: 0 0 3px; color: #e6ca8d; font-size: 9px; letter-spacing: .14em; }
.own-will-heading strong { color: #f5e6c1; font-size: 15px; }
.will-privacy-badge { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #d5bc7b55; border-radius: 999px; background: #d5bc7b12; color: #f0d99e; font-size: 10px; font-weight: 700; }
.own-will-description { margin: 0; color: #c5d0d7; font-size: 12px; line-height: 1.55; }
.own-will-card textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 92px; padding: 11px 12px; border: 1px solid #718993; border-radius: 10px; background: #0e1925; color: #f3f3e9; font: inherit; font-size: 15px; line-height: 1.55; resize: vertical; }
.own-will-card textarea:focus-visible { outline: 2px solid #e8c986; outline-offset: 2px; }
.own-will-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.own-will-actions small { color: #aebdc8; font-size: 11px; }
.own-will-actions .button { min-height: 42px; }
.save-match-log { min-height: 48px; }
.table-last-words-form textarea, .match-intel .chat-compose textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 64px; padding: 10px; font: inherit; font-size: 16px; resize: vertical; }
.table-last-words-form textarea { color: #f3f3e9; border: 1px solid #718993; border-radius: 8px; background: #111f2d; }
.execution-scene:has(.table-last-words-form) { overflow-y: auto; overscroll-behavior: contain; }
.seat-status.is-survivor { color: #aaf0d7; font-weight: 700; }
@media (max-width: 600px) {
  .night-action-steps li { min-height: 40px; display: grid; place-items: center; font-size: 10px; }
  .profile-modal { padding: 18px; }
  .match-shortcuts .save-match-log { width: auto; flex: 1 1 48px; }
  .match-intel .chat-compose textarea { min-height: 76px; }
}
.driver-comparison > p { margin: 0; color: #becbd5; font-size: 11px; line-height: 1.6; }
.driver-comparison details { border-top: 1px solid #8ca7bd33; padding-top: 6px; }
.driver-comparison summary { min-height: 40px; color: #d6e1e9; font-size: 11px; cursor: pointer; }
.driver-comparison ul { display: grid; gap: 5px; margin: 6px 0; padding-left: 20px; }
.driver-comparison li { font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.driver-comparison-match { color: #b9e2c8; }
.driver-comparison-conflict { color: #f0b6aa; }
.driver-comparison-unknown { color: #c1cbd2; }
.table-center:has(.center-signals) .penguin-table { display: none; }
.table-center:has(.center-signals) .table-report-window small { display: none; }
.center-signals { padding: 6px; border-radius: 12px; background: #0b1a2fed; border: 1px solid #7097a6; }
.center-signals > strong { font-size: 11px; }
.center-signals > ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.center-signals li { display: grid; justify-items: center; align-content: start; min-width: 0; }
.center-signals svg { width: 28px; height: 28px; color: #c0e2df; }
.center-signals small { font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; color: #d0e1e6; }
.village-board > .night-signals > summary { min-height: 36px; font-size: 12px; cursor: pointer; }
.village-board > .night-signals > p { font-size: 11px; margin: 4px; }
.village-board > .night-signals .signal-reel { display: none; }
.village-board > .night-signals .signal-history { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; max-height: none; overflow: visible; justify-content: center; padding: 4px; }
.village-board > .night-signals .signal-history > span { min-width: 0; max-width: none; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; align-items: center; }
.village-board > .night-signals .signal-history svg { width: 28px; height: 28px; }
.table-center { width: 260px; }
.penguin-table { min-height: 88px; padding: 5px; }
.penguin-table svg { width: 58px; height: 58px; }
.penguin-table small { font-size: 9px; }
.my-role-help > summary { padding: 10px; min-height: 44px; font-size: 13px; cursor: pointer; }
.village-board > .result-card { position: relative; margin: 12px; padding: 16px; border: 1px solid #ead09a; border-radius: 14px; background: #142d40f5; }
.village-board > .result-card .result-emblem { float: right; width: 44px; height: 44px; margin: 0 0 8px 8px; font-size: 24px; }
.village-board > .result-card h2 { margin: 6px 0; font-size: 22px; color: #f0dab0; }
.village-board > .result-card p { margin: 8px 0; font-size: 12px; }
.village-board > .result-card .result-summary { padding: 8px 0; line-height: 1.5; }
.village-board > .result-card .result-actions { margin-top: 8px; gap: 8px; }
.dawn-portrait { height: 140px; margin: 10px auto; }
.dawn-portrait svg { width: 100%; height: 100%; }
.dawn-portrait.fallen { filter: grayscale(.7); opacity: .7; }
.dawn-card h2 { color: var(--seat-color); }
.dawn-outcome { display: block; font-size: 20px; color: #f1d8a2; }
.dawn-role { padding: 8px; border: 1px solid #e3c08666; border-radius: 8px; color: #f1d8a2; }
.dawn-card small { display: block; margin: 10px 0; color: #b3bdca; }
.claim-cinema .cinema-card > strong { display: block; font-size: 13px; margin: 14px 0; color: #f3d7a1; }
.role-briefing { animation: briefing-timeout 8s steps(1, end) both; animation-delay: var(--briefing-age); }
@keyframes briefing-timeout { from { visibility: visible; } to { visibility: hidden; pointer-events: none; } }
@media (max-width: 600px) {
  body.is-playing .main-content { padding: 8px 8px 24px; }
  .village-seats { height: 880px; }
  .village-seats .village-seat { width: 48px; height: auto; min-height: 126px; padding: 2px 1px; }
  .village-seats .seat-portrait { height: 46px; width: 32px; }
  .village-seats .seat-color, .village-seats .seat-name { font-size: 9px; line-height: 11px; }
  .village-seats .seat-name { margin-top: 1px; }
  .village-seats .seat-ballot { min-height: 30px; padding: 2px 1px; line-height: 12px; }
  .village-seats .seat-ballot .ballot-color { font-size: 10px; }
  .village-location > strong { font-size: 18px; }
  .village-location { padding-right: 106px; }
  .plaza-heading > .weather-victims { flex-basis: 100%; margin-top: 0; }
  .match-intel .game-feed { min-height: 120px; max-height: 190px; }
  .report-quick-list { grid-template-columns: 1fr; }
  .match-hud { gap: 8px; flex-wrap: wrap; }
  .match-hud .phase-hud { padding: 7px; }
  .dawn-portrait { height: 110px; }
}
@media (max-width: 600px) {
  .village-seat:has(.claim-badge) .seat-status { display: none; }
  .penguin-table { min-height: 88px; padding: 5px; }
  .penguin-table svg { width: 58px; height: 58px; }
  .night-signals p { display: none; }
  .signal-reel { height: 78px; }
  .sound-signal svg { width: 48px; height: 48px; }
  .signal-history { max-height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .execution-person, .execution-flash { animation: none; }
  .execution-flash { display: none; }
  .village-seats .is-condemned { animation: none; visibility: hidden; }
}
@media (max-width: 360px) {
  .village-seats .village-seat { width: 44px; height: auto; min-height: 126px; }
  .village-seats .seat-portrait { height: 34px; width: 26px; }
  .village-seats .seat-status { display: none; }
}
@keyframes signal-arrives { 0%, 100% { opacity: 0; transform: scale(.9); } 20%, 85% { opacity: 1; transform: scale(1); } }
@keyframes signal-remains { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes night-breath { 50% { opacity: .45; } }
@keyframes death-settles { from { opacity: 1; } to { opacity: .25; } }

.game-page .village-board {
  border-color: #8d9aa93b;
  background: #0b121d;
  box-shadow: 0 18px 45px #02060db0, inset 0 0 55px #02070c75;
}
.game-page .village-board::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 81%, #a23e3033, transparent 24%),
    radial-gradient(ellipse at 83% 71%, #526c8c26, transparent 30%),
    linear-gradient(180deg, #03081118 34%, #060d16a8 100%);
  content: "";
  pointer-events: none;
}
.game-page .village-atmosphere::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 62%, transparent 18%, #03070b30 62%, #02050bd9 100%),
    linear-gradient(180deg, #07101a35, transparent 30%, #050a12a8);
  content: "";
  pointer-events: none;
}
.game-page[data-phase="night"] .village-board {
  border-color: #aab9ce45;
  box-shadow: 0 24px 60px #000d, inset 0 0 90px #03060cc9;
}
.game-page[data-phase="night"] .village-art {
  opacity: .94;
  filter: brightness(.64) saturate(.65) contrast(1.18) hue-rotate(-8deg);
}
.game-page[data-phase="night"] .village-atmosphere {
  background:
    radial-gradient(ellipse at 50% 56%, #19283d00 8%, #08111e70 55%, #02050bd9 100%),
    linear-gradient(180deg, #03071364, #07101b35 36%, #02070fcf);
}
.game-page[data-phase="night"] .village-atmosphere::after {
  background:
    radial-gradient(ellipse at 17% 75%, #c24d3326, transparent 22%),
    radial-gradient(ellipse at 82% 81%, #7796c526, transparent 26%),
    radial-gradient(ellipse at 50% 66%, transparent 20%, #02050bdb 100%);
  animation: haunted-lantern-breath 8s ease-in-out infinite alternate;
}
.game-page[data-phase="night"] .village-weather::before {
  position: absolute;
  z-index: 0;
  top: 43%;
  left: -55%;
  width: 210%;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #c1d2dc28 0, #91a8b31c 30%, transparent 72%);
  content: "";
  filter: blur(10px);
  animation: haunted-ground-fog 24s ease-in-out infinite alternate;
}
.game-page[data-phase="night"][data-weather="rain"][data-weather-strength="heavy"] .village-atmosphere::after {
  animation: haunted-lantern-breath 8s ease-in-out infinite alternate, storm-lightning 17s linear infinite;
}
.game-page[data-phase="night"] .weather-scene-label {
  border-color: #a8b9ce44;
  background: linear-gradient(100deg, #070d17ee, #101c2bdd 58%, #311c1d9c);
  box-shadow: 0 6px 22px #02060a55;
}
@keyframes haunted-lantern-breath {
  from { opacity: .62; }
  to { opacity: 1; }
}
@keyframes haunted-ground-fog {
  from { transform: translate3d(-7%, 0, 0) scale(.96); }
  to { transform: translate3d(12%, -16px, 0) scale(1.08); }
}
@keyframes storm-lightning {
  0%, 8%, 10%, 58%, 100% { filter: brightness(1); }
  8.5%, 9.2%, 58.4% { filter: brightness(2.6); }
  8.8%, 59% { filter: brightness(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .game-page[data-phase="night"] .village-atmosphere::after,
  .game-page[data-phase="night"] .village-weather::before {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sound-signal { display: none; animation: none; }
  .sound-signal:last-child { display: grid; opacity: 1; }
  .night-signal-wait, .death-vignette.is-recent { animation: none; }
}

/* Seat captions wrap instead of clipping; dawn briefing shows every public/private fact at once. */
.village-seats .village-seat { height: auto; min-height: 118px; }
.village-seats .seat-name, .village-seats .seat-status, .village-seats .claim-badge, .village-seats .revealed-role {
  display: block; max-width: 100%; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; word-break: keep-all; text-align: center;
}
.village-seats .seat-status { line-height: 1.15; }
.village-seat:has(.revealed-role) .seat-status { display: block; }
@media (max-width: 600px) {
  .village-seat:has(.claim-badge) .seat-status { display: block; }
  .village-seats .seat-status, .village-seats .claim-badge, .village-seats .revealed-role { font-size: 8px; line-height: 1.15; }
  .village-seats .seat-name { word-break: break-all; }
}
@media (max-width: 360px) {
  .village-seats .seat-status { display: block; font-size: 7.5px; }
}
.dawn-briefing { place-items: start center; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
.dawn-briefing-card { display: grid; gap: 10px; width: min(100%, 560px); max-height: calc(100dvh - 20px); padding: 16px 14px; text-align: left; }
.dawn-briefing-card > .eyebrow, .dawn-briefing-card > h2 { margin: 0; text-align: center; }
.dawn-briefing-card > h2 { font-size: clamp(19px, 5vw, 28px); }
.dawn-briefing-section { display: grid; gap: 8px; padding: 10px; border: 1px solid #9eafc43d; border-radius: 14px; background: #0a1422cc; }
.dawn-briefing-section > h3 { margin: 0; color: #f3d18c; font-size: 13px; }
.dawn-briefing-section p { margin: 0; line-height: 1.45; }
.dawn-briefing-events { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dawn-briefing-events li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px; border-left: 3px solid var(--seat-color); border-radius: 10px; background: #13213380; }
.dawn-briefing-events li.is-fallen { background: #3a151a80; }
.dawn-briefing-events li > div { display: grid; gap: 2px; min-width: 0; }
.dawn-briefing-events strong { color: var(--seat-color); font-size: 13px; overflow-wrap: anywhere; }
.dawn-briefing-events span:not(.dawn-mini-portrait), .dawn-briefing-events b { font-size: 12px; overflow-wrap: anywhere; }
.dawn-briefing-events b { color: #ffe1a1; }
.dawn-mini-portrait { display: block; width: 40px; height: 52px; overflow: hidden; }
.dawn-mini-portrait svg { width: 100%; height: 100%; }
.dawn-briefing-sounds, .dawn-briefing-weather { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; }
.dawn-briefing-sounds span { padding: 2px 7px; border-radius: 999px; background: #22324a; }
.dawn-briefing .private-result-summary { margin: 0; }
.dawn-briefing .report-quick-controls { padding: 8px; }
.dawn-briefing .report-quick-kind { min-height: 48px; }
.report-quick-kind.is-checked { border-color: #78c99a; background: #13281f; }
.report-quick-kind.is-forged.is-checked { border-color: #e5b2a8; background: #2c1719; }
.dawn-briefing-card > .button { position: sticky; bottom: 0; min-height: 46px; }
.dawn-briefing-card > small { color: #b3bdca; font-size: 11px; text-align: center; }

/* Compact per-night report detail: one line per kind. */
.report-detail { display: grid; gap: 4px; padding: 6px 4px 2px; }
.report-detail-line { margin: 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.report-detail-line > strong { display: inline-block; min-width: 30px; color: #d4dfe7; }
.report-detail-line .report-person { display: inline; min-width: 0; padding: 0; border: 0; background: none; font-weight: 700; }
.report-detail-line small { color: var(--muted); }

/* Tap-only journal picker shared by real and fake journals. */
.journal-preview-button { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border: 1px solid #89aebb66; border-radius: 10px; background: #0f1d2c; color: #eef3f8; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
.journal-quick-row.is-open .journal-preview-button { border-color: #f3d18c; }
.journal-pick-panel { display: grid; gap: 4px; margin: 6px 0; padding: 8px; border-radius: 10px; background: #0a1520; }
.journal-pick-panel > small { color: #b9c7d3; font-size: 11px; }
.journal-color-pad, .journal-result-pad { display: flex; flex-wrap: wrap; gap: 5px; }
.journal-color-pad button { min-width: 40px; min-height: 40px; border: 2px solid var(--identity-color); border-radius: 9px; background: #101b27; color: var(--identity-color); font-weight: 800; font-size: 15px; }
.journal-result-pad button { min-width: 52px; min-height: 40px; padding: 4px 10px; border: 1px solid #89aebb88; border-radius: 9px; background: #142536; color: #eef3f8; font-weight: 700; }
.journal-color-pad button.is-picked { background: var(--identity-color); color: #08111b; }
.journal-result-pad button.is-picked { border-color: #78c99a; background: #1f4a33; }
.journal-row-details input { width: 100%; margin: 6px 0; }
.forged-journal.is-compact { display: grid; gap: 6px; }
.counter-claim-prompt { place-items: start center; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }

.claim-advice { display: grid; gap: 4px; margin: 8px 12px; padding: 10px 12px; border: 2px solid #f3d18c; border-radius: 12px; background: #2b2412f2; color: #f6ead0; }
.claim-advice > strong { color: #ffd76a; font-size: 14px; }
.claim-advice p { margin: 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.claim-advice-journal { font-weight: 700; }
.claim-advice small { color: #cdbf9f; font-size: 11px; }
.main-claim-dock { scroll-margin-top: 85px; display: grid; gap: 10px; padding: 12px; margin: 0 0 14px; border: 1px solid #e8ca85; border-radius: 12px; background: linear-gradient(120deg, #39301e, #182a31); }
.main-claim-dock > div > strong { color: #ffe0a0; font-size: 16px; }
.main-claim-dock small { display: block; margin-top: 4px; color: #c5d3d5; font-size: 11px; line-height: 1.5; }
.journal-reminder { display: grid; gap: 8px; padding: 10px; border: 1px solid #f3d18c88; border-radius: 10px; background: #101f2ddd; }
.journal-reminder strong { color: #ffe0a0; font-size: 13px; }
.journal-reminder p { margin: 4px 0 0; color: #d3dddf; font-size: 12px; line-height: 1.5; }
.journal-reminder .button { justify-self: start; min-height: 44px; }
.main-claim-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.main-claim-buttons .button { flex-direction: column; min-width: 0; min-height: 58px; gap: 2px; padding: 7px; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.main-claim-buttons .button small { margin: 0; }
.main-claim-buttons .button[aria-pressed="true"] { outline: 2px solid #ffe4a3; outline-offset: -3px; }
.main-claim-buttons .is-own-role { border: 2px solid #ffe4a3; color: #14232b; background: #e9ca86; }
.main-claim-buttons .is-own-role small { color: #354341; }
.night-revision-warning { padding: 8px; border: 1px solid #e8ca85; border-radius: 8px; color: #ffe4a3; background: #43351e; font-size: 12px; }
.night-revision-warning strong { display: block; margin-top: 4px; }
.match-shortcuts .claim-shortcut { color: #ffe6aa; border-color: #e7c576; background: #51412b; font-weight: 800; }

/* Tap-to-talk: mobile players build common accusations and fact calls without typing. */
.quick-talk { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border: 1px solid #89aebb55; border-radius: 12px; background: #0d1a27; }
.chat-channel-switcher { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chat-channel-switcher button { min-height: 44px; padding: 8px 12px; border: 1px solid #7199a8; border-radius: 10px; background: #132d37; color: #e4f0ed; }
.chat-channel-switcher button[aria-pressed="true"] { border-color: #f3d18c; background: #30402d; }
.quick-talk > strong { font-size: 13px; color: #eef3f8; }
.quick-talk-people, .quick-talk-phrases { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-talk-person { display: grid; justify-items: center; min-width: 58px; min-height: 48px; padding: 4px 8px; border: 2px solid var(--identity-color); border-radius: 10px; background: #101b27; color: var(--identity-color); font-weight: 800; font-size: 13px; }
.quick-talk-person small { max-width: 110px; overflow: hidden; color: #f3d18c; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.quick-talk-person.is-picked { background: var(--identity-color); color: #08111b; }
.quick-talk-person.is-picked small { color: #08111b; }
.quick-talk-person.is-dead { filter: saturate(.55); opacity: .8; }
.quick-talk-chip { min-height: 40px; padding: 6px 12px; border: 1px solid #89aebb88; border-radius: 999px; background: #18293b; color: #eef3f8; font-size: 13px; font-weight: 700; }
.quick-talk-chip.is-danger { border-color: #ff6b6b; color: #ffd0d0; background: #3a1519; }
.quick-talk-chip.is-reason { border-color: #f3d18c; background: #2b2412; color: #f6ead0; }
.quick-talk-chip.subtle { background: transparent; color: #b9c7d3; }
.quick-talk-phrases.is-general { padding-top: 4px; border-top: 1px dashed #89aebb44; }
.quick-talk-step { width: 100%; margin: 0; color: #f3d18c; font-size: 12px; font-weight: 700; }
.quick-talk-head { display: grid; gap: 2px; }
.quick-talk-head strong { color: #eef3f8; font-size: 14px; }
.talk-records { display: grid; gap: 8px; }
.talk-record { display: grid; gap: 6px; padding: 8px; border: 1px solid color-mix(in srgb, var(--identity-color) 60%, transparent); border-left: 4px solid var(--identity-color); border-radius: 10px; background: #0c1924; }
.talk-record > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.talk-record > header strong { color: var(--identity-color); font-size: 15px; }
.talk-record > header span { color: #eef3f8; font-size: 12px; font-weight: 700; }
.talk-record-group { display: grid; gap: 4px; padding-top: 6px; border-top: 1px dashed #89aebb44; }
.talk-record-group > b { color: #f1d89f; font-size: 12px; }
.talk-record .form-hint { margin: 0; }
.talk-faction-review, .quick-talk-help { min-width: 0; padding: 8px; border: 1px solid #7199a855; border-radius: 10px; background: #0c1924; }
.talk-faction-review > summary, .quick-talk-help > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #f1d89f; font-size: 12px; font-weight: 700; }
.quick-talk-role-guide { padding: 8px; border-left: 3px solid #f1d89f; background: #182331; }
.quick-talk-role-guide h3 { margin: 0 0 8px; font-size: 14px; }
.quick-talk-role-guide p { margin: 5px 0; line-height: 1.65; }
.quick-talk-glossary { display: grid; gap: 8px; margin: 8px 0 0; }
.quick-talk-glossary > div { padding-top: 7px; border-top: 1px dashed #89aebb44; }
.quick-talk-glossary dt { color: #f1d89f; font-size: 12px; font-weight: 800; }
.quick-talk-glossary dd { margin: 3px 0 0; line-height: 1.65; }
.quick-talk-records, .quick-talk-evidence { min-width: 0; padding: 8px; border: 1px solid #7199a855; border-radius: 10px; background: #0c1924; }
.quick-talk-records > summary, .quick-talk-evidence > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: #f1d89f; font-size: 12px; font-weight: 700; }
.quick-talk-records > small { display: block; margin-top: 6px; }
.quick-talk-evidence > strong { display: block; margin: 4px 0 8px; color: #f1d89f; font-size: 13px; }
.quick-talk-evidence .evidence-dock { margin: 6px 0 0; border: 0; background: transparent; }
.quick-talk-evidence .evidence-dock .evidence-composer { padding: 0; }
.quick-talk-evidence .evidence-targets { grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); }
.quick-talk-evidence .evidence-options { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.quick-talk small { color: #9fb0bf; font-size: 11px; }
.village-board > .quick-talk { position: relative; margin: 8px; padding: 12px; background: #102333f5; border: 1px solid #7199a855; border-radius: 12px; }
.village-board > .quick-talk .quick-talk-people { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
.village-board > .quick-talk .quick-talk-person { flex-shrink: 0; }
.log-talk { display: grid; gap: 6px; }
.log-talk-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.log-talk-tabs button { flex: 0 0 auto; min-height: 40px; padding: 4px 12px; border: 1px solid #89aebb66; border-radius: 999px; background: transparent; color: #c9d6e1; font-size: 12px; font-weight: 700; }
.log-talk-tabs button[aria-selected="true"] { background: #f1d89f; border-color: #f1d89f; color: #14202b; }
.quick-talk-chip.is-instant { border-color: #8ccfba; background: #12392e; color: #d6fff0; }
.quick-draft-bar { display: none; }
@media (max-width: 780px) {
  /* clip (not hidden) keeps the board from becoming a scroll container, so the draft bar can stick to the viewport. */
  .game-page .village-board { overflow: clip; }
  .quick-draft-bar { position: sticky; bottom: calc(max(6px, env(safe-area-inset-bottom)) + var(--drill-coach-h, 0px)); z-index: 2; display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid #f1d89f88; border-radius: 12px; background: #172a3b; box-shadow: 0 -6px 14px #0008; }
  .quick-draft-bar p { flex: 1; min-width: 0; margin: 0; max-height: 44px; overflow: hidden; color: #f6ead0; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
  .quick-draft-bar .button { flex: 0 0 auto; min-height: 44px; padding: 6px 12px; }
  .log-talk-phrases .quick-talk-chip, .talk-record .quick-talk-chip { min-height: 44px; }
}
.night-team-workspace { position: relative; margin: 10px; padding: 14px; border: 1px solid #83cbb377; border-radius: 14px; background: #0c2028f5; scroll-margin-top: 70px; }
.night-team-workspace > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.night-team-workspace h2 { margin: 0; font-size: 16px; }
.night-team-workspace small { color: #b3ccc5; font-size: 11px; }
.night-team-allies { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.night-team-ally { display: grid; gap: 3px; padding: 7px 10px; border: 1px solid #83cbb344; border-radius: 9px; font-size: 12px; }
.auto-recruit-bluff { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid #cab47b55; border-radius: 10px; background: #25291c; }
.auto-recruit-bluff > div { flex: 1 1 180px; }
.auto-recruit-bluff strong { font-size: 13px; }
.auto-recruit-bluff p { margin: 5px 0; font-size: 12px; }
.auto-recruit-bluff > small { flex-basis: 100%; line-height: 1.6; }
.night-team-workspace > .mafia-plan { margin: 10px 0; padding: 12px; }
.night-team-workspace > .mafia-plan h2 { font-size: 14px; }
.night-team-workspace .team-discussion { margin: 0; padding: 12px 0 0; border: 0; background: transparent; }
.night-team-workspace .game-feed { min-height: 90px; max-height: 160px; overflow-y: auto; overscroll-behavior-y: contain; padding: 8px; background: #07151b; border-radius: 8px; }
.night-team-workspace .chat-compose { display: flex; gap: 6px; }
.night-team-workspace .chat-compose :is(input, textarea) { box-sizing: border-box; min-width: 0; flex: 1 1 0; font-size: 16px; }
.night-team-workspace .chat-compose textarea { min-height: 76px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); resize: vertical; }
.night-team-workspace .claim-notice, .night-team-workspace .form-hint { font-size: 11px; line-height: 1.5; }
.team-seat-marker { position: absolute; top: -18px; left: 50%; z-index: 1; width: max-content; max-width: min(160px, 42vw); transform: translateX(-50%); text-align: center; white-space: nowrap; word-break: keep-all; border-radius: 8px; padding: 3px 6px; font-size: 9px; line-height: 14px; color: #ccffea; background: #12392e; border: 1px solid #8ccfba; }
.village-seat.is-team-ally .seat-portrait { box-shadow: 0 0 0 2px #8ccfba; }
.team-seat-plan { display: grid; gap: 2px; padding: 3px; border-radius: 5px; background: #0a2825ed; color: #c7f5e1; }
.team-seat-plan small { font-size: 9px; line-height: 1.3; }
.plaza-team-plan { margin-top: 8px; padding: 6px; border: 1px solid #8ccfba88; border-radius: 9px; background: #0c2028f5; text-align: left; }
.plaza-team-plan > strong { display: block; color: #c7f5e1; font-size: 10px; }
.plaza-team-plan small { color: #b3ccc5; font-size: 9px; }
.plaza-team-plan ul { display: grid; gap: 3px; margin: 6px 0 0; padding: 0; list-style: none; }
.plaza-team-plan li { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px; align-items: start; padding-top: 2px; border-top: 1px solid #8ccfba33; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.plaza-team-plan li > b { color: #ffe2b8; font-weight: 700; text-align: right; }
.evidence-targets label { min-height: 48px; border-left: 3px solid var(--identity-color); }
.evidence-targets label:has(input:checked) { background: #25484d; box-shadow: inset 0 0 0 1px #a5e0c3; }
.evidence-targets label span { display: block; }
.evidence-targets label small { color: #b4c7cc; font-size: 10px; }
.evidence-connections { padding: 10px; margin-bottom: 12px; border: 1px solid #d6bd7e66; border-radius: 10px; background: #212a27; }
.evidence-connections > summary { cursor: pointer; min-height: 36px; font-size: 13px; font-weight: 700; }
.evidence-connections ul { margin: 0; padding: 0; list-style: none; }
.evidence-connections li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #b9c9b133; }
.evidence-connections li p { flex: 1 1 220px; margin: 0; font-size: 12px; line-height: 1.6; }
.evidence-connections small { color: #c3c6b6; font-size: 11px; }
.evidence-selection { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 8px; margin: 10px 0; }
.evidence-selection article { padding: 10px; background: #10232c; border: 1px solid #9bb9cb44; border-radius: 8px; min-width: 0; }
.evidence-selection small { display: block; margin-top: 5px; font-size: 11px; color: #b7c8cd; }
.evidence-selection p { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.final-role-reveal li b { overflow-wrap: anywhere; }
.game-page .match-intel { display: flex; flex-direction: column; height: min(840px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px); overflow: hidden; }
.game-page .match-intel > .intel-tabs { position: relative; top: auto; flex-shrink: 0; }
.intel-navigation { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 5px; padding: 4px 10px; border-bottom: 1px solid var(--border); }
.intel-navigation small { font-size: 10px; color: #a4b7c8; }
.intel-navigation button { min-height: 36px; border: 0; background: transparent; color: #e8d2ad; font-size: 12px; cursor: pointer; }
.intel-panel-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: auto; scrollbar-gutter: stable; overflow-anchor: none; }
.game-page .intel-panel-scroll { scrollbar-width: thin; scrollbar-color: #70869a transparent; }
.game-page .match-intel .journal-list { max-height: none; overflow: visible; }
@media (max-width: 780px) {
  .game-page .match-intel { height: min(720px, 76dvh); max-height: 76dvh; }
  .night-team-workspace { margin: 6px; padding: 10px; }
  .intel-tabs button { font-size: 12px; padding-inline: 5px; }
}
.game-chat-launcher {
  position: fixed;
  right: 16px;
  bottom: max(76px, calc(16px + env(safe-area-inset-bottom)));
  z-index: 89;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid #f0d496a6;
  border-radius: 999px;
  background: linear-gradient(135deg, #f1d49b, #d6b574);
  box-shadow: 0 8px 26px #020711a8;
  color: #172333;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.game-chat-launcher > span:first-child { font-size: 17px; line-height: 1; }
.game-chat-launcher:hover { transform: translateY(-2px); background: #f5dfb2; }
.game-chat-launcher:focus-visible { outline: 3px solid #fff3cc; outline-offset: 3px; }
.game-page[data-chat-popup="open"] .game-chat-launcher { visibility: hidden; pointer-events: none; }
.game-info-launcher {
  position: fixed;
  left: 16px;
  bottom: max(76px, calc(16px + env(safe-area-inset-bottom)));
  z-index: 89;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid #91b5cf8c;
  border-radius: 999px;
  background: linear-gradient(135deg, #263d52, #172b3e);
  box-shadow: 0 8px 26px #020711a8;
  color: #e8f2f8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.game-info-launcher > span:first-child { font-size: 20px; line-height: 1; }
.game-info-launcher:hover { transform: translateY(-2px); background: #314c64; }
.game-info-launcher:focus-visible { outline: 3px solid #d5e9f8; outline-offset: 3px; }
.game-page[data-chat-popup="open"] .game-info-launcher,
.game-page[data-quick-info="claims"] .game-info-launcher,
.game-page[data-quick-info="weather"] .game-info-launcher { visibility: hidden; pointer-events: none; }
.game-quick-info-panel {
  position: fixed;
  inset: 16px 16px 16px auto;
  z-index: 91;
  display: flex;
  width: min(640px, calc(100vw - 32px));
  height: min(820px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #b7cde455;
  border-radius: 18px;
  background: #111d2bf7;
  box-shadow: 0 24px 80px #000b;
}
.quick-info-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.quick-info-header h2 { margin: 0; color: #f0d8a8; font-size: 17px; }
.quick-info-header p { margin: 4px 0 0; color: #a4b7c8; font-size: 11px; }
.quick-info-header > div:last-child { display: flex; flex-shrink: 0; gap: 6px; }
.quick-info-header button { min-height: 40px; padding: 7px 10px; white-space: nowrap; }
.quick-info-tabs { display: flex; flex-shrink: 0; border-bottom: 1px solid var(--border); background: #0c1723; }
.quick-info-tabs button { flex: 1; min-height: 48px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #b7c7d4; cursor: pointer; font-weight: 700; }
.quick-info-tabs button[aria-selected="true"] { border-bottom-color: #e8ca8c; color: #f2d89e; }
.quick-info-tabs button:focus-visible { outline: 2px solid #f2d89e; outline-offset: -3px; }
.quick-info-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 10px; scrollbar-gutter: stable; }
.quick-info-scroll > .public-claim-board, .quick-info-scroll > .weather-between-plaza { width: auto; margin: 0; }
.quick-info-scroll .weather-candidates { max-width: 100%; overflow-x: auto; }
.quick-info-scroll .weather-candidates table { min-width: 440px; }
.quick-info-scroll:focus-visible { outline: 2px solid #e8ca8c; outline-offset: -2px; }
.game-page[data-chat-popup="open"] .match-intel {
  position: fixed;
  inset: auto 16px max(76px, calc(16px + env(safe-area-inset-bottom))) auto;
  z-index: 91;
  width: min(520px, calc(100vw - 32px));
  height: min(760px, calc(100dvh - 80px));
  max-height: calc(100dvh - 80px);
  margin: 0;
  border: 1px solid #b7cde455;
  border-radius: 18px;
  background: #111d2bf7;
  box-shadow: 0 8px 26px #02071166;
}
.game-page[data-chat-popup="open"] .match-intel > .intel-tabs { position: sticky; top: 0; }
.game-page[data-chat-popup="open"] .intel-panel-scroll[data-intel-tab="discussion"] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.game-page[data-chat-popup="open"] .intel-panel-scroll[data-intel-tab="discussion"] > #panel-discussion:not([hidden]) {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}
.game-page[data-chat-popup="open"] #panel-discussion > .discussion-panel {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}
.game-page[data-chat-popup="open"] #panel-discussion .game-feed {
  min-height: 160px;
  max-height: none;
  flex: 1 1 0;
  overscroll-behavior: contain;
}
.game-page[data-chat-popup="open"] #panel-discussion > .public-draft-note,
.game-page[data-chat-popup="open"] .intel-panel-scroll[data-intel-tab="discussion"] > .private-case-notes {
  flex: 0 0 auto;
}
.game-page[data-chat-popup="open"] #panel-discussion .chat-form {
  min-height: 0;
  max-height: 40%;
  flex: 0 1 40%;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 -8px;
  padding: 10px 8px max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid #b7cde433;
  background: #111d2bf7;
}
#mobile-speech-overlay {
  position: fixed;
  inset: 0;
  z-index: 92;
  pointer-events: none;
}
#mobile-speech-overlay .seat-speech {
  position: fixed;
  bottom: auto;
  z-index: 93;
  display: block;
  width: min(32vw, 112px);
  max-height: 58px;
  overflow: hidden;
  padding: 5px 6px;
  background: #101b2b;
  box-shadow: 0 4px 14px #000b;
  font-size: 10px;
  line-height: 1.3;
}
#mobile-speech-overlay .seat-speech b { font-size: 8px; margin-bottom: 1px; }
#mobile-speech-overlay .seat-speech.is-spirit { background: #080b12; }
#mobile-speech-overlay .seat-speech.is-team { background: #0b2925; }
#mobile-speech-overlay .seat-speech-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
body.has-mobile-speech-overlay .game-page[data-chat-popup="open"] .village-seat > .seat-speech { visibility: hidden; }
.intel-navigation > div { display: flex; align-items: center; gap: 8px; }
.intel-navigation .chat-drawer-close { min-height: 36px; padding: 0 11px; border: 1px solid #b7cde344; border-radius: 9px; background: #26394d; color: #f0d8a8; font-weight: 700; }
@media (max-width: 780px) {
  .match-shortcuts { flex-wrap: wrap; }
  .match-shortcuts .match-quick-exit { display: block; min-width: 48px; }
  .game-chat-launcher { right: 12px; bottom: max(76px, calc(16px + env(safe-area-inset-bottom))); min-height: 50px; padding: 0 15px; }
  .game-info-launcher { left: 12px; bottom: max(76px, calc(16px + env(safe-area-inset-bottom))); min-height: 50px; padding: 0 13px; }
  .game-page[data-chat-popup="open"] .match-intel {
    inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px;
    width: auto;
    height: min(60dvh, 620px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 18px;
  }
  .game-page[data-chat-popup="open"] .match-intel .intel-panel-scroll { overscroll-behavior: contain; }
  .game-page[data-chat-popup="open"] #panel-discussion > .discussion-panel {
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .game-page[data-chat-popup="open"] #panel-discussion .game-feed { min-height: 140px; }
  .game-page[data-chat-popup="open"] #panel-discussion .chat-form {
    min-height: 0;
    max-height: none;
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 3;
    overflow-y: visible;
    overscroll-behavior: contain;
  }
  .game-page[data-chat-popup="open"] #panel-discussion .chat-compose {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #111d2bf7;
  }
  .game-quick-info-panel {
    inset: auto 8px max(8px, env(safe-area-inset-bottom)) 8px;
    width: auto;
    height: min(70dvh, 640px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    border-radius: 18px;
  }
  .quick-info-header { padding: 10px; }
  .quick-info-header h2 { font-size: 15px; }
  .quick-info-header p { max-width: 170px; font-size: 10px; }
  .quick-info-header button { min-height: 40px; padding: 6px 8px; font-size: 11px; }
  .quick-info-tabs button { min-height: 46px; }
  .quick-info-scroll { padding: 8px; }
  .quick-info-scroll .claim-groups { display: grid; overflow: visible; padding-bottom: 0; scroll-snap-type: none; }
  .quick-info-scroll .claim-groups > .claim-group { width: auto; min-width: 0; flex: initial; }
  .intel-navigation { padding-inline: 8px; }
  .intel-navigation small { font-size: 9px; }
  .intel-navigation > div { gap: 4px; }
  .intel-navigation button { padding-inline: 6px; font-size: 11px; }
  .intel-navigation .chat-drawer-close { padding: 0 8px; }
}
.claim-talk-button { margin-top: 6px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--claim-color); border-radius: 8px; background: transparent; color: var(--claim-color); font-size: 12px; font-weight: 700; }

.journal-facts { margin: 6px 0; padding: 6px 10px; border: 1px solid #ff8a8a55; border-radius: 10px; background: #1f1316; }
.journal-facts > summary { color: #ffb4b4; font-size: 13px; font-weight: 800; cursor: pointer; }
.journal-facts ul { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.journal-facts li { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.35; }
.journal-facts li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #e8d7d7; }
.journal-facts li .button { min-height: 30px; padding: 2px 8px; font-size: 11px; }

@media (max-width: 780px) {
  .evidence-targets { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 5px; }
  .evidence-targets label { font-size: 11px; }
  .evidence-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-options label:last-child { grid-column: 1 / -1; }
}
details.mafia-recruitment-history > summary,
details.recruitment-failure > summary {
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  color: #d8c8a9;
}

.game-page[data-phase] .phase-hud {
  min-height: 68px;
  padding: 11px 14px;
  border-width: 1px;
  border-radius: 14px;
  box-shadow: inset 0 1px #ffffff08;
}
.game-page[data-phase="day"] .phase-hud { background: linear-gradient(110deg, #203b4b, #172b3b); border-color: #9dc5d355; }
.game-page[data-phase="night"] .phase-hud { background: linear-gradient(110deg, #1d2142, #15192f); border-color: #a59ce755; }
.game-page[data-phase="vote"] .phase-hud { background: linear-gradient(110deg, #432d35, #2d202b); border-color: #edb49066; }
.game-page .phase-hud h1 { font-size: 20px; }
.game-page .phase-clock { min-width: 68px; padding: 9px 10px; border-radius: 10px; font-size: 19px; }
.game-page .match-progress { gap: 18px; margin: 12px 0 16px; padding: 10px 0; }
.game-page .match-layout { gap: 16px; }
.game-page .village-board { border-radius: 19px 19px 7px 7px; }
.game-page .action-card { padding: 17px; border-color: #e9c78d2e; border-radius: 15px; background: linear-gradient(145deg, #1b2b3d, #142131); }
.game-page .target-card { border-radius: 11px; background: #19293a; }
.game-page .target-card:hover,
.game-page .target-card.is-selected { border-color: #e9c78d; background: #e9c78d12; }
.game-page .match-intel { border-radius: 16px; background: #121e2c; box-shadow: 0 12px 30px #02071130; }
.game-page .intel-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; background: #172638; }
.game-page .intel-tabs button { flex: 1 0 84px; min-height: 50px; }
.game-page .intel-tabs button[aria-selected="true"] { background: #1d3043; }
@media (max-width: 780px) {
  .game-page .match-progress { gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .game-page .match-progress::-webkit-scrollbar { display: none; }
  .game-page .match-progress span { flex: 0 0 auto; }
  .game-page[data-phase] .phase-hud { min-height: 60px; padding: 9px 11px; }
  .game-page .phase-hud h1 { font-size: 17px; }
  .game-page .phase-clock { min-width: 58px; padding: 8px; font-size: 17px; }
  .game-page .action-card { padding: 14px; }
  .game-page .match-stage-column > .weather-between-plaza { width: auto; }
}

details.mafia-recruitment-history:not([open]) .mafia-plan-grid {
  display: none;
}

details.recruitment-failure {
  border: 1px solid #48505a;
  border-radius: 12px;
  padding: 0 8px;
}

@media (max-width: 780px) {
  .game-page .match-brand, .game-page .match-progress { display: none; }
  .game-page .night-team-workspace .game-feed { max-height: none; overflow: visible; }
  .game-page .match-shortcuts, .game-page .quick-talk-people, .game-page .log-talk-tabs { overscroll-behavior-y: auto; }
  .game-page .match-hud { min-height: 0; gap: 5px; }
  .game-page[data-phase] .phase-hud { order: 0; flex: 1 1 160px; min-height: 48px; padding: 5px 8px; }
  .game-page .match-tools { gap: 3px; }
  .game-page .match-tools .match-exit { min-height: 44px; padding: 0 6px; }
  .game-page .match-shortcuts { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; backdrop-filter: none; }
  .game-page .match-shortcuts button { flex: 1 0 auto; padding-inline: 8px; }
  .game-page .match-shortcuts .match-quick-exit { display: none; }
  .game-page .game-chat-launcher, .game-page .game-info-launcher { display: none; }
  .game-page .match-evidence-column, .game-page .match-stage-column > .weather-between-plaza { display: none; }
  .game-page .village-location { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; min-height: 0; padding: 8px 10px 12px; }
  .game-page .village-location > span { grid-column: 1; }
  .game-page .village-location > strong { grid-column: 1; font-size: clamp(14px, 4vw, 19px); }
  .game-page .village-location > small,
  .game-page .plaza-clock > small,
  .game-page .plaza-clock .plaza-weather-fact { display: none; }
  .game-page .plaza-clock { position: static; grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; width: auto; min-width: 0; gap: 6px; padding: 5px 7px; }
  .game-page .plaza-clock time { font-size: 19px; }
  .game-page .village-seats { height: clamp(395px, 66svh, 510px); }
  .game-page .village-seats .village-seat { min-height: 64px; }
  .game-page .village-seats .seat-portrait { height: 34px; width: 26px; filter: none; }
  .game-page .seat-speech { --speech-duration: 20s; z-index: 40; display: block; width: min(32vw, 112px); max-height: 58px; overflow: hidden; padding: 5px 6px; background: #101b2b; box-shadow: 0 4px 14px #000b; font-size: 10px; line-height: 1.3; animation: speech-hold var(--speech-duration) steps(1, end) var(--speech-age) both; }
  .game-page .seat-speech b { font-size: 8px; margin-bottom: 1px; }
  .game-page .seat-speech.is-spirit { background: #080b12; }
  .game-page .seat-speech.is-team { background: #0b2925; }
  .game-page .seat-speech-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .game-page .village-seat.is-selected .seat-portrait { animation: none; }
  .game-page .table-center:not(.plaza-night-controls),
  .game-page .table-center-actions { width: min(156px, 48vw); }
  .game-page .table-center:has(.table-last-words-form) { width: min(270px, 86vw); }
  .game-page .table-center-actions { margin-inline: auto; gap: 4px; flex-wrap: wrap; }
  .game-page .table-center-actions > .penguin-table { flex: 0 1 auto; width: auto; min-height: 44px; display: flex; align-items: center; gap: 3px; padding: 4px 6px; border-radius: 9px; box-shadow: none; font-size: 11px; }
  .game-page .table-center-actions > .penguin-table svg { width: 23px; height: 23px; }
  .game-page .table-center-actions > .penguin-table small { display: none; }
  .game-page .table-center-actions > .time-extension { flex: 0 1 auto; gap: 2px; padding: 3px; font-size: 10px; }
  .game-page .table-vote-clock { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; margin-bottom: 4px; padding: 4px; }
  .game-page .table-vote-clock time { font-size: 17px; }
  .game-page .table-vote-clock small { width: 100%; font-size: 9px; }
  .game-page .plaza-night-controls h2 { font-size: 14px; }
  .game-page .plaza-night-controls .button { padding: 4px; font-size: 11px; }
  .game-page .table-report-window { gap: 2px; padding: 4px; }
  .game-page .match-cinema, .game-page .mobile-tools-modal { place-items: start center; padding: max(8px, env(safe-area-inset-top)) 8px; backdrop-filter: none; background: #050d19d9; }
  .game-page .cinema-card, .game-page .mobile-tools-card { width: min(100%, 400px); max-height: 55dvh; padding: 9px; border-radius: 12px; box-shadow: none; animation: none; }
  .game-page .dawn-briefing-card {
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .game-page .cinema-card h2, .game-page .mobile-tools-card h2 { margin: 3px 0; font-size: 17px; }
  .game-page .cinema-card p, .game-page .cinema-card li { line-height: 1.35; }
  .game-page .dawn-briefing-card, .game-page .dawn-briefing-section { gap: 5px; }
  .game-page .dawn-briefing-section, .game-page .dawn-briefing .private-result-summary { margin: 0; padding: 6px; }
  .game-page .dawn-briefing-events li { grid-template-columns: minmax(0, 1fr); padding: 4px 6px; }
  .game-page .dawn-mini-portrait { display: none; }
  .game-page .dawn-briefing-card > .button { min-height: 44px; }
  .game-page .match-event, .game-page .intervention-window, .game-page .own-character-banner { margin-block: 4px; padding-block: 5px; }
  .game-page .village-atmosphere::before,
  .game-page .village-atmosphere::after,
  .game-page .village-weather::before,
  .game-page .village-weather i,
  .game-page .plaza-orbit::before,
  .game-page .plaza-orbit::after,
  .game-page .plaza-orbit i { animation: none !important; }
  .game-page .village-seat:not(.is-eliminated) .seat-portrait,
  .staging-page .staging-seat:not(.is-empty) .seat-portrait {
    animation: mobile-character-breathe 3s ease-in-out infinite;
  }
  .game-page[data-phase] .village-atmosphere,
  .game-page[data-phase] .village-weather { box-shadow: none; }
  .game-page[data-phase] .village-art,
  .game-page[data-phase] .village-weather,
  .game-page[data-phase="night"] .village-weather::before,
  .game-page .village-seat.is-selected .walking-person { filter: none; }
  .game-page[data-weather="rain"] .village-weather i:not(:first-child) { display: none; }
  .game-page[data-weather="rain"] .village-weather i:first-child {
    inset: -140px;
    background: repeating-linear-gradient(109deg, transparent 0 24px, #b0d7ef70 25px, transparent 27px 48px);
    background-size: 92px 140px;
    animation: mobile-rain-drift 1.6s linear infinite !important;
    will-change: transform;
  }
  .game-page[data-weather="rain"] .village-atmosphere::before,
  .game-page[data-phase="night"] .village-weather::before { content: none; }
  .game-page[data-chat-popup="closed"] .match-intel { display: none; }
  .game-page[data-chat-popup="open"] .match-intel {
    --chat-viewport: var(--match-visible-height, 100dvh);
    inset: auto 6px calc(var(--match-keyboard-inset, 0px) + max(4px, env(safe-area-inset-bottom))) 6px;
    height: min(580px, max(260px, calc(var(--chat-viewport) * .56)));
    max-height: calc(var(--chat-viewport) - max(8px, env(safe-area-inset-top)) - max(8px, env(safe-area-inset-bottom)));
  }
  @media (max-width: 780px) and (prefers-reduced-motion: reduce) {
    .game-page[data-weather="rain"] .village-weather i:first-child {
      animation: none !important;
      will-change: auto;
    }
  }
  .game-page[data-chat-popup="open"] .intel-tabs button { min-height: 36px; }
  .game-page[data-chat-popup="open"] .intel-navigation { justify-content: flex-end; padding-block: 0; }
  .game-page[data-chat-popup="open"] .intel-navigation small,
  .game-page[data-chat-popup="open"] .intel-navigation [data-action="intel-top"] { display: none; }
  .game-page[data-chat-popup="open"] .intel-panel-scroll[data-intel-tab="discussion"] { padding: 0; }
  .game-page[data-chat-popup="open"] #panel-discussion > .discussion-panel {
    padding: 4px 6px; margin: 0; border: 0; overflow: hidden;
  }
  .game-page[data-chat-popup="open"] #panel-discussion .discussion-panel > :is(h2, .section-title-row, .discussion-help, .claim-notice, .form-hint),
  .game-page[data-chat-popup="open"] .intel-panel-scroll[data-intel-tab="discussion"] > .private-case-notes { display: none; }
  .game-page[data-chat-popup="open"] #panel-discussion .quick-claims {
    display: flex; flex-wrap: nowrap; flex-shrink: 0; overflow-x: auto; margin: 0;
  }
  .game-page[data-chat-popup="open"] #panel-discussion .quick-claims button { flex-shrink: 0; min-height: 32px; }
  .game-page[data-chat-popup="open"] #panel-discussion:has(:is(#team-message, #spirit-message, #chat-message):focus) .quick-claims { display: none; }
  .game-page[data-chat-popup="open"] #panel-discussion .discussion-panel > .game-feed { min-height: 0; margin: 0; padding: 4px; }
  .game-page[data-chat-popup="open"] #panel-discussion .chat-channel-switcher { margin: 0; }
  .game-page[data-chat-popup="open"] #panel-discussion .chat-channel-switcher button { min-height: 32px; padding-block: 2px; }
  .game-page[data-chat-popup="open"] #panel-discussion .discussion-panel > .chat-form {
    position: static; min-height: 0; flex: 0 1 38%; max-height: 38%; overflow-y: auto; margin: 0; padding: 3px 0 0;
  }
  .game-page[data-chat-popup="open"] #panel-discussion .chat-form > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .game-page[data-chat-popup="open"] #panel-discussion .chat-form .chat-compose {
    position: sticky; bottom: 0; z-index: 2; background: #111d2bf7;
  }
  .game-page[data-chat-popup="open"] #panel-discussion .chat-compose :is(input, textarea) {
    box-sizing: border-box; flex: 1 1 0; min-width: 0; width: 0; height: 58px; min-height: 58px; padding: 8px; font-size: 16px; resize: none;
  }
  .game-page[data-chat-popup="open"] #panel-discussion .chat-compose .button { flex: 0 0 auto; min-height: 42px; max-width: 30%; padding-inline: 8px; }
}

@supports (width: 1cqw) and (container-type: size) {
  @media (max-width: 780px) {
    .game-page .village-seats.is-walkable { container-type: size; }
    .game-page .village-seats.is-walkable .village-seat,
    .game-page .village-seats.is-walkable .village-seat:not(:disabled):hover {
      left: 0; top: 0;
      transform: translate3d(calc(var(--seat-tx) - 50%), calc(var(--seat-ty) - 50%), 0);
      transition: transform 180ms cubic-bezier(.2, .72, .24, 1);
    }
  }

  @media (min-width: 781px) {
    .game-page[data-chat-popup="closed"] .match-layout { grid-template-columns: minmax(0, 1fr); }
    .game-page[data-chat-popup="closed"] .match-intel { display: none; }
    .game-page[data-chat-popup="open"] .match-layout { grid-template-columns: minmax(0, 1fr) minmax(400px, 520px); }
    .game-page[data-chat-popup="open"] .match-intel {
      position: sticky;
      inset: auto;
      /* Reserve the 66px sticky shortcut row plus a 12px gap. */
      top: calc(78px + env(safe-area-inset-top, 0px));
      z-index: auto;
      width: auto;
      height: min(840px, calc(100dvh - 90px - env(safe-area-inset-top, 0px)));
      max-height: calc(100dvh - 90px - env(safe-area-inset-top, 0px));
      margin: 0;
    }
  }

  @media (min-width: 781px) and (max-width: 1050px) {
    .game-page[data-chat-popup="open"] .match-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  }
}
