/* 912. A comic book that got left on a dispatcher's desk: night-blue city, newsprint cream, four flat inks
   (yellow, red, blue, green), one thick black line round everything, hard offset shadows, halftone dots.
   Display type is Bangers, reading type is Comic Neue; both are bundled (the table rig is offline). */

@font-face { font-family: 'Bangers'; src: url('/media/fonts/Bangers-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Comic Neue'; font-weight: 400; src: url('/media/fonts/ComicNeue-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Comic Neue'; font-weight: 700; src: url('/media/fonts/ComicNeue-Bold.ttf') format('truetype'); font-display: swap; }

:root {
  --ink: #14121f; --paper: #fff6dc; --yellow: #ffd23c; --red: #e8322c; --blue: #2b7fff; --green: #35b56a;
  --night: #191731; --night2: #24214a; --dim: #b9b3d6;
  --head: 'Bangers', Impact, 'Arial Narrow Bold', sans-serif;
  --body: 'Comic Neue', 'Comic Sans MS', 'Trebuchet MS', system-ui, sans-serif;
  --shadow: 4px 4px 0 var(--ink);
  --dots: radial-gradient(circle at 3px 3px, rgba(0,0,0,.2) 1.3px, transparent 1.6px);
  --k: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--night); color: var(--paper); font: 700 16px/1.3 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; letter-spacing: .04em; margin: 0; }
small { font-weight: 700; }

/* ---- shared marks ---------------------------------------------------------------------------------------- */
.logo912 .logo-n { font: 400 78px var(--head); fill: var(--paper); stroke: var(--ink); stroke-width: 7px; paint-order: stroke; letter-spacing: 6px; }
.badge { flex: none; vertical-align: middle; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
svg text { font-family: var(--head); }
.lights { display: inline-flex; gap: 2px; vertical-align: middle; background: var(--ink); border-radius: 999px; padding: 3px 8px 1px; }
.lights .bulb { fill: var(--yellow); }
.lights .on { filter: drop-shadow(0 0 5px rgba(255,210,60,.9)); }
.lights .off .bulb { fill: #3a3648; }
.stars { color: var(--yellow); letter-spacing: 1px; font-family: system-ui, sans-serif; text-shadow: 1px 1px 0 var(--ink); }
.stars i { color: rgba(255,255,255,.22); font-style: normal; text-shadow: none; }
.grade { display: inline-grid; place-items: center; min-width: 2em; height: 2em; padding: 0 .3em; border: 3px solid var(--red); border-radius: 50%; color: var(--red); font: 400 1.3em var(--head); transform: rotate(-9deg); background: rgba(232,50,44,.07); }
.grade.g-Ap, .grade.g-A { border-color: #1d8a4c; color: #1d8a4c; background: rgba(29,138,76,.08); }
.grade.g-B { border-color: #1f5fd1; color: #1f5fd1; background: rgba(31,95,209,.07); }
.grade.g-C { border-color: #b8791a; color: #b8791a; }
.grade.g-none { border-color: #888; color: #888; }

/* a call's header strip */
.chead { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chead .ctitle { font: 400 1.25em var(--head); letter-spacing: .05em; white-space: nowrap; }
.chead .cplace { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: .85em; }
.clock, .bombt { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font: 400 1.1em var(--head); box-shadow: 2px 2px 0 var(--ink); }
.clock.low { background: var(--red); color: #fff; animation: throb .9s ease-in-out infinite; }
.bombt { background: #2a2838; color: var(--yellow); border-radius: 8px; }
.bombt.hot { background: var(--red); color: #fff; animation: throb .6s ease-in-out infinite; }
.bombt.iced { background: #8fe3f5; color: var(--ink); }
@keyframes throb { 50% { transform: scale(1.14); } }

/* a card */
.card { --hc: #888; --hi: #fff; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.card .cn { display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: var(--hc); color: var(--hi); border-bottom: 3px solid var(--ink); font: 400 1.15em var(--head); letter-spacing: .05em; }
.card .cn b { font-weight: 400; }
.card .face { padding: 5px 8px 6px; display: flex; flex-direction: column; gap: 1px; font-size: .82em; line-height: 1.2; }
.card .face + .face { border-top: 2px dashed rgba(20,18,31,.35); }
.card .face .fl { font: 400 .95em var(--head); letter-spacing: .08em; color: #2d6a3f; }
.card .face.full { background: #ffe9e2; background-image: var(--dots); background-size: 7px 7px; }
.card .face.full .fl { color: var(--red); }
.card .face .coll { font-style: normal; font-size: .9em; color: #a3211c; font-weight: 700; }
.card .face.off { opacity: .38; }
.card .face.sel { outline: 4px solid var(--blue); outline-offset: -4px; background-color: #e3efff; }
.card .face.clean .fl { color: #0b7a3b; }
.card .face.clean { background: #dcf7e6; }
.card.dead { filter: saturate(.5); }
.card.on { transform: translateY(-6px); box-shadow: 6px 8px 0 var(--ink); border-color: var(--blue); }
.card.small { font-size: .85em; box-shadow: 2px 2px 0 var(--ink); }

/* a hero chip */
.hchip { --sc: #fff; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 3px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.hchip .hn { display: flex; flex-direction: column; line-height: 1; }
.hchip .hn b { font: 400 1.1em var(--head); letter-spacing: .05em; }
.hchip .hn small { font-size: .8em; opacity: .75; }
.hchip .pips { display: inline-flex; gap: 2px; }
.hchip .pips i { width: 6px; height: 12px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--hc); }
.hchip .pips i.off { background: #cfc8b4; opacity: .5; }
.hchip .acts { color: var(--blue); font-size: .9em; letter-spacing: 1px; font-family: system-ui, sans-serif; }
.hchip.done .acts { color: #1d8a4c; font: 400 .9em var(--head); }
.hchip .sus { font: 400 .8em var(--head); font-style: normal; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; background: var(--yellow); border: 2px solid var(--ink); }
.hchip .sus.bad { background: var(--red); color: #fff; } .hchip .sus.good { background: #7be0a1; }
.hchip.down { filter: grayscale(.8); }

/* a caller's words */
.balloon { position: relative; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; padding: 8px 12px; font-weight: 700; line-height: 1.25; box-shadow: 3px 3px 0 var(--ink); }
.balloon::after { content: ''; position: absolute; left: 22px; bottom: -14px; border: 7px solid transparent; border-top-color: var(--ink); border-left-color: var(--ink); }
.balloon .who { display: block; margin-top: 3px; font-size: .78em; color: #6b6480; }
.late { font: 400 .8em var(--head); font-style: normal; background: var(--red); color: #fff; padding: 1px 7px; border: 2px solid var(--ink); border-radius: 4px; transform: rotate(-3deg); display: inline-block; }

/* the scene */
.scene { display: block; width: 100%; height: 100%; }
.scene .exitw { font-family: var(--head); fill: var(--ink); letter-spacing: 1px; }
.scene .pitw { font-family: var(--head); fill: var(--yellow); }
.scene .spotw, .scene .stagw, .scene .bombw, .scene .sfx { font-family: var(--head); fill: var(--ink); }
.scene .lbl { font: 700 9px var(--body); fill: #fff; stroke: var(--ink); stroke-width: 2.6px; paint-order: stroke; }
.scene .shout { font: 400 9px var(--head); fill: var(--red); }
.scene .sack { font: 400 7px var(--head); fill: var(--ink); }
.scene .grain { pointer-events: none; }
.scene .fire path { transform-box: fill-box; transform-origin: 50% 100%; animation: flick .5s ease-in-out infinite alternate; }
@keyframes flick { to { transform: scale(1.12, .9) skewX(4deg); } }
.scene .ember, .scene .ember-f { animation: pulse 1s ease-in-out infinite; }
.scene .crack, .scene .debris.falls { animation: pulse .8s ease-in-out infinite; }
.scene .drop { animation: dropd .9s ease-in infinite; }
@keyframes dropd { from { transform: translateY(-6px); opacity: .3; } to { transform: translateY(3px); opacity: 1; } }
@keyframes pulse { 50% { opacity: .45; } }
.scene .shield { animation: pulse 2.4s ease-in-out infinite; }
.scene .openring { animation: spin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene .foew.skip { opacity: .75; }
.scene .hero.me .mering { animation: pulse 1.4s ease-in-out infinite; }
.scene .hero.done .hb { opacity: .78; }
.scene .lit { animation: pulse 1.2s ease-in-out infinite; pointer-events: none; }
.scene .lit.pick { animation: none; }
.scene .warn, .scene .look { pointer-events: none; }
.scene .hit { cursor: pointer; }
.scene .plan { pointer-events: none; }
.scene .bomb.hot { animation: throb .6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* the paper */
.paper { background: #f4ecd4; background-image: var(--dots); background-size: 6px 6px; color: var(--ink); border: 4px solid var(--ink); box-shadow: 8px 8px 0 rgba(0,0,0,.55); padding: 14px 18px 16px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.paper .mast { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-bottom: 5px double var(--ink); padding-bottom: 6px; margin-bottom: 10px; }
.paper .mast h1 { font: 900 2.3em/1 'Times New Roman', Georgia, serif; letter-spacing: .02em; text-align: center; flex: 1; }
.paper .mast .ed { font: 700 .62em var(--body); letter-spacing: .1em; white-space: nowrap; }
.paper .story { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.paper .story + .story, .paper .cols .story { border-top: 1px solid rgba(20,18,31,.45); }
.paper .story h3, .paper .story h2 { font: 400 1.5em/1.02 var(--head); letter-spacing: .03em; }
.paper .story.lead h3 { font-size: 2.5em; } .paper .story.lead h2 { font-size: 3.4em; }
.paper .story p { margin: 4px 0; font-size: .95em; line-height: 1.3; }
.paper .st-body { flex: 1; min-width: 0; }
.paper .st-foot { display: flex; align-items: center; gap: 10px; font: 700 .72em var(--body); letter-spacing: .04em; text-transform: uppercase; color: #5a536b; }
.paper .lead-tag { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); padding: 0 6px; border-radius: 3px; }
.paper .photo { position: relative; flex: none; width: 96px; height: 76px; border: 3px solid var(--ink); background: #cfc7ae; background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,.42) 1.2px, transparent 1.5px); background-size: 5px 5px; display: grid; place-items: center; overflow: hidden; }
.paper .photo .pk { width: 80%; height: 80%; }
.paper .photo .ph-h { position: absolute; right: 2px; bottom: 2px; display: flex; }
.paper .photo .ph-h .badge { margin-left: -8px; }
.paper .story.lead .photo { width: 170px; height: 132px; }
.paper .story.s-skipped { opacity: .82; } .paper .story.s-skipped h3 { color: #5a536b; }
.paper .cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.paper .whodunit { margin: 8px 0 0; padding-top: 6px; border-top: 5px double var(--ink); font-style: italic; text-align: right; }
.paper .bigrade { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 .7em var(--body); letter-spacing: .1em; }
.paper .bigrade .grade { font-size: 3.2em; border-width: 6px; }
.paper .sub2 { color: #5a536b; font-style: italic; }
.paper .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 10px; }
.paper .nums div { border: 3px solid var(--ink); background: #fff; padding: 4px 8px; text-align: center; box-shadow: 3px 3px 0 var(--ink); }
.paper .nums b { display: block; font: 400 2em/1 var(--head); } .paper .nums span { font: 700 .7em var(--body); text-transform: uppercase; letter-spacing: .06em; }
.paper .nums .bad b { color: var(--red); }
.paper .recap h4 { font: 400 1.1em var(--head); letter-spacing: .08em; border-bottom: 2px solid var(--ink); margin: 6px 0 4px; }
.paper .recap ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.paper .recap li { display: flex; align-items: center; gap: 10px; } .paper .recap li .grade { font-size: .9em; flex: none; }
.paper .recap li span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; } .paper .recap li b { font: 400 1.05em var(--head); letter-spacing: .03em; } .paper .recap li small { font: 700 .62em var(--body); letter-spacing: .05em; text-transform: uppercase; color: #5a536b; }
.ph.paperv .paper .recap ul { grid-template-columns: 1fr; }
.paper .roll h4 { font: 400 1.1em var(--head); letter-spacing: .08em; border-bottom: 2px solid var(--ink); margin: 6px 0 4px; }
.paper .roll h4.not { color: #5a536b; border-color: #5a536b; }
.paper .roll ul { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 18px; font-size: .86em; line-height: 1.32; }
.paper .roll li { break-inside: avoid; } .paper .roll li small { color: #6b6480; font: 400 .88em Georgia, serif; font-style: italic; }
.paper .roll ul.not { color: #5a536b; }
.paper .dedic, .dedic { margin-top: 10px; text-align: center; font: 700 .9em var(--body); font-style: italic; letter-spacing: .02em; }

/* the lobby's rules box */
.levers { background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.25); border-radius: 10px; padding: 6px 12px; }
.levers summary { cursor: pointer; font: 400 1.1em var(--head); letter-spacing: .06em; }
.levers summary b { color: var(--yellow); font-weight: 400; }
.lv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 8px; }
.lv-row { display: flex; flex-direction: column; gap: 2px; font-size: .85em; }
.lv-row select { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; padding: 4px; font-weight: 700; }
.lv-reset { margin-top: 8px; }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 30px); opacity: 0; transition: .2s; z-index: 2000; pointer-events: none; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 8px 14px; box-shadow: var(--shadow); max-width: 88vw; text-align: center; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#conn { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2001; display: none; background: var(--red); color: #fff; border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px; font: 400 1em var(--head); letter-spacing: .06em; }
#conn.show { display: block; }

/* the kit's "how to play" card, in the house style */
body .gk-rules { font: 700 16px/1.4 var(--body); background: rgba(13,11,28,.82); }
body .gk-rules-card { background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 8px 8px 0 var(--ink); }
body .gk-rules-head { font: 400 30px var(--head); letter-spacing: .05em; background: var(--red); color: var(--paper); padding: 12px 20px; border-bottom: 4px solid var(--ink); }
body .gk-rules-sub { color: #6b6480; padding-top: 8px; }
body .gk-rules-body b, body .gk-rules-body strong { color: #b01f1a; }
body .gk-rules-foot { background: #efe4c2; border-top: 3px solid var(--ink); }
body .gk-rules-skip { color: #4a4460; }
body .gk-rules-go { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); font: 400 20px var(--head); letter-spacing: .06em; }

/* ============================================================================================================
   THE PHONE
   ============================================================================================================ */
body.phone { background: var(--night); background-image: radial-gradient(circle at 3px 3px, rgba(255,255,255,.05) 1.3px, transparent 1.6px); background-size: 9px 9px; }
body.phone #app { min-height: 100%; max-width: 560px; margin: 0 auto; }
body.phone button { border: 3px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); padding: 8px 12px; font: 400 1.1em var(--head); letter-spacing: .06em; box-shadow: 3px 3px 0 var(--ink); }
body.phone button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
body.phone button:disabled { opacity: .45; box-shadow: none; }
body.phone button.go, body.phone button.primary { background: var(--yellow); }
body.phone button.go { font-size: 1.35em; padding: 10px 18px; }
body.phone button.go.wait { background: #d8d2c0; }
body.phone button.go.pulse { animation: throb 1s ease-in-out infinite; }

/* the kit's join and lobby screens */
.join, .lobbyv { padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.join h1, .lobbyv h1 { font-size: 2.4em; color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); }
.join input { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 12px; font-size: 1.2em; font-weight: 700; box-shadow: var(--shadow); }
.join .hint, .tagg { color: var(--dim); font-size: .9em; }
.seat-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.2); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; }
.seat-row .tagg { font: 400 .95em var(--head); letter-spacing: .05em; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.lobby-extra { display: flex; flex-direction: column; gap: 10px; }
body.phone .lobby-extra .howto { align-self: flex-start; background: var(--blue); color: #fff; }
body.phone .lv-grid { grid-template-columns: 1fr; }

.ph { min-height: 100dvh; display: flex; flex-direction: column; }

/* dispatch */
.ph.disp .dhead { position: sticky; top: 0; z-index: 5; background: var(--night); border-bottom: 4px solid var(--ink); padding: 8px 10px 6px; }
.dh-t { display: flex; gap: 10px; align-items: center; }
.dh-t b { font: 400 1.25em var(--head); letter-spacing: .05em; color: var(--yellow); }
.dh-t small { display: block; color: var(--dim); font-size: .78em; line-height: 1.2; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
body.phone .tabs button { box-shadow: none; background: rgba(255,255,255,.1); color: var(--paper); border-color: rgba(255,255,255,.3); }
body.phone .tabs button.on { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.dbody { flex: 1; padding: 12px 10px 20px; display: flex; flex-direction: column; gap: 16px; }
.callc { background: var(--night2); border: 3px solid var(--ink); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; border-left: 10px solid var(--red); }
.callc.k-fire { border-left-color: #ff8a1f; } .callc.k-collapse { border-left-color: #8a97a6; } .callc.k-bomb { border-left-color: var(--yellow); }
.callc.on { outline: 4px solid var(--yellow); }
.cc-top { display: flex; align-items: center; gap: 8px; } .cc-top b { font: 400 1.5em var(--head); letter-spacing: .05em; flex: 1; }
.cc-place { color: var(--dim); font-size: .82em; }
.cc-need { font-size: .86em; color: var(--dim); } .cc-need .good { color: #7be0a1; } .cc-need .meh { color: #ffb38a; }
.cc-go { display: flex; align-items: center; gap: 4px; margin-top: 2px; } .cc-go .none { color: var(--dim); font-size: .85em; flex: 1; }
.cc-go .pickc { margin-left: auto; } body.phone .pickc.on, body.phone .pickh.on { background: var(--green); color: #fff; }
.dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); }
.roster { display: grid; grid-template-columns: 1fr; gap: 10px; }
.heroc { --hc: #888; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; border-top: 10px solid var(--hc); }
.heroc.on { outline: 4px solid var(--yellow); }
.heroc.taken, .heroc.out { opacity: .6; }
.hc-top { display: flex; align-items: center; gap: 10px; }
.hc-n { flex: 1; line-height: 1.05; } .hc-n b { font: 400 1.5em var(--head); letter-spacing: .05em; } .hc-n small { display: block; opacity: .7; }
.hc-s { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font: 400 .9em var(--head); letter-spacing: .05em; }
.hc-s em { font-style: normal; } .hc-s .fresh { color: #1d8a4c; } .hc-s .tired { color: #b8791a; } .hc-s .bad { color: var(--red); }
.hc-s .fit { font-style: normal; background: #7be0a1; border: 2px solid var(--ink); border-radius: 4px; padding: 0 6px; }
.hc-more p { margin: 6px 0; font-size: .88em; } .hc-more .shape { color: #5a536b; }
.hc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hc-btns { display: flex; gap: 8px; margin-top: 8px; } .hc-btns .pickh { margin-left: auto; background: var(--yellow); }
body.phone .hc-btns .more { box-shadow: none; font-size: .9em; background: transparent; }
.dfoot { position: sticky; bottom: 0; z-index: 5; background: var(--night); border-top: 4px solid var(--ink); padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.dfoot .dline { display: flex; align-items: center; gap: 6px; font-size: .9em; } .dfoot small { color: var(--dim); text-align: center; }

/* your scene */
.ph.scene { --hc: #888; height: 100dvh; }
.shead { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--hc); color: var(--hi); border-bottom: 4px solid var(--ink); }
.sh-n { flex: 1; min-width: 0; line-height: 1.05; } .sh-n > b { font: 400 1.5em var(--head); letter-spacing: .05em; }
.sh-n .chead { font-size: .78em; } .sh-n .chead .cplace { color: inherit; opacity: .8; }
.sh-s { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.sh-s .acts { display: inline-flex; gap: 4px; } .sh-s .acts i { width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--ink); background: rgba(0,0,0,.25); } .sh-s .acts i.on { background: var(--yellow); }
.sh-s .stam { font: 400 1.25em var(--head); } .sh-s .stam small { font: 700 .5em var(--body); opacity: .85; margin-left: 2px; }
.sense { background: #2a2838; color: var(--yellow); padding: 5px 10px; font-size: .88em; border-bottom: 3px solid var(--ink); } .sense b { font: 400 1em var(--head); letter-spacing: .06em; margin-right: 6px; color: #fff; }
.pv { height: 5.1em; overflow-y: auto; margin: 8px 8px 0; padding: 7px 10px; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); font-size: .9em; line-height: 1.25; }
.pv .dsp { font: 400 1.05em var(--head); letter-spacing: .06em; color: #b01f1a; margin-right: 4px; }
.pv.info { background: var(--paper); } .pv.ok { background: #dcf7e6; } .pv.bad { background: #e6dfd0; color: #5a536b; }
.pv.danger { background: #ffd9d2; border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.pv.trouble { background: #2a2838; color: var(--paper); } .pv.trouble .dsp { color: var(--yellow); }
.pv .w { display: block; margin-top: 2px; font-weight: 700; } .pv .w.bad { color: #b01f1a; font: 400 1.15em var(--head); letter-spacing: .04em; } .pv .w.mild { color: #7a4b00; }
.pv .fp { color: #b01f1a; } .pv .tu { color: #0b7a3b; } .pv i { color: #5a536b; font-style: normal; font-size: .9em; }
body.phone .pv .follow { float: right; margin-left: 6px; padding: 7px 12px; font-size: 1em; background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.mapwrap { position: relative; flex: 1; min-height: 38dvh; padding: 4px 4px 0; display: flex; }
.mapwrap .scene { flex: 1; min-height: 0; touch-action: manipulation; }
.mates { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 6px 8px 0; font-size: .62em; }
.mates .hchip { padding: 1px 7px 1px 1px; border-width: 2px; box-shadow: 2px 2px 0 var(--ink); gap: 4px; } .mates .hchip .badge { width: 22px; height: 22px; } .mates .hchip .pips { display: none; } .mates .hchip .hn small { display: none; }
.modes { display: grid; grid-template-columns: 1.15fr 1.3fr 1fr 1fr 1fr; gap: 5px; padding: 6px 8px 0; }
body.phone .modes .mode { padding: 4px 2px; display: flex; flex-direction: column; align-items: center; line-height: 1; box-shadow: 2px 2px 0 var(--ink); }
.mode b { font-weight: 400; font-size: .92em; } .mode small { font: 700 .58em var(--body); opacity: .75; margin-top: 2px; white-space: nowrap; }
body.phone .mode.m-full { background: #ffd9d2; } body.phone .mode.m-careful { background: #dcf7e6; }
body.phone .mode.on { background: var(--blue); color: #fff; } body.phone .mode.off { opacity: .4; }
.hand { display: flex; gap: 6px; padding: 10px 8px 8px; overflow-x: auto; }
.tile { --hc: #888; --hi: #fff; flex: 1 0 22%; min-width: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 9px; box-shadow: 3px 3px 0 var(--ink); overflow: hidden; cursor: pointer; }
.hand.n5 .tile { flex-basis: 18%; font-size: .86em; } .hand.n6 .tile { flex-basis: 15%; font-size: .74em; }
.modes.idle { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--dim); font-size: .85em; }
@media (max-height: 700px) { .tile .tf { font-size: .6em; padding: 2px 4px 3px; } .tile .tn { min-height: 2.1em; font-size: .82em; } .shead { padding: 3px 8px; } .sbar { padding-top: 4px; } body.phone button.go { font-size: 1.15em; padding: 7px 14px; } .pv { height: 4.4em; font-size: .82em; } }
.tile .tn { display: flex; align-items: center; gap: 4px; min-height: 2.5em; padding: 3px 5px; background: var(--hc); color: var(--hi); border-bottom: 3px solid var(--ink); font: 400 .92em/1 var(--head); letter-spacing: .04em; }
.tile .tn b { font-weight: 400; } .tile .tn .ki { flex: none; }
.tile .tf { flex: 1; padding: 4px 5px 5px; display: flex; flex-direction: column; gap: 1px; font-size: .68em; line-height: 1.15; border-left: 6px solid #2d8a4f; }
.tile .tf b { font: 400 1.25em/1.05 var(--head); letter-spacing: .04em; }
.tile .tf u { text-decoration: none; color: #5a536b; } .tile .tf i { font-style: normal; color: #a3211c; } .tile .tf em { font: 400 1.1em var(--head); font-style: normal; color: #0b7a3b; }
.tile .tf.full { border-left-color: var(--red); background: #ffe9e2; border-top: 2px dashed rgba(20,18,31,.35); }
.tile .tf.off b, .tile .tf.off u, .tile .tf.off i { opacity: .5; }
.tile .tf.sel { background: var(--blue); color: #fff; } .tile .tf.sel u, .tile .tf.sel i { color: #dbe9ff; }
.tile .tf.clean { background: #dcf7e6; }
.tile.on { transform: translateY(-6px); border-color: var(--blue); box-shadow: 4px 7px 0 var(--ink); }
.tile.coach { animation: nudge 1.4s ease-in-out infinite; } @keyframes nudge { 50% { transform: translateY(-4px); } }
.hand.wait .tile { filter: saturate(.55) brightness(.9); }
/* the kit's Table pill: the phone already has its own map, so it only shows with no TV, and out of DONE's way */
body.phone[data-tv="1"] #cs-pill { display: none; }
body.phone #cs-pill { right: 50%; transform: translateX(50%); bottom: calc(16px + env(safe-area-inset-bottom)); padding: 6px 14px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font: 400 1rem var(--head); letter-spacing: .05em; }
body.phone[data-phase="dispatch"] #cs-pill, body.phone[data-phase="paper"] #cs-pill, body.phone[data-phase="over"] #cs-pill { display: none; }
body.phone #cs-tick { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; }
body.phone #cs-sheet .cs-panel { --cs-sheet-bg: var(--night); border-top: 4px solid var(--ink); }
body.phone #cs-sheet .cs-log h3 { font: 400 1rem var(--head); letter-spacing: .08em; }
.hand .nohand { color: var(--dim); padding: 20px; }
.sbar { display: flex; align-items: center; gap: 8px; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); border-top: 4px solid var(--ink); background: var(--night); }
.sbar .go { margin-left: auto; }
body.phone .sbar .bk { background: var(--red); color: #fff; font-size: .95em; min-height: 44px; } body.phone .sbar .bk.on { animation: throb .8s ease-in-out infinite; }
body.phone .sbar .sus { background: #7fd4ff; font-size: .8em; min-height: 44px; max-width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* aside: down, done, watching */
.ph.aside { padding: 12px 10px; gap: 12px; }
.ahead { display: flex; gap: 10px; align-items: center; } .ahead h2 { font-size: 2em; color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); } .ahead h2.bad { color: #ff8f8f; } .ahead p { margin: 2px 0 0; color: var(--dim); font-size: .9em; }
.respond { display: flex; flex-direction: column; gap: 8px; }
body.phone .respond button { text-align: left; display: flex; flex-direction: column; } body.phone .respond button small { font: 700 .62em var(--body); letter-spacing: 0; opacity: .8; }
body.phone .respond button.hot { background: var(--red); color: #fff; } body.phone .respond .rest { background: #d8d2c0; align-items: center; } body.phone .respond .rest.on { background: var(--green); color: #fff; }
.watch { flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 300px; } .watch .mapwrap { min-height: 260px; }

/* the paper, on a phone */
.ph.paperv { padding: 10px 8px 0; gap: 10px; }
.ph.paperv .paper { font-size: .82em; padding: 10px; flex: 1; }
.ph.paperv .paper .mast { flex-wrap: wrap; justify-content: center; } .ph.paperv .paper .mast h1 { flex-basis: 100%; order: -1; font-size: 1.9em; }
.ph.paperv .paper .cols { grid-template-columns: 1fr; } .ph.paperv .paper .story.lead h3 { font-size: 1.9em; } .ph.paperv .paper .story.lead h2 { font-size: 2.3em; }
.ph.paperv .paper .story.lead .photo { width: 96px; height: 76px; } .ph.paperv .paper .photo { width: 64px; height: 52px; }
.ph.paperv .paper .roll ul { columns: 1; } .ph.paperv .paper .nums { grid-template-columns: 1fr 1fr; }
.ph.paperv .paper .story.lead { flex-wrap: wrap; } .ph.paperv .bigrade { margin: 0 auto; }
.dockb { display: grid; gap: 10px; } .dockb .dk { background: var(--night2); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; } .dockb .dk .scene { height: 300px; } .dockb .dk small { color: var(--dim); }

/* ============================================================================================================
   THE TV
   ============================================================================================================ */
body.tv { overflow: hidden; background: #0d0b1c; }
body.tv #app { position: fixed; inset: 0; display: grid; place-items: center; place-content: center; }
#stage, #cover { position: relative; width: 1920px; height: 1080px; flex: none; transform: scale(var(--k)); transform-origin: center; background: var(--night); background-image: radial-gradient(circle at 4px 4px, rgba(255,255,255,.05) 1.6px, transparent 2px); background-size: 12px 12px; overflow: hidden; font-size: 22px; }
body.tv button { border: 4px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); padding: 10px 20px; font: 400 26px var(--head); letter-spacing: .06em; box-shadow: var(--shadow); }
body.tv button.primary { background: var(--yellow); } body.tv button:disabled { opacity: .45; box-shadow: none; }

#stage .top { position: absolute; left: 0; right: 0; top: 0; height: 96px; display: flex; align-items: center; gap: 26px; padding: 0 28px; background: var(--ink); border-bottom: 6px solid var(--yellow); }
.waves { display: flex; align-items: center; gap: 12px; font: 400 26px var(--head); letter-spacing: .08em; color: #6f6990; }
.waves i { font-style: normal; color: #4a4568; } .waves .wv.on { color: var(--ink); background: var(--yellow); padding: 2px 14px; border-radius: 6px; transform: rotate(-2deg); } .waves .wv.past { color: #a39dc4; text-decoration: line-through; }
.phase { flex: 1; text-align: center; font: 400 34px var(--head); letter-spacing: .08em; }
.phase.p-trouble { color: #ff8f8f; } .phase.p-paper { color: var(--yellow); }
.perp { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; } .perp small { font: 700 16px var(--body); letter-spacing: .14em; color: var(--dim); } .perp b { font: 400 34px var(--head); letter-spacing: .08em; color: #6f6990; } .perp.known b { color: #ff8f8f; } .perp em { font: 700 16px var(--body); color: var(--yellow); font-style: normal; }
#main { position: absolute; left: 0; right: 0; top: 102px; bottom: 0; }

/* dispatch */
.dboard { position: absolute; inset: 14px 20px 14px; display: grid; grid-template-columns: 1180px 1fr; grid-template-rows: 1fr 196px; gap: 14px 18px; }
.dcity { position: relative; border: 5px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 8px 8px 0 rgba(0,0,0,.5); }
.dcity .city { display: block; width: 100%; height: 100%; }
.dcap { position: absolute; left: 14px; top: 12px; background: var(--yellow); color: var(--ink); border: 4px solid var(--ink); padding: 4px 16px; font: 400 28px var(--head); letter-spacing: .06em; box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.city .pinw { font: 400 24px var(--head); fill: var(--ink); letter-spacing: 1px; }
.city .ping { fill: none; stroke: var(--red); stroke-width: 5; transform-box: fill-box; transform-origin: center; animation: ping 1.6s ease-out infinite; } .city .ping.p2 { animation-delay: .8s; }
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.dcalls { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.tcall { flex: 1; min-height: 0; background: var(--night2); border: 4px solid var(--ink); border-left: 14px solid var(--red); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.tcall.k-fire { border-left-color: #ff8a1f; } .tcall.k-collapse { border-left-color: #8a97a6; } .tcall.k-bomb { border-left-color: var(--yellow); }
.tc-top { display: flex; align-items: center; gap: 12px; } .tc-top b { font: 400 34px var(--head); letter-spacing: .05em; } .tc-place { margin-left: auto; color: var(--dim); font-size: 19px; }
.tcall .balloon { font-size: 19px; flex: 1; min-height: 0; overflow: hidden; }
.tcall .balloon { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; } .tc-foot { min-height: 44px; }
.dboard .dcalls .tcall:nth-last-child(n+4), .dboard .dcalls .tcall:nth-last-child(n+4) ~ .tcall { padding: 6px 12px; gap: 4px; }
.dboard .dcalls .tcall:nth-last-child(n+4) .balloon, .dboard .dcalls .tcall:nth-last-child(n+4) ~ .tcall .balloon { font-size: 16px; -webkit-line-clamp: 3; padding: 5px 10px; }
.dboard .dcalls .tcall:nth-last-child(n+4) .tc-top b, .dboard .dcalls .tcall:nth-last-child(n+4) ~ .tcall .tc-top b { font-size: 28px; }
.tc-foot { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--dim); margin-top: 4px; } .tc-go { margin-left: auto; display: flex; gap: 4px; align-items: center; } .tc-go em { font: 400 20px var(--head); font-style: normal; color: #ff8f8f; letter-spacing: .06em; }
.droster { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.rh { --hc: #888; --sc: transparent; position: relative; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-top: 14px solid var(--hc); border-radius: 12px; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr; column-gap: 10px; align-items: center; padding: 8px 12px; }
.rh .badge { grid-row: 1 / 4; } .rh b { font: 400 34px/1 var(--head); letter-spacing: .05em; align-self: end; } .rh small { opacity: .7; font-size: 16px; line-height: 1; }
.rh em { font: 400 20px var(--head); font-style: normal; letter-spacing: .05em; color: #1d8a4c; }
.rh.picked { outline: 6px solid var(--sc); outline-offset: 2px; transform: translateY(-8px); } .rh.picked em { color: var(--ink); background: var(--sc); padding: 0 8px; border-radius: 4px; border: 2px solid var(--ink); justify-self: start; }
.rh.out { opacity: .5; } .rh.out em { color: var(--red); }
.dboard.one { grid-template-columns: 1fr 1fr; } .dboard.one .tcall .balloon { font-size: 26px; }

/* scenes */
.scenes { position: absolute; inset: 14px 20px 14px; display: grid; gap: 16px; }
.scenes.n1 { grid-template-columns: 1fr 470px; }
.side { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.sd { background: var(--paper); color: var(--ink); border: 5px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 rgba(0,0,0,.5); padding: 10px 16px; display: flex; flex-direction: column; }
.sd > small { font: 700 14px var(--body); letter-spacing: .14em; color: #6b6480; }
.sd.vil { background: #3b1647; color: var(--paper); } .sd.vil > small { color: #d6b3e0; } .sd.vil > b { font: 400 54px/1 var(--head); letter-spacing: .05em; color: #ffb3f0; } .sd.vil span { font-style: italic; } .sd.vil p { margin: 6px 0; font-size: 19px; line-height: 1.25; } .sd.vil p b { color: var(--yellow); }
.sd.vil .hp { display: flex; flex-wrap: wrap; gap: 4px; } .sd.vil .hp i { width: 20px; height: 20px; border: 3px solid var(--ink); background: #2a1030; } .sd.vil .hp i.on { background: var(--red); }
.sd.vil em { font: 400 26px var(--head); font-style: normal; letter-spacing: .06em; color: #d6b3e0; } .sd.vil em.good { color: #7be0a1; } .sd.vil em.bad { color: #ff8f8f; }
.sd.bombc { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; } .sd.bombc > small { grid-column: 1 / -1; }
.sd.bombc .t { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #2a2838; color: var(--yellow); border: 5px solid var(--ink); font: 400 58px var(--head); }
.sd.bombc.iced .t { background: #8fe3f5; color: var(--ink); } .sd.bombc span { font-size: 20px; line-height: 1.25; }
.sd.bombc.s-gone, .sd.bombc.s-contained { background: #dcf7e6; } .sd.bombc.s-boom { background: #ffd9d2; }
.sd.radio { flex: 1; min-height: 0; overflow: hidden; justify-content: flex-end; background: #14121f; color: #cfe9d6; border-color: #000; font-family: ui-monospace, 'Courier New', monospace; font-weight: 400; }
.sd.radio > small { color: #7be0a1; font-family: var(--body); margin-bottom: auto; } .sd.radio p { margin: 3px 0; font-size: 17px; line-height: 1.25; opacity: .72; } .sd.radio p.new { opacity: 1; color: #fff; } .scenes.n2 { grid-template-columns: 1fr 1fr; } .scenes.n3, .scenes.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.ringing { position: absolute; left: 20px; right: 20px; top: 8px; height: 40px; display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.scenes.ring { top: 54px; }
.ringing span { background: var(--ink); border: 3px solid var(--red); border-radius: 8px; padding: 2px 12px; font-size: 18px; } .ringing b { font: 400 20px var(--head); color: #ff8f8f; letter-spacing: .06em; margin-right: 6px; animation: pulse 1s infinite; }
.panel { position: relative; min-height: 0; min-width: 0; display: grid; grid-template-rows: auto 1fr auto auto; background: var(--night2); border: 5px solid var(--ink); border-radius: 14px; box-shadow: 8px 8px 0 rgba(0,0,0,.5); overflow: hidden; }
.panel > .chead { background: var(--yellow); color: var(--ink); padding: 4px 14px; border-bottom: 5px solid var(--ink); font-size: 26px; }
.panel > .chead .cplace { color: #4a4460; font-size: 20px; }
.panel.k-fire > .chead { background: #ff9d3c; } .panel.k-collapse > .chead { background: #c9d3dd; } .panel.k-bomb > .chead { background: var(--red); color: #fff; } .panel.k-bomb > .chead .cplace { color: #ffd9d2; }
.panel.backup { border-color: var(--red); animation: alarm .7s steps(2) infinite; } @keyframes alarm { 50% { box-shadow: 8px 8px 0 var(--red); } }
.pmap { position: relative; min-height: 0; padding: 6px; }
.pmap .scene { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.pcap { background: var(--paper); color: var(--ink); border-top: 4px solid var(--ink); padding: 5px 14px; font-size: 22px; line-height: 1.2; min-height: 38px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcap .pl { margin-left: 14px; color: #b01f1a; font-size: .85em; } .pcap .pl::before { content: '▸ '; } .pcap .bk { color: var(--red); font: 400 1.05em var(--head); letter-spacing: .05em; }
.pwho { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 8px; background: var(--ink); font-size: 19px; min-height: 54px; }
/* three or four scenes: the map takes the panel's full height and the words sit beside it */
.scenes.n3 .panel, .scenes.n4 .panel { grid-template-columns: 1fr 330px; grid-template-rows: auto 1fr auto; }
.scenes.n3 .panel > .chead, .scenes.n4 .panel > .chead { grid-column: 1 / -1; font-size: 23px; }
.scenes.n3 .pmap, .scenes.n4 .pmap { grid-column: 1; grid-row: 2 / 4; }
.scenes.n3 .pcap, .scenes.n4 .pcap { grid-column: 2; grid-row: 2; white-space: normal; font-size: 20px; border-top: 0; border-left: 4px solid var(--ink); display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; overflow: hidden; }
.scenes.n3 .pcap .pl, .scenes.n4 .pcap .pl { margin-left: 0; }
.pcap .sl { display: none; } .scenes.n3 .pcap .sl, .scenes.n4 .pcap .sl { display: block; margin-top: auto; padding-top: 6px; border-top: 2px dashed rgba(20,18,31,.3); font-size: .82em; color: #5a536b; }
.scenes.n3 .pwho, .scenes.n4 .pwho { grid-column: 2; grid-row: 3; font-size: 19px; flex-direction: column; align-items: flex-start; border-left: 4px solid var(--ink); padding: 8px; }
.panel.s-won .pmap .scene, .panel.s-failed .pmap .scene { filter: saturate(.35) brightness(.7); }
.stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg); display: flex; flex-direction: column; align-items: center; background: var(--paper); border: 8px solid #1d8a4c; color: #1d8a4c; padding: 6px 30px; border-radius: 12px; box-shadow: 6px 6px 0 rgba(0,0,0,.5); }
.stamp b { font: 400 64px/1 var(--head); letter-spacing: .06em; } .stamp span { font-size: 22px; color: var(--ink); }
.stamp.failed { border-color: var(--red); color: var(--red); }
#pops { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.pop { position: absolute; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); animation: popin 1.5s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.pop .sfx { font-family: var(--head); stroke-width: 5px; paint-order: stroke; letter-spacing: 2px; }
@keyframes popin { 0% { transform: translate(-50%, -50%) rotate(var(--rot)) scale(.2); opacity: 0; } 14% { transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.1); opacity: 1; } 78% { transform: translate(-50%, -50%) rotate(var(--rot)) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(var(--rot)) scale(1.25); opacity: 0; } }

/* the paper on the TV */
.paperw { position: absolute; inset: 18px 150px 18px; display: flex; }
.paperw .paper { flex: 1; font-size: 25px; padding: 20px 34px; transform: rotate(-.6deg); overflow: hidden; }
.paperw .paper .mast h1 { font-size: 78px; } .paperw .paper .mast .ed { font-size: 17px; }
.paperw .paper .story.lead .photo { width: 260px; height: 196px; } .paperw .paper .photo { width: 150px; height: 114px; }
.paperw .paper .photo .ph-h .badge { width: 46px; height: 46px; }
.paperw .paper.final { font-size: 21px; padding-top: 14px; } .paperw .paper.final .roll ul { columns: 4; column-gap: 16px; font-size: 17px; } .paperw .paper.final .story.lead h2 { font-size: 84px; }
.paperw .paper.final .mast h1 { font-size: 60px; } .paperw .paper.final .nums b { font-size: 1.7em; } .paperw .paper.final .recap li b { font-size: .98em; } .paperw .paper.final .bigrade .grade { font-size: 2.6em; }

/* the cover page (the lobby) */
#cover { display: grid; grid-template-columns: 1fr 620px; background: var(--night); }
#cover::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 700px at 22% 36%, rgba(232,50,44,.28), transparent 70%), radial-gradient(700px 600px at 88% 80%, rgba(43,127,255,.24), transparent 70%); pointer-events: none; }
.cv-left { position: relative; padding: 34px 30px 22px 64px; display: flex; flex-direction: column; gap: 12px; }
.cv-logo .logo912 { filter: drop-shadow(10px 10px 0 rgba(0,0,0,.5)); transform: rotate(-3deg); }
.cv-tag { font: 400 62px/1 var(--head); letter-spacing: .04em; color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); margin-top: 6px; }
.cv-sub { font-size: 24px; color: var(--dim); }
.cv-roster { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 6px; }
.cv-h { display: flex; flex-direction: column; align-items: center; gap: 2px; animation: bob 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.42s); }
.cv-h b { font: 400 30px var(--head); letter-spacing: .05em; color: var(--hc); text-shadow: 2px 2px 0 var(--ink); } .cv-h small { font-size: 16px; color: var(--dim); }
@keyframes bob { 50% { transform: translateY(-10px); } }
.cv-pitchbox { align-self: flex-start; margin-top: 16px; background: var(--yellow); color: var(--ink); border: 5px solid var(--ink); padding: 10px 24px; font: 400 40px var(--head); letter-spacing: .04em; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-1deg); max-width: 1100px; }
.cv-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; max-width: 1190px; }
.cv-p { background: var(--paper); border: 5px solid var(--ink); box-shadow: 7px 7px 0 rgba(0,0,0,.55); display: flex; flex-direction: column; }
.cv-p:nth-child(odd) { transform: rotate(-1.2deg); } .cv-p:nth-child(even) { transform: rotate(1deg) translateY(6px); }
.cv-p svg { display: block; width: 100%; border-bottom: 5px solid var(--ink); } .cv-p .cvt { font: 400 22px var(--head); fill: var(--ink); letter-spacing: 1px; }
.cv-p .sfx { font-family: var(--head); stroke-width: 4px; paint-order: stroke; }
.cv-p b { display: flex; align-items: center; gap: 8px; padding: 5px 10px; color: var(--ink); font: 400 21px/1.05 var(--head); letter-spacing: .04em; min-height: 54px; }
.cv-p b i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; border: 3px solid var(--ink); font-style: normal; }
.cv-rules { margin-top: auto; max-width: 900px; font-size: 20px; } .cv-rules .lv-grid { grid-template-columns: repeat(3, 1fr); }
.cv-right { position: relative; background: var(--paper); color: var(--ink); border-left: 8px solid var(--ink); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 30px; background-image: var(--dots); background-size: 8px 8px; }
.cv-join { font: 400 64px/1 var(--head); letter-spacing: .05em; color: var(--red); text-shadow: 3px 3px 0 var(--ink); }
.cv-qr { width: 400px; height: 400px; padding: 16px; background: var(--paper); border: 6px solid var(--ink); border-radius: 18px; box-shadow: 10px 10px 0 var(--ink); } .cv-qr svg { width: 100%; height: 100%; display: block; }
.cv-how { font-size: 22px; margin-top: 8px; }
.cv-code { font: 400 84px/1 var(--head); letter-spacing: .16em; margin-top: 18px; } .cv-url { font-size: 22px; color: #5a536b; }
.cv-seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.cv-seat { border: 3px solid var(--ink); border-radius: 999px; padding: 2px 16px; background: #fff; font-size: 22px; box-shadow: 3px 3px 0 var(--ink); } .cv-seat.ready { background: #7be0a1; } .cv-seat.bot { background: #d8d2c0; } .cv-seat.open { border-style: dashed; background: transparent; box-shadow: none; color: #6b6480; }
.cv-btns { display: flex; gap: 12px; margin-top: auto; }
.cv-foot { position: absolute; right: 650px; top: 22px; font-size: 19px; font-style: italic; color: var(--dim); }
body.tv .lobby { display: none; }

/* ============================================================================================================
   THE FRONT PAGE
   ============================================================================================================ */
body.splash { background-image: radial-gradient(circle at 3px 3px, rgba(255,255,255,.05) 1.3px, transparent 1.6px); background-size: 9px 9px; }
.splash .wrap { max-width: 860px; margin: 0 auto; padding: 26px 16px 50px; }
.splash .hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.splash #mark .logo912 { filter: drop-shadow(6px 6px 0 rgba(0,0,0,.5)); transform: rotate(-3deg); }
.splash .tagline { font-size: clamp(30px, 7vw, 54px); color: var(--yellow); text-shadow: 3px 3px 0 var(--ink); line-height: 1; }
.splash .tag { color: var(--dim); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.cta { display: inline-block; text-decoration: none; background: var(--yellow); color: var(--ink); border: 4px solid var(--ink); border-radius: 12px; padding: 10px 22px; font: 400 26px var(--head); letter-spacing: .06em; box-shadow: var(--shadow); }
.cta.alt { background: var(--paper); }
#rejoin { display: none; background: var(--green); color: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 8px 14px; } #rejoin.show { display: block; } #rejoin a { color: #fff; }
.splash section { margin-top: 30px; } .splash h2 { font-size: 30px; color: var(--paper); border-bottom: 4px solid var(--yellow); display: inline-block; margin-bottom: 10px; }
.room { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; } .room .code { font: 400 24px var(--head); letter-spacing: .1em; color: var(--yellow); } .room a { margin-left: auto; color: var(--yellow); }
.muted { color: var(--dim); }
.how { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; } .how b { color: var(--yellow); }
.sh { --hc: #888; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-top: 10px solid var(--hc); border-radius: 12px; box-shadow: var(--shadow); padding: 8px 10px; margin-bottom: 10px; }
.sh summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; } .sh summary::-webkit-details-marker { display: none; }
.sh summary span { display: flex; flex-direction: column; line-height: 1.1; } .sh summary b { font: 400 30px var(--head); letter-spacing: .05em; } .sh summary small { opacity: .7; } .sh summary i { font-style: italic; font-weight: 400; margin-top: 3px; }
.sh .shape { color: #5a536b; font-size: .9em; } .sh .hc-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.splash footer { margin-top: 40px; text-align: center; color: var(--dim); font-size: .9em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============================================================================================================
   PAINTED ART (public/media/art): portraits, the call photos, the cover, the dispatcher
   ============================================================================================================ */
.por { --ring: var(--ink); flex: none; display: block; object-fit: cover; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--ring), 3px 3px 0 3px rgba(0,0,0,.45); background: #2a2742; }
.shead .por { box-shadow: 0 0 0 3px var(--ring); }
.heroc .por { border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.sh summary .por { border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
/* phone call cards: the scene as a strip along the top */
.callc { position: relative; overflow: hidden; }
.cc-photo { height: 74px; margin: -10px -10px 0; background-size: cover; background-position: center 40%; border-bottom: 3px solid var(--ink); }
/* TV call cards: the scene down the right-hand side, faded into the card */
.tcall { position: relative; }
.tc-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; background-size: cover; background-position: center; opacity: .62; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.tcall > :not(.tc-photo) { position: relative; }
/* TV roster cards: the portrait fills the card's left */
.rh { grid-template-columns: 100px minmax(0, 1fr); padding: 0 8px 0 0; overflow: hidden; }
.rh .por { grid-row: 1 / 4; width: 100px; height: 100%; min-height: 150px; border-radius: 0; border: 0; border-right: 4px solid var(--ink); box-shadow: none; }
.rh b { font-size: 27px; white-space: nowrap; } .rh em { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* the cover */
.cv-h .por { border-radius: 16px; border-width: 4px; box-shadow: 5px 5px 0 rgba(0,0,0,.55); }
.cv-h:nth-child(odd) .por { transform: rotate(-2deg); } .cv-h:nth-child(even) .por { transform: rotate(2deg); }
.cv-art { position: absolute; left: 0; top: 0; width: 1300px; height: 420px; background: url(/media/art/cover.webp) center 62% / cover; opacity: .5; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); mask-image: linear-gradient(180deg, #000 45%, transparent); pointer-events: none; }
.cv-left { z-index: 1; } #cover::before { z-index: 0; }
/* the villain */
.perp.known { flex-direction: row; align-items: center; gap: 12px; } .perp.known span { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; } .perp.known .por { width: 70px; height: 70px; border-color: #ff8f8f; }
.sd.vil { display: grid; grid-template-columns: 150px 1fr; column-gap: 14px; align-items: start; } .sd.vil .por { grid-row: 1 / 4; width: 150px; height: 150px; border-radius: 14px; border-width: 4px; } .sd.vil p, .sd.vil .hp, .sd.vil em { grid-column: 1 / -1; } .sd.vil > b { font-size: 46px; }
/* the paper's photographs: the painted scene under a newsprint screen */
.paper .photo { background-size: cover; background-position: center; filter: grayscale(.85) contrast(1.15) sepia(.18); }
.paper .photo::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 2px 2px, rgba(0,0,0,.34) 1.1px, transparent 1.4px); background-size: 4px 4px; mix-blend-mode: multiply; }
.paper .photo .ph-h { z-index: 1; filter: none; }
.paper .mug { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 .7em var(--body); letter-spacing: .1em; }
.paper .mug .por { width: 150px; height: 150px; border-radius: 6px; filter: grayscale(.85) contrast(1.15) sepia(.18); box-shadow: 3px 3px 0 var(--ink); }
.paper .mug.o-saved small { color: #1d8a4c; } .paper .mug small { color: var(--red); }
.ph.paperv .paper .mug .por { width: 84px; height: 84px; }
.paper .dedic, .dedic { display: flex; align-items: center; justify-content: center; gap: 14px; }
.paper .dedic img { width: 300px; height: 168px; object-fit: cover; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.ph.paperv .paper .dedic { flex-direction: column; } .ph.paperv .paper .dedic img { width: 100%; height: auto; }
.splash .hero { position: relative; } .splash .wrap { position: relative; }
.splash-art { height: 230px; margin: 0 -16px 18px; background: url(/media/art/cover.webp) center 60% / cover; border-bottom: 4px solid var(--ink); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.splash .tribute { margin-top: 34px; text-align: center; } .splash .tribute img { width: 100%; max-width: 620px; border: 4px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); }
.tcall .balloon { margin-right: 30%; } .tc-place { text-shadow: 0 0 6px #000, 0 0 3px #000; color: #fff; } .tc-go em { text-shadow: 0 0 6px #000; }

/* v0.2 */
.scene .spot.no { opacity: .32; }
.sense i { display: block; font-style: normal; color: var(--dim); font-size: .82em; }
/* five calls on the board (four players) */
.dboard .dcalls .tcall:nth-last-child(n+5), .dboard .dcalls .tcall:nth-last-child(n+5) ~ .tcall { padding: 4px 12px; gap: 2px; }
.dboard .dcalls .tcall:nth-last-child(n+5) .balloon, .dboard .dcalls .tcall:nth-last-child(n+5) ~ .tcall .balloon { font-size: 15px; -webkit-line-clamp: 2; padding: 4px 10px; }
.dboard .dcalls .tcall:nth-last-child(n+5) .tc-top b, .dboard .dcalls .tcall:nth-last-child(n+5) ~ .tcall .tc-top b { font-size: 24px; }
.dboard .dcalls .tcall:nth-last-child(n+5) .tc-foot, .dboard .dcalls .tcall:nth-last-child(n+5) ~ .tcall .tc-foot { min-height: 34px; font-size: 16px; }
.dboard .dcalls:has(.tcall:nth-child(5)) { gap: 8px; }

.tcall .balloon { flex: 0 1 auto; }
.tile .tf { overflow: hidden; } .tile .tf b { font-size: 1.15em; }

.pv { height: auto; min-height: 5.1em; max-height: 8.2em; }
.dboard .dcalls .tcall:nth-last-child(n+5) .balloon, .dboard .dcalls .tcall:nth-last-child(n+5) ~ .tcall .balloon { max-height: calc(2.5em + 10px); line-height: 1.25; }
.dboard .dcalls .tcall:nth-last-child(n+4) .balloon, .dboard .dcalls .tcall:nth-last-child(n+4) ~ .tcall .balloon { line-height: 1.25; }

/* longer hero names (Jack Hammer, Vel O’City…) */
.rh b { font-size: 24px; white-space: normal; line-height: .95; } .rh small { margin-top: 2px; }
.cv-h b { font-size: 25px; text-align: center; line-height: .95; white-space: nowrap; }
.hc-n b { line-height: 1; } .sh-n > b { font-size: 1.35em; white-space: nowrap; }
.hchip .hn b { white-space: nowrap; }

/* ============================================================================================================
   PROGRESS: levels, the locker, stickers, saved squads
   ============================================================================================================ */
.lvl { display: flex; align-items: center; gap: 6px; font-size: .8em; margin-top: 2px; }
.lvl b { font: 400 1.15em var(--head); letter-spacing: .05em; white-space: nowrap; }
.xpbar { flex: 1; min-width: 40px; height: 9px; border: 2px solid var(--ink); border-radius: 6px; background: #d8d2c0; overflow: hidden; } .xpbar i { display: block; height: 100%; background: var(--blue); }
.lvl small { white-space: nowrap; opacity: .75; } .lvl .fame { font: 400 1.15em var(--head); font-style: normal; color: #b8791a; white-space: nowrap; }
.lvup { display: inline-block; margin-top: 4px; font: 400 .95em var(--head); font-style: normal; letter-spacing: .05em; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; padding: 1px 8px; animation: throb 1s ease-in-out infinite; }
.locker { --hc: #888; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-top: 10px solid var(--hc); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; margin-top: 8px; }
.heroc .locker { border: 0; border-top: 2px dashed rgba(20,18,31,.35); border-radius: 0; box-shadow: none; padding: 8px 0 0; }
.heroc .locker .lk-head { display: none; }
.lk-head { display: flex; gap: 10px; align-items: center; } .lk-head > div { flex: 1; min-width: 0; } .lk-head b { font: 400 1.6em var(--head); letter-spacing: .05em; } .lk-head .por { border-radius: 12px; }
.locker h4 { font-size: 1.05em; margin: 10px 0 6px; } .lk-up { background: #fff3c4; border: 3px solid var(--ink); border-radius: 10px; padding: 8px; margin-top: 10px; }
.lk-up h4 { margin-top: 0; color: #b01f1a; }
.lk-offer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .lk-o { display: flex; flex-direction: column; gap: 6px; } body.phone .lk-o .go { font-size: .95em; padding: 8px 6px; }
.lk-deck { display: flex; flex-direction: column; gap: 5px; }
.lk-card { border: 2px solid var(--ink); border-radius: 8px; background: #fff; overflow: hidden; } .lk-card.open { padding-bottom: 6px; }
body.phone .lk-ch { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 7px 8px; font-size: 1em; text-align: left; }
.lk-ch small { font: 700 .62em var(--body); opacity: .6; } .lk-ch small.new { color: #1d8a4c; opacity: 1; }
.lk-ch span { margin-left: auto; display: flex; align-items: center; gap: 4px; } .lk-ch u { text-decoration: none; font: 700 .62em var(--body); color: #1f5fd1; white-space: nowrap; }
.lk-card .card { margin: 0 6px 6px; box-shadow: none; }
.lk-st { display: flex; flex-direction: column; gap: 5px; padding: 0 6px; }
body.phone .lk-st button { display: flex; align-items: center; gap: 8px; text-align: left; padding: 6px 8px; font: 700 .8em var(--body); letter-spacing: 0; box-shadow: 2px 2px 0 var(--ink); }
.lk-st button span { flex: 1; } .lk-st button em { font: 400 1.2em var(--head); font-style: normal; color: #b8791a; white-space: nowrap; }
.lk-n { margin: 6px 8px 0; font-size: .8em; color: #5a536b; }
.stk { display: inline-block; font: 400 .78em var(--head); font-style: normal; letter-spacing: .05em; padding: 1px 6px; border: 2px solid var(--ink); border-radius: 4px; background: var(--yellow); color: var(--ink); transform: rotate(-4deg); white-space: nowrap; }
.stk.s-power { background: var(--red); color: #fff; } .stk.s-reach { background: #7fd4ff; } .stk.s-quick { background: #9be33c; } .stk.s-tidy { background: #fff; } .stk.s-sturdy { background: #c9d3dd; }
.tile .tn .stn { margin-left: auto; display: grid; place-items: center; min-width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); font: 400 .8em var(--head); font-style: normal; }
.gains { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gn { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px; padding: 2px 14px 2px 2px; box-shadow: 3px 3px 0 var(--ink); }
.gn b { font: 400 1.1em var(--head); letter-spacing: .05em; } .gn i { font-style: normal; font-weight: 700; color: #1f5fd1; } .gn i.f { color: #b8791a; }
.gn em { font: 400 1.05em var(--head); font-style: normal; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; padding: 0 8px; transform: rotate(-3deg); } .gn.up { animation: nudge 1.2s ease-in-out infinite; }
.gn .por { width: 36px; height: 36px; box-shadow: none; }
.tvgains { position: absolute; left: 150px; right: 150px; bottom: 26px; display: flex; justify-content: center; font-size: 24px; } .tvgains .gains { justify-content: center; } .tvgains .gn .por { width: 54px; height: 54px; }
.rh .rlv { position: absolute; left: 4px; top: 4px; font: 400 18px var(--head); font-style: normal; background: var(--ink); color: var(--yellow); padding: 0 8px; border-radius: 6px; letter-spacing: .05em; }
.sqsaved { text-align: center; color: var(--dim); font-size: .9em; margin: 10px 0 0; } .sqsaved b { color: var(--yellow); }
.squadpick { display: grid; grid-template-columns: 1fr; gap: 6px; } .sqh { font: 400 1.1em var(--head); letter-spacing: .06em; color: var(--dim); }
body.phone .squadpick .sq, body.tv .squadpick .sq { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 6px 12px; background: rgba(255,255,255,.08); color: var(--paper); border: 2px solid rgba(255,255,255,.3); box-shadow: none; font-size: 1em; }
.squadpick .sq b { font-weight: 400; } .squadpick .sq span { font: 700 .62em var(--body); letter-spacing: 0; opacity: .8; }
body.phone .squadpick .sq.on, body.tv .squadpick .sq.on { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.cv-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; } body.tv .squadpick { grid-template-columns: 1fr 1fr; font-size: 18px; } body.tv .squadpick .sqh { grid-column: 1 / -1; }

/* nine heroes */
.droster { grid-template-columns: repeat(9, 1fr); gap: 10px; } .rh { grid-template-columns: 88px minmax(0, 1fr); } .rh .por { width: 88px; } .rh b { font-size: 22px; }
.cv-roster { grid-template-columns: repeat(9, 1fr); } .cv-h .por { width: 112px; height: 112px; } .cv-h b { font-size: 23px; }
.scene .dome { pointer-events: none; }

/* ten heroes */
.droster { grid-template-columns: repeat(10, 1fr); gap: 8px; } .rh { grid-template-columns: 76px minmax(0, 1fr); padding-right: 6px; } .rh .por { width: 76px; } .rh b { font-size: 20px; } .rh small { font-size: 14px; } .rh em { font-size: 15px; }
.cv-roster { grid-template-columns: repeat(10, 1fr); gap: 6px; } .cv-h .por { width: 100px; height: 100px; } .cv-h b { font-size: 21px; } .cv-h small { font-size: 14px; }

/* eleven heroes; Amber's glow */
.droster { grid-template-columns: repeat(11, 1fr); gap: 7px; } .rh { grid-template-columns: 66px minmax(0, 1fr); padding-right: 4px; column-gap: 6px; } .rh .por { width: 66px; } .rh b { font-size: 18px; } .rh small { font-size: 13px; } .rh em { font-size: 14px; } .rh .rlv { font-size: 15px; }
.cv-roster { grid-template-columns: repeat(11, 1fr); gap: 4px; } .cv-h .por { width: 92px; height: 92px; } .cv-h b { font-size: 19px; } .cv-h small { font-size: 13px; }
.scene .amber { animation: pulse 2.6s ease-in-out infinite; pointer-events: none; filter: drop-shadow(0 0 6px #ffb300); }

.paper .fame-tag { color: #8a5a00; background: #ffe9a8; border: 2px solid var(--ink); padding: 0 6px; border-radius: 3px; white-space: nowrap; } .paper .fame-tag.none { background: #e6dfd0; color: #5a536b; }

.chead.last .lights { animation: throb .7s ease-in-out infinite; outline: 3px solid var(--red); }

/* twelve heroes */
.droster { grid-template-columns: repeat(12, 1fr); gap: 6px; } .rh { grid-template-columns: 58px minmax(0, 1fr); column-gap: 5px; } .rh .por { width: 58px; } .rh b { font-size: 17px; } .rh small { font-size: 12px; } .rh em { font-size: 13px; } .rh .rlv { font-size: 14px; padding: 0 5px; }
.cv-roster { grid-template-columns: repeat(12, 1fr); gap: 3px; } .cv-h .por { width: 86px; height: 86px; } .cv-h b { font-size: 18px; } .cv-h small { font-size: 12px; }

/* building the shifts (R-SHIFT), and HQ (R-INJ) */
.heroc.sh.on { outline: 4px solid var(--green); } body.phone .hc-btns .pickh.on { background: var(--paper); color: var(--ink); }
.dfoot .shl { flex-wrap: wrap; } .dfoot .shl span { color: var(--dim); font-size: .85em; margin-left: auto; } .dot.open { background: transparent; border: 2px dashed rgba(255,255,255,.5); width: 26px; height: 26px; }
body.phone .go.alt { background: var(--blue); color: #fff; }
.tabs.n3 { grid-template-columns: repeat(3, 1fr); } .tabs.n4 { grid-template-columns: repeat(4, 1fr); gap: 5px; } .tabs.n1 { grid-template-columns: 1fr; }
.shiftp .tabs button { display: flex; flex-direction: column; align-items: center; padding: 5px 2px; font-size: .78em; line-height: 1.1; } .shiftp .tabs button small { font-size: .95em; opacity: .8; }
body.phone .shiftp .tabs button.full:not(.on) { border-color: var(--green); color: #7be0a1; }
.hc-s .pip { font-style: normal; font-size: .72em; background: var(--ink); color: var(--yellow); border-radius: 4px; padding: 0 6px; }
.sh-add, .sh-bar { margin: 6px 0 0; font-size: .84em; line-height: 1.25; } .sh-add b { color: #1d8a4c; } .sh-bar { color: #a02a22; }
.sh-combos { background: var(--night2); border: 3px solid var(--ink); border-left: 10px solid var(--green); border-radius: 12px; padding: 8px 10px; box-shadow: var(--shadow); }
.sh-combos h4 { margin: 0 0 4px; font: 400 1.1em var(--head); letter-spacing: .06em; color: #7be0a1; } .sh-combos p { margin: 0; font-size: .85em; color: var(--dim); } .sh-combos .lack { color: #ffb38a; margin-top: 6px; }
.sh-combos ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; } .sh-combos li { display: flex; gap: 6px; align-items: flex-start; font-size: .85em; line-height: 1.25; } .sh-combos li .badge { flex: none; } .sh-combos li span { flex: 1; }
.ph.hq { padding: 10px; gap: 12px; } .hq-send { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
body.phone .hq-send button { text-align: left; background: var(--yellow); display: flex; flex-direction: column; } body.phone .hq-send button.hot { background: var(--green); color: #fff; } .hq-send small { font-weight: 400; font-size: .8em; }
.sfboard { position: absolute; inset: 10px 24px 14px; display: flex; flex-direction: column; gap: 12px; }
.sf-head { display: flex; align-items: baseline; gap: 26px; } .sf-head h2 { margin: 0; font: 400 62px/1 var(--head); letter-spacing: .05em; color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); white-space: nowrap; }
.sf-head p { margin: 0; font-size: 23px; line-height: 1.25; color: var(--paper); } .sf-head p b { color: var(--yellow); }
.sf-cols { flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px; }
.sfcol { background: var(--night2); border: 5px solid var(--ink); border-top: 14px solid #5b62c9; border-radius: 14px; box-shadow: var(--shadow); padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; }
.sfcol.day { border-top-color: var(--yellow); } .sfcol.full { outline: 5px solid var(--green); outline-offset: 1px; }
.sfcol h3 { margin: 0; display: flex; align-items: center; gap: 10px; font: 400 38px/1 var(--head); letter-spacing: .06em; } .sfcol h3 span { color: var(--yellow); } .sfcol h3 small { margin-left: auto; font: 400 26px var(--head); color: var(--dim); } .sfcol.full h3 small { color: #7be0a1; }
.sf-slots { display: flex; flex-direction: column; gap: 7px; }
.sfs { height: 74px; border: 4px dashed rgba(255,255,255,.3); border-radius: 12px; display: grid; grid-template-columns: 74px 1fr auto; grid-template-rows: 1fr 1fr; align-items: center; column-gap: 12px; overflow: hidden; }
.sfs > i { grid-column: 1 / -1; grid-row: 1 / -1; text-align: center; font: 400 40px var(--head); font-style: normal; color: rgba(255,255,255,.3); }
.sfs.on { border: 4px solid var(--ink); border-left: 12px solid var(--hc); background: var(--paper); color: var(--ink); }
.sfs .por { grid-row: 1 / 3; width: 66px; height: 66px; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; }
.sfs b { font: 400 30px/1 var(--head); letter-spacing: .05em; align-self: end; white-space: nowrap; } .sfs small { grid-column: 2; font-size: 16px; opacity: .7; align-self: start; }
.sfs em { grid-column: 3; grid-row: 1 / 3; font: 400 17px var(--head); font-style: normal; letter-spacing: .05em; margin-right: 10px; color: #8a6a1a; } .sfs em.first { color: #1d8a4c; }
.sf-combos { flex: 1; min-height: 0; overflow: hidden; } .sf-combos h4 { margin: 0 0 2px; font: 400 22px var(--head); letter-spacing: .08em; color: #7be0a1; }
.sf-combos ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; } .sf-combos li, .sf-combos p { font-size: 17px; line-height: 1.22; margin: 0; } .sf-combos p { color: var(--dim); } .sf-combos .lack { color: #ffb38a; margin-top: 4px; }
.sfboard.n4 .sfs b { font-size: 26px; } .sfboard.n4 .sf-combos li, .sfboard.n4 .sf-combos p { font-size: 16px; }
.sf-bench { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.sfb { --hc: #888; background: var(--ink); border: 3px solid var(--hc); border-radius: 10px; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; overflow: hidden; opacity: .7; }
.sfb.free { opacity: 1; background: var(--paper); color: var(--ink); } .sfb .por { grid-row: 1 / 3; width: 54px; height: 54px; border: 0; border-radius: 0; box-shadow: none; }
.sfb b { font: 400 19px/1 var(--head); letter-spacing: .04em; align-self: end; white-space: nowrap; overflow: hidden; } .sfb small { font-size: 12px; line-height: 1.05; opacity: .8; align-self: start; }
.ringing .gap { flex: 1; } .hqb { display: flex; align-items: center; gap: 8px; } .hqb > b { font: 400 24px var(--head); letter-spacing: .08em; color: var(--yellow); margin-right: 2px; animation: none; }
.ringing .hqb span { border-color: #5b62c9; display: flex; align-items: center; gap: 6px; padding: 0 10px 0 0; overflow: hidden; } .hqb span .por { width: 32px; height: 32px; border: 0; border-radius: 0; box-shadow: none; }
.ringing .hqb span.hurt { border-color: var(--red); color: #ff8f8f; } .hqb span.hurt .por { filter: grayscale(1); } .ringing .hqb span.none { border-color: transparent; color: var(--dim); padding: 0; }
/* a shift's worth of heroes on the board: room for the big cards again */
.droster.few { grid-template-columns: repeat(var(--n), minmax(0, 300px)); justify-content: center; gap: 14px; }
.droster.few .rh { grid-template-columns: 100px minmax(0, 1fr); column-gap: 10px; padding-right: 8px; } .droster.few .rh .por { width: 100px; }
.droster.few .rh b { font-size: 28px; } .droster.few .rh small { font-size: 16px; } .droster.few .rh em { font-size: 18px; } .droster.few .rh .rlv { font-size: 18px; padding: 0 8px; }

/* thirteen heroes */
.droster:not(.few) { grid-template-columns: repeat(13, 1fr); gap: 5px; } .droster:not(.few) .rh { grid-template-columns: 52px minmax(0, 1fr); } .droster:not(.few) .rh .por { width: 52px; } .droster:not(.few) .rh b { font-size: 16px; }
.cv-roster { grid-template-columns: repeat(13, 1fr); } .cv-h .por { width: 80px; height: 80px; } .cv-h b { font-size: 17px; }
.sf-bench { grid-template-columns: repeat(13, 1fr); gap: 6px; } .sfb { grid-template-columns: 48px 1fr; } .sfb .por { width: 48px; height: 48px; } .sfb b { font-size: 17px; }

/* films: the cover's idle film (tv/film.ts), the endings (tv/ending.ts), and the front page's buttons */
.cv-art { transition: background-image 1.6s ease-in-out; }
.n912-film { position: fixed; inset: 0; z-index: 1500; background: #000; opacity: 0; pointer-events: none; transition: opacity .3s ease-in; }
.n912-film.on { opacity: 1; pointer-events: auto; transition: opacity 1.4s ease-out; cursor: none; }
.n912-film .media, .n912-film .media video, .n912-film .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.n912-film .media img { z-index: 1; }
.n912-film .shade { position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 62%, rgba(20,18,31,.78)); }
.n912-film .lt { position: absolute; z-index: 3; left: 3vw; right: 3vw; bottom: 3.4vh; display: flex; align-items: flex-end; justify-content: space-between; gap: 6vw; }
.n912-film .lt-txt { background: var(--yellow); color: var(--ink); border: .35vw solid var(--ink); border-radius: .8vw; box-shadow: .5vw .5vw 0 var(--ink); padding: 1vh 1.6vw 1.2vh; transform: rotate(-1.2deg); }
.n912-film .k { font: 400 1.5vw var(--head); letter-spacing: .1em; color: var(--red); }
.n912-film .row { display: flex; align-items: baseline; gap: 1vw; } .n912-film .row span { font: 400 1.6vw var(--head); letter-spacing: .1em; }
.n912-film .c { font: 400 4.6vw/1 var(--head); letter-spacing: .12em; }
.n912-film .u { font: 700 1.35vw var(--body); }
.n912-film .lt-qr { display: flex; flex-direction: column; align-items: center; gap: .6vh; }
.n912-film .lt-qr .lab { font: 400 1.4vw var(--head); letter-spacing: .1em; color: var(--paper); text-shadow: .15vw .15vw 0 var(--ink); }
.n912-film .lt-qr .q { width: min(10vw, 18vh); aspect-ratio: 1; padding: .5vw; background: var(--paper); border: .35vw solid var(--ink); border-radius: .8vw; box-shadow: .5vw .5vw 0 var(--ink); }
.n912-film .lt-qr .q svg { width: 100%; height: 100%; display: block; }
.n912-end { position: fixed; inset: 0; z-index: 1400; background: #000; opacity: 0; transition: opacity .6s ease-out; cursor: pointer; }
.n912-end.on { opacity: 1; } .n912-end.out { opacity: 0; transition: opacity .6s ease-in; }
.n912-end video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.n912-end::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,18,31,.82)); pointer-events: none; }
.n912-end .title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 8vh; text-align: center; opacity: 0; transform: translateY(3vh) rotate(-1.5deg); transition: opacity 1.2s ease-out, transform 1.2s ease-out; }
.n912-end.titled .title { opacity: 1; transform: rotate(-1.5deg); }
.n912-end .title b { display: inline-block; font: 400 8.5vw/1 var(--head); letter-spacing: .05em; color: var(--ink); background: var(--yellow); border: .5vw solid var(--ink); padding: .5vh 2.4vw; box-shadow: .8vw .8vw 0 var(--ink); }
.n912-end.lose .title b { background: var(--paper); } .n912-end.mid .title b { background: #9fd8ff; }
.n912-end .title span { display: block; margin-top: 2.4vh; font: 700 2vw var(--body); color: var(--paper); text-shadow: .15vw .15vw 0 var(--ink); }
.n912-end .skip { position: absolute; z-index: 2; right: 2.4vw; top: 2.4vh; font: 700 1.1vw var(--body); letter-spacing: .12em; color: rgba(255,255,255,.55); text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .n912-film, .n912-film.on, .cv-art { transition: none; } }
.films { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.filmbtn { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); border: 3px solid var(--paper); font: 400 1.15em var(--head); letter-spacing: .05em; text-decoration: none; }
.filmbtn i { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); position: relative; flex: none; }
.filmbtn i::after { content: ''; position: absolute; left: 11px; top: 8px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); }
.filmbtn small { font: 700 .7em var(--body); opacity: .7; letter-spacing: 0; }
