/* ==========================================================================
   Kobasic · Dolina svjetala — dizajn sustav
   Noć u dolini, emajl-natpisi s mjedenim rubom, žar koji budi sve što dosegne.
   ========================================================================== */

/* Fontovi su na našem serveru (bez Google Fonts poziva — GDPR). Lora i DM Sans, OFL licenca. */
@font-face { font-family: "Lora"; src: url("fonts/Lora.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  /* Boje */
  --night-0: #060d10;
  --night-1: #09151a;
  --night-2: #0d1d23;
  --night-3: #12272e;
  --enamel: #16343a;
  --enamel-2: #10272d;
  --forest: #1d3a33;
  --brass: #d6ad71;
  --brass-soft: rgb(214 173 113 / .38);
  --brass-line: rgb(214 173 113 / .2);
  --ember: #f3ab56;
  --ember-hot: #ffd08c;
  --ember-glow: rgb(243 171 86 / .45);
  --ivory: #fff0c6;
  --paper: #efe3c4;
  --text: #e8e3d4;
  --text-2: #c4c7bd;
  --muted: #8f9c99;
  --line: rgb(255 240 198 / .09);
  --mist: 176 194 204;
  --ok: #86d7a2;

  /* Tipografija */
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Raspored */
  /* Rub stranice: na širokim ekranima raste tako da pruga i sadržaj stoje centrirani kao cjelina */
  --max: 1240px;
  --gap-rail: clamp(34px, 4.6vw, 78px);
  --edge: max(clamp(20px, 5vw, 84px), calc((100% - var(--max) - var(--gap-rail)) / 2));
  --rail-x: max(22px, var(--edge));
  --pad-l: calc(var(--rail-x) + var(--gap-rail));
  --pad-r: var(--edge);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--night-1); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ivory); margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgb(243 171 86 / .3); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--paper); color: #1b2a26; font-weight: 600; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

/* ── Osnovni elementi ── */
.caps { font: 600 12px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.lead { font: 400 clamp(19px, 1.55vw, 22px)/1.6 var(--sans); color: var(--text-2); max-width: 52ch; }
.h-display { font-size: clamp(64px, 9.6vw, 158px); line-height: .9; letter-spacing: -.018em; }
.h-section { font-size: clamp(38px, 4.5vw, 66px); line-height: 1.04; letter-spacing: -.012em; }
.h-card { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.15; }
.italic { font-family: var(--serif); font-style: italic; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0; font: 600 15.5px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .3s, border-color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-paper { background: var(--paper); color: #1b2a26; box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 16px 40px -18px var(--ember-glow); }
.btn-paper:hover { background: var(--ivory); box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 20px 50px -16px rgb(243 171 86 / .65); }
.btn-enamel { background: linear-gradient(180deg, var(--enamel), var(--enamel-2)); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--brass-soft), inset 0 1px 0 rgb(255 255 255 / .07), 0 10px 30px -18px #000; }
.btn-enamel:hover { box-shadow: inset 0 0 0 1px rgb(214 173 113 / .65), inset 0 1px 0 rgb(255 255 255 / .07), 0 14px 34px -16px #000; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.play { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ember); color: #1b1408; font-size: 9px; padding-left: 2px; }

/* Emajl natpis s lampicom (kao u igri) */
.sign { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 11px; border-radius: 8px; background: linear-gradient(180deg, var(--enamel), var(--enamel-2)); box-shadow: inset 0 0 0 1px var(--brass-line), inset 0 1px 0 rgb(255 255 255 / .06), 0 8px 20px -12px #000; color: var(--muted); font: 600 11.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; transition: color 1.2s, box-shadow 1.2s; }
.sign .lamp { width: 8px; height: 8px; border-radius: 50%; background: #3a4a48; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .4); transition: background 1s, box-shadow 1s; }
.is-awake .sign, .sign.on { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--brass-soft), inset 0 1px 0 rgb(255 255 255 / .06), 0 8px 20px -12px #000; }
.is-awake .sign .lamp, .sign.on .lamp { background: var(--ember-hot); box-shadow: 0 0 10px 2px var(--ember-glow); }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 13.5px; }
.chip.warm { color: var(--ember); box-shadow: inset 0 0 0 1px rgb(243 171 86 / .4); }
.chip.warm::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.chip.ok { color: var(--ok); box-shadow: inset 0 0 0 1px rgb(134 215 162 / .35); }

/* ── Magla ── */
.fog { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: var(--fog, 1); transition: opacity .8s; overflow: hidden; }
.fog i { position: absolute; width: 100vmax; height: 46vmax; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--mist) / .085), rgb(var(--mist) / .03) 55%, transparent); animation: drift 46s ease-in-out infinite alternate; will-change: transform; }
.fog i:nth-child(1) { left: -40vmax; top: 4vh; }
.fog i:nth-child(2) { right: -45vmax; top: 42vh; animation-duration: 60s; animation-delay: -22s; }
.fog i:nth-child(3) { left: 5vmax; bottom: -22vmax; animation-duration: 52s; animation-delay: -9s; }
@keyframes drift { to { transform: translate3d(24vmax, -5vmax, 0); } }

/* ── Navigacija ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 28px; padding: 20px var(--pad-r) 20px var(--rail-x); transition: background .5s, padding .4s, box-shadow .5s; }
.nav.is-solid { padding-block: 12px; background: rgb(8 18 22 / .82); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 13.5px/1 var(--sans); letter-spacing: .3em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(180deg, var(--enamel), var(--enamel-2)); box-shadow: inset 0 0 0 1px var(--brass-soft); font: 600 16px/1 var(--serif); letter-spacing: 0; color: var(--ivory); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ivory); background: rgb(255 240 198 / .05); }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 12px; background: linear-gradient(180deg, var(--enamel), var(--enamel-2)); box-shadow: inset 0 0 0 1px var(--brass-line); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: var(--ivory); transition: transform .3s, opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 55; display: grid; align-content: center; gap: 6px; padding: 90px 28px 40px; background: rgb(6 13 16 / .97); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); font: 500 30px/1.2 var(--serif); color: var(--ivory); }
.mobile-menu .btn { margin-top: 26px; font-size: 16px; }

/* ── Pruga (SVG) i žar ── */
.track { position: absolute; left: 0; top: 0; z-index: 3; width: 100%; pointer-events: none; overflow: visible; }
.track .ties { fill: none; stroke: rgb(255 240 198 / .09); stroke-width: 12; stroke-dasharray: 2 13; }
.track .rail { fill: none; stroke: rgb(255 240 198 / .16); stroke-width: 1.5; }
.track .lit { fill: none; stroke: url(#emberGradient); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 5px rgb(243 171 86 / .75)); }
.ember { position: absolute; left: 0; top: 0; z-index: 4; width: 0; height: 0; pointer-events: none; will-change: transform; }
.ember::before { content: ""; position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, rgb(255 208 140 / .55), rgb(243 171 86 / .18) 40%, transparent 70%); animation: halo 2.6s ease-in-out infinite; }
.ember::after { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff7e2, var(--ember-hot) 45%, var(--ember)); box-shadow: 0 0 16px 4px var(--ember-glow); }
@keyframes halo { 50% { transform: scale(1.25); opacity: .8; } }
.ember-spark { position: absolute; z-index: 4; width: 3px; height: 3px; border-radius: 50%; background: var(--ember-hot); box-shadow: 0 0 6px var(--ember); pointer-events: none; animation: spark 1.4s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

/* Oznaka trenutne postaje */
.now-at { position: fixed; left: var(--rail-x); bottom: 22px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 12px; background: rgb(12 27 32 / .9); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--brass-line), 0 14px 30px -14px #000; font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s var(--ease); }
.now-at.on { opacity: 1; transform: none; }
.now-at b { color: var(--ivory); font-weight: 600; letter-spacing: .08em; }
.now-at i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember-hot); box-shadow: 0 0 10px 2px var(--ember-glow); }

/* ── Uvod ── */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px var(--pad-r) 150px var(--pad-l); overflow: hidden; isolation: isolate; }
.hero-scene { position: absolute; top: 0; right: 0; bottom: 0; z-index: -2; width: min(56vw, 920px);
  /* Meki prijelaz u noć s lijeve, gornje i donje strane (maska radi i kad je video na zasebnom sloju) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .55) 16%, #000 42%), linear-gradient(180deg, transparent 0%, #000 16%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .55) 16%, #000 42%), linear-gradient(180deg, transparent 0%, #000 16%, #000 76%, transparent 100%);
  mask-composite: intersect; }
.hero-scene :is(video, img) { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.82); transition: filter 3s var(--ease); }
.hero.is-awake .hero-scene :is(video, img) { filter: saturate(1.05) brightness(.95); }
.hero-scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 45% at 55% 50%, rgb(var(--mist) / .18), transparent 70%); transition: opacity 3s var(--ease); }
.hero.is-awake .hero-scene::after { opacity: .3; }
.hero-glow { position: absolute; z-index: -1; right: 12%; top: 38%; width: 60vmin; height: 60vmin; border-radius: 50%; background: radial-gradient(closest-side, rgb(243 171 86 / .22), transparent); opacity: 0; transform: scale(.6); transition: opacity 3s var(--ease), transform 3s var(--ease); pointer-events: none; }
.hero.is-awake .hero-glow { opacity: 1; transform: none; }
.hero-copy { position: relative; max-width: 640px; }
.hero-copy > * { animation: rise 1.2s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-copy > :nth-child(6) { animation-delay: .4s; }
.hero-copy > :nth-child(7) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.flame { width: 46px; height: 60px; margin: 22px 0 14px; filter: drop-shadow(0 0 16px rgb(243 171 86 / .85)); transform-origin: 50% 90%; animation: rise 1.2s .1s var(--ease) both, flicker 3.4s ease-in-out 1.3s infinite !important; }
@keyframes flicker { 25% { transform: scale(1.04, .96) rotate(-1.5deg); } 50% { transform: scale(.97, 1.05) rotate(1deg); } 75% { transform: scale(1.02, .99); } }
.hero h1 { text-shadow: 0 0 70px rgb(243 171 86 / .22); }
:is(.hero, .g-hero) .tagline { margin: 22px 0 0; font: italic 400 clamp(22px, 2.2vw, 30px)/1.3 var(--serif); color: #f6e5bf; }
:is(.hero, .g-hero) .lead { margin: 16px 0 0; }
:is(.hero, .g-hero) .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
:is(.hero, .g-hero) .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.line-up { position: absolute; left: var(--pad-l); right: var(--pad-r); bottom: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.line-up > span { color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.line-up nav { display: flex; gap: 8px; }
.line-up a { position: relative; display: block; width: 40px; height: 40px; border-radius: 11px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 8px 20px -10px #000; filter: grayscale(.6) brightness(.8); transition: filter .4s, transform .4s var(--ease), box-shadow .4s; }
.line-up a:hover, .line-up a:focus-visible { filter: none; transform: translateY(-3px); box-shadow: 0 0 0 1px var(--c), 0 10px 26px -10px var(--c); }
.line-up a img { width: 100%; height: 100%; object-fit: cover; }
.line-up a span { position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 4px; padding: 5px 10px; border-radius: 8px; background: var(--night-3); box-shadow: inset 0 0 0 1px var(--brass-line); color: var(--ivory); font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.line-up a:hover span { opacity: 1; translate: -50% 0; }
.line-up a { overflow: visible; }
.line-up a img { border-radius: 11px; }

/* ── Postaje (sekcije) ── */
.valley-main { position: relative; display: block; }
.station { position: relative; padding: clamp(64px, 9vh, 104px) var(--pad-r) clamp(64px, 9vh, 104px) var(--pad-l); }
.station + .station { border-top: 1px solid rgb(255 240 198 / .035); }
.stop { position: absolute; z-index: 5; left: calc(var(--rail-x) - 11px); top: calc(clamp(64px, 9vh, 104px) + 6px); width: 22px; height: 22px; border-radius: 50%; background: var(--night-1); box-shadow: inset 0 0 0 2px rgb(255 240 198 / .22); transition: box-shadow 1s, background 1s; }
.stop::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgb(255 240 198 / .12); transition: background 1s; }
.station.is-awake .stop { box-shadow: inset 0 0 0 2px var(--ember), 0 0 26px 6px rgb(243 171 86 / .35); }
.station.is-awake .stop::after { background: var(--ember-hot); }
.station::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(46% 55% at 28% 42%, rgb(243 171 86 / .075), transparent 70%); opacity: 0; transition: opacity 2.2s var(--ease); pointer-events: none; }
.station.is-awake::before { opacity: 1; }
.inner { max-width: var(--max); }
.station-head { display: grid; justify-items: start; gap: 18px; margin-bottom: clamp(34px, 5vh, 56px); max-width: 760px; }
.station-head .lead { margin: 0; }

/* Buđenje: mediji su prigušeni i u magli dok žar ne stigne; tekst ostaje čitljiv */
.wake { transition: filter 1.8s var(--ease), opacity 1.8s var(--ease), transform 1.8s var(--ease); }
.station:not(.is-awake) .wake { filter: grayscale(.8) brightness(.62) contrast(.9); opacity: .82; transform: translateY(14px); }
.station:not(.is-awake) .wake-text { opacity: .72; transform: translateY(10px); }
.wake-text { transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }

/* Okvir za video/sliku */
.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night-2); box-shadow: 0 0 0 1px var(--line), 0 40px 90px -46px #000; transition: box-shadow 1.6s var(--ease); }
.station.is-awake .frame { box-shadow: 0 0 0 1px rgb(214 173 113 / .28), 0 40px 90px -46px #000, 0 0 90px -40px rgb(243 171 86 / .5); }
.frame video, .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 10px; border-radius: 8px; background: rgb(6 13 16 / .72); backdrop-filter: blur(6px); color: var(--text-2); font-size: 12px; }

/* Postaja 1: uvod u igru */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.split .frame { aspect-ratio: 4 / 5; width: min(440px, 100%); justify-self: center; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 34px; }
.fact { padding: 16px 14px; border-radius: 14px; background: linear-gradient(180deg, rgb(22 52 58 / .55), rgb(16 39 45 / .35)); box-shadow: inset 0 0 0 1px var(--line); }
.fact strong { display: block; font: 500 36px/1 var(--serif); color: var(--ivory); }
.fact span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.35; }

/* Postaja 2: kako se igra (tri kartice) */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.play-card .frame { aspect-ratio: 4 / 5; }
.play-card h3 { margin: 22px 0 8px; }
.play-card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.play-card .num { display: block; margin-top: 20px; font: italic 400 17px var(--serif); color: var(--brass); }

/* Postaja 3: regije */
.regions { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.region { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 22px 20px 20px; border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--t) 30%, var(--night-2)), var(--night-2) 70%); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.region::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--t); opacity: .8; }
.region svg { width: 34px; height: 34px; color: color-mix(in srgb, var(--t) 60%, #fff); opacity: .9; }
.region b { margin-top: 18px; font: italic 400 14px var(--serif); color: var(--muted); }
.region h3 { margin: 4px 0 8px; font-size: 22px; line-height: 1.15; }
.region p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.region .state { margin-top: auto; padding-top: 18px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.region.open { background: var(--paper); box-shadow: 0 30px 60px -34px rgb(243 171 86 / .7); }
.region.open svg { color: #2f6a4f; }
.region.open b, .region.open p { color: #56615b; }
.region.open h3 { color: #17231f; }
.region.open .state { color: #9a5a17; }
.region.open .state::before { content: "● "; color: #2f8a55; }
.region:not(.open) h3 { color: rgb(255 240 198 / .72); }

/* Postaja 4: beta karta + screenshotovi */
.beta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.ticket { position: relative; display: grid; grid-template-columns: 1fr 176px; border-radius: 22px; background: var(--paper); color: #1f2622; box-shadow: 0 40px 90px -34px #000, 0 0 90px -40px var(--ember-glow); transform: rotate(-1.2deg); transition: transform .7s var(--ease); }
.ticket:hover { transform: rotate(0) translateY(-4px); }
.ticket-main { padding: 24px 26px; }
.ticket-art { position: relative; height: 136px; margin: -24px -26px 20px; border-radius: 22px 0 0 0; background: center / cover; }
.ticket-art::after { content: "TICKET · BETA"; position: absolute; left: 18px; top: 14px; padding: 4px 10px; border-radius: 6px; background: rgb(8 18 22 / .78); color: var(--ember); font: 700 10.5px/1.3 var(--sans); letter-spacing: .2em; }
.route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.route small, .ticket-meta small { display: block; font: 700 10px/1.3 var(--sans); letter-spacing: .16em; color: #857a64; text-transform: uppercase; }
.route b { display: block; font: 500 23px/1.12 var(--serif); }
.route i { font-style: normal; font-size: 22px; color: #b67a2c; }
.ticket-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed #cdbd9b; }
.ticket-meta b { font: 600 14.5px/1.3 var(--sans); }
.ticket-stub { position: relative; display: grid; align-content: space-between; gap: 16px; padding: 24px 20px; border-left: 2px dashed #cdbd9b; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--night-1); }
.ticket-stub::before { top: -12px; } .ticket-stub::after { bottom: -12px; }
.ticket-stub img { width: 58px; height: 58px; border-radius: 15px; }
.ticket-note { font: 700 10px/1.3 var(--sans); letter-spacing: .16em; color: #857a64; }
.barcode { height: 48px; background: repeating-linear-gradient(90deg, #1f2622 0 2px, transparent 2px 4px, #1f2622 4px 5px, transparent 5px 8px, #1f2622 8px 11px, transparent 11px 12px); }
.ticket-stub .btn { min-height: 44px; padding: 0 10px; font-size: 14px; }
.btn-ink { background: #1b2a26; color: var(--paper); }
.btn-ink:hover { background: #10201c; }
.filmstrip { display: flex; gap: 14px; margin-top: 56px; padding: 6px 2px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--brass-soft) transparent; }
.filmstrip.flush { margin-top: 0; }
.filmstrip button { flex: 0 0 auto; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--night-2); cursor: zoom-in; scroll-snap-align: start; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .4s; }
.filmstrip button:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--brass-soft), 0 24px 40px -24px #000; }
.filmstrip img { height: clamp(300px, 42vh, 380px); width: auto; max-width: none; }

/* Postaja 5: ostale igre */
.stops { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.stop-card { position: relative; display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 22px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 22px; background: linear-gradient(180deg, rgb(18 39 46 / .7), rgb(13 29 35 / .7)); box-shadow: inset 0 0 0 1px var(--line); transition: filter 1.4s var(--ease), opacity 1.4s var(--ease), transform .5s var(--ease), box-shadow .5s; }
.stop-card:not(.is-lit) { filter: grayscale(.85) brightness(.62); opacity: .74; }
.stop-card:hover, .stop-card:focus-visible { filter: none; opacity: 1; transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 26px 50px -30px color-mix(in srgb, var(--c) 75%, transparent); }
.stop-card .art { position: relative; display: block; width: 168px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.stop-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.stop-card:hover .art img { transform: scale(1.06); }
.stop-card .icon { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 2px var(--night-2), 0 6px 14px rgb(0 0 0 / .5); }
.stop-card h3 { font-size: 23px; }
.stop-card p { margin: 6px 0 12px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.stop-card .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stop-card .meta b { color: var(--c); font-weight: 600; }
.stop-card .go { position: absolute; right: 16px; top: 14px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.stop-card:hover .go { transform: translate(3px, -3px); color: var(--ivory); }

/* Postaja 6: kraj pruge */
.terminus { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.terminus blockquote { margin: 0; font: italic 400 clamp(30px, 3.6vw, 50px)/1.2 var(--serif); color: var(--ivory); }
.terminus .frame { aspect-ratio: 27 / 35; width: min(400px, 100%); justify-self: center; }
.contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── Podnožje ── */
.footer { position: relative; z-index: 6; padding: 70px var(--pad-r) 36px var(--pad-l); background: var(--night-0); box-shadow: inset 0 1px 0 var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; max-width: var(--max); }
.footer .h4 { margin: 0 0 14px; font: 600 12px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer li a { color: var(--text-2); font-size: 15px; }
.footer li a:hover { color: var(--ivory); }
.footer p { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: var(--max); margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* ── Lightbox ── */
dialog.lightbox { width: min(980px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 24px; background: #000; overflow: hidden; box-shadow: 0 0 0 1px var(--brass-line); }
dialog.lightbox::backdrop { background: rgb(4 9 11 / .9); backdrop-filter: blur(8px); }
dialog.lightbox video, dialog.lightbox img { width: 100%; max-height: 92vh; object-fit: contain; }
dialog.lightbox button { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; font-size: 17px; cursor: pointer; }

/* ── Stranica igre ── */
.g-hero { position: relative; min-height: 94svh; display: grid; align-items: center; padding: 120px var(--pad-r) 110px var(--pad-l); overflow: hidden; isolation: isolate; }
.g-hero-art { position: absolute; inset: 0; z-index: -2; }
.g-hero-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8) brightness(.35); transform: scale(1.06); transition: filter 2.6s var(--ease) .3s, transform 10s ease-out; }
.g-hero.is-awake .g-hero-art img { filter: grayscale(0) brightness(.55); transform: none; }
.g-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--night-1) 5%, rgb(9 21 26 / .6) 50%, rgb(9 21 26 / .25)), linear-gradient(0deg, var(--night-1), transparent 40%); }
.g-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 50px; align-items: center; max-width: var(--max); }
.g-hero .icon { width: 96px; height: 96px; border-radius: 26px; margin: 20px 0 22px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -16px var(--c, var(--ember)); }
.g-hero h1 { font-size: clamp(54px, 7.6vw, 124px); line-height: .92; }
.phone { justify-self: center; width: min(290px, 70vw); padding: 7px; border-radius: 34px; background: linear-gradient(160deg, rgb(214 173 113 / .6), rgb(214 173 113 / .1) 40%, rgb(214 173 113 / .4)); box-shadow: 0 40px 90px -30px #000, 0 0 90px -40px var(--c, var(--ember)); }
.phone img, .phone video { width: 100%; height: auto; max-height: 76vh; object-fit: cover; border-radius: 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.story .lead { max-width: 60ch; margin: 0; }
.story .features { grid-template-columns: 1fr; gap: 12px; }
.story .feature { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 22px 22px 22px 18px; }
.story .feature b { grid-row: span 2; padding-top: 4px; }
.story .feature h3 { margin: 0 0 4px; font-size: 22px; }
.feature { padding: 28px 24px; border-radius: 20px; background: linear-gradient(180deg, rgb(22 52 58 / .5), rgb(13 29 35 / .3)); box-shadow: inset 0 0 0 1px var(--line); }
.feature b { font: italic 400 17px var(--serif); color: var(--brass); }
.feature h3 { margin: 18px 0 8px; font-size: 24px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.detail { padding: 18px; border-radius: 16px; background: rgb(13 29 35 / .6); box-shadow: inset 0 0 0 1px var(--line); }
.detail span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.detail strong { display: block; margin-top: 6px; font: 500 18px/1.3 var(--serif); color: var(--ivory); word-break: break-word; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.doc-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(180deg, var(--enamel), var(--enamel-2)); box-shadow: inset 0 0 0 1px var(--brass-line); transition: box-shadow .3s, transform .4s var(--ease); }
.doc-link:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--brass-soft); }
.doc-link svg { width: 22px; height: 22px; color: var(--brass); flex: none; }
.doc-link b { display: block; color: var(--ivory); font-weight: 600; }
.doc-link small { color: var(--muted); font-size: 13px; }
.doc-link .arrow { margin-left: auto; color: var(--muted); }

/* ── Dokumenti (Privacy, Support) ── */
.doc-page { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); padding: 150px var(--pad-r) 100px var(--pad-l); }
.doc-page header { grid-column: 1 / -1; display: grid; gap: 16px; margin-bottom: 20px; }
.doc-page header h1 { font-size: clamp(44px, 6vw, 84px); line-height: .98; }
.doc-page header p { margin: 0; color: var(--muted); }
.doc-page header .sign, .doc-page header .chips, .doc-page header .contact { justify-self: start; }
.doc-page header .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toc { position: sticky; top: 100px; align-self: start; }
.toc .h4 { margin: 0 0 14px; font: 600 12px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.toc ol { position: relative; list-style: none; margin: 0; padding: 0 0 0 22px; }
.toc ol::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(rgb(255 240 198 / .14) 0 6px, transparent 6px 12px); }
.toc li a { position: relative; display: block; padding: 6px 0; color: var(--muted); font-size: 14.5px; line-height: 1.35; transition: color .3s; }
.toc li a::before { content: ""; position: absolute; left: -22px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--night-1); box-shadow: inset 0 0 0 2px rgb(255 240 198 / .2); transition: box-shadow .4s, background .4s; }
.toc li a.on { color: var(--ivory); }
.toc li a.on::before { background: var(--ember-hot); box-shadow: inset 0 0 0 2px var(--ember), 0 0 12px 3px var(--ember-glow); }
.prose { max-width: 720px; }
.prose h2 { margin: 54px 0 14px; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); }
.prose a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(243 171 86 / .4); }
.prose strong { color: var(--ivory); font-weight: 600; }
.prose code { padding: 2px 7px; border-radius: 6px; background: var(--night-3); color: var(--ivory); font-size: .88em; }
.service { display: grid; gap: 3px; padding: 16px 18px; margin-bottom: 10px; border-radius: 14px; background: rgb(13 29 35 / .7); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none !important; color: var(--text) !important; transition: box-shadow .3s; }
.service:hover { box-shadow: inset 0 0 0 1px var(--brass-soft); }
.service b { color: var(--ivory); }
.service small { color: var(--muted); }
.note-box { margin-top: 50px; padding: 18px 20px; border-radius: 14px; background: rgb(22 52 58 / .4); box-shadow: inset 0 0 0 1px var(--brass-line); color: var(--text-2); font-size: 14.5px; }
details.faq { border-radius: 16px; background: rgb(13 29 35 / .6); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; }
details.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font: 500 19px/1.3 var(--serif); color: var(--ivory); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brass); font: 400 22px/1 var(--sans); transition: transform .3s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0; padding: 0 20px 20px; color: var(--text-2); }

/* Popis dokumenata po igrama (Support) */
.game-docs { display: flex; align-items: center; gap: 14px; }
.game-docs img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.game-docs > span { flex: 1; display: grid; gap: 2px; }
.prose .game-docs a.name { color: var(--ivory); font-weight: 600; text-decoration: none; }
.prose .contact { margin-top: 40px; }

/* Obavijest za prijavljenog admina (pregled skice) */
.admin-notice { position: fixed; left: 50%; bottom: 18px; z-index: 70; translate: -50% 0; display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 12px; background: #2a1d3d; box-shadow: inset 0 0 0 1px #8b6cd6, 0 14px 30px -12px #000; color: #efe7ff; font-size: 14px; }
.admin-notice a { color: #c9b6ff; text-decoration: underline; }

/* 404 */
.lost { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 24px; overflow: hidden; }
.lost .lantern { width: 70px; height: 92px; margin: 0 auto 26px; opacity: .45; filter: grayscale(1); animation: dim 4s ease-in-out infinite; }
@keyframes dim { 50% { opacity: .25; } }
.lost h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1; }
.lost p { margin: 18px auto 30px; max-width: 44ch; color: var(--text-2); }

/* ── Prilagodbe ── */
@media (max-width: 1100px) {
  .trio { grid-template-columns: 1fr 1fr; }
  .trio > :last-child { grid-column: span 2; }
  .regions { grid-template-columns: repeat(5, minmax(220px, 1fr)); overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .region { scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .hero { align-items: start; padding-top: 110px; padding-bottom: 60px; }
  .hero-scene { position: relative; align-self: stretch; width: auto; height: 62vh; margin: 34px calc(var(--pad-r) * -1) 0 calc(var(--pad-l) * -1); order: 2; }
  .hero-scene { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 72%, transparent 100%); }
  .hero { display: flex; flex-direction: column; }
  .hero-glow { right: 0; top: 60%; }
  .line-up { position: static; margin-top: 26px; order: 3; }
  .split, .beta, .terminus, .g-hero-grid, .story { grid-template-columns: 1fr; }
  .stops { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .features, .details, .docs { grid-template-columns: 1fr; }
  .doc-page { grid-template-columns: 1fr; padding-top: 120px; }
  .toc { position: static; }
  .ticket { transform: none; }
}
@media (max-width: 620px) {
  .trio { grid-template-columns: 1fr; }
  .trio > :last-child { grid-column: auto; }
  .stop-card { grid-template-columns: 1fr; padding: 12px; }
  .stop-card .art { width: 100%; aspect-ratio: 16 / 9; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-left: 0; border-top: 2px dashed #cdbd9b; grid-template-columns: auto 1fr; align-items: center; }
  .ticket-stub::before, .ticket-stub::after { display: none; }
  .ticket-stub .btn { grid-column: 1 / -1; }
  .ticket-meta { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .now-at { left: 12px; bottom: 12px; }
  .admin-notice { left: 12px; right: 12px; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .station:not(.is-awake) .wake, .station:not(.is-awake) .wake-text { filter: none; opacity: 1; transform: none; }
  .stop-card:not(.is-lit) { filter: none; opacity: 1; }
}
