/* =========================================================
   OKO SVIJETA — vesela ekspedicija u stilu putnog plakata
   ========================================================= */
:root {
  --sky-top: #8fd3f0;
  --sky-bottom: #ffe3b0;
  --sun: #ffc93c;
  --sea: #6cc3e6;
  --sea-deep: #3f9fcf;
  --land: #ffd96a;
  --land-2: #8fd17f;
  --coral: #ff6b4a;
  --coral-dark: #d94a2b;
  --teal: #13a39a;
  --navy: #1f3a5f;
  --ink: #1d2a3a;
  --ink-2: #5a6474;
  --cream: var(--card);
  --paper: #fdf1d6;
  --line: #e9d6a9;
  --region: #2f7dd1;
  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --type: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --shadow: 4px 4px 0 var(--edge);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(31,58,95,.07) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
button { font: inherit; }

/* ---------------------------------------------------------- SADRŽAJ */
.wrap { max-width: 680px; margin: 0 auto; padding: 14px 16px 40px; }

.ticket {
  background: var(--cream); border: 2.5px solid var(--edge); border-radius: 18px; box-shadow: 6px 6px 0 var(--edge);
  overflow: hidden;
}
.t-head {
  background: var(--region); color: #fff; padding: 14px 20px 16px; position: relative;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.09) 0 12px, transparent 12px 24px);
}
.t-top { display: flex; justify-content: space-between; gap: 10px; font-family: var(--type); font-weight: 700; font-size: 13px; opacity: .92; }
.t-region { display: block; font-family: var(--display); font-size: clamp(30px, 8vw, 40px); line-height: 1; margin-top: 6px; text-shadow: 2px 2px 0 rgba(0,0,0,.18); }
.t-leg { display: inline-block; margin-top: 8px; font-family: var(--type); font-weight: 700; font-size: 13px; background: rgba(255,255,255,.95); color: var(--ink); padding: 2px 10px; border-radius: 99px; }
.t-perf { height: 0; border-top: 3px dotted var(--line); margin: 0 16px; }
.t-body { padding: 18px 20px 22px; }

.pips { display: flex; gap: 5px; margin-bottom: 14px; }
.pip { flex: 1; height: 10px; border-radius: 99px; background: var(--track); }
.pip.now { background: var(--sun); box-shadow: inset 0 0 0 2px var(--edge); }
.pip.ok { background: var(--teal); }
.pip.miss { background: var(--dash); }

.intro { font-style: italic; color: var(--ink-2); margin: 0 0 14px; }
.q-label { font-family: var(--type); font-weight: 700; font-size: 13px; color: var(--ink-2); margin: 0 0 2px; }
.question { font-family: var(--display); font-size: clamp(28px, 7.6vw, 38px); line-height: 1.05; margin: 0 0 18px; color: var(--head); }

.answer { display: flex; gap: 8px; }
.answer input {
  flex: 1; min-width: 0; font-family: var(--type); font-weight: 700; font-size: 19px;
  padding: 12px 14px; border: 2.5px solid var(--edge); border-radius: 12px; background: var(--field); color: var(--ink);
}
.answer input::placeholder { color: var(--mute); font-weight: 400; }
.answer input:focus { outline: none; box-shadow: 0 0 0 4px rgba(19,163,154,.3); }
.go {
  border: 2.5px solid var(--edge); border-radius: 12px; background: var(--coral); color: #fff; cursor: pointer;
  font-family: var(--display); font-size: 21px; padding: 0 18px; box-shadow: 3px 3px 0 var(--edge);
  transition: transform .08s, box-shadow .08s;
}
.go:active, .big-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--edge); }
.go:disabled { opacity: .6; cursor: wait; }
.row-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.text-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink-2); font-family: var(--type); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--coral-dark); }
.hint { font-family: var(--type); font-size: 13px; color: var(--ink-2); }

/* rezultat odgovora */
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.stamp-big {
  width: 128px; height: 128px; border-radius: 50%; flex: none;
  background: var(--field); border: 3px dashed var(--teal); outline: 4px solid var(--field); box-shadow: 0 0 0 7px var(--teal);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--teal); transform: rotate(-8deg); margin: 8px;
  animation: thump .45s cubic-bezier(.2,1.6,.4,1);
}
.sb-emoji { font-size: 40px; line-height: 1; }
.sb-km { font-family: var(--display); font-size: 26px; line-height: 1; margin-top: 2px; }
.sb-name { font-family: var(--type); font-weight: 700; font-size: 11px; line-height: 1.1; }
.stamp-big.bad { color: var(--coral-dark); border-color: var(--coral-dark); box-shadow: 0 0 0 7px var(--coral-dark); transform: rotate(6deg); }
@keyframes thump { 0% { transform: scale(1.7) rotate(-25deg); opacity: 0; } 100% { transform: scale(1) rotate(-8deg); opacity: 1; } }
.v-answer { font-family: var(--display); font-size: 26px; line-height: 1.1; margin: 0; color: var(--head); word-break: break-word; }
.rarity { display: flex; gap: 3px; margin: 8px 0 0; }
.rarity i { width: 16px; height: 8px; border-radius: 99px; background: var(--track); }
.rarity i.on { background: var(--coral); }
.v-meta { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }
.v-hint { font-size: 15px; margin: 14px 0 0; padding: 10px 12px; background: var(--tint-y); border-radius: 10px; }

.big-btn {
  display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 18px; cursor: pointer;
  background: var(--sun); color: var(--ink); border: 2.5px solid var(--edge); border-radius: 14px; box-shadow: 4px 4px 0 var(--edge);
  padding: 13px 18px; font-family: var(--display); font-size: 22px; text-align: left; transition: transform .08s, box-shadow .08s;
}
.big-btn::after { content: "→"; }
.big-btn.alt { background: var(--field); }
.big-btn.coral { background: var(--coral); color: #fff; }

/* izvještaj */
.report-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rt-num { font-family: var(--display); white-space: nowrap; font-size: clamp(38px, 11vw, 58px); line-height: .95; color: var(--coral); text-shadow: 3px 3px 0 var(--edge); }
.rt-lab { font-family: var(--type); font-weight: 700; color: var(--ink-2); }
.log { list-style: none; margin: 16px 0 0; padding: 0; }
.log li { display: grid; grid-template-columns: 36px 1fr auto; gap: 0 10px; align-items: center; padding: 8px 0; border-bottom: 2px dotted var(--line); }
.log .le { font-size: 24px; text-align: center; }
.log .lq { display: block; font-family: var(--type); font-size: 12px; color: var(--ink-2); line-height: 1.2; }
.log .la { font-weight: 700; }
.log .la.miss { color: var(--ink-2); font-weight: 400; text-decoration: line-through; }
.log .lk { font-family: var(--display); font-size: 18px; white-space: nowrap; color: var(--teal); }
.log .lk.zero { color: var(--mute); }
.share-box { margin-top: 18px; background: var(--field); border: 2px dashed var(--ink-2); border-radius: 12px; padding: 12px 14px; font-family: var(--type); font-size: 14px; white-space: pre-wrap; }
.warn { margin-top: 14px; padding: 12px 14px; background: var(--tint-b); border-radius: 12px; border: 2px solid var(--sea-deep); font-size: 15px; }
.countdown { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 16px; }
.cd-lab { font-family: var(--type); font-weight: 700; font-size: 13px; }
.cd-time { font-family: var(--display); font-size: 30px; letter-spacing: .03em; color: var(--sun); }
.missed { margin-top: 18px; }
.missed h3 { font-family: var(--type); font-size: 13px; color: var(--ink-2); margin: 0 0 4px; }
.missed .big-btn { margin-top: 10px; font-size: 19px; }

/* ---------------------------------------------------------- PUTOVNICA */
.passport { margin-top: 34px; border: 2.5px solid var(--edge); border-radius: 18px; overflow: hidden; box-shadow: 6px 6px 0 var(--edge); }
.pp-cover { display: flex; align-items: center; gap: 14px; background: var(--navy); color: #f6d47a; padding: 14px 18px; }
.pp-crest { font-size: 34px; width: 54px; height: 54px; border: 2px solid #f6d47a; border-radius: 50%; display: grid; place-items: center; }
.pp-title { font-family: var(--display); font-size: 30px; line-height: 1; }
.pp-sub { font-family: var(--type); font-weight: 700; font-size: 13px; opacity: .85; }
.pp-page {
  padding: 18px; background: var(--card2);
  background-image: repeating-radial-gradient(circle at 0 100%, transparent 0 10px, rgba(31,58,95,.05) 10px 11px);
}
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 14px 10px; }
.st {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8px; color: var(--c, var(--head)); line-height: 1.1;
  border: 3px solid currentColor; border-radius: 50%; background: color-mix(in srgb, currentColor 9%, transparent);
}
.st.s1 { border-radius: 14px; aspect-ratio: 5 / 4; align-self: center; border-style: double; border-width: 5px; }
.st.s2 { border-style: dashed; }
.st.s3 { border-radius: 50% 50% 14px 14px; }
.st .st-f { font-size: 22px; }
.st .st-c { font-family: var(--display); font-size: 12.5px; max-width: 100%; }
.st .st-d { font-family: var(--type); font-weight: 700; font-size: 10px; margin-top: 2px; }
.st.empty { color: var(--dash); border: 2.5px dashed var(--dash); background: none; }
.st.empty .st-c { font-size: 24px; }

/* ---------------------------------------------------------- VODIČ */
.guide { margin-top: 34px; }
.guide h2 { font-family: var(--display); font-size: 30px; margin: 0 0 6px; color: var(--head); }
.tt-wrap { background: var(--field); border: 2.5px solid var(--edge); border-radius: 14px; overflow: hidden; margin-top: 14px; }
.tt { width: 100%; border-collapse: collapse; font-size: 14px; }
.tt td:nth-child(2), .tt td:nth-child(3) { line-height: 1.25; }
.tt td:first-child { white-space: nowrap; font-family: var(--type); font-size: 13px; }
.tt th { text-align: left; font-family: var(--type); font-size: 12px; color: var(--ink-2); padding: 8px 10px; background: var(--tint-y); border-bottom: 2px solid var(--edge); }
.tt td { padding: 7px 10px; border-bottom: 1px dotted var(--line); }
.tt tr:last-child td { border-bottom: 0; }
.tt td:last-child, .tt th:last-child { text-align: right; font-family: var(--display); }
.tt .em { font-size: 18px; margin-right: 4px; }
.tt-note { font-size: 15px; color: var(--ink-2); margin-top: 10px; }

.foot { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--type); font-size: 12px; color: var(--ink-2); }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); z-index: 20;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 99px; border: 2px solid var(--edge);
  font-family: var(--type); font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall 2.4s cubic-bezier(.3,.6,.6,1) forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--r)); } }

@media (max-width: 420px) {
  .tags { gap: 8px; }
  .tag { padding: 7px 6px 8px 9px; }
  .tag::before { right: 6px; top: 6px; }
  .verdict { grid-template-columns: 1fr; justify-items: start; }
  .answer { flex-direction: column; }
  .go { padding: 12px; }
}
@media (min-width: 760px) {
  .logo { width: 66px; height: 66px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   VERZIJA 4: zum karte, početni ekran, sitna poboljšanja
   ========================================================= */
#map { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
#map.zoomed { cursor: grab; }
#map.dragging { cursor: grabbing; }
#map .route, #map .done, #map .wp, :is(#map, #travel) .me-bg { vector-effect: non-scaling-stroke; }
#map .lbl {
  font-family: var(--type); font-weight: 700; fill: var(--navy);
  paint-order: stroke; stroke: var(--halo); stroke-width: 3px; stroke-linejoin: round;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
#map.labels .lbl { opacity: 1; }
#map .lbl.passed { fill: var(--coral-dark); }

.map-ctrl { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.map-btn {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; cursor: pointer;
  background: var(--cream); color: var(--ink); border: 2px solid var(--edge); box-shadow: 2px 2px 0 var(--edge);
  font-family: var(--display); font-size: 18px; line-height: 1;
}
.map-btn.wide { font-family: var(--type); font-weight: 700; font-size: 13px; }
.map-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.map-tip {
  position: absolute; right: 10px; bottom: 10px; margin: 0; font-family: var(--type); font-size: 11px; font-weight: 700;
  background: var(--halo); padding: 2px 8px; border-radius: 99px; opacity: 0; transition: opacity .3s; pointer-events: none;
}
.map-card.zoomed .map-tip { opacity: 1; }
@media (max-width: 420px) { .map-tip { display: none; } }

/* početni ekran dana */
.start-lead { font-size: 18px; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  background: var(--field); border: 2px solid var(--edge); font-family: var(--type); font-weight: 700; font-size: 13px;
}
.how { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 10px; }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; background: var(--field); border-radius: 12px; padding: 10px 12px; border: 2px dashed var(--line); }
.how .hi { font-size: 26px; text-align: center; }
.start-btn { font-size: 28px; padding: 16px 20px; justify-content: center; gap: 12px; }
.start-btn::after { content: "🧭"; }

/* tijekom igre */
.day-km { font-family: var(--display); }
.appeal { margin-top: 10px; }
.appeal .text-btn { font-size: 13px; }
.appeal-done { font-family: var(--type); font-size: 13px; color: var(--teal); font-weight: 700; }

/* izvještaj */
.streak { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.share-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.share-row .big-btn { margin-top: 12px; }
.copy-btn { width: auto; padding: 13px 16px; }
.copy-btn::after { content: ""; }

/* =========================================================
   VERZIJA 5: prava karta, prijava, profil
   ========================================================= */
#map .land { stroke: none; }
#map .borders { fill: none; stroke: rgba(255,255,255,.95); stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
#map .coast { fill: none; stroke: #2c6f93; stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: .55; }
#map .grat { fill: none; stroke: rgba(255,255,255,.35); stroke-width: .7; vector-effect: non-scaling-stroke; stroke-dasharray: 2 4; }
#map .route { stroke: var(--navy); opacity: .65; stroke-width: 2.2; }
#map .done { stroke-width: 5.5; }

/* gumb za račun */
.brand-text { flex: 1; min-width: 0; }
.acct-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--cream); color: var(--ink); border: 2.5px solid var(--edge); border-radius: 99px;
  padding: 6px 12px 6px 8px; box-shadow: 3px 3px 0 var(--edge); font-family: var(--type); font-weight: 700; font-size: 14px;
  max-width: 42vw;
}
.acct-btn span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn.in { background: var(--sun); }
.acct-ico { font-size: 18px; }
.acct-btn:active { transform: translate(3px, 3px); box-shadow: none; }

/* Fogg etiketa je gumb */
button.tag { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.info { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--edge); color: #fff; font-size: 10px; font-style: italic; margin-left: 2px; vertical-align: 1px; }

/* putovnica na naslovnici je gumb za profil */
.pp-open { width: 100%; border: 0; cursor: pointer; text-align: left; font: inherit; }
.pp-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pp-go { font-family: var(--type); font-weight: 700; font-size: 13px; background: #f6d47a; color: var(--head); border-radius: 99px; padding: 4px 10px; white-space: nowrap; }

/* modal */
.modal {
  width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 22px 20px 20px;
  border: 2.5px solid var(--edge); border-radius: 20px; box-shadow: 8px 8px 0 var(--edge);
  background: var(--cream); color: var(--ink); overflow: auto;
}
.modal::backdrop { background: rgba(31, 58, 95, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .3s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--edge); background: var(--field); cursor: pointer; font-size: 16px; }
.m-title { font-family: var(--display); font-size: 28px; line-height: 1.05; margin: 0 0 8px; color: var(--head); padding-right: 36px; }
.m-hero { text-align: center; margin-bottom: 6px; }
.m-big { font-size: 56px; display: inline-block; animation: thump .5s cubic-bezier(.2,1.6,.4,1); }
.fogg-hero .m-big { transform: rotate(-8deg); }
.m-lead { color: var(--ink-2); margin: 0 0 14px; }
.m-callout { background: var(--tint-y); border: 2px solid var(--edge); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.m-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; }
.m-row .big-btn { flex: 1; min-width: 140px; margin-top: 0; font-size: 19px; }

.p-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.avatar { width: 62px; height: 62px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font-family: var(--display); font-size: 30px; border: 2.5px solid var(--edge); box-shadow: 3px 3px 0 var(--edge); }
.p-head .m-title { margin: 0; }
.p-sub { font-family: var(--type); font-size: 13px; color: var(--ink-2); word-break: break-all; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
@media (min-width: 480px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.sc { background: var(--field); border: 2px solid var(--edge); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-i { font-size: 20px; }
.sc-v { font-family: var(--display); font-size: 21px; line-height: 1.1; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-l { font-family: var(--type); font-size: 11.5px; color: var(--ink-2); line-height: 1.2; }
.p-facts { display: grid; gap: 4px; background: var(--tint-g); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: 15px; }
.p-passport { border: 2.5px solid var(--edge); border-radius: 16px; overflow: hidden; }
.p-passport .pp-cover { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.p-passport .pp-crest { width: 42px; height: 42px; font-size: 26px; }
.p-passport .pp-title { font-size: 24px; }
.sync { font-family: var(--type); font-size: 12.5px; color: var(--teal); font-weight: 700; }

.auth { display: grid; gap: 12px; }
.auth label { display: grid; gap: 4px; font-family: var(--type); font-weight: 700; font-size: 13px; }
.auth input { font-family: var(--body); font-size: 17px; padding: 11px 12px; border: 2.5px solid var(--edge); border-radius: 12px; background: var(--field); color: var(--ink); }
.auth input:focus { outline: none; box-shadow: 0 0 0 4px rgba(19,163,154,.3); }
.auth .big-btn { margin-top: 2px; justify-content: center; }
.auth .big-btn::after { content: ""; }
.auth-msg { margin: 0; min-height: 1.2em; color: var(--coral-dark); font-weight: 700; font-size: 14px; }
.auth-switch { text-align: center; margin: 14px 0 0; font-size: 15px; }
.auth-note { text-align: center; font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }

@media (max-width: 420px) {
  .acct-btn { padding: 5px 9px 5px 6px; font-size: 12.5px; }
  .brand-name { font-size: clamp(24px, 7.4vw, 44px); }
  .logo { width: 44px; height: 44px; }
}

/* =========================================================
   VERZIJA 6: karta uz pitanja i animacija putovanja
   ========================================================= */
.map-slot { margin: -4px 0 14px; }
#m-me .me-emoji { transform-box: fill-box; transform-origin: center bottom; }
#m-me.moving .me-emoji { animation: bob .32s ease-in-out infinite alternate; }
#m-me.moving .me-bg { fill: var(--tint-y); }
@keyframes bob { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-3px) rotate(6deg); } }

/* =========================================================
   VERZIJA 9: nove stanice, timer
   ========================================================= */
.timer { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; }
.timer-track { flex: 1; height: 10px; background: var(--track); border-radius: 99px; overflow: hidden; border: 2px solid var(--edge); }
.timer-bar { height: 100%; width: 100%; background: var(--teal); transform-origin: 0 50%; transition: transform .2s linear; will-change: transform; }
.timer-n { font-family: var(--type); font-weight: 700; font-size: 15px; min-width: 52px; text-align: right; }
.timer.hurry .timer-bar { background: var(--coral); }
.timer.hurry .timer-n { color: var(--coral-dark); animation: bump .5s ease infinite; }

#map.pinning { cursor: crosshair; }
#map .pin-guess { fill: var(--coral); stroke: #fff; stroke-width: 3; vector-effect: non-scaling-stroke; }
#map .pin-guess-in { fill: #fff; }
#map .pin-line { fill: none; stroke: var(--coral-dark); stroke-width: 3; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
#map .pin-flag { font-size: 26px; }
.pin-help { font-size: 14.5px; color: var(--ink-2); margin: -6px 0 12px; }

.hl { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.hl-vs { align-self: center; font-family: var(--display); color: var(--ink-2); }
.hl-btn {
  min-height: 92px; padding: 12px; border: 2.5px solid var(--edge); border-radius: 14px; background: var(--field); cursor: pointer;
  font-family: var(--display); font-size: 19px; line-height: 1.15; color: var(--head); box-shadow: 3px 3px 0 var(--edge);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.hl-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.hl-btn small { font-family: var(--type); font-size: 13px; font-weight: 700; }
.hl-btn.win { background: var(--tint-g); border-color: var(--teal); }
.hl-btn.lose { background: var(--tint-r); opacity: .85; }
.hl-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.hl-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--track); border: 2px solid var(--edge); }
.hl-dots i.ok { background: var(--teal); }
.hl-dots i.no { background: var(--coral); }
.hl-log { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
.hl-log li { display: grid; grid-template-columns: 22px 1fr; gap: 6px; background: var(--field); border-radius: 10px; padding: 8px 10px; }
.hl-log li.ok span:first-child { color: var(--teal); font-weight: 700; }
.hl-log li.no span:first-child { color: var(--coral-dark); font-weight: 700; }

.emoji-card { font-size: clamp(54px, 16vw, 84px); text-align: center; background: var(--field); border: 2.5px dashed var(--line); border-radius: 18px; padding: 14px 6px; margin-bottom: 14px; letter-spacing: .08em; }
.emoji-small { font-size: 1.1em; letter-spacing: .06em; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.opt { padding: 14px 10px; border: 2.5px solid var(--edge); border-radius: 14px; background: var(--field); cursor: pointer; font-family: var(--display); font-size: 18px; color: var(--head); box-shadow: 3px 3px 0 var(--edge); }
.opt:active { transform: translate(3px, 3px); box-shadow: none; }
.num-form .unit { align-self: center; font-family: var(--type); font-weight: 700; }

.bet-choice { display: grid; gap: 12px; margin: 6px 0 12px; }
.bet-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 2.5px solid var(--edge); border-radius: 16px; cursor: pointer; text-align: left; box-shadow: 4px 4px 0 var(--edge); }
.bet-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.bet-btn.risky { background: var(--sun); }
.bet-btn.safe { background: var(--field); }
.bb-t { font-family: var(--display); font-size: 22px; color: var(--ink); }
.bb-s { font-family: var(--type); font-size: 13.5px; color: var(--ink); }
@media (max-width: 420px) {
  .hl { grid-template-columns: 1fr; }
  .hl-vs { text-align: center; }
  .num-form { flex-direction: row; flex-wrap: wrap; }
  .num-form input { flex: 1 1 60%; }
}

/* lige */
.lg-box { margin-top: 18px; }
.lg-head h3 { font-family: var(--display); font-size: 22px; color: var(--head); margin: 0 0 8px; }
.lg-empty { color: var(--ink-2); font-size: 15px; margin: 4px 0 8px; }
.lg-list { display: grid; gap: 8px; }
.lg-item { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--field); border: 2px solid var(--edge); border-radius: 12px; cursor: pointer; text-align: left; font: inherit; }
.lg-rank { font-family: var(--display); font-size: 20px; color: var(--coral); }
.lg-name { font-weight: 700; }
.lg-n { font-family: var(--type); font-size: 13px; color: var(--ink-2); }
.board { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 36px 1fr 1fr auto; gap: 8px; align-items: center; background: var(--field); border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.board li.me { border-color: var(--edge); background: var(--tint-y); }
.b-pos { font-family: var(--display); font-size: 18px; text-align: center; }
.b-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-name small { font-weight: 400; color: var(--ink-2); }
.b-bar { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; }
.b-bar i { display: block; height: 100%; background: var(--teal); }
.b-km { font-family: var(--display); text-align: right; white-space: nowrap; }
.b-km small { display: block; font-family: var(--type); font-size: 11px; color: var(--ink-2); }
.invite { background: var(--tint-g); border-radius: 14px; padding: 12px 14px; margin-top: 8px; }
.inv-code { font-family: var(--type); font-size: 15px; }
.inv-code b { font-size: 22px; letter-spacing: .2em; }
@media (max-width: 420px) { .board li { grid-template-columns: 30px 1fr auto; } .b-bar { display: none; } }

/* =========================================================
   VERZIJA 10: karta za pribadaču, animacije
   ========================================================= */
.pin-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.pin-actions .big-btn { margin-top: 0; }
.pin-fs { width: auto; font-size: 17px; }
.pin-fs::after { content: ""; }
#map .pin-guess-ring { fill: rgba(255,107,74,.22); stroke: none; transform-box: fill-box; transform-origin: center; animation: ring 1.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
#map .pin-drop { animation: none; }
#map .pin-line { animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.tap-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: rgba(31,58,95,.88); color: #fff; font-family: var(--type); font-weight: 700; font-size: 15px;
  padding: 10px 16px; border-radius: 99px; animation: hintpulse 1.6s ease-in-out infinite;
}
@keyframes hintpulse { 50% { transform: translate(-50%, -50%) scale(1.06); } }

/* karta preko cijelog zaslona */
body.map-open { overflow: hidden; }
.map-float {
  position: absolute; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--cream); border: 2.5px solid var(--edge); border-radius: 16px; box-shadow: 4px 4px 0 var(--edge); padding: 10px 12px;
  animation: rise .3s ease;
}
.mf-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mf-q { font-family: var(--display); font-size: 20px; color: var(--head); }
.mf-t { font-family: var(--type); font-weight: 700; white-space: nowrap; }
.mf-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; }
.mf-hint { font-size: 14px; color: var(--ink-2); }
.mf-ok { padding: 10px 16px; }
.mf-ok:disabled, #pin-ok:disabled { opacity: .45; cursor: not-allowed; }

/* animacije v10 */
.hl-btn { transition: transform .2s ease, background .25s ease, border-color .25s ease, opacity .25s ease; }
.hl-btn.pick-ok { animation: popwin .5s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 0 0 4px rgba(19,163,154,.35), 3px 3px 0 var(--edge); }
.hl-btn.pick-no { animation: shake .4s ease; }
.hl-btn.lose:not(.pick-no) { opacity: .7; }
.hl-btn.win:not(.pick-ok) { box-shadow: 0 0 0 3px rgba(19,163,154,.25), 3px 3px 0 var(--edge); }
.hl-val { display: block; margin-top: 4px; animation: rise .3s ease; }
.hl .hl-btn { animation: slidein .3s ease both; }
.hl .hl-btn:last-child { animation-delay: .06s; }
.hl.leave .hl-btn { animation: slideout .22s ease forwards; }
.hl-dots i.pop { animation: dotpop .4s cubic-bezier(.3,1.8,.5,1); }
@keyframes popwin { 0% { transform: scale(1); } 40% { transform: scale(1.08) rotate(-1deg); } 100% { transform: scale(1); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes slidein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideout { to { opacity: 0; transform: translateY(-8px); } }
@keyframes dotpop { 0% { transform: scale(.4); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }

.opt { transition: transform .15s ease, background .25s ease, opacity .25s ease; }
.opt.ok { background: var(--tint-g); border-color: var(--teal); animation: popwin .5s cubic-bezier(.3,1.6,.5,1); }
.opt.no { background: var(--tint-r); animation: shake .4s ease; }
.opt.dim { opacity: .45; }
.opt:disabled { cursor: default; }

.burst { position: fixed; z-index: 80; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; left: -4px; top: -4px; animation: burst .7s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(200deg) scale(.4); opacity: 0; } }

/* ulaz sadržaja karte s pitanjem: elementi lagano izlaze jedan za drugim */
#play .t-body > *:not(#map-slot) { animation: slidein .35s ease both; }
#play .t-body > *:nth-child(2) { animation-delay: .04s; }
#play .t-body > *:nth-child(3) { animation-delay: .08s; }
#play .t-body > *:nth-child(4) { animation-delay: .12s; }
#play .t-body > *:nth-child(n+5) { animation-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.tap-hint { white-space: nowrap; }
#pin-ok, .mf-ok, .pin-fs { white-space: nowrap; }
.mf-ok { flex-shrink: 0; font-size: 18px; }
.pin-actions .big-btn { font-size: 19px; padding: 12px 14px; }
.pin-actions #pin-ok { justify-content: center; }
.pin-actions #pin-ok::after { content: ""; }

/* =========================================================
   VERZIJA 11: glatka karta, čišći mobitel, lige
   ========================================================= */
#map { transform-origin: 0 0; -webkit-tap-highlight-color: transparent; }
 .map-card.map-moving #map, .map-card.map-moving #map-base { will-change: transform; }
.map-card { overflow: hidden; isolation: isolate; }
#map.dragging .lbl { transition: none; }

/* zaglavlje karte s pitanjem: redni broj prvi, ništa se ne lomi */
.t-top { align-items: baseline; }
.t-top > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-top > span:last-child { white-space: nowrap; flex-shrink: 0; }
.st-n { background: rgba(255,255,255,.22); padding: 1px 7px; border-radius: 99px; margin-right: 4px; }

/* kontrole karte: uredan stupac desno */
.map-btn {
  width: 34px; min-width: 34px; height: 34px; padding: 0; display: grid; place-items: center;
  font-size: 17px; border-radius: 10px; background: var(--card); box-shadow: 2px 2px 0 var(--edge);
}
#zoom-toggle { font-size: 16px; }

/* procjena broja: jedinica unutar polja */
.num-field { position: relative; flex: 1; min-width: 0; display: flex; }
.num-field input { width: 100%; padding-right: 44px; }
.num-field .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-2); font-family: var(--type); font-weight: 700; }
.num-form + .pin-help { margin-top: 12px; }
@media (max-width: 420px) {
  .num-form { flex-direction: column; flex-wrap: nowrap; }
  .num-form .go { width: 100%; }
}

/* sve glavne tipke iste visine i centrirane */
.answer .go { min-height: 52px; display: flex; align-items: center; justify-content: center; }
.big-btn { gap: 10px; line-height: 1.15; }
@media (max-width: 420px) {
  .big-btn { font-size: 19px; padding: 13px 16px; }
  .share-row .big-btn { font-size: 19px; }
  .t-body { padding: 16px 16px 20px; }
  .t-head { padding: 12px 16px 14px; }
}
.opt { min-height: 56px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.15; }

/* Fogg etiketa: bez rupice koja se preklapa s (i) */
#fogg-tag::before { display: none; }

/* tablica prijevoza stane na mobitel */
@media (max-width: 420px) {
  .tt { table-layout: fixed; font-size: 13px; }
  .tt th, .tt td { padding: 6px 6px; }
  .tt th:nth-child(1), .tt td:nth-child(1) { width: 27%; white-space: normal; font-size: 12px; }
  .tt th:nth-child(4), .tt td:nth-child(4) { width: 15%; }
  .tt .em { display: block; margin: 0 0 1px; }
}

.sl-rank { background: var(--coral); color: #fff; border-radius: 99px; padding: 1px 6px; font-size: 11px; margin-top: 2px; }
.lg-modal .lg-head h3 { font-family: var(--display); font-size: 26px; margin: 4px 0 8px; color: var(--head); }

/* iOS: bez zumiranja na dvostruki dodir tipke i bez sivog bljeska */
button, a, .opt, .hl-btn, .big-btn, .go { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
footer, .foot { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
/* gumbi u prozorima: jedan red, centrirano */
.m-row .big-btn { flex: 1 1 0; font-size: 17px; justify-content: center; padding: 12px 10px; white-space: nowrap; }
.m-row .big-btn::after { content: ""; }
/* obavijest: uredan oblačić i za duži tekst */
#toast { border-radius: 14px; width: max-content; max-width: min(92vw, 420px); text-align: center; line-height: 1.35; }

/* prijava preko Googlea */
.g-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin: 4px 0 0;
  background: var(--field); color: #1f1f1f; border: 2.5px solid var(--edge); border-radius: 14px; box-shadow: 3px 3px 0 var(--edge);
  font-family: var(--body, inherit); font-weight: 700; font-size: 17px; cursor: pointer;
}
.g-btn:active { transform: translate(3px, 3px); box-shadow: none; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; color: var(--ink-2); font-family: var(--type); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.or::before, .or::after { content: ""; flex: 1; border-top: 2px dotted var(--line); }
.rename { border: 0; background: none; font-size: 18px; cursor: pointer; padding: 0 2px; vertical-align: middle; }

/* =========================================================
   VERZIJA 13: karta (dodir), instalacija, podsjetnik, suveniri
   ========================================================= */
/* u pribadači i preko cijelog zaslona karta sluša sve poteze; inače okomiti potez pomiče stranicu */
.map-card.pin-mode #map, .map-card.fs #map { touch-action: none; }
#map.pinning { cursor: crosshair; }
#map.flying .lbl { opacity: 0 !important; transition: none; }

/* suveniri */
.sv-shelf { background: var(--card); border-top: 2.5px solid var(--edge); padding: 12px 0 14px; }
.sv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 18px 8px; }
.sv-title { font-family: var(--display); font-size: 20px; color: var(--head); }
.sv-count { font-family: var(--type); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.sv-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 18px 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sv-row::-webkit-scrollbar { display: none; }
.sv {
  flex: none; width: 58px; min-height: 58px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--field); border: 2.5px solid var(--edge); border-radius: 16px; box-shadow: 3px 3px 0 var(--edge); cursor: pointer; scroll-snap-align: start;
  font: inherit; color: var(--ink);
}
.sv:active { transform: translate(3px, 3px); box-shadow: none; }
.sv-e { font-size: 28px; line-height: 1; }
.sv-c { font-family: var(--type); font-weight: 700; font-size: 10.5px; line-height: 1.1; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 3px; }
.sv.lock { background: none; border: 2.5px dashed var(--dash); box-shadow: none; color: var(--mute); cursor: default; }
.sv.lock .sv-e { font-family: var(--display); font-size: 22px; }
.sv.lock.next { width: auto; min-width: 86px; padding: 0 10px; color: var(--ink-2); border-color: var(--teal); }
.sv.lock.next .sv-c { font-size: 11.5px; color: var(--teal); }
.sv-all { align-self: center; font-family: var(--type); font-weight: 700; font-size: 13px; color: var(--teal); white-space: nowrap; padding: 0 6px; }
.sv-box { margin-top: 18px; border: 2.5px solid var(--edge); border-radius: 18px; background: var(--card); padding: 12px 0 14px; }
.rp-box { margin-top: 18px; border: 2.5px solid var(--edge); border-radius: 18px; background: var(--card); padding: 12px 14px; }
.rp-head { font-family: var(--type); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.rp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rp-list li { border-top: 1.5px dashed var(--edge); padding-top: 8px; font-size: 15px; line-height: 1.3; }
.rp-list li:first-child { border-top: 0; padding-top: 0; }
.rp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rp-top small { display: block; color: var(--ink-2); font-size: 13px; }
.rp-st { flex: none; font-family: var(--type); font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 99px; border: 2px solid var(--edge); }
.rp-st.ok { background: var(--tint-g); color: var(--ink); }
.rp-st.no { background: rgba(255, 107, 74, .22); color: var(--ink); }
.rp-st.wait { background: var(--card); color: var(--ink-2); }
.rp-why { margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; padding: 2px 14px 0; }
.sv-grid .sv { width: auto; min-height: 66px; padding: 6px 2px; }
/* novi suvenir u rezultatu stanice */
.sv-new {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; border-radius: 14px;
  background: var(--tint-y); border: 2.5px solid var(--edge); box-shadow: 3px 3px 0 var(--edge); font-size: 15px; line-height: 1.25;
  animation: svpop .5s .35s cubic-bezier(.3,1.5,.5,1) both;
}
.sv-new b { display: block; font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--head); }
.sv-new small { display: block; font-family: var(--type); font-weight: 700; font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.sv-new-e { font-size: 38px; line-height: 1; flex: none; animation: svwiggle 1.2s .9s ease-in-out 2; }
@keyframes svpop { from { opacity: 0; transform: scale(.7) translateY(10px); } }
@keyframes svwiggle { 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }

/* instalacija i podsjetnik */
.pwa-slot:empty { display: none; }
.pwa-slot { display: grid; gap: 10px; margin-top: 12px; }
.pwa-slot .pwa-btn { margin-top: 0; font-size: 18px; }
.pwa-note { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pwa-note.on { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 10px 14px; border-radius: 12px; background: var(--tint-g); border: 2px solid var(--teal); color: var(--ink); font-weight: 700; }
.pwa-links { display: flex; gap: 14px; }
.pwa-steps { margin: 4px 0 14px; padding-left: 22px; display: grid; gap: 10px; font-size: 16px; line-height: 1.4; }
.pwa-steps li::marker { font-family: var(--display); color: var(--coral); }
.pwa-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--edge); border-radius: 7px; font-size: 14px; vertical-align: -5px; background: var(--field); }
.pwa-icon { border-radius: 20px; box-shadow: 4px 4px 0 var(--edge); display: block; margin: 0 auto; }
/* kad je igra instalirana (cijeli zaslon), sadržaj ne smije pod sat i bateriju na vrhu */
@media (display-mode: standalone) { body { -webkit-user-select: none; user-select: none; overscroll-behavior-y: none; } input, textarea, .share-box { -webkit-user-select: text; user-select: text; } }
.pwa-slot .pwa-btn { justify-content: center; text-align: center; }
.pwa-slot .pwa-btn::after { content: ""; }
@media (max-width: 420px) { .m-row .big-btn { font-size: 16px; padding: 12px 8px; } }

/* =========================================================
   VERZIJA 15: ideje s Dokle (putokaz, dolazak u grad, ponovni pokušaj, vrijeme za čitanje)
   ========================================================= */
/* kartica "stigao si" */
.city-card {
  position: absolute; left: 50%; top: 46px; z-index: 4; width: min(78%, 300px); transform: translateX(-50%);
  background: var(--card); border: 2.5px solid var(--edge); border-radius: 14px; box-shadow: 3px 3px 0 var(--edge);
  padding: 8px 12px 10px; text-align: center; pointer-events: none; opacity: 0;
}
.city-card.show { animation: cityin .45s cubic-bezier(.3,1.5,.5,1) forwards; }
.city-card small { display: block; font-family: var(--type); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.city-card b { display: block; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--head); margin: 1px 0 2px; }
.city-card span { display: block; font-size: 13.5px; line-height: 1.3; color: var(--ink); }
@keyframes cityin { from { opacity: 0; transform: translate(-50%, -10px) scale(.85); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
/* vrijeme za čitanje */
.timer-track { position: relative; }
.timer-lab { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--type); font-weight: 700; font-size: 11px; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.timer.reading .timer-bar { background: #9fd8d3; }
.timer:not(.reading) .timer-lab { display: none; }
.timer.reading .timer-track { height: 18px; }
/* odgovor nije na popisu: probaj ponovno */
.retry-note { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; background: var(--tint-y); border: 2px solid #e8b931; font-size: 14.5px; line-height: 1.35; }
.retry-note.shake { animation: shake .4s ease; }
@media (prefers-reduced-motion: reduce) { .city-card.show { animation: none; opacity: 1; } }

/* =========================================================
   VERZIJA 18: novi izgled
   Jedan stupac kao prije: karta gore, ispod nje ploča s pitanjem, izvještajem, putovnicom i pravilima.
   Na mobitelu je karta od ruba do ruba, na računalu su karta i ploča kartice u sredini stranice.
   Sve boje su varijable, pa ista pravila vrijede za svijetlu i tamnu temu.
   ========================================================= */
:root {
  --edge: #1d2a3a;            /* rubovi i tvrde sjene */
  --head: #1f3a5f;            /* naslovi */
  --halo: #fff;               /* obrub slova na karti i sjena naslova */
  --field: #fff;              /* polja za unos, bijele kartice */
  --card: #fff8e8; --card2: #fdf1d6;
  --track: #f0e2c0; --dash: #cdbd98; --mute: #a9a08a;
  --tint-y: #fff3c4; --tint-g: #d9f3ec; --tint-r: #ffe1d8; --tint-b: #dff1fb;
  --on-sun: #1d2a3a;          /* tekst na žutoj podlozi (isti u obje teme) */
  --sky-mid: #bfe6f3;
  /* karta */
  --m-sea: #a9d3e0; --m-glow: #d3ecf3; --m-land: #f3ead2; --m-here: #cfe3a6; --m-relief: .45; --m-relief-mode: hard-light;
  --m-bord: #fff; --m-bord2: #9a8f78; --m-coast: #7fa9b8; --m-cty: #8a7f68; --m-grat: rgba(31,58,95,.07);
  --m-route: #1f3a5f; --m-case: #fff; --m-stop: #fff; --m-lab: #1f3a5f;
  --stage-h: 46vh;
}
@supports (height: 1svh) { :root { --stage-h: 46svh; } }
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4efe4; --ink-2: #9db0c5; --cream: #1a2b3e; --paper: #12202f; --line: #33465e; --navy: #24384f;
  --teal: #2fd1a0; --coral-dark: #ff8a6e;
  --sky-top: #0d1726; --sky-mid: #12223a; --sky-bottom: #1b2a40;
  --edge: #050b14; --head: #f4efe4; --halo: #050b14; --field: #0e1a29;
  --card: #1a2b3e; --card2: #15243a; --track: #0e1a29; --dash: #3a4f69; --mute: #6f86a0;
  --tint-y: rgba(255,201,60,.16); --tint-g: rgba(47,209,160,.16); --tint-r: rgba(255,107,74,.18); --tint-b: rgba(108,195,230,.16);
  --m-sea: #0f2236; --m-glow: #16324d; --m-land: #22344a; --m-here: #2c4a3d; --m-relief: .9; --m-relief-mode: overlay;
  --m-bord: #1a2a3c; --m-bord2: #4c617a; --m-coast: #3a5877; --m-cty: #7088a2; --m-grat: rgba(143,211,240,.06);
  --m-route: #ffc93c; --m-case: #0b1522; --m-stop: #1a2b3e; --m-lab: #f4efe4;
}

html { background: var(--card); }
body { background: var(--card); background-image: none; }

/* ---------------------------------------------------------- karta na vrhu stranice */
.stage { position: relative; height: var(--stage-h); min-height: 250px; z-index: 1; overflow: hidden; background: var(--m-sea); transition: height .25s ease; }
.map-card { position: absolute; inset: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--m-sea); }
.map-view { position: absolute; inset: 0; }
body.pinning { --stage-h: 60vh; }
@supports (height: 1svh) { body.pinning { --stage-h: 60svh; } }
body.kb:not(.pinning) { --stage-h: 132px; }           /* otvorena tipkovnica */
body.kb .hud-l .where, body.kb .fogg-chip { display: none; }
/* karta preko cijelog zaslona (gumb ⛶) */
body.map-open { overflow: hidden; }
body.map-open .stage { position: fixed; inset: 0; width: auto; max-width: none; height: 100vh; height: 100dvh; margin: 0; z-index: 50; border: 0; border-radius: 0; box-shadow: none; }
body.map-open .wrap { display: none; }

.map-card { overflow: hidden; isolation: isolate; }
.map-view { overflow: hidden; }
#map-base { display: block; position: absolute; pointer-events: none; transform-origin: 0 0; }
#map { display: block; position: absolute; background: transparent; }
#map-base, #map { -webkit-tap-highlight-color: transparent; }
#map .route, :is(#map, #travel) .done { fill: none; stroke-linecap: round; }
#map .route, #map .done, #map .wp, :is(#map, #travel) .me-bg { vector-effect: non-scaling-stroke; }
#map .grat { stroke: var(--m-grat); stroke-dasharray: none; }
#map .glow { fill: none; stroke: var(--m-glow); stroke-width: 7; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .8; }
#map .land { fill: var(--m-land); transition: fill .6s ease; }
#map .land.here { fill: var(--m-here); }
#map .borders { stroke: var(--m-bord); stroke-width: 2.2; opacity: .85; }
#map .borders.b2 { stroke: var(--m-bord2); stroke-width: .8; stroke-dasharray: 3 3; opacity: 1; }
#map .coast { stroke: var(--m-coast); stroke-width: .9; opacity: 1; }
#map .cty { font-family: var(--body); font-weight: 700; fill: var(--m-cty); text-anchor: middle; text-transform: uppercase; opacity: 0; transition: opacity .3s; pointer-events: none; }
#map.labels .cty { opacity: .75; }
#map.flying .cty { opacity: 0 !important; transition: none; }
#map .route { stroke: var(--m-route); stroke-width: 3; stroke-dasharray: .1 7; opacity: .7; }
:is(#map, #travel) .done-case { fill: none; stroke: var(--m-case); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
:is(#map, #travel) .done { stroke: var(--m-route); stroke-width: 3.6; stroke-linejoin: round; }
#map .wp { fill: var(--m-stop); stroke: var(--m-route); stroke-width: 2.6; }
#map .wp.passed { fill: var(--m-route); stroke: var(--m-case); }
#map .lbl { font-family: var(--body); fill: var(--m-lab); stroke: var(--halo); }
#map .lbl.passed { fill: var(--m-lab); }
:is(#map, #travel) .me-bg, #m-me.moving .me-bg { fill: var(--coral); stroke: #fff; stroke-width: 3; }
:is(#map, #travel) .me-ring { fill: var(--coral); opacity: .28; transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
:is(#map, #travel) .me-emoji { font-size: 18px; }
#map .fogg-bg { fill: var(--card); stroke: var(--edge); stroke-width: 2; vector-effect: non-scaling-stroke; }
#map .fogg { font-size: 15px; }

/* ---------------------------------------------------------- oznake preko karte */
.hud { position: absolute; z-index: 5; top: max(12px, env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-l { left: max(12px, env(safe-area-inset-left)); align-items: flex-start; }
.hud-r { right: calc(max(10px, env(safe-area-inset-right)) + 44px); align-items: flex-end; max-width: calc(100% - 196px); }
.badge {
  display: flex; align-items: center; gap: 7px; padding: 3px 12px 3px 3px; cursor: pointer;
  background: var(--card); color: var(--head); border: 2.5px solid var(--edge); border-radius: 99px; box-shadow: 3px 3px 0 var(--edge);
  font-family: var(--display); font-size: 16px; white-space: nowrap;
}
.badge:active, .fogg-chip:active { transform: translate(2px, 2px); box-shadow: none; }
.badge .logo { width: 32px; height: 32px; }
.badge b { font-weight: 400; }
.where { background: var(--card); border: 2px solid var(--edge); border-radius: 12px; box-shadow: 2px 2px 0 var(--edge); padding: 5px 10px 6px; line-height: 1.15; max-width: 46vw; }
.where b { display: block; font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--head); white-space: nowrap; }
.where b.bump { animation: bump .5s ease; }
.where small { display: block; font-family: var(--type); font-weight: 700; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* putokaz: žuta aerodromska ploča */
.road-sign { display: flex; align-items: stretch; max-width: 100%; overflow: hidden; border: 2.5px solid #111; border-radius: 7px; box-shadow: 3px 3px 0 var(--edge); background: var(--sun); color: #111; line-height: 1.1; }
.road-sign:empty { display: none; }
.road-sign::before { content: "↗"; display: flex; align-items: center; padding: 0 7px; background: #111; color: var(--sun); font-weight: 700; font-size: 15px; }
.road-sign i { display: flex; align-items: center; padding: 0 8px; background: #111; color: var(--sun); font-family: var(--type); font-weight: 700; font-style: normal; font-size: 15px; }
.road-sign b { display: flex; align-items: center; min-width: 0; padding: 5px 0 5px 9px; font-family: var(--body); font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.road-sign span { display: flex; align-items: center; padding: 5px 9px 5px 7px; font-family: var(--type); font-weight: 700; font-size: 13px; white-space: nowrap; }
.fogg-chip { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: 99px; box-shadow: 2px 2px 0 var(--edge); padding: 4px 10px; font-family: var(--type); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
#s-fogg.ahead { color: var(--teal); }
#s-fogg.behind { color: var(--coral-dark); }
#s-fogg.bump { display: inline-block; animation: bump .5s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }

.map-ctrl { position: absolute; z-index: 5; top: max(12px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); display: flex; flex-direction: column; gap: 6px; }
.map-btn { width: 36px; min-width: 36px; height: 36px; border-radius: 50%; background: var(--card); color: var(--ink); border-color: var(--edge); box-shadow: 2px 2px 0 var(--edge); cursor: pointer; }
.zoom-pm { display: none; }
.city-card { top: 104px; background: var(--card); border-color: var(--edge); box-shadow: 3px 3px 0 var(--edge); }
.city-card b { color: var(--head); }
.map-float { z-index: 6; }

/* ---------------------------------------------------------- ploča sa sadržajem */
.wrap {
  position: relative; z-index: 2; max-width: none; margin: -24px 0 0; padding: 8px 16px 40px;
  background: var(--card); border-top: 2.5px solid var(--edge); border-radius: 26px 26px 0 0; box-shadow: 0 -6px 0 rgba(13,23,38,.10);
}
.wrap > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--dash); margin: 0 auto 10px; }

/* pitanje više nije zasebna kartica: ploča je kartica */
.ticket { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.t-body { padding: 0; }
.t-head {
  display: flex; align-items: center; gap: 10px; padding: 0 0 10px; background: none; color: var(--ink-2);
  font-family: var(--type); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
}
.t-region { display: inline-flex; align-items: center; gap: 6px; margin: 0; flex: none; font: inherit; color: var(--ink); text-shadow: none; }
.t-region i { width: 11px; height: 11px; border-radius: 50%; background: var(--region); border: 2px solid var(--edge); }
.t-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-r { flex: none; white-space: nowrap; color: var(--ink); }
.t-leg { display: none; }
.st-n { background: var(--tint-y); color: var(--ink); padding: 1px 7px; border-radius: 99px; margin-right: 2px; }
.day-km { font-size: 14px; letter-spacing: 0; color: var(--coral-dark); }
.pips { margin-bottom: 12px; }
.pip { height: 8px; border: 1.5px solid var(--edge); }
.pip.now { box-shadow: none; }
.map-slot { display: none; }
.question { font-size: clamp(23px, 6.2vw, 30px); margin: 0 0 10px; color: var(--head); }
.q-label { margin-bottom: 4px; }
.q-help, .pin-help { margin: 0 0 14px; padding: 2px 0 2px 10px; border-left: 4px solid var(--coral); font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.hl-dots + .q-help, .num-form + .pin-help, .bet-choice + .pin-help { margin: 14px 0 0; }
.answer input { background: var(--field); color: var(--ink); border-color: var(--edge); font-family: var(--body); font-weight: 400; }
.answer input::placeholder { color: var(--mute); }
.answer input:focus, .auth input:focus { box-shadow: 0 0 0 4px rgba(255,107,74,.28); }
.timer { margin: 0 0 12px; }
.answer, .num-form { flex-direction: row; flex-wrap: nowrap; }
.answer .go, .num-form .go { width: auto; padding: 0 18px; flex: none; }
.hl { grid-template-columns: 1fr auto 1fr; }
.hl-btn { min-height: 76px; font-size: 18px; padding: 10px 8px; }
.hl-vs { text-align: center; }
.emoji-card { padding: 8px 6px; margin-bottom: 10px; font-size: clamp(44px, 13vw, 68px); }

/* tekst na žutoj podlozi ostaje taman i u tamnoj temi */
.big-btn:not(.alt):not(.coral), .acct-btn.in, .bet-btn.risky .bb-t, .bet-btn.risky .bb-s, .pp-go, .mini-btn { color: var(--on-sun); }
.cd-time { color: var(--sun); }
.modal::backdrop { background: rgba(13,23,38,.6); }
.g-btn { background: #fff; }
[data-theme="dark"] .stamp-big { background: var(--card2); }
[data-theme="dark"] .rt-num { text-shadow: 3px 3px 0 var(--edge); }

/* prijava odgovora na kraju dana */
.appeals { margin-top: 16px; padding: 12px 14px 10px; background: var(--card2); border: 2px dashed var(--dash); border-radius: 14px; }
.appeals h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 18px; line-height: 1.15; color: var(--head); }
.appeals p { margin: 4px 0 8px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.appeals ul { list-style: none; margin: 0; padding: 0; }
.appeals li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 2px dotted var(--line); }
.appeals li b { display: block; word-break: break-word; }
.appeals li small { display: block; font-family: var(--type); font-size: 12px; color: var(--ink-2); line-height: 1.2; }
.mini-btn { cursor: pointer; background: var(--sun); border: 2px solid var(--edge); border-radius: 99px; box-shadow: 2px 2px 0 var(--edge); padding: 6px 13px; font-family: var(--type); font-weight: 700; font-size: 13px; }
.mini-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.la.later::after { content: " ✅ naknadno"; font-family: var(--type); font-size: 11.5px; color: var(--teal); font-weight: 700; }

/* ---------------------------------------------------------- uvodni ekran dana */
.splash {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 56%, var(--sky-bottom) 100%);
  animation: sp-in .3s ease both;
}
.splash::before { /* sunce danju, mjesec noću */
  content: ""; position: absolute; right: -100px; top: -100px; width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #ffe27a 0 45%, var(--sun) 46% 60%, rgba(255,201,60,0) 61%);
}
[data-theme="dark"] .splash::before { right: -50px; top: -50px; width: 190px; height: 190px; background: radial-gradient(circle, #f4efe4 0 34%, rgba(244,239,228,.22) 35% 46%, rgba(244,239,228,0) 47%); }
.splash.out { animation: sp-out .26s ease forwards; }
@keyframes sp-in { from { opacity: 0; } }
@keyframes sp-out { to { opacity: 0; transform: translateY(-12px); } }
body.splash-open { overflow: hidden; }
.sp-in {
  position: relative; min-height: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: max(14px, calc(env(safe-area-inset-top) + 8px)) max(20px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.sp-top { align-self: stretch; display: flex; justify-content: space-between; align-items: center; }
.sp-chip { background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: 99px; box-shadow: 2px 2px 0 var(--edge); padding: 5px 12px; font-family: var(--type); font-weight: 700; font-size: 13px; }
.sp-btns { display: flex; gap: 8px; }
.sp-logo { width: clamp(100px, 15vh, 150px); height: clamp(100px, 15vh, 150px); margin-top: clamp(2px, 2vh, 20px); animation: sp-bob 5s ease-in-out infinite; }
@keyframes sp-bob { 50% { transform: translateY(-5px) rotate(-2deg); } }
.sp-word { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 11vw, 48px); line-height: 1; color: var(--head); text-shadow: 3px 3px 0 var(--halo); }
.sp-word i { font-style: normal; color: var(--coral); }
.sp-sign { margin-top: 14px; }
.sp-sign::before { display: none; }
.sp-lead { margin: 14px 2px 0; font-size: 16.5px; line-height: 1.45; color: var(--ink); }
.sp-lead b { color: var(--coral-dark); }
.sp-go { align-self: stretch; margin-top: auto; padding-top: 16px; position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 2; }
.sp-go .big-btn { margin-top: 0; justify-content: center; font-size: 24px; padding: 15px 18px; animation: sp-pulse 2.6s 1s ease-in-out infinite; }
.sp-go .big-btn::after { content: "✈"; }
@keyframes sp-pulse { 0%, 85%, 100% { transform: scale(1); } 92% { transform: scale(1.03); } }
.sp-links { margin-top: 12px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.sp-links .text-btn { font-size: 14.5px; color: var(--head); }
.sp-rules { align-self: stretch; text-align: left; list-style: none; margin: 12px 0 0; padding: 12px 14px; display: grid; gap: 8px; background: var(--card); border: 2px solid var(--edge); border-radius: 14px; font-size: 14.5px; line-height: 1.35; }
.sp-rules li { display: grid; grid-template-columns: 26px 1fr; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .splash, .splash.out, .sp-logo, .sp-go .big-btn, :is(#map, #travel) .me-ring { animation: none; } }
/* ---------------------------------------------------------- računalo: isti stupac, karta i ploča kao kartice */
@media (min-width: 760px) {
  :root { --stage-h: 400px; }
  body.pinning { --stage-h: 500px; }
  html { background: var(--sky-bottom); }
  body { min-height: 100vh; padding: 22px 16px 40px; background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) 420px, var(--sky-bottom) 900px); }
  .stage, .wrap { max-width: 720px; margin-left: auto; margin-right: auto; border: 2.5px solid var(--edge); border-radius: 22px; box-shadow: 6px 6px 0 var(--edge); }
  .stage { transition: none; }
  .wrap { margin-top: 18px; padding: 18px 24px 30px; }
  .grab { display: none; }
  .hud, .map-ctrl { top: 12px; }
  .where { max-width: none; }
  .zoom-pm { display: grid; }
  .city-card { top: 62px; }
}

/* =========================================================
   VERZIJA 19: gornja traka s izbornikom (kao na Dokleu), lige sa strane na mobitelu
   Na karti su samo stvari koje pripadaju karti: gdje si, putokaz, Fogg i gumbi za zum.
   ========================================================= */
.topbar {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow: hidden;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  background: linear-gradient(180deg, var(--sky-top), var(--sky-mid));
  border-bottom: 2.5px solid var(--edge);
}
/* sunce (mjesec u tamnoj temi) i oblak iza naslova, kao na naslovnici */
.topbar::before { content: ""; position: absolute; z-index: -1; right: 92px; top: -46px; width: 96px; height: 96px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #ffe27a 0 44%, var(--sun) 45% 62%, rgba(255,201,60,0) 63%); opacity: .9; }
.topbar::after { content: ""; position: absolute; z-index: -1; left: 46%; top: 12px; width: 54px; height: 16px; border-radius: 99px; background: #fff; opacity: .7; pointer-events: none;
  box-shadow: 14px -8px 0 -2px #fff, 30px -2px 0 -4px #fff; }
[data-theme="dark"] .topbar::before { background: radial-gradient(circle, #f4efe4 0 36%, rgba(244,239,228,.18) 37% 52%, rgba(244,239,228,0) 53%); }
[data-theme="dark"] .topbar::after { opacity: .06; }
.tb-brand { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0; background: none; border: 0; cursor: pointer; color: var(--head); text-align: left; }
.tb-brand:active .logo { transform: rotate(-12deg) scale(.95); }
.tb-brand .logo { width: 44px; height: 44px; flex: none; transition: transform .25s cubic-bezier(.3,1.6,.5,1); filter: drop-shadow(0 3px 0 rgba(13,23,38,.18)); }
.tb-brand:hover .logo { transform: rotate(-8deg); }
.tb-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tb-name { font-family: var(--display); font-size: 21px; line-height: .95; white-space: nowrap; color: var(--head); text-shadow: 2px 2px 0 var(--halo); }
.tb-name i { font-style: normal; color: var(--coral); }
.tb-day { display: flex; align-items: center; gap: 0; min-width: 0; font-family: var(--type); font-weight: 700; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tb-day b { color: var(--ink); margin-left: 4px; }
.tb-reg { overflow: hidden; text-overflow: ellipsis; }
.tb-reg:not(:empty)::before { content: "·"; margin: 0 5px; color: var(--ink-2); }
/* izbornik: jedna "pilula" s gumbima, tvrda sjena kao kartice u igri */
.tb-menu { display: flex; align-items: stretch; flex: none; background: var(--card); border: 2.5px solid var(--edge); border-radius: 99px; box-shadow: 3px 3px 0 var(--edge); overflow: hidden; }
.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 42px; padding: 0 10px; cursor: pointer;
  background: none; color: var(--ink); border: 0; border-radius: 0; box-shadow: none;
  font-family: var(--type); font-weight: 700; font-size: 17px; white-space: nowrap; transition: background .15s ease;
}
.tb-btn + .tb-btn { border-left: 2px solid var(--edge); }
.tb-btn:hover { background: var(--tint-y); }
.tb-btn:active { background: var(--sun); color: var(--on-sun); transform: none; }
.tb-btn .tb-t { font-size: 13.5px; }
.acct-btn { max-width: none; box-shadow: none; }
.acct-btn.in { background: var(--sun); color: var(--on-sun); }
.tb-ico { font-size: 16px; line-height: 1; }
/* mobitel: gore su samo tema i profil (lige su sa strane, pravila iza loga) */
.tb-rules, .tb-lg, .tb-btn .tb-t { display: none; }
@media (max-width: 759px) { .tb-menu > #world-btn { border-left: 0; } }
@media (max-width: 370px) { .tb-name { font-size: 18px; } .tb-brand .logo { width: 38px; height: 38px; } .tb-reg { display: none; } }

/* lige: jezičac na desnom rubu (mobitel) */
.side-lg {
  position: fixed; right: 0; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer;
  padding: 10px 7px 10px 9px; border: 2.5px solid var(--edge); border-right: 0; border-radius: 14px 0 0 14px;
  background: var(--sun); color: var(--on-sun); box-shadow: -3px 3px 0 var(--edge);
  font-family: var(--type); font-weight: 700; font-size: 11px; letter-spacing: .03em; text-transform: uppercase;
  transition: transform .25s ease, opacity .25s ease; animation: sidein .5s .6s cubic-bezier(.3,1.4,.5,1) both;
}
.side-lg:active { transform: translateX(3px); }
.sl-ico { font-size: 22px; line-height: 1; }
.sl-rank { background: var(--coral); color: #fff; border-radius: 99px; padding: 1px 6px; font-size: 11px; margin-top: 2px; }
@keyframes sidein { from { translate: 110% 0; } to { translate: 0 0; } }
body.in-q .side-lg, body.map-open .side-lg, body.splash-open .side-lg, body.kb .side-lg, body:has(dialog[open]) .side-lg { transform: translateX(110%); opacity: 0; pointer-events: none; }

/* karta na mobitelu: malo niža jer je gore traka */
:root { --stage-h: 42vh; }
@supports (height: 1svh) { :root { --stage-h: 42svh; } }
.hud-r { right: calc(max(10px, env(safe-area-inset-right)) + 44px); max-width: calc(100% - 170px); }
.where { max-width: 52vw; }

@media (min-width: 760px) {
  :root { --stage-h: 400px; }
  body { padding-top: 0; }
  .topbar { max-width: none; margin: 0 -16px 20px; padding: 18px 28px 14px; background: none; border: 0; overflow: visible; }
  .topbar::before, .topbar::after { display: none; }
  .tb-brand { gap: 12px; }
  .tb-brand .logo { width: 58px; height: 58px; }
  .tb-name { font-size: 32px; text-shadow: 3px 3px 0 var(--halo); }
  .tb-day { font-size: 13px; }
  .tb-rules, .tb-lg { display: inline-flex; }
  .tb-btn { height: 44px; min-width: 46px; padding: 0 16px; }
  .tb-btn .tb-t { display: inline; }
  #theme-btn { padding: 0 14px; }
  .acct-btn .tb-t { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
  .side-lg { display: none; }
}
}

/* =========================================================
   VERZIJA 21: mirnije i preglednije (po uzoru na raspored Doklea)
   - gornja traka bez pozadine: logo lijevo, mali izbornik desno
   - karta je zaobljena kartica s razmakom od ruba, na njoj samo: gdje si, putokaz i dva gumba
   - manje imena na karti dok je udaljena
   ========================================================= */
body { background: var(--paper); }
[data-theme="dark"] body, [data-theme="dark"] html { background: var(--paper); }

.topbar { background: none; border: 0; overflow: visible; padding: max(10px, env(safe-area-inset-top)) 14px 10px; }
.topbar::before, .topbar::after { display: none; }
.tb-brand .logo { width: 36px; height: 36px; filter: none; }
.tb-name { font-size: 20px; text-shadow: none; }
.tb-day { font-size: 11px; }
.tb-menu { border-width: 2px; box-shadow: 2px 2px 0 var(--edge); }
.tb-btn { height: 36px; min-width: 40px; }
.tb-btn + .tb-btn { border-left-width: 1.5px; }

/* karta kao kartica */
.stage {
  margin: 0 12px; height: min(var(--stage-h), calc((100vw - 24px) * .86)); min-height: 230px;
  border: 2px solid var(--edge); border-radius: 18px; box-shadow: 3px 3px 0 var(--edge);
}
body.pinning .stage { height: 58vh; height: 58svh; }
body.kb:not(.pinning) .stage { height: 132px; min-height: 0; }
body.map-open .stage { margin: 0; border: 0; border-radius: 0; box-shadow: none; }

/* oznake na karti: manje, bez tvrdih sjena, da se vidi karta */
.hud { top: 10px; gap: 6px; }
.hud-l { left: 10px; }
.hud-r { right: 10px; max-width: 56%; }
.where { padding: 4px 9px 5px; border-width: 1.5px; border-radius: 10px; box-shadow: 0 2px 8px rgba(13,23,38,.18); max-width: 44vw; background: color-mix(in srgb, var(--card) 94%, transparent); }
.where b { font-size: 15px; }
.where small { font-size: 11px; display: flex; align-items: center; gap: 0; }
.where small > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.fogg-mini { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink-2); white-space: nowrap; margin-left: 2px; }
#s-fogg.ahead { color: var(--teal); }
#s-fogg.behind { color: var(--coral-dark); }
.road-sign { border-width: 2px; border-radius: 6px; box-shadow: 0 2px 8px rgba(13,23,38,.25); }
.road-sign::before { padding: 0 6px; font-size: 13px; }
.road-sign b { font-size: 13.5px; padding: 4px 0 4px 8px; }
.road-sign span { font-size: 12px; padding: 4px 8px 4px 6px; }
.map-ctrl { top: auto; bottom: 10px; right: 10px; flex-direction: row; gap: 6px; }
.map-btn { width: 34px; min-width: 34px; height: 34px; font-size: 15px; border-width: 1.5px; box-shadow: 0 2px 8px rgba(13,23,38,.2); background: color-mix(in srgb, var(--card) 94%, transparent); }
.city-card { top: 48px; }
#map .wp { stroke-width: 2.2; }
#map .lbl { font-weight: 700; }
#map .cty { opacity: 0; }
#map.countries .cty { opacity: .6; }

/* sadržaj ispod karte: obična stranica, bez ploče preko karte */
.wrap { margin: 16px 0 0; padding: 4px 16px 40px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.grab { display: none; }

@media (min-width: 760px) {
  .topbar { padding: 18px 28px 14px; }
  .tb-brand .logo { width: 52px; height: 52px; }
  .tb-name { font-size: 30px; text-shadow: 2px 2px 0 var(--halo); }
  .tb-btn { height: 42px; }
  .stage { margin: 0 auto; height: 420px; max-width: 760px; }
  body.pinning .stage { height: 520px; }
  .wrap { max-width: 760px; margin: 18px auto 0; padding: 20px 24px 30px; background: var(--card); border: 2px solid var(--edge); border-radius: 18px; box-shadow: 3px 3px 0 var(--edge); }
  .where { max-width: none; }
  .where b { font-size: 17px; }
  .where small { font-size: 12px; }
  .road-sign b { font-size: 15px; }
  .road-sign span { font-size: 13px; }
  .zoom-pm { display: none; }
}

/* =========================================================
   VERZIJA 22: način "runda u tijeku"
   Dok traje dan (pitanje ili rezultat stanice) vide se samo karta i pitanje.
   Kad je dan gotov, vraća se puna stranica: izbornik gore, karta, izvještaj, putovnica, pravila.
   ========================================================= */
.round-badge, .tb-leg { display: none; }
body.in-round .tb-menu, body.in-round .passport, body.in-round .guide, body.in-round .foot, body.in-round .side-lg { display: none !important; }

/* mobitel: karta od ruba do ruba, pitanje u ploči ispod nje */
@media (max-width: 759px) {
  body.in-round .topbar { display: none; }
  body.in-round .stage { margin: 0; border: 0; border-radius: 0; box-shadow: none; height: 50vh; height: 50svh; min-height: 270px; }
  body.in-round.pinning .stage { height: 60vh; height: 60svh; }
  body.in-round.kb:not(.pinning) .stage { height: 132px; min-height: 0; }
  body.in-round .hud { top: max(10px, env(safe-area-inset-top)); }
  body.in-round .round-badge {
    display: flex; align-items: center; gap: 6px; padding: 3px 11px 3px 3px; align-self: flex-start;
    background: var(--card); color: var(--head); border: 2px solid var(--edge); border-radius: 99px; box-shadow: 2px 2px 0 var(--edge);
    font-family: var(--display); font-size: 15px; white-space: nowrap;
  }
  body.in-round .round-badge .logo { width: 28px; height: 28px; }
  body.in-round .round-badge b { font-weight: 400; }
  body.in-round.kb .round-badge { display: none; }
  body.in-round .wrap {
    position: relative; z-index: 2; margin: -22px 0 0; padding: 12px 16px 30px; min-height: 52vh;
    background: var(--card); border-top: 2px solid var(--edge); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 18px rgba(13,23,38,.12);
  }
  body.in-round .wrap::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--dash); margin: 0 auto 12px; }
}

/* računalo: široka karta, pitanje ispod nje bez okvira (kao na Dokleu) */
@media (min-width: 760px) {
  body.in-round .topbar { max-width: min(1400px, calc(100vw - 48px)); margin: 0 auto 12px; padding: 16px 0 0; }
  body.in-round .tb-brand .logo { width: 46px; height: 46px; }
  body.in-round .tb-name { font-size: 24px; }
  body.in-round .tb-leg { display: block; font-family: var(--type); font-weight: 700; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
  body.in-round .stage { max-width: min(1400px, calc(100vw - 48px)); height: min(460px, 52vh); }
  body.in-round.pinning .stage { height: min(600px, 66vh); }
  body.in-round .wrap { max-width: 940px; margin: 8px auto 0; padding: 14px 0 40px; background: none; border: 0; box-shadow: none; }
  body.in-round .question { font-size: 34px; }
}
@media (max-width: 759px) { body.in-round .map-ctrl { bottom: 32px; } }
@media (min-width: 760px) { body.in-round .wrap > * { max-width: 940px; } }

/* O igri (tekst za tražilice i nove igrače), samo na punoj stranici */
.about { margin-top: 30px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.about h2 { font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--head); margin: 0 0 6px; }
.about p { margin: 0 0 10px; }
.about b { color: var(--ink); }
body.in-round .about { display: none; }

.foot-links { display: flex; gap: 14px; }
.foot-links a { color: var(--ink-2); }
.auth-note a { color: var(--coral-dark); }

/* svi odgovori po kategorijama (nakon stanice) */
.allans { margin-top: 14px; border: 2px solid var(--edge); border-radius: 14px; background: var(--card2); overflow: hidden; }
.allans summary { cursor: pointer; list-style: none; padding: 10px 14px; font-family: var(--type); font-weight: 700; font-size: 14px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.allans summary::-webkit-details-marker { display: none; }
.allans summary::after { content: "▾"; font-size: 14px; transition: transform .2s; }
.allans[open] summary::after { transform: rotate(180deg); }
.allans ul { list-style: none; margin: 0; padding: 0 12px 6px; }
.allans li { padding: 8px 0; border-top: 2px dotted var(--line); }
.allans li.mine { background: var(--tint-y); margin: 0 -12px; padding: 8px 12px; }
.aa-h { display: flex; align-items: center; gap: 8px; }
.aa-v { font-size: 20px; width: 26px; text-align: center; }
.aa-h b { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--head); }
.aa-k { font-family: var(--type); font-weight: 700; font-size: 13px; color: var(--teal); }
.aa-h small { margin-left: auto; font-family: var(--type); font-weight: 700; font-size: 12px; color: var(--ink-2); }
.aa-l { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 0 34px; }
.aa-n { font-size: 13.5px; line-height: 1.2; padding: 3px 8px; border-radius: 99px; background: var(--field); border: 1.5px solid var(--line); }
.aa-n.me { background: var(--sun); color: var(--on-sun); border-color: var(--edge); font-weight: 700; }
.aa-more { font-family: var(--type); font-size: 12.5px; color: var(--ink-2); align-self: center; }
.aa-note { margin: 4px 12px 10px; font-size: 12.5px; color: var(--ink-2); }

/* =========================================================
   VERZIJA 25: glađa karta i pisanje na mobitelu
   ========================================================= */
/* Na odmaknutoj karti okomiti potez pomiče stranicu. Zumirana karta, pribadača
   i cijeli zaslon uzimaju sve dodire kako bi se mogli pomicati i štipati. */
.map-card.zoomed #map, .map-card.pin-mode #map, .map-card.fs #map { touch-action: none; }
.stage, body.pinning .stage { transition: none; }
#map .coast { stroke-width: .8; }
#map .borders { stroke-width: 1.2; }

/* tijekom runde na mobitelu igra je pričvršćena na vidljivi dio zaslona:
   karta zauzme ostatak, ploča s pitanjem je ispod i sama se pomiče; tipkovnica smanji kartu, ne pomiče stranicu */
@media (max-width: 759px) {
  body.in-round {
    position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100vh); overflow: hidden;
    display: flex; flex-direction: column; overscroll-behavior: none;
  }
  @supports (height: 1dvh) { body.in-round { height: var(--vvh, 100dvh); } }
  body.in-round .stage, body.in-round.pinning .stage, body.in-round.kb:not(.pinning) .stage { flex: 1 1 auto; height: auto !important; min-height: 110px; }
  body.in-round .wrap {
    flex: 0 1 auto; min-height: 0; max-height: 64%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
  body.in-round.pinning .wrap { max-height: 44%; }
  body.in-round.kb .wrap { max-height: calc(100% - 110px); }
  body.in-round .map-ctrl { bottom: 30px; }
}


/* Tijekom običnih pitanja kamera ostaje na državi; pomicanje ostaje dostupno na početku i u pribadači. */
body.in-round:not(.pinning) .map-ctrl { display: none !important; }
body.in-round:not(.pinning) .map-card.zoomed #map { touch-action: pan-y; }


/* Rezultat: akcija je uvijek pri ruci, bez skrolanja do dna kartice. */
.feedback-action-dock {
  position: fixed; inset: auto 0 0; z-index: 60;
  display: flex; justify-content: center;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--paper) 38%);
  pointer-events: none;
}
.feedback-action-dock .big-btn {
  width: min(100%, 720px); margin: 0; pointer-events: auto;
}
body.has-feedback-dock .t-body { padding-bottom: 112px; }

/* =========================================================
   VERZIJA 28: runda kao na Dokleu, na svakom zaslonu bez skrolanja
   Tijekom runde stranica je točno visine zaslona: gore (na računalu) traka s logom,
   karta uzme sav slobodan prostor, a ispod je ploča s pitanjem koja nikad ne gura
   gumb "Dalje" ispod ruba. Rezultat stanice je jedan redak, a odmah ispod je "Dalje".
   ========================================================= */
body.in-round {
  position: fixed; inset: 0; height: 100vh; overflow: hidden; padding: 0; margin: 0; box-sizing: border-box;
  display: flex; flex-direction: column; overscroll-behavior: none;
}
@supports (height: 1dvh) { body.in-round { height: 100dvh; } }
body.in-round > .topbar { flex: none; }
body.in-round .stage { flex: 1 1 auto; height: auto !important; min-height: 150px; }
body.in-round .wrap {
  flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
body.in-round .about, body.in-round .foot, body.in-round .passport, body.in-round .guide { display: none !important; }
/* mobitel: runda prati VIDLJIVI dio zaslona (--vvh/--vvt iz visualViewporta), pa tipkovnica smanji kartu,
   a ploča s poljem za odgovor ostaje iznad nje (pravilo iznad bi inače vratilo punu visinu zaslona) */
@media (max-width: 759px) {
  body.in-round { inset: auto 0 auto 0; top: var(--vvt, 0px); height: var(--vvh, 100vh); }
  @supports (height: 1dvh) { body.in-round { height: var(--vvh, 100dvh); } }
}

/* kompaktno zaglavlje stanice */
body.in-round .pips { margin-bottom: 10px; gap: 4px; }
body.in-round .pip { height: 6px; }
body.in-round .timer { margin: 0 0 10px; }
body.in-round .timer-track { height: 8px; }
body.in-round .timer.reading .timer-track { height: 16px; }
body.in-round .question { margin: 0 0 8px; }
body.in-round .q-help, body.in-round .pin-help { margin-bottom: 12px; font-size: 14.5px; }
body.in-round .row-actions { margin-top: 8px; }
body.in-round .retry-note { margin-top: 8px; padding: 7px 11px; font-size: 14px; }

/* rezultat stanice: jedan redak */
.res-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 10px 14px; margin: 4px 0 0; background: var(--card2, var(--field)); border: 2px solid var(--edge);
  border-radius: 14px; box-shadow: 2px 2px 0 var(--edge);
}
.rr-ico { font-size: 30px; line-height: 1; width: 40px; text-align: center; }
.rr-ico img.vi.vp { zoom: 1; }        /* sličica u retku iste veličine kao stare ikone (42 px) */
.map-toast img.vi.vp { zoom: 1; width: 48px; height: 48px; border-color: #fff; }
.rr-txt { min-width: 0; }
.rr-txt .v-answer { font-size: 19px; line-height: 1.15; }
.rr-txt .rarity { margin-top: 5px; }
.rr-txt .rarity i { width: 12px; height: 6px; }
.rr-txt .v-meta { font-size: 13px; margin-top: 4px; line-height: 1.3; }
.rr-txt .appeal { margin-top: 4px; }
.rr-km { text-align: right; white-space: nowrap; }
.rr-km b { display: block; font-family: var(--type); font-weight: 700; font-size: 20px; color: var(--teal); }
.rr-km small { display: block; font-family: var(--type); font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.res-row.bad .rr-km b { color: var(--coral-dark); }
.res-go { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.res-go .big-btn { width: auto; min-width: 180px; margin: 0; padding: 11px 20px; font-size: 20px; }
.res-key { font-family: var(--type); font-size: 12px; color: var(--mute); }
@media (hover: none) { .res-key { display: none; } }
body.in-round .v-hint, body.in-round .sv-new, body.in-round .hl-log { margin-top: 12px; }
body.in-round .allans { margin-top: 12px; }

/* mobitel: karta od ruba do ruba, ploča s pitanjem odozdo */
@media (max-width: 759px) {
  body.in-round { top: var(--vvt, 0px); height: var(--vvh, 100dvh); }
  body.in-round .wrap { max-height: 62%; margin-top: -18px; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); min-height: 0; }
  body.in-round .wrap::before { display: none; }
  body.in-round.pinning .wrap { max-height: 44%; }
  body.in-round.kb .wrap { max-height: calc(100% - 96px); }
  body.in-round.kb .stage { min-height: 96px; }
  body.in-round .question { font-size: clamp(21px, 5.8vw, 26px); }
  body.in-round .t-head { padding-bottom: 8px; font-size: 11.5px; }
  .res-go .big-btn { flex: 1; }
}
@media (max-width: 520px) { body.in-round .st-name { display: none; } }
/* niski zasloni (mali mobitel, tipkovnica): pomoćni tekst manji */
@media (max-height: 640px) {
  body.in-round .q-help { font-size: 13.5px; line-height: 1.3; margin-bottom: 10px; }
  body.in-round .pips { display: none; }
  .rr-ico { font-size: 24px; width: 30px; }
}

/* računalo: traka gore, karta u sredini (koliko stane), pitanje ispod u uskom stupcu */
@media (min-width: 760px) {
  body.in-round > .topbar { width: min(1180px, calc(100vw - 48px)); max-width: none; margin: 0 auto; padding: 12px 0 10px; }
  body.in-round .tb-brand .logo { width: 40px; height: 40px; }
  body.in-round .tb-name { font-size: 22px; }
  body.in-round .stage { width: min(1180px, calc(100vw - 48px)); max-width: none; margin: 0 auto; min-height: 44%; }
  body.in-round .wrap { width: min(760px, calc(100vw - 48px)); max-width: none; max-height: 50%; margin: 0 auto; padding: 16px 0 18px; }
  body.in-round.pinning .wrap { max-height: 40%; }
  body.in-round .wrap > * { max-width: none; }
  body.in-round .question { font-size: clamp(24px, 3.4vh, 32px); }
}
@media (min-width: 760px) and (max-height: 700px) {
  body.in-round > .topbar { padding: 8px 0 6px; }
  body.in-round .tb-brand .logo { width: 32px; height: 32px; }
  body.in-round .tb-name { font-size: 19px; }
  body.in-round .wrap { padding-top: 10px; }
}

/* =========================================================
   VERZIJA 29: svi odgovori u izvještaju (kao na Dokleu)
   ========================================================= */
.log-tip { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.log li.log-x { display: block; padding: 0; }
.log-btn {
  display: grid; grid-template-columns: 36px 1fr auto 18px; gap: 0 10px; align-items: center; width: 100%;
  padding: 8px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.log-btn:hover .lq { color: var(--ink); }
.lx-ch { font-size: 13px; color: var(--ink-2); transition: transform .2s; text-align: center; }
.log-x.open .lx-ch { transform: rotate(180deg); }
.log-x.open .log-btn { background: var(--tint-y); border-radius: 10px; }
.log-all { padding: 10px 0 14px; }
.la-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.la-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; cursor: pointer;
  background: var(--field); color: var(--ink); border: 1.5px solid var(--line); font-family: var(--type); font-size: 13px;
}
.la-chip b { font-weight: 700; }
.la-chip.on { background: var(--sun); color: var(--on-sun, var(--ink)); border-color: var(--edge); }
.la-q {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line);
  background: var(--field); color: var(--ink); font: inherit; font-size: 15px;
}
.la-q:focus { outline: none; border-color: var(--edge); }
.la-note { margin: 8px 0 6px; font-size: 12.5px; color: var(--ink-2); }
.log .la-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.log .la-list li {
  display: grid; grid-template-columns: 26px 1fr auto 44px; gap: 0 8px; align-items: center;
  padding: 6px 4px; border-bottom: 1px solid var(--line);
}
.log .la-list li[hidden] { display: none; }
.log .la-list li.me { background: var(--tint-y); border-radius: 8px; font-weight: 700; }
.la-v { font-size: 17px; text-align: center; }
.la-n { min-width: 0; overflow-wrap: anywhere; }
.la-s { font-family: var(--type); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.la-k { font-family: var(--type); font-weight: 700; font-size: 14px; color: var(--teal); text-align: right; }
.play .sv-new { margin-top: 12px; }

/* =========================================================
   VERZIJA 30: manje posla za preglednik (karta)
   ========================================================= */
/* Prsten oko igrača i oznake pribadače više ne pulsiraju beskonačno: svaki takt animacije
   unutar karte tjerao je preglednik da 60 puta u sekundi ponovno iscrtava cijelu kartu
   (i dok se samo upisuje odgovor). Sad pulsiraju nekoliko puta pa stanu. */
:is(#map, #travel) .me-ring { animation-iteration-count: 3; }
#map .pin-guess-ring { animation-iteration-count: 4; }
#map .pin-line { animation-iteration-count: 4; }
/* karta i podloga su stalno na svom sloju (paljenje i gašenje sloja svaki put ponovno crta sve) */
#map, #map-base { will-change: transform; }
#map .cty { display: none; }
#map.countries .cty { display: inline; }
#map.flying .cty { display: none; }

/* =========================================================
   VERZIJA 31: vlastite ikone prijevoza i dva fonta
   Fredoka (naslovi, gumbi, oznake, brojke) i Nunito (tekst).
   ========================================================= */
:root {
  --display: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --type: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --ic-line: #1d2a3d;
}
[data-theme="dark"] { --ic-line: #efe6cf; }
body { font-variant-numeric: tabular-nums; }
.vi { display: inline-block; width: 1.3em; height: 1.3em; vertical-align: -0.28em; color: var(--ic-line); flex: none; overflow: visible; }
/* veće ikone gdje je ikona glavna stvar */
/* prijevoz s fotografijom u kružiću */
img.vi.vp { zoom: 1.3; border-radius: 50%; object-fit: cover; box-sizing: border-box; border: 2px solid var(--edge, #1d2a3d); background: #fff; }
.rr-ico .vi { width: 42px; height: 42px; vertical-align: middle; }
.log .le .vi { width: 30px; height: 30px; vertical-align: middle; }
.aa-v .vi, .la-v .vi { width: 24px; height: 24px; vertical-align: middle; }
.la-chip .vi { width: 20px; height: 20px; vertical-align: middle; }
.tt .em .vi { width: 26px; height: 26px; }
.pp-crest .vi { width: 36px; height: 36px; }
.p-passport .pp-crest .vi { width: 28px; height: 28px; }
.sv-title .vi { width: 24px; height: 24px; vertical-align: -5px; }
.sc-i .vi { width: 28px; height: 28px; }
.p-facts .vi { width: 22px; height: 22px; vertical-align: -6px; }
:is(#map, #travel) .me-bg { fill: #fff8e8; stroke: var(--edge, #1d2a3d); stroke-width: 2.5; }
:is(#map, #travel) #m-ico { color: #1d2a3d; }
/* Fredoka je okrugao i nije pretežak: naslovi u 600, bez lažnog podebljavanja */
h1, h2, h3, .question, .big-btn, .tb-name, .v-answer, .rt-num, .sv-title, .pp-title, .sb-km, .aa-h b { font-synthesis: none; }
.question { letter-spacing: -0.005em; }
/* nekadašnji "pisaći stroj" (oznake, brojke): isti font kao tekst, samo podebljan i razmaknut */
.t-head, .timer-n, .rr-km b, .la-k, .aa-k, .st-d, .res-key, .lk { font-weight: 600; }
/* v32: ikone u krugu boje razine (Tabler Icons) */
.pp-crest .vi { color: #f6d47a; }
.sv-title .vi, .sc-i .vi { color: var(--coral); }
:is(#map, #travel) .me-bg { fill: #fff; stroke: var(--edge, #1d2a3d); stroke-width: 2.5; }
.la-chip .vi { width: 22px; height: 22px; }

/* v33: slika cijelog svijeta ispod oštre karte (vidi se dok se karta miče) */
#map-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; will-change: transform; }

/* v34: gumb za zvuk (ispod putokaza) */
.snd-btn {
  pointer-events: auto; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: 50%; box-shadow: 2px 2px 0 var(--edge); padding: 0;
}
.snd-btn .vi { width: 20px; height: 20px; color: var(--ink); vertical-align: middle; }
.snd-btn.off .vi { color: var(--mute); }
.snd-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--edge); }

/* v36: na kraju dana na karti je ikona profila; brojka dana i logo opet u debljem fontu (Titan One) */
:is(#map, #travel) .me-prof { fill: var(--coral); }
:is(#map, #travel) .me-init { font-family: "Titan One", var(--display); font-size: 17px; fill: #fff; pointer-events: none; }
#m-me.me-profile .me-ring { animation: none; opacity: 0; }
.rt-num, .tb-name { font-family: "Titan One", var(--display); font-weight: 400; font-synthesis: none; }

/* v37: kamera zaključana na igraču; gumbi karte samo kod pribadače */
.map-ctrl { display: none !important; }
body.pinning .map-ctrl, .map-card.fs ~ .map-ctrl { display: flex !important; }
#map .here { fill: var(--m-here, #83c78b); stroke: var(--m-bord, rgba(255,255,255,.85)); stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; }
html.test #map .here { fill-opacity: .4; }   /* ?test: kroz zelenu državu u kojoj si vidi se teren */
#map:not(.pinning) { cursor: default; }
/* promjene unutar karte (putokaz, oznake) ne preračunavaju raspored ostatka stranice */
.stage { contain: layout paint; }
.hud { contain: layout; }

/* =========================================================
   VERZIJA 38: karta stalne veličine (kao na Dokleu)
   Karta se više ne smanjuje i ne povećava između pitanja, rezultata i tipkovnice:
   na mobitelu je preko cijelog zaslona, a ploča s pitanjem leži preko njezinog donjeg dijela;
   na računalu ima stalnu visinu. Zato se pri prelasku na sljedeće pitanje ništa ne crta ispočetka.
   ========================================================= */
@media (max-width: 759px) {
  body.in-round { display: block; }
  body.in-round .stage, body.in-round.pinning .stage, body.in-round.kb .stage, body.in-round.kb:not(.pinning) .stage {
    position: fixed; left: 0; right: 0; top: 0; height: var(--lvh, 100vh) !important; min-height: 0 !important; flex: none; margin: 0; z-index: 1;
  }
  body.in-round .wrap {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0; max-height: 60%;
  }
  body.in-round.pinning .wrap { max-height: 42%; }
  body.in-round.kb .wrap { max-height: calc(100% - 64px); }
  body.in-round .map-ctrl { top: auto; bottom: calc(42% + 12px); }
}
@media (min-width: 760px) {
  body.in-round .stage, body.in-round.pinning .stage { flex: none; height: clamp(240px, calc(100vh - 330px), 640px) !important; min-height: 0; }
  body.in-round .wrap, body.in-round.pinning .wrap { flex: 1 1 auto; max-height: none; }
}

/* =========================================================
   VERZIJA 39: računalo — runda bez skrolanja (kao na Dokleu)
   Gornji red (regija, 2/8, danas) i crtice napretka su maknuti; 2/8 i današnji km su u retku s vremenom.
   Karta je nešto niža, a pitanje i sve vrste odgovora su zbijenije, pa sve stane na zaslon.
   ========================================================= */
.timer-meta { display: none; }
@media (min-width: 760px) {
  body.in-round > .topbar { padding: 8px 0 6px; }
  body.in-round .tb-brand .logo { width: 34px; height: 34px; }
  body.in-round .tb-name { font-size: 20px; }
  body.in-round .tb-day { font-size: 11px; }
  body.in-round .tb-leg { display: none; }
  body.in-round .stage, body.in-round.pinning .stage { height: clamp(220px, calc(100vh - 385px), 640px) !important; }
  body.in-round .wrap, body.in-round.pinning .wrap { padding: 12px 0 10px; }
  body.in-round .t-head, body.in-round .pips { display: none !important; }
  body.in-round .timer { margin: 0 0 8px; gap: 12px; }
  body.in-round .timer-meta { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; font-family: var(--type); font-weight: 600; font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .02em; }
  body.in-round .timer-meta b { color: var(--ink); }
  body.in-round .timer-meta .day-km { font-size: 13px; }
  body.in-round .question { font-size: clamp(22px, 3.2vh, 28px); margin: 0 0 6px; }
  body.in-round .q-label { margin: 0 0 2px; }
  body.in-round .q-help, body.in-round .pin-help { margin: 0 0 10px; font-size: 14px; line-height: 1.35; }
  body.in-round .row-actions { margin-top: 6px; }
  /* razglednica */
  body.in-round .emoji-card { font-size: 40px; line-height: 1.15; padding: 4px 6px; margin-bottom: 8px; border-width: 2px; }
  body.in-round .opts { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
  body.in-round .opt { padding: 9px 8px; font-size: 16px; box-shadow: 2px 2px 0 var(--edge); }
  /* više ili manje */
  body.in-round .hl-btn { min-height: 58px; font-size: 17px; padding: 8px; }
  body.in-round .hl-dots { margin-top: 8px; }
  body.in-round .hl-dots i { width: 11px; height: 11px; }
  /* završni let */
  body.in-round .bet-choice { grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 8px; }
  body.in-round .bet-btn { padding: 10px 14px; box-shadow: 3px 3px 0 var(--edge); }
  body.in-round .start-lead { margin: 0 0 6px; }
  /* procjena broja */
  body.in-round .num-form { margin-top: 4px; }
  /* rezultat */
  body.in-round .res-row { padding: 8px 12px; }
  body.in-round .res-go { margin-top: 10px; }
}
@media (min-width: 760px) and (max-height: 760px) {
  body.in-round .stage, body.in-round.pinning .stage { height: clamp(200px, calc(100vh - 375px), 600px) !important; }
}

/* v40: natpis s prijevozom na karti nakon odgovora */
.map-toast {
  position: absolute; left: 50%; bottom: 14px; z-index: 6; transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; max-width: calc(100% - 24px);
  background: #1d2a3d; color: #fff; border-radius: 14px; box-shadow: 0 6px 16px rgba(13,23,38,.28); white-space: nowrap;
  transition: opacity .25s ease, transform .25s ease;
}
.map-toast.show { opacity: 1; transform: translate(-50%, 0); }
.map-toast .vi { width: 36px; height: 36px; }
.map-toast .mt-t { display: flex; flex-direction: column; min-width: 0; }
.map-toast .mt-t b { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.1; }
.map-toast .mt-t small { font-size: 12px; color: #c9d4e2; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.map-toast .mt-k { font-family: var(--display); font-weight: 600; font-size: 19px; color: #ffc93c; margin-left: 4px; }
/* naziv prijevoza i u retku rezultata malo vidljiviji */
.rr-km small { font-size: 13px; font-weight: 700; color: var(--ink); }

/* v41: razglednica s postupnom pomoći */
.emo-mask { font-family: var(--display); font-weight: 600; letter-spacing: .06em; color: var(--coral-dark); white-space: pre; text-transform: none; }
.emo-mask.pop { display: inline-block; animation: popwin .45s cubic-bezier(.3,1.6,.5,1); }
.emo-next { font-family: var(--type); font-size: 12.5px; color: var(--ink-2); }

.emo-open .q-help, .emo-open .row-actions { display: none; }
@media (max-width: 759px) {
  body.in-round .emoji-card { font-size: 40px; line-height: 1.15; padding: 4px 6px; margin-bottom: 8px; }
  body.in-round .emo-open .opts { margin-top: 8px; gap: 8px; }
  body.in-round .emo-open .opt { padding: 10px 8px; font-size: 16px; }
}

/* v43: dok se odgovor provjerava (najviše pola sekunde), gumb odmah pokaže da radi */
.go.checking { cursor: progress; opacity: 1; }
.go .dots { display: inline-flex; gap: 5px; align-items: center; height: 1em; }
.go .dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dotb .6s ease-in-out infinite; }
.go .dots i:nth-child(2) { animation-delay: .1s; } .go .dots i:nth-child(3) { animation-delay: .2s; }
@keyframes dotb { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

/* v48: imena gradova s urednim tankim obrubom (prije je obrub rastao sa zumom pa su imena bila "oblaci") */
#map .lbl { stroke-width: 3.5px; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
#map .cty { vector-effect: non-scaling-stroke; }
/* Pribadača: na karti se ne smiju vidjeti imena gradova ni ruta (inače bi "Gdje je Bangkok?" bilo očito) */
#map.pinning .lbl, #map.pinning .cty, #map.pinning .wp, #map.pinning .route, #map.pinning .done, #map.pinning .done-case,
#map.pinning #m-me, #map.pinning #m-fogg, #map.pinning #m-here { display: none; }

/* v52: "Misliš na …?" prijedlog ispod polja (kao Dokle) */
.retry-note.sug-note { display: grid; gap: 4px; justify-items: start; }
.sug-q { font-weight: 700; font-size: 16px; }
.sug-chip { font: inherit; font-weight: 800; color: var(--ink, #1d2a3d); background: #ffc93c; border: 2px solid var(--edge, #1d2a3d);
  border-radius: 9px; padding: 1px 8px; margin: 0 2px; cursor: pointer; box-shadow: 1px 1px 0 var(--edge, #1d2a3d); }
.sug-chip:active { transform: translate(1px, 1px); box-shadow: none; }
.sug-sub { font-size: 13px; opacity: .8; }
.sug-no { font: inherit; font-size: 13.5px; font-weight: 700; margin-top: 4px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  background: transparent; color: inherit; border: 2px solid currentColor; opacity: .85; }
.sug-no kbd { font: 11px/1 monospace; border: 1px solid currentColor; border-radius: 4px; padding: 1px 4px; margin-left: 4px; opacity: .7; }
body.in-round .sug-q { font-size: 15px; }
@media (hover: none) { .sug-no kbd { display: none; } }

/* =========================================================
   v53: utrka lige na karti (kao na Dokleu)
   ========================================================= */
#map.racing #m-me, #map.racing #m-fogg { display: none; }
#m-race .rm-bg { fill: #2f7dd1; stroke: #fff; stroke-width: 3; }
#m-race .rm-t { font-family: "Titan One", var(--display); font-size: 13px; fill: #fff; pointer-events: none; }
#m-race .rm-me .rm-bg { fill: var(--coral); stroke: var(--ink, #1d2a3d); stroke-width: 3.5; }
#m-race .rm-me .rm-t { font-size: 11.5px; }
#m-race .rm { filter: drop-shadow(0 1.5px 1.5px rgba(13, 23, 38, .35)); }

.race-chip { position: absolute; z-index: 6; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 70px);
  font-family: inherit; font-weight: 700; font-size: 13.5px; line-height: 1; color: var(--ink); background: var(--card); border: 2px solid var(--edge); border-radius: 999px;
  padding: 7px 12px 7px 10px; box-shadow: 2px 2px 0 var(--edge); cursor: pointer; white-space: nowrap; }
.race-chip b { overflow: hidden; text-overflow: ellipsis; }
.race-chip span { background: #ffc93c; color: #1d2a3d; border-radius: 999px; padding: 2px 7px; font-size: 12px; }
.race-chip:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--edge); }

.race { position: absolute; z-index: 7; left: 10px; top: 72px; width: 250px; max-height: calc(100% - 92px); display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border: 2px solid var(--edge); border-radius: 14px; box-shadow: 3px 3px 0 var(--edge); overflow: hidden; }
.race-h { display: flex; align-items: center; gap: 8px; padding: 9px 10px 8px 12px; border-bottom: 1.5px dashed color-mix(in srgb, var(--edge) 35%, transparent); }
.race-name { flex: 1; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-name::before { content: "🏁 "; }
.race-pos { font-family: "Titan One", var(--display); font-size: 15px; }
.race-x { border: 0; background: transparent; color: inherit; font-size: 14px; cursor: pointer; padding: 2px 4px; }
.race-body { padding: 8px 10px 10px; overflow: auto; min-height: 0; display: grid; gap: 7px; }
.race[hidden], .race-chip[hidden], .sp-lg[hidden], .race-foot[hidden], .race-btn[hidden], .race-sel[hidden] { display: none !important; }
.race.collapsed .race-body { display: none; }
.race-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--edge); border-radius: 10px; overflow: hidden; }
.race-tabs button { font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1; padding: 7px 4px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.race-tabs button.on { background: var(--ink, #1d2a3d); color: #fff; }
.race-sub { font-size: 12.5px; opacity: .75; min-height: 1em; }
.race-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.race-list li { display: grid; grid-template-columns: 22px 26px 1fr auto; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 9px; font-size: 14px; }
.race-list li.me { background: color-mix(in srgb, #ffc93c 38%, transparent); }
.race-list .rl-n { font-weight: 700; opacity: .7; font-size: 13px; }
.race-list .rl-a { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 400 11px/1 "Titan One", var(--display); color: #fff; font-style: normal; background: #2f7dd1; }
.race-list .rl-a.me { background: var(--coral); }
.race-list .rl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.race-list b { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.race-list .race-wait { display: block; opacity: .7; font-size: 13px; }
.race-foot { font-size: 12.5px; opacity: .75; }
.race-sel { font: inherit; font-size: 13.5px; padding: 6px 8px; border-radius: 9px; border: 1.5px solid var(--edge); background: var(--card); color: inherit; }
.race-btns { display: flex; gap: 6px; }
.race-btn { flex: 1; font-family: inherit; font-weight: 700; font-size: 13.5px; line-height: 1; padding: 9px 8px; border-radius: 10px; border: 2px solid var(--edge); background: #ffc93c; color: #1d2a3d; cursor: pointer; box-shadow: 2px 2px 0 var(--edge); }
.race-btn.alt { background: var(--card); color: inherit; flex: 0 0 auto; }
.race-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--edge); }
body.in-round .race-chip, body.in-round .race { display: none; }
@media (max-width: 759px) {
  .race { top: auto; bottom: 54px; left: 8px; right: 8px; width: auto; max-height: 44%; }
  .race-list li { padding: 3px 6px; font-size: 13.5px; }
}

/* uvodni ekran: kartica lige */
.sp-lg { margin: 4px 0 2px; }
.sp-lg-btn { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--card); border: 2.5px solid var(--edge); border-radius: 14px; padding: 10px 14px; box-shadow: 3px 3px 0 var(--edge); }
.sp-lg-btn > span:first-child { font-size: 22px; }
.sp-lg-btn b { display: block; font-size: 16px; }
.sp-lg-btn small { display: block; font-size: 13px; opacity: .8; }
.sp-lg-arr { font-size: 20px; }
.sp-lg-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--edge); }

/* uvodni ekran: jedan centriran stupac (logo, naslov, tablica, tipka), iza nebo s oblacima i avionom */
.sp-col { display: contents; }
:where(.sp-in > *) { position: relative; z-index: 1; }
.sp-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sp-cloud { position: absolute; left: 0; width: 120px; height: 34px; border-radius: 40px; background: #fff; opacity: .75;
  box-shadow: 26px -16px 0 6px #fff, 62px -6px 0 2px #fff; animation: sp-drift 60s linear infinite; }
.sp-cloud.c1 { top: 16%; animation-duration: 70s; animation-delay: -12s; }
.sp-cloud.c2 { top: 44%; transform: scale(.7); opacity: .55; animation-duration: 90s; animation-delay: -55s; }
.sp-cloud.c3 { top: 72%; transform: scale(.85); opacity: .6; animation-duration: 80s; animation-delay: -30s; }
@keyframes sp-drift { from { translate: -200px 0; } to { translate: calc(100vw + 60px) 0; } }
[data-theme="dark"] .sp-cloud { opacity: .08; }
.sp-arc { position: absolute; left: 0; right: 0; top: 8%; width: 100%; height: 42%; }
.sp-arc path { fill: none; stroke: var(--head); stroke-width: 2.5; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .28; vector-effect: non-scaling-stroke; }
.sp-plane text { fill: var(--coral); }
.sp-in { justify-content: center; }
.sp-rules[hidden] { display: none; }
.sp-go { margin-top: 22px; padding-top: 0; }
.sp-fogg { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 7px 14px; background: var(--card); border: 2px solid var(--edge); border-radius: 99px;
  box-shadow: 2px 2px 0 var(--edge); font-size: 14px; line-height: 1.3; color: var(--ink-2); text-align: left; }
.sp-fogg b { color: var(--ink); }
.sp-top { position: absolute; z-index: 2; top: 0; left: max(0px, calc(50% - 50vw)); right: max(0px, calc(50% - 50vw)); padding: inherit; padding-bottom: 0; }
.sp-logo { margin-top: 48px; }
@media (min-width: 760px) and (min-height: 600px) {
  .sp-in { max-width: 640px; }
  .sp-logo { width: clamp(120px, 17vh, 170px); height: clamp(120px, 17vh, 170px); margin-top: 0; }
  .sp-word { font-size: clamp(64px, 7.5vw, 96px); text-shadow: 4px 4px 0 var(--halo); }
  .sp-sign { margin-top: 20px; transform: scale(1.15); }
  .sp-lead { margin-top: 24px; font-size: 19px; max-width: 34ch; }
  .sp-go { position: static; margin-top: 24px; padding-top: 0; align-self: center; }
  .sp-go .big-btn { width: auto; min-width: 360px; font-size: 26px; padding: 17px 34px; }
  .sp-lg { align-self: center; width: 100%; max-width: 420px; margin-top: 14px; }
  .sp-links { margin-top: 14px; }
  .sp-fogg { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .sp-cloud { animation: none; } .sp-plane { display: none; } }
@media (min-width: 1700px) and (min-height: 950px) { .sp-in { zoom: 1.2; } }

/* v57: mobitel tijekom runde – bez 8 traka napretka i bez "Danas +x km" (vidi se na kraju dana) */
@media (max-width: 759px) {
  body.in-round .pips, body.in-round .t-head .t-r { display: none !important; }
}

/* v58: točno mjesto kod pribadače = zastavica čiji je štap točno na mjestu; nakon pogotka karta se može zumirati */
#map .pin-true .pt-sh { fill: rgba(29,42,58,.25); }
#map .pin-true .pt-pole { stroke: #1d2a3a; stroke-width: 2.6; stroke-linecap: round; fill: none; }
#map .pin-true .pt-flag { fill: #e5392b; stroke: #1d2a3a; stroke-width: 1.8; stroke-linejoin: round; }
#map .pin-true .pt-dot { fill: #fff; stroke: #1d2a3a; stroke-width: 1.8; }
.map-card.pin-look #map { touch-action: none; cursor: grab; }
body.in-round.pin-look .map-ctrl, body.pin-look .map-ctrl { display: flex !important; }

/* ---------- stranica lige (liga.js + account.js) ---------- */
.modal.wide { width: min(760px, calc(100% - 16px)); }
.lgp { display: grid; gap: 14px; }
.lgp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-right: 40px; }
.lgp-kick { font-family: var(--type); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lgp-head .m-title { margin: 2px 0 4px; text-align: left; }
.lgp-sub, .lgp-mute { color: var(--ink-2); font-size: 14px; margin: 6px 0 0; }
.lgp-me { flex: none; text-align: center; border: 2px solid var(--edge); border-radius: 14px; padding: 6px 12px; background: var(--tint-y); }
.lgp-me b { display: block; font-family: var(--display); font-size: 24px; line-height: 1.1; }
.lgp-me small { font-size: 12px; color: var(--ink-2); }
.lgp-inv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.lgp-inv .big-btn { width: auto; padding: 10px 18px; }
.lgp-code { font-size: 14px; color: var(--ink-2); }
.lgp-card { border: 2.5px solid var(--edge); border-radius: 18px; background: var(--card); padding: 12px 14px 14px; min-width: 0; }
.lgp-card h3 { margin: 0 0 8px; font-family: var(--type); font-size: 16px; }
.lgp-h3row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.lgp-h3row h3 { margin: 0; }
.lgp-sel { font: inherit; font-size: 14px; border: 2px solid var(--edge); border-radius: 10px; padding: 3px 8px; background: var(--field); color: var(--ink); }
.lgp-av { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-style: normal; font-family: var(--type); font-weight: 700; font-size: 11px; border: 2px solid var(--edge); vertical-align: middle; }
.lgp-av.me { box-shadow: 0 0 0 2px var(--coral); }
.lgp-track { position: relative; height: 62px; margin: 4px 14px 6px; }
.lgp-line { position: absolute; left: 0; right: 0; top: 30px; border-top: 3px dashed var(--line); }
.lgp-pin { position: absolute; top: 6px; transform: translateX(-50%); transition: left .6s ease; }
.lgp-pin.low { top: 32px; }
.lgp-pin .lgp-av { width: 30px; height: 30px; font-size: 12px; }
.lgp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lgp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 99px; background: var(--field); border: 2px solid var(--line); font-size: 14px; }
.lgp-chip.me { border-color: var(--edge); background: var(--tint-y); }
.lgp-team { margin: 10px 0 0; font-size: 15px; }
.lgp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lgp-tabs button { font: inherit; font-family: var(--type); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 99px; border: 2px solid var(--edge); background: var(--field); color: var(--ink); cursor: pointer; }
.lgp-tabs button[aria-selected="true"] { background: var(--edge); color: var(--cream); }
.lgp-chart-h { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin: 2px 0 4px; }
.lgp-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 16px; margin-bottom: 10px; }
.lgp-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; padding-bottom: 16px; }
.lgp-bar i { display: block; width: 100%; max-width: 46px; background: var(--sea-deep); border: 2px solid var(--edge); border-bottom: 0; border-radius: 6px 6px 0 0; }
.lgp-bar.now i { background: #ffc93c; }
.lgp-bv { font-size: 11px; font-weight: 700; margin-bottom: 2px; white-space: nowrap; }
.lgp-bl { position: absolute; bottom: 0; font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.lgp-tw { overflow-x: auto; }
.lgp-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.lgp-t th { font-size: 12px; color: var(--ink-2); font-weight: 700; padding: 4px 6px; text-align: right; white-space: nowrap; }
.lgp-t td { padding: 7px 6px; text-align: right; border-top: 1.5px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lgp-t .l { text-align: left; }
.lgp-t td.l { display: flex; align-items: center; gap: 8px; }
.lgp-t .nm { overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.lgp-t td.b { font-weight: 800; }
.lgp-t td.pos { text-align: left; font-weight: 700; }
.lgp-t tr.me td { background: var(--tint-y); }
.lgp-t .up, .lgp-t .down { font-size: 11px; margin-left: 4px; }
.lgp-t .up { color: #1f9b6a; } .lgp-t .down { color: var(--coral); }
.lgp-legend { font-size: 12px; color: var(--ink-2); margin: 8px 0 0; }
.lgp-aw { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lgp-aw li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.3; }
.lgp-awi { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--field); border: 2px solid var(--line); font-size: 18px; }
.lgp-aw small { display: block; font-size: 11px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.lgp-aw em { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); }
.lgp-qnav { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 8px; text-align: center; margin-bottom: 8px; }
.lgp-qnav small { display: block; color: var(--ink-2); font-size: 12px; }
.lgp-qb { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--edge); background: var(--field); color: var(--ink); font-size: 20px; cursor: pointer; }
.lgp-qb:disabled { opacity: .35; cursor: default; }
.lgp-ans { list-style: none; margin: 0; padding: 0; }
.lgp-ans li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1.5px solid var(--line); }
.lgp-ans li.me { background: var(--tint-y); border-radius: 8px; }
.lgp-ans .nm { flex: 1; min-width: 0; font-weight: 700; }
.lgp-ans .nm small { display: block; font-weight: 400; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgp-ans .tv .vi { width: 24px; height: 24px; }
.lgp-ans b { min-width: 52px; text-align: right; color: #1f9b6a; }
.lgp-x { color: var(--coral); font-weight: 700; }
.lgp-world .lgp-track { margin: 6px 26px 4px; height: 78px; }
.lgp-world .lgp-line { top: 36px; }
.lgp-world .lgp-pin { top: 2px; }
.lgp-world .lgp-pin.low { top: 40px; }
.lgp-end { position: absolute; top: 28px; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.lgp-end.s { left: -26px; } .lgp-end.e { right: -26px; }
.lgp-end { background: var(--card); padding: 0 2px; }
.lgp-world .lgp-pin.fogg { top: 22px; font-size: 22px; z-index: 2; }
.lgp-where { list-style: none; margin: 8px 0 0; padding: 0; }
.lgp-where li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1.5px solid var(--line); }
.lgp-where li.me { background: var(--tint-y); border-radius: 8px; }
.lgp-where .nm { flex: 1; min-width: 0; font-weight: 700; }
.lgp-where .nm small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; }
.lgp-where b { min-width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.lgp-today { color: #1f9b6a; font-weight: 700; white-space: nowrap; }
.lgp-podium { display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 4px 0 14px; }
.lgp-step { flex: 0 1 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.lgp-step .lgp-av { width: 38px; height: 38px; font-size: 14px; }
.lgp-step .nm { font-weight: 700; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgp-step b { font-size: 13px; }
.lgp-block { width: 100%; display: grid; place-items: center; margin-top: 4px; border: 2.5px solid var(--edge); border-bottom: 0; border-radius: 10px 10px 0 0; font-family: var(--display); font-size: 22px; color: #1d2a3a; }
.lgp-step.s1 .lgp-block { height: 64px; background: #ffc93c; }
.lgp-step.s2 .lgp-block { height: 44px; background: #d8dee6; }
.lgp-step.s3 .lgp-block { height: 30px; background: #e8a46c; }
.lgp-step.me .nm { color: var(--coral); }
.lgp-aw { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lgp-post { position: relative; border: 2px dashed var(--line); border-radius: 12px; padding: 10px 44px 10px 10px; background: var(--field); }
.lgp-post .lgp-awi { position: absolute; top: 8px; right: 8px; transform: rotate(6deg); border-style: dotted; background: var(--tint-y); }
@media (max-width: 560px) {
  .lgp-t .lgp-o { display: none; }
  .modal.wide { padding: 18px 10px 14px; }
  .lgp-t .nm { max-width: 96px; }
  .lgp-t td, .lgp-t th { padding-left: 4px; padding-right: 4px; }
  .lgp-t .lgp-av { width: 22px; height: 22px; font-size: 10px; }
  .lgp-tabs button { padding: 5px 11px; font-size: 13px; }
  .lgp-card { padding: 10px 10px 12px; }
}

/* događaji na putu (zasad ?test) i testni izbor dana */
.ev-pop { width: min(400px, calc(100% - 28px)); padding: 0; border: 3px solid var(--edge); border-radius: 24px; overflow: hidden; text-align: center; box-shadow: 8px 8px 0 var(--edge); }
.ev-pop::backdrop { background: rgba(8, 14, 24, .72); backdrop-filter: blur(3px); }
.ev-pop[open] { animation: evIn .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.ev-in { position: relative; z-index: 1; padding: 30px 22px 22px; }
.ev-kick { margin: 0; font-family: var(--type); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ev-pop h2 { font-family: var(--display); font-size: 30px; line-height: 1.05; margin: 14px 0 8px; }
.ev-text { font-size: 16px; line-height: 1.35; margin: 0 0 14px; }
.ev-eff { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 18px; margin-bottom: 18px; border: 2.5px solid currentColor; border-radius: 14px; transform: rotate(-3deg); }
.ev-eff b { font-family: var(--display); font-size: 30px; line-height: 1; }
.ev-eff span { font-size: 13px; font-weight: 700; }
.ev-pop .big-btn { width: 100%; }
.ev-pop:not(.ready) .big-btn { pointer-events: none; }
/* redoslijed otkrivanja */
.ev-kick { animation: evFade .4s .1s both; }
.ev-badge { animation: evDrop .6s .3s cubic-bezier(.3, 1.6, .5, 1) both; }
.ev-pop h2 { animation: evUp .4s .75s both; }
.ev-text { animation: evUp .4s .95s both; }
.ev-eff { animation: evStamp .45s 1.15s cubic-bezier(.2, 1.5, .4, 1) both; }
.ev-pop .big-btn { animation: evUp .4s 1.4s both; }
/* loša vijest: tamna, žuto-crna traka, trokut upozorenja, crveni puls */
.ev-pop.bad { background: #15212f; color: #f4efe4; border-color: #ffc93c; animation: evIn .45s cubic-bezier(.2, 1.3, .4, 1) both, evShake .5s .85s both, evPulse 1.6s 1.2s ease-in-out infinite; }
.ev-pop.bad .ev-kick { color: #ffc93c; }
.ev-pop.bad .ev-eff { color: #ff8a6e; }
.ev-tape { position: absolute; left: 0; right: 0; top: 0; height: 16px; z-index: 2; background: repeating-linear-gradient(-45deg, #ffc93c 0 14px, #15212f 14px 28px); background-size: 40px 16px; animation: evTape 1s linear infinite; }
.ev-tape.b { top: auto; bottom: 0; animation-direction: reverse; }
.ev-pop.bad .ev-in { padding-top: 34px; padding-bottom: 30px; }
.ev-tri { display: inline-grid; place-items: center; width: 118px; height: 104px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #15212f; position: relative; }
.ev-tri::before { content: ""; position: absolute; inset: 7px 9px 5px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #ffc93c; }
.ev-tri-in { position: relative; font-size: 42px; margin-top: 26px; animation: evWobble 1.2s 1s ease-in-out infinite; }
/* dobra vijest: svijetla, sunčeve zrake, zelena */
.ev-pop.good { background: var(--cream); color: var(--ink); border-color: #2fa36f; }
.ev-pop.good .ev-kick { color: #1f8a5b; }
.ev-pop.good .ev-eff { color: #1f8a5b; }
.ev-rays { position: absolute; left: 50%; top: 92px; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 0; opacity: .55;
  background: repeating-conic-gradient(rgba(255, 201, 60, .55) 0 10deg, transparent 10deg 20deg); border-radius: 50%; animation: evSpin 14s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 0 35%, transparent 70%); mask-image: radial-gradient(circle, #000 0 35%, transparent 70%); }
.ev-sun { display: inline-grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: #fff3c4; border: 3px solid var(--edge); box-shadow: 0 0 0 8px rgba(255, 201, 60, .35); font-size: 52px; animation: evFloat 2.4s 1s ease-in-out infinite; }
@keyframes evIn { from { opacity: 0; transform: scale(.7) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes evFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes evUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes evDrop { from { opacity: 0; transform: translateY(-90px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes evStamp { from { opacity: 0; transform: scale(2.2) rotate(-12deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes evShake { 0%, 100% { translate: 0; } 20% { translate: -8px; } 40% { translate: 7px; } 60% { translate: -5px; } 80% { translate: 3px; } }
@keyframes evPulse { 0%, 100% { box-shadow: 8px 8px 0 #000, 0 0 0 0 rgba(255, 107, 74, .0); } 50% { box-shadow: 8px 8px 0 #000, 0 0 34px 6px rgba(255, 107, 74, .45); } }
@keyframes evTape { to { background-position: 40px 0; } }
@keyframes evWobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes evSpin { to { transform: rotate(360deg); } }
@keyframes evFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ev-pop, .ev-pop *, .ev-pop[open] { animation: none !important; } }
.ev-hit { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.test-pick { margin-left: 6px; }
.test-pick select { font: inherit; border: 2px solid var(--edge); border-radius: 8px; padding: 1px 4px; background: var(--field); color: var(--ink); }

/* sloj za putovanje: oznaka igrača i novi dio puta dok se kreće (vidi travelDraw u app.js) */
#travel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; display: none; z-index: 2; will-change: transform; contain: strict; }
#travel.on { display: block; }
.splash.out { will-change: opacity, transform; }

/* ---------- Sezona u brojkama (wrapped) ---------- */
.wrap-pop { width: min(420px, 100%); height: min(760px, 100%); max-height: 100%; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #15212f; color: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.wrap-pop::backdrop { background: rgba(8, 14, 24, .85); }
@media (max-width: 480px) { .wrap-pop { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; border-radius: 0; } }
.wr-bars { position: absolute; z-index: 3; left: 12px; right: 52px; top: 14px; display: flex; gap: 4px; }
.wr-bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.wr-bars b { display: block; height: 100%; width: 0; background: #fff; }
.wr-x { position: absolute; z-index: 3; top: 6px; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 18px; cursor: pointer; }
.wr-stage { position: absolute; inset: 0; cursor: pointer; }
.wr-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 26px 40px; opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .6s ease; pointer-events: none; }
.wr-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.wr-kick { margin: 0 0 14px; font-family: var(--type); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.wr-big { margin: 0 0 14px; font-family: var(--display); font-size: clamp(34px, 11vw, 54px); line-height: 1.05; overflow-wrap: anywhere; }
.wr-sub { margin: 0; font-size: 18px; line-height: 1.35; max-width: 320px; opacity: .92; }
.wr-ic { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); margin-bottom: 18px; }
.wr-ic .vi { width: 60px; height: 60px; color: #fff; }
.wr-slide.on .wr-big { animation: wrPop .6s .15s cubic-bezier(.2, 1.5, .4, 1) both; }
.wr-slide.on .wr-sub { animation: evUp .5s .45s both; }
.wr-slide.on .wr-ic { animation: evDrop .6s .05s cubic-bezier(.3, 1.6, .5, 1) both; }
.wr-btns { display: grid; gap: 10px; width: 100%; max-width: 300px; margin-top: 26px; }
.wr-btns .big-btn { width: 100%; }
.w-a { background: radial-gradient(circle at 30% 20%, #3f9fcf, #15212f 70%); }
.w-b { background: radial-gradient(circle at 70% 30%, #2fa36f, #0f2a22 75%); }
.w-c { background: radial-gradient(circle at 50% 20%, #7a4fd1, #1c1233 75%); }
.w-d { background: radial-gradient(circle at 30% 70%, #ff6b4a, #3a1410 75%); }
.w-e { background: radial-gradient(circle at 60% 30%, #e0a422, #33240a 75%); }
.w-f { background: radial-gradient(circle at 40% 30%, #1f9bb0, #0b2a30 75%); }
.w-g { background: radial-gradient(circle at 60% 70%, #c2477e, #2c0f1d 75%); }
.w-h { background: radial-gradient(circle at 30% 30%, #6d8a2f, #1c240c 75%); }
.w-z { background: radial-gradient(circle at 50% 35%, #ffc93c, #3a2a05 70%); }
.w-z .wr-big { font-size: 96px; }
@keyframes wrPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wr-slide, .wr-slide * { transition: none !important; animation: none !important; } }

/* ---------- vitrina trofeja (profil) i oznake u ligi ---------- */
.tr-box { margin-top: 18px; border: 2.5px solid var(--edge); border-radius: 18px; background: var(--card); padding: 12px 14px 14px; }
.tr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--type); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.tr-head .text-btn { font-size: 14px; }
.tr-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 10px; border-bottom: 6px solid #a8743a; border-radius: 0 0 6px 6px; }
.tr-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 8px 4px; border-radius: 12px; }
.tr-cup { font-size: 40px; line-height: 1.1; filter: grayscale(1) brightness(.6) opacity(.45); transition: filter .3s; }
.tr-item.won .tr-cup { filter: drop-shadow(0 0 10px rgba(255, 201, 60, .75)); animation: trShine 2.6s ease-in-out infinite; }
.tr-item.won { background: var(--tint-y); }
.tr-item b { font-size: 13px; line-height: 1.2; }
.tr-item small { font-size: 11px; color: var(--ink-2); line-height: 1.2; }
.tr-item.soon { opacity: .55; }
.tr-bar { width: 80%; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 4px; }
.tr-bar i { display: block; height: 100%; background: #ffc93c; }
.lgp-badge { font-size: 13px; margin-left: 3px; white-space: nowrap; }
@keyframes trShine { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .tr-item.won .tr-cup { animation: none; } }

/* ---------- trofeji (SVG) ---------- */
.tr-item .trophy { width: 64px; height: 80px; }
.tr-item:not(.won) .trophy { opacity: .75; }
.tr-item.won .trophy { filter: drop-shadow(0 0 10px rgba(255, 201, 60, .7)); animation: trShine 2.6s ease-in-out infinite; }

/* ---------- završnica: dolazak u Zagreb ---------- */
.fin-pop { width: min(420px, calc(100% - 24px)); padding: 0; border: 3px solid var(--edge); border-radius: 26px; overflow: hidden; text-align: center; background: #15212f; color: #fff; box-shadow: 8px 8px 0 var(--edge); }
.fin-pop::backdrop { background: rgba(8, 14, 24, .82); backdrop-filter: blur(3px); }
.fin-pop[open] { animation: evIn .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.fin-rays { position: absolute; left: 50%; top: 150px; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; opacity: .5;
  background: repeating-conic-gradient(rgba(255, 201, 60, .5) 0 9deg, transparent 9deg 18deg); animation: evSpin 18s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 0 30%, transparent 68%); mask-image: radial-gradient(circle, #000 0 30%, transparent 68%); }
.fin-step { position: relative; z-index: 1; display: none; padding: 26px 22px 24px; }
.fin-step.on { display: block; }
.fin-kick { margin: 0; font-family: var(--type); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #ffd75e; }
.fin-step h2 { font-family: var(--display); font-size: 32px; line-height: 1.1; margin: 10px 0 8px; }
.fin-text { font-size: 16px; line-height: 1.4; margin: 0 0 18px; opacity: .92; }
.fin-step .big-btn { width: 100%; }
.fin-cup { margin: 10px auto 0; width: 150px; }
.fin-cup .trophy { width: 150px; height: 188px; filter: drop-shadow(0 0 22px rgba(255, 201, 60, .8)); animation: finCup 1s .15s cubic-bezier(.2, 1.4, .4, 1) both, evFloat 2.6s 1.3s ease-in-out infinite; }
.fin-step.on h2 { animation: evUp .4s .8s both; }
.fin-step.on .fin-text { animation: evUp .4s 1s both; }
.fin-step.on .big-btn { animation: evUp .4s 1.25s both; }
/* poklon: kutija se trese, poklopac odleti */
.fin-gift { position: relative; width: 120px; height: 120px; margin: 18px auto 6px; animation: finShake .5s .2s ease-in-out 3; }
.fin-box { position: absolute; left: 10px; right: 10px; bottom: 0; height: 74px; background: #ff6b4a; border: 3px solid #1d2a3a; border-radius: 8px; }
.fin-lid { position: absolute; left: 2px; right: 2px; top: 22px; height: 26px; background: #ff8a6e; border: 3px solid #1d2a3a; border-radius: 6px; animation: finLid .6s 1.8s cubic-bezier(.3, 1.4, .5, 1) both; }
.fin-ribbon { position: absolute; left: 52px; width: 16px; top: 22px; bottom: 0; background: #ffc93c; border-left: 3px solid #1d2a3a; border-right: 3px solid #1d2a3a; }
@keyframes finCup { from { opacity: 0; transform: translateY(-120px) scale(.4) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes finShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes finLid { to { transform: translateY(-70px) rotate(-28deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fin-pop, .fin-pop * { animation: none !important; } }

/* ankete: tipka u gornjoj traci (na mobitelu samo ikona) i prozor s glasanjem */
.tb-poll { position: relative; }
.tb-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--card); }
.tb-dot[hidden] { display: none; }
.pl-lead { margin: 4px 0 14px; color: var(--ink-2); }
.pl { padding: 14px 0; border-top: 2px dashed var(--dash); }
.pl:first-child { border-top: 0; padding-top: 4px; }
.pl-q b { display: block; font-family: var(--display); font-size: 19px; line-height: 1.2; color: var(--head); }
.pl-q small { display: block; margin-top: 3px; font-family: var(--type); font-size: 12.5px; color: var(--ink-2); }
.pl-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.pl-opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; text-align: left; cursor: pointer; font: inherit; font-weight: 700; color: var(--ink);
  background: var(--card); border: 2px solid var(--edge); border-radius: 14px; box-shadow: 2px 2px 0 var(--edge); }
.pl-opt:hover { background: var(--tint-y); }
.pl-opt:active, .pl-opt.on { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--edge); background: var(--sun); color: var(--on-sun); }
.pl-img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--edge); background: #fff; }
.pl-res { display: grid; gap: 7px; margin-top: 10px; }
.pl-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(60px, 34%) 46px; gap: 9px; align-items: center; }
.pl-row:not(:has(.pl-img)) { grid-template-columns: minmax(0, 1fr) minmax(60px, 34%) 46px; }
.pl-row .pl-img { width: 34px; height: 34px; }
.pl-t { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.pl-t em { font-style: normal; font-size: 12px; color: var(--teal); white-space: nowrap; }
.pl-bar { height: 12px; border-radius: 99px; background: var(--field, rgba(0,0,0,.08)); border: 1.5px solid var(--edge); overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 99px; transition: width .6s cubic-bezier(.2,.9,.3,1); }
.pl-row.top .pl-bar i { background: var(--coral); }
.pl-row.mine .pl-t { color: var(--coral-dark); }
.pl-row b { font-family: var(--display); font-weight: 600; text-align: right; }
.pl-empty { color: var(--ink-2); }
.pl-login { display: grid; gap: 10px; justify-items: start; margin: 0 0 12px; padding: 12px 14px; background: var(--tint-y); border: 2px solid var(--edge); border-radius: 14px; font-weight: 700; }
.pl-login .big-btn { width: auto; margin: 0; padding: 9px 18px; font-size: 17px; }

/* ---------- sličice kao naljepnice (html.stk), obrub u boji razine ---------- */
.stk img.vi.vp { --tc: #8a97a8; border: 3px solid #fff; box-shadow: 0 0 0 2.5px var(--tc), 2px 3px 0 2.5px rgba(29, 42, 58, .28); }
.stk img.vi.vp.t0 { --tc: #8a97a8; } .stk img.vi.vp.t1 { --tc: #5fb37a; } .stk img.vi.vp.t2 { --tc: #2fa4a8; } .stk img.vi.vp.t3 { --tc: #3b82d6; }
.stk img.vi.vp.t4 { --tc: #8b5cf6; } .stk img.vi.vp.t5 { --tc: #e0559a; } .stk img.vi.vp.t6 { --tc: #ff6b4a; } .stk img.vi.vp.t7 { --tc: #f2b10c; }
.stk .map-toast img.vi.vp { border-color: #fff; }
.stk #m-me[data-t="0"] { --tc: #8a97a8; } .stk #m-me[data-t="1"] { --tc: #5fb37a; } .stk #m-me[data-t="2"] { --tc: #2fa4a8; } .stk #m-me[data-t="3"] { --tc: #3b82d6; } .stk #m-me[data-t="4"] { --tc: #8b5cf6; } .stk #m-me[data-t="5"] { --tc: #e0559a; } .stk #m-me[data-t="6"] { --tc: #ff6b4a; } .stk #m-me[data-t="7"] { --tc: #f2b10c; }
.stk #m-me[data-t]:not([data-t=""]) .me-bg { stroke: var(--tc, #8a97a8); stroke-width: 7; }
.stk #m-me.moving .me-emoji { animation: none; }     /* sličica putuje mirno, bez njihanja */

/* "Obišli svijet": ljestvica onih koji su prešli cijeli put */
.wo-lead { margin: 4px 0 14px; color: var(--ink-2); }
.wo-empty { padding: 18px 0; text-align: center; color: var(--ink-2); }
.wo-list { list-style: none; margin: 0; padding: 0; }
.wo-list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 2px dashed var(--dash); }
.wo-list li:first-child { border-top: 0; }
.wo-list li.top { background: var(--tint-y); border-radius: 12px; border-top-color: transparent; padding: 10px 10px; margin-bottom: 4px; }
.wo-pos { flex: none; width: 34px; text-align: center; font-family: var(--type); font-weight: 700; font-size: 20px; }
.wo-nm { flex: 1; min-width: 0; font-family: var(--type); font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.wo-nm small { display: block; font-family: Nunito, sans-serif; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.wo-fogg { font-size: 12px; font-weight: 700; color: var(--on-sun); background: var(--sun); border-radius: 99px; padding: 1px 8px; white-space: nowrap; vertical-align: 2px; }
.wo-list b { flex: none; font-family: var(--type); font-size: 16px; }
.wo-note { margin-top: 12px; font-size: 13px; color: var(--ink-2); }

/* ?test: tragovi prijevoza (svaka dionica u stilu prijevoza kojim je prijeđena) i ploča polazaka */
:root { --m-wake: #2b7fb3; }
[data-theme="dark"] { --m-wake: #6cc3e6; }
#map.trails .done { stroke: transparent; }
:is(#map, #travel) .tr, #map .tr-ties { fill: none; stroke: var(--m-route); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
:is(#map, #travel) .tr.sea { stroke: var(--m-wake); }
:is(#map, #travel) .tr.t0 { stroke-width: 3.4; stroke-dasharray: .1 6; }
:is(#map, #travel) .tr.t1 { stroke-width: 2.4; stroke-dasharray: 4 4; }
:is(#map, #travel) .tr.t2 { stroke-width: 3.2; stroke-dasharray: 9 4; }
:is(#map, #travel) .tr.t3 { stroke-width: 3.6; }
:is(#map, #travel) .tr.t4 { stroke-width: 2.4; }
#map .tr-ties { stroke-width: 8; stroke-dasharray: 1.4 4.6; stroke-linecap: butt; opacity: .75; }
:is(#map, #travel) .tr.t5 { stroke-width: 5; stroke-dasharray: .1 10; }
:is(#map, #travel) .tr.t6 { stroke-width: 3; stroke-dasharray: 10 4 .1 4; }
:is(#map, #travel) .tr.t7 { stroke-width: 2.6; stroke-dasharray: 14 7; }
:is(#map, #travel) .tr.tb { stroke: var(--coral); stroke-width: 3; stroke-dasharray: 2 5; }
.road-sign.dep { display: block; background: #13202f; color: var(--sun); border-color: #111; padding: 5px 9px; }
.road-sign.dep::before { display: none; }
.road-sign.dep ol { list-style: none; margin: 0; padding: 0; }
.road-sign.dep li { display: flex; justify-content: space-between; gap: 14px; padding: 1px 0; background: none; border: 0; border-radius: 0; }
.road-sign.dep li + li { border-top: 1px solid rgba(255,255,255,.12); }
.road-sign.dep b, .road-sign.dep span { display: inline; padding: 0; font-size: 13px; color: inherit; }
.road-sign.dep b { font-family: var(--body); font-weight: 800; }
.road-sign.dep span, .where b { font-variant-numeric: tabular-nums; }
.road-sign.dep li:first-child { color: #fff; }
/* =========================================================
   "Ko će dalje?" (dvoboj.js) · cijeli izgled na jednom mjestu
   ========================================================= */
/* ulazi: gumb na rubu karte (računalo), jezičac sa strane (mobitel) */
.duel-cap { position: relative; height: 0; z-index: 5; display: flex; justify-content: center; }
.duel-fab { position: absolute; top: -20px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px 0 12px; border: 2px solid var(--edge); border-radius: 99px; background: var(--sun); color: var(--on-sun); box-shadow: 2px 2px 0 var(--edge); font-family: var(--type); font-weight: 700; font-size: 15px; cursor: pointer; animation: df-in .5s .4s cubic-bezier(.3,1.5,.5,1) both; }
.duel-fab:hover { transform: translateY(-1px); }
.duel-fab:active { transform: translate(2px, 2px); box-shadow: none; }
.df-ico { font-size: 17px; line-height: 1; }
@keyframes df-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
body.in-q .duel-cap, body.in-round .duel-cap, body.map-open .duel-cap, body.splash-open .duel-cap, body.kb .duel-cap, body.pinning .duel-cap { display: none; }
.side-duel { bottom: calc(196px + env(safe-area-inset-bottom)); background: var(--coral); color: #fff; animation-delay: .75s; }
.side-duel[hidden] { display: none; }
body.in-q .side-duel, body.map-open .side-duel, body.splash-open .side-duel, body.kb .side-duel, body:has(dialog[open]) .side-duel { transform: translateX(110%); opacity: 0; pointer-events: none; }
body.in-round .side-duel { display: none !important; }
@media (max-width: 759px) { .duel-cap { display: none; } }
@media (min-width: 760px) { .side-duel { display: none; } }

/* prozor preko cijelog ekrana */
dialog.duel { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--paper); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; }
dialog.duel:not([open]) { display: none; }
dialog.duel::backdrop { background: var(--paper); }
.du-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
.du-wrap { max-width: 780px; margin: 0 auto; padding: 16px 16px 28px; }

/* logo: globus Oko Svijeta i dva aviona u utrci */
.du-logo { display: block; width: 46px; height: 46px; flex: none; overflow: visible; }
.du-logo .du-orb { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 6 5; }
.du-logo .du-orb.me { stroke: var(--coral); }
.du-logo .du-orb.op { stroke: var(--navy); }
.du-logo .du-ap path { stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.du-logo .du-ap.me path { fill: var(--coral); }
.du-logo .du-ap.op path { fill: var(--navy); }
[data-theme="dark"] .du-logo .du-orb.op { stroke: #6cc3e6; }
[data-theme="dark"] .du-logo .du-ap.op path { fill: #6cc3e6; }
.du-logo.big { width: 112px; height: 112px; }
.du-logo.big .du-ap { animation: du-fly 3.4s ease-in-out infinite; transform-box: view-box; transform-origin: 50px 50px; }
.du-logo.big .du-ap.op { animation-delay: -1.7s; }
@keyframes du-fly { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(14deg); } }
.du-word { font-family: var(--display); font-weight: 400; color: var(--head); text-shadow: 2px 2px 0 var(--halo); white-space: nowrap; }
.du-word i { font-style: normal; color: var(--coral); }

/* gornja traka: tamna ploča polazaka (kao putokaz na karti igre), znak lijevo, staza utrke u sredini */
.du-head { flex: none; position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 64px; padding: max(8px, env(safe-area-inset-top)) 14px 8px; background: #13202f; color: #fff; border-bottom: 3px solid var(--sun); }
.du-brand { justify-self: start; display: flex; align-items: center; gap: 10px; min-width: 0; }
.du-bt { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.du-bt h2 { margin: 0; font-size: 23px; }
.du-head .du-word { color: #fff; text-shadow: 2px 2px 0 #000; }
.du-bt small { font-size: 12px; font-weight: 700; color: #9fb4c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.du-close { grid-column: 3; justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #2d4560; background: #1c2d40; color: #fff; font-size: 15px; cursor: pointer; transition: background .15s ease; }
.du-close:hover { background: #26405a; }
.du-close:active { transform: scale(.94); }
.du-head .du-vs { grid-column: 2; min-width: 0; }
.du-strip { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border: 1.5px solid #2d4560; border-radius: 14px; background: #0c1622; }
.du-pp { display: flex; align-items: center; gap: 8px; min-width: 0; }
.du-pp.op { flex-direction: row-reverse; text-align: right; }
.du-pk { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.du-nm { font-size: 12px; color: #9fb4c8; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-pk em { font-style: normal; font-family: var(--display); font-size: 21px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.du-pk em small { font-family: var(--body); font-size: 10px; font-weight: 800; color: #9fb4c8; margin-left: 2px; }
.du-st { font-size: 10.5px; font-weight: 700; color: #9fb4c8; white-space: nowrap; }
.du-strip .du-av { border-color: #0c1622; box-shadow: 0 0 0 2px #2d4560; }
.du-pp.lead .du-av { box-shadow: 0 0 0 2.5px var(--sun); }
.du-pp.lead em { color: var(--sun); }
.du-lane { display: flex; align-items: center; gap: 6px; width: clamp(140px, 26vw, 300px); }
.du-code { flex: none; padding: 2px 5px; border-radius: 4px; background: #000; color: var(--sun); font-family: var(--type); font-weight: 700; font-size: 11px; letter-spacing: .05em; }
.du-code.end { background: var(--sun); color: #111; }
.du-line { position: relative; flex: 1; height: 4px; border-radius: 99px; background: repeating-linear-gradient(90deg, #2d4560 0 6px, transparent 6px 10px); }
.du-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; transition: width 1s cubic-bezier(.5,0,.3,1); }
.du-fill.me { background: var(--coral); }
.du-fill.op { background: #6cc3e6; opacity: .7; }
.du-tok { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #0c1622; color: #fff; font-family: var(--type); font-weight: 700; font-size: 10px; transition: left 1s cubic-bezier(.5,0,.3,1); will-change: left; }
.du-tok.me { background: var(--coral); z-index: 2; }
.du-tok.op { background: #3f8fc0; }
@media (max-width: 759px) {
  .du-head { gap: 8px; padding-left: 10px; padding-right: 10px; min-height: 58px; }
  .du-head:has(.du-vs) .du-bt { display: none; }
  .du-head:has(.du-vs) .du-logo { width: 36px; height: 36px; }
  .du-nm { display: none; }
  .du-strip { gap: 6px; padding: 3px 5px; }
  .du-pp { gap: 5px; }
  .du-pp .du-av { width: 26px; height: 26px; font-size: 12px; }
  .du-pk em { font-size: 16px; }
  .du-lane { width: 21vw; }
  .du-head .du-code { display: none; }
  .du-close { width: 36px; height: 36px; }
}

/* izbornik */
.du-intro { display: flex; align-items: center; gap: 16px; margin: 4px 0 14px; }
.du-kick { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-dark); }
.du-h1 { margin: 0 0 6px; font-size: clamp(32px, 7vw, 46px); line-height: 1; }
.du-h1 .du-word { text-shadow: 3px 3px 0 var(--halo); }
.du-sub { margin: 0; color: var(--ink-2); max-width: 520px; }
@media (max-width: 480px) { .du-intro { flex-direction: column; text-align: center; } .du-logo.big { width: 92px; height: 92px; } .du-sub { margin: 0 auto; } }
/* mobitel: logo je već u traci gore, pa uvod ide zbijeno i lijevo, a države se vide bez puno pomicanja */
@media (max-width: 560px) {
  .du-intro { flex-direction: row; text-align: left; gap: 12px; margin: 0 0 12px; }
  .du-intro .du-logo.big { display: none; }
  .du-h1 { font-size: 36px; margin-bottom: 4px; }
  .du-sub { margin: 0; font-size: 15px; line-height: 1.35; }
}
.du-beta { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 9px 12px; border: 2px dashed var(--edge); border-radius: 14px; background: var(--card); font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.du-beta b { flex: none; padding: 2px 8px; border: 2px solid var(--edge); border-radius: 999px; background: var(--sun); color: #13202f; font-family: var(--type); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.du-gate { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 14px; border: 2px solid var(--edge); border-radius: 16px; background: var(--card); box-shadow: 3px 3px 0 var(--edge); }
.du-gate-i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); border: 2px solid var(--edge); font-size: 20px; }
.du-gate b { font-family: var(--type); font-size: 17px; }
.du-gate p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.du-gate > div { flex: 1; min-width: 0; }
.du-gate .big-btn { flex: none; width: auto; margin: 0; }
@media (max-width: 480px) { .du-gate { flex-wrap: wrap; } .du-gate > div { flex: 1; min-width: 0; } .du-gate .big-btn { width: 100%; } }
.du-grid.locked .du-c { opacity: .6; filter: grayscale(.5); cursor: default; box-shadow: none; transform: none; }
.du-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; padding: 0; }
.du-steps li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 2px solid var(--edge); border-radius: 14px; background: var(--card); font-weight: 700; font-size: 13.5px; line-height: 1.15; }
.du-steps li b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); border: 2px solid var(--edge); font-family: var(--type); font-size: 13px; }
@media (max-width: 480px) {
  .du-steps { gap: 6px; margin-bottom: 14px; }
  .du-steps li { flex-direction: column; justify-content: center; gap: 5px; padding: 8px 4px; font-size: 12px; text-align: center; }
  .du-steps li b { width: 24px; height: 24px; font-size: 12px; }
  .du-setup { gap: 10px; margin-bottom: 16px; }
  .du-grid { gap: 10px; }
}
.du-setup { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 20px; }
@media (min-width: 640px) { .du-setup { grid-template-columns: 1fr 1fr; align-items: end; } }
.du-name { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.du-name span, .du-codein label { display: block; font-weight: 800; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.du-name input, .du-codein input, .du-link input { font: inherit; font-size: 17px; padding: 11px 14px; border: 2px solid var(--edge); border-radius: 14px; background: var(--field); color: var(--ink); min-width: 0; }
.du-name input:focus, .du-codein input:focus, .du-link input:focus { outline: none; box-shadow: 0 0 0 4px rgba(19,163,154,.3); }
.du-codein { margin: 0; }
.du-codein label { margin-bottom: 5px; }
.du-codein div { display: flex; gap: 8px; }
.du-codein input { flex: 1; font-family: var(--type); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.du-codein .go { flex: none; padding: 0 20px; }
.du-h3 { margin: 4px 0 10px; font-family: var(--type); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.du-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .du-grid { grid-template-columns: repeat(4, 1fr); } }
.du-c { display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 2px solid var(--edge); border-radius: 16px; background: var(--card); color: var(--ink); cursor: pointer; box-shadow: 3px 3px 0 var(--edge); font: inherit; text-align: left; transition: transform .15s ease, box-shadow .15s ease; }
.du-c:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 5px 6px 0 var(--edge); }
.du-c:active { transform: translate(3px, 3px); box-shadow: none; }
.du-cmap { display: grid; place-items: center; padding: 10px 10px 8px; background: var(--m-sea); border-bottom: 2px solid var(--edge); }
.du-ctx { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 9px 12px 11px; }
.du-ctx b { font-family: var(--type); font-size: 16px; line-height: 1.1; }
.du-ctx em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--teal); }
.du-rs { display: inline-flex; align-items: stretch; overflow: hidden; border: 1.5px solid #111; border-radius: 5px; background: var(--sun); color: #111; font-family: var(--type); font-weight: 700; font-size: 11px; line-height: 1; }
.du-rs i { font-style: normal; background: #111; color: var(--sun); padding: 3px 5px; margin-right: 5px; }
.du-rs { padding-right: 6px; align-items: center; }
.du-sil { display: block; width: 100%; height: auto; aspect-ratio: 260 / 170; }
.du-sil .sil { fill: var(--m-here); stroke: var(--edge); stroke-width: 1.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.du-sil .sil-rt { fill: none; stroke: var(--coral); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 5; vector-effect: non-scaling-stroke; }
.du-sil .sil-start, .du-sil .sil-end { stroke: var(--edge); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.du-sil .sil-start { fill: var(--field); }
.du-sil .sil-end { fill: var(--coral); }

/* predvorje: ukrcajna karta, igrači, poziv */
.du-lobby { display: flex; flex-direction: column; gap: 14px; }
.du-pass { position: relative; display: grid; grid-template-columns: 1fr 34%; border: 2.5px solid var(--edge); border-radius: 18px; background: var(--card); box-shadow: 4px 4px 0 var(--edge); overflow: hidden; }
.du-pmain { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.du-pmain > small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-dark); }
.du-proute { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.du-proute span { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.du-proute b { font-family: var(--display); font-size: 40px; color: var(--head); }
.du-proute i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.du-proute span:last-child { text-align: right; align-items: flex-end; }
.du-pplane { flex: 1; align-items: center !important; font-size: 22px; color: var(--coral); background: linear-gradient(var(--dash), var(--dash)) center / 100% 2px no-repeat; }
.du-pmeta { display: flex; flex-wrap: wrap; gap: 6px; }
.du-pmeta span { padding: 3px 8px; border-radius: 99px; background: var(--tint-b); font-size: 12px; font-weight: 700; }
.du-pstub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px; background: var(--tint-y); border-left: 2.5px dashed var(--edge); text-align: center; }
.du-pstub::before, .du-pstub::after { content: ""; position: absolute; left: -12px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--edge); }
.du-pstub::before { top: -12px; }
.du-pstub::after { bottom: -12px; }
.du-pstub .du-sil { max-width: 110px; }
.du-pstub small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.du-pstub b { font-family: var(--type); font-size: 24px; letter-spacing: .16em; color: var(--head); user-select: all; }
@media (max-width: 480px) { .du-pass { grid-template-columns: 1fr; } .du-pstub { border-left: 0; border-top: 2.5px dashed var(--edge); } .du-pstub::before, .du-pstub::after { display: none; } .du-proute b { font-size: 32px; } }
.du-slots { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.du-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 2px solid var(--edge); border-radius: 18px; background: var(--card); text-align: center; min-width: 0; }
.du-slot b { font-family: var(--type); font-size: 17px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-slot small { color: var(--ink-2); font-size: 12px; }
.du-slot.empty { border-style: dashed; background: none; }
.du-slot.empty .du-av { animation: du-pulse 1.4s ease-in-out infinite; background: var(--track); color: var(--ink-2); }
@keyframes du-pulse { 50% { transform: scale(1.1); opacity: .6; } }
.du-av { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; font-family: var(--type); font-weight: 700; font-size: 19px; color: #fff; border: 2px solid var(--edge); }
.me .du-av { background: var(--coral); }
.op .du-av { background: var(--navy); }
[data-theme="dark"] .op .du-av { background: #3f8fc0; }
.du-x { font-family: var(--display); font-size: 22px; color: var(--coral); }
.du-status { margin: 0; text-align: center; color: var(--ink-2); }
.du-status.du-warn { padding: 10px 12px; border: 2px solid var(--edge); border-radius: 14px; background: var(--sun); color: #13202f; }
.du-inv { display: flex; flex-direction: column; gap: 8px; }
.du-link { display: flex; gap: 8px; }
.du-link input { flex: 1; font-size: 13px; color: var(--ink-2); }
.du-copy { flex: none; width: 50px; border: 2px solid var(--edge); border-radius: 14px; background: var(--field); font-size: 20px; cursor: pointer; }
.du-tip { margin: 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.du-code.big { display: block; width: max-content; margin: 18px auto 8px; padding: 6px 14px; font-size: 30px; letter-spacing: .2em; }

/* utrka: karta je stalne veličine (ne mijenja se kad se promijeni pitanje), na mobitelu ploča s pitanjem leži preko karte */
.du-body.du-racemode { overflow: hidden; display: flex; }
.du-racemode .du-wrap { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; max-width: none; padding: 0; }
.du-map { position: relative; width: 100%; overflow: hidden; background: var(--m-sea); contain: strict; }
.du-map svg { display: block; width: 100%; height: 100%; }
.du-racemode .du-map { position: absolute; inset: 0; }
.du-racemode .du-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-height: 66%; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 2.5px solid var(--edge); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 24px rgba(13, 23, 38, .16); transition: max-height .3s ease; }
.du-racemode .question { font-size: clamp(22px, 6.4vw, 30px); margin-bottom: 10px; }
body.kb dialog.duel .du-racemode .du-panel { max-height: 78%; }
body.kb dialog.duel .du-loc { display: none; }
@media (min-width: 760px) {
  .du-racemode .du-wrap { max-width: 940px; margin: 0 auto; padding: 18px 18px 0; display: block; overflow-y: auto; }
  .du-racemode .du-map { position: relative; inset: auto; height: max(260px, calc(100dvh - 64px - 36px - 330px)); border: 2.5px solid var(--edge); border-radius: 20px; box-shadow: 4px 4px 0 var(--edge); }
  .du-racemode .du-panel { position: static; max-height: none; overflow: visible; margin: 14px 0 0; padding: 0 2px 16px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .du-racemode .question { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
  .du-racemode .q-help { margin-bottom: 10px; }
}
/* prijelazi: novo pitanje i rezultat ulaze glatko (samo prozirnost i pomak, bez novog crtanja karte) */
.du-panel .du-ticket, .du-panel .du-count, .du-panel .du-wait { animation: du-in .32s cubic-bezier(.2,.8,.3,1) both; }
.du-panel .res-row { animation: du-pop .42s .06s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes du-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes du-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .du-panel .du-ticket, .du-panel .du-count, .du-panel .du-wait, .du-panel .res-row { animation: none; } }
.du-ticket { margin: 0; }
.du-count { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 180px; }
.du-count span { font-family: var(--display); font-size: 96px; line-height: 1; color: var(--coral); text-shadow: 4px 4px 0 var(--halo); }
.du-count span.pop { animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.du-count small { color: var(--ink-2); font-weight: 700; }
.du-wait { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; text-align: center; font-family: var(--type); font-weight: 700; font-size: 18px; }
.du-wait > span { font-family: var(--body); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.du-fast { color: var(--coral-dark); font-weight: 800; }

/* slojevi karte */
.du-map .sea { fill: var(--m-sea); }
.du-map .base { image-rendering: auto; }
.du-map .rt-case { fill: none; stroke: var(--m-case); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; vector-effect: non-scaling-stroke; }
.du-map .rt { fill: none; stroke: var(--m-route); stroke-width: 3; stroke-dasharray: .1 7; stroke-linecap: round; opacity: .8; vector-effect: non-scaling-stroke; }
.du-map .tr { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.du-map .tr.me { stroke: var(--coral); }
.du-map .tr.op { stroke: var(--navy); stroke-dasharray: 8 6; }
[data-theme="dark"] .du-map .tr.op { stroke: #6cc3e6; }
.du-map .town circle { fill: var(--m-stop); stroke: var(--m-bord2); stroke-width: 1.3; }
.du-map .town text { font-family: var(--body); font-weight: 700; font-size: 12px; fill: var(--m-cty); paint-order: stroke; stroke: var(--m-case); stroke-width: 3px; stroke-linejoin: round; }
.du-map svg:not(.zoomed) .town { display: none; }
.du-map .cty circle { fill: var(--m-stop); stroke: var(--m-route); stroke-width: 2.4; }
.du-map .cty.passed circle { fill: var(--coral); }
.du-map .cty.next circle, .du-map .cty.goal circle { fill: var(--sun); }
.du-map .cty text { display: none; font-family: var(--type); font-weight: 700; font-size: 15px; fill: var(--m-lab); paint-order: stroke; stroke: var(--m-case); stroke-width: 3.5px; stroke-linejoin: round; }
.du-map svg.zoomed .cty text, .du-map .cty.start text, .du-map .cty.goal text, .du-map .cty.next text { display: inline; }
.du-map .mk .ring { stroke: #fff; stroke-width: 3.5; }
.du-map .mk.me .ring { fill: var(--coral); }
.du-map .mk.op .ring { fill: var(--navy); }
.du-map .mk .mk-in { fill: #fff; font-family: var(--type); font-weight: 700; font-size: 19px; text-anchor: middle; dominant-baseline: central; }
.du-map .mk .mk-nm { font-family: var(--type); font-weight: 700; font-size: 14px; text-anchor: middle; fill: var(--m-lab); paint-order: stroke; stroke: var(--m-case); stroke-width: 3.5px; stroke-linejoin: round; }
.du-map .mk.me .mk-nm { fill: var(--coral-dark); }
.du-map .mk.me .halo { fill: var(--coral); stroke: none; opacity: .25; animation: du-halo 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes du-halo { from { transform: scale(.6); opacity: .45; } to { transform: scale(1.4); opacity: 0; } }
/* oznake na karti: gdje sam (lijevo), putokaz sa sljedeća tri grada (desno), tko je dobio koji prijevoz (dolje) */
.du-loc, .du-next { position: absolute; top: 10px; z-index: 2; pointer-events: none; }
.du-loc { left: 10px; display: flex; flex-direction: column; padding: 6px 11px; border: 2px solid var(--edge); border-radius: 12px; background: var(--card); box-shadow: 2px 2px 0 var(--edge); line-height: 1.15; max-width: 48%; }
.du-loc:empty, .du-next:empty { display: none; }
.du-loc b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.du-loc small { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.du-next { right: 10px; padding: 5px 10px; border: 2px solid #111; border-radius: 8px; background: #13202f; color: var(--sun); box-shadow: 2px 2px 0 var(--edge); font-weight: 800; }
.du-next ol { list-style: none; margin: 0; padding: 0; }
.du-next li { display: flex; justify-content: space-between; gap: 14px; padding: 1px 0; font-size: 13px; }
.du-next li + li { border-top: 1px solid rgba(255,255,255,.12); }
.du-next li:first-child { color: #fff; }
.du-next li span { font-variant-numeric: tabular-nums; }
.du-ping { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: #13202f; color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; animation: du-ping 2.4s ease both; }
.du-ping.me { background: var(--coral-dark); }
.du-ping.op { bottom: 84px; }
.du-ping .du-pi { width: 40px; height: 40px; flex: none; }
.du-ping b { font-weight: 800; }
.du-ping em { font-style: normal; color: var(--sun); font-weight: 800; }
.du-ping.me em { color: #fff; }
@media (min-width: 760px) { .du-ping { bottom: 14px; } .du-ping.op { bottom: 66px; } }
@keyframes du-ping { 0% { opacity: 0; transform: translate(-50%, 10px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* rezultat: ploča cilja (tamna, kao ploča polazaka), dvije staze, statistika, karta, odgovori */
.du-resmode .du-map { height: 34vh; margin: 14px 0; border: 2.5px solid var(--edge); border-radius: 20px; box-shadow: 4px 4px 0 var(--edge); }
.du-board-end { position: relative; overflow: hidden; padding: 16px 16px 14px; border: 2.5px solid var(--edge); border-radius: 22px; background: #13202f; color: #fff; box-shadow: 5px 5px 0 var(--edge); animation: du-in .4s cubic-bezier(.2,.8,.3,1) both; }
.du-board-end.w-me { border-color: #111; }
.du-be-top { display: flex; align-items: center; gap: 8px; }
.du-be-top small { margin-left: auto; font-size: 12px; font-weight: 700; color: #9fb4c8; }
.du-be-plane { color: var(--sun); }
.du-be-kick { margin: 14px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9fb4c8; }
.du-be-title { margin: 2px 0 14px; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 10vw, 58px); line-height: .95; color: var(--sun); text-shadow: 3px 3px 0 #000; animation: du-pop .5s .15s cubic-bezier(.2,1.5,.4,1) both; }
.du-board-end.w-op .du-be-title { color: #fff; }
.du-lanes { display: flex; flex-direction: column; gap: 10px; }
.du-fl { display: flex; align-items: center; gap: 10px; }
.du-fl .du-av { width: 36px; height: 36px; font-size: 16px; border-color: #0c1622; box-shadow: 0 0 0 2px #2d4560; }
.du-fl.win .du-av { box-shadow: 0 0 0 3px var(--sun); }
.du-flb { flex: 1; min-width: 0; }
.du-flt { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 14px; }
.du-flt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-flt em { font-style: normal; font-family: var(--type); font-weight: 700; color: #cfe0ef; font-variant-numeric: tabular-nums; }
.du-fl.win .du-flt em { color: var(--sun); }
.du-flbar { height: 10px; border-radius: 99px; background: #0c1622; overflow: hidden; }
.du-flbar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: #3f8fc0; transform-origin: 0 50%; animation: du-grow 1.1s .25s cubic-bezier(.3,.9,.3,1) both; }
.du-fl.me .du-flbar i { background: var(--coral); }
.du-fl.win .du-flbar i { background: var(--sun); }
@keyframes du-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.du-crown { font-size: 24px; animation: du-pop .5s .9s cubic-bezier(.2,1.6,.4,1) both; }
.du-stats { margin-top: 14px; border-top: 1px dashed #2d4560; }
.du-stat { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #2d4560; font-size: 14px; font-weight: 700; }
.du-stat span:last-child { text-align: right; }
.du-stat small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9fb4c8; text-align: center; }
.du-stat.head { font-size: 12px; color: #9fb4c8; padding-top: 9px; }
.du-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.du-confetti i { position: absolute; top: -12px; left: calc(var(--i) * 5.6%); width: 8px; height: 12px; border-radius: 2px; background: var(--sun); opacity: 0; animation: du-fall 2.4s calc(var(--i) * .07s) ease-in both; }
.du-confetti i:nth-child(3n) { background: var(--coral); }
.du-confetti i:nth-child(3n+1) { background: #6cc3e6; }
@keyframes du-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(320px) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) { .du-confetti { display: none; } .du-flbar i, .du-be-title, .du-crown, .du-board-end { animation: none; } }
.du-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.du-acts .du-status { align-self: center; }
.du-alist { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.du-alist li { padding: 10px 12px; border: 2px solid var(--edge); border-radius: 14px; background: var(--card); }
.du-alist p { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.du-arow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.du-ac { padding: 6px 9px; border-radius: 10px; background: var(--card2); border-left: 4px solid var(--coral); min-width: 0; }
.du-ac.op { border-left-color: var(--navy); }
.du-ac.w { background: var(--tint-g); }
.du-ac b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-ac small { font-size: 11.5px; color: var(--ink-2); }
.du-miss { color: var(--ink-2); }
/* kod za ulazak: velika pločica kao putokaz (crno KOD, žuto slova), uvijek pri vrhu predvorja */
.du-codebar { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; overflow: hidden; border: 2.5px solid #111; border-radius: 14px; background: var(--sun); color: #111; box-shadow: 4px 4px 0 var(--edge); }
.du-cb-l { display: grid; place-items: center; padding: 0 14px; background: #111; color: var(--sun); font-family: var(--type); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.1; max-width: 90px; }
.du-codebar b { display: grid; place-items: center; padding: 8px 10px; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 9vw, 48px); letter-spacing: .14em; user-select: all; }
.du-cb-btn { margin: 8px; padding: 0 14px; border: 2px solid #111; border-radius: 10px; background: #fff; color: #111; font-family: var(--type); font-weight: 700; font-size: 14px; cursor: pointer; }
.du-cb-btn:active { transform: translate(1px, 1px); }
@media (max-width: 420px) { .du-codebar { grid-template-columns: 1fr auto; } .du-cb-l { grid-column: 1 / -1; padding: 5px; max-width: none; } }
/* gumb "Ko će dalje?" na uvodnom ekranu dana */
.sp-duel { display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0; padding: 9px 16px; border: 2px solid var(--edge); border-radius: 99px; background: #13202f; color: #fff; box-shadow: 3px 3px 0 var(--edge); font-family: var(--type); font-weight: 700; font-size: 15px; cursor: pointer; }
.sp-duel small { font-family: var(--body); font-weight: 700; font-size: 12px; color: var(--sun); }
.sp-duel:active { transform: translate(2px, 2px); box-shadow: none; }
[data-theme="dark"] .du-pstub { background: #0f2236; }
[data-theme="dark"] .du-sil .sil { stroke: #8fa6bf; }
/* kviz s 4 ponuđena odgovora u utrci */
.du-cat { margin: 2px 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-dark); }
.du-opts { margin-top: 10px; }
.du-opts .opt { position: relative; gap: 8px; font-size: 17px; padding: 12px 10px 12px 38px; text-align: left; justify-content: flex-start; }
.du-key { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--edge); color: var(--sun); font-family: var(--type); font-size: 11px; }
@media (max-width: 420px) { .du-opts { grid-template-columns: 1fr; gap: 8px; } .du-opts .opt { min-height: 48px; font-size: 16px; } }


/* =========================================================
   Što je novo (novosti.js): skočni prozor s najnovijom novosti i popis svih novosti
   ========================================================= */
.nw-pop { width: min(440px, calc(100% - 24px)); }
.nw-pop.nw-list { width: min(560px, calc(100% - 24px)); }
.nw-kick { margin: 0 0 8px; font-family: var(--type); font-weight: 800; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-dark); }
.nw-hero { position: relative; margin: 0 0 12px; border: 2px solid var(--edge); border-radius: 16px; background: var(--tint-y, #fff3c9); overflow: hidden; }
.nw-race { display: block; width: 100%; height: auto; max-height: 190px; }
.nw-race .nw-land { fill: var(--field); stroke: var(--edge); stroke-width: 1.4; stroke-linejoin: round; }
.nw-race .nw-rt { fill: none; stroke: var(--edge); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; opacity: .55; }
.nw-race .nw-ap path { stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.nw-race .nw-ap.me path { fill: var(--coral); }
.nw-race .nw-ap.op path { fill: var(--navy); }
[data-theme="dark"] .nw-race .nw-ap.op path { fill: #6cc3e6; }
.nw-tag { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border: 2px solid var(--edge); border-radius: 999px; background: var(--sun); color: #1d2a3d; font-family: var(--type); font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.nw-lead { margin: 0 0 10px; font-weight: 700; color: var(--ink); }
.nw-points, .nw-item ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.nw-pop .m-row .big-btn.ghost { background: var(--field); color: var(--ink); }
.nw-all { display: block; margin: 12px auto 0; }
.nw-item { padding: 12px 0; border-top: 2px dashed var(--dash, rgba(0,0,0,.15)); }
.nw-item:first-of-type { border-top: 0; padding-top: 4px; }
.nw-item h3 { margin: 0 0 6px; font-family: var(--display); font-size: 20px; color: var(--head); }
.nw-date { margin: 0 0 2px; font-family: var(--type); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.foot-links .nw-foot { margin-right: 4px; font-size: inherit; }
.nw-race .nw-dot { fill: var(--teal); stroke: var(--edge); stroke-width: 2; }
.nw-race .nw-dot.end { fill: var(--coral); }
@media (max-width: 480px) {
  .nw-pop .m-title { font-size: 24px; }
  .nw-pop .m-row { flex-direction: column; align-items: stretch; }
  .nw-pop .m-row .big-btn { width: 100%; min-width: 0; }
  .nw-race { max-height: 150px; }
}

/* leteći prijevoz: trag kroz zrak je isprekidan (ne ide po cesti) */
#travel.air .done { stroke-dasharray: 2 7; stroke-width: 3; }
#travel.air .done-case { stroke-dasharray: 2 7; opacity: .55; }

/* =========================================================
   Božićni izgled (bozic.js, html.xmas): snijeg, lampice, čestitka, saonice i snježni brežuljci; uvijek tamna tema
   ========================================================= */
html.xmas :is(#theme-btn, #sp-theme) { display: none; }
.xm-snow { position: fixed; inset: 0; z-index: 72; pointer-events: none; overflow: hidden; }
.xm-snow i { position: absolute; top: -24px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #fff;
  box-shadow: 0 0 4px rgba(255,255,255,.9); opacity: .85; animation: xm-fall var(--d) linear var(--dl) infinite; }
.xm-snow i.f { width: auto; height: auto; background: none; box-shadow: none; color: #fff; font-size: var(--s); line-height: 1; opacity: .9;
  text-shadow: 0 0 3px rgba(80,130,190,.55); }
@keyframes xm-fall { 0% { transform: translate(0, -4vh) rotate(0); } 50% { transform: translate(var(--sw), 52vh) rotate(180deg); } 100% { transform: translate(0, 108vh) rotate(360deg); } }
/* tijekom runde na mobitelu snijeg je rjeđi da ne smeta čitanju */
body.in-round .xm-snow i:nth-child(2n) { display: none; }
@media (max-width: 759px) { body.in-round .xm-snow { opacity: .55; } }

.xm-lights { position: absolute; left: 0; right: 0; bottom: -14px; height: 26px; pointer-events: none; z-index: 3; }
.xm-lights svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.xl-wire { fill: none; stroke: #2b4a3a; stroke-width: 2; vector-effect: non-scaling-stroke; }
.xm-lights i { position: absolute; left: var(--l); top: 9px; width: 9px; height: 13px; margin-left: -4.5px; border-radius: 45% 45% 50% 50%;
  background: var(--c); box-shadow: 0 0 8px 2px var(--c); animation: xm-blink 1.4s ease-in-out var(--dl) infinite alternate; }
.xm-lights i::before { content: ""; position: absolute; left: 2px; top: -4px; width: 5px; height: 5px; border-radius: 1px; background: #2b4a3a; }
@keyframes xm-blink { from { opacity: 1; } to { opacity: .35; box-shadow: none; } }
html.xmas .topbar { position: relative; }
.splash .xm-lights { top: 0; bottom: auto; }

/* zimzelena noć: tamna tema u tonovima bora umjesto tamnoplave; na dnu uvodnog ekrana zasnježena šuma (icons/bozic-suma.svg) */
html.xmas {
  --cream: #113b2a; --paper: #082a1c; --line: #26573f; --navy: #184631; --ink-2: #b6d0c1;
  --sky-top: #082a1c; --sky-mid: #082a1c; --sky-bottom: #082a1c;
  --edge: #03110a; --halo: #03110a; --field: #072116;
  --card: #113b2a; --card2: #0e3324; --track: #072116; --dash: #376c53; --mute: #8aac9a;
}
html.xmas .splash { background: url(icons/bozic-suma.svg?v=1) 50% 100% / auto 150px repeat-x, var(--paper); }
html.xmas .splash::before, html.xmas .sp-cloud { display: none; }
html.xmas .sp-in { padding-bottom: 66px; }   /* tekst ne ulazi u snijeg na dnu */
html.xmas .sp-duel { background: var(--field); }
/* saonice (bozic.js): .sp-arc path crta isprekidani luk, pa se to ovdje poništava */
.sp-arc .xm-sleigh :is(path, rect) { opacity: 1; stroke-dasharray: none; vector-effect: none; stroke-linecap: round; stroke-linejoin: round; }
.sp-arc .xs-body { fill: #e3342f; stroke: #fff; stroke-width: 1.8; }
.sp-arc .xs-gift { fill: #2fd1a0; stroke: #fff; stroke-width: 1.2; }
.sp-arc .xs-gift.b { fill: #4aa8ff; }
.sp-arc :is(.xs-run, .xs-trim, .xs-rib) { fill: none; stroke: #ffc93c; stroke-width: 2.4; }
.sp-arc .xs-run { stroke-width: 2.8; }
.sp-arc .xs-rib { stroke-width: 2; }
/* čestitka u sredini iznad loga (na mobitelu ispod gornjeg reda s gumbima) */
.xm-chip { background: #e3342f; color: #fff; margin-top: 48px; }
.xm-chip + .sp-logo { margin-top: 12px; }
@media (min-width: 760px) and (min-height: 600px) { .xm-chip { margin-top: 0; } }

@media (prefers-reduced-motion: reduce) { .xm-lights i { animation: none; } }

/* sjena letećeg prijevoza na tlu (app.js travelDraw) */
#travel .t-shadow { fill: #0d1b2a; opacity: 0; filter: blur(1.5px); }

/* Svijetla tema: ravna krem pozadina umjesto gradijenta neba (vlasniku je smetao). Tamna tema ostaje noćno nebo. */
:root:not([data-theme="dark"]) .topbar { background: var(--paper); }
@media (min-width: 760px) {
  :root:not([data-theme="dark"]) { background: var(--paper); }
  :root:not([data-theme="dark"]) body { background: var(--paper); }
}
/* tijekom runde karta stalno ima svoj grafički sloj: uključivanje/isključivanje sloja na svakom putu
   je na mobitelima znalo na trenutak isprazniti sličice ili zatreperiti ploču */
body.in-round .map-card #map, body.in-round .map-card #map-base { will-change: transform; }

/* =========================================================
   Ko će dalje? — početni ekran (logo na sredini, ploča s karticom i scenom utrke, države kao putokazi)
   ========================================================= */
.du-hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 6px 0 18px; }
.du-hero .du-logo.big { display: block; width: 104px; height: 104px; margin-bottom: 4px; }
.du-hero .du-h1 { font-size: clamp(40px, 9vw, 62px); margin: 0 0 6px; }
.du-tagl { margin: 0 0 8px; font-family: var(--type); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 8px; }
.du-betap { padding: 2px 9px; border-radius: 999px; background: var(--sun); color: #13202f; font-size: 11px; letter-spacing: .1em; border: 1.5px solid var(--edge); }
.du-hero .du-sub { max-width: 460px; margin: 0 auto; font-size: 16px; }

.du-stage { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 14px; border: 2px solid var(--edge); border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: 0 6px 0 rgba(29,42,58,.12); }
/* scena je široka traka na vrhu ploče, ispod nje kartica (i na računalu: kartica ima polja za unos) */
.du-info { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; order: 2; }
@media (min-width: 720px) { .du-info { padding: 20px 24px 22px; } .du-stage .du-setup { grid-template-columns: 1fr 1fr; align-items: end; } }
.du-info .du-kick { margin: 0; color: var(--teal); }
.du-ih { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.1; color: var(--head); }
.du-big { margin: 0 0 4px; font-family: var(--type); font-weight: 700; font-size: 18px; color: var(--ink-2); }
.du-big b { font-size: 38px; line-height: 1; color: var(--coral); margin-right: 4px; }
.du-big span { color: var(--ink-2); font-weight: 600; }
.du-stage .du-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.du-stage .du-steps li { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border: 1.5px solid var(--dash); border-radius: 999px; background: var(--field); font-size: 13px; font-weight: 700; text-align: left; }
.du-stage .du-steps li b { width: 22px; height: 22px; font-size: 12px; border-width: 1.5px; }
.du-stage .du-setup { grid-template-columns: 1fr; margin: 4px 0 0; gap: 10px; }
.du-stage .du-gate { margin: 4px 0 0; }
/* dvoboj bez kartice "Izazovi prijatelja" (scena s avionima, naslov, koraci); ostaju upis koda, ime i prijava */
/* shortcut: kartica se samo skriva; scene() i ti dijelovi u dvoboj.js pickScreen() mogu se obrisati kad se opet dira dvoboj */
:is(.du-scene, .du-info .du-kick, .du-ih, .du-big, .du-stage .du-steps) { display: none; }
.du-stage { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.du-info { padding: 0; }

.du-scene { position: relative; height: clamp(124px, 31vw, 230px); background: #cfe8f2; border-bottom: 2px solid var(--edge); }
.du-scene svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; display: block; }
/* ispod crteža (kad je ploča viša) nastavlja se tlo iste boje */
.du-scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: #e8dcc0; }
[data-theme="dark"] .du-scene::after { background: #22384f; }
.sc-sky { fill: #cfe8f2; }
.sc-sun { fill: #ffd76a; }
.sc-cloud ellipse { fill: #fff; opacity: .85; }
.sc-cloud { animation: sc-drift 14s ease-in-out infinite alternate; }
.sc-cloud.c2 { animation-duration: 18s; }
@keyframes sc-drift { from { transform: translateX(-10px); } to { transform: translateX(14px); } }
.sc-hill { fill: #e8dcc0; }
.sc-hill.b { fill: #b9d9a3; }
.sc-arc { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-dasharray: 3 9; stroke-linecap: round; opacity: .45; }
.sc-flag path { stroke: var(--navy); stroke-width: 2; fill: none; }
.sc-flag .f { fill: var(--teal); stroke: none; }
.sc-flag.end .f { fill: var(--coral); }
.sc-ap path { stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; }
.sc-ap.me path { fill: var(--coral); }
.sc-ap.op path { fill: var(--navy); }
.sc-chip { position: absolute; right: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1.5px solid var(--edge); font-family: var(--type); font-weight: 700; font-size: 12.5px; color: var(--head); }
[data-theme="dark"] .sc-sky, [data-theme="dark"] .du-scene { fill: #16304a; background: #16304a; }
[data-theme="dark"] .sc-sun { fill: #f4efe4; }
[data-theme="dark"] .sc-cloud ellipse { opacity: .12; }
[data-theme="dark"] .sc-hill { fill: #22384f; }
[data-theme="dark"] .sc-hill.b { fill: #2a4a3e; }
[data-theme="dark"] .sc-arc, [data-theme="dark"] .sc-flag path { stroke: #9db0c5; }
[data-theme="dark"] .sc-ap.op path { fill: #6cc3e6; }
[data-theme="dark"] .sc-chip { background: rgba(14,26,41,.9); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .sc-cloud { animation: none; } .sc-ap { display: none; } }

/* bez stare tablice koraka iznad ploče */
.du-beta { border-style: solid; border-width: 1.5px; border-color: var(--dash); background: transparent; }

/* države kao putokazi: zelena ploča s imenom i rutom, ispod silueta */
.du-c { border-radius: 16px; box-shadow: 0 4px 0 rgba(29,42,58,.14); }
.du-c:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(29,42,58,.16); }
.du-csign { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; padding: 10px 12px 9px; background: #1f6f50; color: #fff; border-bottom: 2px solid var(--edge); }
.du-csign b { font-family: var(--type); font-size: 16px; line-height: 1.1; }
.du-c .du-cmap { border-bottom: 0; background: var(--m-sea); }
.du-c > em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--teal); padding: 8px 12px 10px; }
