/* Silence in the Fog – late-Victorian London look.
   Palette: midnight blue, charcoal, gaslight amber and restrained brass. */

@font-face {
  font-family: "IM Fell English SC";
  src: url("/fonts/im-fell-english-sc-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Petit Formal Script";
  src: url("/fonts/petit-formal-script-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Petit Formal Script";
  src: url("/fonts/petit-formal-script-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+A720-A7FF;
}

:root {
  --midnight: #0b1322;
  --navy: #13213a;
  --navy-soft: #1c2d4a;
  --charcoal: #16171b;
  --soot: #0a0a0c;
  --gaslight: #f3c776;
  --gaslight-soft: #f6dca6;
  --brass: #b48f55;
  --brass-light: #dcc08a;
  --brass-dark: #6f5328;
  --paper: #efe5cf;
  --paper-shade: #e2d3b2;
  --ink: #241a10;
  --ink-soft: #4a3a28;
  --oxblood: #8e2b22;
  --text-on-dark: #f1e8d6;
  --muted-on-dark: #c9bca2;

  --font-display: "IM Fell English SC", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-script: "Petit Formal Script", "Snell Roundhand", "Apple Chancery", cursive;

  --radius: 3px;
  --focus-ring: 0 0 0 3px var(--midnight), 0 0 0 6px var(--gaslight-soft);

  /* Very fine paper grain (inline SVG noise). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; background-color: #0a0a0c; }

body {
  min-height: 100%;
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--navy-soft) 0%, var(--midnight) 55%, var(--soot) 100%) fixed;
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.3rem);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { min-height: 100%; outline: none; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .5rem 1rem;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-display);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; box-shadow: var(--focus-ring); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Headings only receive focus programmatically (after a screen change). */
[tabindex="-1"]:focus { box-shadow: none; }

/* ---- Layout ------------------------------------------------------------ */

.view { min-height: 100vh; min-height: 100dvh; animation: fade-in .6s ease both; }

.view--center {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  padding-bottom: max(clamp(1rem, 4vw, 3rem), env(safe-area-inset-bottom));
}

/* Slow drifting fog behind the paper cards. */
.view--fog { position: relative; overflow: hidden; isolation: isolate; }
.view--fog::before,
.view--fog::after {
  content: "";
  position: absolute; inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 25% at 20% 70%, rgba(200, 210, 225, .10), transparent 70%),
    radial-gradient(35% 22% at 75% 30%, rgba(200, 210, 225, .08), transparent 70%),
    radial-gradient(30% 30% at 85% 85%, rgba(243, 199, 118, .07), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate;
}
.view--fog::after {
  background:
    radial-gradient(45% 20% at 60% 60%, rgba(200, 210, 225, .07), transparent 70%),
    radial-gradient(25% 25% at 15% 20%, rgba(243, 199, 118, .06), transparent 70%);
  animation-duration: 52s;
  animation-direction: alternate-reverse;
}

/* ---- Typography -------------------------------------------------------- */

.title {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: .02em;
}
.title--medium { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); }
.title--lobby {
  color: var(--gaslight-soft);
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem);
  text-shadow: 0 0 24px rgba(243, 199, 118, .25);
}

.eyebrow {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lead { margin: 0; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); color: var(--muted-on-dark); font-style: italic; }

.room-code {
  /* Lining figures: old-style numerals (a descending 9) are harder to copy. */
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  letter-spacing: .18em;
  white-space: nowrap;
}
.room-code--large {
  display: block;
  margin-top: .15rem;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
  color: var(--ink);
  letter-spacing: .25em;
  padding-left: .25em; /* balances the trailing letter spacing */
}

/* ---- Cards ------------------------------------------------------------- */

.card { position: relative; border-radius: var(--radius); }

/* Aged paper document with a fine double rule. */
.card--paper {
  width: min(100%, 30rem);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--ink);
  background:
    var(--grain),
    radial-gradient(ellipse at 50% 40%, var(--paper) 55%, var(--paper-shade) 100%);
  box-shadow:
    0 0 0 1px rgba(36, 26, 16, .35),
    0 18px 50px rgba(0, 0, 0, .55),
    0 0 90px rgba(243, 199, 118, .08);
  text-align: center;
}
.card--paper::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(111, 83, 40, .55);
  outline: 1px solid rgba(111, 83, 40, .3);
  outline-offset: 3px;
  pointer-events: none;
}

/* Dark ledger panel with brass edging (used in the lobby). */
.card--ledger {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(28, 45, 74, .92), rgba(19, 33, 58, .92));
  box-shadow: inset 0 0 0 1px rgba(220, 192, 138, .35), 0 14px 40px rgba(0, 0, 0, .5);
}
.card--ledger::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid rgba(220, 192, 138, .18);
  pointer-events: none;
}

/* ---- Forms ------------------------------------------------------------- */

.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; text-align: left; }

.field { display: grid; gap: .35rem; }

.field__label {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .08em;
}

.field__input {
  width: 100%;
  min-height: 3rem;
  padding: .55rem .8rem;
  font: inherit;
  font-size: 1.25rem;
  color: var(--ink);
  background: rgba(255, 252, 244, .75);
  border: 1px solid rgba(111, 83, 40, .7);
  border-bottom-width: 2px;
  border-radius: var(--radius);
  box-shadow: inset 0 1px 3px rgba(36, 26, 16, .18);
  transition: border-color .2s, background-color .2s;
}
.field__input:focus-visible { background: #fffdf7; border-color: var(--brass-dark); }
.field__input[aria-invalid="true"] { border-color: var(--oxblood); }

.field__input--dark {
  color: var(--text-on-dark);
  background: rgba(10, 10, 12, .45);
  border-color: rgba(220, 192, 138, .45);
  font-size: 1.05rem;
  font-family: ui-serif, Georgia, serif;
}

/* ---- Brass plaque buttons --------------------------------------------- */

.plaque {
  --plaque-face: linear-gradient(180deg, #e7cf98 0%, #c9a463 45%, #a9823f 100%);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  min-width: 11rem;
  padding: .7rem 1.8rem;
  border: 1px solid var(--brass-dark);
  border-radius: var(--radius);
  background: var(--plaque-face);
  color: #23170a;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .08em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 240, 205, .55);
  cursor: pointer;
  box-shadow:
    inset 0 0 0 3px rgba(255, 238, 196, .28),
    inset 0 0 0 4px rgba(111, 83, 40, .55),
    0 3px 0 #4f3a1b,
    0 6px 16px rgba(0, 0, 0, .45);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* Four small rivets in the corners. */
.plaque::before {
  content: "";
  position: absolute; inset: 7px;
  pointer-events: none;
  background:
    radial-gradient(circle, #7a5a2a 0 1.6px, transparent 2.2px) left top / 6px 6px no-repeat,
    radial-gradient(circle, #7a5a2a 0 1.6px, transparent 2.2px) right top / 6px 6px no-repeat,
    radial-gradient(circle, #7a5a2a 0 1.6px, transparent 2.2px) left bottom / 6px 6px no-repeat,
    radial-gradient(circle, #7a5a2a 0 1.6px, transparent 2.2px) right bottom / 6px 6px no-repeat;
}
.plaque:hover { filter: brightness(1.07) saturate(1.05); }
.plaque:active { transform: translateY(2px); box-shadow: inset 0 0 0 3px rgba(255, 238, 196, .28), inset 0 0 0 4px rgba(111, 83, 40, .55), 0 1px 0 #4f3a1b, 0 3px 8px rgba(0, 0, 0, .45); }
.plaque:focus-visible {
  box-shadow:
    inset 0 0 0 3px rgba(255, 238, 196, .28),
    inset 0 0 0 4px rgba(111, 83, 40, .55),
    0 3px 0 #4f3a1b,
    var(--focus-ring);
}
.plaque[disabled], .plaque[aria-busy="true"] { filter: grayscale(.4) brightness(.85); cursor: progress; }

.plaque--grand {
  min-height: 3.75rem;
  padding: .9rem 2.4rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  box-shadow:
    inset 0 0 0 3px rgba(255, 238, 196, .28),
    inset 0 0 0 4px rgba(111, 83, 40, .55),
    0 3px 0 #4f3a1b,
    0 8px 22px rgba(0, 0, 0, .55),
    0 0 40px rgba(243, 199, 118, .28);
  animation: gas-glow 4.5s ease-in-out infinite;
}

/* Dark enamel variant for secondary actions. */
.plaque--ghost {
  --plaque-face: linear-gradient(180deg, rgba(28, 45, 74, .95), rgba(13, 22, 38, .95));
  color: var(--gaslight-soft);
  text-shadow: none;
  border-color: var(--brass);
}
.plaque--ghost::before { background: none; border: 1px solid rgba(220, 192, 138, .35); inset: 5px; }

.plaque--small { min-width: 0; min-height: 3rem; padding: .55rem 1.1rem; font-size: 1.05rem; }

/* ---- Notices ------------------------------------------------------------ */

.notice { margin: 0; font-size: 1.05rem; }
.notice--error {
  padding: .55rem .8rem;
  color: #fff6ee;
  background: linear-gradient(180deg, #8e2b22, #6e1f18);
  border: 1px solid #4a120d;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 2px rgba(255, 220, 200, .15);
  animation: fade-in .25s ease both;
}
.notice--compact { max-width: 26rem; text-align: center; }
.notice--warning {
  margin-top: 1rem;
  padding: .5rem .8rem;
  color: var(--gaslight-soft);
  border: 1px dashed rgba(243, 199, 118, .55);
  border-radius: var(--radius);
}
.card--paper .notice--warning { color: var(--ink); border-color: rgba(111, 83, 40, .7); background: rgba(243, 199, 118, .18); }
.notice--quiet { min-height: 1.5em; font-size: 1rem; color: var(--muted-on-dark); font-style: italic; }

/* ---- Loading ------------------------------------------------------------ */

.lamp-loader {
  font-family: var(--font-display);
  letter-spacing: .1em;
  color: var(--gaslight-soft);
  animation: flicker 2.6s ease-in-out infinite;
}

/* ---- Gate --------------------------------------------------------------- */

.gate__room { margin: .25rem 0 0; color: var(--ink-soft); font-size: 1.15rem; }
.gate .plaque, .join .plaque { width: 100%; }

/* ---- Landing ------------------------------------------------------------ */

.landing {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--soot);
  animation: none;
}

/* Blurred, darkened copy of the poster fills any space the film does not. */
.landing__backdrop {
  position: absolute; inset: -40px;
  background: #0b1322 url("/media/poster.jpg") center / cover no-repeat;
  filter: blur(26px) brightness(.45) saturate(.9);
}

/* The whole frame stays visible by default (the title is in the top-left of
   the film, so blind cropping would cut it off on phones). */
.landing__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

/* Screens close to the film's 16:9 shape may fill edge to edge safely
   (narrower screens would crop the title and subtitle on the left). */
@media (min-aspect-ratio: 17/10) and (max-aspect-ratio: 2/1) {
  .landing__video { object-fit: cover; }
}

.landing__veil {
  position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 12, .75));
  pointer-events: none;
}

.landing__actions {
  position: absolute;
  left: 0; right: 0;
  bottom: max(clamp(1.5rem, 6vh, 4rem), env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  padding: 0 1rem;
}

/* Portrait phones: the complete film, with the actions directly below it. */
@media (max-aspect-ratio: 1/1) {
  .landing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(2rem, 7vh, 4rem);
  }
  .landing__video { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; }
  .landing__veil { display: none; }
  .landing__actions { position: relative; bottom: auto; }
}

.sound-toggle {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem;
  padding: .35rem .85rem;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--text-on-dark);
  background: rgba(10, 10, 12, .55);
  border: 1px solid rgba(220, 192, 138, .5);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: background-color .2s, border-color .2s;
}
.sound-toggle:hover { background: rgba(10, 10, 12, .75); border-color: var(--brass-light); }
.sound-toggle__icon {
  width: 1.1rem; height: 1.1rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}
.sound-toggle[aria-pressed="true"] .sound-toggle__icon {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z'/%3E%3Cpath d='M16 8.5a5 5 0 010 7M18.5 6a8.5 8.5 0 010 12' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

/* ---- Lobby -------------------------------------------------------------- */

.lobby {
  padding: clamp(1.25rem, 4vw, 3rem);
  padding-bottom: max(clamp(1.25rem, 4vw, 3rem), env(safe-area-inset-bottom));
  max-width: 78rem;
  margin: 0 auto;
}
.lobby__header { text-align: center; margin-bottom: clamp(1.25rem, 3vw, 2.25rem); }

.lobby__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 52rem) {
  .lobby__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .roster { width: 100%; }
}

.qr-card { margin: 0; width: auto; }
.qr-card__frame {
  /* The white quiet zone is part of the QR image itself; this frame only
     adds a thin brass border around it. */
  padding: 0;
  background: #fff;
  border: 2px solid var(--brass-dark);
  line-height: 0;
}
.qr-card__code {
  display: block;
  width: min(72vw, 52vh, 26rem);
  height: auto;
  aspect-ratio: 1;
  background: #fff;
  image-rendering: pixelated;
}
.qr-card__caption {
  margin-top: 1rem;
  font-family: var(--font-display);
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.joinlink__row { display: flex; gap: .6rem; margin-top: .35rem; }
.joinlink__row .field__input { flex: 1; min-width: 0; }
@media (max-width: 30rem) { .joinlink__row { flex-direction: column; } }

.roster__heading {
  margin: 1.75rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(220, 192, 138, .35);
  /* Body serif with lining figures: the display face's "0" looks like an "o". */
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  letter-spacing: .02em;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  color: var(--gaslight-soft);
}
.roster__empty { margin: 0; color: var(--muted-on-dark); font-style: italic; }
.roster__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .55rem;
  counter-reset: detective;
}
.roster__list li {
  counter-increment: detective;
  position: relative;
  padding: .45rem .7rem .45rem 2.6rem;
  color: var(--ink);
  background: var(--grain), linear-gradient(180deg, var(--paper), var(--paper-shade));
  border: 1px solid rgba(111, 83, 40, .6);
  border-radius: var(--radius);
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  animation: card-in .5s ease both;
}
.roster__list li::before {
  content: counter(detective, upper-roman);
  position: absolute; left: .55rem; top: 50%;
  transform: translateY(-50%);
  min-width: 1.6rem;
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--brass-dark);
  text-align: center;
}

/* ---- Waiting / problem -------------------------------------------------- */

.waiting__name { margin: 0 0 1rem; font-size: 1.2rem; font-style: italic; color: var(--ink-soft); overflow-wrap: anywhere; }
.waiting__message { margin-bottom: 1.25rem; }
.waiting__lamp {
  width: 14px; height: 14px; margin: 0 auto;
  border-radius: 50%;
  background: var(--gaslight);
  box-shadow: 0 0 18px 6px rgba(243, 199, 118, .55);
  animation: flicker 2.8s ease-in-out infinite;
}
.problem p { margin: .5rem 0 1.5rem; }

/* ---- Motion ------------------------------------------------------------- */

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, -2%, 0); } }
@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: .82; }
  50% { opacity: .95; }
  70% { opacity: .78; }
}
@keyframes gas-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

/* ---- Language: globe button and dialog ---------------------------------- */

.globe {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  color: var(--brass-light);
  background: radial-gradient(circle at 35% 30%, rgba(28, 45, 74, .95), rgba(10, 10, 12, .9));
  border: 1px solid var(--brass);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(10, 10, 12, .6), inset 0 0 0 4px rgba(220, 192, 138, .35), 0 4px 12px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.globe:hover { color: var(--gaslight-soft); border-color: var(--brass-light); }
.globe__icon {
  width: 1.45rem;
  height: 1.45rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18M4.5 7.5h15M4.5 16.5h15'/%3E%3C/svg%3E");
}

.lang-dialog {
  width: min(92vw, 22rem);
  max-height: 88vh;
  margin: auto;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 0;
  overflow: auto;
}
.lang-dialog::backdrop { background: rgba(5, 8, 14, .72); backdrop-filter: blur(2px); }
.lang-dialog__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
}
.lang-dialog__list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .45rem; }
.lang-option {
  width: 100%;
  min-height: 2.9rem;
  padding: .45rem 1rem;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 252, 244, .6);
  border: 1px solid rgba(111, 83, 40, .55);
  border-radius: var(--radius);
  cursor: pointer;
}
.lang-option:hover { background: rgba(255, 252, 244, .95); }
.lang-option[aria-current="true"] {
  background: linear-gradient(180deg, #e7cf98, #c9a463);
  border-color: var(--brass-dark);
}
.lang-option[aria-current="true"]::after { content: " ✓"; }
.lang-dialog__close { width: 100%; }

/* Long translations: buttons wrap instead of overflowing on phones. */
.plaque { white-space: normal; max-width: 100%; overflow-wrap: anywhere; hyphens: auto; }
.title, .lead, .notice, .field__label { overflow-wrap: break-word; hyphens: auto; }

/* Leave room for the globe button above top-aligned screens. */
.lobby { padding-top: max(4.25rem, clamp(1.25rem, 4vw, 3rem)); }
@media (max-width: 40rem) {
  .view--center { padding-top: 4.5rem; }
}

/* ---- Gate and join extras -------------------------------------------------- */

.gate__hint { margin: 1.25rem 0 0; font-size: 1rem; font-style: italic; color: var(--ink-soft); }
.join__intro { margin: .25rem 0 0; color: var(--ink-soft); }
.join__manual { display: grid; gap: 1.1rem; }
.field__input--code { text-transform: uppercase; letter-spacing: .2em; font-variant-numeric: lining-nums; }

/* ---- Lobby: join word and manual joining ----------------------------------- */

.joinword {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem);
  letter-spacing: .04em;
  color: var(--ink);
}
.joinword__word {
  display: inline-block;
  margin-left: .25em;
  padding: .05em .45em .1em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2em;
  letter-spacing: .08em;
  background: rgba(243, 199, 118, .28);
  border: 1px solid rgba(111, 83, 40, .55);
  border-radius: var(--radius);
}
.manual {
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(111, 83, 40, .35);
  font-family: var(--font-body);
  letter-spacing: 0;
}
.manual__intro { margin: 0 0 .4rem; font-size: 1rem; font-style: italic; color: var(--ink-soft); }
.manual__list {
  display: grid;
  grid-template-columns: max-content minmax(0, auto);
  justify-content: center;
  gap: .15rem .9rem;
  margin: 0;
  font-size: 1.1rem;
  text-align: left;
}
.manual__list dt { color: var(--ink-soft); white-space: nowrap; }
.manual__list dd { margin: 0; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: lining-nums; }
.qr-card__caption { margin-top: 1rem; }
@media (max-width: 30rem) {
  .manual__list { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .manual__list dd { margin-bottom: .35rem; }
}

.host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(220, 192, 138, .35);
}
.host-actions + .notice { margin-top: .75rem; }

/* ---- Briefing scene -------------------------------------------------------- */

.briefing { width: min(100%, 42rem); text-align: left; }
.briefing .eyebrow, .briefing .title { text-align: center; }
.briefing__badge {
  width: fit-content;
  margin: 0 auto 1rem;
  padding: .15rem .8rem;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff6ee;
  background: var(--oxblood);
  border-radius: var(--radius);
  transform: rotate(-2deg);
}
.briefing__text p { margin: 0 0 .9rem; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
.briefing__audio { margin-top: 1.5rem; }
.briefing__controls { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.briefing__audio .notice { margin-top: .75rem; }
.briefing__note { margin: 1.25rem 0 0; font-style: italic; color: var(--ink-soft); text-align: center; }
.briefing__host {
  display: grid;
  justify-items: center;
  gap: .75rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(111, 83, 40, .35);
  text-align: center;
}
.briefing__late { margin: 0; font-size: 1.05rem; color: var(--ink-soft); }

/* ---- Japanese: serif Mincho faces, no small-caps letter spacing ------------ */

:root:lang(ja) {
  --font-display: "IM Fell English SC", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
  --font-body: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
}
:root:lang(ja) .eyebrow,
:root:lang(ja) .plaque,
:root:lang(ja) .field__label,
:root:lang(ja) .briefing__badge { letter-spacing: .04em; text-transform: none; }
:root:lang(ja) body { line-height: 1.6; }
/* No synthetic italics for Japanese text. */
:root:lang(ja) .lead,
:root:lang(ja) .manual__intro,
:root:lang(ja) .roster__empty,
:root:lang(ja) .gate__hint,
:root:lang(ja) .notice--quiet,
:root:lang(ja) .briefing__note,
:root:lang(ja) .waiting__name { font-style: normal; }

/* ---- Projector: intro video ----------------------------------------------- */

.projector { display: none; }
body.is-projecting .projector {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
body.is-projecting { background: #000; }
.projector-view { position: relative; z-index: 6; min-height: 100dvh; pointer-events: none; }
.projector-panel {
  position: fixed;
  left: 50%;
  bottom: max(2rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(92vw, 40rem);
  display: grid;
  gap: 1rem;
  justify-items: center;
  pointer-events: auto;
}
.projector-panel__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ---- Desk: the opened case file ------------------------------------------- */

.desk {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1.2vh;
  padding: max(4.2rem, 2.5vh) 2.2vw 1.5vh;
  /* Old dark wood: long grain, a few darker boards, warm lamp light from the left. */
  background:
    radial-gradient(ellipse 70% 60% at 18% 12%, rgba(243, 199, 118, .16), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 23vw),
    repeating-linear-gradient(90deg, rgba(255, 220, 170, .025) 0 1px, transparent 1px 7px, rgba(0, 0, 0, .05) 7px 9px, transparent 9px 17px),
    linear-gradient(90deg, #2a170d, #3b2213 18%, #301b0f 36%, #3d2414 57%, #2c180d 78%, #39200f);
  box-shadow: inset 0 0 18vh rgba(0, 0, 0, .75);
  animation: none;
}

/* Open manila folder: two halves with a centre fold. */
.desk__folder {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 175vh);
  padding: 2vh 2.4vw 2.6vh;
  color: var(--ink);
  background:
    var(--grain),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(111, 83, 40, .35) 50%, transparent calc(50% + 1px)),
    linear-gradient(90deg, rgba(0, 0, 0, .06), transparent 12%, transparent 46%, rgba(0, 0, 0, .1) 50%, transparent 54%, transparent 88%, rgba(0, 0, 0, .06)),
    linear-gradient(180deg, #dcc596, #cfb27a);
  border-radius: 6px;
  box-shadow: 0 2.5vh 6vh rgba(0, 0, 0, .65), 0 0 0 1px rgba(80, 55, 20, .45);
}
.desk__folder::before { /* folder tab */
  content: "";
  position: absolute;
  top: -2.2vh;
  left: 6%;
  width: 16%;
  height: 2.4vh;
  background: linear-gradient(180deg, #e2cd9f, #dcc596);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -1px 0 rgba(80, 55, 20, .35);
}
.desk__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2vw;
  margin-bottom: 1.6vh;
  padding-bottom: .8vh;
  border-bottom: 2px solid rgba(111, 83, 40, .45);
}
.desk__case {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.9rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.desk__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 3.2rem);
  letter-spacing: .03em;
}

.desk__photos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2vw;
  align-items: start;
}
.desk-photo {
  --tilt: 0deg;
  position: relative;
  display: grid;
  gap: 1.4vh;
  opacity: 0;
  transform: translateY(2vh) rotate(var(--tilt)) scale(.96);
  transition: opacity .9s ease, transform .9s ease, filter .6s ease;
}
.desk-photo:nth-child(even) { margin-top: 1.8vh; }
.desk-photo.is-shown { opacity: 1; transform: rotate(var(--tilt)); }
/* While one child is presented, the others step back a little. */
.desk__photos:has(.is-current) .desk-photo.is-shown:not(.is-current) { filter: brightness(.82) saturate(.9); }
.desk-photo.is-current { transform: rotate(0deg) scale(1.04); z-index: 2; }
.desk-photo.is-current .desk-photo__print { box-shadow: 0 1.6vh 3.5vh rgba(0, 0, 0, .55), 0 0 0 3px rgba(243, 199, 118, .85), 0 0 5vh rgba(243, 199, 118, .45); }

/* A vintage print with a white border and a soft shadow. */
.desk-photo__print {
  justify-self: center;
  width: fit-content;
  margin: 0;
  padding: .6vw .6vw 1.2vw;
  background: #f3ede0;
  box-shadow: 0 1.2vh 2.6vh rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .12);
  transition: box-shadow .6s ease;
}
.desk-photo__print img {
  display: block;
  width: auto;
  height: 34vh;
  max-width: 100%;
  aspect-ratio: 1122 / 1402;
  object-fit: cover;
  filter: sepia(.12) contrast(1.02);
}

/* Index card: name in script, facts in a clear serif. */
.desk-photo__card {
  padding: 1.2vh 1vw 1.4vh;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(1.3em - 1px), rgba(70, 110, 160, .16) calc(1.3em - 1px) 1.3em),
    #f8f2e2;
  background-position: 0 3.2em;
  border-top: 3px solid rgba(160, 50, 40, .55);
  box-shadow: 0 .8vh 1.8vh rgba(0, 0, 0, .4);
  font-size: clamp(1rem, 1.22vw, 1.65rem);
  line-height: 1.26;
}
.desk-photo__name {
  margin: 0 0 .5vh;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.75vw, 2.3rem);
  line-height: 1.35;
  color: #1d1408;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desk-photo__facts { margin: 0; display: grid; gap: .25em; }
.desk-photo__facts dt {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78em;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.desk-photo__facts dd { margin: 0 0 .35em; font-family: var(--font-body); font-weight: 600; color: var(--ink); }

.desk__controls {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  align-items: center;
}
.desk__controls .notice { flex-basis: 100%; max-width: 40rem; text-align: center; }

/* 4:3 and 16:10 projectors: 2 × 2, each print with its index card beside it. */
@media (max-aspect-ratio: 16/11) and (min-width: 52.01rem) {
  .desk__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.4vh 3vw; }
  .desk-photo { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.6vw; }
  .desk-photo:nth-child(even) { margin-top: 0; }
  .desk-photo__print img { height: 31vh; }
  .desk-photo__card { font-size: clamp(1rem, 1.75vw, 1.7rem); }
  .desk-photo__name { font-size: clamp(1.25rem, 2.5vw, 2.4rem); white-space: normal; }
}

/* Low projector resolutions (720p / 768p): a little more compact. */
@media (max-height: 820px) and (min-width: 52.01rem) {
  .desk { padding-top: 3.6rem; gap: .8vh; }
  .desk-photo__print img { height: 30vh; }
  .desk__header { margin-bottom: 1.2vh; }
}
@media (max-height: 820px) and (max-aspect-ratio: 16/11) and (min-width: 52.01rem) {
  .desk-photo__print img { height: 27vh; }
}
@media (max-height: 820px) and (min-width: 52.01rem) {
  .desk__photos[data-count="3"] .desk-photo__print img { height: 28vh; }
  .desk__photos[data-count="3"] .desk-photo__card { font-size: clamp(.95rem, 1.15vw, 1.4rem); }
}

/* Narrow screens (phone or small window used by the game leader): 2 × 2, scrolling. */
@media (max-width: 52rem) {
  .desk { padding-top: 4.5rem; }
  .desk__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4vw; }
  .desk-photo__print { width: auto; }
  .desk-photo__print img { width: 100%; height: auto; max-height: none; }
  .desk-photo__card { font-size: clamp(.95rem, 2.4vw, 1.3rem); }
  .desk-photo__name { font-size: clamp(1.2rem, 3.6vw, 2rem); white-space: normal; }
}

/* ---- Phones: scene note, case-files button and panel ------------------------ */

.scene-note p { margin: .5rem 0 1.25rem; }
body.has-casefile-button .view { padding-bottom: calc(var(--casefile-space, 5.5rem) + 1rem); }
/* An opaque dock behind the case-files button: content scrolls away beneath it
   instead of being partly hidden by a floating button while reading. */
body.has-casefile-button:not(.has-casefile-open)::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  height: calc(var(--casefile-space, 5.5rem) + .4rem);
  background: linear-gradient(to top, var(--midnight) 78%, rgba(11, 19, 34, 0));
  pointer-events: none;
}

.casefile-button {
  white-space: nowrap;
  max-width: calc(100vw - 1.5rem);
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 3.4rem;
  padding: .6rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .06em;
  color: #23170a;
  background: linear-gradient(180deg, #e7cf98 0%, #c9a463 45%, #a9823f 100%);
  border: 1px solid var(--brass-dark);
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px rgba(255, 238, 196, .28), 0 3px 0 #4f3a1b, 0 8px 22px rgba(0, 0, 0, .55);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.casefile-button:focus-visible { box-shadow: inset 0 0 0 3px rgba(255, 238, 196, .28), 0 3px 0 #4f3a1b, var(--focus-ring); }
.casefile-button__icon {
  width: 1.5rem;
  height: 1.5rem;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M3 6.5h6l2 2h10v10.5H3z'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}
.casefile-button__badge {
  padding: .05rem .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: 0;
  color: #fff6ee;
  background: var(--oxblood);
  border-radius: 999px;
}
body.has-casefile-open .casefile-button { display: none; }

.casefile-panel {
  position: fixed;
  inset: 0;
  z-index: 15; /* below the globe button, so the language can be changed here */
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  background: rgba(5, 8, 14, .8);
  animation: fade-in .25s ease both;
}
.casefile-panel__sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr); /* the body scrolls, not the page */
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 44rem);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  margin: 0 auto;
  color: var(--ink);
  background: var(--grain), linear-gradient(180deg, var(--paper), var(--paper-shade));
  box-shadow: 0 0 40px rgba(0, 0, 0, .6);
}
.casefile-panel__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: max(.9rem, env(safe-area-inset-top)) 1rem .9rem 4.6rem;
  border-bottom: 1px solid rgba(111, 83, 40, .45);
}
.casefile-panel__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  outline: none;
}
.casefile-panel__back {
  min-height: 2.75rem;
  padding: .3rem .8rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(111, 83, 40, .6);
  border-radius: var(--radius);
  cursor: pointer;
}
.casefile-panel__back { white-space: nowrap; flex: none; }
.casefile-panel__back::before { content: "‹ "; }
.casefile-panel__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  font-size: 1.3rem;
  color: var(--gaslight-soft);
  background: radial-gradient(circle at 35% 30%, rgba(28, 45, 74, .95), rgba(10, 10, 12, .9));
  border: 1px solid var(--brass);
  border-radius: 50%;
  cursor: pointer;
}
.casefile-panel__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.1rem max(2rem, env(safe-area-inset-bottom));
}

.cf-section { margin-bottom: 1.6rem; }
.cf-section__title {
  margin: 0 0 .6rem;
  padding-bottom: .3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(111, 83, 40, .35);
}
.cf-empty { margin: 0; font-style: italic; color: var(--ink-soft); }
.cf-text p { margin: 0 0 .7rem; font-size: 1.15rem; font-weight: 600; line-height: 1.5; }
.cf-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.cf-person {
  display: grid;
  gap: .4rem;
  width: 100%;
  padding: .45rem .45rem .6rem;
  font: inherit;
  text-align: center;
  color: var(--ink);
  background: #f3ede0;
  border: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .1);
  cursor: pointer;
}
.cf-person__photo { display: block; width: 100%; aspect-ratio: 1122 / 1402; object-fit: cover; }
.cf-person__name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.cf-detail__print { margin: 0 auto 1rem; padding: .6rem .6rem 1.2rem; max-width: 24rem; background: #f3ede0; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.cf-detail__print { box-sizing: border-box; width: 100%; }
.cf-detail__print img { display: block; width: 100%; max-width: 100%; height: auto; }
.cf-detail__name { margin: 0 0 .6rem; font-family: var(--font-script); font-weight: 400; font-size: 1.9rem; line-height: 1.4; text-align: center; }
.cf-detail__facts { margin: 0; display: grid; gap: .2rem; }
.cf-detail__facts dt { font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.cf-detail__facts dd { margin: 0 0 .7rem; font-size: 1.2rem; font-weight: 600; line-height: 1.45; }

/* Documents (case report, suspect briefing) and observation notes. */
.cf-document {
  display: grid;
  gap: .25rem;
  width: 100%;
  margin-top: .8rem;
  padding: .75rem .9rem .8rem 1.1rem;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(160, 50, 40, .5) 0 2px, transparent 2px) 0 0 / 100% 100% no-repeat,
    #f8f2e2;
  border: 1px solid rgba(111, 83, 40, .45);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
  cursor: pointer;
}
.cf-document__title { font-family: var(--font-display); font-size: 1.2rem; }
.cf-document__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  color: var(--ink-soft);
}
.cf-detail__title { margin: 0 0 .9rem; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.cf-detail__text p { margin: 0 0 .85rem; font-size: 1.15rem; font-weight: 600; line-height: 1.5; }
.cf-note {
  margin: .4rem 0 1.2rem;
  padding: .7rem .9rem .8rem;
  background: #fbf7ea;
  border: 1px solid rgba(70, 110, 160, .35);
  border-left: 4px solid rgba(70, 110, 160, .55);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transform: rotate(-.4deg);
}
.cf-note__title {
  margin: 0 0 .3rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2f4a6b;
}
.cf-note__text { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.45; font-style: italic; }
:root:lang(ja) .cf-note__text, :root:lang(ko) .cf-note__text { font-style: normal; }
:root:lang(ja) .cf-note__title, :root:lang(ko) .cf-note__title { letter-spacing: .02em; text-transform: none; }

/* Three people on the desk (the suspects): three columns, a little larger. */
.desk__photos[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.2vw;
  width: min(100%, 150vh);
  margin-inline: auto;
}
.desk__photos[data-count="3"] .desk-photo__print img { height: 31vh; }
@media (max-height: 820px) and (min-width: 52.01rem) {
  .desk__photos[data-count="3"] .desk-photo__print img { height: 26vh; }
  .desk__photos[data-count="3"] .desk-photo:nth-child(even) { margin-top: 1.2vh; }
}
@media (max-aspect-ratio: 16/11) and (min-width: 52.01rem) {
  .desk__photos[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4vw; }
  .desk__photos[data-count="3"] .desk-photo { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .desk__photos[data-count="3"] .desk-photo:nth-child(even) { margin-top: 1.8vh; }
  .desk__photos[data-count="3"] .desk-photo__card { font-size: clamp(1rem, 1.6vw, 1.6rem); }
  .desk__photos[data-count="3"] .desk-photo__name { font-size: clamp(1.2rem, 2.2vw, 2.2rem); }
}
@media (max-width: 52rem) {
  .desk__photos[data-count="3"] { grid-template-columns: minmax(0, 1fr); width: min(100%, 26rem); }
}

/* ---- Joining: new or returning player ------------------------------------ */

.join-mode { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.join-mode__option {
  min-height: 2.9rem;
  padding: .4rem .6rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--ink);
  background: rgba(255, 252, 244, .55);
  border: 1px solid rgba(111, 83, 40, .55);
  border-radius: var(--radius);
  cursor: pointer;
}
.join-mode__option[aria-pressed="true"] {
  background: linear-gradient(180deg, #e7cf98, #c9a463);
  border-color: var(--brass-dark);
  box-shadow: inset 0 0 0 2px rgba(255, 238, 196, .35);
}
.join-mode__option[aria-pressed="true"]::before { content: "✓ "; }

/* ---- Case files button: locked during a task -------------------------------- */

.casefile-button.is-locked {
  width: min(calc(100vw - 2rem), 26rem);
  min-height: 3rem;
  padding: .45rem 1rem;
  justify-content: flex-start;
  color: #3b3328;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  background: linear-gradient(180deg, #d8cdb6, #b3a68b);
  border-color: #6d6250;
  border-radius: 10px;
}
.casefile-button.is-locked .casefile-button__icon {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='1.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  flex: none;
}
.casefile-locked-info {
  position: fixed;
  left: 50%;
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.3rem);
  transform: translateX(-50%);
  z-index: 13;
  width: min(92vw, 24rem);
  margin: 0;
  padding: .6rem .9rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  background: #f8f2e2;
  border: 1px solid rgba(111, 83, 40, .6);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  animation: fade-in .2s ease both;
}

/* ---- Task on the phone: "Sort the case files" -------------------------------- */

.task { padding: 4.2rem .75rem 1rem; }
/* Nothing hides behind the fixed case-files button (its height is measured). */
body.has-casefile-button .task { padding-bottom: calc(var(--casefile-space, 5.5rem) + 1rem); }
.task__sheet {
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 1rem .9rem 1.2rem;
  color: var(--ink);
  background: var(--grain), linear-gradient(180deg, var(--paper), var(--paper-shade));
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(36, 26, 16, .35), 0 12px 32px rgba(0, 0, 0, .5);
}
.task__header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.task__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.45rem, 1.1rem + 2vw, 2rem); line-height: 1.1; }
.task__timer { margin: 0; display: grid; justify-items: end; font-size: .85rem; color: var(--ink-soft); text-align: right; flex: none; }
.task__time { font-family: var(--font-body); font-weight: 700; font-size: 1.9rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.task__timer.is-low .task__time { color: var(--oxblood); }
.task__instruction { margin: .6rem 0 .3rem; font-size: 1.08rem; line-height: 1.4; font-weight: 600; }
.task__save { margin: 0 0 .4rem; min-height: 1.3em; font-size: .95rem; font-style: italic; color: var(--ink-soft); }
.task__save[data-state="unsaved"] { color: var(--oxblood); font-weight: 700; font-style: normal; }
.task__save[data-state="unsaved"]::before { content: "⚠ "; }
.task__subtitle { margin: .4rem 0 .4rem; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; }
.task__tray {
  position: sticky;
  top: 3.6rem; /* below the globe button */
  z-index: 3;
  margin: 0 -.9rem .6rem;
  padding: .3rem .9rem .5rem;
  background: linear-gradient(180deg, #e9dcbd, #e2d3b2);
  border-top: 1px solid rgba(111, 83, 40, .35);
  border-bottom: 1px solid rgba(111, 83, 40, .35);
}
.task__tray.is-empty .task-tray { min-height: 0; }
.task-tray { list-style: none; margin: 0; padding: 0; display: flex; gap: .6rem; min-height: 5.5rem; align-items: flex-start; }
.task-tray > li { width: calc((100% - 1.2rem) / 3.2); max-width: 7rem; }
.task-portrait {
  display: block;
  width: 100%;
  padding: .25rem .25rem .5rem;
  background: #f3ede0;
  border: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .12);
  cursor: pointer;
  touch-action: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.task-portrait[aria-pressed="true"] {
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px #1d3f6e, 0 0 0 6px var(--gaslight-soft), 0 8px 16px rgba(0, 0, 0, .35);
}
.task-photo { display: block; width: 100%; aspect-ratio: 1122 / 1402; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-select: none; }
.task-tray__return { width: auto !important; max-width: none !important; align-self: center; }
.task-return {
  min-height: 2.75rem;
  padding: .35rem .8rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 252, 244, .7);
  border: 1px dashed rgba(111, 83, 40, .7);
  border-radius: var(--radius);
  cursor: pointer;
}
.task__hint { margin: .35rem 0 0; min-height: 1.2em; font-weight: 700; color: #1d3f6e; }
.task__done { margin: .2rem 0 .6rem; padding: .5rem .7rem; font-style: normal; font-weight: 700; color: var(--ink); background: rgba(243, 199, 118, .25); border: 1px solid rgba(111, 83, 40, .45); border-radius: var(--radius); }

.task__targets { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.task-target {
  display: grid;
  grid-template-columns: minmax(5.5rem, 30%) minmax(0, 1fr);
  grid-template-areas: "slot card" "mark mark" "yours yours";
  gap: .2rem .7rem;
  padding: .6rem;
  background: repeating-linear-gradient(180deg, transparent 0 calc(1.35em - 1px), rgba(70, 110, 160, .14) calc(1.35em - 1px) 1.35em), #f8f2e2;
  border: 2px solid rgba(111, 83, 40, .35);
  border-top: 3px solid rgba(160, 50, 40, .5);
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}
.task-target__card { grid-area: card; min-width: 0; }
.task-target__name { margin: 0 0 .2rem; font-family: var(--font-script); font-weight: 400; font-size: 1.35rem; line-height: 1.35; }
.task-target__facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; font-size: 1rem; line-height: 1.28; }
.task-target__facts dt { margin-top: .3rem; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.task-target__facts dd { margin: 0; font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 34rem) {
  .task-target__facts { grid-template-columns: auto minmax(0, 1fr); gap: .1rem .6rem; }
  .task-target__facts dt { margin-top: 0; padding-top: .15rem; }
}
.task-slot {
  grid-area: slot;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1122 / 1402;
  align-self: start;
  padding: .2rem;
  font: inherit;
  font-size: .85rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 252, 244, .6);
  border: 2px dashed rgba(111, 83, 40, .55);
  border-radius: 2px;
  cursor: pointer;
  touch-action: pan-y; /* the list of case files must stay scrollable */
}
.task-slot.is-filled { padding: .2rem .2rem .45rem; background: #f3ede0; border: 0; box-shadow: 0 3px 8px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .12); }
.task-slot.is-target:not(.is-selected) { border-color: #1d3f6e; box-shadow: 0 0 0 2px rgba(29, 63, 110, .35); }
.task-slot.is-selected { box-shadow: 0 0 0 3px #1d3f6e, 0 0 0 6px var(--gaslight-soft); }
.task-slot:disabled { cursor: default; }
.task-slot__empty { padding: .2rem; font-weight: 600; }
.task-ghost { position: fixed; z-index: 40; width: 5rem; pointer-events: none; transform: translate(-50%, -60%) rotate(-3deg); box-shadow: 0 10px 22px rgba(0, 0, 0, .45); opacity: .92; }

/* Evaluation: icon and words, colour only as an extra cue. */
.task-mark { grid-area: mark; display: flex; align-items: center; gap: .45rem; margin: .35rem 0 0; font-weight: 700; font-size: 1.05rem; }
.task-mark__icon { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; color: #fff; font-size: 1.05rem; background: #6d6250; }
.task-target.is-correct { border-color: #2f6b3a; box-shadow: 0 0 0 2px #2f6b3a; }
.task-target.is-correct .task-mark__icon { background: #2f6b3a; }
.task-target.is-correct .task-mark { color: #1f4d28; }
.task-target.is-wrong { border-color: #9b2b22; box-shadow: 0 0 0 2px #9b2b22; }
.task-target.is-wrong .task-mark__icon { background: #9b2b22; }
.task-target.is-wrong .task-mark { color: #7c1f18; }
.task-target.is-unanswered { border-style: dashed; border-color: #6d6250; }
.task-yours { grid-area: yours; display: flex; align-items: center; gap: .5rem; margin-top: .3rem; font-size: .95rem; font-weight: 600; color: #7c1f18; }
.task-yours__photo { width: 2.6rem; aspect-ratio: 1122 / 1402; object-fit: cover; filter: grayscale(1) contrast(.9); outline: 2px solid #9b2b22; position: relative; }
.task-yours__label::before { content: "✗ "; }
.task__result { margin: .3rem 0 .7rem; padding: .6rem .8rem; background: rgba(255, 252, 244, .7); border: 1px solid rgba(111, 83, 40, .5); border-radius: var(--radius); }
.task__result-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.task__score { margin: .2rem 0 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: lining-nums; }
.task__score:empty { display: none; }
.task__early { margin-top: 0; font-size: .98rem; font-weight: 500; font-style: italic; }
.task__finish { margin: 1rem 0 0; text-align: center; }
.task__finish .button { min-width: 12rem; min-height: 3rem; font-size: 1.15rem; }
.task__finish .button:disabled { opacity: .55; cursor: not-allowed; }
.task__waiting { color: var(--ink); font-style: normal; margin: .4rem 0 .8rem; background: rgba(243, 199, 118, .3); border: 1px solid rgba(111, 83, 40, .5); border-radius: var(--radius); padding: .7rem .9rem; text-align: center; }
.task__waiting p { margin: .2rem 0; }
.task__waiting strong { font-size: 1.15rem; color: var(--ink); }
.task.is-handed-in .task-slot { cursor: default; }
.task-target__status { font-weight: 800; color: #7a1f1f; letter-spacing: .04em; }
.task__ready, .task__nosc { margin: 1rem 0 0; padding: .7rem .9rem; font-weight: 700; font-size: 1.15rem; text-align: center; background: rgba(243, 199, 118, .3); border: 1px solid rgba(111, 83, 40, .5); border-radius: var(--radius); }
.task__nosc { font-weight: 600; font-size: 1rem; background: transparent; }
.task.is-closed .task__instruction { opacity: .7; }

/* ---- Task on the projector -------------------------------------------------- */

.taskhost { width: min(92vw, 64rem); text-align: center; }
.taskhost .title { font-size: clamp(2.4rem, 1.5rem + 3vw, 4.4rem); }
.taskhost__instruction { margin: .6rem auto 1rem; max-width: 46rem; font-size: clamp(1.2rem, .9rem + 1.1vw, 1.9rem); font-weight: 600; line-height: 1.35; }
.taskhost__time { margin: .2rem 0; font-family: var(--font-body); font-weight: 700; font-size: clamp(3.5rem, 12vh, 8rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.taskhost__progress { margin: .4rem 0 0; font-size: clamp(1.15rem, .9rem + 1vw, 1.8rem); font-weight: 700; font-variant-numeric: lining-nums; }
.taskhost__ended { margin: 1rem 0 0; font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem); font-style: italic; }
.taskhost__actions { margin-top: 1.4rem; }
.taskhost.is-ended .taskhost__time, .is-ended .taskhost__time { opacity: .5; }
/* After the end the team formation needs the room: a compact header. */
.is-ended .taskhost__instruction { display: none; }
.is-ended .taskhost__time { font-size: clamp(2rem, 7vh, 4rem); }
.is-ended .taskhost .title { font-size: clamp(1.8rem, 1.2rem + 2vw, 3.2rem); }

@media (prefers-reduced-motion: reduce) {
  .task-photo { transition: none !important; }
}

/* ---- Instruction before the case (projector) ------------------------------- */

.instruction {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1.5vh;
  padding: max(4.2rem, 3vh) 4vw 2vh;
  background:
    radial-gradient(ellipse 60% 70% at 22% 40%, rgba(243, 199, 118, .14), transparent 70%),
    radial-gradient(ellipse at 50% 0%, var(--navy-soft) 0%, var(--midnight) 60%, var(--soot) 100%);
  animation: none;
}
.instruction__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5vw;
  min-height: 0;
}
.phone-frame { margin: 0; display: grid; justify-items: center; gap: 1.4vh; }
.phone-frame__device {
  position: relative;
  height: min(72vh, 46rem);
  aspect-ratio: 9 / 19.5;
  padding: 1.4vh .8vh;
  border-radius: 3.2vh;
  background: linear-gradient(160deg, #3a3d44, #15161a 60%);
  box-shadow: 0 0 0 2px #5b5f68, 0 2.5vh 6vh rgba(0, 0, 0, .7), 0 0 8vh rgba(243, 199, 118, .12);
}
.phone-frame__notch {
  position: absolute; top: 1.9vh; left: 50%; z-index: 2;
  width: 22%; height: 1.4vh; transform: translateX(-50%);
  border-radius: 1vh; background: #0b0c0f;
}
.phone-frame__screen {
  height: 100%;
  overflow: hidden;
  border-radius: 2.4vh;
  background: var(--paper);
  display: grid;
  place-items: center;
}
.phone-frame__image { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; pointer-events: none; user-select: none; }
.phone-frame__missing { margin: 1rem; color: var(--ink); font-style: italic; text-align: center; }
.phone-frame__label {
  padding: .25em 1.1em;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vh, 1.4rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass-light);
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--brass-dark);
}
.instruction__notes { max-width: 62rem; }
.instruction__notes .eyebrow { margin-bottom: .6vh; }
.instruction .eyebrow, .teamsboard__panel .eyebrow { color: var(--brass-light); }
.instruction__title {
  margin: 0 0 3vh;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 6vh, 4.6rem);
  color: var(--gaslight-soft);
  letter-spacing: .03em;
}
.hints { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2vh; }
.hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.6vw;
  padding: 1vh 1.4vw;
  font-size: clamp(1.15rem, 3.2vh, 2.3rem);
  font-weight: 600;
  line-height: 1.25;
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  opacity: .5;
  transition: opacity .6s ease, background-color .6s ease, border-color .6s ease;
}
.hint.is-seen { opacity: 1; }
.hint.is-current { opacity: 1; background: rgba(243, 199, 118, .14); border-left-color: var(--gaslight); }
.hint__icon {
  width: clamp(1.6rem, 4.4vh, 3rem);
  height: clamp(1.6rem, 4.4vh, 3rem);
  fill: none;
  stroke: var(--brass-light);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hint.is-current .hint__icon { stroke: var(--gaslight); }
.instruction__controls { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; align-items: center; }
.instruction__controls .notice { flex-basis: 100%; text-align: center; }

/* Small or portrait screens: phone above the hints. */
@media (max-aspect-ratio: 1/1), (max-width: 52rem) {
  .instruction__stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 3vh; }
  .phone-frame__device { height: min(48vh, 30rem); }
  .hint { font-size: clamp(1.05rem, 2.4vh, 1.5rem); }
}

/* ---- Instruction on the phones -------------------------------------------- */

.guide { display: grid; justify-items: center; padding: 4.5rem 1rem max(1.5rem, env(safe-area-inset-bottom)); }
.guide__card { width: min(100%, 36rem); }
.guide__lead { margin: .2rem 0 1rem; font-style: italic; color: var(--ink-soft); }
.hints--phone { gap: .35rem; }
.hint--compact {
  opacity: 1;
  gap: .8rem;
  padding: .45rem .4rem;
  font-size: 1.08rem;
  color: var(--ink);
  border-left: 0;
  border-bottom: 1px dashed rgba(111, 83, 40, .35);
}
.hint--compact .hint__icon { width: 1.6rem; height: 1.6rem; stroke: var(--brass-dark); }
.guide__full { margin-top: 1rem; }
.guide__full summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: .4rem 0; }
.guide__text p { margin: .5rem 0; }

/* ---- After the task: forming the teams ------------------------------------ */

.taskhost__teams { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(111, 83, 40, .4); }
.taskhost__connected { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 1rem + 1vw, 2rem); }
.taskhost__people { list-style: none; margin: 0 auto 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .6rem; max-width: 52rem; }
.taskhost__people li { padding: .15rem .7rem; font-weight: 700; background: rgba(243, 199, 118, .25); border: 1px solid rgba(111, 83, 40, .4); border-radius: 999px; }
.taskhost__teams .notice { margin: 0 auto 1rem; max-width: 40rem; }

/* ---- Detective teams with the London map (projector) ---------------------- */

.teamsboard {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(15rem, 20vw, 21rem);
  gap: 1vw;
  padding: 1.6vh 1.2vw;
  overflow: hidden;
  /* the investigation wall: dark cork in lamplight */
  background:
    radial-gradient(ellipse 70% 60% at 35% 30%, rgba(243, 199, 118, .14), transparent 70%),
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, .18) 0 1px, transparent 1.5px) 0 0 / 9px 9px,
    radial-gradient(circle at 70% 60%, rgba(255, 220, 160, .05) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
    linear-gradient(160deg, #4a3320, #2f2014 70%, #24180e);
  box-shadow: inset 0 0 16vh rgba(0, 0, 0, .7);
  animation: none;
}
.teamsboard__map { position: relative; min-width: 0; min-height: 0; display: grid; }
.map {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--grain), radial-gradient(ellipse at 40% 35%, #efe3c4, #dccaa2 85%);
  box-shadow: 0 1.6vh 4vh rgba(0, 0, 0, .6), 0 0 0 1px rgba(80, 55, 20, .5);
  overflow: hidden;
  touch-action: none;
}
.map::after { /* pins in the corners */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 1.2rem 1.2rem, #b8312a 0 .42rem, #6e1a14 .45rem, transparent .55rem),
    radial-gradient(circle at calc(100% - 1.2rem) 1.2rem, #b8312a 0 .42rem, #6e1a14 .45rem, transparent .55rem),
    radial-gradient(circle at 1.2rem calc(100% - 1.2rem), #b8312a 0 .42rem, #6e1a14 .45rem, transparent .55rem),
    radial-gradient(circle at calc(100% - 1.2rem) calc(100% - 1.2rem), #b8312a 0 .42rem, #6e1a14 .45rem, transparent .55rem);
}


.map-tools { position: absolute; top: .8rem; right: .8rem; z-index: 3; display: flex; gap: .4rem; }
.map-tools__button {
  min-width: 2.6rem; height: 2.6rem; padding: 0 .7rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; line-height: 1;
  color: var(--ink); background: rgba(244, 234, 210, .92);
  border: 1px solid var(--brass-dark); border-radius: var(--radius); cursor: pointer;
}
.map-tools__button--wide { font-size: 1rem; }
.map-tools__button:hover { background: #fff6dc; }

.map-info {
  text-align: left;
  position: absolute; left: .8rem; bottom: .8rem; z-index: 3;
  width: min(25rem, 46%);
  max-height: calc(100% - 1.6rem);
  overflow: auto;
  padding: 1rem 1.1rem;
  font-size: 1rem;
}
.map-info__close { position: absolute; top: .4rem; right: .4rem; width: 2.2rem; height: 2.2rem; border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.map-info__name { margin: .1rem 2rem .3rem 0; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: var(--ink); }
.map-info__text { margin: 0 0 .4rem; color: var(--ink); }
.map-info__note { margin: 0 0 .7rem; font-size: .92rem; font-style: italic; color: var(--ink-soft); }
.map-info__suspect { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .8rem; padding-top: .7rem; border-top: 1px solid rgba(111, 83, 40, .4); color: var(--ink); }
.map-info__portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 3px solid #f4ead2; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.map-info__suspectname { margin: 0 0 .3rem; font-size: 1.15rem; }
.map-info__fields { margin: 0; font-size: .9rem; }
.map-info__fields dt { font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.map-info__fields dd { margin: 0 0 .3rem; font-weight: 600; }

.teamsboard__panel { position: relative; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .6vh; padding-top: .2rem; }
.teamsboard__body { min-height: 0; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: .6vh; }
.teamsboard__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3.6vh, 2.6rem); color: var(--gaslight-soft); }
.teamsboard__legend { margin: 0; font-size: clamp(.8rem, 1.6vh, .98rem); font-style: italic; color: var(--muted-on-dark); }
.teamcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1vh; align-content: start; overflow: auto; }
.teamcard {
  --team: var(--brass);
  padding: 1vh .9rem 1.1vh;
  color: var(--ink);
  background: var(--grain), linear-gradient(180deg, #efe5cf, #e2d3b2);
  border-left: .45rem solid var(--team);
  border-radius: var(--radius);
  box-shadow: 0 .6vh 1.6vh rgba(0, 0, 0, .45);
}
.teamcard__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .55rem; }
.teamcard__symbol { grid-row: span 2; display: grid; }
.team-symbol { width: 1.5rem; height: 1.5rem; stroke: #f4ead2; stroke-width: 1.6; }
.teamcard__no { font-family: var(--font-display); font-size: clamp(.8rem, 1.7vh, 1.05rem); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.teamcard__suspect { font-weight: 700; font-size: clamp(1.05rem, 2.5vh, 1.45rem); line-height: 1.15; }
.teamcard__state { margin: .4vh 0; font-size: clamp(.9rem, 1.9vh, 1.1rem); font-weight: 700; color: var(--ink-soft); }
.teamcard.is-complete .teamcard__state { color: #2f5a2a; }
.teamcard.is-complete .teamcard__state::before { content: "✓ "; }
.teamcard__members { list-style: none; margin: 0 0 .6vh; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .3rem; font-size: clamp(.8rem, 1.75vh, 1.02rem); }
/* Projector: members as compact chips; the state is a mark (text stays for screen readers). */
.teamcard .member { display: inline-flex; gap: .3em; padding: .05em .55em; border: 1px solid rgba(111, 83, 40, .35); border-radius: 999px; background: rgba(255, 250, 235, .6); }
.teamcard .member__state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.teamcard .member--ready { background: rgba(120, 160, 100, .28); border-color: rgba(47, 90, 42, .55); }
.teamcard .member--ready .member__name::after { content: " ✓"; color: #2f5a2a; }
.teamcard .member--waiting .member__name::after { content: " …"; color: var(--ink-soft); }
.teamcard__empty { font-style: italic; color: var(--ink-soft); }
.member { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.member__name { font-weight: 700; overflow-wrap: anywhere; }
.member__state { flex: none; font-size: .85em; font-style: italic; }
.member--ready .member__state { color: #2f5a2a; font-style: normal; font-weight: 700; }
.member--ready .member__state::before { content: "✓ "; }
.member--offline { opacity: .6; }
.member--offline .member__name { text-decoration: line-through; text-decoration-thickness: 1px; }
.member__you { font-weight: 600; font-style: italic; color: var(--ink-soft); }
.teamsboard__allready { margin: 0; padding: .5rem .8rem; font-size: clamp(.95rem, 2vh, 1.2rem); font-weight: 700; color: var(--ink); background: var(--gaslight-soft); border-radius: var(--radius); text-align: center; }
.teamsboard__controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.teamsboard__controls .plaque { min-width: 0; flex: 1 1 auto; }
.teamsboard__controls .notice { flex-basis: 100%; margin: 0; }

/* 4:3 and narrower projectors: a slimmer panel. */
@media (max-aspect-ratio: 3/2) {
  .teamsboard { grid-template-columns: minmax(0, 1fr) clamp(13rem, 24vw, 17rem); }
}
/* Portrait / small screens: map on top, panel below. */
@media (max-aspect-ratio: 1/1), (max-width: 46rem) {
  .teamsboard { height: auto; min-height: 100dvh; grid-template-columns: minmax(0, 1fr); grid-template-rows: 62vh auto; overflow: visible; padding-top: 4.2rem; }
  .teamsboard__panel { padding-top: 0; }
  .map-info { width: calc(100% - 1.6rem); max-height: 60%; }
}

/* ---- The own team on the phone ------------------------------------------- */

.myteam-view { display: grid; justify-items: center; padding: 4.5rem 1rem max(1.5rem, env(safe-area-inset-bottom)); }
.myteam { --team: var(--brass); width: min(100%, 32rem); border-top: .5rem solid var(--team); }
.myteam__heading { margin: 0 0 .3rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem); color: var(--ink); }
.myteam__forming { font-style: italic; color: var(--ink-soft); }
.myteam__no { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.myteam__no .team-symbol { width: 1.6rem; height: 1.6rem; }
.myteam__suspect { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: 1rem; margin: 0 0 1rem; }
.myteam__portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 4px solid #f4ead2; outline: 3px solid var(--team); box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.myteam__label { display: block; font-family: var(--font-display); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.myteam__suspectname { display: block; font-size: 1.45rem; line-height: 1.15; color: var(--ink); }
.myteam__table {
  display: flex; align-items: baseline; justify-content: center; gap: .6rem;
  margin: 0 0 .8rem; padding: .5rem 1rem;
  font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase;
  color: #23170a; background: linear-gradient(180deg, #e7cf98 0%, #c9a463 45%, #a9823f 100%);
  border: 1px solid var(--brass-dark); border-radius: var(--radius);
}
.myteam__table strong { font-family: var(--font-body); font-size: 3.4rem; line-height: 1; letter-spacing: 0; font-variant-numeric: lining-nums; }
.myteam__go { margin: 0 0 1rem; font-weight: 700; color: var(--ink); }
.myteam__subtitle { margin: 0 0 .3rem; font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.myteam__members { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .25rem; color: var(--ink); }
.myteam__members .member { padding: .3rem .5rem; background: rgba(255, 250, 235, .55); border-radius: var(--radius); }
.myteam__discuss { margin: 0 0 1rem; color: var(--ink); font-style: italic; }
.myteam .plaque { width: 100%; }
.myteam__waiting { margin: 0; padding: .8rem 1rem; text-align: center; font-weight: 700; color: var(--ink); background: rgba(243, 199, 118, .35); border: 1px solid rgba(111, 83, 40, .5); border-radius: var(--radius); }
@media (max-width: 22rem) {
  .myteam__suspect { grid-template-columns: 5rem minmax(0, 1fr); }
  .myteam__table strong { font-size: 2.8rem; }
}

:root:lang(ko) .myteam__label, :root:lang(ko) .myteam__no, :root:lang(ko) .myteam__table, :root:lang(ko) .teamcard__no,
:root:lang(ko) .myteam__subtitle, :root:lang(ko) .map-info__fields dt, :root:lang(ko) .phone-frame__label,
:root:lang(ja) .myteam__label, :root:lang(ja) .myteam__no, :root:lang(ja) .myteam__table, :root:lang(ja) .teamcard__no,
:root:lang(ja) .myteam__subtitle, :root:lang(ja) .map-info__fields dt, :root:lang(ja) .phone-frame__label { letter-spacing: .02em; text-transform: none; }
:root:lang(ko) .guide__lead, :root:lang(ko) .myteam__discuss, :root:lang(ko) .myteam__forming, :root:lang(ja) .guide__lead, :root:lang(ja) .myteam__discuss { font-style: normal; }


/* ---- The game leader's bar (all host screens) ------------------------------ */

:root { --hostbar-h: 4.3rem; }
.hostbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  height: var(--hostbar-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0 max(1rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(1rem, env(safe-area-inset-left));
  background: linear-gradient(180deg, #1b1712, #110e0b);
  border-top: 1px solid var(--brass-dark);
  box-shadow: 0 -.4rem 1.2rem rgba(0, 0, 0, .45);
}
.hostbar__side { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.hostbar__side--left { justify-self: start; }
.hostbar__side--right { justify-self: end; }
.hostbar__center { display: flex; align-items: center; gap: .6rem; justify-self: center; }
.hb-btn {
  min-height: 2.6rem;
  padding: .35rem .95rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .05em;
  color: var(--brass-light);
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(180, 143, 85, .7);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.hb-btn:hover { color: var(--gaslight-soft); border-color: var(--brass-light); }
.hb-btn:disabled { opacity: .5; cursor: default; }
.hb-btn--quiet { min-height: 2.1rem; padding: .2rem .7rem; font-size: .82rem; color: var(--muted-on-dark); border-color: rgba(201, 188, 162, .35); }
.hb-btn--test { min-height: 2.1rem; padding: .2rem .7rem; font-size: .82rem; color: #f3c776; border-style: dashed; }
.hostbar__test { padding: .15rem .6rem; font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #1b1712; background: #f3c776; border-radius: 999px; }
.hostbar__primary { min-height: 3rem; min-width: 0; padding: .45rem 1.4rem; font-size: 1.12rem; }
.hostbar__error {
  position: absolute;
  right: 1rem; bottom: calc(100% + .5rem);
  max-width: min(40rem, 90vw);
  margin: 0;
  padding: .5rem .8rem;
  color: #fff3ea;
  background: #6d2019;
  border: 1px solid #b4453a;
  border-radius: var(--radius);
}
body.has-hostbar .view { min-height: calc(100dvh - var(--hostbar-h)); padding-bottom: calc(var(--hostbar-h) + 1rem); }
body.has-hostbar .instruction,
body.has-hostbar .desk { min-height: 0; height: calc(100dvh - var(--hostbar-h)); padding-bottom: 1.5vh; overflow: hidden; }
body.has-hostbar .teamsboard { height: calc(100dvh - var(--hostbar-h)); padding-bottom: 1.2vh; }
body.has-hostbar.is-projecting .projector { bottom: var(--hostbar-h); height: calc(100% - var(--hostbar-h)); }
body.has-hostbar .projector-view { min-height: calc(100dvh - var(--hostbar-h)); }
.lobby .host-actions { display: none; }

.confirm { max-width: min(30rem, 92vw); padding: 1.4rem 1.5rem; color: var(--ink); }
.confirm::backdrop { background: rgba(5, 5, 8, .6); }
.confirm__title { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.confirm__text { margin: 0 0 1.1rem; }
.confirm__actions { display: flex; gap: .7rem; justify-content: flex-end; flex-wrap: wrap; }
.confirm__danger { --plaque-face: linear-gradient(180deg, #c4675b, #8e2b22); color: #fff3ea; text-shadow: none; }

/* ---- Solo test mode -------------------------------------------------------- */

.testmode { margin: 1rem 0 .4rem; padding: .7rem .8rem; border: 1px dashed rgba(243, 199, 118, .55); border-radius: var(--radius); }
.testmode__switch { display: flex; align-items: center; gap: .6rem; font-weight: 700; cursor: pointer; }
.testmode__switch input { width: 1.25rem; height: 1.25rem; accent-color: #c9a463; }
.testmode__hint { margin: .3rem 0 0; font-size: .9rem; font-style: italic; color: var(--muted-on-dark); }
.roster__list li.is-com, .taskhost__people li.is-com { opacity: .85; border-style: dashed; }
.roster__list li.is-com::after { content: " ⚙"; color: #f3c776; }

.testtools {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--hostbar-h) + .7rem);
  z-index: 40;
  width: min(25rem, calc(100vw - 2rem));
  max-height: calc(100dvh - var(--hostbar-h) - 4.5rem);
  overflow: auto;
  padding: .9rem 1rem 1rem;
  color: var(--ink);
  font-size: 1rem;
  text-align: left;
}
.testtools__head { display: flex; justify-content: space-between; align-items: center; }
.testtools__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.testtools__close { width: 2.2rem; height: 2.2rem; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.tt-info { margin: .2rem 0 .6rem; font-style: italic; color: var(--ink-soft); }
.tt-heading { margin: .9rem 0 .35rem; font-family: var(--font-display); font-weight: 400; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.tt-coms { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .35rem; }
.tt-com { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .5rem; padding: .35rem .5rem; background: rgba(255, 250, 235, .6); border: 1px solid rgba(111, 83, 40, .3); border-radius: var(--radius); }
.tt-com.is-offline { opacity: .65; }
.tt-com__name { font-weight: 700; }
.tt-com__meta { grid-column: 1; font-size: .88rem; color: var(--ink-soft); }
.tt-com__actions { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-end; align-items: center; }
.tt-btn { padding: .25rem .55rem; font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink); background: #ead9b4; border: 1px solid var(--brass-dark); border-radius: var(--radius); cursor: pointer; }
.tt-btn--quiet { background: transparent; font-weight: 600; }
.tt-btn--add { margin-top: .2rem; }
.tt-btn.is-active { background: #c9a463; }
.tt-field { margin: .8rem 0 .4rem; padding: .4rem .6rem .5rem; border: 1px solid rgba(111, 83, 40, .35); border-radius: var(--radius); }
.tt-field legend { padding: 0 .3rem; font-weight: 700; }
.tt-radio, .tt-check { display: flex; align-items: center; gap: .45rem; padding: .12rem 0; cursor: pointer; }
.tt-row { display: flex; gap: .35rem; flex-wrap: wrap; }
.tt-preview { --team: var(--brass); margin-top: .5rem; padding: .7rem; background: #f4ead2; border: 2px dashed var(--team); border-radius: 6px; }
.tt-preview__badge { margin: 0 0 .3rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8e2b22; }
.tt-preview__head { margin: 0 0 .4rem; font-family: var(--font-display); font-size: 1.1rem; }
.tt-preview__suspect { display: flex; align-items: center; gap: .6rem; margin: 0 0 .4rem; }
.tt-preview__suspect img { width: 3.2rem; aspect-ratio: 4 / 5; object-fit: cover; outline: 2px solid var(--team); }
.tt-preview__suspect figcaption { font-weight: 700; }
.tt-preview__go { margin: 0 0 .3rem; font-size: .92rem; }
.tt-preview__members { margin: 0; padding-left: 1.1rem; font-size: .92rem; }

/* ---- The spatial city map --------------------------------------------------- */

.city { position: relative; overflow: hidden; }
.city__canvas { position: absolute; inset: 0; display: block; cursor: grab; touch-action: none; }
.city__canvas:active { cursor: grabbing; }
.city__overlay { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.city__svg { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.city-label {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700;
  color: #3a2b1b;
  text-shadow: 0 0 2px #f3ead6, 0 0 3px #f3ead6, 0 0 5px rgba(243, 234, 214, .9);
  pointer-events: none;
}
.city-label--street { font-size: clamp(10px, .62vw, 13px); letter-spacing: .03em; }
.city-label--main, .city-label--bridge { font-size: clamp(11px, .72vw, 15px); text-transform: uppercase; letter-spacing: .09em; }
.city-label--lane, .city-label--alley { font-weight: 600; font-style: italic; }
.city-label--landmark { font-family: var(--font-display); font-weight: 400; font-size: clamp(13px, .9vw, 18px); color: #241a10; text-shadow: 0 0 3px #f3ead6, 0 0 6px #f3ead6, 0 0 9px rgba(243, 234, 214, .95); }
.city-label--water { font-family: var(--font-display); font-weight: 400; font-size: clamp(14px, 1vw, 20px); letter-spacing: .4em; color: #eef3f2; text-shadow: 0 0 3px #4a5e64, 0 0 6px #4a5e64; }
.city-label--park { font-style: italic; color: #2f3a19; text-shadow: 0 0 3px #c9cfa6, 0 0 6px #c9cfa6; }
.city-marker { position: absolute; left: 0; top: 0; pointer-events: none; transition: opacity .8s ease; }
.city-marker.is-hidden { opacity: 0; visibility: hidden; }
.city-marker.is-dimmed { opacity: .6; }
.city-marker__card {
  --size: clamp(2.6rem, 3.1vw, 3.6rem);
  position: absolute; left: 0; top: 0;
  transform: translate(calc(-50% + var(--shift, 0px)), -100%);
  display: flex; align-items: center; gap: .5rem;
  padding: .3rem .75rem .3rem .3rem;
  font: inherit; text-align: left;
  color: var(--ink);
  background: #f4ead2;
  border: 2px solid var(--team);
  border-radius: 6px;
  box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .45), 0 0 1.2rem color-mix(in srgb, var(--team) 45%, transparent);
  pointer-events: auto;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .8s ease, box-shadow .8s ease;
}
.city-marker__card::after { /* pointer to the place */
  content: ""; position: absolute; left: clamp(.7rem, calc(50% - var(--shift, 0px)), calc(100% - .7rem)); bottom: -.55rem; width: 0; height: 0;
  transform: translateX(-50%);
  border-left: .5rem solid transparent; border-right: .5rem solid transparent; border-top: .55rem solid var(--team);
}
.city-marker.is-highlighted .city-marker__card { transform: translate(calc(-50% + var(--shift, 0px)), -100%) scale(1.12); box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, .5), 0 0 2rem var(--team); }
.city-marker__portrait { width: var(--size); height: var(--size); flex: none; overflow: hidden; border: 2px solid var(--team); background: #d8ccb0; }
.city-marker__portrait[data-shape="circle"] { border-radius: 50%; }
.city-marker__portrait[data-shape="square"] { border-radius: 3px; }
.city-marker__portrait[data-shape="diamond"] { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border: 0; }
.city-marker__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.city-marker__text { display: grid; gap: .05rem; }
.city-marker__name { font-weight: 700; font-size: clamp(.95rem, .95vw, 1.25rem); line-height: 1.1; }
.city-marker__team { display: flex; align-items: center; gap: .3rem; font-family: var(--font-display); font-size: clamp(.72rem, .7vw, .95rem); letter-spacing: .12em; text-transform: uppercase; color: var(--team); }
.city-marker__symbol { width: .75rem; height: .75rem; background: var(--team); }
.city-marker__symbol[data-shape="circle"] { border-radius: 50%; }
.city-marker__symbol[data-shape="diamond"] { transform: rotate(45deg) scale(.85); }
.city-marker__card:focus-visible { outline: 3px solid var(--midnight); outline-offset: 2px; }
.city-sighting { position: absolute; left: 0; top: 0; width: .9rem; height: .9rem; margin: -.45rem 0 0 -.45rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--team); border: 2px solid #f4ead2; }
.city-dev { position: absolute; left: 0; top: 0; padding: 0 .2rem; font: 600 10px/1.2 ui-monospace, monospace; white-space: nowrap; transform: translate(-50%, -50%); pointer-events: none; }
.city-dev--node { color: #fff; background: rgba(10, 92, 138, .85); border-radius: 2px; }
.city-dev--edge { color: #0a5c8a; background: rgba(255, 255, 255, .75); }
.city2d-label { font-family: var(--font-body); font-size: 9px; font-weight: 700; fill: #3a2b1b; paint-order: stroke; stroke: #f3ead6; stroke-width: 2.4px; }
.city2d-label--strong { font-size: 12px; }
.city2d-marker { cursor: pointer; }
.city2d-marker.is-hidden { display: none; }
.city2d-marker.is-dimmed { opacity: .6; }
.city2d-marker__name { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: #241a10; }
.city2d-marker__team { font-family: var(--font-display); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.map-notice { position: absolute; left: .8rem; top: .8rem; z-index: 3; max-width: 26rem; margin: 0; padding: .45rem .7rem; color: var(--ink); background: rgba(244, 234, 210, .95); border-radius: var(--radius); font-size: .95rem; }

/* Teams board: the city takes the room, the team overview folds away. */
.teamsboard__collapse {
  justify-self: end;
  padding: .2rem .6rem;
  font: inherit; font-size: .85rem; font-weight: 700;
  color: var(--brass-light);
  background: transparent;
  border: 1px solid rgba(180, 143, 85, .6);
  border-radius: var(--radius);
  cursor: pointer;
}
.teamsboard__summary { display: none; list-style: none; margin: 0; padding: 0; gap: .5rem; }
.teamsum { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem .2rem; color: var(--ink); background: #efe5cf; border-left: .3rem solid var(--team); border-radius: var(--radius); font-weight: 700; font-size: .9rem; }
.teamsum.is-complete { background: #d9e3c4; }
.teamsboard.is-collapsed { grid-template-columns: minmax(0, 1fr) 4rem; }
.teamsboard.is-collapsed .teamsboard__body { display: none; }
.teamsboard.is-collapsed .teamsboard__summary { display: grid; align-content: start; }
.teamsboard.is-collapsed .teamsboard__collapse { justify-self: stretch; padding: .3rem .1rem; font-size: .72rem; white-space: normal; }
.teamcard__override { justify-self: start; padding: .2rem .55rem; font: inherit; font-size: .82rem; font-weight: 700; color: var(--ink); background: transparent; border: 1px solid var(--brass-dark); border-radius: var(--radius); cursor: pointer; }


/* ---- The playable core: phones ---------------------------------------------- */

.core { display: grid; justify-items: center; padding: 4.3rem .8rem max(1.5rem, env(safe-area-inset-bottom)); }
.core__sheet { width: min(100%, 38rem); }
.core__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .1rem .8rem; margin-bottom: .6rem; }
.core__head .eyebrow { margin: 0; color: var(--brass-light); }
.core__team { margin: 0; justify-self: end; font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--gaslight-soft); }
.core__clock { grid-column: 1 / -1; margin: 0; font-size: .95rem; color: var(--muted-on-dark); }
.core__clock strong { font-variant-numeric: tabular-nums lining-nums; color: var(--text-on-dark); }
.core__paused, .core__expired { grid-column: 1 / -1; margin: .2rem 0 0; padding: .4rem .6rem; font-weight: 700; color: #1b1712; background: #f3c776; border-radius: var(--radius); }
.core__expired { display: none; }
.core.is-expired .core__expired { display: block; }
.core.is-paused .core-submit { opacity: .5; pointer-events: none; }
.core__body { display: grid; gap: .8rem; }
.core-task__head .eyebrow { margin: 0; color: var(--brass-light); }
.core-task__title { margin: .1rem 0 .2rem; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--gaslight-soft); }
.core-role { margin: 0; font-weight: 700; color: var(--text-on-dark); }
.core-speaker { margin: 0; font-size: .95rem; font-style: italic; color: var(--muted-on-dark); }
.core-intro { margin: 0; font-size: .98rem; color: var(--muted-on-dark); }
.core-card { padding: .9rem 1rem; color: var(--ink); background: var(--grain), linear-gradient(180deg, #efe5cf, #e4d6b7); border-radius: 6px; box-shadow: 0 .3rem .9rem rgba(0, 0, 0, .35); }
.core-card__title { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; letter-spacing: .03em; }
.core-card--witness { border-left: .35rem solid #6b8aa8; }
.core-card--doc { border-left: .35rem solid #a07c3c; }
.core-card--note { border-left: .35rem solid #8e2b22; }
.core-card--answer { border: 2px solid var(--brass-dark); }
.core-card--confirmed { background: linear-gradient(180deg, #e7efd9, #d7e3c1); border-left: .35rem solid #2f5a2a; }
.core-card--check { border-left: .35rem solid #6a2c91; }
.core-text { margin: 0; }
.core-text p { margin: 0 0 .35rem; }
.core-text__en { font-size: 1.05rem; line-height: 1.45; }
.core-text__tr { font-style: italic; color: var(--ink-soft); }
.core-text--claim .core-text__en { font-weight: 700; }
.core-text--note .core-text__en { font-family: var(--font-script); font-size: 1.15rem; }
.core-text--hint { padding: .35rem .5rem; background: rgba(243, 199, 118, .3); border-radius: var(--radius); margin-bottom: .3rem; }
.core-text--wrong { padding: .35rem .5rem; background: rgba(142, 43, 34, .12); border-radius: var(--radius); margin-bottom: .3rem; }
.core-text--small .core-text__en { font-size: .95rem; }
.core-text--inline { display: inline; }
.core-text--closing .core-text__en { font-weight: 700; }
.core-link { padding: 0; margin: 0 0 .35rem; font: inherit; font-size: .92rem; font-weight: 700; color: #6a4b1f; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.core-note { margin: 0 0 .4rem; font-size: .9rem; font-style: italic; color: var(--ink-soft); }
.core-note.is-right { color: #2f5a2a; font-style: normal; font-weight: 700; }
.core-note.is-wrong { color: #8e2b22; font-style: normal; font-weight: 700; }
.core-play { margin: 0 0 .4rem; }
.core-places { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.core-place { padding: .4rem .55rem; background: rgba(255, 250, 235, .7); border: 1px solid rgba(111, 83, 40, .35); border-radius: var(--radius); }
.core-place__name { display: block; }
.core-minimap { margin: 0 0 .5rem; background: #e6dcc4; border: 1px solid rgba(111, 83, 40, .4); border-radius: var(--radius); overflow: hidden; }
.core-minimap svg { display: block; width: 100%; height: auto; aspect-ratio: 300 / 195; }
.core-minimap__street { fill: none; stroke: #fbf6ea; stroke-linecap: round; stroke-linejoin: round; stroke-width: 9; }
.core-minimap__street--main { stroke-width: 14; }
.core-minimap__street--lane { stroke-width: 6; }
.core-minimap__street--alley { stroke-width: 4; }
.core-minimap__label { font: 700 9px var(--font-body); fill: #5a4630; text-anchor: middle; }
.core-minimap__pin { fill: #8e2b22; stroke: #fff; stroke-width: 2.5; }
.core-minimap__here { font: 700 11px var(--font-body); fill: #241a10; paint-order: stroke; stroke: #fbf6ea; stroke-width: 3px; }
.core-object svg { display: block; width: 100%; max-width: 22rem; margin: 0 auto .4rem; }
.obj-wood { fill: #8b5e3c; } .obj-paper { fill: #efe7d2; } .obj-paper2 { fill: #ddd2b8; } .obj-dark { fill: #4a3426; }
.obj-wicker { fill: #b88a52; } .obj-coat { fill: #3f5f8f; } .obj-metal { fill: #6d6f73; } .obj-tray { fill: #8d9094; }
.obj-hot { cursor: pointer; stroke: #f3c776; stroke-width: 3; stroke-dasharray: 6 4; }

.core-surfaces { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.core-surface { padding: .45rem .7rem; font: inherit; font-weight: 700; color: var(--ink); background: #ead9b4; border: 1px solid var(--brass-dark); border-radius: var(--radius); cursor: pointer; }
/* Round 2: "Discovered" (sepia, dashed) is not "Confirmed" (green, solid). */
.core-surface { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; }
.core-surface.is-discovered { background: #f3e7cb; border-style: dashed; }
.core-badge { display: inline-block; margin: 0; padding: .05rem .45rem; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; }
.core-badge--discovered { color: #5a3d16; background: #f6e3b4; border: 1px dashed #8a6524; }
.core-badge--confirmed { color: #f4f8ee; background: #2f5a2a; margin-bottom: .4rem; }
.core-badge--new { color: #fff7e6; background: var(--oxblood); margin-bottom: .35rem; }
.obj-art { display: block; width: 100%; max-width: 30rem; height: auto; margin: .3rem auto .4rem; border-radius: var(--radius); background: #2a1d10; }
.obj-hot { fill: rgba(255, 236, 190, 0); stroke: rgba(255, 236, 190, .85); stroke-width: 2; stroke-dasharray: 6 5; cursor: pointer; }
.obj-hot:hover, .obj-hot:focus-visible { fill: rgba(255, 236, 190, .18); outline: none; }
.obj-hot.is-discovered { stroke: #f6dca6; stroke-dasharray: 2 4; }
.core-item { margin: .4rem 0 .8rem; padding: .5rem; background: #fffaf0; border: 1px solid rgba(111, 83, 40, .4); border-radius: var(--radius); }
.core-item .item-art { display: block; width: 100%; max-width: 20rem; height: auto; margin: 0 auto; transition: max-width .2s ease; }
.core-item.is-zoomed .item-art { max-width: none; }
.core-item__bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .4rem; }
.core-item__title { margin: .7rem 0 .2rem; font-size: 1.05rem; }
.core-doc { padding: .55rem .7rem; background: rgba(255, 250, 235, .8); border-left: .25rem solid var(--brass-dark); border-radius: var(--radius); }
.core-doc.is-new { border-left-color: var(--oxblood); }
.core-doc__title { margin: 0 0 .25rem; font-size: 1.05rem; }
.core-contrib { margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed rgba(111, 83, 40, .45); }
.core-note--saved { font-weight: 700; color: #5a3d16; }
.core-notes, .core-team-packets { margin: .3rem 0 .5rem; padding-left: 1.1rem; }
.core-notes__item, .core-team-packets li { margin: .25rem 0; }
.core-team-packets li.is-mine { font-weight: 700; }
.core-finds { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.core-find { padding: .4rem .55rem; background: rgba(255, 250, 235, .75); border-radius: var(--radius); }
.core-others { margin-top: .2rem; padding: .5rem .7rem; color: var(--text-on-dark); border: 1px dashed rgba(180, 143, 85, .6); border-radius: var(--radius); }
.core-others summary { cursor: pointer; font-weight: 700; color: var(--brass-light); }
.core-others .core-note { color: var(--muted-on-dark); }
.core-others .core-card { margin-top: .5rem; }
.core-role-label { margin: .7rem 0 0; font-family: var(--font-display); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-light); }
.core-packets { display: grid; gap: .8rem; }
.core-packets__mine { display: grid; gap: .8rem; }
.core-form { display: grid; gap: .7rem; }
.core-q { margin: 0; padding: 0; border: 0; }
.core-q__prompt { padding: 0; margin-bottom: .35rem; font-weight: 700; font-size: 1.05rem; }
.core-q__tr { margin: -.2rem 0 .35rem; font-size: .9rem; font-style: italic; color: var(--ink-soft); }
.core-options { display: grid; gap: .35rem; }
.core-option { padding: .55rem .7rem; font: inherit; font-size: 1.02rem; text-align: left; color: var(--ink); background: #fbf6ea; border: 1px solid rgba(111, 83, 40, .45); border-radius: var(--radius); cursor: pointer; }
.core-option[aria-pressed="true"] { background: #e8cf91; border-color: var(--brass-dark); box-shadow: inset 0 0 0 2px var(--brass-dark); font-weight: 700; }
.core-option.is-solution::after { content: "  ✓ guided"; font-size: .8rem; color: #2f5a2a; font-weight: 700; }
.core-option.is-right { background: #d7e3c1; }
.core-option.is-wrong { background: #f0d2cc; }
.core-submit { width: 100%; }
.core-feedback { margin: .4rem 0; font-weight: 700; }
.core-feedback.is-wrong { color: #8e2b22; }
.core-help { margin-top: .6rem; padding-top: .5rem; border-top: 1px solid rgba(111, 83, 40, .35); }
.core-help__title { margin: 0 0 .3rem; font-family: var(--font-display); font-weight: 400; font-size: 1rem; }
.core-list { margin: 0; padding-left: 1.2rem; }
.core-vocab { width: 100%; border-collapse: collapse; }
.core-vocab td { padding: .3rem .5rem; border-bottom: 1px solid rgba(111, 83, 40, .3); }
.core-vocab td:first-child { font-weight: 700; }


.core-person { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .7rem; margin-bottom: .6rem; padding-bottom: .6rem; border-bottom: 1px solid rgba(111, 83, 40, .3); }
.core-person__portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 3px solid #f4ead2; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.core-person__name { display: block; font-size: 1.15rem; }
.core-person__meta, .core-person__place, .core-person__tr { margin: .1rem 0; font-size: .92rem; }
.core-person__place { font-style: italic; color: var(--ink-soft); }
.core-person__tr { font-style: italic; color: var(--ink-soft); }
.cf-listen { margin: .4rem 0 .6rem; padding: .4rem .8rem; font: inherit; font-weight: 700; color: var(--ink); background: #ead9b4; border: 1px solid var(--brass-dark); border-radius: var(--radius); cursor: pointer; }
.cf-detail__statement { margin: .6rem 0 .2rem; font-family: var(--font-display); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; }

/* ---- The playable core: projector -------------------------------------------- */

.corehost__panel { color: var(--text-on-dark); }
.corehost__clock { margin: 0; font-size: 1rem; color: var(--muted-on-dark); }
.corehost__clock strong { display: block; font-size: clamp(2rem, 5vh, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; color: var(--gaslight-soft); }
.corehost__paused, .corehost__expired { margin: .3rem 0; padding: .35rem .6rem; font-weight: 700; color: #1b1712; background: #f3c776; border-radius: var(--radius); }
.corestage__title { margin: .4rem 0 .2rem; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: var(--gaslight-soft); }
.corestage__question { margin: 0 0 .4rem; font-weight: 700; }
.coreteams { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .6vh; align-content: start; overflow: auto; }
.coreteam { padding: .55rem .7rem; color: var(--ink); background: var(--grain), linear-gradient(180deg, #efe5cf, #e2d3b2); border-left: .4rem solid var(--team); border-radius: var(--radius); }
.coreteam.is-done { background: linear-gradient(180deg, #e7efd9, #d7e3c1); }
.coreteam__head { display: flex; align-items: center; gap: .45rem; }
.coreteam__no { font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.coreteam__dots { margin-left: auto; display: flex; gap: .25rem; }
.coreteam__dots span { width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--team); }
.coreteam__dots span.is-done { background: var(--team); }
.coreteam__task { margin: .25rem 0 0; font-weight: 700; font-size: .98rem; }
.coreteam__state { margin: .1rem 0 0; font-size: .9rem; font-style: italic; color: var(--ink-soft); }
.coreteam__guided { margin: .15rem 0 0; font-size: .8rem; color: #8e2b22; }
.coreteam__help { margin-top: .3rem; padding: .2rem .55rem; font: inherit; font-size: .82rem; font-weight: 700; color: var(--ink); background: transparent; border: 1px solid var(--brass-dark); border-radius: var(--radius); cursor: pointer; }
.coreoverlay { position: absolute; left: .8rem; bottom: .8rem; z-index: 3; width: min(34rem, 52%); max-height: calc(100% - 4.5rem); overflow: auto; padding: .9rem 1rem; color: var(--ink); text-align: left; font-size: 1rem; }
.coreoverlay.is-final { left: 50%; top: 50%; bottom: auto; width: min(44rem, 80%); transform: translate(-50%, -50%); font-size: 1.15rem; }
.coreoverlay__final { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 400; font-size: 2rem; }
.coreoverlay__intro { margin: 0 0 .5rem; }
.coreoverlay__closing { margin: 0 0 .6rem; font-weight: 700; }
.coreoverlay__summary { margin: .5rem 0 0; font-weight: 700; color: #2f5a2a; }
.coreoverlay__features h3, .corerecon h3 { margin: 0 0 .25rem; font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.coreoverlay__features ul, .corerecon ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.corecards { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.corecard { padding: .4rem .55rem; background: rgba(255, 250, 235, .75); border: 1px solid rgba(111, 83, 40, .35); border-radius: var(--radius); }
.corecard__name { display: block; }
.corecard__text { font-size: .92rem; }
.coreperson { display: grid; grid-template-columns: 4rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .7rem; align-items: end; margin-bottom: .5rem; }
.coreperson img { grid-row: span 2; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border: 3px solid #f4ead2; }
.coreperson span { font-size: .92rem; color: var(--ink-soft); align-self: start; }
.corerecon { margin-bottom: .6rem; padding-bottom: .4rem; border-bottom: 1px solid rgba(111, 83, 40, .35); }
.corerecon p { margin: 0 0 .3rem; }
.corerecon__source { font-size: .88rem; font-style: italic; color: var(--ink-soft); }
.city-pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .3rem; padding: 0; margin: -.45rem 0 0 -.45rem; font: inherit; background: none; border: 0; pointer-events: auto; cursor: pointer; }
.city-pin__dot { width: .9rem; height: .9rem; border-radius: 50%; background: #3b2a16; border: 2px solid #f4ead2; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.city-pin__name { padding: .05rem .4rem; font-weight: 700; font-size: clamp(.8rem, .75vw, 1rem); color: #241a10; background: rgba(244, 234, 210, .92); border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); white-space: nowrap; }

/* ---- Korean: Myeongjo serif faces ---------------------------------------- */

:root:lang(ko) {
  --font-display: "IM Fell English SC", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Noto Serif CJK KR", serif;
  --font-body: "Cormorant Garamond", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Noto Serif CJK KR", serif;
}
:root:lang(ko) .eyebrow,
:root:lang(ko) .plaque,
:root:lang(ko) .field__label,
:root:lang(ko) .briefing__badge,
:root:lang(ko) .desk-photo__facts dt,
:root:lang(ko) .cf-detail__facts dt { letter-spacing: .02em; text-transform: none; }
:root:lang(ko) body { line-height: 1.6; word-break: keep-all; }
:root:lang(ko) .lead,
:root:lang(ko) .manual__intro,
:root:lang(ko) .roster__empty,
:root:lang(ko) .gate__hint,
:root:lang(ko) .notice--quiet,
:root:lang(ko) .briefing__note,
:root:lang(ko) .cf-empty,
:root:lang(ko) .waiting__name { font-style: normal; }
:root:lang(ja) .desk-photo__facts dt,
:root:lang(ja) .cf-detail__facts dt { letter-spacing: .02em; text-transform: none; }
:root:lang(ja) .cf-empty { font-style: normal; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---- After the rescue: the closing screen (fades in after the recording) -------- */
.closing { animation: closing-in 1.6s ease both; }
@keyframes closing-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .closing { animation: none; } }
.closing__card { max-width: 46rem; padding: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.closing__title { margin: 0 0 1rem; }
.closing__text { margin: 0 auto 1.2rem; max-width: 36rem; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.4; }
.closing__case { margin: 0 0 1.4rem; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: .08em; color: var(--oxblood); }
.closing__countdown { margin: 0 0 1rem; font-style: italic; color: var(--ink-soft); }
