/* VIHJE — pakohuoneen vihjejärjestelmä */

/* Story fonts for the TV clock, hint, and endings. Self-hosted (latin + latin-ext). */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin-ext.woff2") format("woff2");
  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: "Cinzel";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin.woff2") 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: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/playfair-italic-latin-ext.woff2") format("woff2");
  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: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/playfair-italic-latin.woff2") 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: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/playfair-latin-ext.woff2") format("woff2");
  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: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/playfair-latin.woff2") 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 {
  --bg: #09090b;
  --bg-2: #121217;
  --panel: #17171d;
  --line: rgba(240, 195, 106, 0.18);
  --gold: #e0b25a;
  --gold-2: #f3d48a;
  --ink: #f4eee4;
  --muted: #9a9083;
  --danger: #e24a4a;
  --ok: #7dbe74;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-gold: 0 8px 22px rgba(224, 178, 90, 0.28);
  --radius: 18px;
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-story: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-story-clock: "Cinzel", "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 10% -10%, #2a2114 0%, var(--bg) 45%);
  color: var(--ink);
  min-height: 100vh;
}
a { color: var(--gold); }
img { max-width: 100%; }

.page-app { background-color: var(--bg); }

.topbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  height: 22px;
  width: auto;
}
.topnav { display: flex; gap: 8px; flex-shrink: 0; }
.topnav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
}
.topnav a.is-active, .topnav a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.topuser { margin-left: auto; display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; flex-shrink: 1; flex-wrap: wrap; justify-content: flex-end; }
.billing-chip { font-size: 12px; color: var(--gold-2); }
.billing-chip.is-expired { color: var(--danger); }
.billing-banner a { color: var(--gold-2); }
.billing-price { font-size: 18px; color: var(--gold-2); margin: 0 0 16px; }
.paypal-box { min-height: 48px; margin: 8px 0 16px; }
.city-access-form { flex-wrap: wrap; }
.billing-expired { color: var(--danger); }
.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.45);
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.lang-switch a.is-active {
  color: var(--bg);
  background: var(--gold);
}
.lang-switch a:hover:not(.is-active) { color: var(--ink); }
.lang-switch-fixed {
  position: fixed;
  top: 16px;
  right: 18px;
  z-index: 20;
}
.link-quiet { color: var(--muted); }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 72px; }
.page-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-size: 11px;
  margin: 0 0 8px;
}
h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; font-weight: 650; letter-spacing: -0.03em; }
h2 { margin: 0; font-size: 20px; }
.lede { color: var(--muted); margin: 0; max-width: 62ch; line-height: 1.5; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head p { margin: 0; color: var(--muted); }

.btn, button.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #1f1f27;
  color: var(--ink);
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover { border-color: var(--gold); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1206; border-color: transparent; font-weight: 650; }
.btn-ghost { background: transparent; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #0e0e12;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}
textarea { resize: vertical; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-tight { gap: 8px; margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-actions { grid-column: 1 / -1; }
.inline-add { display: flex; gap: 10px; margin-bottom: 16px; }
.inline-add input { flex: 1; }

.alert {
  background: rgba(226, 74, 74, 0.12);
  border: 1px solid rgba(226, 74, 74, 0.35);
  color: #ffd4d4;
  padding: 12px 14px;
  border-radius: 12px;
}
.alert-ok {
  background: rgba(125, 190, 116, 0.12);
  border-color: rgba(125, 190, 116, 0.35);
  color: #d9f0d4;
}

.city-switch {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
  max-width: 360px;
}
.city-switch label { flex: 1; min-width: 0; }
.city-pill { color: var(--muted); margin: 0 0 18px; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.game-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #101016;
}
.game-thumb {
  height: 140px;
  background: #1b140c center/cover no-repeat;
  display: grid;
  place-items: center;
  font-size: 42px;
  color: var(--gold);
}
.game-body { padding: 14px; }
.game-body h3 { margin: 0 0 4px; }
.muted { color: var(--muted); margin: 0; font-size: 13px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.edit-game { margin-top: 12px; color: var(--muted); }
.edit-game summary { cursor: pointer; }

.empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-inline { margin-top: 12px; padding: 20px; }
.check-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.check-row input { width: auto; accent-color: var(--gold); }
.media-city {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.media-city summary {
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}
.media-toggle { align-items: center; margin: 12px 0; }
.media-game {
  margin: 14px 0 8px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
}
.media-game h3 { margin: 0 0 8px; font-size: 16px; }
.media-preview {
  max-width: 220px;
  max-height: 72px;
  vertical-align: middle;
  background: #000;
}
.media-hint-list .row-actions { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.plain-list { list-style: none; margin: 16px 0 0; padding: 0; }
.plain-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.city-admin-row {
  flex-wrap: wrap;
  align-items: flex-end;
}
.city-max-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin: 0;
}
.city-max-form label span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.city-max-form input[type="number"] {
  width: 88px;
}
.user-row { align-items: flex-start; }
.inline-assign { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-assign select { min-width: 150px; }
.self-end { display: flex; align-items: flex-end; }

.operator-shell {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 56px);
}
.city-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px 28px;
  border-right: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.55);
  min-height: 100%;
}
.city-link {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.25;
}
.city-link:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.city-link.is-active {
  color: #1a1206;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  font-weight: 650;
}
.city-list-sep {
  height: 1px;
  background: var(--line);
  margin: 8px 6px;
}
.invoice-panel {
  margin: 28px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.invoice-heading {
  font-size: 16px;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}
.invoice-scroll { overflow-x: auto; }
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.invoice-table th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  padding: 0 10px 8px 0;
}
.invoice-table td {
  padding: 8px 10px 8px 0;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.operator-main { min-width: 0; }
.game-strip-bar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 10px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.78);
}
.game-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}
.strip-empty { margin: 10px 0; }
.game-chip {
  flex: 0 0 auto;
  width: 108px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #101016;
}
.game-chip:hover { border-color: var(--gold); }
.game-chip.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.game-chip-thumb {
  display: block;
  height: 60px;
  background: #1b140c center/cover no-repeat;
  color: var(--gold);
  font-size: 22px;
  font-weight: 650;
  line-height: 60px;
  text-align: center;
}
.game-chip-name {
  display: block;
  font-size: 11px;
  padding: 6px 7px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-chip-wrap {
  position: relative;
  flex: 0 0 auto;
}
.game-chip-wrap .game-chip { display: block; width: 108px; }
.game-chip-x {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.game-chip-edit {
  appearance: none;
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.78);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.game-chip-wrap:hover .game-chip-x,
.game-chip-wrap:hover .game-chip-edit,
.game-chip-wrap:focus-within .game-chip-x,
.game-chip-wrap:focus-within .game-chip-edit {
  opacity: 1;
  pointer-events: auto;
}
.game-chip-x button {
  appearance: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.78);
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-chip-x button:hover,
.game-chip-x button:focus-visible {
  background: var(--danger);
}
.game-chip-edit svg { width: 12px; height: 12px; display: block; }
.game-chip-edit:hover,
.game-chip-edit:focus-visible {
  background: var(--gold);
  color: #1a1206;
}
.game-add {
  appearance: none;
  flex: 0 0 auto;
  width: 56px;
  min-height: 92px;
  margin: 0;
  padding: 0;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-add:hover,
.game-add:focus-visible {
  border-color: var(--gold);
  background: rgba(224, 178, 90, 0.08);
}
.game-add.is-disabled {
  cursor: not-allowed;
  opacity: 0.4;
  color: var(--muted);
}
.game-add.is-disabled:hover,
.game-add.is-disabled:focus-visible {
  border-color: var(--line);
  background: transparent;
  transform: none;
  box-shadow: none;
}
.picker-toggle {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 92px;
  width: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--gold-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.picker-toggle:hover,
.picker-toggle:focus-visible {
  border-color: var(--gold);
  background: rgba(224, 178, 90, 0.08);
}
.picker-toggle svg { width: 22px; height: 22px; display: block; }
.picker-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
body.is-picker-hidden .city-list,
body.is-picker-hidden .game-strip {
  display: none;
}
body.is-picker-hidden .operator-shell {
  grid-template-columns: minmax(0, 1fr);
}
body.is-picker-hidden .game-strip-bar {
  padding: 6px 18px;
  justify-content: flex-end;
  align-items: center;
}
body.is-picker-hidden .picker-toggle {
  min-height: 36px;
  width: auto;
  flex-direction: row;
  gap: 8px;
  padding: 6px 12px;
}
body.is-picker-hidden .picker-toggle-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  font-size: 13px;
  color: var(--ink);
}
body.is-picker-hidden .picker-toggle svg {
  transform: rotate(180deg);
}
.game-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  padding: 22px;
  width: min(420px, calc(100% - 32px));
  box-shadow: var(--shadow);
}
.game-dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.game-dialog h2 { margin-bottom: 4px; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.field-hint { font-size: 12px; color: var(--muted); }
.register-card > .lede + .field-hint { margin: 10px 0 18px; display: block; }
@media (hover: none) {
  .game-chip-x,
  .game-chip-edit {
    opacity: 1;
    pointer-events: auto;
  }
}
.page-control .wrap {
  width: min(560px, calc(100% - 24px));
  padding: 20px 0 48px;
}
.page-admin .wrap {
  padding: 20px 0 48px;
}
.page-admin h1 {
  font-size: clamp(20px, 4vw, 28px);
}
.control-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.control-heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}
.control-game,
.operator-clock {
  font-size: 26px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0;
}
.control-game {
  font-family: var(--font);
  color: var(--ink);
  text-align: left;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operator-clock {
  font-family: var(--font-story-clock);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--gold-2);
  text-align: right;
  flex: 0 0 auto;
  white-space: nowrap;
}
.operator-clock.is-low { color: #ffb4b4; }
.operator-clock.is-over { color: var(--danger); }
.clock-adjust {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.clock-adjust .btn {
  min-width: 40px;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.control-heading-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}
.control-heading-actions .btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
}
.control-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(9.5rem, 1.8fr) minmax(0, 1.05fr);
  gap: 8px;
  align-items: stretch;
}
.cue-combo {
  display: flex;
  min-width: 0;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #1f1f27;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cue-combo:hover,
.cue-combo:focus-within {
  border-color: var(--gold);
}
.cue-combo #btn-chime {
  width: 52px;
  min-width: 52px;
  min-height: 50px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}
.page-control .cue-combo #btn-chime {
  box-shadow: none;
}
.page-control .cue-combo #btn-chime:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
  background: rgba(224, 178, 90, 0.08);
}
.cue-select {
  appearance: none;
  flex: 1;
  min-height: 50px;
  min-width: 0;
  margin: 0;
  padding: 8px 28px 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e0b25a' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  box-shadow: none;
}
.cue-select:hover { border-color: transparent; }
.cue-select:focus {
  outline: none;
  box-shadow: none;
}
.cue-select optgroup {
  color: var(--gold-2);
  font-weight: 650;
  background: #0e0e12;
}
.control-actions .btn {
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
}
.control-icon-btn {
  width: 56px;
  min-width: 56px;
  padding: 0;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.control-icon-btn svg { width: 28px; height: 28px; display: block; }
.control-icon-btn svg.is-off,
.control-icon-btn svg[hidden] { display: none !important; }
.control-icon-btn.is-ping { animation: ping 0.6s ease; }
.page-control #hint-text {
  min-height: 7.5rem;
  font-size: 16px;
  line-height: 1.4;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
  outline: none;
  transition: none;
}
.page-control #hint-text:hover,
.page-control #hint-text:focus,
.page-control #hint-text:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
}
.live-hint {
  margin: 0;
  padding: 4px 8px;
  font-family: var(--font-story);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: #f7e7c2;
  text-align: center;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
.live-hint[hidden] { display: none !important; }
.control-ending {
  width: 100%;
  margin: 0;
  padding: 18px 20px;
}
.control-ending .ending-copy {
  font-family: var(--font-story);
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 500;
}
.page-control #popup-note { margin: 0; font-size: 14px; }

.page-control {
  background:
    radial-gradient(900px 420px at 85% -8%, rgba(224, 178, 90, 0.1), transparent 52%),
    radial-gradient(720px 480px at 0% 110%, rgba(90, 18, 18, 0.22), transparent 58%),
    var(--bg);
}
.page-control.has-game-bg {
  background-color: #0a0a0e;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.page-control.has-game-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.42) 0%, rgba(9, 9, 11, 0.22) 45%, rgba(9, 9, 11, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}
.page-control.has-game-bg > * {
  position: relative;
  z-index: 1;
}
.page-control .topbar {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
}
.page-control .city-list {
  box-shadow: inset -12px 0 24px rgba(0, 0, 0, 0.18);
}
.page-control .city-link {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.page-control .city-link.is-active {
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.page-control .game-strip-bar {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.page-control .game-chip {
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.page-control .game-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(224, 178, 90, 0.28);
}
.page-control .game-chip.is-active {
  box-shadow: var(--shadow-gold), 0 0 0 1px var(--gold);
}
.page-control .game-add,
.page-control .picker-toggle {
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.page-control .game-add:hover,
.page-control .picker-toggle:hover,
.page-control .game-add:focus-visible,
.page-control .picker-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.control-desk {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01) 42%),
    var(--panel);
  box-shadow: var(--shadow-lg);
}
.page-control .control-actions .btn,
.page-control .control-heading-actions .btn,
.page-control .clock-adjust .btn {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.page-control .control-actions .btn:hover:not(:disabled),
.page-control .control-heading-actions .btn:hover:not(:disabled),
.page-control .clock-adjust .btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.42);
}
.page-control .control-actions .btn-gold,
.page-control .control-heading-actions .btn-gold {
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.page-control .operator-clock {
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 18px rgba(243, 212, 138, 0.16);
}
.page-control .live-hint {
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}
.page-control .game-dialog {
  box-shadow: var(--shadow-lg);
}
@media (prefers-reduced-motion: reduce) {
  .page-control .game-chip,
  .page-control .game-add,
  .page-control .picker-toggle,
  .page-control .city-link,
  .page-control .control-actions .btn,
  .page-control #hint-text {
    transition: none;
  }
  .page-control .game-chip:hover,
  .page-control .game-add:hover,
  .page-control .picker-toggle:hover,
  .page-control .control-actions .btn:hover:not(:disabled) {
    transform: none;
  }
}
@keyframes ping {
  0% { transform: scale(1); }
  40% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.page-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 16px 32px;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(224,178,90,0.12), transparent 50%),
    radial-gradient(900px 500px at 0% 100%, rgba(80,20,20,0.25), transparent 50%),
    var(--bg);
}
.login-card {
  width: min(420px, calc(100% - 32px));
  padding: 36px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.login-logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin: 0 0 16px;
}
.login-card h1 {
  letter-spacing: 0.34em;
  font-size: 28px;
  margin-bottom: 10px;
}
.register-card {
  width: min(720px, calc(100% - 32px));
  padding: 40px 32px 32px;
}
.register-card .login-logo {
  margin-bottom: 28px;
}
.login-card h1.register-heading {
  font-size: 22px;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
.register-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.register-grid-break { display: none; }
.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.auth-forgot {
  margin: 12px 0 0;
  font-size: 14px;
  text-align: center;
}
.auth-forgot a { color: var(--muted); }
.creds-box {
  margin: 8px 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 9, 11, 0.35);
  display: grid;
  gap: 12px;
}
.creds-box div { margin: 0; }
.creds-box dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.creds-box dd { margin: 0; }
.creds-box code {
  font-size: 18px;
  color: var(--gold-2);
  word-break: break-all;
}
.creds-card .btn { width: 100%; }
@media (min-width: 720px) {
  .register-grid {
    grid-template-columns: 1fr 1fr;
  }
  .register-grid-break {
    display: block;
    grid-column: 1 / -1;
    height: 0;
  }
}

/* TV display — 16:9, photo on top, reserved hint dock at the bottom */
.page-display {
  background: #000;
  overflow: hidden;
  height: 100vh;
}
.display {
  position: relative;
  height: 100vh;
  background: #0a0a0e center top / 100% 100% no-repeat;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 30vh;
}
.display-stage {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2vh 6vw;
}
.display-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 28%, rgba(0,0,0,0.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18), transparent 22%, rgba(0,0,0,0.28));
  pointer-events: none;
}
.display-clock-wrap { position: relative; z-index: 1; text-align: center; }
.display-clock {
  font-family: var(--font-story-clock);
  font-size: clamp(64px, 13vw, 168px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: #f7e7c2;
  text-shadow: 0 8px 40px rgba(0,0,0,0.75);
  line-height: 0.9;
  font-weight: 600;
}
.display-clock.is-low { color: #ffb4b4; }
.display-clock.is-over { color: var(--danger); }
.display-ended {
  margin: 12px 0 0;
  font-family: var(--font-story-clock);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--danger);
  font-size: 22px;
  font-weight: 600;
}
.ending-board {
  position: relative;
  z-index: 2;
  width: min(920px, 88vw);
  margin: 0 auto;
  background: rgba(8, 8, 10, 0.82);
  border: 1px solid rgba(224, 178, 90, 0.45);
  border-radius: 18px;
  padding: 4vh 4.5vw;
  text-align: center;
  backdrop-filter: blur(8px);
}
.ending-copy {
  margin: 0;
  font-family: var(--font-story);
  font-size: clamp(22px, 3.1vw, 40px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
  color: #f7e7c2;
  text-shadow: 0 2px 16px #000;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.ending-board[hidden] { display: none !important; }
.display.is-ended .display-clock-wrap,
.display.is-ended .hint-dock,
.display.is-ended .display-media,
.display.is-ended .display-media-caption { display: none; }
.display-media {
  position: relative;
  z-index: 3;
  display: block;
  width: min(920px, 88vw);
  max-height: 48vh;
  margin: 2vh auto 0;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.display-media[hidden] { display: none !important; }
.display-media-caption {
  position: relative;
  z-index: 3;
  margin: 12px 0 0;
  text-align: center;
  font-family: var(--font-story);
  color: #f7e7c2;
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px #000;
}
.display-media-caption[hidden] { display: none !important; }
.hint-dock {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh 6vw 3.5vh;
  min-height: 0;
}
.hint-copy {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-story);
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 500;
  letter-spacing: 0.012em;
  line-height: 1.4;
  color: #f7e7c2;
  text-align: center;
  text-shadow: 0 2px 14px #000, 0 0 28px rgba(0, 0, 0, 0.9);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
  white-space: pre-wrap;
  overflow: hidden;
  max-height: calc(1.4em * 4);
}
.hint-copy[hidden] { display: none !important; }

.display-arm {
  position: fixed;
  inset: 0;
  z-index: 20;
  border: 0;
  background: #09090b;
  color: var(--ink);
  font: inherit;
  font-family: var(--font-story);
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 500;
  padding: 8vh 10vw;
  cursor: pointer;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 820px) {
  .split, .form-grid { grid-template-columns: 1fr; }
  .display { padding: 0; grid-template-rows: minmax(0, 1fr) 34vh; }
  .operator-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    align-content: start;
  }
  .city-list {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
    padding: 10px 12px;
  }
}

@media (max-width: 560px) {
  .game-strip-bar { flex-wrap: wrap; align-items: stretch; }
  .control-desk { padding: 16px 14px; border-radius: 16px; }
  .control-heading { flex-wrap: wrap; }
  .control-game { flex-basis: 100%; }
  .control-actions {
    grid-template-columns: 1fr 56px;
  }
  .control-actions #btn-open-display { grid-column: 1; }
  .control-actions #btn-toggle { grid-column: 2; }
  .control-actions .cue-combo { grid-column: 1 / 3; }
  .control-actions #btn-clear-hint { grid-column: 1 / 3; }
  .media-combo { grid-template-columns: 1fr; }
}

.media-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.media-select {
  appearance: none;
  min-height: 52px;
  min-width: 0;
  margin: 0;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #1f1f27 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e0b25a' d='M1.2 1.2 6 6l4.8-4.8'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.media-select:hover, .media-select:focus {
  border-color: var(--gold);
  outline: none;
}
.media-combo .btn { min-height: 52px; white-space: nowrap; }

.login-brand {
  display: inline-block;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 40;
  background: var(--gold);
  color: #1a1206;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(224, 178, 90, 0.14), transparent 52%),
    radial-gradient(900px 520px at -8% 18%, rgba(80, 20, 20, 0.28), transparent 55%),
    var(--bg);
}
.site-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-brand-cluster {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  min-width: 0;
}
.site-logo {
  height: 26px;
  width: auto;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
}
.site-nav a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }
.site-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.site-actions .lang-switch {
  flex-shrink: 0;
  align-self: center;
  height: 36px;
  padding: 3px;
}
.site-actions .lang-switch a {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 11px;
}
.site-actions > .btn-small {
  height: 36px;
  padding: 0 16px;
}
.site-login {
  display: grid;
  grid-template-columns: 9.8rem 9.8rem auto auto;
  grid-template-areas:
    "user pass go start"
    ". forgot . .";
  column-gap: 8px;
  row-gap: 5px;
  align-items: center;
  position: relative;
}
.site-login > input[type="hidden"] { display: none; }
.site-login #username { grid-area: user; }
.site-login #current-password { grid-area: pass; }
.site-login-forgot { grid-area: forgot; }
.site-login-submit { grid-area: go; }
.site-login-start { grid-area: start; }
.site-login input[type="text"],
.site-login input[type="password"] {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
}
.site-login input:focus {
  outline: none;
  border-color: var(--gold);
}
.site-login .btn-small {
  height: 36px;
  min-width: 5.6rem;
  padding: 0 16px;
  white-space: nowrap;
}
.site-login-forgot {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-decoration: none;
  justify-self: start;
  max-width: 100%;
}
.site-login-forgot:hover { color: var(--gold); }
.site-banner {
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 0;
}
.site-banner .alert { margin: 0; }
.site-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 80px;
  flex: 1;
}
.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 36px;
  align-items: stretch;
  margin-bottom: 56px;
}
.site-hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}
.site-hero-lede { font-size: 18px; max-width: 42ch; }
.site-hero .head-actions { margin-top: 32px; }
.hero-stage { min-width: 0; display: flex; }
.hero-tv {
  position: relative;
  flex: 1;
  min-height: min(72vh, 680px);
  border-radius: 18px;
  overflow: hidden;
  background-color: #0a0a0e;
  background-image: url("/assets/backgrounds/helsinki-c-rappu-k-16.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 30%;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero-tv .display-veil {
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 26%, rgba(0, 0, 0, 0.22));
}
.hero-tv-stage {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2vh 4vw;
}
.hero-tv .display-clock {
  font-size: clamp(40px, 5.6vw, 64px);
  letter-spacing: 0.08em;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.72);
}
.hero-tv .hint-dock {
  position: relative;
  z-index: 2;
}
.hero-tv .hint-copy { display: block; }
.hero-tv { cursor: pointer; }
.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.62);
  color: var(--gold-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  box-shadow: var(--shadow-sm);
}
.hero-nav svg { width: 22px; height: 22px; display: block; }
.hero-nav:hover { border-color: var(--gold); background: rgba(9, 9, 11, 0.82); }
.hero-nav-prev { left: 12px; }
.hero-nav-next { right: 12px; }
.site-block { margin: 0 0 64px; }
.site-h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 650;
}
.site-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}
.site-story h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.03em;
  font-weight: 650;
}
.site-copy { display: grid; gap: 14px; }
.site-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.feat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.feat-num {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
}
.feat-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
}
.feat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}
.price-card {
  width: min(460px, 100%);
  margin-top: 22px;
  padding: 28px 26px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.price-trial {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-amount {
  margin: 0;
  font-size: clamp(40px, 6vw, 52px);
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--gold-2);
  line-height: 1;
}
.price-period {
  margin: 8px 0 18px;
  color: var(--muted);
}
.price-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.price-list li {
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
  font-size: 15px;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.price-card .btn { width: 100%; }
.price-pay {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.price-vat {
  margin: 0 0 16px;
  color: var(--gold-2);
  font-size: 15px;
}
.quote-box { margin: 0 0 16px; }
.vat-form { margin: 0 0 18px; }
.contact-card {
  margin-top: 18px;
  padding: 22px;
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.5; }
.contact-card p:last-child { margin: 0; }
.site-foot {
  border-top: 1px solid var(--line);
  padding: 36px 22px 28px;
  background: rgba(9, 9, 11, 0.55);
}
.site-foot-inner {
  width: min(1120px, 100%);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.site-foot-brand p { color: var(--muted); margin: 10px 0 0; }
.site-foot-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-size: 11px;
}
.site-foot p { color: var(--muted); line-height: 1.5; }
.site-foot-note,
.site-foot-copy {
  width: min(1120px, 100%);
  margin: 0 auto;
  font-size: 13px;
}
.site-foot-copy { margin-top: 6px; }
.legal-main { padding-top: 28px; }
.legal-doc {
  width: min(760px, 100%);
}
.legal-doc h1 { margin-bottom: 10px; }
.legal-doc h2 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 650;
}
.legal-doc p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

@media (max-width: 1100px) {
  .site-login {
    grid-template-columns: 8.2rem 8.2rem auto auto;
  }
  .site-nav a { padding: 8px 10px; }
}

@media (max-width: 820px) {
  .site-hero,
  .site-story,
  .feat-grid,
  .site-foot-inner {
    grid-template-columns: 1fr;
  }
  .site-top {
    padding: 14px 16px;
    gap: 12px 16px;
  }
  .site-brand-cluster {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  .site-nav { flex: 1 1 auto; }
  .site-actions {
    width: 100%;
    justify-content: space-between;
  }
  .site-login {
    flex: 1 1 auto;
    width: min(100%, 28rem);
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "user pass"
      "forgot forgot"
      "go start";
  }
  .site-login input[type="text"],
  .site-login input[type="password"] {
    width: 100%;
    min-width: 0;
  }
  .site-login .btn-small { width: 100%; }
  .site-hero { margin-bottom: 40px; }
  .hero-nav { width: 40px; height: 40px; }
  .site-block { margin-bottom: 44px; }
}
