/* Drishti Squad: the interface drawn over the 3D city. */
:root {
  --ink: #05060f;
  --panel: rgba(9, 14, 34, .86);
  --line: rgba(120, 220, 255, .28);
  --cyan: #5ff0ff;
  --pink: #ff5fd0;
  --amber: #ffc857;
  --good: #6dffb0;
  --bad: #ff6b6b;
  --text: #e9f3ff;
  --muted: #9fb2d4;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
p, h1, h2 { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---- the holograms above people ---- */
#holo { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.tagp { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; will-change: transform, opacity; display: flex; flex-direction: column; align-items: center; }
/* the street behind is a bright painting now, so a card carries its own dark glass to be read against */
.tagp .card { font-family: var(--mono); font-size: 15px; line-height: 1.25; white-space: nowrap; padding: 6px 10px 7px; border: 1px solid rgba(130, 230, 255, .7); border-radius: 7px; color: #dffbff;
  background: linear-gradient(180deg, rgba(10, 34, 66, .9), rgba(6, 16, 40, .92)), repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
  box-shadow: 0 0 16px rgba(70, 220, 255, .45), 0 2px 10px rgba(0, 0, 0, .55), inset 0 0 12px rgba(70, 220, 255, .14); text-shadow: 0 0 6px rgba(90, 230, 255, .55); }
.tagp .who { display: none; font-size: 11px; letter-spacing: .08em; color: #9fe9ff; margin-bottom: 3px; }
.tagp .line { display: flex; gap: 8px; align-items: center; }
/* the painted pictures of the things people carry */
.ico { display: inline-block; flex: none; width: 24px; height: 24px; background-repeat: no-repeat; vertical-align: middle; }
.ico-a { background-image: url(../art/icons_a.webp); background-size: 400% 400%; }
.ico-b { background-image: url(../art/icons_b.webp); background-size: 400% 200%; }
.tagp .ico { filter: drop-shadow(0 0 5px rgba(90, 230, 255, .5)); }
.tagp .amt { display: inline-flex; align-items: center; gap: 4px; }
.tagp .amt + .amt { margin-left: 14px; }
.tagp .ico.mini { width: 22px; height: 22px; margin: -5px 0; }
.tagp.far .ico { width: 13px; height: 13px; filter: none; }
.tagp.far .ico.mini { display: none; }
.tagp.far .amt + .amt { margin-left: 7px; }
.tagp.locked .ico { width: 30px; height: 30px; }
.tagp.locked .ico.mini { width: 26px; height: 26px; }
.tagp .line b { font-weight: 600; font-size: 10px; letter-spacing: .12em; color: #8fdcf0; }
.tagp .line span { font-size: 16px; font-weight: 700; color: #fff; }
.tagp .more { display: none; margin-top: 4px; padding-top: 4px; border-top: 1px dashed rgba(140, 230, 255, .3); font-size: 11px; color: #a9d9ea; }
.tagp .shape { display: inline-block; vertical-align: middle; margin-right: 8px; border: 1.5px solid #9ff3ff; background: rgba(120, 240, 255, .18); box-shadow: 0 0 6px rgba(120, 240, 255, .5); }
.tagp .stem { width: 1px; height: 16px; background: linear-gradient(180deg, rgba(120, 230, 255, .8), transparent); }
.tagp.far .card { padding: 3px 6px; font-size: 0; }
.tagp.far .line b { display: none; }
.tagp.far .line span { font-size: 12px; color: #e6faff; }
.tagp.far .shape { display: none; }
.tagp.locked .card { border-color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 30px rgba(120, 240, 255, .8), 0 4px 14px rgba(0, 0, 0, .6), inset 0 0 14px rgba(120, 240, 255, .25); background: linear-gradient(180deg, rgba(18, 74, 120, .94), rgba(8, 26, 66, .95)); }
.tagp.locked .who, .tagp.locked .more { display: block; }
.tagp.locked .line span { font-size: 19px; }
.tagp.caught .card { border-color: var(--good); color: #d9ffe9; background: rgba(20, 110, 70, .5); box-shadow: 0 0 18px rgba(109, 255, 176, .5); text-shadow: none; }
.tagp.wrong .card { border-color: var(--bad); color: #ffe1e1; background: rgba(120, 20, 30, .55); box-shadow: 0 0 18px rgba(255, 107, 107, .5); text-shadow: none; }
.tagp .verdict { display: none; font-size: 10px; letter-spacing: .14em; margin-top: 3px; }
.tagp.caught .verdict, .tagp.wrong .verdict { display: block; }

/* ---- during a mission ---- */
#hud { position: fixed; inset: 0; pointer-events: none; }
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
#clue { position: absolute; left: max(14px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top)); max-width: min(46vw, 560px); padding: 10px 14px 12px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 8px; backdrop-filter: blur(6px); }
#clue .short { font-family: var(--mono); font-size: clamp(17px, 2.2vw, 26px); font-weight: 700; color: #fff; margin-top: 3px; text-shadow: 0 0 12px rgba(95, 240, 255, .5); }
#clue .full { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 5px; max-width: 54ch; }
#stats { position: absolute; right: max(14px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top)); width: min(34vw, 250px); padding: 10px 14px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: blur(6px); }
#stats .timer { height: 6px; margin: 8px 0; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
#stats .timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), #8a7bff); transform-origin: 0 50%; }
#stats .timer.low i { background: linear-gradient(90deg, var(--bad), var(--amber)); }
#stats .row { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 15px; font-weight: 600; }
#stats .row.small { font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 6px; }
#credits { color: var(--amber); }
#time-text { font-size: 20px; font-weight: 700; color: #fff; }
#time-text.low { color: var(--bad); }
.rule { margin-top: 12px; padding: 9px 12px; font-size: 14px; line-height: 1.5; color: #ffe9bd; border-left: 3px solid var(--amber); background: rgba(255, 200, 87, .08); border-radius: 0 8px 8px 0; }
#level-pips i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
#level-pips i.on { background: var(--pink); box-shadow: 0 0 6px var(--pink); }
#reticle { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 50%; transition: transform .12s ease-out, border-color .12s; }
#reticle i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; }
#reticle.on { border-color: var(--cyan); transform: scale(1.35); box-shadow: 0 0 14px rgba(95, 240, 255, .7); }
#radio { position: absolute; left: max(14px, env(safe-area-inset-left)); bottom: 46px; width: min(50vw, 600px); padding: 10px 14px; font-size: clamp(13px, 1.5vw, 17px); line-height: 1.4; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 8px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
#radio.on { opacity: 1; transform: none; }
#radio.good { border-color: var(--good); }
#radio.bad { border-color: var(--bad); }
#prompt { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-size: 12px; color: var(--muted); background: rgba(5, 6, 15, .6); padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
#gun { position: absolute; left: 50%; bottom: 0; width: min(58vh, 46vw); aspect-ratio: 1 / 1; margin-left: 4%; background-size: 200% 100%; background-repeat: no-repeat; background-position: 0 100%; transform-origin: 50% 100%; will-change: transform; filter: drop-shadow(0 0 18px rgba(0, 0, 0, .6)); }
#gun.fire { background-position: 100% 100%; }
#gun.plain { width: 120px; height: 150px; aspect-ratio: auto; background: linear-gradient(180deg, #7ff3ff 0 10%, #26324f 10% 100%); border-radius: 14px 14px 0 0; }
#flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(120, 240, 255, .5), transparent 55%); opacity: 0; }
#flash.bad { background: radial-gradient(circle at 50% 50%, rgba(255, 90, 90, .55), transparent 60%); }
#corner { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: 12px; display: flex; gap: 8px; pointer-events: auto; }
#corner button { padding: 5px 10px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(5, 6, 15, .6); color: var(--muted); }
#touch { position: absolute; inset: 0; pointer-events: none; }
#stick { position: absolute; left: 26px; bottom: 26px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--line); background: rgba(95, 240, 255, .06); }
#stick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(95, 240, 255, .35); border: 1px solid var(--cyan); }
#fire { position: absolute; right: 26px; bottom: 60px; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--cyan); background: rgba(95, 240, 255, .18); color: #fff; font-weight: 700; letter-spacing: .1em; pointer-events: auto; touch-action: none; }
#fire:active { background: rgba(95, 240, 255, .45); }

/* ---- panels: title, briefing, debrief ---- */
#screens { position: fixed; inset: 0; pointer-events: none; }
.screen { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; pointer-events: auto; background: radial-gradient(ellipse at 50% 40%, rgba(5, 6, 15, .5), rgba(5, 6, 15, .86)); overflow: auto; -webkit-user-select: text; user-select: text; }
#s-title { background: linear-gradient(180deg, rgba(5, 6, 15, .2), rgba(5, 6, 15, .75) 70%); place-items: end start; padding: clamp(18px, 6vw, 80px); }
.loading { font-family: var(--mono); color: var(--muted); letter-spacing: .1em; }
.title-card { max-width: 620px; }
.title-card h1 { font-size: clamp(44px, 9vw, 104px); line-height: .95; letter-spacing: -.02em; font-weight: 800; margin: 6px 0 16px; background: linear-gradient(95deg, #fff 10%, var(--cyan) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(15px, 1.8vw, 19px); line-height: 1.5; color: #d3e2fb; max-width: 56ch; }
.fine { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.panel { width: min(100%, 720px); max-height: 100%; overflow: auto; padding: clamp(18px, 3vw, 30px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.panel.narrow { width: min(100%, 560px); }
.panel.wide { width: min(100%, 900px); }
.panel h2 { font-size: clamp(22px, 3.2vw, 34px); line-height: 1.12; margin: 6px 0 12px; font-weight: 700; }
.say { font-size: clamp(15px, 1.7vw, 18px); line-height: 1.55; color: #dbe8ff; }
.keyline { font-family: var(--mono); font-size: clamp(18px, 2.6vw, 28px); font-weight: 700; color: #fff; margin: 14px 0 6px; padding: 10px 14px; border-left: 3px solid var(--cyan); background: rgba(95, 240, 255, .08); border-radius: 0 8px 8px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.actions .right { margin-left: auto; }
.btn { padding: 11px 20px; min-height: 44px; border-radius: 9px; border: 1px solid var(--line); background: transparent; font-weight: 600; letter-spacing: .02em; transition: transform .12s ease-out, background .15s, border-color .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--cyan); color: #04121a; border-color: var(--cyan); box-shadow: 0 0 24px rgba(95, 240, 255, .35); }
.btn.primary:hover { background: #a6f8ff; }
.btn.ghost { color: var(--text); }
.btn.ghost:hover { border-color: var(--cyan); }
.btn:focus-visible, input:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
label { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }
input { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 8px; -webkit-user-select: text; user-select: text; }
.error { margin-top: 12px; color: var(--bad); font-size: 14px; }

/* mission list */
.missions { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.missions li { display: grid; grid-template-columns: 30px 116px 1fr auto; gap: 14px; align-items: center; padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.missions .thumb { height: 62px; border-radius: 7px; border: 1px solid var(--line); background: linear-gradient(180deg, #0b1030, #241a52 70%, #0a0e1c) ; background-size: cover; background-position: 50% 78%; background-repeat: no-repeat; background-blend-mode: normal; box-shadow: inset 0 -18px 18px -12px rgba(5, 6, 15, .8); background-color: #141a3c; }
.missions li.locked .thumb { filter: grayscale(1) brightness(.6); }
@media (max-width: 560px) { .missions li { grid-template-columns: 24px 72px 1fr auto; gap: 10px; } .missions .thumb { height: 44px; } }
.missions li.open { cursor: pointer; }
.missions li.open:hover { border-color: var(--cyan); background: rgba(95, 240, 255, .07); }
.missions li.locked { opacity: .45; }
.missions .no { font-family: var(--mono); font-size: 20px; color: var(--cyan); }
.missions .t { font-weight: 700; font-size: 17px; }
.missions .d { font-size: 13px; color: var(--muted); margin-top: 2px; }
.missions .s { font-family: var(--mono); font-size: 13px; color: var(--amber); white-space: nowrap; }

/* briefing */
.panel.brief { width: min(100%, 980px); display: grid; grid-template-columns: 170px 1fr; gap: clamp(14px, 3vw, 30px); }
.chief { text-align: center; }
.portrait { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; border: 1px solid var(--line); background: #0d1630 center / cover no-repeat; box-shadow: 0 0 30px rgba(95, 240, 255, .18); }
.chief .name { margin-top: 8px; font-weight: 700; }
.brief-body { min-width: 0; display: flex; flex-direction: column; }
.show { margin-top: 16px; min-height: 150px; display: grid; place-items: center; padding: 14px; border-radius: 10px; border: 1px dashed var(--line); background: rgba(95, 240, 255, .04); font-family: var(--mono); }
.brief-body .actions { margin-top: auto; padding-top: 18px; }
@media (max-width: 640px) { .panel.brief { grid-template-columns: 1fr; } .chief { display: flex; align-items: center; gap: 12px; text-align: left; } .portrait { width: 64px; } }

/* pictures inside a briefing */
.v-notes { display: grid; gap: 16px; }
.v-notes .ico.purse { width: 62px; height: 62px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.banknote { position: relative; display: block; width: 92px; height: 46px; margin-left: -34px; filter: drop-shadow(-3px 3px 4px rgba(0, 0, 0, .55)); transition: transform .15s ease-out; }
.banknote:first-child { margin-left: 0; }
.banknote:nth-child(odd) { transform: rotate(-2.5deg); } .banknote:nth-child(even) { transform: rotate(2deg) translateY(2px); }
.banknote .ico.paper { position: absolute; left: 0; top: -23px; width: 92px; height: 92px; }
.banknote b { position: absolute; left: 61%; top: 50%; transform: translate(-50%, -50%); font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: -.01em; color: #1a1030; }
.v-notes .stack { padding: 6px 4px; }
.v-notes .wallet { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.v-notes .stack { display: flex; gap: 4px; align-items: center; }
.note { width: 46px; height: 24px; border-radius: 3px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #06101a; }
.note.n100 { background: #9ad7ff; }
.note.n200 { background: #ffd27a; }
.note.n500 { background: #c9a6ff; }
.mark { font-size: 20px; font-weight: 700; color: #fff; padding: 2px 10px; border: 1px solid var(--line); border-radius: 6px; }
.v-table { border-collapse: collapse; font-size: 17px; }
.v-table th, .v-table td { padding: 6px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.v-table th { font-size: 12px; letter-spacing: .12em; color: var(--cyan); font-weight: 600; }
.v-table td:first-child { color: var(--muted); }
.v-chain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-size: clamp(18px, 2.6vw, 26px); font-weight: 700; }
.v-chain .by { font-size: 13px; font-weight: 600; color: var(--pink); display: flex; flex-direction: column; align-items: center; }
.v-chain .by::after { content: "→"; font-size: 20px; color: var(--cyan); line-height: 1; }
.v-compare { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.v-compare .side { text-align: center; }
.v-compare .big { font-size: clamp(20px, 3vw, 30px); font-weight: 700; }
.v-compare .sub { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: var(--sans); }
.v-compare .v { font-size: 13px; padding: 4px 10px; border-radius: 999px; font-family: var(--sans); font-weight: 600; }
.v-compare .v.same { background: rgba(109, 255, 176, .15); color: var(--good); border: 1px solid var(--good); }
.v-compare .v.different { background: rgba(255, 107, 107, .12); color: var(--bad); border: 1px solid var(--bad); }
.v-rects { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; justify-content: center; }
.v-rects figure { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.v-rects .r { border: 2px solid var(--cyan); border-radius: 5px; background: linear-gradient(180deg, transparent 58%, rgba(255, 200, 87, .55) 58% 70%, transparent 70%), linear-gradient(135deg, rgba(95, 240, 255, .3), rgba(255, 95, 208, .2)); box-shadow: 0 0 14px rgba(95, 240, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .12); margin: 0 auto 6px; }
.v-cross { display: grid; grid-template-columns: auto auto auto; gap: 6px 26px; align-items: center; font-size: 24px; font-weight: 700; text-align: center; }
.v-cross .x { grid-column: 1 / -1; font-size: 15px; font-weight: 600; color: var(--good); font-family: var(--sans); }
.v-three { display: grid; gap: 12px; text-align: center; }
.v-three .cells { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.v-three .cell { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.v-three .cell b { display: block; font-size: 20px; }
.v-three .cell span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); font-family: var(--sans); }
.v-three .ans { font-size: 20px; font-weight: 700; color: var(--good); }
.v-bar { width: min(100%, 520px); }
.v-bar .bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.v-bar .seg { display: flex; }
.v-bar .seg i { flex: 1; border-right: 1px solid rgba(5, 6, 15, .5); }
.v-bar .seg:nth-child(1) i { background: #5ff0ff; } .v-bar .seg:nth-child(2) i { background: #ffc857; } .v-bar .seg:nth-child(3) i { background: #ff5fd0; }
.v-bar .labels { display: flex; margin-top: 6px; font-size: 14px; font-weight: 700; }
.v-bar .labels span { text-align: center; }
.v-bar .one { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; font-family: var(--sans); }
.v-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.v-card .tagp { position: static; transform: none !important; }
.v-card .tagp .stem { display: none; }
.v-scene { text-align: center; font-family: var(--sans); }
.show:has(.v-scene.painted) { padding: 0; overflow: hidden; border-style: solid; }
.v-scene.painted { position: relative; width: 100%; min-height: 230px; display: grid; align-items: end; justify-items: start; text-align: left;
  background: var(--place) 50% 100% / cover no-repeat, radial-gradient(ellipse at 50% 100%, #3a2a78, #101538 60%, #070a1c); }
.v-scene.painted .words { width: 100%; padding: 46px 18px 14px; background: linear-gradient(180deg, transparent, rgba(5, 6, 15, .9) 62%); }
.v-scene.painted .place { text-shadow: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8)); }
.v-scene .place { font-size: clamp(22px, 3.4vw, 36px); font-weight: 800; letter-spacing: .02em; background: linear-gradient(95deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v-scene .sec { margin-top: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.practice { display: grid; gap: 14px; justify-items: center; width: 100%; }
.practice .q { font-family: var(--sans); font-size: 15px; color: var(--muted); text-align: center; }
.practice .choice { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.practice .result { font-family: var(--sans); font-size: 15px; line-height: 1.5; text-align: center; max-width: 60ch; }
.practice .result.good { color: var(--good); } .practice .result.bad { color: var(--bad); }

/* debrief */
.people { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.people li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); align-items: start; }
.people li.good { border-color: rgba(109, 255, 176, .5); }
.people li.bad { border-color: rgba(255, 107, 107, .6); background: rgba(255, 107, 107, .06); }
.people .badge { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.people li.good .badge { color: var(--good); } .people li.bad .badge { color: var(--bad); }
.people .data { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.people .why { font-size: 14px; line-height: 1.45; color: #cfdcf5; margin-top: 3px; }
@media (max-width: 560px) { .people li { grid-template-columns: 1fr; } }
/* the class board on the screen that ends a mission */
.panel.done { width: min(100%, 760px); }
.board { margin-top: 18px; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(95, 240, 255, .04); }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 4px 11px; font-size: 12px; font-weight: 600; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.chip.on { background: var(--cyan); border-color: var(--cyan); color: #04121a; }
.chips.wide { margin: 2px 0 8px; }
.board.solo { margin-top: 10px; }
.board.solo li { padding: 7px 11px; font-size: 15px; }
.board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.board h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #fff; }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.board li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: baseline; padding: 5px 9px; border-radius: 7px; font-size: 14px; background: rgba(255, 255, 255, .035); }
.board li.me { background: rgba(95, 240, 255, .16); box-shadow: inset 0 0 0 1px rgba(95, 240, 255, .55); font-weight: 700; }
.board li.apart { margin-top: 8px; }
.board li.none { display: block; color: var(--muted); background: none; padding-left: 0; }
.board .rank { font-family: var(--mono); color: var(--amber); }
.board .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .of { font-size: 11px; color: var(--muted); font-weight: 400; }
.board .pts { font-family: var(--mono); font-weight: 700; color: #fff; }
@media (max-width: 600px) { .board-cols { grid-template-columns: 1fr; } }
.stars { font-size: 40px; letter-spacing: .1em; color: var(--amber); margin: 6px 0 10px; text-shadow: 0 0 18px rgba(255, 200, 87, .5); }
.stars i { font-style: normal; opacity: .2; }
@media (max-width: 700px) { #clue .full { display: none; } #stats { width: 150px; } #prompt { display: none; } #radio { width: min(92vw, 600px); bottom: 190px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* small screens held sideways: keep the middle of the view clear */
@media (max-height: 480px) {
  #clue { max-width: 42vw; padding: 7px 10px 8px; }
  #clue .full { display: none; }
  #clue .short { font-size: 15px; }
  #stats { width: 172px; padding: 7px 10px 8px; }
  #radio { left: 50%; bottom: auto; top: 70px; width: min(60vw, 520px); font-size: 13px; transform: translate(-50%, -6px); }
  #radio.on { transform: translate(-50%, 0); }
  #gun { width: min(70vh, 40vw); }
  .panel { padding: 14px 16px; }
  .panel h2 { margin: 2px 0 8px; }
  .show { min-height: 96px; margin-top: 10px; padding: 8px; }
}
/* a phone held upright: the clue goes across the top */
@media (orientation: portrait) and (max-width: 700px) {
  #clue { right: 14px; max-width: none; }
  #stats { top: 98px; width: 170px; }
  #radio { left: 14px; right: 14px; width: auto; bottom: 200px; }
}
#turn { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); padding: 8px 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); display: none; }
@media (orientation: portrait) and (pointer: coarse) { #turn { display: block; } }
