/* War Room (Epic D4): the big-screen team raid. Same CRT look as web/style.css, own file so the main page is untouched. */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }
:root { --fg: #33ff33; --dim: #22b022; --bg: #050805; --warn: #ffb000; --hot: #ff6a3d; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", "Courier New", monospace;
  font-size: 16px; line-height: 1.35; }
body { min-height: 100vh; background: radial-gradient(ellipse at center, #0a140a 0%, var(--bg) 70%); }
h1, h2 { margin: 0 0 .4rem; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 0 6px rgba(51, 255, 51, .6); }
h1 { font-size: 1.5rem; }
p { margin: .2rem 0; }
button { font: inherit; color: var(--fg); background: transparent; border: 1px solid var(--dim); padding: .25rem .75rem; min-height: 44px; cursor: pointer; }
button:hover, button[aria-pressed="true"] { background: var(--fg); color: #000; }
input { font: inherit; color: var(--fg); background: #0a140a; border: 1px solid var(--dim); padding: .25rem .5rem; min-height: 44px; min-width: 0; }
label { display: block; color: var(--dim); }
:focus-visible { outline: 2px solid var(--warn); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: #000; padding: .5rem; z-index: 10; }
.skip:focus { left: 0; }
.muted { color: var(--dim); }
.wr-top { padding: .5rem 1rem 0; }
.banner { display: inline-block; margin: .2rem 0; padding: .2rem .75rem; border: 2px solid var(--warn); color: var(--warn); font-weight: 700; }
.banner.live { border-color: var(--fg); color: var(--fg); }
.note { color: var(--dim); }
.wr-grid { display: grid; gap: .75rem; padding: .75rem 1rem 1rem; grid-template-columns: minmax(0, 1fr); }
.panel { position: relative; border: 1px solid var(--dim); padding: .5rem .75rem; min-width: 0; box-shadow: inset 0 0 40px rgba(0, 0, 0, .6); }
.plate { margin: 0; white-space: pre; overflow: hidden; font: inherit; font-size: clamp(6px, 1.7vw, 16px); line-height: 1.15; text-shadow: 0 0 4px rgba(51, 255, 51, .5); }
.plate span[data-state="Possessed"] { color: var(--hot); }
.plate span[data-state="Rotting"] { color: var(--warn); }
.plate span[data-state="Healed"] { color: #9dffb0; }
.plate .just-healed { animation: heal 1.6s ease-out 1; }
.plate .convulsing { animation: convulse .5s linear 3; display: inline-block; color: #ff3030; }
@keyframes heal { 0% { color: #fff; text-shadow: 0 0 18px #fff; } 100% { text-shadow: 0 0 4px rgba(51, 255, 51, .5); } }
@keyframes convulse { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-3px, 2px); } 75% { transform: translate(3px, -2px); } }
.flash { position: absolute; inset: 0; background: #dff; opacity: 0; pointer-events: none; }
.flash.thunder { animation: thunder .8s ease-out 1; }
@keyframes thunder { 0% { opacity: .85; } 20% { opacity: .1; } 35% { opacity: .6; } 100% { opacity: 0; } }
.rejection { min-height: 1.4em; color: #ff6060; font-weight: 700; transition: opacity .6s; }
.rejection:empty { opacity: 0; }
.boss-list, .feed, .badges { list-style: none; margin: 0; padding: 0; }
.boss-list li { margin-bottom: .6rem; }
.boss-card { border: 1px solid var(--dim); padding: .6rem; background: #0a140a; }
.boss-card.is-healed { opacity: .7; }
.boss-facts { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin: .4rem 0 0; }
.kev-badge { background: var(--hot); color: #000; font-weight: 700; padding: 0 .4em; }
.boss-sla { margin: .3rem 0 0; font-weight: 700; }
.boss-sla.overdue { color: #ff6060; }
.boss-sim { margin: .3rem 0 0; }
.arena-empty { text-align: center; padding: 1rem 0; }
.arena-title { margin: 0; font-weight: 700; }
.nights { margin: .2rem 0; font-size: 4.5rem; line-height: 1; font-weight: 700; }
.boss-name { display: flex; justify-content: space-between; gap: .5rem; }
.bar { height: 14px; border: 1px solid var(--dim); background: #0a140a; }
.bar > span { display: block; height: 100%; background: var(--hot); transition: width .6s; }
.bar.healed > span { background: #9dffb0; }
.big { font-size: 2.4rem; font-weight: 700; margin: 0; text-shadow: 0 0 8px rgba(51, 255, 51, .6); }
.feed { max-height: 22rem; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.feed li { margin-bottom: .3rem; overflow-wrap: anywhere; }
.feed li.sim::before { content: ""; }
.feed li.rejected { color: #ff6060; }
.feed li.healed { color: #9dffb0; }
.badges li { margin-bottom: .2rem; }
.badges li[data-earned="false"] { color: var(--dim); }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.row label { flex: 1 1 100%; }
.row input { flex: 1 1 14rem; }
#recap canvas { max-width: 100%; height: auto; border: 1px solid var(--dim); }
@media (min-width: 900px) {
  .wr-grid { grid-template-columns: 1fr 1fr 1fr 1.2fr; grid-template-areas:
    "scene scene bosses feed"
    "score countdown combo feed"
    "badges badges controls controls"
    "history history history history"
    "recap recap recap recap"; }
  #scene { grid-area: scene; }
  #bosses { grid-area: bosses; }
  #feed-panel { grid-area: feed; }
  #score { grid-area: score; }
  #countdown { grid-area: countdown; }
  #combo { grid-area: combo; }
  #badges-panel { grid-area: badges; }
  #controls { grid-area: controls; }
  #history { grid-area: history; }
  #recap { grid-area: recap; }
}
@media (min-width: 1700px) { .plate { font-size: 13px; } .big { font-size: 3rem; } }
@media (prefers-reduced-motion: reduce) {
  .plate .just-healed, .plate .convulsing, .flash.thunder { animation: none; }
  .bar > span, .rejection { transition: none; }
}
h3 { margin: .6rem 0 .2rem; font-size: .9rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.hist { margin: 0; padding-left: 1.2rem; }
.hist li { margin-bottom: .2rem; overflow-wrap: anywhere; }
.unknown { color: var(--warn); }
.rejection-limb { font-weight: 400; opacity: .85; }
.rejection-limb::after { content: ":"; }
