@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #061018;
  --bg-2: #0c1c33;
  --ink: #e7f1ff;
  --muted: #8ea3b8;
  --blue: #2f7fe0;
  --blue-2: #8ec5ff;
  --line: rgba(142, 197, 255, 0.2);
  --danger: #ff5d73;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-tap-highlight-color: transparent;
}
body.map-mode { overflow: hidden; height: 100dvh; }
button, input { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

.stage {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}
.stage.full { height: 100dvh; }
.stage.full .screen { height: 100%; min-height: 0; }
.screen { position: relative; z-index: 1; min-height: 100dvh; animation: screen-in 0.4s ease; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.roads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 38%, #000 8%, transparent 72%);
}

@media (min-width: 820px) {
  .frame img, .frame video {
    width: min(100%, calc(56vh * 4 / 3));
    margin-inline: auto;
  }
}

.home, .flow, .hint-screen, .task-screen, .recap, .finale, .lobby {
  width: min(100%, 440px);
  margin-inline: auto;
  padding: calc(18px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
}
.home {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: clamp(18px, 5.4vw, 26px);
  line-height: 1;
}
.wordmark span { padding-left: 0.12em; }
.wordmark .mark { display: block; flex: none; transform: translateY(-0.12em); }
.mark { display: block; filter: drop-shadow(0 0 12px rgba(80, 160, 255, 0.85)); }
.tag {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.home-actions { display: flex; flex-direction: column; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.btn {
  appearance: none;
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(142, 197, 255, 0.55);
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7f1ff;
  background: #0c1e36;
  box-shadow:
    0 0 18px rgba(47, 127, 224, 0.48),
    inset 0 0 18px rgba(47, 127, 224, 0.28);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn:disabled { opacity: 0.42; box-shadow: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.linkish, .quiet, .back {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 0;
}
.back { color: var(--blue-2); text-align: left; padding-top: 0; }
.back-btn { margin: 0 0 14px; }
.linkish.slim { width: auto; padding: 8px 4px; color: var(--blue-2); }
.quiet { font-size: 11px; letter-spacing: 0.08em; text-transform: lowercase; }

.kicker {
  margin: 0 0 6px;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--blue-2);
}
h1, h2, p { overflow-wrap: anywhere; }
h1 {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: clamp(36px, 11vw, 58px);
  line-height: 0.95;
  margin: 6px 0;
}
h2 {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 34px;
  margin: 0;
  letter-spacing: 0.03em;
}
.help, .wait, .pts, .status, .fine {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  margin: 8px 0;
}
.wait, .guess-bar .status, .guess-bar .wait { text-align: center; width: 100%; }
.pts { text-align: center; margin: 8px 0 0; font-size: 13px; }

.field { display: block; margin: 0 0 16px; }
.field > span, .label {
  display: block;
  margin-bottom: 6px;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}
input[type="text"] {
  width: 100%;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
}
input[type="text"]:disabled {
  opacity: 1;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  cursor: default;
}
.help.bad { color: var(--danger); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: white;
  font-size: 22px;
}
.stepper strong { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.roles button {
  min-height: 72px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
}
.roles button.on {
  border-color: var(--blue-2);
  background: rgba(47, 127, 224, 0.22);
  box-shadow: inset 0 0 0 1px rgba(142, 197, 255, 0.25);
}

.code {
  font-family: Oswald, sans-serif;
  font-size: 40px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-align: center;
  margin: 10px 0 4px;
  background: none;
  border: 0;
  color: white;
  width: 100%;
}
.players, .board { list-style: none; padding: 0; margin: 12px 0 18px; }
.players li, .board li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.players em, .board .meta {
  margin-left: auto;
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #24384f;
  flex: none;
}
.dot.on { background: var(--blue-2); box-shadow: 0 0 8px var(--blue-2); }
.board button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  padding: 0;
  font-size: 16px;
}
.swatch { width: 10px; height: 10px; border-radius: 99px; flex: none; }
.me { color: var(--blue-2); }

.bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bar-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(12, 28, 51, 0.7);
  color: var(--blue-2);
  display: grid;
  place-items: center;
}
.sub { margin: 0; color: var(--muted); font-size: 14px; }
.hint-screen { display: flex; flex-direction: column; min-height: 100dvh; position: relative; }
.task-screen { display: flex; flex-direction: column; min-height: 100dvh; }
.task-body { display: flex; flex-direction: column; gap: 12px; }
.task-screen .sticky { margin-top: auto; align-items: stretch; width: 100%; gap: 10px; }
.task-screen .stack { width: 100%; }
.task-screen .linkish { align-self: center; }
.task-art {
  border-radius: 16px;
  overflow: hidden;
  background: #0c1c33;
}
.task-art svg { display: block; width: 100%; height: auto; }
.puzzle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 8px 0;
  text-align: center;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 28px;
  letter-spacing: 0.08em;
}
input[name="taskCode"] {
  text-transform: uppercase;
  font-family: Oswald, "Arial Narrow", sans-serif;
  letter-spacing: 0.16em;
  font-size: 22px;
}
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0c1e36;
  color: var(--ink);
  font-size: 16px;
}
.choice:active { transform: translateY(1px); }
.teams { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.team-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-row span { flex: 1; }
.team-pick {
  min-width: 74px;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.team-pick.on {
  border-color: rgba(142, 197, 255, 0.7);
  background: #0c1e36;
  color: var(--blue-2);
}
.bonus {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(142, 197, 255, 0.45);
  background: rgba(12, 30, 54, 0.72);
}
.bonus .kicker { margin-bottom: 6px; }
.bonus .hint-text { margin: 0; }
.missed {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.finale .btn { margin-top: 10px; }
.hint-screen::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: 50%;
  top: -90px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47, 127, 224, 0.28), transparent 68%);
  pointer-events: none;
}
.hint-body { flex: 1; padding-top: 8px; position: relative; }
.hint-text {
  font-size: 1.22rem;
  line-height: 1.45;
  font-weight: 500;
  margin: 16px 0;
}
.hduts { display: flex; justify-content: center; gap: 2px; margin: 4px 0 10px; }
.hduts button {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  position: relative;
}
.hduts button::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #24384f;
}
.hduts button.seen::before { background: #3d6ea8; }
.hduts button.on::before { background: var(--blue-2); box-shadow: 0 0 8px var(--blue-2); }
.frame img, .frame video {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  background: #0b1a2c;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(142, 197, 255, 0.18);
}
.frame.whole img { object-fit: contain; }
.frame.broken img, .frame.broken video { display: none; }
.credit {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 5px 2px 0;
  font-size: 10px;
  line-height: 1.3;
  color: #6d8196;
  font-weight: 400;
  overflow: hidden;
}
.credit.map-note {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  text-align: center;
  margin: -4px 0 8px;
  white-space: normal;
}
.sheet .credit, details.fold .credit {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.sticky {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 0;
  background: linear-gradient(transparent, var(--bg) 28%);
}
.sticky .wait {
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}
.recap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.recap .sticky {
  flex: 1;
  justify-content: center;
  width: 100%;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  background: transparent;
}
.recap .sticky .btn { margin-top: auto; }

.guess-screen { height: 100%; display: flex; flex-direction: column; }
.guess-map { flex: 1; position: relative; min-height: 0; isolation: isolate; overflow: hidden; background: #07111c; }
#map, .answer-map, .recap-map, .route-map { background: #07111c; }
.map-spin { position: absolute; inset: 0; transform-origin: 50% 50%; }
.map-spin.turn {
  animation: map-turn 4.4s linear forwards;
}
@keyframes map-turn {
  0% { transform: rotate(0deg) scale(1); }
  10% { transform: rotate(-4deg) scale(2.1); }
  18% { transform: rotate(-14deg) scale(var(--spin-scale, 2.6)); }
  38% { transform: rotate(-55deg) scale(var(--spin-scale, 2.6)); }
  62% { transform: rotate(-112deg) scale(var(--spin-scale, 2.6)); }
  84% { transform: rotate(-152deg) scale(var(--spin-scale, 2.6)); }
  100% { transform: rotate(-168deg) scale(var(--spin-end, 1.65)); }
}
.guess-map #map { position: absolute; inset: 0; }
.map-float-credit {
  position: absolute;
  z-index: 500;
  left: 10px;
  bottom: 8px;
  margin: 0;
  font-size: 9px;
  line-height: 1.3;
  color: rgba(186, 206, 226, 0.85);
  pointer-events: none;
}
.recap-map { position: relative; height: 42vh; border-radius: 18px; overflow: hidden; margin: 12px 0; }
.route-map { position: relative; height: 46vh; border-radius: 18px; overflow: hidden; margin: 8px 0 10px; }
.route-line { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.answer-map { position: relative; height: 42vh; border-radius: 16px; overflow: hidden; margin: 12px 0 16px; }
.map-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 450;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(4, 10, 18, 0.45) 100%);
}
.map-top {
  position: absolute;
  z-index: 500;
  left: 12px;
  right: 12px;
  top: calc(8px + env(safe-area-inset-top));
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.map-top .pill, .map-top .icon-btn { pointer-events: auto; }
.hint-btn {
  width: auto;
  padding: 0 14px;
  color: var(--ink);
  font-size: 14px;
}
.pill {
  background: rgba(6, 16, 24, 0.82);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  backdrop-filter: blur(10px);
  font-size: 13px;
}
.map-actions { display: flex; gap: 6px; }
.guess-bar {
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(6, 16, 24, 0.94);
  border-top: 1px solid var(--line);
}
.guess-bar > * { width: min(100%, 400px); margin-inline: auto; }
.guess-clock {
  margin: 2px 0 8px;
  text-align: center;
  font-family: Oswald, sans-serif;
  font-size: 32px;
  letter-spacing: 0.14em;
  color: var(--blue-2);
  text-shadow: 0 0 18px rgba(47, 127, 224, 0.55);
}
.guess-clock[hidden] { display: none; }
.guess-bar .linkish { display: block; width: 100%; text-align: center; }
.guess-clock.low {
  color: var(--danger);
  text-shadow: 0 0 18px rgba(255, 93, 115, 0.5);
}
#guess-intro .modal-card, #answer-warn .modal-card { text-align: center; }
#answer-warn .stack { margin-top: 4px; }
.rules-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.rules-page h2 { margin-bottom: 4px; }
.rules-page .btn { margin-top: auto; }
.manual { margin: 18px 0 20px; }
.manual div { margin: 0 0 16px; }
.manual div:last-child { margin-bottom: 0; }
.manual dt {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--blue-2);
  margin: 0 0 2px;
}
.manual dd { margin: 0; font-size: 15px; line-height: 1.4; }
.leaflet-container.map-locked,
.leaflet-container.map-locked.leaflet-grab { cursor: default; }
.leaflet-tile-pane { filter: brightness(0.94) contrast(1.04) sepia(0.22) hue-rotate(190deg) saturate(0.7); }
.labels-off .tiles-labels,
.map-spin.turn .tiles-labels {
  display: none !important;
}
.leaflet-control-attribution {
  max-width: calc(100% - 8px);
  white-space: normal;
  font-size: 9px !important;
  line-height: 1.3;
  background: rgba(6, 16, 24, 0.55) !important;
  color: rgba(186, 206, 226, 0.85) !important;
}
.leaflet-control-attribution a { color: inherit !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  background: rgba(4, 10, 18, 0.55);
}
.modal.center {
  align-items: center;
  padding: 24px 16px;
  background: rgba(4, 10, 18, 0.35);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.modal-card {
  width: min(100%, 390px);
  padding: 22px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(142, 197, 255, 0.38);
  background: #0c1c33;
  box-shadow: 0 0 28px rgba(47, 127, 224, 0.38);
}
.modal-card p { margin: 0 0 12px; font-size: 16px; line-height: 1.4; }
.modal-card .kicker { margin-bottom: 8px; }
.modal-card { max-height: min(78vh, 560px); overflow: auto; }
.leaflet-div-icon.x-icon { background: transparent; border: none; }
.x-pin { width: 36px; height: 36px; display: grid; place-items: center; }
.x-pin.big { width: 52px; height: 52px; }
.x-pin .mark { width: 100%; height: 100%; }
.p-dot {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  color: #061018;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid white;
}
.p-dot.far { box-shadow: 0 0 0 2px var(--danger); }
.leaflet-control-attribution a { color: #b7d4f5 !important; }

.reveal-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  position: relative;
}
.reveal-screen .flash { position: absolute; inset: 0; pointer-events: none; }
.reveal-screen.bad .flash { animation: redFlash 7.5s linear both; }
.who {
  font-family: Oswald, sans-serif;
  letter-spacing: 0.22em;
  font-size: 18px;
  color: var(--blue-2);
  margin: 18px 0 10px;
  text-transform: uppercase;
}
.verdict {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 10vw, 60px);
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  max-width: 12ch;
}
.verdict.ok { color: #d7ecff; text-shadow: 0 0 18px rgba(120, 180, 255, 0.35); }
.verdict.good { color: #7dffc4; text-shadow: 0 0 24px rgba(80, 255, 170, 0.45); }
.verdict.bad { color: var(--danger); text-shadow: 0 0 24px rgba(255, 70, 100, 0.4); }
.task-result.good .flash { animation: greenFlash 3.2s linear both; }
.task-result.bad .flash { animation: redFlash 3.2s linear both; }
.task-result .btn,
.task-result .wait { margin-top: 28px; width: min(100%, 320px); }
.reveal-meta { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
.rdots { display: flex; gap: 6px; justify-content: center; }
.rdots i { width: 7px; height: 7px; border-radius: 99px; background: #24384f; display: block; }
.rdots i.done { background: #3d6ea8; }
.rdots i.now { background: var(--blue-2); box-shadow: 0 0 8px var(--blue-2); }
.beat { animation: fadeUp 7.5s linear both; }
.beat-late { animation: lateIn 7.5s linear both; }
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(14px); }
  12% { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}
@keyframes lateIn {
  0%, 30% { opacity: 0; transform: translateY(16px); }
  40% { opacity: 1; transform: none; }
  100% { opacity: 1; transform: none; }
}
@keyframes redFlash {
  0%, 32% { background: transparent; }
  42% { background: rgba(255, 70, 100, 0.16); }
  100% { background: transparent; }
}
@keyframes greenFlash {
  0%, 18% { background: transparent; }
  32% { background: rgba(80, 255, 170, 0.14); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .beat, .beat-late, .reveal-screen .flash, .screen, .map-spin.turn { animation: none !important; opacity: 1 !important; transform: none !important; }
}

.finale { text-align: center; }
.recap { text-align: center; }
.finale .mark, .hero > .mark { margin: 0 auto 8px; }
.scoreline { font-size: 18px; margin-top: 0; }
.far-line { color: var(--danger); }
details.fold { margin: 8px 0 16px; text-align: left; }
details.fold summary { font-size: 11px; color: #7f93a8; cursor: pointer; }
details.fold ul { list-style: none; padding: 8px 0 0; margin: 0; }
details.fold li { margin: 0 0 6px; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(4, 10, 18, 0.96);
  overflow: auto;
}
.sheet.veil {
  background: rgba(4, 10, 18, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.sheet-inner {
  width: min(100%, 440px);
  margin-inline: auto;
  min-height: 100%;
  padding: calc(18px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}
.sheet .hint-text { font-size: 1.02rem; }
.warn {
  color: var(--blue-2);
  font-size: 14px;
}

#toast {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(-120%);
  visibility: hidden;
  background: #10243f;
  color: white;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 80;
  font-size: 14px;
  transition: transform 0.25s ease;
  max-width: 90vw;
}
#toast.on {
  visibility: visible;
  transform: translateX(-50%) translateY(calc(12px + env(safe-area-inset-top)));
}
body.offline::after {
  content: "Geen verbinding. Opnieuw proberen…";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: #3a1d2a;
  color: #ffd0d8;
  text-align: center;
  font-size: 13px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
