/* Syndicate Quiz: line-art / comic. Black ink on white paper. */
:root {
  --ink: #000;
  --paper: #fff;
  --grey-1: #f3f3f3;
  --grey-2: #dcdcdc;
  --grey-3: #8c8c8c;
  --grey-4: #4a4a4a;
  --line: 0.1875rem;
  --line-thin: 0.125rem;
  --shadow: 0.25rem 0.25rem 0 var(--ink);
  --shadow-lg: 0.5rem 0.5rem 0 var(--ink);
  --radius: 0.0625rem;
  --font-head: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(0, 0, 0, 0.07) 0.0625rem, transparent 0.0813rem);
  background-size: 0.5625rem 0.5625rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
[hidden] {
  display: none !important;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
.head {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.05;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}

/* ---------- primitives ---------- */
.panel {
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover:not(:disabled) {
  transform: translate(-0.0625rem, -0.0625rem);
  box-shadow: 0.3125rem 0.3125rem 0 var(--ink);
}
.btn:active:not(:disabled) {
  transform: translate(0.1875rem, 0.1875rem);
  box-shadow: 0.0625rem 0.0625rem 0 var(--ink);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn.ghost {
  background: var(--paper);
  color: var(--ink);
}
.btn.small {
  padding: 0.4375rem 0.75rem;
  font-size: 0.75rem;
  box-shadow: 0.125rem 0.125rem 0 var(--ink);
}
.btn.block {
  width: 100%;
}
.btn:focus-visible,
.opt:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 0.1875rem dashed var(--ink);
  outline-offset: 0.1875rem;
}

.input {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 1rem;
}
.label {
  font-family: var(--font-head);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.muted {
  color: var(--grey-4);
}

.stamp {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  border: var(--line) solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(-6deg);
}
.stamp.big {
  font-size: 1.375rem;
  padding: 0.375rem 1rem;
  border-width: 0.25rem;
}
.stamp-in {
  animation: stamp-in 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes stamp-in {
  from {
    transform: scale(2.4) rotate(-6deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(-6deg);
    opacity: 1;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 50;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1.125rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0.25rem 0.25rem 0 var(--grey-3);
  font-weight: 600;
  animation: pop 0.25s ease-out both;
}
.conn {
  position: fixed;
  top: 0.625rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 0.375rem 0.875rem;
  background: var(--paper);
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0.125rem 0.125rem 0 var(--ink);
}

@keyframes pop {
  from {
    transform: translateY(0.5rem) scale(0.96);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes rise {
  from {
    transform: translateY(1.5rem);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- auth screens (player login, host login) ---------- */
.auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem;
}
.auth-card {
  width: min(26.25rem, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  animation: rise 0.4s ease-out both;
}
.auth-card .kicker {
  margin-bottom: 0.5rem;
}
.auth-card h1 {
  font-size: clamp(2.125rem, 9vw, 2.75rem);
  text-transform: uppercase;
}
.auth-card p {
  margin: 0.625rem 0 1.25rem;
}
.auth-card form {
  display: grid;
  gap: 0.75rem;
}
.auth-card .error {
  margin: 0;
  padding: 0.625rem 0.75rem;
  border: var(--line-thin) dashed var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
}
.auth-card .fine {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.125rem;
}
.wordmark img {
  width: 2.75rem;
  height: 2.75rem;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
}

/* ---------- team reveal ---------- */
.reveal {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  text-align: center;
}
.reveal-inner {
  display: grid;
  justify-items: center;
  gap: 1.375rem;
  width: min(26.25rem, 100%);
}
.flip {
  perspective: 75rem;
  width: min(72vw, 18.75rem);
  aspect-ratio: 4 / 5;
  cursor: pointer;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.flip.flipped .flip-inner {
  transform: rotateY(180deg);
}
.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--paper);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.face.front {
  background: var(--ink);
  color: var(--paper);
}
.face.front .stamp {
  color: var(--paper);
}
.face.back {
  transform: rotateY(180deg);
  padding: 0.875rem;
}
.face.back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.after {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.4s 0.5s, transform 0.4s 0.5s;
  display: grid;
  gap: 0.875rem;
  justify-items: center;
  width: 100%;
}
.after.shown {
  opacity: 1;
  transform: none;
}
.after h1 {
  font-size: clamp(1.875rem, 9vw, 2.875rem);
  text-transform: uppercase;
}
.crew {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.crew li {
  padding: 0.3125rem 0.75rem;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--paper);
}
.crew li.me {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- player chat ---------- */
.chat {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 40rem;
  margin: 0 auto;
  background: var(--paper);
  border-inline: var(--line) solid var(--ink);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-bottom: var(--line) solid var(--ink);
  background: var(--paper);
  position: relative;
  z-index: 2;
}
.chat-head .avatar {
  width: 2.875rem;
  height: 2.875rem;
}
.chat-head .who {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.chat-head .who h2 {
  font-size: 1.1875rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-head .who .sub {
  font-size: 0.8125rem;
  color: var(--grey-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timer-chip {
  flex: none;
  padding: 0.375rem 0.75rem;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0.125rem 0.125rem 0 var(--ink);
}
.timer-chip.urgent {
  background: var(--ink);
  color: var(--paper);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    transform: scale(1.08);
  }
}

.avatar {
  width: 2.25rem;
  height: 2.25rem;
  border: var(--line-thin) solid var(--ink);
  border-radius: 62.4375rem;
  object-fit: cover;
  background: var(--paper);
  flex: none;
}

.crew-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.875rem;
  background: var(--paper);
  border-bottom: var(--line) solid var(--ink);
  box-shadow: 0 0.375rem 0 rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 0.625rem;
  animation: pop 0.2s ease-out;
}
.crew-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.375rem;
}
.crew-panel li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: var(--radius);
  border: var(--line-thin) solid var(--ink);
  flex: none;
}
.dot.on {
  background: var(--ink);
}
.tag {
  font-family: var(--font-head);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.125rem 0.4375rem;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
}
.tag.solid {
  background: var(--ink);
  color: var(--paper);
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8125rem;
  justify-self: start;
}

.messages {
  overflow-y: auto;
  padding: 1.125rem 0.875rem 1.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overscroll-behavior: contain;
}
.row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  max-width: 100%;
}
.row.in {
  justify-content: flex-start;
}
.row.out {
  justify-content: flex-end;
}
.row.sys {
  justify-content: center;
}
.row.pop {
  animation: pop 0.28s ease-out both;
}
.bubble {
  position: relative;
  max-width: min(86%, 28.75rem);
  padding: 0.625rem 0.875rem 0.5rem;
  border: var(--line) solid var(--ink);
  border-radius: 1.125rem 1.125rem 1.125rem 0.25rem;
  background: var(--paper);
  box-shadow: 0.1875rem 0.1875rem 0 var(--ink);
}
.row.out .bubble {
  border-radius: 1.125rem 1.125rem 0.25rem 1.125rem;
}
.bubble .sender {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.125rem;
}
.bubble p {
  margin: 0;
}
.bubble .meta {
  font-size: 0.6875rem;
  color: var(--grey-3);
  text-align: right;
  margin-top: 0.25rem;
}
.bubble.dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0.1875rem 0.1875rem 0 var(--grey-3);
}
.bubble.dark .meta {
  color: var(--grey-2);
}
.row.out .bubble.dark {
  margin-top: 0.75rem;
  min-width: 9.375rem;
}
.bubble.dark .stamp {
  position: absolute;
  top: -1.125rem;
  right: 0.375rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.625rem;
}
.bubble.score {
  background: var(--grey-1);
}
.bubble .answer-text {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0.125rem;
  word-break: break-word;
}
.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border: var(--line-thin) dashed var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.bubble.q {
  width: min(86%, 28.75rem);
}
.bubble.q.live {
  box-shadow: 0.3125rem 0.3125rem 0 var(--ink);
}
.qtext {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0.375rem 0 0.625rem !important;
  line-height: 1.3;
}
.qimg {
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  margin: 0.5rem 0;
  max-height: 16.25rem;
  object-fit: contain;
  width: 100%;
  background: var(--paper);
}
.opts {
  display: grid;
  gap: 0.5rem;
}
.opt {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  text-align: left;
  padding: 0.625rem 0.75rem;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 600;
  cursor: pointer;
}
.opt b {
  font-family: var(--font-head);
  font-weight: 400;
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  display: grid;
  place-items: center;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
}
.opt:disabled {
  cursor: default;
  color: var(--ink);
}
.opt:not(:disabled):hover {
  background: var(--grey-1);
}
.opt.picked {
  background: var(--ink);
  color: var(--paper);
}
.opt.picked b {
  border-color: var(--paper);
}
.qaudio {
  display: grid;
  gap: 0.25rem;
  margin: 0.5rem 0;
}
.qaudio audio {
  width: 100%;
}
.qhint {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--grey-4);
}
.qfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  min-height: 1.375rem;
  gap: 0.5rem;
}
.qfoot .stamp {
  font-size: 0.6875rem;
}

.typing {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.typing .bubble {
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.3125rem;
}
.typing i {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ink);
  border-radius: var(--radius);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing i:nth-child(3) {
  animation-delay: 0.4s;
}

.composer {
  border-top: var(--line) solid var(--ink);
  padding: 0.75rem 0.875rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--paper);
}
.composer .note {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey-4);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.composer form {
  display: flex;
  gap: 0.5rem;
}
.composer form .input {
  flex: 1;
  min-width: 0;
}
.confirm {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.625rem;
  align-items: center;
  animation: pop 0.2s ease-out;
}
.confirm .pending {
  font-weight: 800;
  font-size: 1rem;
  word-break: break-word;
}
@media (max-width: 26.25rem) {
  .confirm {
    grid-template-columns: 1fr 1fr;
  }
  .confirm > div:first-child {
    grid-column: 1 / -1;
  }
  .chat {
    border-inline: 0;
  }
}

/* ---------- stage (screen-shared) ---------- */
body.stage-body {
  overflow: hidden;
}
.stage {
  width: 100vw;
  height: 100dvh;
  padding: 3.2vh 3.2vw;
  display: flex;
  flex-direction: column;
}
.scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 2.6vh;
}
.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2vw;
}
.stage-head .boss {
  display: flex;
  align-items: center;
  gap: 1vw;
}
.stage-head .boss img {
  width: 6vh;
  height: 6vh;
}
.mega {
  font-size: clamp(2rem, 6.5vh, 5.625rem);
  text-transform: uppercase;
}
.kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.75rem, 1.9vh, 1.5rem);
}
.join {
  font-size: clamp(0.875rem, 2.4vh, 1.875rem);
  padding: 1vh 1.6vw;
}
.join b {
  font-family: var(--font-head);
  font-weight: 400;
}

.gang-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2vh 1.6vw;
}
.gang {
  padding: 1.4vh 1vw;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto auto;
  gap: 0.8vh;
  min-height: 0;
  overflow: hidden;
}
.gang-img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.gang .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8vw;
}
.gang h3 {
  font-size: clamp(0.875rem, 2.4vh, 2rem);
  text-transform: uppercase;
}
.gang .count {
  font-family: var(--font-head);
  font-size: clamp(0.75rem, 1.8vh, 1.375rem);
}
.gang .names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5vh 0.4vw;
  align-content: flex-start;
  overflow: hidden;
}
.gang .names li {
  font-size: clamp(0.6875rem, 1.6vh, 1.25rem);
  font-weight: 600;
  padding: 0.2vh 0.6vw;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
}
.gang .names li.off {
  border-style: dashed;
  color: var(--grey-3);
  border-color: var(--grey-3);
}
.gang .names li.lead {
  background: var(--ink);
  color: var(--paper);
}
.enter .gang {
  animation: rise 0.5s ease-out both;
}
.enter .gang:nth-child(2) {
  animation-delay: 0.05s;
}
.enter .gang:nth-child(3) {
  animation-delay: 0.1s;
}
.enter .gang:nth-child(4) {
  animation-delay: 0.15s;
}
.enter .gang:nth-child(5) {
  animation-delay: 0.2s;
}
.enter .gang:nth-child(6) {
  animation-delay: 0.25s;
}
.enter .gang:nth-child(7) {
  animation-delay: 0.3s;
}
.enter .gang:nth-child(8) {
  animation-delay: 0.35s;
}

.center-stack {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 3vh;
}
.round-num {
  font-size: clamp(3.75rem, 20vh, 16.25rem);
  text-transform: uppercase;
  line-height: 0.9;
  -webkit-text-stroke: 0;
}
.round-title {
  font-size: clamp(1.75rem, 6vh, 5rem);
  text-transform: uppercase;
  padding: 1.4vh 2.4vw;
}
.round-intro {
  font-size: clamp(1rem, 3vh, 2.5rem);
  max-width: 60vw;
  margin: 0;
}
.enter .round-num {
  animation: rise 0.6s ease-out both;
}
.enter .round-title {
  animation: rise 0.6s 0.2s ease-out both;
}
.enter .round-intro {
  animation: rise 0.6s 0.4s ease-out both;
}

.q-stage {
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 2.6vh;
  min-height: 0;
}
.q-text {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 5.6vh, 4.75rem);
  line-height: 1.12;
  padding: 3vh 2.4vw;
}
.q-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2vw;
  min-height: 0;
}
.q-body.has-img {
  grid-template-columns: 1fr 1fr;
}
.q-img {
  max-height: 100%;
  object-fit: contain;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}
.q-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vh 1.6vw;
  align-content: center;
}
.q-opt {
  display: flex;
  align-items: center;
  gap: 1.2vw;
  padding: 2.2vh 1.6vw;
  font-size: clamp(1.125rem, 3.6vh, 3.125rem);
  font-weight: 700;
  line-height: 1.15;
}
.q-opt b {
  font-family: var(--font-head);
  font-weight: 400;
  flex: none;
  width: 7vh;
  height: 7vh;
  display: grid;
  place-items: center;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
}
.q-opt.correct {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0.375rem 0.375rem 0 var(--grey-3);
}
.q-opt.correct b {
  border-color: var(--paper);
}
.q-opt.wrong {
  opacity: 0.35;
}
/* Vote reveal: winner bar above the counted options. */
.vote-result {
  display: grid;
  gap: 1.6vh;
}
.q-votes {
  margin-left: auto;
  flex: none;
  font-size: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.q-open {
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 4vh, 3.5rem);
  text-transform: uppercase;
  border: var(--line) dashed var(--ink);
  border-radius: var(--radius);
}
.big-timer {
  width: 22vh;
  height: 22vh;
  align-self: center;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 0.375rem solid var(--ink);
  font-family: var(--font-head);
  font-size: 8vh;
  font-variant-numeric: tabular-nums;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.big-timer.urgent {
  background: var(--ink);
  color: var(--paper);
  animation: pulse 1s infinite;
}
.big-timer.done {
  font-size: 4vh;
}
.enter .q-text {
  animation: rise 0.5s ease-out both;
}
.enter .q-opt {
  animation: rise 0.45s ease-out both;
}
.enter .q-opt:nth-child(2) {
  animation-delay: 0.08s;
}
.enter .q-opt:nth-child(3) {
  animation-delay: 0.16s;
}
.enter .q-opt:nth-child(4) {
  animation-delay: 0.24s;
}

.lockbar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1vw;
}
.lock {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.6vh;
  padding: 1vh 0.4vw;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}
.lock img {
  width: 7vh;
  height: 7vh;
  object-fit: contain;
}
.lock span {
  font-family: var(--font-head);
  font-size: clamp(0.625rem, 1.4vh, 1.125rem);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
}
.lock.done {
  background: var(--ink);
  color: var(--paper);
}
.lock.done img {
  filter: invert(1);
}
.lock .stamp {
  position: absolute;
  top: -1.4vh;
  right: -0.6vw;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(0.5625rem, 1.3vh, 1rem);
}

.reveal-stage {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 2.4vh;
  min-height: 0;
}
.reveal-q {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 4.2vh, 3.5rem);
  line-height: 1.15;
  padding: 2.4vh 2vw;
}
.correct-bar {
  display: flex;
  align-items: center;
  gap: 1.6vw;
  padding: 2vh 2vw;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0.375rem 0.375rem 0 var(--grey-3);
}
.correct-bar .label {
  color: var(--grey-2);
  font-size: clamp(0.6875rem, 1.8vh, 1.375rem);
}
.correct-bar strong {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.375rem, 4.6vh, 3.75rem);
}
.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1.8vh 1.4vw;
  min-height: 0;
}
.ans {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 0.6vh 0.8vw;
  padding: 1.4vh 1vw;
  overflow: hidden;
}
.ans img {
  grid-row: span 2;
  width: 7vh;
  height: 9vh;
  object-fit: contain;
}
.ans h3 {
  font-size: clamp(0.75rem, 2vh, 1.625rem);
  text-transform: uppercase;
}
.ans .txt {
  font-size: clamp(0.875rem, 2.6vh, 2.125rem);
  font-weight: 700;
  line-height: 1.15;
  word-break: break-word;
  overflow: hidden;
}
.ans .txt.none {
  color: var(--grey-3);
  font-style: italic;
  font-weight: 600;
}
.ans.right {
  background: var(--ink);
  color: var(--paper);
}
.ans.right img {
  filter: invert(1);
}
.ans .pts {
  position: absolute;
  top: 0.8vh;
  right: 0.6vw;
  font-size: clamp(0.75rem, 2vh, 1.625rem);
}
.ans.right .pts {
  color: var(--paper);
}
.enter .ans {
  animation: rise 0.45s ease-out both;
}
.enter .ans:nth-child(n) {
  animation-delay: calc(0.6s + var(--i, 0) * 0.12s);
}
.enter .correct-bar {
  animation: rise 0.5s 0.3s ease-out both;
}

.board {
  flex: 1;
  display: grid;
  gap: 1.3vh;
  align-content: center;
  min-height: 0;
}
.board-row {
  display: grid;
  grid-template-columns: 7vh 8vh 1fr auto auto;
  align-items: center;
  gap: 1.4vw;
  padding: 0.9vh 1.4vw;
}
.board-row .place {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 4vh, 3.375rem);
  text-align: center;
}
.board-row img {
  width: 6vh;
  height: 7vh;
  object-fit: contain;
}
.board-row h3 {
  font-size: clamp(1rem, 3vh, 2.5rem);
  text-transform: uppercase;
}
.board-row .plus {
  font-family: var(--font-head);
  font-size: clamp(0.875rem, 2.4vh, 2rem);
  color: var(--grey-4);
}
.board-row .total {
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 3.6vh, 3rem);
  min-width: 8vw;
  text-align: right;
}
.board-row.first {
  background: var(--ink);
  color: var(--paper);
}
.board-row.first img {
  filter: invert(1);
}
.board-row.first .plus {
  color: var(--grey-2);
}
.enter .board-row {
  animation: rise 0.45s ease-out both;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

.ceremony {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3vw;
  min-height: 0;
}
.ceremony .list {
  display: grid;
  grid-template-rows: repeat(8, 1fr);
  gap: 1vh;
  min-height: 0;
}
.slot {
  display: grid;
  grid-template-columns: 7vh 1fr auto;
  align-items: center;
  gap: 1vw;
  padding: 0 1.2vw;
  border: var(--line) dashed var(--grey-3);
  border-radius: var(--radius);
  color: var(--grey-3);
  min-height: 0;
}
.slot .place {
  font-family: var(--font-head);
  font-size: clamp(1rem, 3.4vh, 2.875rem);
}
.slot.filled {
  border-style: solid;
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.enter .slot.filled.fresh {
  animation: slam 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.slot h3 {
  font-size: clamp(0.875rem, 2.8vh, 2.375rem);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1vw;
}
.slot h3 img {
  width: 5vh;
  height: 5.6vh;
  object-fit: contain;
}
.slot .total {
  font-family: var(--font-head);
  font-size: clamp(0.875rem, 2.8vh, 2.375rem);
}
.slot.winner {
  background: var(--ink);
  color: var(--paper);
}
.slot.winner img {
  filter: invert(1);
}
@keyframes slam {
  from {
    transform: scale(1.4);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.spotlight {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2.4vh;
  text-align: center;
  min-height: 0;
}
.spotlight .winner-card {
  width: min(38vh, 100%);
  aspect-ratio: 4 / 5;
  padding: 2vh;
  display: grid;
  place-items: center;
  box-shadow: 0.75rem 0.75rem 0 var(--ink);
}
.spotlight .winner-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.spotlight .mystery {
  width: min(38vh, 100%);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 22vh;
  box-shadow: 0.75rem 0.75rem 0 var(--grey-3);
}
.spotlight h2 {
  font-size: clamp(1.75rem, 6.4vh, 5.375rem);
  text-transform: uppercase;
}
.enter .winner-card {
  animation: slam 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.marking-icons {
  display: flex;
  gap: 1.4vw;
  justify-content: center;
  flex-wrap: wrap;
}
.marking-icons img {
  width: 9vh;
  height: 11vh;
  object-fit: contain;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  padding: 0.6vh;
  background: var(--paper);
  animation: wobble 2.4s ease-in-out infinite;
}
.marking-icons img:nth-child(even) {
  animation-delay: 0.4s;
}
@keyframes wobble {
  50% {
    transform: rotate(-3deg) translateY(-0.25rem);
  }
}

.mini-standings {
  display: flex;
  gap: 1vw;
  justify-content: center;
  flex-wrap: wrap;
}
.mini-standings .panel {
  padding: 0.8vh 1.2vw;
  display: flex;
  align-items: center;
  gap: 0.6vw;
  font-weight: 700;
  font-size: clamp(0.75rem, 2vh, 1.625rem);
  box-shadow: 0.1875rem 0.1875rem 0 var(--ink);
}
.mini-standings img {
  width: 4vh;
  height: 4.6vh;
  object-fit: contain;
}

/* ---------- host control panel ---------- */
.host {
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 1.125rem 1rem 3.75rem;
  display: grid;
  gap: 1.125rem;
}
.host-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.host-top h1 {
  font-size: 1.75rem;
  text-transform: uppercase;
}
.host-top .links {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.host-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.125rem;
  align-items: start;
}
@media (max-width: 60rem) {
  .host-grid {
    grid-template-columns: 1fr;
  }
}
.card {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}
.card h2 {
  font-size: 1.125rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.next-btn {
  font-size: 1.125rem;
  padding: 1.125rem 1.375rem;
  width: 100%;
}
.ctrl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.host-timer {
  font-family: var(--font-head);
  font-size: 1.625rem;
  font-variant-numeric: tabular-nums;
  min-width: 5rem;
}
.qcard {
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}
.qcard .qt {
  font-weight: 700;
  font-size: 1.0625rem;
}
.qcard .correct {
  padding: 0.375rem 0.625rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-weight: 700;
  justify-self: start;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.5rem;
}
.status-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.375rem 0.5rem;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  min-width: 0;
}
.status-cell img {
  width: 1.75rem;
  height: 2rem;
  object-fit: contain;
  flex: none;
}
.status-cell .t {
  min-width: 0;
}
.status-cell .t b {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.status-cell .t span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-cell.done {
  background: var(--ink);
  color: var(--paper);
}
.status-cell.done img {
  filter: invert(1);
}
.teams-list {
  display: grid;
  gap: 0.625rem;
}
.team-row {
  display: grid;
  grid-template-columns: 2.125rem 1fr;
  gap: 0.625rem;
  align-items: start;
  padding: 0.625rem;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
}
.team-row img {
  width: 2.125rem;
  height: 2.5rem;
  object-fit: contain;
}
.team-row .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.team-row .hd b {
  text-transform: uppercase;
  font-family: var(--font-head);
  font-weight: 400;
}
.team-row select {
  padding: 0.375rem 0.5rem;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  max-width: 100%;
}
.team-row .members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}
.team-row .members span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.team-row.no-leader {
  border-style: dashed;
}
.mark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.mark-table th,
.mark-table td {
  border-bottom: var(--line-thin) solid var(--grey-2);
  padding: 0.375rem 0.25rem;
  text-align: left;
  vertical-align: middle;
}
.mark-table th {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mark-q {
  padding: 0.625rem 0 0.25rem;
  display: grid;
  gap: 0.125rem;
}
.mark-q .qt {
  font-weight: 700;
}
.pts-btns {
  display: inline-flex;
  gap: 0.25rem;
}
.pts-btns button {
  min-width: 2.25rem;
  padding: 0.25rem 0.375rem;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
}
.pts-btns button.on {
  background: var(--ink);
  color: var(--paper);
}
.unmarked {
  font-weight: 800;
  text-decoration: underline wavy;
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.score-table th,
.score-table td {
  padding: 0.375rem 0.25rem;
  border-bottom: var(--line-thin) solid var(--grey-2);
  text-align: right;
}
.score-table th:first-child,
.score-table td:first-child {
  text-align: left;
}
.preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.preview iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100rem;
  height: 56.25rem;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
}
.tabs {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.tabs button {
  padding: 0.3125rem 0.75rem;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8125rem;
}
.tabs button.on {
  background: var(--ink);
  color: var(--paper);
}
.danger {
  border-style: dashed;
}
.lb-toggle {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}
.lb-toggle input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--ink);
}
.member-edit {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.375rem;
}
.member-edit li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.member-edit .nm {
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.member-edit select {
  padding: 0.25rem 0.375rem;
  font-size: 0.8125rem;
  max-width: 11rem;
}

/* ---------- question editor ---------- */
.editor { gap: 1rem; }
.title-input {
  width: 100%;
  border: 0;
  border-bottom: var(--line-thin) dashed var(--grey-3);
  background: transparent;
  font-family: var(--font-head);
  font-size: 1.75rem;
  text-transform: uppercase;
  padding: 0.125rem 0;
}
.title-input:focus { outline: none; border-bottom-color: var(--ink); }
.ed-status { min-height: 1.5rem; }
.ed-banner { padding: 0.875rem 1rem; border-style: dashed; }
.ed-errors { padding: 0.875rem 1rem; display: grid; gap: 0.375rem; }
.ed-errors ul { margin: 0; padding-left: 1.25rem; }
.ed-grid {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1.125rem;
  align-items: start;
}
@media (max-width: 52rem) { .ed-grid { grid-template-columns: 1fr; } }
.ed-nav { padding: 1rem; display: grid; gap: 0.75rem; position: sticky; top: 1rem; }
.ed-rounds { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.375rem; }
.ed-round {
  width: 100%;
  display: grid;
  grid-template-columns: 1.75rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border: var(--line-thin) solid var(--ink);
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}
.ed-round .n { font-family: var(--font-head); }
.ed-round .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-round .c { font-size: 0.75rem; color: var(--grey-4); }
.ed-round:hover { background: var(--grey-1); }
.ed-round.on { background: var(--ink); color: var(--paper); }
.ed-round.on .c { color: var(--grey-2); }
.ed-main { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1.125rem; }
.ed-main:disabled { opacity: 0.75; }
.ed-field { display: grid; gap: 0.375rem; min-width: 0; }
.ed-field textarea { resize: vertical; font-family: var(--font-body); }
.ed-add { justify-content: center; padding: 0.5rem 0 2rem; }
.qedit-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.qnum { font-family: var(--font-head); font-size: 1.25rem; min-width: 2.5rem; }
.seg { display: inline-flex; border: var(--line-thin) solid var(--ink); }
.seg button { border: 0; background: var(--paper); padding: 0.375rem 0.75rem; font-weight: 700; font-size: 0.8125rem; cursor: pointer; }
.seg button + button { border-left: var(--line-thin) solid var(--ink); }
.seg button.on { background: var(--ink); color: var(--paper); }
.qedit-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.875rem; align-items: start; }
.qedit-id { font-size: 0.75rem; color: var(--grey-3); text-align: right; }
.opt-edit { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.opt-edit li { display: grid; grid-template-columns: auto 1.75rem 1fr auto; align-items: center; gap: 0.5rem; }
.opt-edit li > b { font-family: var(--font-head); font-weight: 400; text-align: center; }
.opt-edit input[type="radio"] { width: 1.25rem; height: 1.25rem; accent-color: var(--ink); cursor: pointer; }
.opt-edit li.correct .input { background: var(--ink); color: var(--paper); }
.opt-edit li.correct .input::placeholder { color: var(--grey-3); }
.img-thumb { width: 4.5rem; height: 3.5rem; object-fit: contain; border: var(--line-thin) solid var(--ink); background: var(--paper); }

/* ---------- player chat: collapsible rounds ---------- */
.round-section > summary {
  position: sticky;
  top: -1.125rem; /* flush with the top of the scrolling message list */
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 -0.875rem;
  padding: 0.5rem 0.875rem;
  list-style: none;
  cursor: pointer;
  background: var(--paper);
  border-block: var(--line-thin) solid var(--ink);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: none;
}
.round-section > summary::-webkit-details-marker { display: none; }
.round-section > summary::before { content: "▾"; display: inline-block; transition: transform 0.15s; }
.round-section:not([open]) > summary::before { transform: rotate(-90deg); }
.round-section:not([open]) > summary { background: var(--grey-1); }
.round-section > summary:focus-visible { outline: 3px dashed var(--ink); outline-offset: -3px; }
.rs-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-sub { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0; }
.rs-stats { font-family: var(--font-body); font-weight: 700; font-size: 0.75rem; text-transform: none; letter-spacing: 0; color: var(--grey-4); white-space: nowrap; }
.rs-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.75rem 0 0.25rem; }
.audio-field audio { height: 2.25rem; max-width: 100%; }

/* ---------- map questions (Leaflet) ---------- */
.leaflet-container {
  font-family: var(--font-body);
  background: var(--grey-1);
}
/* Leaflet's panes use z-indexes up to 1000; keep them inside the map box, under headers and menus. */
.qmap,
.ed-map,
.reveal-map {
  position: relative;
  isolation: isolate;
}
.qmap {
  margin: 0.5rem 0;
  border: var(--line-thin) solid var(--ink);
  border-radius: var(--radius);
}
.qmap-canvas {
  height: 16rem;
}
.qmap.pickable .leaflet-container {
  cursor: crosshair;
}
.qmap-full {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1000;
  width: 2.125rem;
  height: 2.125rem;
  border: var(--line-thin) solid var(--ink);
  background: var(--paper);
  font-size: 1.125rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0.125rem 0.125rem 0 var(--ink);
}
/* Full screen on phones; the composer (Lock it in) stays on top. */
.qmap.full {
  position: fixed;
  inset: 0;
  z-index: 1500;
  margin: 0;
  border: 0;
}
.qmap.full .qmap-canvas {
  height: 100%;
}
body.map-full .composer {
  position: relative;
  z-index: 1600;
}
body.map-full .chat {
  border-inline-color: transparent;
}

/* Pins: no image files, just ink. */
.map-pin i {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.25rem;
  border-radius: 50%;
  background: var(--ink);
  border: 0.1875rem solid var(--paper);
  box-shadow: 0 0 0 0.125rem var(--ink), 0.1875rem 0.1875rem 0 0.125rem rgb(0 0 0 / 0.35);
}
.map-pin.ghost i {
  background: var(--paper);
  border: 0.1875rem dashed var(--ink);
  box-shadow: none;
}
.map-pin.target i {
  width: 1.625rem;
  height: 1.625rem;
  margin: 0;
  background: radial-gradient(circle, var(--ink) 0 0.25rem, var(--paper) 0.3rem 0.45rem, var(--ink) 0.5rem);
  border: 0.1875rem solid var(--paper);
  box-shadow: 0 0 0 0.1875rem var(--ink);
}

/* Editor */
.ed-map {
  height: 22rem;
  border: var(--line-thin) solid var(--ink);
}

/* Stage reveal: map left, gangs sorted by score right. */
.map-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.4vw;
  min-height: 0;
}
.reveal-map {
  height: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.map-split .answer-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: none;
  grid-auto-rows: minmax(0, 1fr);
}
.map-split .ans img {
  width: 5vh;
  height: 6vh;
}
.map-split .ans h3 {
  padding-right: 4.5vw; /* room for the points stamp */
}
.ed-map-search .input {
  flex: 1;
  min-width: 12rem;
}
.map-split .ans .txt {
  font-size: clamp(0.8125rem, 2.2vh, 1.75rem);
}
.map-team > div {
  display: grid;
  justify-items: center;
}
.map-team img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  box-shadow: 0.1875rem 0.1875rem 0 var(--ink);
}
.map-team > div {
  position: relative;
}
/* Absolutely placed, so a long label can't push the badge off its spot. */
.map-team span {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 50%;
  translate: -50% 0;
  padding: 0.125rem 0.375rem;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 800;
  background: var(--paper);
  border: var(--line-thin) solid var(--ink);
}
.enter .map-team > * {
  animation: pop 0.35s ease-out both;
  animation-delay: calc(0.8s + var(--i, 0) * 0.25s);
}
.enter .map-line {
  animation: fade-in 0.4s 0.6s ease-out both;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
