/* ===== Sijelo (Znalac Ekspres i druge igre) — "tečno staklo", topla večer ===== */
:root {
  --ink: #05090f;
  --navy: #0d1a20;
  --blue: #4d8f98;
  --sky: #9fd0d0;
  --gold: #f6c869;
  --gold-hi: #ffe9aa;
  --gold-rgb: 246, 200, 105;
  --aur1: #c2570c; --aur2: #9d3d73; --aur3: #f6c869;
  --hill1: rgba(30, 70, 150, .55); --hill2: rgba(16, 40, 100, .7); --hill3: rgba(6, 18, 52, .92);
  --mint: #4fe3b0;
  --rose: #ff6b86;
  --violet: #8f7bff;
  --text: #f5f8ff;
  --muted: rgba(228, 238, 255, .66);
  --stroke: rgba(255, 255, 255, .26);
  --glass-a: rgba(255, 255, 255, .16);
  --glass-b: rgba(255, 255, 255, .04);
  --sky1: #3a2236;
  --sky2: #120a14;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable", "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --p: 0;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); color: var(--text); background: var(--ink);
  overflow: hidden; -webkit-font-smoothing: antialiased; letter-spacing: -.01em;
}
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ----- pozadina ----- */
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 100%); transition: background 1.4s linear; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.a1 { width: 55vmax; height: 55vmax; left: -15vmax; top: -22vmax; background: radial-gradient(circle, var(--aur1) 0%, transparent 65%); animation: drift1 24s ease-in-out infinite alternate; }
.a2 { width: 50vmax; height: 50vmax; right: -18vmax; top: 8vmax; background: radial-gradient(circle, var(--aur2) 0%, transparent 65%); animation: drift2 30s ease-in-out infinite alternate; opacity: .4; }
.a3 { width: 45vmax; height: 45vmax; left: 20vw; bottom: -25vmax; background: radial-gradient(circle, var(--aur3) 0%, transparent 68%); animation: drift3 28s ease-in-out infinite alternate; opacity: .28; }
@keyframes drift1 { to { transform: translate(14vmax, 9vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vmax, 12vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(10vmax, -8vmax) scale(1.2); } }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: calc(.25 + var(--p) * .75); transition: opacity 1.4s; }
.clouds span { position: absolute; height: 44px; width: 150px; border-radius: 44px; background: rgba(255, 255, 255, .08); filter: blur(10px); animation: cloud 60s linear infinite; }
.clouds span:nth-child(1) { top: 16%; left: -20%; }
.clouds span:nth-child(2) { top: 30%; left: -40%; width: 220px; animation-duration: 90s; animation-delay: -30s; }
.clouds span:nth-child(3) { top: 8%; left: -30%; width: 110px; animation-duration: 75s; animation-delay: -55s; }
@keyframes cloud { to { transform: translateX(150vw); } }
.hills { position: absolute; left: 0; bottom: 0; width: 160%; height: 32vh; min-height: 160px; }
.hill { transition: transform 1.6s var(--ease-out); }
.h1 { fill: var(--hill1); transform: translateX(calc(var(--p) * -14%)); }
.h2 { fill: var(--hill2); transform: translateX(calc(var(--p) * -26%)); }
.h3 { fill: var(--hill3); transform: translateX(calc(var(--p) * -40%)); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ----- raspored ----- */
#app { position: fixed; inset: 0; z-index: 2; }
.screen { position: absolute; inset: 0; display: none; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); overflow-y: auto; overflow-x: hidden; }
.screen.on { display: flex; flex-direction: column; animation: screenIn .7s var(--ease-out) both; }
@keyframes screenIn { from { opacity: 0; transform: scale(.96) translateY(14px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
.center { margin: auto; width: min(100%, 560px); }

/* ----- staklo ----- */
.glass {
  position: relative; border-radius: 26px; border: 1px solid var(--stroke);
  background: linear-gradient(135deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  box-shadow: 0 18px 50px rgba(1, 6, 24, .5), inset 0 1.5px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(255, 255, 255, .08), inset 0 0 22px rgba(255, 255, 255, .05);
}
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 12% -10%, rgba(255, 255, 255, .34), transparent 55%); mix-blend-mode: soft-light; }
.pad { padding: 22px; }

/* ----- dugmad (providna) ----- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); cursor: pointer; font-weight: 650; font-size: 17px; letter-spacing: -.012em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 24px rgba(1, 6, 24, .35), inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 -8px 16px rgba(255, 255, 255, .03);
  overflow: hidden; transition: transform .35s var(--ease-spring), box-shadow .3s, background .3s, border-color .3s; user-select: none;
}
.btn::after { content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); opacity: 0; }
.btn:hover::after { animation: sheen .9s var(--ease-out); }
@keyframes sheen { 0% { left: -80%; opacity: 0; } 20% { opacity: .9; } 100% { left: 140%; opacity: 0; } }
.btn:hover { transform: translateY(-2px) scale(1.02); border-color: rgba(255, 255, 255, .5); box-shadow: 0 14px 34px rgba(1, 6, 24, .45), inset 0 1.5px 0 rgba(255, 255, 255, .65); }
.btn:active { transform: scale(.95); transition-duration: .1s; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .ico { width: 22px; height: 22px; flex: none; }
.btn.primary { border-color: rgba(var(--gold-rgb), .6); color: var(--gold-hi);
  background: linear-gradient(180deg, rgba(var(--gold-rgb), .34), rgba(var(--gold-rgb), .08));
  box-shadow: 0 8px 28px rgba(var(--gold-rgb), .22), inset 0 1.5px 0 rgba(255, 240, 200, .7); }
.btn.primary:hover { box-shadow: 0 14px 40px rgba(var(--gold-rgb), .38), inset 0 1.5px 0 rgba(255, 240, 200, .85); }
.btn.mint { border-color: rgba(79, 227, 176, .55); color: #c8ffe9; background: linear-gradient(180deg, rgba(79, 227, 176, .3), rgba(79, 227, 176, .06)); }
.btn.rose { border-color: rgba(255, 107, 134, .55); color: #ffd5dd; background: linear-gradient(180deg, rgba(255, 107, 134, .3), rgba(255, 107, 134, .06)); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.icon { width: 44px; min-height: 44px; padding: 0; }
.pulse { animation: pulseGlow 1.8s ease-in-out infinite; }
@keyframes pulseGlow { 50% { box-shadow: 0 0 0 8px rgba(var(--gold-rgb), 0), 0 0 40px rgba(var(--gold-rgb), .55), inset 0 1.5px 0 rgba(255, 240, 200, .8); } }

.field { width: 100%; min-height: 56px; border-radius: 18px; padding: 0 18px; font-size: 19px; font-weight: 560; text-align: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .26); outline: none;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: border-color .25s, box-shadow .25s, background .25s; }
.field::placeholder { color: rgba(228, 238, 255, .4); font-weight: 450; }
.field:focus { border-color: rgba(var(--gold-rgb), .8); background: rgba(255, 255, 255, .1); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .25), 0 0 0 5px rgba(var(--gold-rgb), .16); }
.field.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

.ico { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; }
.tc { text-align: center; }

/* ----- početni ekran ----- */
.logo { text-align: center; margin-bottom: 26px; }
.logo-mark { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 28px; display: grid; place-items: center; color: var(--gold-hi); font-size: 50px;
  animation: floaty 5s ease-in-out infinite; }
.logo-mark .ico { filter: drop-shadow(0 0 14px rgba(var(--gold-rgb), .65)); stroke-width: 1.5; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-2deg); } }
.logo h1 { margin: 0; font-size: clamp(38px, 9vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff 10%, var(--gold-hi) 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.rail { height: 4px; border-radius: 4px; margin: 20px auto 0; width: 70%; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; }
.rail::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: railrun 3s linear infinite; }
@keyframes railrun { to { left: 100%; } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); }
.toggles { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); transition: .3s var(--ease-spring); }
.chip[aria-pressed="true"] { border-color: rgba(var(--gold-rgb), .65); color: var(--gold-hi); background: rgba(var(--gold-rgb), .16); }
.chip:active { transform: scale(.94); }
.code-row { display: flex; gap: 10px; }
.code-row .field { text-transform: uppercase; letter-spacing: .3em; font-weight: 700; }

/* ----- čekanje ----- */
.orbit { width: 130px; height: 130px; margin: 0 auto 20px; position: relative; display: grid; place-items: center; }
.orbit::before, .orbit::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--gold); animation: spin 1.3s linear infinite; }
.orbit::after { inset: 14px; border-top-color: var(--sky); animation-duration: 2s; animation-direction: reverse; }
.orbit .ico { font-size: 40px; color: var(--gold-hi); animation: floaty 3s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bigcode { font-size: 56px; font-weight: 800; letter-spacing: .18em; text-indent: .18em; color: var(--gold-hi); text-shadow: 0 0 30px rgba(var(--gold-rgb), .5); }

/* ----- meč: HUD ----- */
#s-match { padding: 0; }
.match { display: flex; flex-direction: column; height: 100%; width: min(100%, 1200px); margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)); gap: 10px; }
#mapbg { position: fixed; inset: 0; z-index: 1; }
#mapbg.flat { display: grid; place-items: start center; padding-top: 90px; }
.map3d-canvas { width: 100%; height: 100%; display: block; }
#mapbg::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 10, 16, .55) 0%, rgba(5, 10, 16, 0) 22%, rgba(5, 10, 16, 0) 40%, rgba(5, 10, 16, .55) 100%); }
.map-hud { flex: none; position: relative; z-index: 4; pointer-events: none; }
.map3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.m3-label { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; transition: opacity .25s; font-weight: 700; }
.m3-label.city { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; color: #eef4f2; background: rgba(8, 16, 22, .55); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.m3-label.city.on { color: #2a1b00; background: linear-gradient(180deg, #ffe9aa, #f6c869); border-color: #fff3cf; box-shadow: 0 0 18px rgba(var(--gold-rgb), .55); }
.m3-label.country { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(225, 238, 235, .8); font-weight: 600; }
.side { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; position: relative; z-index: 4; }
@media (min-width: 900px) {
  .match { display: grid; grid-template-columns: minmax(0, 1fr) 460px; grid-template-rows: auto 1fr; gap: 14px; }
  .map-hud { grid-column: 1; }
  .side { grid-column: 2; grid-row: 1 / 3; justify-content: flex-end; }
}
}
.pill > b { margin-left: auto; padding-left: 6px; }
.hud-top .pill.opp { justify-self: end; }
.pill { min-width: 0; max-width: 100%; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-weight: 700; font-size: 15px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); }
.pill > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pill .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(var(--gold-rgb), .25); color: var(--gold-hi); }
.pill.opp .dot { background: rgba(134, 185, 255, .25); color: var(--sky); }
.pill b { font-variant-numeric: tabular-nums; }
.station-tag { font-size: 14px; color: var(--muted); font-weight: 600; text-align: center; margin-bottom: 8px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.station-tag b { color: var(--gold-hi); }
#route { width: 100%; height: auto; display: block; overflow: visible; }
.route-base { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 6; stroke-linecap: round; }
.route-done { fill: none; stroke: url(#routeGrad); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(var(--gold-rgb), .6)); }
.stop circle { fill: rgba(10, 24, 56, .9); stroke: rgba(255, 255, 255, .5); stroke-width: 2; transition: .5s var(--ease-spring); }
.stop.on circle { fill: var(--gold); stroke: #fff; transform-box: fill-box; transform-origin: center; animation: stopPop .7s var(--ease-spring); }
.stop text { font-size: 27px; fill: var(--muted); text-anchor: middle; font-weight: 600; }
.stop.on text { fill: var(--gold-hi); }
@keyframes stopPop { 40% { transform: scale(1.9); } }
.token circle { stroke-width: 2; }
.token.you circle { fill: rgba(var(--gold-rgb), .3); stroke: var(--gold-hi); }
.token.opp circle { fill: rgba(134, 185, 255, .28); stroke: var(--sky); }
.token text { font-size: 30px; text-anchor: middle; dominant-baseline: central; }
.token { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.token.pop text { animation: vehiclePop .6s var(--ease-spring); transform-box: fill-box; transform-origin: center; }
@keyframes vehiclePop { 0% { transform: scale(.2) rotate(-40deg); } 100% { transform: none; } }

/* ----- pozornica ----- */
#stage { flex: 0 1 auto; max-height: 60vh; min-height: 0; position: relative; display: flex; flex-direction: column; }
.panel { flex: 0 1 auto; min-height: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; animation: panelIn .6s var(--ease-out) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px) scale(.97); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.game-head { display: flex; align-items: center; gap: 12px; }
.game-badge { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: var(--gold-hi); flex: none;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), .3), rgba(var(--gold-rgb), .06)); border: 1px solid rgba(var(--gold-rgb), .45); }
.game-head h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.game-head .muted { font-size: 14px; }
.ring { width: 54px; height: 54px; margin-left: auto; position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring .bg { stroke: rgba(255, 255, 255, .15); } .ring .fg { stroke: var(--gold); stroke-linecap: round; transition: stroke .3s; filter: drop-shadow(0 0 5px rgba(var(--gold-rgb), .6)); }
.ring.low .fg { stroke: var(--rose); filter: drop-shadow(0 0 6px rgba(255, 107, 134, .8)); }
.ring.low { animation: tickPulse 1s ease-in-out infinite; }
@keyframes tickPulse { 50% { transform: scale(1.1); } }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.prompt { font-size: clamp(24px, 5.4vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -.04em; text-align: center; margin: 6px 0; }
.hint { text-align: center; color: var(--muted); font-size: 15px; min-height: 22px; }
.feedback { min-height: 60px; display: flex; align-items: center; justify-content: center; text-align: center; }
.toast-km { flex-wrap: wrap; justify-content: center; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 20px; font-weight: 750; font-size: 20px; animation: kmPop .7s var(--ease-spring) both; }
.toast-km.good { background: rgba(79, 227, 176, .18); border: 1px solid rgba(79, 227, 176, .5); color: #c8ffe9; }
.toast-km.rare { background: rgba(var(--gold-rgb), .22); border: 1px solid rgba(var(--gold-rgb), .7); color: var(--gold-hi); box-shadow: 0 0 40px rgba(var(--gold-rgb), .45); }
.toast-km.bad { background: rgba(255, 107, 134, .16); border: 1px solid rgba(255, 107, 134, .5); color: #ffd5dd; }
@keyframes kmPop { from { opacity: 0; transform: scale(.4) translateY(20px); } to { opacity: 1; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.found { padding: 7px 13px; border-radius: 999px; font-size: 15px; font-weight: 650; background: rgba(79, 227, 176, .16); border: 1px solid rgba(79, 227, 176, .45); color: #d4ffee; animation: chipIn .55s var(--ease-spring) both; }
.found.rare { background: rgba(var(--gold-rgb), .2); border-color: rgba(var(--gold-rgb), .65); color: var(--gold-hi); }
.found small { opacity: .8; margin-left: 6px; font-weight: 700; }
@keyframes chipIn { from { opacity: 0; transform: translateY(-26px) scale(.5) rotate(-6deg); } to { opacity: 1; transform: none; } }
.counter { text-align: center; font-size: 15px; color: var(--muted); } .counter b { color: var(--gold-hi); font-size: 22px; font-variant-numeric: tabular-nums; }

/* šifra */
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sym { aspect-ratio: 1; border-radius: 18px; font-size: clamp(24px, 6.6vw, 34px); display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, .28);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 6px 14px rgba(0, 0, 0, .3); transition: transform .3s var(--ease-spring); }
.sym:hover { transform: translateY(-3px) scale(1.06); } .sym:active { transform: scale(.88); }
.slots { display: flex; gap: 10px; justify-content: center; }
.slot { width: clamp(52px, 15vw, 70px); aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; font-size: clamp(26px, 7vw, 36px); cursor: pointer;
  border: 1.5px dashed rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); transition: .3s var(--ease-spring); }
.slot.full { border-style: solid; border-color: rgba(var(--gold-rgb), .6); background: rgba(var(--gold-rgb), .12); animation: slotIn .45s var(--ease-spring); }
@keyframes slotIn { from { transform: scale(.4) rotate(-12deg); } }
.hist { display: flex; flex-direction: column; gap: 6px; max-height: 26vh; overflow-y: auto; }
.hrow { display: flex; align-items: center; justify-content: center; gap: 10px; animation: chipIn .5s var(--ease-spring) both; }
.hrow .hs { display: flex; gap: 6px; font-size: 22px; } .hrow .hs span { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.pegs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 34px; }
.peg { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .2); }
.peg.x { background: var(--gold); border-color: var(--gold-hi); box-shadow: 0 0 8px rgba(var(--gold-rgb), .8); }
.peg.m { border-color: #fff; background: rgba(255, 255, 255, .25); }

/* rebus */
.emoji-big { display: flex; justify-content: center; gap: 4px; font-size: clamp(54px, 15vw, 92px); line-height: 1.1; }
.emoji-big span { display: inline-block; animation: emojiIn .8s var(--ease-spring) both; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .4)); }
.emoji-big span:nth-child(2) { animation-delay: .12s; } .emoji-big span:nth-child(3) { animation-delay: .24s; } .emoji-big span:nth-child(4) { animation-delay: .36s; }
@keyframes emojiIn { from { opacity: 0; transform: translateY(40px) scale(.2) rotate(-25deg); } to { opacity: 1; transform: none; } }
.tag { display: inline-flex; align-self: center; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--sky); background: rgba(134, 185, 255, .14); border: 1px solid rgba(134, 185, 255, .4); }
.dots { display: flex; gap: 8px; justify-content: center; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(var(--gold-rgb), .7); transition: .4s; } .dots i.off { background: rgba(255, 255, 255, .2); box-shadow: none; transform: scale(.7); }

/* laž */
.lie-card { text-align: left; width: 100%; padding: 18px 20px; border-radius: 22px; font-size: 18px; font-weight: 600; line-height: 1.3; cursor: pointer; display: flex; gap: 14px; align-items: center;
  border: 1px solid rgba(255, 255, 255, .26); background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), 0 8px 22px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease-spring), border-color .3s, background .3s; animation: chipIn .6s var(--ease-spring) both; }
.lie-card:nth-child(2) { animation-delay: .1s; } .lie-card:nth-child(3) { animation-delay: .2s; }
.lie-card:hover { transform: translateX(6px) scale(1.01); } .lie-card:active { transform: scale(.97); }
.lie-card .n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; flex: none; background: rgba(255, 255, 255, .1); }
.lie-card.lock { pointer-events: none; }
.lie-card.good { border-color: rgba(79, 227, 176, .8); background: rgba(79, 227, 176, .2); animation: flip .7s var(--ease-spring); }
.lie-card.bad { border-color: rgba(255, 107, 134, .8); background: rgba(255, 107, 134, .2); animation: shake .5s; }
@keyframes flip { from { transform: rotateX(90deg); } to { transform: none; } }

/* veće-manje */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.hcard { padding: 18px 12px; border-radius: 24px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 150px;
  border: 1px solid rgba(255, 255, 255, .28); background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .5), 0 10px 26px rgba(0, 0, 0, .35); }
.hcard .nm { font-size: clamp(17px, 4.4vw, 22px); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.hcard .val { font-size: clamp(26px, 7vw, 38px); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold-hi); letter-spacing: -.04em; }
.hcard .val.q { color: var(--sky); font-size: 44px; animation: floaty 2.4s ease-in-out infinite; }
.hcard small { color: var(--muted); font-size: 13px; }
.hcard.slide-in { animation: slideIn .6s var(--ease-spring) both; } .hcard.slide-a { animation: slideA .6s var(--ease-spring) both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(60px) scale(.9); } } @keyframes slideA { from { transform: translateX(40px); } }
.hcard.ok { border-color: rgba(79, 227, 176, .85); box-shadow: 0 0 36px rgba(79, 227, 176, .4), inset 0 1.5px 0 rgba(255, 255, 255, .5); }
.hcard.no { border-color: rgba(255, 107, 134, .85); box-shadow: 0 0 36px rgba(255, 107, 134, .4); animation: shake .5s; }
.vs-mid { display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.streak { display: flex; gap: 6px; justify-content: center; } .streak i { width: 30px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .16); transition: .4s var(--ease-spring); } .streak i.on { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); box-shadow: 0 0 10px rgba(var(--gold-rgb), .8); transform: scaleY(1.4); }

/* ----- intro stanice ----- */
.intro { align-items: center; justify-content: center; text-align: center; gap: 16px; }
.intro .big { font-size: clamp(34px, 9vw, 58px); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff, var(--gold-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: bigIn .9s var(--ease-spring) both; }
@keyframes bigIn { from { opacity: 0; transform: scale(.5) translateY(30px); filter: blur(14px); } }
.intro .sub { color: var(--muted); font-size: 16px; max-width: 34ch; animation: panelIn .8s .2s var(--ease-out) both; }
.next-game { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 999px; font-weight: 700; font-size: 18px; animation: panelIn .8s .35s var(--ease-out) both; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .24); }
.event { display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px 18px; border-radius: 22px; max-width: 420px; animation: eventIn 1s .45s var(--ease-spring) both;
  background: linear-gradient(135deg, rgba(143, 123, 255, .3), rgba(143, 123, 255, .08)); border: 1px solid rgba(143, 123, 255, .6); }
@keyframes eventIn { from { opacity: 0; transform: rotateY(90deg) scale(.7); } }
.event .e-ico { font-size: 34px; } .event b { display: block; font-size: 17px; } .event span { font-size: 14px; color: var(--muted); }
.hand { display: flex; gap: 12px; align-items: center; padding: 10px 16px 10px 12px; border-radius: 22px; background: rgba(var(--gold-rgb), .12); border: 1px solid rgba(var(--gold-rgb), .55); animation: eventIn .9s .6s var(--ease-spring) both; text-align: left; }
.hand .c-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: rgba(var(--gold-rgb), .22); }
.hand b { display: block; } .hand span { font-size: 13px; color: var(--muted); }
.hand.new { box-shadow: 0 0 40px rgba(var(--gold-rgb), .55); }

/* ----- otkrivanje ----- */
.res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rcard { padding: 16px; border-radius: 22px; text-align: center; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); animation: chipIn .7s var(--ease-spring) both; }
.rcard.me { border-color: rgba(var(--gold-rgb), .55); background: rgba(var(--gold-rgb), .1); } .rcard + .rcard { animation-delay: .15s; }
.rcard .who { font-size: 14px; color: var(--muted); font-weight: 650; }
.rcard .gain { font-size: 40px; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--gold-hi); margin: 4px 0; }
.rcard.zero .gain { color: var(--rose); }
.rcard .lbl { font-size: 15px; min-height: 20px; } .rcard .mods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.mod { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(143, 123, 255, .22); border: 1px solid rgba(143, 123, 255, .5); font-weight: 650; }
.reveal-box { padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); font-size: 15px; line-height: 1.45; text-align: center; animation: panelIn .8s .3s var(--ease-out) both; }
.reveal-box b { color: var(--gold-hi); }
.reveal-sym { display: flex; justify-content: center; gap: 8px; font-size: 30px; margin-top: 6px; }
.progress-line { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); overflow: hidden; flex: none; } .progress-line i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: left; animation: shrink linear forwards; }
@keyframes shrink { to { transform: scaleX(0); } }

/* ----- Kondukter ----- */
.kond { display: flex; gap: 12px; align-items: flex-end; flex: none; }
.kond-av { width: 62px; height: 62px; flex: none; border-radius: 22px; display: grid; place-items: center; overflow: hidden; }
.kond-av svg { width: 54px; height: 54px; } .kond-av .eye { transform-origin: center; transform-box: fill-box; animation: blink 5s infinite; } .kond-av.talk .mouth { animation: talk .22s infinite alternate; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } } @keyframes talk { to { transform: scaleY(.35); } }
.kond-bub { flex: 1; padding: 13px 16px; border-radius: 22px 22px 22px 8px; font-size: 15.5px; line-height: 1.35; min-height: 62px; display: flex; align-items: center; }
.kond-bub.pop { animation: bubPop .5s var(--ease-spring); } @keyframes bubPop { from { transform: scale(.85) translateX(-12px); opacity: .3; } }
.hand-mini { flex: none; } .hand-chip { width: 62px; height: 62px; border-radius: 22px; display: grid; place-items: center; font-size: 28px; color: var(--gold-hi); border: 1px solid rgba(246,200,105,.55); background: linear-gradient(180deg, rgba(246,200,105,.28), rgba(246,200,105,.06)); box-shadow: inset 0 1.5px 0 rgba(255,240,200,.6); animation: eventIn .7s var(--ease-spring) both; }
.hand-chip span { display: none; }
@media (min-width: 640px) { .hand-chip { width: auto; padding: 0 18px; grid-auto-flow: column; gap: 10px; font-size: 24px; } .hand-chip span { display: inline; font-size: 15px; font-weight: 700; } }

/* ----- kraj ----- */
.end-card { text-align: center; padding: 30px 22px; }
.end-card .trophy { font-size: 84px; color: var(--gold-hi); filter: drop-shadow(0 0 30px rgba(var(--gold-rgb), .8)); animation: trophy 1.2s var(--ease-spring) both; display: inline-block; }
@keyframes trophy { from { transform: scale(.1) rotate(-50deg); opacity: 0; } }
.end-card h2 { margin: 10px 0 4px; font-size: 38px; letter-spacing: -.05em; }
.scoreline { display: flex; justify-content: center; gap: 28px; margin: 18px 0 22px; } .scoreline div { font-size: 14px; color: var(--muted); } .scoreline b { display: block; font-size: 34px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.scoreline .win b { color: var(--gold-hi); }

/* ----- tost ----- */
#toasts { position: fixed; top: calc(max(14px, env(safe-area-inset-top)) + 118px); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 80; pointer-events: none; }
.toast { padding: 11px 18px; border-radius: 999px; font-weight: 650; font-size: 15px; animation: toastIn .5s var(--ease-spring) both, toastOut .4s 3.2s forwards; max-width: 92vw; text-align: center; }
.toast.err { border-color: rgba(255, 107, 134, .6); color: #ffd5dd; } .toast.gold { border-color: rgba(var(--gold-rgb), .65); color: var(--gold-hi); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-30px) scale(.7); } } @keyframes toastOut { to { opacity: 0; transform: translateY(-20px) scale(.9); } }
.stamp { position: fixed; z-index: 70; left: 50%; top: 42%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; display: grid; place-items: center; text-align: center; pointer-events: none;
  border: 5px double var(--gold-hi); color: var(--gold-hi); font-weight: 800; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; background: rgba(var(--gold-rgb), .1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: stampIn 2.4s var(--ease-out) forwards; } .stamp small { display: block; font-size: 12px; opacity: .8; letter-spacing: .1em; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(2.6) rotate(-30deg); } 18% { opacity: 1; transform: scale(.92) rotate(-12deg); } 26% { transform: scale(1) rotate(-12deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1) rotate(-12deg) translateY(-30px); } }

@media (max-width: 520px) {
  .res { grid-template-columns: 1fr 1fr; gap: 8px; } .rcard .gain { font-size: 32px; } .panel { padding: 16px; }
  .vs { grid-template-columns: 1fr 1fr; } .vs-mid { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .aurora, .clouds span { animation: none !important; }
}

/* ----- potpis autora ----- */
#credit-fixed { position: fixed; left: 0; right: 0; bottom: max(3px, env(safe-area-inset-bottom)); z-index: 5; text-align: center; font-size: 10.5px; color: rgba(235, 242, 240, .5); pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); letter-spacing: .01em; }
#credit-fixed b { font-weight: 650; color: rgba(255, 233, 170, .75); }
.credit-line { margin: 14px auto 0; text-align: center; font-size: 12px; color: var(--muted); }
.credit-line b { color: var(--gold-hi); font-weight: 650; }
.match { padding-bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px)); }
body:has(.screen.on .credit-line) #credit-fixed { display: none; }

.m3-label.tok { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #fff; background: rgba(8, 16, 22, .72); border: 1.5px solid #ffd070; margin-top: -4px; }
.m3-label.tok.opp { border-color: #ff7aa8; }
.m3-label.tok.opp2 { border-color: #62d6ff; }

/* ===== v2: avatari, 3 igrača, linija puta, upute, nove igre ===== */
.av { --a1: #f6c869; --a2: #b7791f; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 28px; line-height: 1; flex: none;
  background: radial-gradient(circle at 30% 25%, var(--a1), var(--a2)); border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 4px 14px rgba(0, 0, 0, .4), inset 0 2px 4px rgba(255, 255, 255, .45); }
.av.sm { width: 38px; height: 38px; font-size: 21px; border-width: 1.5px; }
.av.xs { width: 26px; height: 26px; font-size: 15px; border-width: 1.5px; }
.av-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; justify-items: center; }
.av-opt { padding: 3px; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; transition: transform .25s var(--ease-spring), border-color .2s; }
.av-opt .av { width: 46px; height: 46px; font-size: 25px; }
.av-opt:hover { transform: scale(1.1); } .av-opt:active { transform: scale(.92); }
.av-opt.on { border-color: var(--gold-hi); box-shadow: 0 0 22px rgba(var(--gold-rgb), .55); transform: scale(1.08); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 18px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .16); }
.seg button { min-height: 44px; border-radius: 14px; border: 1px solid transparent; background: none; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; color: var(--muted); transition: .25s var(--ease-out); }
.seg button .ico { width: 20px; height: 20px; }
.seg button.on { color: var(--gold-hi); background: rgba(var(--gold-rgb), .18); border-color: rgba(var(--gold-rgb), .6); }
.seats { display: flex; gap: 10px; justify-content: center; margin: 12px 0 2px; }
.seats i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); transition: .4s var(--ease-spring); }
.seats i.on { background: var(--gold); box-shadow: 0 0 14px rgba(var(--gold-rgb), .7); transform: scale(1.15); }

/* tabela */
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 10, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .25s both; }
@keyframes fadeIn { from { opacity: 0; } }
.board-card { width: min(460px, 100%); max-height: 86vh; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.board-card h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; display: flex; align-items: center; gap: 10px; } .board-card h2 .ico { width: 28px; height: 28px; color: var(--gold-hi); }
.brows { display: flex; flex-direction: column; gap: 6px; }
.brow { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.brow.top { background: rgba(var(--gold-rgb), .1); border-color: rgba(var(--gold-rgb), .4); }
.brow .rk { width: 24px; text-align: center; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.brow .bn { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .bw { font-weight: 800; font-size: 20px; color: var(--gold-hi); } .brow .bw small { font-size: 12px; color: var(--muted); font-weight: 600; }
.brow .bg { font-size: 12px; min-width: 56px; text-align: right; }

/* HUD: igrači, linija puta, raspored igara */
.hud-top { display: flex; gap: 8px; justify-content: space-between; flex-wrap: nowrap; }
.hud-top .pill { flex: 1 1 0; padding: 5px 12px 5px 5px; font-size: 14px; border-width: 1.5px; }
.pill.you { border-color: rgba(255, 208, 112, .8); } .pill.opp { border-color: rgba(255, 122, 168, .8); } .pill.opp2 { border-color: rgba(98, 214, 255, .8); }
.pill b { font-size: 16px; }
.track { position: relative; height: 62px; margin: 8px 6px 0; border-radius: 18px; background: rgba(8, 16, 22, .5); }
.tk-in { position: absolute; left: 18px; right: 18px; top: 0; bottom: 0; }
.tk-line { position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .22); }
.tk-stop { position: absolute; top: 25px; width: 16px; height: 16px; margin-left: -8px; transform: translateX(0); }
.track { --pad: 16px; }
.tk-stop i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 9.5px; font-weight: 800; color: rgba(255, 255, 255, .85); background: #1b2c34; border: 1.5px solid rgba(255, 255, 255, .5); transition: .4s var(--ease-spring); }
.tk-stop.reached i { background: var(--gold); color: #2a1b00; border-color: #fff3cf; box-shadow: 0 0 12px rgba(var(--gold-rgb), .7); }
.tk-stop.end i { background: #fff; color: #111; }
.tk-stop span { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 650; white-space: nowrap; color: rgba(235, 244, 244, .75); text-shadow: 0 1px 3px #000; display: none; }
.tk-stop.end span { display: block; }
.tk-m { position: absolute; top: 6px; margin-left: calc(-13px + var(--o, 0) * 7px); transition: left 1.6s cubic-bezier(.45, 0, .2, 1); z-index: 2; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.tk-m .av { border-color: #ffd070; } .tk-m.opp .av { border-color: #ff7aa8; } .tk-m.opp2 .av { border-color: #62d6ff; }
.tk-m.you { z-index: 4; top: 3px; } .tk-m.you .av { width: 30px; height: 30px; font-size: 17px; box-shadow: 0 0 0 3px rgba(255, 208, 112, .35), 0 4px 14px rgba(0, 0, 0, .5); }
@media (min-width: 640px) { .tk-stop span { display: block; } .track { height: 70px; } .tk-line { top: 36px; } .tk-stop { top: 31px; } .tk-m { top: 10px; } .tk-m.you { top: 6px; } }
.plan { display: flex; gap: 5px; justify-content: center; margin: 8px 6px 0; }
.pl { position: relative; flex: 1 1 0; max-width: 46px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(8, 16, 22, .5); border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .72); transition: .35s var(--ease-spring); }
.pl .ico { width: 17px; height: 17px; } .pl b { position: absolute; right: 3px; bottom: 0; font-size: 8.5px; opacity: .7; }
.pl.done { color: #bff5de; background: rgba(79, 227, 176, .14); border-color: rgba(79, 227, 176, .4); }
.pl.now { color: #2a1b00; background: linear-gradient(180deg, #ffe9aa, #f6c869); border-color: #fff3cf; transform: translateY(-3px) scale(1.12); box-shadow: 0 8px 20px rgba(var(--gold-rgb), .5); }

/* uvod stanice */
.intro .arrive { text-align: center; } .intro .arrive .muted { font-size: 13px; }
.intro .big { font-size: clamp(28px, 7vw, 44px); }
.intro .sub { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.next-card { width: 100%; text-align: left; padding: 14px 16px; border-radius: 22px; background: linear-gradient(180deg, rgba(var(--gold-rgb), .16), rgba(var(--gold-rgb), .04)); border: 1px solid rgba(var(--gold-rgb), .5); animation: panelIn .8s .3s var(--ease-out) both; display: flex; flex-direction: column; gap: 8px; }
.nc-head { display: flex; align-items: center; gap: 12px; } .nc-head small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; } .nc-head b { font-size: 22px; letter-spacing: -.04em; }
.nc-head .game-badge { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.nc-tag { font-weight: 650; color: var(--gold-hi); font-size: 15px; }
.nc-how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; color: rgba(240, 246, 250, .86); line-height: 1.3; }
.nc-pts { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); } .nc-pts .ico { width: 16px; height: 16px; color: var(--gold); flex: none; }

/* rezultati i kraj za 3 igrača */
.res.n3 { grid-template-columns: repeat(3, 1fr); gap: 8px; } .res.n3 .rcard { padding: 12px 6px; } .res.n3 .gain { font-size: 28px; } .res.n3 .lbl { font-size: 12px; }
.rcard .av { margin-bottom: 4px; } .rcard.opp { border-color: rgba(255, 122, 168, .5); } .rcard.opp2 { border-color: rgba(98, 214, 255, .5); }
.ranking { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 20px; }
.rk { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 12px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); text-align: left; }
.rk.first { background: rgba(var(--gold-rgb), .14); border-color: rgba(var(--gold-rgb), .6); } .rk.me .rn { color: var(--gold-hi); }
.rk .medal { width: 28px; text-align: center; font-size: 22px; } .rk .rn { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; } .rk small { color: var(--muted); }

/* Slovarica */
.wordbox { min-height: 62px; display: grid; place-items: center; font-size: 34px; font-weight: 800; letter-spacing: .14em; border-radius: 20px; background: rgba(0, 0, 0, .26); border: 1px solid rgba(255, 255, 255, .22); }
.wordbox .ph { font-size: 15px; letter-spacing: 0; font-weight: 500; color: rgba(228, 238, 255, .45); } .wordbox.shake { animation: shake .45s; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tile { min-height: 54px; border-radius: 16px; font-size: 25px; font-weight: 800; cursor: pointer; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .07)); border: 1px solid rgba(255, 255, 255, .4); transition: transform .2s var(--ease-spring), opacity .2s; }
.tile:active { transform: scale(.9); } .tile.used { opacity: .25; transform: scale(.9); } .tile[disabled] { pointer-events: none; }
/* Pamti niz */
.mpads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mpad { height: 84px; border-radius: 22px; font-size: 38px; cursor: pointer; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .28); transition: transform .15s, filter .15s, background .15s; filter: saturate(.6) brightness(.8); }
.mpad.lit { filter: saturate(1.3) brightness(1.45); transform: scale(1.08); background: rgba(255, 255, 255, .28); box-shadow: 0 0 36px rgba(255, 255, 255, .55); }
.mpad:active { transform: scale(.94); } .mpad[disabled] { pointer-events: none; opacity: .5; }
.seqdots { display: flex; gap: 7px; justify-content: center; } .seqdots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .2); } .seqdots i.on { background: var(--gold); box-shadow: 0 0 10px rgba(var(--gold-rgb), .7); }
.lives { display: flex; gap: 8px; justify-content: center; } .lives i { width: 16px; height: 16px; background: rgba(255, 255, 255, .18); clip-path: polygon(50% 90%, 0 35%, 22% 8%, 50% 25%, 78% 8%, 100% 35%); } .lives i.on { background: var(--rose); }
/* Brzi račun */
.calc { text-align: center; font-size: clamp(44px, 12vw, 64px); font-weight: 800; letter-spacing: -.04em; padding: 10px 0; font-variant-numeric: tabular-nums; }
.calc.pop { animation: bigIn .5s var(--ease-spring) both; }
.streak i.no { background: var(--rose); }
/* Poredaj */
.ord-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; font-size: 18px; font-weight: 650; text-align: left; cursor: pointer; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .25); transition: .25s var(--ease-spring); }
.ord-item:active { transform: scale(.97); } .ord-item[disabled] { pointer-events: none; }
.ord-item .ord-n { width: 34px; height: 34px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: rgba(0, 0, 0, .25); border: 1px dashed rgba(255, 255, 255, .3); }
.ord-item.picked { border-color: rgba(var(--gold-rgb), .75); background: rgba(var(--gold-rgb), .14); } .ord-item.picked .ord-n { background: var(--gold); color: #2a1b00; border: none; }
/* Pogodi na karti */
.geo-ask { text-align: center; } .geo-city { font-size: clamp(28px, 7vw, 38px); font-weight: 800; letter-spacing: -.05em; color: var(--gold-hi); line-height: 1.1; }
.geo-wrap { border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .28); touch-action: manipulation; background: #0b2630; }
#geo { display: block; width: 100%; height: auto; max-height: 40vh; cursor: crosshair; }
.geo-sea { fill: #0c2a36; } .geo-c { fill: #1d3a42; stroke: rgba(255, 255, 255, .22); stroke-width: .035; } .geo-c.core { fill: #2c5a58; stroke: rgba(255, 233, 170, .55); stroke-width: .05; }
.geo-guess { fill: #ffd070; stroke: #fff; stroke-width: .06; } .geo-truth { fill: #4fe3b0; stroke: #fff; stroke-width: .07; } .geo-line { stroke: #fff; stroke-width: .06; stroke-dasharray: .2 .15; }
.geo-txt { fill: #fff; font-size: .62px; font-weight: 800; paint-order: stroke; stroke: #05090f; stroke-width: .16px; }
@media (max-width: 380px) { .av-opt .av { width: 40px; height: 40px; font-size: 22px; } .hud-top .pill { font-size: 13px; padding-right: 8px; } }

.screen > .center, .center > * { flex: none; }
.m3-label.tok { opacity: 0; }
.m3-label.city.num { min-width: 22px; padding: 2px 0; text-align: center; font-size: 12px; }
.ord-item { padding: 9px 14px; font-size: 16.5px; } .ord-item .ord-n { width: 30px; height: 30px; border-radius: 10px; }
#items.col { gap: 8px; }

/* ---- v3: 2 na 2, XP, pauza, nove igre ---- */
.seg { grid-template-columns: repeat(var(--cols, 3), 1fr); }
.seg button { font-size: 14px; padding: 0 6px; }
.lvl-row { display: flex; align-items: center; gap: 10px; min-height: 0; }
.lvl-row:empty { display: none; }
.lvl-badge { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #2a1d00; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }
.xpbar { flex: 1; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.xpbar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--mint), var(--gold-hi)); transition: width 1.2s var(--ease-out); }
.lvl-row small { color: var(--muted); font-variant-numeric: tabular-nums; }
.xp-card { margin: 0 0 18px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.xp-card.up { border-color: rgba(var(--gold-rgb), .7); box-shadow: 0 0 24px rgba(var(--gold-rgb), .25); }
.xp-top { display: flex; justify-content: space-between; align-items: center; } .xp-top b { font-size: 24px; letter-spacing: -.03em; color: var(--gold-hi); }
.xp-up { font-weight: 800; color: var(--mint); }
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hud-row .station-tag { margin: 0 0 8px; text-align: left; flex: 1; }
.leave-btn { pointer-events: auto; position: relative; z-index: 6; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; margin-bottom: 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .3); color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.leave-btn .ico { width: 16px; height: 16px; } .leave-btn:hover { color: var(--rose); border-color: var(--rose); }
.teambar { display: flex; gap: 8px; margin: 8px 0 0; justify-content: center; }
.teambar .tb { flex: 1; text-align: center; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .2); }
.teambar .tb b { margin-left: 6px; font-variant-numeric: tabular-nums; }
.teambar .mine { border-color: rgba(79, 227, 176, .7); color: var(--mint); } .teambar .foe { border-color: rgba(255, 122, 168, .7); color: #ff9dbb; }
.pill.mate { border-color: rgba(79, 227, 176, .85); }
.tk-m.mate .av { border-color: #4fe3b0; }
.rcard.mate { border-color: rgba(79, 227, 176, .55); }
.res.n4 { grid-template-columns: 1fr 1fr; gap: 8px; } .res.n4 .rcard { padding: 10px 6px; } .res.n4 .gain { font-size: 26px; } .res.n4 .lbl { font-size: 12px; }
.hud-top.t4 { flex-wrap: wrap; } .hud-top.t4 .pill { flex: 1 1 45%; }
.rk.tm-mine { border-color: rgba(79, 227, 176, .6); } .rk.tm-foe { border-color: rgba(255, 122, 168, .45); }
.net { z-index: 90; }
.pausecard { max-width: 340px; width: 100%; padding: 22px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; border-radius: 26px; }
.pausecard b { font-size: 20px; letter-spacing: -.02em; }
.orbit.small { width: 64px; height: 64px; margin: 0 auto 4px; } .orbit.small .ico { font-size: 24px; } .orbit.small::after { inset: 8px; }
.tagq { text-align: center; color: var(--gold-hi); font-weight: 700; font-size: 13px; min-height: 16px; }
.q-prompt { font-size: clamp(20px, 4.6vw, 28px); line-height: 1.2; min-height: 66px; display: grid; place-items: center; }
.q-prompt.pop { animation: qIn .35s ease-out both; }
@keyframes qIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 14px; border-radius: 18px; text-align: left; font-size: 17px; font-weight: 650; color: var(--text); cursor: pointer; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .32); transition: transform .2s var(--ease-spring), background .25s, border-color .25s; }
.opt:active:not(.lock) { transform: scale(.97); }
.opt .ol { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: rgba(0, 0, 0, .3); color: var(--gold-hi); }
.opt .ot { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.opt.chosen { border-color: var(--gold); background: rgba(var(--gold-rgb), .2); }
.opt.good { border-color: var(--mint); background: rgba(79, 227, 176, .24); } .opt.bad { border-color: var(--rose); background: rgba(255, 107, 134, .22); }
.opt.lock:not(.good):not(.bad) { opacity: .5; }
.opts.tacno { grid-template-columns: 1fr 1fr; } .opts.tacno .opt { justify-content: center; min-height: 64px; font-size: 20px; }
.opts.tacno .ot { flex: none; }
.opts.uljez { grid-template-columns: 1fr 1fr; } .opts.uljez .opt { min-height: 64px; }
.tiles.ana { grid-template-columns: repeat(auto-fit, minmax(40px, 1fr)); }
.tile.static { display: grid; place-items: center; cursor: default; min-height: 48px; text-transform: uppercase; }
.pair-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair-h { text-align: center; font-size: 12px; font-weight: 800; color: var(--gold-hi); margin-bottom: 6px; }
.pair-cols .col { display: flex; flex-direction: column; gap: 8px; }
.pair-item { min-height: 50px; padding: 6px 10px; border-radius: 14px; font-size: 15px; font-weight: 650; color: var(--text); cursor: pointer; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); overflow-wrap: anywhere; transition: .2s var(--ease-out); }
.pair-item.sel { border-color: var(--gold); background: rgba(var(--gold-rgb), .22); transform: scale(1.03); }
.pair-item.ok { border-color: var(--mint); background: rgba(79, 227, 176, .22); opacity: .85; }
.pair-item.no { border-color: var(--rose); animation: shake .4s; }
.rv-line { padding: 2px 0; font-size: 14px; text-align: left; }
.token.opp2 circle { fill: rgba(98, 214, 255, .28); stroke: #62d6ff; }
.token.mate circle { fill: rgba(79, 227, 176, .28); stroke: var(--mint); }

/* ---- pasoš (knjiga koja se otvara) i žig ---- */
.passport { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; pointer-events: none; }
.passport::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(3, 8, 14, .72), rgba(3, 8, 14, .3) 75%); animation: ppFade .4s both; }
.passport.out::before { animation: ppFadeOut .5s both; }
.pp-fly { animation: ppIn .7s cubic-bezier(.2, .9, .3, 1.05) both; }
.passport.out .pp-fly { animation: ppOut .5s cubic-bezier(.5, 0, .9, .4) both; }
.pp-book { position: relative; width: min(94vw, 560px); aspect-ratio: 2 / 1.5; perspective: 1500px; transform: translateX(-25%); animation: ppSlide .8s ease-in-out .75s forwards; filter: drop-shadow(0 28px 40px rgba(0, 0, 0, .6)); }
.pp-book.thump { animation: ppSlide .01s forwards, ppThump .35s ease-out; }
.pp-right, .pp-cover { position: absolute; top: 0; right: 0; width: 50%; height: 100%; }
.pp-right { overflow: hidden; border-radius: 4px 14px 14px 4px; padding: 12px 12px 10px; background: repeating-linear-gradient(0deg, #f6ecd3 0 22px, #efe3c6 22px 23px); color: #3a2c12; box-shadow: inset 10px 0 16px -8px rgba(90, 60, 10, .45), inset 0 0 0 2px rgba(120, 90, 30, .25); display: flex; flex-direction: column; gap: 8px; }
.pp-cover { transform-origin: left center; transform-style: preserve-3d; animation: ppOpen .95s cubic-bezier(.55, .05, .25, 1) .6s forwards; }
.pp-cf, .pp-cb { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pp-cf { border-radius: 4px 14px 14px 4px; background: linear-gradient(150deg, #7d1f33, #561322 62%, #3d0c18); box-shadow: inset 0 0 0 3px rgba(var(--gold-rgb), .55), inset 0 0 0 7px rgba(var(--gold-rgb), .12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #f6d98a; text-align: center; }
.pp-cf .emb { width: 25%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; box-shadow: 0 0 0 5px rgba(var(--gold-rgb), .15); }
.pp-cf .emb svg { width: 56%; height: 56%; }
.pp-cf b { font-size: clamp(15px, 4.3vw, 24px); letter-spacing: .28em; font-weight: 800; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.pp-cf small { font-size: clamp(8px, 2vw, 11px); letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.pp-cb { transform: rotateY(180deg); border-radius: 14px 4px 4px 14px; padding: 12px; background: repeating-linear-gradient(0deg, #f6ecd3 0 22px, #efe3c6 22px 23px); color: #3a2c12; box-shadow: inset -10px 0 16px -8px rgba(90, 60, 10, .45), inset 0 0 0 2px rgba(120, 90, 30, .25); display: flex; flex-direction: column; gap: 8px; }
.pp-h { font-size: clamp(8px, 2.1vw, 11px); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #6b5528; display: flex; justify-content: space-between; }
.pp-id { display: flex; gap: 10px; align-items: center; }
.pp-photo { width: 34%; aspect-ratio: 3 / 4; border-radius: 6px; background: linear-gradient(160deg, #cfe0f2, #9db9d6); border: 2px solid rgba(80, 60, 20, .4); display: grid; place-items: center; font-size: clamp(22px, 7vw, 40px); }
.pp-id div { min-width: 0; font-size: clamp(9px, 2.4vw, 12px); line-height: 1.35; } .pp-id b { display: block; font-size: clamp(11px, 3vw, 15px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-mrz { margin-top: auto; font-family: ui-monospace, Menlo, monospace; font-size: clamp(6.5px, 1.7vw, 9px); letter-spacing: .08em; color: #6b5528; overflow: hidden; white-space: nowrap; opacity: .8; }
.pp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; flex: 1; align-content: start; }
@media (max-width: 519px) { .pp-book { aspect-ratio: 2 / 2.1; } }
@media (min-width: 520px) { .pp-grid { grid-template-columns: repeat(3, 1fr); } }
.pp-slot { aspect-ratio: 1 / 0.9; border-radius: 6px; border: 1.5px dashed rgba(107, 85, 40, .32); display: grid; place-items: center; position: relative; overflow: hidden; }
.pp-slot.now { border-color: rgba(107, 85, 40, .6); }
.pp-stamp { --ink: #d4483b; --ang: -8deg; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink); border: 2.5px double var(--ink); padding: 3px 4px; line-height: 1.05; font-weight: 800; mix-blend-mode: multiply; transform: rotate(var(--ang)); max-width: 94%; max-height: 94%; text-transform: uppercase; letter-spacing: .03em; }
.pp-stamp.round { border-radius: 50%; aspect-ratio: 1; width: 86%; } .pp-stamp.rect { border-radius: 4px; width: 92%; } .pp-stamp.oval { border-radius: 50%; width: 96%; padding: 6px 4px; }
.pp-stamp b { font-size: 10.5px; max-width: 100%; overflow-wrap: anywhere; } .pp-stamp small { font-size: 7.5px; font-weight: 700; opacity: .85; } .pp-stamp em { font-size: 7.5px; font-style: normal; font-weight: 700; border-top: 1px solid currentColor; margin-top: 2px; padding-top: 1px; }
.pp-stamp.old { opacity: .72; }
.pp-stamp.slam { opacity: 0; animation: ppSlam .45s cubic-bezier(.2, .9, .3, 1.1) 1.55s both; }
.pp-hammer { position: absolute; top: -40px; right: 20%; width: 46px; height: 60px; opacity: 0; animation: ppHammer .5s ease-in 1.2s both; }
@keyframes ppHammer { 0% { opacity: 0; transform: translateY(-30px); } 30% { opacity: 1; } 75% { opacity: 1; transform: translateY(90px) scale(1.1); } 100% { opacity: 0; transform: translateY(96px) scale(1.1); } }
@keyframes ppOpen { to { transform: rotateY(-180deg); } }
@keyframes ppSlide { to { transform: translateX(0); } }
@keyframes ppSlam { 0% { opacity: 0; transform: translateY(-46px) scale(2.9) rotate(calc(var(--ang) - 24deg)); } 55% { opacity: 1; transform: scale(.88) rotate(var(--ang)); } 100% { opacity: .95; transform: scale(1) rotate(var(--ang)); } }
@keyframes ppIn { from { opacity: 0; transform: translateY(70vh) rotate(8deg) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes ppOut { to { opacity: 0; transform: translateY(40vh) rotate(-6deg) scale(.85); } }
@keyframes ppThump { 0% { transform: translateY(0); } 30% { transform: translateY(7px) scale(.995); } 100% { transform: none; } }
@keyframes ppFade { from { opacity: 0; } } @keyframes ppFadeOut { to { opacity: 0; } }

/* ---- telefon: 3D mapa je cijela pozadina, pitanja su veliki blok pri dnu ---- */
@media (max-width: 899px) {
  .match { gap: 6px; }
  #stage { max-height: 64vh; }
  .side .panel.glass { background: rgba(8, 16, 30, .62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
}
@media (max-width: 899px) { .plan { display: none; } .match { gap: 4px; } #stage { max-height: 57vh; } .panel { padding: 14px; gap: 10px; } #mapbg::after { background: linear-gradient(180deg, rgba(5, 10, 16, .35) 0%, rgba(5, 10, 16, 0) 30%, rgba(5, 10, 16, 0) 60%, rgba(5, 10, 16, .4) 100%); } }

/* ---- putovanje: vozila i scene ---- */
.veh { display: block; width: 100%; height: auto; overflow: visible; }
.veh .spin { animation: vSpin .5s linear infinite; transform-box: fill-box; transform-origin: center; }
.veh .leg { transform-box: fill-box; transform-origin: 50% 0; animation: vLeg .5s ease-in-out infinite alternate; } .veh .leg.l2 { animation-direction: alternate-reverse; }
.veh .flame { transform-box: fill-box; transform-origin: right center; animation: vFlame .12s linear infinite alternate; }
@keyframes vSpin { to { transform: rotate(360deg); } } @keyframes vLeg { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } } @keyframes vFlame { to { transform: scaleX(.6); } }
.trip { position: relative; height: 104px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .26); background: linear-gradient(180deg, #8fd0ff, #d6efff 70%); flex: none; }
.trip.s-sky { background: linear-gradient(180deg, #2f7fd6, #9fd2ff 80%); } .trip.s-space { background: radial-gradient(ellipse at 30% 0, #26225a, #07091c 80%); }
.trip.s-rail { background: linear-gradient(180deg, #a9d8ff, #e7f5ff 75%); } .trip.s-road { background: linear-gradient(180deg, #ffd9a0, #ffeccc 70%); }
.trip-far { position: absolute; left: 0; right: 0; top: 22px; height: 40px; white-space: nowrap; font-size: 26px; opacity: .92; }
.trip-far span { display: inline-block; letter-spacing: 22px; animation: tripScroll calc(var(--spd) * 3) linear infinite; }
.trip.t-stand .trip-far span, .trip.t-stand .trip-ground { animation-play-state: paused; }
.trip.s-sky .trip-far { top: 10px; font-size: 32px; } .trip.s-space .trip-far { top: 8px; font-size: 22px; }
.trip-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: #5bb06a repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 18px, transparent 18px 46px); background-size: 92px 100%; animation: tripGround var(--spd) linear infinite; }
.trip.s-park .trip-ground { background-color: #7bc86c; } .trip.s-meadow .trip-ground { background-color: #6fbf73; border-top: 6px solid #c9a46a; }
.trip.s-road .trip-ground { background-color: #4a4f5c; background-image: repeating-linear-gradient(90deg, #ffe08a 0 22px, transparent 22px 52px); background-size: 104px 3px; background-repeat: repeat-x; background-position: 0 50%; }
.trip.s-rail .trip-ground { background-color: #7a6a58; background-image: repeating-linear-gradient(90deg, #3a2f26 0 6px, transparent 6px 24px); border-top: 4px solid #b9b9c2; }
.trip.s-sky .trip-ground, .trip.s-space .trip-ground { display: none; }
.trip-veh { position: absolute; bottom: 14px; left: 0; width: 82px; animation: tripGo 1.1s cubic-bezier(.2, .8, .3, 1) both, tripBob .5s ease-in-out 1.1s infinite alternate; }
.trip.s-sky .trip-veh { bottom: 34px; } .trip.s-space .trip-veh { bottom: 30px; }
.trip.t-rocket .trip-veh { width: 88px; } .trip.t-train .trip-veh { width: 112px; } .trip.t-car .trip-veh { width: 92px; }
.trip-cap { position: absolute; right: 10px; top: 8px; display: flex; gap: 8px; align-items: center; padding: 4px 11px; border-radius: 999px; background: rgba(8, 14, 26, .72); color: #fff; font-size: 13px; backdrop-filter: blur(6px); }
.trip-cap span { color: var(--gold-hi); font-weight: 800; }
.trip-note { text-align: center; font-size: 13.5px; color: var(--muted); padding: 6px 4px 0; }
@keyframes tripGo { from { transform: translateX(-120px); } to { transform: translateX(calc(50cqw - 41px)); } }
@keyframes tripBob { from { transform: translateX(calc(50cqw - 41px)) translateY(0); } to { transform: translateX(calc(50cqw - 41px)) translateY(-3px); } }
@keyframes tripScroll { to { transform: translateX(-50%); } } @keyframes tripGround { to { background-position-x: -92px; } }
.trip { container-type: inline-size; }
.rcard { position: relative; } .rveh { position: absolute; top: 6px; right: 8px; width: 44px; opacity: .95; }
/* Karta: vozilo putuje od tvog pogotka do pravog grada */
.geo-veh { transform-box: fill-box; transform-origin: center; }
.geo-how { font-size: 12.5px; font-weight: 600; opacity: .9; margin-top: 2px; }
.geo-how { flex-basis: 100%; }

/* ---- početni ekran: scena s vozom i ulaznica ---- */
.logo { margin-bottom: 20px; }
.hero { position: relative; height: 136px; border-radius: 26px; overflow: hidden; margin: 0 auto 18px; border: 1px solid rgba(255, 255, 255, .24); box-shadow: 0 18px 46px rgba(0, 0, 0, .42), inset 0 0 0 1px rgba(255, 255, 255, .05);
  background: linear-gradient(180deg, #17316b 0%, #6b4a8f 52%, #f08a5d 100%); }
.hero-sun { position: absolute; left: 62%; bottom: 26px; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle, #fff3c4, #ffc36a 55%, rgba(255, 160, 80, 0) 72%); animation: sunPulse 5s ease-in-out infinite alternate; }
.hero-cloud { position: absolute; height: 14px; width: 70px; border-radius: 99px; background: rgba(255, 255, 255, .5); filter: blur(1px); animation: cloudDrift 28s linear infinite; }
.hero-cloud.c1 { top: 18px; left: -80px; } .hero-cloud.c2 { top: 44px; width: 48px; opacity: .6; animation-duration: 40s; animation-delay: -16s; }
.hero-mtn { position: absolute; left: 0; bottom: 14px; width: 100%; height: 66px; }
.hero-track { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: #2a2236; border-top: 3px solid #b9b9c2; background-image: repeating-linear-gradient(90deg, #4a3d33 0 6px, transparent 6px 22px); background-size: 44px 100%; animation: tripGround 1.1s linear infinite; }
.hero-train { position: absolute; bottom: 12px; left: 0; width: 132px; animation: heroTrain 7s cubic-bezier(.45, .05, .5, .95) infinite; }
.hero-train .veh { filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.logo h1 span { background: linear-gradient(120deg, #ffe9aa, #f6c869 40%, #ff9a6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.hero-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--gold-hi); background: rgba(var(--gold-rgb), .1); border: 1px solid rgba(var(--gold-rgb), .32); }
.hero-chips .ico { width: 15px; height: 15px; }
.ticket { position: relative; border-top: 3px solid var(--gold); }
.tk-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; margin-bottom: 2px; border-bottom: 2px dashed rgba(255, 255, 255, .22); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tk-head b { color: var(--gold-hi); font-size: 14px; }
.ticket .divider { margin: 4px 0; }
@keyframes heroTrain { 0% { transform: translateX(-150px); } 55%, 100% { transform: translateX(calc(100cqw + 20px)); } }
.hero { container-type: inline-size; }
@keyframes cloudDrift { to { transform: translateX(120cqw); } } @keyframes sunPulse { to { transform: scale(1.12); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .hero-train, .hero-cloud, .hero-track { animation: none; } .hero-train { left: 30%; } }

/* ---- traženje protivnika: radar ---- */
.radar { position: relative; width: 190px; height: 190px; margin: 0 auto 14px; display: grid; place-items: center; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--gold-rgb), .65); opacity: 0; animation: ripple 3s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: 1s; } .radar i:nth-child(3) { animation-delay: 2s; }
.radar u { position: absolute; inset: 6px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(var(--gold-rgb), 0) 0 70%, rgba(var(--gold-rgb), .45) 100%); animation: spin 2.2s linear infinite; -webkit-mask: radial-gradient(circle, transparent 28%, #000 29%); mask: radial-gradient(circle, transparent 28%, #000 29%); }
.r-core { position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; color: var(--gold-hi); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .28), rgba(var(--gold-rgb), .18)); border: 2px solid rgba(var(--gold-rgb), .8); box-shadow: 0 0 34px rgba(var(--gold-rgb), .5); animation: corePulse 1.6s ease-in-out infinite; }
.r-core .ico { width: 36px; height: 36px; }
.r-dot { position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 16, 30, .8); border: 1px solid rgba(134, 185, 255, .7); color: var(--sky); opacity: 0; animation: blip 4.5s ease-in-out infinite; }
.r-dot .ico { width: 16px; height: 16px; }
.r-dot.d1 { top: 8px; right: 18px; animation-delay: .6s; } .r-dot.d2 { bottom: 20px; left: 4px; animation-delay: 2.1s; } .r-dot.d3 { bottom: 6px; right: 30px; animation-delay: 3.4s; }
.wlines { position: relative; height: 22px; margin-bottom: 8px; color: var(--gold-hi); font-weight: 650; font-size: 15px; }
.wlines span { position: absolute; inset: 0; opacity: 0; animation: wline 9s infinite; } .wlines span:nth-child(2) { animation-delay: 3s; } .wlines span:nth-child(3) { animation-delay: 6s; }
@keyframes ripple { 0% { transform: scale(.42); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes corePulse { 50% { transform: scale(1.07); } }
@keyframes blip { 0%, 100% { opacity: 0; transform: scale(.4); } 12%, 40% { opacity: 1; transform: scale(1); } 55% { opacity: 0; transform: scale(1.4); } }
@keyframes wline { 0% { opacity: 0; transform: translateY(8px); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-8px); } }

/* ---- staza: svaki igrač ima svoju traku, vozilo i km ---- */
.track { height: auto; padding: 6px 0 6px; }
.track .tk-in { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 0 14px 0 14px; }
.tk-ticks { position: relative; height: 34px; margin-right: 74px; }
.tk-ticks .tk-stop { top: 0; }
.tk-ticks .tk-stop i { top: 1px; width: 16px; height: 16px; inset: auto; position: absolute; left: 0; }
.tk-ticks .tk-stop span { top: 17px; display: none; } .tk-ticks .tk-stop small { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 8.5px; color: rgba(235, 244, 244, .5); white-space: nowrap; display: none; }
.tk-ticks .tk-stop.end span, .tk-ticks .tk-stop.end small { display: block; }
@media (min-width: 640px) { .tk-ticks .tk-stop span, .tk-ticks .tk-stop small { display: block; } .tk-ticks { height: 42px; } }
.lanes { position: relative; display: flex; flex-direction: column; gap: 3px; margin-right: 74px; }
.lane { position: relative; height: 30px; }
.lane-rail { position: absolute; left: 0; right: 0; top: 13px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.lane-fill { position: absolute; left: 0; top: 13px; height: 6px; border-radius: 6px; transition: width 1.6s cubic-bezier(.45, 0, .2, 1); background: linear-gradient(90deg, rgba(var(--gold-rgb), .2), var(--gold)); box-shadow: 0 0 10px rgba(var(--gold-rgb), .5); }
.lane.opp .lane-fill { background: linear-gradient(90deg, rgba(255, 122, 168, .2), #ff7aa8); box-shadow: 0 0 10px rgba(255, 122, 168, .45); }
.lane.opp2 .lane-fill { background: linear-gradient(90deg, rgba(98, 214, 255, .2), #62d6ff); box-shadow: 0 0 10px rgba(98, 214, 255, .4); }
.lane.mate .lane-fill { background: linear-gradient(90deg, rgba(79, 227, 176, .2), var(--mint)); box-shadow: 0 0 10px rgba(79, 227, 176, .4); }
.lane .tk-m { top: 1px; margin-left: -13px; display: flex; align-items: center; gap: 2px; }
.lane .tk-m.you { top: 0; }
.tk-veh { width: 42px; margin-left: -2px; display: block; } .tk-veh .veh { width: 100%; }
.tk-veh.hop { animation: vHop .6s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes vHop { 0% { transform: translateY(0) scale(.5); } 45% { transform: translateY(-9px) scale(1.2); } 100% { transform: none; } }
.tk-m em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(8, 14, 26, .8); color: #fff; border: 1px solid rgba(255, 255, 255, .25); white-space: nowrap; }
.lane.you .tk-m em { color: var(--gold-hi); border-color: rgba(var(--gold-rgb), .6); }
.gapline { text-align: center; font-size: 12.5px; padding: 5px 10px 2px; color: var(--muted); } .gapline b { color: var(--gold-hi); }
.tk-m .av { width: 24px; height: 24px; font-size: 14px; flex: none; }
@media (max-width: 899px) { .geo-wrap { max-height: 31vh; display: grid; place-items: center; } .geo-wrap svg { max-height: 31vh; width: 100%; } }

/* ===== v4: avatari (SVG), dock sa žetonima i kartama, trgovina, chat, lagani način ===== */
.av svg { width: 100%; height: 100%; border-radius: 50%; display: block; }
.av.photo { width: 100%; height: 100%; border-radius: 6px; border: 0; box-shadow: none; }
.av.photo svg { border-radius: 4px; }
.av-pick { grid-template-columns: repeat(7, 1fr); gap: 6px; }
.av-opt { position: relative; }
.av-opt .av { width: 40px; height: 40px; }
.av-opt.locked .av { filter: grayscale(.9) brightness(.45); }
.av-opt .lock { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; }
.av-opt .lock .ico { width: 16px; height: 16px; } .av-opt .lock em { position: absolute; bottom: -2px; right: -2px; font: 800 10px/1 inherit; font-style: normal; background: var(--gold); color: #2a1d00; border-radius: 999px; padding: 2px 5px; }
.av-name { min-height: 20px; font-size: 13.5px; text-align: center; color: var(--muted); } .av-name b { color: var(--text); }
.seg.gm { grid-template-columns: repeat(3, 1fr); }
.seg.gm button { flex-direction: column; gap: 0; line-height: 1.15; padding: 6px; }
.seg.gm small { font-size: 11.5px; font-weight: 600; opacity: .8; }
.rank-t { font-size: 13px; font-weight: 700; color: var(--gold-hi); }
.unlock-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 14px; margin-top: 6px; animation: eventIn .8s .5s var(--ease-spring) both; }

.dock { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 22px; position: relative; z-index: 6; }
.dock .coins, .shop .coins { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold-hi); }
.coin { width: 22px; height: 22px; flex: none; }
.dock .slots { display: flex; gap: 6px; flex: 1; justify-content: center; }
.slot { width: 56px; height: 52px; border-radius: 16px; display: grid; place-items: center; align-content: center; gap: 0; cursor: pointer; color: var(--text); border: 1.5px dashed rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .18); position: relative; }
.slot.empty { color: var(--muted); font-size: 22px; }
.slot i { font-style: normal; font-size: 22px; line-height: 1; } .slot small { font-size: 9.5px; font-weight: 700; max-width: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.ready { border: 1.5px solid rgba(var(--gold-rgb), .75); background: linear-gradient(180deg, rgba(var(--gold-rgb), .3), rgba(var(--gold-rgb), .08)); animation: slotPulse 2.4s ease-in-out infinite; }
.slot.wait { border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); opacity: .65; }
@keyframes slotPulse { 50% { box-shadow: 0 0 18px rgba(var(--gold-rgb), .55); } }
.dk-btn { position: relative; min-width: 48px; height: 48px; border-radius: 16px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: var(--text); font-size: 10.5px; font-weight: 700; }
.dk-btn svg { width: 22px; height: 22px; }
.dk-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 999px; background: #ff5a7a; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.shop { width: min(520px, 100%); max-height: 86vh; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; border-radius: 26px; }
.shop-head { display: flex; align-items: center; gap: 10px; } .shop-head b { flex: 1; font-size: 20px; }
.shop-sub { margin: 0; font-size: 13.5px; }
.shop-grid { display: grid; gap: 8px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); }
.shop-item.off { opacity: .6; }
.si-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: rgba(var(--gold-rgb), .2); flex: none; }
.si-txt { flex: 1; display: grid; gap: 1px; } .si-txt span { font-size: 13px; color: var(--muted); } .si-txt small { font-size: 11.5px; color: var(--gold-hi); }
.shop-item .btn { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.chatbox { position: fixed; z-index: 58; right: 10px; bottom: 76px; width: min(340px, calc(100vw - 20px)); max-height: 56vh; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 22px; animation: eventIn .35s var(--ease-spring) both; }
.ch-head { display: flex; align-items: center; gap: 8px; } .ch-head b { flex: 1; }
.seg.mini { grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 12px; } .seg.mini button { min-height: 30px; font-size: 13px; }
.chatbox .cl { overflow: auto; min-height: 90px; max-height: 26vh; display: flex; flex-direction: column; gap: 4px; overscroll-behavior: contain; }
.cm { display: grid; gap: 0; padding: 5px 26px 5px 9px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 14px; align-self: flex-start; max-width: 92%; word-break: break-word; }
.cm b { font-size: 11.5px; color: var(--muted); } .cm.mine { align-self: flex-end; background: rgba(var(--gold-rgb), .2); } .cm.team { border-left: 3px solid #4fe3b0; }
.cm .em { font-size: 20px; }
.emotes { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.emotes button { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); }
.ch-in { display: flex; gap: 6px; } .ch-in input { flex: 1; min-width: 0; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .25); color: var(--text); padding: 0 12px; height: 40px; font-size: 16px; }
.chat-float { position: fixed; left: 10px; bottom: 82px; z-index: 55; display: grid; gap: 4px; pointer-events: none; max-width: 70vw; }
.cf { padding: 5px 10px; border-radius: 14px; font-size: 14px; background: rgba(8, 16, 22, .72); border: 1px solid rgba(255, 255, 255, .18); animation: eventIn .4s var(--ease-spring) both; } .cf.mine { background: rgba(70, 52, 8, .75); } .cf .em { font-size: 20px; }
@media (max-width: 380px) { .av-opt .av { width: 34px; height: 34px; } .slot { width: 50px; } }

/* Lagani način: slabiji telefoni dobijaju manje efekata i niži pixel ratio. */
html.lite .glass, html.lite .overlay, html.lite .m3-label.city, html.lite .pp-stamp { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .glass { background: rgba(14, 24, 32, .86) !important; }
html.lite .slot.ready, html.lite .radar i, html.lite .hero-cloud, html.lite .hero-sun { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .slot.ready { animation: none; } }
.dk-btn .badge[hidden] { display: none; }
.av-pick { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.av-opt { padding: 2px; max-width: 100%; }
.av-opt .av { width: 36px; height: 36px; }
.av-opt.locked .av { filter: grayscale(.8) brightness(.6); }
.av-opt .lock .ico { width: 14px; height: 14px; }
@media (max-width: 380px) { .av-opt .av { width: 32px; height: 32px; } }

/* ===== Sijelo: društvene igre ===== */
.party { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; width: 100%; }
.party-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.party-title { font-weight: 800; font-size: 17px; letter-spacing: -.02em; flex: 1 1 100%; }
.party-top .pills { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.party-top .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: 13.5px; }
.party-top .pill.you { border-color: rgba(var(--gold-rgb), .7); background: rgba(var(--gold-rgb), .14); }
.party-top .pill b { color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.party-stage { flex: 1; min-height: 0; overflow: auto; border-radius: 26px; padding: 14px; -webkit-overflow-scrolling: touch; }
.dock.chat-only { justify-content: flex-end; } .dock .grow { flex: 1; }
.dg { display: flex; flex-direction: column; gap: 10px; }
.dg.intro { text-align: center; padding: 30px 8px; } .dg.intro .big { font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.dg-head { display: flex; align-items: center; gap: 12px; }
.dg-letter { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: #2a1d00; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); box-shadow: 0 8px 26px rgba(var(--gold-rgb), .4); flex: none; animation: eventIn .6s var(--ease-spring) both; }
.dg-hint { flex: 1; font-weight: 700; line-height: 1.25; } .dg-hint .muted { font-weight: 500; font-size: 13px; }
.dg-sec { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.dg-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; } .dg-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--mint), var(--gold)); transition: width .25s linear; }
.dg-form { display: grid; gap: 8px; }
.dg-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; } .dg-row span { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.dg-row input { height: 44px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .26); background: rgba(0, 0, 0, .25); padding: 0 12px; font-size: 17px; width: 100%; min-width: 0; }
.dg-row input:focus { outline: 2px solid var(--gold-hi); border-color: transparent; } .dg-row input:disabled { opacity: .6; }
.dg-who { text-align: center; font-size: 13.5px; min-height: 18px; }
.dg-votes { display: grid; gap: 8px; } .dg-vote { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); } .dg-vote small { display: block; color: var(--muted); } .dg-vb { display: flex; gap: 6px; }
.dg-table { display: grid; gap: 4px; font-size: 13.5px; overflow-x: auto; }
.dg-tr { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(70px, 1fr); grid-template-columns: 74px; gap: 4px; align-items: stretch; }
.dg-tr > span { padding: 6px 7px; border-radius: 10px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dg-th > span { background: none; font-weight: 800; } .dg-cat { color: var(--muted); font-weight: 700; background: none !important; }
.dg-cell b { position: absolute; top: 2px; right: 5px; font-size: 11px; color: var(--muted); } .dg-cell.p15, .dg-cell.p10 { background: rgba(79, 227, 176, .2); } .dg-cell.p5 { background: rgba(var(--gold-rgb), .16); } .dg-cell.p0 { opacity: .55; }
.dg-sum > span { background: rgba(var(--gold-rgb), .12); text-align: center; } .dg-sum > span:first-child { background: none; color: var(--muted); }
.chat-float { z-index: 70; }

/* ===== Sijelo: polica igara ===== */
.shelf { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.gcard { flex: 0 0 148px; scroll-snap-align: start; display: grid; gap: 4px; align-content: start; text-align: left; padding: 12px; min-height: 120px; border-radius: 22px; cursor: pointer; border: 1px solid rgba(255, 255, 255, .22); background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); color: var(--text); transition: transform .25s var(--ease-spring), border-color .2s, background .2s; }
.gcard:active { transform: scale(.96); }
.gcard .gc-ico { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: rgba(var(--gold-rgb), .18); color: var(--gold-hi); }
.gcard .gc-ico .ico { width: 22px; height: 22px; }
.gcard b { font-size: 15px; letter-spacing: -.02em; line-height: 1.15; } .gcard small { color: var(--muted); font-size: 12px; line-height: 1.25; }
.gcard.on { border-color: var(--gold-hi); background: linear-gradient(160deg, rgba(var(--gold-rgb), .28), rgba(var(--gold-rgb), .06)); box-shadow: 0 0 26px rgba(var(--gold-rgb), .3); }
.seg.sz { grid-template-columns: repeat(var(--cols, 3), 1fr); }
.sijelo h1 { letter-spacing: -.05em; }

/* Vješala */
.vj-main { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.vj-gal { width: min(190px, 46vw); height: auto; flex: none; border-radius: 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .12); }
.vj-gal .vj-wood { fill: #a0692f; stroke: #5b3513; stroke-width: 1.5; } .vj-gal .vj-wood.s { fill: none; stroke: #a0692f; stroke-width: 6; stroke-linecap: round; } .vj-gal .vj-gr { fill: #1d7a4f; }
.vj-gal .vj-rope { fill: none; stroke: #e7d3a1; stroke-width: 3; stroke-linecap: round; } .vj-gal .vj-skin { fill: #f9c9a6; stroke: #7a4b2a; stroke-width: 2; }
.vj-gal .vj-limb { fill: none; stroke: #f8fafc; stroke-width: 5; stroke-linecap: round; } .vj-gal .vj-eye { fill: #1b1b2f; } .vj-gal .vj-face { fill: none; stroke: #1b1b2f; stroke-width: 1.7; stroke-linecap: round; }
.vj-gal .draw { animation: vjDraw .5s ease-out both; transform-origin: 118px 28px; } .vj-gal.danger { animation: vjShake .6s ease-in-out 1; }
.vj-side { display: grid; gap: 8px; justify-items: center; min-width: 0; flex: 1 1 200px; }
.vj-cat { padding: 3px 12px; border-radius: 99px; background: rgba(var(--gold-rgb), .18); border: 1px solid rgba(var(--gold-rgb), .5); font-weight: 800; font-size: 13px; }
.vj-lives { display: flex; gap: 3px; font-size: 16px; color: #ff6b8a; } .vj-lives i { font-style: normal; transition: transform .2s, color .2s; } .vj-lives i.lost { color: rgba(255, 255, 255, .22); transform: scale(.75); }
.vj-word { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.vj-c { width: clamp(22px, 7vw, 32px); height: 44px; display: grid; place-items: center; font-size: 24px; font-weight: 900; text-transform: uppercase; border-radius: 8px; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05)); border-bottom: 3px solid rgba(255, 255, 255, .45); }
.vj-c.on { color: #04301f; background: linear-gradient(180deg, #d6ffec, #7be8b8); border-bottom-color: #1f9d6b; } .vj-c.pop { animation: vjPop .45s cubic-bezier(.2, 1.5, .3, 1) both; }
.vj-miss { font-size: 13px; color: var(--muted); } .vj-miss b { color: #ff8da4; margin-right: 3px; text-transform: uppercase; }
@keyframes vjDraw { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes vjPop { 0% { transform: scale(.4) rotateX(90deg); } 100% { transform: none; } }
@keyframes vjShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .vj-gal .draw, .vj-c.pop, .vj-gal.danger { animation: none; } }
.vj-who { text-align: center; font-weight: 700; min-height: 22px; } .vj-who.me { color: var(--gold-hi); }
.vj-over { text-align: center; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .08); } .vj-over.win { background: rgba(79, 227, 176, .16); } .vj-over.lose { background: rgba(255, 107, 138, .16); }
.vj-kb { display: grid; gap: 6px; } .vj-row { display: flex; gap: 5px; justify-content: center; }
.vj-k { flex: 1 1 0; max-width: 40px; min-width: 0; height: 44px; border-radius: 10px; border: 0; background: linear-gradient(180deg, #4a63c9, #2b3d8f); color: #fff; font-weight: 800; font-size: 16px; text-transform: uppercase; box-shadow: 0 3px 0 #162057; } .vj-k:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 #162057; }
.vj-k:disabled { opacity: .4; } .vj-k.ok { background: rgba(79, 227, 176, .3); opacity: 1; } .vj-k.no { background: rgba(255, 107, 138, .3); opacity: 1; text-decoration: line-through; }
.vj-solve { display: flex; gap: 8px; } .vj-solve input { flex: 1; height: 42px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .26); background: rgba(0, 0, 0, .25); padding: 0 12px; font-size: 16px; min-width: 0; }

/* Crtaj i pogodi */
.cr-board { position: relative; display: flex; justify-content: center; align-items: flex-start; }
.cr-cv { background: #1b2433; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .22); width: 100%; max-width: 480px; aspect-ratio: 1 / 1; height: auto; touch-action: none; cursor: crosshair; }
.cr-over { position: absolute; inset: auto 10px 10px 10px; text-align: center; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .65); font-weight: 800; }
.cr-tools { display: grid; gap: 8px; } .cr-cols { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.cr-col { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); } .cr-col.on { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
.cr-ws { display: flex; gap: 8px; align-items: center; justify-content: center; } .cr-w { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); } .cr-w i { display: block; border-radius: 50%; background: #fff; } .cr-w.on { border-color: var(--gold-hi); }
.cr-feed { max-height: 110px; overflow: auto; display: grid; gap: 3px; font-size: 14px; } .cr-msg.ok { color: var(--mint); } .cr-msg.close { color: var(--gold-hi); }
.cr-mask { display: inline-flex; gap: 4px; margin-top: 2px; } .cr-mask i { font-style: normal; display: inline-block; min-width: 16px; text-align: center; border-bottom: 2px solid rgba(255, 255, 255, .5); font-weight: 800; text-transform: uppercase; }
.cr-opts { display: grid; gap: 8px; width: min(320px, 100%); margin: 14px auto 0; } .cr-guess { margin-top: 2px; }

/* Asocijacije: TV-kviz tabla (plava, zlatni rubovi, polja se okreću kad se otvore) */
.as-board { padding: 10px 8px 8px; border-radius: 18px; background: radial-gradient(120% 90% at 50% 0%, #2b4fd8 0%, #12286f 58%, #0a1544 100%); border: 2px solid #f6c869; box-shadow: inset 0 0 0 2px rgba(10, 21, 68, .9), 0 8px 24px rgba(0, 0, 0, .35); display: grid; gap: 8px; }
.as-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.as-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; align-content: start; min-width: 0; } .dg.as, .as-board { min-width: 0; max-width: 100%; box-sizing: border-box; } .as-final.ask { flex-wrap: wrap; } .as-final.ask input { flex: 1 1 120px; }
.as-h { height: 22px; display: grid; place-items: center; border-radius: 8px; font-weight: 900; font-size: 14px; letter-spacing: .08em; color: #3a2600; background: linear-gradient(180deg, #ffe08a, #e0a526); box-shadow: 0 2px 0 #8a5d00; } .as-h.done { background: linear-gradient(180deg, #b6f5d8, #34c58e); box-shadow: 0 2px 0 #14684a; color: #04301f; }
.as-cell { min-height: 46px; border-radius: 9px; border: 2px solid #5f86ff; background: linear-gradient(180deg, #3563ec, #1b3aa8); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.15; padding: 4px 3px; display: grid; place-items: center; text-align: center; overflow-wrap: anywhere; hyphens: auto; position: relative; box-shadow: 0 3px 0 #0a1a66, inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .12s, filter .12s; }
.as-cell b { font-size: 15px; letter-spacing: .04em; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
button.as-cell:disabled { filter: saturate(.55) brightness(.8); cursor: default; } button.as-cell:not(:disabled) { cursor: pointer; animation: asPulse 1.4s ease-in-out infinite; } button.as-cell:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 #0a1a66; }
.as-cell.open { background: linear-gradient(180deg, #fffdf2, #f1e6bf); border-color: #f6c869; color: #1d2145; font-weight: 800; padding-top: 12px; box-shadow: 0 3px 0 #9c7a22; animation: none; }
.as-cell.open small { position: absolute; top: 1px; left: 4px; font-size: 9px; font-weight: 900; color: #3563ec; } .as-cell.open.solved { background: linear-gradient(180deg, #e9fff4, #bdeed6); border-color: #34c58e; box-shadow: 0 3px 0 #14684a; }
.as-cell.flip { animation: asFlip .55s cubic-bezier(.2, .7, .2, 1); }
.as-ans { min-height: 40px; border-radius: 9px; display: grid; place-items: center; background: #0a1544; border: 2px solid #f6c869; text-align: center; font-size: 13px; padding: 2px; color: #ffe08a; font-weight: 900; box-shadow: inset 0 0 12px rgba(0, 0, 0, .5); }
.as-ans > span { opacity: .55; font-size: 15px; } .as-ans.on { background: linear-gradient(180deg, #34c58e, #14884f); border-color: #b6f5d8; color: #fff; animation: asPop .5s cubic-bezier(.2, 1.4, .3, 1); } .as-ans small { display: block; color: rgba(255, 255, 255, .85); font-size: 10px; font-weight: 700; }
.as-ans input { width: 100%; height: 34px; min-width: 0; border-radius: 6px; border: 0; background: transparent; text-align: center; font-size: 14px; font-weight: 800; color: #fff; text-transform: uppercase; } .as-ans input::placeholder { color: rgba(255, 224, 138, .6); } .as-ans input:focus { outline: 2px solid #ffe08a; }
.as-final { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 10px; border-radius: 12px; background: #0a1544; border: 2px solid #f6c869; box-shadow: inset 0 0 14px rgba(0, 0, 0, .5); } .as-final.on { background: linear-gradient(180deg, #34c58e, #14884f); border-color: #b6f5d8; animation: asPop .6s cubic-bezier(.2, 1.4, .3, 1); }
.as-final span { color: #ffe08a; font-size: 12px; font-weight: 900; letter-spacing: .16em; } .as-final b { font-size: 18px; color: #fff; letter-spacing: .06em; text-transform: uppercase; }
.as-final input { flex: 1; height: 38px; border-radius: 8px; border: 2px solid #5f86ff; background: rgba(255, 255, 255, .08); padding: 0 10px; font-size: 16px; min-width: 0; color: #fff; font-weight: 800; text-transform: uppercase; }
@keyframes asFlip { 0% { transform: perspective(300px) rotateX(-90deg); filter: brightness(1.6); } 100% { transform: perspective(300px) rotateX(0); filter: none; } }
@keyframes asPop { 0% { transform: scale(.8); } 100% { transform: scale(1); } }
@keyframes asPulse { 50% { filter: brightness(1.2); } }
.hint-btn:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
@media (max-width: 420px) { .as-cell { font-size: 11px; min-height: 42px; } .as-grid { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .as-cell.flip, .as-ans.on, .as-final.on, button.as-cell:not(:disabled) { animation: none; } }

/* ===== Telefon: kompaktan meč, pitanju ostaje što više prostora ===== */
@media (max-width: 640px) {
  .match { gap: 6px; padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: max(10px, calc(env(safe-area-inset-bottom) + 6px)); }
  .hud-row { gap: 6px; } .hud-row .station-tag { margin: 0 0 4px; font-size: 13px; }
  .leave-btn { min-height: 30px; margin-bottom: 4px; padding: 0 10px; font-size: 13px; } .leave-btn .ico { width: 14px; height: 14px; }
  .hud-top:not(.t4) { display: none; } /* ukupni km i ime su u stazi */
  .hud-top.t4 .pill { padding: 3px 8px 3px 3px; font-size: 12.5px; } .hud-top.t4 .pill .av { width: 22px; height: 22px; }
  .track { margin: 2px 0 0; padding: 3px 0; border-radius: 14px; }
  .tk-ticks { height: 20px; } .tk-ticks .tk-stop span, .tk-ticks .tk-stop small { display: none !important; }
  .lane { height: 26px; } .lane-rail, .lane-fill { top: 11px; height: 5px; }
  .tk-m .av { width: 22px; height: 22px; } .tk-veh { width: 34px; }
  .tk-m em::before { content: attr(data-n) "  "; opacity: .75; font-weight: 700; }
  .lanes, .tk-ticks { margin-right: 96px; }
  .gapline { font-size: 11.5px; padding: 2px 8px 0; }
  #stage { max-height: none; flex: 1 1 auto; min-height: 0; }
  .side { gap: 6px; }
  .kond { gap: 8px; } .kond-av { width: 38px; height: 38px; border-radius: 14px; } .kond-av svg { width: 32px; height: 32px; }
  .kond-bub { min-height: 38px; padding: 7px 12px; font-size: 13px; line-height: 1.25; border-radius: 16px 16px 16px 6px; }
  .match.q-on .kond { display: none; }
  .dock { padding: 5px 8px; border-radius: 18px; gap: 6px; } .slot { width: 48px; height: 42px; border-radius: 13px; } .dk-btn { height: 42px; min-width: 42px; }
  body:has(#mapbg) #credit-fixed { display: none; }
}
#owner-fab { position: fixed; left: 0; top: 46%; z-index: 60; width: 38px; height: 46px; border: 0; border-radius: 0 16px 16px 0; display: grid; place-items: center; color: #1a1030; cursor: pointer; background: linear-gradient(120deg, #ffd86b, #ff7ad9, #7ad7ff, #ffd86b); background-size: 300% 100%; animation: ob 6s linear infinite; box-shadow: 0 4px 16px rgba(0,0,0,.45), 0 0 14px rgba(255,216,107,.5); opacity: .92; }
#owner-fab svg, #owner-fab .ico { width: 20px; height: 20px; }
@keyframes ob { to { background-position: 300% 0; } }

/* Ko laže? */
.kl { display: grid; gap: 10px; } .kl-card { padding: 16px 14px; border-radius: 18px; background: radial-gradient(120% 100% at 50% 0%, #4b2a8a, #1c1245); border: 1px solid rgba(181, 140, 255, .55); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); text-align: center; }
.kl-card p { margin: 6px 0 0; font-size: clamp(17px, 4.6vw, 22px); font-weight: 800; line-height: 1.35; } .kl-cat { display: inline-block; padding: 2px 10px; border-radius: 99px; background: rgba(181, 140, 255, .25); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.kl-card u { text-decoration: none; padding: 0 8px; border-radius: 8px; } .kl-blank { background: rgba(255, 255, 255, .12); color: #ffe08a; letter-spacing: .2em; animation: asPulse 1.4s ease-in-out infinite; } .kl-truth { background: linear-gradient(180deg, #d6ffec, #7be8b8); color: #04301f; }
.kl-form { display: grid; gap: 8px; } .kl-form input { height: 46px; border-radius: 14px; border: 2px solid #b58cff; background: rgba(0, 0, 0, .28); padding: 0 12px; font-size: 17px; color: inherit; font-weight: 700; } .kl-err { margin: 0; min-height: 18px; color: #ff8da4; font-weight: 700; font-size: 14px; text-align: center; }
.kl-who { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .kl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: 12px; } .kl-chip i { font-style: normal; font-weight: 700; } .kl-chip b { color: var(--muted); font-weight: 700; } .kl-chip.ok { background: rgba(79, 227, 176, .22); } .kl-chip.ok b { color: #7be8b8; }
.kl-opts { display: grid; gap: 8px; } .kl-opt { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; text-align: left; padding: 10px 12px; min-height: 52px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); color: inherit; font-size: 16px; font-weight: 700; }
button.kl-opt:not(:disabled):active { transform: scale(.98); } button.kl-opt:disabled { opacity: .55; } button.kl-opt.on { opacity: 1; border-color: #ffe08a; background: rgba(246, 200, 105, .22); }
.kl-l { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #8a5cf0, #5532b8); font-weight: 900; font-size: 14px; } .kl-opt em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--muted); font-weight: 700; } .kl-vs { grid-column: 2; display: flex; gap: 2px; flex-wrap: wrap; }
.kl-opt.truth { border-color: #7be8b8; background: rgba(79, 227, 176, .2); animation: asPop .5s cubic-bezier(.2, 1.4, .3, 1); } .kl-opt.truth .kl-l { background: linear-gradient(180deg, #7be8b8, #1f9d6b); color: #04301f; } .kl-opt.truth em { color: #7be8b8; }
.kl-opt.lie { border-color: rgba(255, 141, 164, .5); } .kl-score { text-align: center; font-weight: 700; } .kl-score b { color: #ffe08a; }
@media (prefers-reduced-motion: reduce) { .kl-blank, .kl-opt.truth { animation: none; } }

/* Veće ili manje */
.vm { display: grid; gap: 8px; } .vm-card { display: grid; gap: 2px; place-items: center; text-align: center; padding: 12px 10px; border-radius: 18px; border: 2px solid rgba(255, 255, 255, .2); background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); }
.vm-card.a { border-color: #6ab7ff; background: linear-gradient(180deg, rgba(106, 183, 255, .28), rgba(106, 183, 255, .08)); } .vm-card.b { border-color: #ffe08a; background: linear-gradient(180deg, rgba(246, 200, 105, .22), rgba(246, 200, 105, .06)); }
.vm-card.b.good { border-color: #7be8b8; background: rgba(79, 227, 176, .25); animation: asPop .5s cubic-bezier(.2, 1.4, .3, 1); } .vm-card.b.bad { border-color: #ff8da4; background: rgba(255, 107, 138, .2); }
.vm-nm { font-weight: 800; font-size: 17px; line-height: 1.2; } .vm-val { font-size: clamp(26px, 8vw, 38px); font-weight: 900; letter-spacing: -.02em; } .vm-val small { font-size: 14px; font-weight: 700; margin-left: 5px; color: var(--muted); }
.vm-vs { text-align: center; font-weight: 900; letter-spacing: .18em; color: #ffe08a; font-size: 14px; } .vm-ask { text-align: center; margin: 0; } .vm-ask b { color: #ffe08a; }
.vm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .vm-b { height: 58px; border-radius: 16px; border: 0; font-size: 19px; font-weight: 900; color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); } .vm-b.up { background: linear-gradient(180deg, #34c58e, #14884f); } .vm-b.down { background: linear-gradient(180deg, #ff6b8a, #c0264a); }
.vm-b:disabled { opacity: .5; } .vm-b.on { opacity: 1; outline: 3px solid #ffe08a; } .vm-b:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.kl-chip.bad { background: rgba(255, 107, 138, .22); } .kl-chip.bad b { color: #ff8da4; } .vm-streak { font-style: normal; font-weight: 800; font-size: 11px; color: #ffb347; }
@media (prefers-reduced-motion: reduce) { .vm-card.b.good { animation: none; } }
/* Ko je uljez? */
.uj { display: grid; gap: 10px; }
.uj-card { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 14px; border-radius: 18px; background: radial-gradient(120% 100% at 50% 0%, #1d5c63, #0b2430); border: 1px solid rgba(110, 231, 220, .5); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.uj-card b { font-size: clamp(24px, 7vw, 34px); letter-spacing: .02em; } .uj-card small { color: var(--muted); font-weight: 700; }
.uj-role { font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 2px 10px; border-radius: 99px; background: rgba(110, 231, 220, .22); text-transform: uppercase; }
.uj-card.imp { background: radial-gradient(120% 100% at 50% 0%, #7a1d3b, #2a0a18); border-color: rgba(255, 107, 138, .6); } .uj-card.imp .uj-role { background: rgba(255, 107, 138, .28); }
.uj-card.win { border-color: #7be8b8; } .uj-card.lose { border-color: rgba(255, 141, 164, .6); }
.uj-note, .uj-wait { margin: 0; text-align: center; color: var(--muted); font-weight: 700; }
.uj-seats { display: grid; gap: 6px; } .uj-seat { display: grid; grid-template-columns: auto 64px 1fr; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 2px solid transparent; }
.uj-seat i { font-style: normal; font-weight: 800; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uj-seat.turn { border-color: #ffe08a; background: rgba(246, 200, 105, .14); }
.uj-clues { display: flex; flex-wrap: wrap; gap: 5px; } .uj-clues span { padding: 3px 10px; border-radius: 99px; background: rgba(110, 231, 220, .2); font-weight: 800; font-size: 14px; animation: asPop .35s cubic-bezier(.2, 1.4, .3, 1); } .uj-clues .dots { background: transparent; animation: asPulse 1.2s ease-in-out infinite; }
.uj-form { display: flex; gap: 8px; } .uj-form input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; border: 2px solid #6ee7dc; background: rgba(0, 0, 0, .28); padding: 0 12px; font-size: 17px; color: inherit; font-weight: 700; }
.uj-vote { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.uj-pick { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); color: inherit; font-weight: 800; }
.uj-pick i { font-style: normal; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; } .uj-pick b { position: absolute; top: 4px; right: 6px; color: #7be8b8; }
.uj-pick:not(:disabled):active { transform: scale(.97); } .uj-pick.on { border-color: #ffe08a; background: rgba(246, 200, 105, .22); } .uj-pick:disabled:not(.on) { opacity: .6; }
.uj-tally { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; } .uj-tally span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); font-size: 12px; } .uj-tally span.imp { background: rgba(255, 107, 138, .25); } .uj-tally i { font-style: normal; font-weight: 700; } .uj-tally em { font-style: normal; color: #7be8b8; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .uj-clues span, .uj-clues .dots { animation: none; } }
/* Gornji dio društvenih igara: jedan red naslova i dugmadi, ispod njega ravnomjeran red igrača */
.party { gap: 8px; padding-top: calc(6px + env(safe-area-inset-top)); }
.party-top { flex-wrap: nowrap; gap: 6px; min-height: 34px; }
.party-title { flex: 1 1 auto; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party-top .leave-btn { margin: 0; flex: none; min-height: 32px; padding: 0 10px; font-size: 13px; }
@media (max-width: 420px) { .party-top .leave-btn:not(.hint-btn) span { display: none; } .party-top .leave-btn:not(.hint-btn) { width: 32px; padding: 0; justify-content: center; } }
.party > .pills { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.party > .pills .pill { min-width: 0; padding: 3px 8px 3px 3px; gap: 5px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.party > .pills .pill.you { border-color: rgba(var(--gold-rgb), .7); background: rgba(var(--gold-rgb), .13); }
.party > .pills .av { flex: none; width: 26px; height: 26px; }
.party > .pills .pn { display: grid; min-width: 0; line-height: 1.1; }
.party > .pills .pn i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party > .pills .pn b { margin: 0; padding: 0; font-size: 15px; color: var(--gold-hi); }
.party > .pills[data-n="5"] .pn i, .party > .pills[data-n="6"] .pn i { font-size: 10px; }
@media (max-width: 420px) { .party > .pills[data-n="5"] .av, .party > .pills[data-n="6"] .av { display: none; } .party > .pills[data-n="5"] .pill, .party > .pills[data-n="6"] .pill { padding: 3px 7px; } }
.party-stage { padding: 12px; }
.dg-head { gap: 8px; }
/* Statusi igrača pri dnu igre: ravnomjerna mreža, sve centrirano */
.kl-who, .uj-tally { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; justify-content: stretch; width: 100%; max-width: 460px; margin: 4px auto 0; }
.kl-chip, .uj-tally span { display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; padding: 7px 4px 6px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); text-align: center; line-height: 1.15; }
.kl-chip i, .uj-tally i { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-style: normal; font-weight: 700; }
.kl-chip b, .uj-tally b { font-size: 12px; font-weight: 800; }
.kl-chip.ok { border-color: rgba(79, 227, 176, .55); } .kl-chip.bad { border-color: rgba(255, 107, 138, .55); }
.uj-tally b { font-size: 16px; color: var(--gold-hi); } .uj-tally span.imp { border-color: rgba(255, 107, 138, .6); } .uj-tally em { font-size: 12px; }
@media (max-width: 420px) { .kl-chip, .uj-tally span { padding: 6px 2px 5px; } .kl-chip b { font-size: 11px; white-space: nowrap; } }
/* Država Grad Rijeka: tabela rezultata staje u širinu bez klizanja */
.dg-table { overflow: visible; font-size: 12px; }
.dg-tr { grid-auto-columns: minmax(0, 1fr); grid-template-columns: 58px; text-align: center; }
.dg-tr > span { padding: 5px 3px; display: grid; align-content: center; justify-items: center; min-height: 34px; overflow-wrap: anywhere; line-height: 1.15; }
.dg-th > span { font-size: 12px; overflow: hidden; white-space: nowrap; } .dg-cat { font-size: 11px; justify-items: start !important; text-align: left; }
.dg-cell b { position: static; font-size: 10px; margin-top: 1px; opacity: .8; } .dg-cell.p0 b { display: none; }
.dg-sum > span { font-weight: 800; }
/* Vješala: sve staje na ekran bez klizanja */
.vj { gap: 8px; } .vj-main { flex-wrap: nowrap; gap: 10px; align-items: center; }
.vj-gal { width: min(128px, 34vw); } .vj-side { flex: 1 1 0; gap: 6px; } .vj-cat { display: none; }
.vj-c { height: 38px; font-size: 21px; } .vj-k { height: 40px; }
.vj-kb { gap: 5px; } .vj-who { min-height: 0; font-size: 14px; }
