/* speletgta6.lv — one stylesheet for both faces (soon + new). Sunset-neon key-art look: Anton for the poster type, Inter for reading. */
/* Anton is ONE file (latin + latin-ext, with its mark positioning): split unicode-range faces drew Ā/Ē as A + a loose macron in Chrome. */
@font-face { font-family: Anton; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/anton.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-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 {
  --ink: #0c0716; --ink-2: #150c24; --ink-3: #1f1233; --line: rgba(255, 255, 255, .12);
  --text: #fff6ee; --muted: #cfc0dc; --dim: #9d8db0;
  --pink: #ff3d8b; --orange: #ff8a3c; --sun: #ffd23f; --teal: #2ee6d6; --violet: #8b4dff;
  --sunset: linear-gradient(92deg, var(--pink) 0%, var(--orange) 55%, var(--sun) 100%);
  --radius: 18px; --gutter: 16px; --max: 1180px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sun); }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.poster { font-family: Anton, Impact, 'Arial Narrow', sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.04; margin: 0; }
.grad { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2.poster { font-size: clamp(38px, 7vw, 72px); }
h3 { font-size: 20px; line-height: 1.25; margin: 0 0 8px; font-weight: 800; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 210, 63, .45);
  background: rgba(12, 7, 22, .55); color: var(--sun); font: 700 13px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 61, 139, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 61, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 61, 139, 0); } }

/* ---------- the header ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--text); font: 400 26px/1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.brand b { font-weight: 400; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { font: 600 13px/1 Inter, sans-serif; color: var(--muted); text-transform: none; margin-inline-start: 2px; }
.nav { display: none; gap: 26px; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--sun); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px; cursor: pointer;
  font: 400 20px/1 Anton, Impact, sans-serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: #1a0a12;
  background: var(--sunset); box-shadow: 0 10px 30px -8px rgba(255, 61, 139, .65); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-2px); color: #1a0a12; box-shadow: 0 16px 36px -8px rgba(255, 61, 139, .8); filter: saturate(1.15); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn.ghost:hover { color: var(--sun); box-shadow: inset 0 0 0 1.5px var(--sun); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 17px; border-radius: 12px; }

/* ---------- the hero ---------- */
/* phone: the picture on top, the words below it on the dark (busy art behind gradient type does not read) */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero picture { position: relative; display: block; height: 56svh; min-height: 330px; max-height: 560px; }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero picture::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 7, 22, .6) 0%, rgba(12, 7, 22, 0) 24%, rgba(12, 7, 22, 0) 55%, var(--ink) 100%); }
.hero .wrap { position: relative; margin-top: -84px; padding-block: 0 40px; }
.hero h1 { font-size: clamp(54px, 13vw, 132px); margin: 18px 0 18px; text-shadow: 0 4px 30px rgba(12, 7, 22, .35); }
.hero h1 .l2 { display: block; }
.hero h1.long { font-size: clamp(50px, 12vw, 112px); }  /* a longer gradient line with Latvian macrons */
.hero .lead { color: #f1e6f6; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (min-width: 900px) {
  .hero { min-height: 100svh; display: flex; align-items: center; }
  .hero picture { position: absolute; inset: 0; height: 100%; max-height: none; z-index: -2; }
  .hero picture img { object-position: center 35%; }
  .hero picture::after { background: linear-gradient(90deg, rgba(12, 7, 22, .94) 0%, rgba(12, 7, 22, .78) 34%, rgba(12, 7, 22, .1) 62%, rgba(12, 7, 22, 0) 100%),
    linear-gradient(180deg, rgba(12, 7, 22, .5) 0%, rgba(12, 7, 22, 0) 20%, rgba(12, 7, 22, 0) 80%, var(--ink) 100%); }
  .hero .wrap { margin-top: 0; padding-block: 120px 80px; }
  .hero .copy { max-width: 640px; }
}

/* ---------- the countdown ---------- */
.count { display: flex; gap: 10px; margin-top: 26px; }
.count div { min-width: 70px; padding: 10px 10px 8px; border-radius: 14px; text-align: center; background: rgba(21, 12, 36, .72); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.count b { display: block; font: 400 34px/1 Anton, Impact, sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }
.count span { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.count-label { margin-top: 26px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.count-label + .count-row .count { margin-top: 8px; }

/* ---------- forms ---------- */
.signup { margin-top: 26px; max-width: 560px; }
.signup .row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .signup .row { flex-direction: row; } .signup input { flex: 1; } }
input, select, textarea { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .22);
  background: rgba(12, 7, 22, .7); color: var(--text); font: 500 17px/1.3 Inter, sans-serif; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8f80a3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 230, 214, .25); }
input[type='date'] { color-scheme: dark; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 44px; }
.fine { margin: 10px 0 0; font-size: 13.5px; color: var(--dim); }
.msg { margin: 12px 0 0; font-weight: 600; min-height: 1.6em; }
.msg.ok { color: var(--teal); }
.msg.err { color: #ff8fb4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding-block: 72px; }
@media (min-width: 900px) { .band { padding-block: 112px; } }
.band-head { max-width: 760px; margin-bottom: 40px; }
.band-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card { padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--sunset); }
.card .big { font: 400 44px/1 Anton, Impact, sans-serif; text-transform: uppercase; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }
.card.teal::before { background: linear-gradient(90deg, var(--teal), var(--violet)); }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 56px; } .split.flip > :first-child { order: 2; } }
.shot { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(255, 61, 139, .45); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 34px; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px; background: var(--sunset); }
.ticks li::after { content: ''; position: absolute; inset-inline-start: 7px; top: 8px; width: 8px; height: 11px; border: solid #1a0a12; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ticks b { color: var(--text); }

/* the steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: s; padding: 22px 20px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 400 42px/1 Anton, Impact, sans-serif; margin-bottom: 14px;
  background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* the timeline of 30 days */
.days { display: grid; grid-template-columns: repeat(32, 1fr); gap: 3px; margin-top: 26px; }
.days i { height: 26px; border-radius: 4px; background: linear-gradient(180deg, var(--pink), var(--orange)); opacity: .9; }
.days i.ret { background: var(--teal); }
.days i.late { background: repeating-linear-gradient(135deg, #5a2a3b 0 4px, #3a1b28 4px 8px); }
.days-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.days-legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 8px; vertical-align: -1px; background: linear-gradient(180deg, var(--pink), var(--orange)); }
.days-legend .r::before { background: var(--teal); }
.days-legend .l::before { background: repeating-linear-gradient(135deg, #5a2a3b 0 4px, #3a1b28 4px 8px); }

/* the price */
.price { padding: 30px; border-radius: 24px; background: radial-gradient(120% 140% at 100% 0%, rgba(255, 61, 139, .28), transparent 55%), var(--ink-2); border: 1px solid rgba(255, 210, 63, .35); }
.price .amount { font: 400 64px/1 Anton, Impact, sans-serif; margin: 14px 0 4px; }
.price .per { color: var(--muted); }

/* the order form */
.form-card { padding: 22px; border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line); }
@media (min-width: 720px) { .form-card { padding: 34px; } }
.grid2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field .hint { font-size: 13px; color: var(--dim); }
.field.bad input, .field.bad select { border-color: #ff6f9e; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--pink); flex: none; }
.check.bad { color: #ff8fb4; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.notice { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(46, 230, 214, .08); border: 1px solid rgba(46, 230, 214, .3); color: #c9f7f2; font-size: 14.5px; }
.done { text-align: center; padding: 30px 10px; }
.done .poster { font-size: 48px; }
.done .ref { display: inline-block; margin-top: 14px; padding: 8px 16px; border-radius: 10px; background: var(--ink-3); font: 700 20px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--sun); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); font: 400 28px/1 Anton, sans-serif; color: var(--orange); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* the closing band */
.finale { position: relative; isolation: isolate; overflow: hidden; }
.finale picture, .finale picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.finale picture img { object-fit: cover; object-position: center 40%; }
.finale::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 55% at 50% 52%, rgba(12, 7, 22, .62), rgba(12, 7, 22, .12) 100%),
  linear-gradient(180deg, var(--ink) 0%, rgba(12, 7, 22, 0) 18%, rgba(12, 7, 22, 0) 82%, var(--ink) 100%); }
.finale .wrap { padding-block: 120px; text-align: center; }
.finale p { text-shadow: 0 2px 14px rgba(12, 7, 22, .9); }
.finale h2 { margin-inline: auto; max-width: 14ch; }
.finale p { color: #f1e6f6; font-size: 19px; max-width: 34em; margin: 18px auto 28px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 34px 44px; color: var(--dim); font-size: 13.5px; }
.foot .wrap { display: grid; gap: 14px; }
.foot p { margin: 0; max-width: 72em; }
.foot .brand { font-size: 22px; }

/* the sticky order button on a phone (new) */
.sticky { position: fixed; inset: auto 12px 12px 12px; z-index: 20; display: none; }
.sticky .btn { width: 100%; }
@media (max-width: 899px) { .sticky.show { display: block; } }
.price .cta { margin-top: 24px; }
.done .lead { margin-inline: auto; }

/* ---------- the locker picker (new) ---------- */
:root { --net-omniva: #ff8a3c; --net-dpd: #ff3d8b; --net-smartposti: #2ee6d6; --net-lpasts: #ffd23f; --net-venipak: #8b4dff; --net-unisend: #7bd88f; }
.net-omniva { --c: var(--net-omniva); } .net-dpd { --c: var(--net-dpd); } .net-smartposti { --c: var(--net-smartposti); }
.net-lpasts { --c: var(--net-lpasts); } .net-venipak { --c: var(--net-venipak); } .net-unisend { --c: var(--net-unisend); }
.dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--orange)); box-shadow: 0 0 0 3px rgba(12, 7, 22, .9), 0 0 12px var(--c, var(--orange)); }
.ico { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.locker-field { margin-top: 22px; padding: 18px; border-radius: 18px; background: rgba(12, 7, 22, .55); border: 1px solid var(--line); }
.locker-field.bad { border-color: #ff6f9e; }
.nets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-top: 4px; }
.nets::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); color: var(--text); font: 600 14px/1 Inter, sans-serif; }
.chip .dot { width: 9px; height: 9px; box-shadow: none; }
.chip small { color: var(--dim); font-weight: 600; font-size: 12px; }
.chip:hover { border-color: rgba(255, 255, 255, .45); }
.chip.on { border-color: var(--c, var(--sun)); background: rgba(255, 210, 63, .1); }
.combo { position: relative; margin-top: 10px; }
.combo > .ico { position: absolute; left: 15px; top: 16px; color: var(--dim); pointer-events: none; }
.combo input { padding-inline-start: 46px; }
.locker-list { position: absolute; z-index: 30; inset: calc(100% + 6px) 0 auto 0; margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow-y: auto;
  border-radius: 16px; background: #1b1030; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7); }
.locker-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
.locker-list li[aria-selected='true'], .locker-list li:hover { background: rgba(255, 255, 255, .08); }
.locker-list li .t { display: grid; min-width: 0; flex: 1; }
.locker-list li .t b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.locker-list li .t span { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.locker-list li small { flex: none; color: var(--teal); font-weight: 700; font-size: 13px; }
.locker-list li.empty { cursor: default; color: var(--muted); font-size: 14.5px; }
.locker-list li.empty:hover { background: none; }
.locker-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.locker-tools .btn, .map-bar .btn { font: 700 14.5px/1 Inter, sans-serif; text-transform: none; letter-spacing: 0; gap: 8px; }
.btn.busy .ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.locker-field .hint { display: block; margin-top: 10px; }
.link { margin-top: 6px; padding: 4px 0; border: 0; background: none; color: var(--sun); font: 600 14px/1.4 Inter, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--text); }
.locker-manual { margin-top: 8px; }
.locker-picked { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: var(--ink-3); border: 1.5px solid var(--c, var(--teal)); }
.locker-picked:has(.net-omniva) { --c: var(--net-omniva); } .locker-picked:has(.net-dpd) { --c: var(--net-dpd); }
.locker-picked:has(.net-smartposti) { --c: var(--net-smartposti); } .locker-picked:has(.net-lpasts) { --c: var(--net-lpasts); }
.locker-picked:has(.net-venipak) { --c: var(--net-venipak); } .locker-picked:has(.net-unisend) { --c: var(--net-unisend); }
.locker-picked .t, .map-pick .t { display: grid; flex: 1; min-width: 0; }
.locker-picked .t b, .map-pick .t b { font-weight: 800; }
.locker-picked .t span, .map-pick .t span { font-size: 14px; color: var(--muted); }
.locker-picked .link { margin: 0; flex: none; }

/* the map dialog: a full sheet on a phone, a big card on a desktop */
html.modal-open { overflow: hidden; }
.map-dialog { width: min(980px, 100vw - 32px); height: min(760px, 100dvh - 48px); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line);
  border-radius: 22px; background: var(--ink-2); color: var(--text); overflow: hidden; }
.map-dialog[open] { display: flex; flex-direction: column; }
.map-dialog::backdrop { background: rgba(6, 3, 12, .72); backdrop-filter: blur(4px); }
@media (max-width: 699px) { .map-dialog { width: 100vw; height: 100dvh; border-radius: 0; border: 0; } }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 6px; }
.map-head h3 { margin: 0; font: 400 26px/1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text); cursor: pointer; }
.x svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
.map-bar { display: flex; gap: 10px; padding: 6px 16px 0; }
.map-bar input { min-height: 46px; padding-block: 10px; }
.map-bar .btn { flex: none; min-height: 46px; }
.map-dialog .nets { padding: 8px 16px 10px; }
.map-wrap { position: relative; flex: 1; min-height: 0; }
.map { position: absolute; inset: 0; background: #0f0a1a; }
.map-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-weight: 600; }
.map-status[hidden] { display: none; }
.map-pick { display: flex; align-items: center; gap: 14px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink-3); }
.map-pick[hidden] { display: none; }
/* OpenStreetMap, turned to night: one filter on the tiles, not on the dots */
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.88) saturate(.7); }
.map.leaflet-container { font: 500 12px/1.4 Inter, sans-serif; background: #0f0a1a; }
.map .leaflet-control-attribution { background: rgba(12, 7, 22, .75); color: var(--dim); }
.map .leaflet-control-attribution a { color: var(--muted); }
.map .leaflet-bar a { background: var(--ink-3); color: var(--text); border-color: var(--line); }
.map .leaflet-bar a:hover { background: #2a1a44; }

/* ---------- the car radio: three made-up Latvian stations (js/radio.js) ---------- */
.radio-slot { height: 72px; margin-top: 22px; }
.radio { --lcd: #ff7ab0; --lcd-glow: rgba(255, 61, 139, .55);
  position: relative; display: flex; align-items: center; gap: 10px; height: 72px; max-width: 460px; padding: 10px 12px;
  border-radius: 16px; background: linear-gradient(180deg, #221632 0%, #120b1d 100%);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .6), 0 18px 40px -18px rgba(0, 0, 0, .8); }
.radio::before { content: ''; position: absolute; inset: 0 18px auto; height: 1px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--lcd) 30%, var(--lcd) 70%, transparent); opacity: .35; transition: opacity .4s; }
.radio[data-station="jurmala"] { --lcd: #5ff5e6; --lcd-glow: rgba(46, 230, 214, .5); }
.radio[data-station="runa"] { --lcd: #ffd96a; --lcd-glow: rgba(255, 210, 63, .5); }
.radio button { display: grid; place-items: center; flex: none; padding: 0; border: 0; color: var(--muted); cursor: pointer;
  background: linear-gradient(180deg, #2c1f40, #1a1128); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 0 rgba(0, 0, 0, .55); transition: color .2s, box-shadow .3s, transform .08s; }
.radio button:hover { color: var(--text); }
.radio button:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.radio svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.r-power { width: 48px; height: 48px; border-radius: 50%; }
.radio[data-state="on"] .r-power { color: var(--lcd); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 2px var(--lcd), 0 0 22px var(--lcd-glow); }
.r-lcd { position: relative; flex: 1; min-width: 0; height: 52px; padding: 6px 10px; border-radius: 8px; overflow: hidden;
  background: #07040c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 6px 14px rgba(0, 0, 0, .85); }
.r-lcd::after { content: ''; position: absolute; inset: 0; pointer-events: none;     /* the glass: scan lines and a soft reflection */
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px), linear-gradient(160deg, rgba(255, 255, 255, .07), transparent 45%); }
.r-top { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.r-freq { position: relative; display: inline-block; min-width: 4.3ch; text-align: right; font: 400 20px/1 Anton, Impact, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--lcd); }
.r-freq::before { content: attr(data-ghost); position: absolute; right: 0; color: var(--lcd); opacity: .09; text-shadow: none; }   /* unlit segments */
.r-band { font: 800 9px/1 Inter, sans-serif; letter-spacing: .14em; color: var(--lcd); opacity: .7; }
.r-name { overflow: hidden; text-overflow: ellipsis; font: 800 11px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--lcd); }
.r-track { margin-top: 6px; overflow: hidden; white-space: nowrap; font: 600 12px/1.2 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--lcd); opacity: .85;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.r-track span { display: inline-block; padding-left: 4px; }
.radio[data-state="on"] .r-track span { animation: r-marquee 14s linear infinite; }
@keyframes r-marquee { to { transform: translateX(-50%); } }
.radio[data-state="off"] .r-lcd > * { opacity: .38; }
.radio[data-state="on"] .r-freq, .radio[data-state="on"] .r-name, .radio[data-state="on"] .r-track { text-shadow: 0 0 8px var(--lcd-glow), 0 0 2px var(--lcd); }
.r-vu { flex: none; width: 44px; height: 30px; }
.r-tune { display: flex; flex: none; gap: 6px; }
.r-tune button { width: 36px; height: 40px; border-radius: 10px; }
@media (max-width: 380px) { .r-vu { display: none; } }
/* first screen: on a phone the radio sits on the picture, over the car, just above the badge; on a wide screen it shares
   the countdown's row, on the car's bonnet */
@media (max-width: 899px) {
  .hero .radio-slot { position: absolute; left: var(--gutter); right: var(--gutter); top: -82px; height: 72px; margin: 0; }
  .hero .radio:not(.docked) { max-width: none; background: linear-gradient(180deg, rgba(34, 22, 50, .8), rgba(18, 11, 29, .88)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (min-width: 900px) {
  .hero .count-row { display: flex; align-items: flex-end; gap: 22px; width: max-content; }
  .hero .radio-slot { width: 450px; margin-top: 0; }
  .hero .radio:not(.docked) { max-width: none; background: linear-gradient(180deg, rgba(34, 22, 50, .78), rgba(18, 11, 29, .86)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (prefers-reduced-motion: reduce) { .radio[data-state="on"] .r-track span { animation: none; } }

/* once the hero scrolls away, a PLAYING radio rides along in the corner */
.radio.docked[data-state="on"] { position: fixed; z-index: 21; right: 20px; bottom: 20px; width: 380px; animation: r-dock .35s cubic-bezier(.2, .8, .2, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4); }
@keyframes r-dock { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 899px) {
  .radio.docked[data-state="on"] { left: 12px; right: auto; bottom: 12px; width: auto; height: 52px; padding: 4px; gap: 6px; border-radius: 14px; }
  .radio.docked[data-state="on"] .r-power { width: 44px; height: 44px; border-radius: 11px; }
  .radio.docked[data-state="on"] .r-lcd { display: none; }
  .radio.docked[data-state="on"] .r-vu { display: block; width: 34px; }
  .radio.docked[data-state="on"] .r-tune button { width: 30px; height: 44px; }
  html.radio-on.radio-docked .sticky { left: 186px; }
}
@media (prefers-reduced-motion: reduce) { .radio.docked[data-state="on"] { animation: none; } }
