/* The site's look (pyrite): frosted glass over pictures of the game, one acid accent, a wide
   grotesque for the titles. The site is light; the pages of the game and the map editor take
   the dark theme (.theme-dark) with the same parts. */

@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-text-cyrillic.woff2?v=0b6b3debd753) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/golos-text-latin.woff2?v=0b6b3debd753) format('woff2'); 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: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic.woff2?v=0b6b3debd753) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2?v=0b6b3debd753) format('woff2'); 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: 'Unbounded'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2?v=0b6b3debd753) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/unbounded-latin.woff2?v=0b6b3debd753) format('woff2'); 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; }

:root {
  --f-display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --f-text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --accent: oklch(0.9 0.21 128);
  --accent-edge: oklch(0.8 0.2 128);
  --accent-glow: oklch(0.85 0.21 128 / .5);
  --accent-soft: oklch(0.9 0.21 128 / .3);
  --accent-ink: oklch(0.3 0.08 135);
  --on-accent: oklch(0.2 0.03 135);
  --ok: oklch(0.6 0.2 140);
  --wait: oklch(0.72 0.15 75);
  --danger: oklch(0.6 0.22 25);
  --danger-ink: oklch(0.52 0.2 25);
  --danger-soft: oklch(0.97 0.02 25);
  --blue: #3b82f6;
  --red: #ef4444;

  --bg: oklch(0.965 0.006 250);
  --ink: oklch(0.22 0.02 265);
  --ink-2: oklch(0.4 0.02 265);
  --ink-3: oklch(0.45 0.02 265);
  --muted: oklch(0.5 0.02 265);
  --faint: oklch(0.58 0.015 265);
  --surface: #fff;
  --card: rgba(255, 255, 255, .72);
  --card-edge: rgba(255, 255, 255, .95);
  --line: rgba(30, 36, 60, .12);
  --line-2: rgba(30, 36, 60, .08);
  --wash: rgba(30, 36, 60, .06);
  --wash-2: rgba(30, 36, 60, .1);
  --glass: rgba(255, 255, 255, .66);
  --glass-edge: rgba(255, 255, 255, .9);
  --glass-blur: blur(24px) saturate(1.6);
  --shadow-1: 0 10px 30px rgba(30, 36, 60, .06);
  --shadow-2: 0 14px 36px rgba(30, 36, 60, .1);
  --shadow-3: 0 20px 50px rgba(30, 36, 60, .14);
  --shadow-4: 0 40px 100px rgba(30, 36, 60, .22);
  --seg-on: #fff;
  --seg-on-shadow: 0 2px 8px rgba(30, 36, 60, .12);
  --switch-off: rgba(30, 36, 60, .14);
  --switch-on: var(--ink);
  --switch-knob-off: #fff;
  --ring: 0 0 0 4px oklch(0.9 0.21 128 / .4);
  color-scheme: light;
}

/* the dark pages (the map editor) and the dark parts of the light ones */
.theme-dark {
  --bg: #12141b;
  --ink: #fff;
  --ink-2: rgba(255, 255, 255, .75);
  --ink-3: rgba(255, 255, 255, .62);
  --muted: rgba(255, 255, 255, .5);
  --faint: rgba(255, 255, 255, .38);
  --surface: rgba(255, 255, 255, .07);
  --card: rgba(255, 255, 255, .05);
  --card-edge: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .08);
  --wash: rgba(255, 255, 255, .06);
  --wash-2: rgba(255, 255, 255, .1);
  --glass: rgba(12, 14, 22, .58);
  --glass-edge: rgba(255, 255, 255, .12);
  --glass-blur: blur(16px) saturate(1.4);
  --shadow-1: 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-2: 0 14px 36px rgba(0, 0, 0, .3);
  --shadow-3: 0 20px 50px rgba(0, 0, 0, .35);
  --shadow-4: 0 40px 100px rgba(0, 0, 0, .5);
  --seg-on: rgba(255, 255, 255, .92);
  --seg-on-shadow: none;
  --switch-off: rgba(255, 255, 255, .16);
  --switch-on: var(--accent);
  --switch-knob-off: rgba(255, 255, 255, .7);
  --danger-ink: #ff9b9b;
  --danger-soft: rgba(239, 68, 68, .14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font: 400 15px/1.45 var(--f-text);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
img { display: block; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -.01em; line-height: 1.15; }
.kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.mono { font-family: var(--f-mono); }
.note { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.note:empty { display: none; }

/* ---------- icons ---------- */
.ic { display: block; flex: none; width: 18px; height: 18px; }
/* an icon beside words sits on the middle of their small letters, where the eye puts the line's
   middle: a little lower than the middle of the line box (measured 1-2 px for Golos at 14-17 px) */
.btn > .ic, .pill > .ic, .chip > .ic, .bad-note > .ic { position: relative; top: .09em; }
.btn.icon > .ic, .x > .ic { top: 0; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1 var(--f-text);
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background .15s, box-shadow .15s, transform .06s, opacity .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--accent-edge), var(--ring); }
.btn[disabled], .btn.off { opacity: .45; pointer-events: none; }
.btn.lg { height: 56px; padding: 0 30px; font-size: 17px; font-weight: 700; gap: 10px; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn.block { display: flex; width: 100%; }
.btn.icon { width: 46px; padding: 0; flex: none; }
.btn.icon.sm { width: 36px; }
.btn.pri { background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent-edge), 0 10px 24px var(--accent-glow); }
.btn.pri.lg { box-shadow: inset 0 0 0 1px var(--accent-edge), 0 10px 28px oklch(0.85 0.21 128 / .55); }
.btn.pri.flat { box-shadow: inset 0 0 0 1px var(--accent-edge); }
.btn.pri:hover { background: oklch(0.93 0.2 128); }
.btn.ink { background: oklch(0.22 0.02 265); color: #fff; box-shadow: none; }
.btn.ink:hover { background: oklch(0.3 0.02 265); }
.btn.sec:hover { background: color-mix(in oklab, var(--surface), var(--ink) 4%); }
.btn.quiet { background: var(--wash); box-shadow: none; }
.btn.quiet:hover { background: var(--wash-2); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--wash); color: var(--ink); }
.btn.danger { background: var(--danger); color: #fff; font-weight: 700; box-shadow: 0 10px 24px oklch(0.6 0.22 25 / .35); }
.btn.danger:hover { background: oklch(0.64 0.22 25); }
.theme-dark .btn { box-shadow: inset 0 0 0 1px var(--line); }
.theme-dark .btn.sec { background: rgba(255, 255, 255, .08); box-shadow: none; }
.theme-dark .btn.sec:hover { background: rgba(255, 255, 255, .14); }
.theme-dark .btn.ink { background: rgba(255, 255, 255, .92); color: rgb(18, 20, 30); }
.theme-dark .btn.ink:hover { background: #fff; }
.theme-dark .btn.ghost { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.theme-dark .btn.pri { box-shadow: 0 0 30px oklch(0.9 0.21 128 / .3); }

/* ---------- fields ---------- */
.field {
  height: 46px;
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font: 500 15px/1 var(--f-text);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--faint); font-weight: 400; }
.field:focus { border-color: var(--accent); box-shadow: var(--ring); }
.field.mono { font-family: var(--f-mono); font-size: 13px; }
select.field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237b8194' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.theme-dark select.field option { background: #1b1e27; color: #fff; }
.label { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 16px; }
.stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* the PIN of a room: four boxes, one digit in each */
.pin { display: flex; gap: 8px; }
.pin input {
  flex: 1 1 0;
  min-width: 0;
  height: 64px;
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  font: 700 26px/1 var(--f-display);
  color: var(--ink);
  caret-color: transparent;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pin input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.pin.sm input { height: 46px; border-radius: 14px; font-size: 20px; }
.pin.bad input { background: var(--danger-soft); border: 1.5px solid oklch(0.68 0.2 25); color: oklch(0.5 0.18 25); }
/* off: a press on the boxes turns them on (the new room's PIN), so the boxes let it through to their row */
.pin.off { opacity: .4; cursor: pointer; }
.pin.off input { pointer-events: none; }
.bad-note { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--danger-ink); }
.bad-note:empty { display: none; }

/* a choice of a few: the chosen one lifted out */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--wash); min-width: 0; }
.seg button, .seg a {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 600 13px/1 var(--f-text);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg button:hover:not(.on), .seg a:hover:not(.on) { color: var(--ink); }
.seg .on { background: var(--seg-on); box-shadow: var(--seg-on-shadow); color: var(--ink); font-weight: 700; }
.theme-dark .seg .on { color: rgb(18, 20, 30); }
.seg.sm button, .seg.sm a { height: 28px; padding: 0 12px; font-size: 12px; }
.seg .k { font: 700 11px/1 var(--f-mono); color: var(--muted); }
.seg.off { opacity: .45; pointer-events: none; }

/* a choice laid out as a grid of buttons (the modes) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tiles button {
  height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 600 13px/1.1 var(--f-text);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s, box-shadow .15s;
}
.tiles button:hover:not(.on) { box-shadow: inset 0 0 0 1px var(--wash-2), inset 0 0 0 999px var(--wash); }
.tiles button.on { background: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-edge); color: var(--on-accent); font-weight: 700; }

/* an on/off switch: a checkbox drawn as a pill */
.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: var(--switch-off);
  cursor: pointer;
  transition: background .18s;
}
.switch::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--switch-knob-off);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .18s, background .18s;
}
.switch:checked { background: var(--switch-on); }
.switch:checked::before { transform: translateX(18px); background: var(--accent); }
.theme-dark .switch:checked::before { background: oklch(0.22 0.02 265); }
.switch:focus-visible { outline: none; box-shadow: var(--ring); }
.switch:disabled { opacity: .4; cursor: default; }
.switch.sm { width: 34px; height: 20px; }
.switch.sm::before { width: 16px; height: 16px; left: 2px; top: 2px; }
.switch.sm:checked::before { transform: translateX(14px); }
.switch.lg { width: 48px; height: 30px; }
.switch.lg::before { width: 24px; height: 24px; }
.switch.lg:checked::before { transform: translateX(18px); }
/* a switch with its name, as a card */
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 12px 0 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  min-width: 0;
}
.opt b { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt.off { opacity: .45; cursor: default; }

/* a slider: a thin track filled up to its knob (--p, set by the script) */
.range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --p: 50%;
}
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--ink) var(--p), var(--wash-2) var(--p)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #fff, 0 2px 8px rgba(30, 36, 60, .3);
}
.range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--wash-2); }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--ink); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #fff, 0 2px 8px rgba(30, 36, 60, .3); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px #fff, var(--ring); }

/* a number with a minus and a plus */
.step { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px; border-radius: 999px; background: var(--wash); flex: none; }
.step button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(30, 36, 60, .1); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.step button:disabled { opacity: .4; cursor: default; }
.step b { min-width: 34px; text-align: center; font: 700 15px/1 var(--f-display); }

/* ---------- chips and tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--wash);
  color: var(--ink-2);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted); }
.chip.live { background: var(--accent-soft); color: oklch(0.32 0.1 135); }
.chip.live i { background: var(--ok); box-shadow: 0 0 0 3px oklch(0.75 0.2 135 / .35); }
.chip.wait i { background: var(--wait); box-shadow: 0 0 0 3px oklch(0.8 0.15 75 / .3); }
.chip.on-pic { height: 30px; padding: 0 12px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: oklch(0.22 0.02 265); font-size: 12px; font-weight: 700; }
.chip.on-pic i { background: oklch(0.65 0.2 140); box-shadow: none; }
.chip.on-pic.wait i { background: var(--wait); }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1.2; padding: 4px 9px; border-radius: 999px; background: rgba(30, 36, 60, .07); color: var(--ink-2); white-space: nowrap; }
.tag.me { font: 700 11px/1.2 var(--f-mono); background: oklch(0.9 0.21 128 / .45); color: var(--accent-ink); }
.seats { display: flex; gap: 3px; }
.seats i { width: 12px; height: 6px; border-radius: 3px; background: var(--wash-2); }
.seats i.on { background: var(--ink); }

/* ---------- glass ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-3);
}
.card { border-radius: 22px; background: var(--card); border: 1px solid var(--card-edge); box-shadow: var(--shadow-1); }

/* ---------- the logo ---------- */
.mark { position: relative; flex: none; width: 42px; height: 42px; border-radius: 13px; background: oklch(0.22 0.02 265); display: grid; place-items: center; }
.mark svg { display: block; width: 100%; height: 100%; }
.mark.sm { width: 36px; height: 36px; border-radius: 11px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
.brand .word { font: 800 21px/1 var(--f-display); letter-spacing: -.01em; }

/* ---------- the site's bar on top ---------- */
.top {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 12px 32px rgba(30, 36, 60, .1);
}
.top.solid { background: rgba(255, 255, 255, .86); border-color: #fff; box-shadow: 0 10px 30px rgba(30, 36, 60, .08); }
.top .tabs { display: flex; gap: 4px; margin-left: 18px; min-width: 0; }
.top .tabs a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; line-height: 18px; color: var(--ink-3); white-space: nowrap; transition: background .15s, color .15s; }
.top .tabs a:hover { color: var(--ink); background: rgba(255, 255, 255, .5); }
.top .tabs a.on { background: rgba(255, 255, 255, .85); color: var(--ink); }
.top.solid .tabs a.on { background: var(--wash); }
.top .grow { flex: 1; }
.top .pill { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s; }
.top .pill:hover { background: #fff; }
.top.solid .pill { background: var(--wash); border-color: transparent; }
.top.solid .pill:hover { background: var(--wash-2); }
.ava { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 800 13px/1 var(--f-text); color: var(--on-accent); text-transform: uppercase; }
/* no name yet: a figure in its place */
.ava:empty { background: var(--wash-2); }
.ava:empty::before { content: ''; width: 16px; height: 16px; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9zm0 2c-4.4 0-8 2.2-8 5v2h16v-2c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9zm0 2c-4.4 0-8 2.2-8 5v2h16v-2c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E") center / contain no-repeat; }
/* the player's name: written right in its pill */
.who { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line-2); min-width: 0; }
.top.solid .who { background: var(--wash); border-color: transparent; }
.who input {
  field-sizing: content;
  min-width: 4ch;
  max-width: 180px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  font: 600 14px/1 var(--f-text);
  color: var(--ink);
  outline: none;
}
.who input::placeholder { color: var(--faint); }
.who .edit { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; }
.who .edit:hover { background: var(--wash); color: var(--ink); }
.who:focus-within { box-shadow: var(--ring); border-color: var(--accent); }
.top .burger { display: none; }

/* the menu of a phone: a sheet with the links and the name */
.menu-sheet { position: fixed; inset: 0; z-index: 50; display: none; }
.menu-sheet.on { display: block; }
.menu-sheet .dim { position: absolute; inset: 0; background: rgba(222, 226, 236, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.menu-sheet .body {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: drop .2s ease-out;
}
.menu-sheet .head { display: flex; align-items: center; gap: 10px; padding: 0 0 8px 2px; }
.menu-sheet .head .grow { flex: 1; }
.menu-sheet nav { display: flex; flex-direction: column; gap: 2px; }
.menu-sheet nav a { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 16px; border-radius: 16px; font-weight: 600; font-size: 16px; }
.menu-sheet nav a.on { background: var(--wash); }
.menu-sheet .name { display: flex; flex-direction: column; gap: 8px; padding: 10px 2px 2px; }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }

/* ---------- dialogs ---------- */
dialog.modal {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid #fff;
  border-radius: 30px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  color: var(--ink);
  box-shadow: var(--shadow-4);
  overflow: hidden;
}
dialog.modal[open] { display: flex; flex-direction: column; animation: rise .22s ease-out; }
dialog.modal::backdrop { background: rgba(222, 226, 236, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
dialog.modal.ask { width: min(440px, calc(100vw - 32px)); background: rgba(255, 255, 255, .96); }
.modal .mhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 30px 0; }
.modal .mhead h2 { font: 700 28px/1.15 var(--f-display); }
.modal .mbody { padding: 22px 30px 26px; overflow: auto; min-height: 0; }
.modal .mfoot { display: flex; align-items: center; gap: 10px; padding: 18px 30px; border-top: 1px solid var(--line-2); background: rgba(255, 255, 255, .5); }
.modal .mfoot .note { flex: 1; min-width: 0; }
.x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--wash); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background .15s; }
.x:hover { background: var(--wash-2); }
@keyframes rise { from { transform: translateY(14px) scale(.985); opacity: 0; } }

/* ---------- a page's message: a card over a picture of the map ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow: auto;
  font: 400 15px/1.45 var(--f-text);
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 16px 40px;
}
.gate .pic { position: fixed; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) saturate(1.3); opacity: .7; pointer-events: none; }
.gate .wash { position: fixed; inset: 0; background: rgba(240, 243, 248, .35); pointer-events: none; }
.gate > .brand { position: fixed; top: 28px; left: 40px; }
.gate .brand .word { font-size: 19px; }
.gate .sheet {
  position: relative;
  margin: auto 0;
  width: min(460px, 100%);
  border-radius: 30px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid #fff;
  box-shadow: 0 40px 100px rgba(30, 36, 60, .2);
  overflow: hidden;
  animation: rise .22s ease-out;
}
.gate .shot { position: relative; height: 150px; background: #c9cfdb center / cover no-repeat; }
.gate .shot .chip { position: absolute; left: 16px; top: 16px; height: 28px; }
.gate .in { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 18px; }
.gate .in h2 { font: 700 28px/1.15 var(--f-display); overflow-wrap: anywhere; }
.gate .in .what { display: flex; flex-direction: column; gap: 6px; }
.gate .glyph { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font: 800 20px/1 var(--f-display); background: var(--wash); color: var(--ink); }
.gate .glyph.warn { background: oklch(0.93 0.07 80); color: oklch(0.45 0.12 60); }
.gate .glyph.bad { background: oklch(0.94 0.04 25); color: oklch(0.55 0.2 25); }
.gate .in h3 { font: 700 22px/1.2 var(--f-display); }
.gate .in p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.gate .acts { display: flex; gap: 8px; }
.gate .acts .grow { flex: 1; }
.gate .acts .btn { height: 50px; }

/* ---------- small screens ---------- */
@media (max-width: 1080px) {
  .top .tabs a { padding: 9px 12px; }
  .top .tabs { margin-left: 6px; }
}
@media (max-width: 900px) {
  .top .tabs, .top .pill, .top .who { display: none; }
  .top .burger { display: grid; }
  .top { gap: 10px; height: 56px; padding: 0 8px 0 10px; }
  .top .brand .word { font-size: 18px; }
  .top .mark { width: 36px; height: 36px; border-radius: 11px; }
  .top .burger { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .7); place-items: center; cursor: pointer; color: var(--ink); flex: none; }
  .top .ava.me { width: 36px; height: 36px; }
}
@media (min-width: 901px) {
  .top .ava.me { display: none; }
}
@media (max-width: 560px) {
  dialog.modal { width: 100vw; max-width: 100vw; max-height: calc(100vh - 54px); margin: auto 0 0; border-radius: 32px 32px 0 0; border: 0; background: rgba(255, 255, 255, .97); }
  dialog.modal[open] { animation: sheet .25s ease-out; }
  dialog.modal::before { content: ''; align-self: center; flex: none; width: 40px; height: 5px; margin-top: 8px; border-radius: 3px; background: rgba(30, 36, 60, .18); }
  .modal .mhead { padding: 10px 20px 6px; }
  .modal .mhead h2 { font-size: 22px; }
  .modal .mbody { padding: 8px 20px 18px; }
  .modal .mfoot { flex-direction: column; align-items: stretch; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); gap: 10px; }
  .modal .mfoot .note { text-align: center; }
  .modal .mfoot .btn { height: 56px; font-size: 17px; }
  dialog.modal.ask { width: 100vw; }
  .gate { padding: 82px 12px 24px; }
  .gate > .brand { left: 20px; top: 22px; }
  .gate .in { padding: 20px 20px 22px; }
  .gate .in h2 { font-size: 24px; }
  .gate .pin input { height: 60px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .3; } }
