/* ========== Tokens ========== */
:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --surface-2: #ECEEF1;
  --ink: #0F1115;
  --ink-2: #4B5160;
  --ink-3: #8A90A0;
  --line: rgba(15, 17, 21, .08);
  --line-2: rgba(15, 17, 21, .16);
  --accent: #FF5B2E;
  --accent-2: #E8481C;
  --accent-soft: #FFEDE6;
  --on-accent: #fff;
  --good: #10A263;
  --ok: #D9A400;
  --meh: #EE8424;
  --bad: #E0464C;
  --good-soft: #DDF6EA;
  --bad-soft: #FDE4E5;
  --hero-bg: #0F1115;
  --hero-fg: #FFFFFF;
  --ambient: none;
  --card-hi: 0 0 #0000;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 14px 34px -18px rgba(16, 24, 40, .22);
  --shadow-lg: 0 30px 60px -30px rgba(16, 24, 40, .45);
  --r: 22px;
  --r-sm: 14px;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0C11; --surface: #171A22; --surface-2: #242834; --ink: #F7F8FB; --ink-2: #D2D6E0; --ink-3: #A2A8B7;
    --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .24);
    --accent: #FF7447; --accent-2: #FF9470; --accent-soft: rgba(255, 116, 71, .18);
    --good: #2BD48A; --ok: #F5C542; --meh: #FF9F43; --bad: #FF5C63;
    --good-soft: rgba(43, 212, 138, .18); --bad-soft: rgba(255, 92, 99, .18);
    --hero-bg: #1A1E29; --hero-fg: #F2F3F7;
    --ambient: radial-gradient(1100px 560px at 85% -8%, rgba(255, 107, 61, .13), transparent 60%), radial-gradient(900px 520px at -10% 8%, rgba(99, 102, 241, .10), transparent 60%);
    --card-hi: inset 0 1px 0 rgba(255, 255, 255, .08);
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -24px rgba(0, 0, 0, .9);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .95);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0B0C11; --surface: #171A22; --surface-2: #242834; --ink: #F7F8FB; --ink-2: #D2D6E0; --ink-3: #A2A8B7;
    --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .24);
    --accent: #FF7447; --accent-2: #FF9470; --accent-soft: rgba(255, 116, 71, .18);
    --good: #2BD48A; --ok: #F5C542; --meh: #FF9F43; --bad: #FF5C63;
    --good-soft: rgba(43, 212, 138, .18); --bad-soft: rgba(255, 92, 99, .18);
    --hero-bg: #1A1E29; --hero-fg: #F2F3F7;
    --ambient: radial-gradient(1100px 560px at 85% -8%, rgba(255, 107, 61, .13), transparent 60%), radial-gradient(900px 520px at -10% 8%, rgba(99, 102, 241, .10), transparent 60%);
    --card-hi: inset 0 1px 0 rgba(255, 255, 255, .08);
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -24px rgba(0, 0, 0, .9);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .95);
    color-scheme: dark;
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; } /* šírka stránky sa nemení, keď sa objaví posuvník */
body {
  margin: 0; min-height: 100dvh; background: var(--ambient), var(--bg); background-attachment: fixed; color: var(--ink);
  font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ========== Top bar ========== */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter); padding-top: max(12px, env(safe-area-inset-top));
  background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-tag { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--hero-bg); box-shadow: var(--card-hi), 0 0 0 1px var(--line); transform: rotate(-8deg); transition: transform .3s var(--ease); }
.brand:hover .brand-tag { transform: rotate(4deg) scale(1.05); }
.brand-tag svg { width: 22px; height: 22px; fill: var(--accent); }
.brand-tag svg circle { fill: var(--hero-bg); }
.brand-name { font: 700 21px/1 var(--font-display); letter-spacing: -.03em; }
.brand-name b { color: var(--accent); font-weight: 800; }
.topnav { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; transition: transform .15s, background .15s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.streak-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-variant-numeric: tabular-nums;
}

main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 8px var(--gutter) 64px; flex: 1 0 auto; display: flex; flex-direction: column; }
main > * { width: 100%; }
main > :has(+ .footer) { margin-bottom: 72px; }
/* pätička vždy dole – aj na krátkych stránkach */
body { display: flex; flex-direction: column; }
.boot { display: grid; place-items: center; min-height: 60vh; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.noscript { text-align: center; padding: 40px; }

/* ========== Buttons ========== */
.btn {
  --b: var(--ink); --c: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 16px; background: var(--b); color: var(--c); font-weight: 700; font-size: 17px;
  text-decoration: none; transition: transform .15s var(--ease), box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-accent { --b: var(--accent); --c: var(--on-accent); }
.btn-accent:hover { --b: var(--accent-2); }
.btn-ghost { --b: var(--surface); --c: var(--ink); border: 1px solid var(--line-2); }
.btn-block { width: 100%; }
.btn-lg { min-height: 60px; font-size: 19px; border-radius: 18px; }
kbd { font: 600 12px var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid currentColor; opacity: .55; }

/* ========== Home ========== */
.hero { display: grid; gap: 28px; grid-template-columns: 1.1fr .9fr; align-items: stretch; margin-top: 16px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); font-weight: 800; margin: 14px 0 18px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .26em; z-index: -1;
  background: var(--accent); opacity: .85; border-radius: 4px; transform: skew(-12deg) rotate(-1.5deg);
}
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 30em; margin: 0; }
.hero-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; max-width: 560px; margin-top: 28px; }
.stat { min-width: 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(18px, 2vw, 24px)/1.1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.25; color: var(--ink-3); }

.daily-card {
  position: relative; overflow: hidden; border-radius: 30px; padding: 28px; min-height: 380px;
  background: var(--hero-bg); color: var(--hero-fg); display: flex; flex-direction: column; box-shadow: var(--shadow-lg), var(--card-hi); isolation: isolate; border: 1px solid var(--line);
}
.daily-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background:
    radial-gradient(120% 90% at 110% 0%, color-mix(in oklab, var(--accent) 70%, transparent) 0, transparent 55%),
    radial-gradient(80% 70% at -10% 110%, color-mix(in oklab, var(--accent) 35%, transparent) 0, transparent 60%);
}
.daily-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.daily-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: color-mix(in oklab, var(--hero-fg) 12%, transparent); font-weight: 700; font-size: 14px; }
.daily-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 35%, transparent); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.daily-no { font: 800 15px var(--font-display); opacity: .6; }
.daily-card h2 { font-size: clamp(34px, 4vw, 48px); font-weight: 800; margin: auto 0 10px; padding-top: 30px; letter-spacing: -.035em; }
.daily-card p { margin: 0 0 22px; opacity: .72; }
.daily-tags { position: absolute; right: -44px; top: 58px; display: grid; gap: 10px; transform: rotate(-12deg); z-index: -1; opacity: .95; pointer-events: none; }
.ptag {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 10px 999px 999px 10px;
  background: var(--hero-fg); color: var(--hero-bg); font: 800 22px var(--font-display); font-variant-numeric: tabular-nums; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.ptag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--hero-bg); opacity: .9; }
.ptag:nth-child(2) { margin-left: 50px; background: var(--accent); color: #fff; animation-delay: -2s; }
.ptag:nth-child(2)::before { background: rgba(255,255,255,.8); }
.ptag:nth-child(3) { margin-left: 16px; animation-delay: -4s; font-size: 18px; opacity: .8; }
@keyframes float { 50% { transform: translateY(-8px); } }
.daily-card .btn { --b: var(--hero-fg); --c: var(--hero-bg); }
.daily-card .btn-accent { --b: var(--accent); --c: #fff; }
.daily-done { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.daily-done .big { font: 800 56px/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.daily-done .big small { font-size: 20px; opacity: .55; font-weight: 700; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; opacity: .75; font-size: 14px; }
.daily-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.daily-actions .btn { flex: 1; }

.section { margin-top: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-head p { margin: 6px 0 0; color: var(--ink-3); }

.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; min-height: 230px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.mode-card:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: var(--shadow); border-color: var(--line-2); }
.mode-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px; background: var(--c, var(--accent-soft)); margin-bottom: auto; transition: transform .3s var(--ease); }
.mode-card:hover .mode-ico { transform: scale(1.08) rotate(-6deg); }
.mode-card h3 { font-size: 23px; font-weight: 800; margin-top: 18px; }
.mode-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.mode-meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-3); margin-top: 6px; }
.mode-meta .go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: transform .25s var(--ease), background .2s; }
.mode-card:hover .go { transform: translateX(3px); background: var(--accent); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.how { display: grid; gap: 18px; }
.how-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.how-step .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); font: 800 19px var(--font-display); }
.how-step h3 { font-size: 19px; margin: 2px 0 4px; }
.how-step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.scale-table { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.scale-table div { padding: 12px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.scale-table b { display: block; font: 800 20px var(--font-display); }
.scale-table span { font-size: 13px; color: var(--ink-3); }

/* ========== Leaderboard ========== */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--surface-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.board-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 16px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.board li.me { border-color: var(--accent); background: var(--accent-soft); }
.board .rk { font: 800 17px var(--font-display); text-align: center; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.board li:nth-child(-n+3) .rk { font-size: 22px; }
.board .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .nm small { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.board .sc { font: 800 18px var(--font-display); font-variant-numeric: tabular-nums; }
.board-empty { padding: 36px 16px; text-align: center; color: var(--ink-3); border: 1.5px dashed var(--line-2); border-radius: var(--r); }
.board-sep { text-align: center; color: var(--ink-3); background: none !important; border: 0 !important; padding: 0 !important; display: block !important; }

.page-head { margin: 24px 0 28px; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; }
.page-head p { margin: 8px 0 0; color: var(--ink-2); }

/* ========== Game ========== */
.game { max-width: 1120px; margin: 0 auto; }
.game-bar { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.game-bar .title { font: 800 18px var(--font-display); white-space: nowrap; }
.pips { display: flex; gap: 6px; flex: 1; justify-content: center; }
.pip { position: relative; flex: 1; max-width: 56px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pip.cur { background: var(--line-2); }
.pip.cur::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; animation: pipfill 1.2s var(--ease) forwards; opacity: .35; }
@keyframes pipfill { from { transform: scaleX(0); } }
.pip.s4 { background: var(--good); } .pip.s3 { background: var(--ok); } .pip.s2 { background: var(--meh); } .pip.s1 { background: var(--bad); }
.game-score { font: 800 18px var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.game-score small { color: var(--ink-3); font-weight: 600; font-size: 14px; }

.stage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); gap: 24px; align-items: start; }
.stage.enter > * { animation: rise .5s var(--ease) both; }
.stage.enter > *:nth-child(2) { animation-delay: .07s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.media { position: relative; border-radius: 26px; overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .45s, transform .9s var(--ease); }
.media img.loaded { opacity: 1; transform: none; }
.media .skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--surface) 60%, transparent) 50%, transparent 70%) var(--surface-2); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.media .chip-row { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.glass { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; color: #fff; background: rgba(15, 13, 10, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.media .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #111; display: grid; place-items: center; }
.media .nav.prev { left: 12px; } .media .nav.next { right: 12px; }
.media .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.media .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.media .dots i.on { background: #fff; }

.info { margin-top: 18px; }
.info h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.info .loc { display: flex; align-items: center; gap: 6px; color: var(--ink-2); margin-top: 8px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 16px; }
.fact { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.fact .icon { color: var(--accent); width: 20px; height: 20px; }
.fact div { min-width: 0; }
.fact small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; line-height: 1.2; }
.fact b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.panel { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
.panel-label { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--ink-3); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.price-field { position: relative; display: flex; align-items: baseline; gap: 6px; margin: 10px 0 18px; padding: 8px 4px 10px; border-bottom: 3px solid var(--ink); }
.price-field input { width: 100%; min-width: 0; border: 0; background: none; outline: none; padding: 0; font: 800 clamp(40px, 5vw, 54px)/1.05 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.price-field .cur { font: 800 32px var(--font-display); color: var(--ink-3); }
.price-field:focus-within { border-bottom-color: var(--accent); }
.price-hint { font-size: 13px; color: var(--ink-3); margin: -10px 0 16px; min-height: 1.4em; }

.range { position: relative; height: 44px; margin: 0 2px; }
.range input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: grab; z-index: 2; touch-action: none; }
.range input:active { cursor: grabbing; }
.range .track { position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.range .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 45%, transparent), var(--accent)); border-radius: 99px; }
.range .thumb { position: absolute; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.18); transition: transform .15s; pointer-events: none; }
.range input:focus-visible ~ .thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
.range input:active ~ .thumb { transform: scale(1.15); }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.nudges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 18px; }
.nudges button { min-height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: none; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.nudges button:hover { background: var(--surface-2); }
.nudges button:active { transform: scale(.96); }
.panel .kbd-hint { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 10px; }

/* Reveal */
.reveal { animation: rise .4s var(--ease) both; }
.reveal-score { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reveal-score .pts { font: 800 64px/1 var(--font-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--tier); }
.reveal-score .pts small { font-size: 22px; letter-spacing: 0; }
.verdict { display: inline-flex; padding: 8px 14px; border-radius: 99px; font-weight: 800; background: color-mix(in oklab, var(--tier) 16%, transparent); color: var(--tier); animation: pop .5s .85s var(--ease) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.t4 { --tier: var(--good); } .t3 { --tier: var(--ok); } .t2 { --tier: var(--meh); } .t1 { --tier: var(--bad); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 8px; }
.compare div { padding: 14px; border-radius: 16px; background: var(--surface-2); }
.compare div.actual { background: var(--ink); color: var(--bg); }
.compare small { display: block; font-size: 12px; font-weight: 700; opacity: .65; text-transform: uppercase; letter-spacing: .05em; }
.compare b { display: block; font: 800 24px/1.2 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.compare .diff { font-size: 13px; font-weight: 700; }
.scale { position: relative; height: 64px; margin: 18px 6px 4px; }
.scale .line { position: absolute; left: 0; right: 0; top: 30px; height: 4px; border-radius: 4px; background: var(--surface-2); }
.scale .gap { position: absolute; top: 28px; height: 8px; border-radius: 8px; background: var(--tier); opacity: .35; transition: left .8s var(--ease), width .8s var(--ease); }
.scale .mk { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: left .8s var(--ease); font-size: 11px; font-weight: 800; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.scale .mk i { width: 18px; height: 18px; border-radius: 50%; margin-top: 3px; border: 3px solid var(--ink); background: var(--surface); }
.scale .mk.act { top: auto; bottom: -2px; flex-direction: column-reverse; }
.scale .mk.act i { background: var(--tier); border-color: var(--tier); margin: 0 0 3px; }
.extra { display: grid; gap: 6px; margin: 14px 0 18px; font-size: 14px; color: var(--ink-2); }
.extra div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.extra div:last-child { border-bottom: 0; }
.extra b { color: var(--ink); font-variant-numeric: tabular-nums; }
.extra a { font-weight: 700; color: var(--accent-2); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }

/* Duel & ratio */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.vs-mid { display: grid; place-items: center; }
.vs-mid span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 800 18px var(--font-display); transform: rotate(-8deg); }
.choice {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border-radius: 26px; overflow: hidden;
  border: 2px solid var(--line); background: var(--surface); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
button.choice:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow); }
button.choice:active { transform: translateY(0) scale(.99); }
.choice .media { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.choice .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.choice h3 { font-size: 21px; font-weight: 800; }
.choice .sub { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.choice .mini-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.choice .mini-facts span { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.choice .cta { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--accent-2); display: flex; align-items: center; gap: 6px; }
.choice .price-reveal { font: 800 30px var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: auto; padding-top: 6px; }
.choice.win { border-color: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }
.choice.lose { opacity: .75; }
.choice.picked::after { content: "Tvoja voľba"; position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 13px; }
.duel-q { text-align: center; margin: 0 0 20px; }
.duel-q h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.duel-q p { margin: 6px 0 0; color: var(--ink-3); }
.duel-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.duel-result { font: 800 22px var(--font-display); }
.ratio-panel { max-width: 640px; margin: 24px auto 0; }
.ratio-val { font: 800 clamp(48px, 7vw, 72px)/1 var(--font-display); letter-spacing: -.04em; text-align: center; margin: 6px 0 18px; font-variant-numeric: tabular-nums; }
.ratio-val small { color: var(--ink-3); font-size: .5em; }

/* Results */
.results { max-width: 760px; margin: 0 auto; text-align: center; }
.results .medal { font-size: 64px; line-height: 1; margin-top: 12px; animation: pop .6s var(--ease) both; }
.results h1 { font-size: clamp(56px, 10vw, 104px); font-weight: 800; letter-spacing: -.05em; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.results h1 small { font-size: .3em; color: var(--ink-3); letter-spacing: 0; }
.results .rank-title { font: 800 24px var(--font-display); color: var(--accent-2); margin-top: 6px; }
.results .emoji-row { font-size: 30px; letter-spacing: 4px; margin: 18px 0 6px; }
.results-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0 8px; }
.submit-box { margin: 26px auto 0; padding: 20px; text-align: left; }
.submit-box h3 { font-size: 20px; margin-bottom: 4px; }
.submit-box p { margin: 0 0 14px; color: var(--ink-3); font-size: 14px; }
.submit-row { display: flex; gap: 8px; }
.submit-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); font-weight: 700; font-size: 17px; outline: none; }
.submit-row input:focus { border-color: var(--accent); }
.rank-done { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rank-done b { font: 800 30px var(--font-display); }
.breakdown { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; text-align: left; }
.breakdown li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.breakdown img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.breakdown .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown .d { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.breakdown .p { font: 800 20px var(--font-display); font-variant-numeric: tabular-nums; color: var(--tier); padding-right: 8px; }
.breakdown .ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--surface-2); font-size: 26px; }

/* Toast & confetti */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); max-width: calc(100vw - 32px); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

.error-box { max-width: 520px; margin: 60px auto; text-align: center; }
.error-box h2 { font-size: 32px; margin-bottom: 10px; }
.error-box p { color: var(--ink-2); margin-bottom: 20px; }
.footer { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; color: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }

/* horný odlesk kariet (v tmavom režime) */
.card, .panel, .mode-card, .stat, .fact, .board li, .choice, .breakdown li, .icon-btn { box-shadow: var(--card-hi); }
.panel { box-shadow: var(--shadow), var(--card-hi); }
.mode-card:hover { box-shadow: var(--shadow), var(--card-hi); }

/* ========== Reklama ========== */
.spot { margin: 48px 0 0; text-align: center; }
.results .spot { margin: 24px 0; }
.spot-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.spot-ph { display: grid; place-items: center; min-height: 100px; border: 2px dashed var(--line-2); border-radius: var(--r-sm); color: var(--ink-3); font-weight: 600; background: var(--surface-2); }
.spot-home { max-width: none; }
.spot-home .spot-ph { min-height: 120px; }
.spot img { margin: 0 auto; border-radius: var(--r-sm); height: auto; }

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; }
  .modes { grid-template-columns: repeat(2, 1fr); }
  .stage { grid-template-columns: 1fr; gap: 16px; }
  /* na mobile je tipovací panel prilepený dole ako bottom sheet */
  .panel {
    position: sticky; top: auto; bottom: 0; z-index: 5; margin: 0 calc(var(--gutter) * -1) -64px;
    border-radius: 26px 26px 0 0; border-bottom: 0; padding-bottom: max(18px, env(safe-area-inset-bottom));
    box-shadow: 0 -16px 40px -18px rgba(0, 0, 0, .35);
  }
  .kbd-hint { display: none; }
  .daily-card { min-height: 340px; }
}
@media (max-width: 640px) {
  .topbar { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; }
  .brand-name { font-size: 19px; }
  .hero { margin-top: 4px; gap: 22px; }
  .hero h1 { margin: 10px 0 12px; }
  .modes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mode-card { min-height: 0; padding: 16px; gap: 6px; }
  .mode-card h3 { font-size: 19px; margin-top: 12px; }
  .mode-card p { font-size: 13.5px; }
  .mode-ico { width: 44px; height: 44px; font-size: 22px; border-radius: 13px; }
  .mode-meta .go { display: none; }
  .daily-card { padding: 22px; border-radius: 26px; }
  .daily-tags { right: -60px; top: 60px; transform: rotate(-12deg) scale(.8); }
  .section { margin-top: 48px; }
  .game-bar .title { display: none; }
  .media { border-radius: 20px; margin: 0 calc(var(--gutter) * -1 + 8px); }
  .panel { padding: 16px 18px; }
  .price-field { margin: 4px 0 14px; padding: 4px 2px 6px; }
  .price-field input { font-size: 38px; }
  .price-field .cur { font-size: 26px; }
  .price-hint { margin: -8px 0 6px; }
  .range { height: 40px; }
  .nudges { margin: 10px 0 12px; }
  .nudges button { min-height: 36px; }
  .reveal-score .pts { font-size: 46px; }
  .compare { margin: 12px 0 4px; }
  .compare b { font-size: 20px; }
  .extra { margin: 8px 0 12px; }
  .hero-stats { gap: 6px; }
  .stat { padding: 10px 8px; }
  .stat b { font-size: clamp(15px, 4.4vw, 19px); }
  .stat span { font-size: 11.5px; display: block; line-height: 1.25; }
  .versus { grid-template-columns: 1fr; gap: 10px; }
  .vs-mid { margin: -24px 0; z-index: 2; }
  .vs-mid span { width: 46px; height: 46px; font-size: 15px; }
  .choice { flex-direction: row; border-radius: 20px; }
  .choice .media { width: 40%; aspect-ratio: auto; min-height: 150px; }
  .choice .body { padding: 12px 14px; gap: 6px; }
  .choice h3 { font-size: 17px; }
  .choice .mini-facts span { font-size: 12px; padding: 3px 8px; }
  .choice .price-reveal { font-size: 22px; }
  .choice .cta { font-size: 14px; }
  .choice.picked::after { top: 8px; right: auto; left: 8px; font-size: 11px; padding: 4px 8px; }
  .scale-table { grid-template-columns: repeat(2, 1fr); }
  .breakdown li { grid-template-columns: 52px 1fr auto; gap: 10px; }
  .breakdown img, .breakdown .ico { width: 52px; height: 52px; }
  .reveal-score .pts { font-size: 54px; }
}
@media (max-width: 380px) {
  .modes { grid-template-columns: 1fr; }
  .nudges { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* pastelové ikony režimov stlmené v tmavom režime */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mode-ico { background: color-mix(in oklab, var(--c, var(--accent)) 16%, transparent); }
}
:root[data-theme="dark"] .mode-ico { background: color-mix(in oklab, var(--c, var(--accent)) 16%, transparent); }

/* ========== SVG ikony namiesto emoji ========== */
.mode-ico .icon { width: 26px; height: 26px; color: var(--ic, var(--accent)); stroke-width: 2.2; }
.streak-pill .icon, .stat .flame { color: var(--accent); fill: color-mix(in oklab, var(--accent) 25%, transparent); }
.stat b { display: flex; align-items: center; gap: 4px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; }
.seg button .icon { width: 16px; height: 16px; }
.game-bar .title { display: inline-flex; align-items: center; gap: 8px; }
.game-bar .title .icon { color: var(--accent); }
.choice .sub { display: inline-flex; align-items: center; gap: 6px; }
.choice .sub .icon { color: var(--accent); width: 16px; height: 16px; }
.duel-result { display: inline-flex; align-items: center; gap: 8px; }
.duel-result .icon { width: 26px; height: 26px; stroke-width: 3; }
.board-empty .icon { width: 30px; height: 30px; color: var(--ink-3); margin-bottom: 6px; }
.rank-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 15px var(--font-display); color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35); }
.rank-badge.m1 { background: linear-gradient(145deg, #FFD54A, #E0A100); color: #5A3E00; }
.rank-badge.m2 { background: linear-gradient(145deg, #E3E7EE, #A2AAB8); color: #2F3642; }
.rank-badge.m3 { background: linear-gradient(145deg, #F0B27A, #C07034); color: #4A2508; }
.results .medal { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 30px; margin-top: 16px; --m: var(--ink-3); background: color-mix(in oklab, var(--m) 16%, transparent); color: var(--m); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--m) 30%, transparent); transform: rotate(-6deg); }
.results .medal .icon { width: 50px; height: 50px; stroke-width: 1.8; }
.results .medal.gold { --m: #E0A100; } .results .medal.silver { --m: #8D97A8; } .results .medal.bronze { --m: #C07034; }
.sq-row { display: flex; gap: 6px; justify-content: center; margin: 18px 0 6px; }
.sq { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--tier); color: #fff; animation: pop .4s var(--ease) both; }
.sq:nth-child(2) { animation-delay: .06s; } .sq:nth-child(3) { animation-delay: .12s; } .sq:nth-child(4) { animation-delay: .18s; } .sq:nth-child(5) { animation-delay: .24s; }
.sq:nth-child(n+6) { animation-delay: .3s; }
.sq .icon { width: 18px; height: 18px; stroke-width: 3; }
.breakdown .ico { color: var(--tier); }
.breakdown .ico .icon { width: 26px; height: 26px; stroke-width: 2.4; }
#soundBtn[aria-pressed="false"] { color: var(--ink-3); }

/* ========== Herný layout: galéria + bočný panel s mapou ========== */
.game-wide { max-width: 1440px; }
.game-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 6px 0 16px; }
.gb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gb-right { display: flex; justify-content: flex-end; gap: 8px; }
.game-bar .pips { width: min(280px, 36vw); flex: none; }
.pill { display: inline-flex; align-items: baseline; gap: 4px; padding: 9px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill small { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.pill b { font: 800 20px/1 var(--font-display); }
.pill.score { border-color: color-mix(in oklab, var(--good) 45%, transparent); background: color-mix(in oklab, var(--good) 10%, var(--surface)); }
.pill.score b, .pill.score small { color: var(--good); }
.timer { display: grid; justify-items: center; gap: 6px; min-width: 110px; }
.timer b { font: 800 34px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; transition: color .2s; }
.timer i { display: block; width: 100%; height: 5px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.timer i span { display: block; height: 100%; background: var(--good); transform-origin: left; transition: background .3s; }
.timer.low b { color: var(--bad); animation: beat 1s infinite; }
.timer.low i span { background: var(--bad); }
@keyframes beat { 50% { transform: scale(1.08); } }

.play { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; align-items: start; }
.play.enter > * { animation: rise .5s var(--ease) both; }
.play.enter > .side { animation-delay: .06s; }
.gallery { min-width: 0; }
.g-main { position: relative; border-radius: 24px; overflow: hidden; background: var(--surface-2); height: clamp(320px, calc(100dvh - 250px), 820px); box-shadow: var(--shadow); }
.g-main img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.g-main img.loaded { opacity: 1; }
.g-main .skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--surface) 60%, transparent) 50%, transparent 70%) var(--surface-2); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.g-main .chip-row { position: absolute; left: 14px; top: 14px; display: flex; gap: 8px; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(12, 14, 20, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.g-nav:hover { background: rgba(12, 14, 20, .8); transform: translateY(-50%) scale(1.06); }
.g-nav.prev { left: 14px; } .g-nav.next { right: 14px; }
.g-nav .icon { width: 22px; height: 22px; }
.g-count { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 10px; background: rgba(12, 14, 20, .6); color: #fff; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; backdrop-filter: blur(8px); }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.g-thumbs button { flex: none; width: 92px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-2); opacity: .6; transition: opacity .2s, border-color .2s; scroll-snap-align: start; }
.g-thumbs button:hover { opacity: .9; }
.g-thumbs button.on { opacity: 1; border-color: var(--accent); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; box-shadow: var(--card-hi); max-height: 340px; overflow: auto; scrollbar-width: thin; }
.info-card h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.i-sub { margin-top: 6px; color: var(--ink-2); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.i-place { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.i-place b { font-size: 17px; }
.region { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--accent-2); background: var(--accent-soft); }
.region .icon { width: 16px; height: 16px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.specs div { min-width: 0; }
.specs dt { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.specs dd { margin: 1px 0 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card { height: 210px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--card-hi); isolation: isolate; }
.map-card #map { width: 100%; height: 100%; }
.map-card .leaflet-container { background: #F2EFE9; font: 12px var(--font); }
.map-card .leaflet-control-attribution { background: rgba(255, 255, 255, .8); color: #6B7080; font-size: 10px; }
.map-card .leaflet-control-attribution a { color: #4B5160; }
.map-card .leaflet-control-zoom a { background: #fff; color: #0F1115; border-color: rgba(15, 17, 21, .12); }
.map-pin span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent), 0 4px 10px rgba(0,0,0,.35); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 16px transparent, 0 4px 10px rgba(0,0,0,.35); } 100% { box-shadow: 0 0 0 0 transparent, 0 4px 10px rgba(0,0,0,.35); } }
.side .panel { position: static; padding: 20px 22px; border-radius: 22px; }
.side .price-field { margin: 6px 0 14px; }
.side .price-field input { font-size: 44px; }

@media (max-width: 1100px) { .play { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 960px) {
  .play { grid-template-columns: 1fr; gap: 14px; }
  .g-main { height: auto; aspect-ratio: 4 / 3; }
  .info-card { max-height: none; }
  .side .panel {
    position: sticky; bottom: 0; z-index: 500; margin: 0 calc(var(--gutter) * -1) -64px;
    border-radius: 26px 26px 0 0; border-bottom: 0; padding-bottom: max(18px, env(safe-area-inset-bottom));
    box-shadow: 0 -16px 40px -18px rgba(0, 0, 0, .35);
  }
}
@media (max-width: 640px) {
  .game-bar { grid-template-columns: auto 1fr auto; gap: 10px; }
  .gb-left .title { display: none; }
  .game-bar .pips { width: 100%; }
  .pill { padding: 7px 10px; }
  .pill b { font-size: 17px; }
  .pill small { font-size: 10px; }
  .timer { min-width: 0; }
  .timer b { font-size: 26px; }
  .g-main { border-radius: 18px; margin: 0 calc(var(--gutter) * -1 + 6px); }
  .g-nav { width: 38px; height: 38px; }
  .g-thumbs button { width: 70px; height: 50px; }
  .map-card { height: 170px; }
  .side .price-field input { font-size: 36px; }
}
main:has(.game-wide), main.wide { max-width: 1480px; }
main.wide .game { max-width: 1440px; }
/* reklama počas hry – na desktope pod panelom v bočnom stĺpci (300×250), na mobile nad spodným panelom */
.side .spot { margin: 0; width: 100%; }
.side .spot-ph { min-height: 250px; }
.game .spot-game { margin-top: 32px; }
.side .spot-game { margin-top: 0; }
/* bočné pásy */
.rails .rail { position: fixed; top: 96px; z-index: 10; width: var(--rail-w, 160px); }
.rails .spot { margin: 0; }
.rails .spot-ph { min-height: min(600px, calc(100dvh - 130px)); }
body:not(.has-rails) .rails { display: none; }
/* keď sú bočné pásy, ďalšie bannery v obsahu nepridávame – nech to nie je prehnané */
body.has-rails .spot-game, body.has-rails .spot-results { display: none; }
@media (max-width: 960px) {
  .side .spot { order: 1; }
  .side .panel { order: 2; }
  .side .spot-ph { min-height: 100px; }
}

/* mapa: zväčšenie pri hover / tlačidlom */
.map-card { position: relative; z-index: 30; height: 210px; overflow: visible; border: 0; background: none; box-shadow: none; }
.map-box {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 100%;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--card-hi);
  transition: width .35s var(--ease), height .35s var(--ease), box-shadow .35s; transition-delay: 0s;
}
.map-box #map { width: 100%; height: 100%; }
.map-expand {
  position: absolute; top: 10px; right: 10px; z-index: 1000; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.map-expand .icon { width: 16px; height: 16px; }
.map-box.big { width: 100%; height: 380px; box-shadow: var(--shadow-lg); }
@media (hover: hover) and (min-width: 961px) {
  .map-expand { display: none; }
  .map-card:hover .map-box, .map-box.big {
    width: min(760px, calc(100vw - 120px)); height: min(500px, calc(100dvh - 140px));
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-2); transition-delay: .15s;
  }
}
@media (max-width: 640px) { .map-card { height: 170px; } }

/* v hrubom reze Bricolage je mäkčeň nad ľ takmer neviditeľný – menšia optická veľkosť ho zvýrazní */
.lc { font-variation-settings: 'opsz' 12; }

/* ========== Hra s kamarátmi ========== */
.party-cta { flex-direction: row; align-items: center; gap: 20px; min-height: 0; margin-top: 16px; }
.party-cta .mode-ico { margin: 0; flex: none; }
.party-cta > div:nth-child(2) { flex: 1; min-width: 0; }
.party-cta h3 { margin-top: 0; }
.party-cta .mode-meta { margin: 0; gap: 14px; }
.party-form { max-width: 640px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.field input { height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); font-weight: 700; font-size: 18px; outline: none; }
.field input:focus { border-color: var(--accent); }
.party-modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.party-mode { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--bg); }
.party-mode .mode-ico { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; margin: 0; }
.party-mode small { color: var(--ink-3); }
.party-mode[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.room { max-width: 760px; margin: 0 auto; }
.room-code { display: inline-block; padding: 0 .25em; border-radius: .2em; background: var(--accent-soft); color: var(--accent-2); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.room-share { display: flex; gap: 10px; margin-bottom: 36px; }
.room-share input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg); font-weight: 600; outline: none; }
.room-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.room-players li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.room-players li.me { border-color: var(--accent); background: var(--accent-soft); }
.room-players li.off { opacity: .55; }
.room-players small { color: var(--ink-3); font-weight: 600; }
.room-players .st { font-size: 14px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.room-players .st.ok { color: var(--good); }
.room-players .st .icon { width: 16px; height: 16px; stroke-width: 3; }
.av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; font: 800 15px var(--font-display); color: #fff; background: hsl(var(--h, 20) 65% 50%); }
.room-actions { margin-top: 24px; text-align: center; }
.room-actions .muted { margin: 10px 0 0; }
.room-wait-note { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 600; margin: 12px 0 0; }
.room-wait-note .spinner { width: 18px; height: 18px; border-width: 2.5px; }
.room-wait { display: grid; gap: 6px; }
.room-wait > b { font: 800 clamp(34px, 4vw, 44px)/1.1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.room-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: -6px 0 14px; }
.room-strip small { margin-left: 6px; color: var(--ink-3); font-weight: 700; }
.room-strip .rs { position: relative; opacity: .45; transition: opacity .3s; }
.room-strip .rs.ok { opacity: 1; }
.room-strip .rs.me .av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.room-strip .rs .av { width: 30px; height: 30px; font-size: 13px; }
.room-strip .rs > .icon { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--good); color: #fff; stroke-width: 4; }
.room-reveal { max-width: 860px; margin: 0 auto; }
.rr-truth { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.rr-img { width: 140px; height: 100px; object-fit: cover; border-radius: 14px; flex: none; }
.rr-main { display: grid; gap: 2px; min-width: 0; }
.rr-main small { color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-main a { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.rr-main a .icon { width: 14px; height: 14px; }
.rr-price { font: 800 clamp(36px, 5vw, 52px)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.rr-truth.pair { display: grid; grid-template-columns: 1fr auto 1fr; }
.rr-side { display: grid; gap: 4px; min-width: 0; padding: 8px; border-radius: 16px; border: 2px solid transparent; }
.rr-side.win { border-color: var(--good); background: var(--good-soft); }
.rr-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.rr-side small { color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-side b { font: 800 24px var(--font-display); font-variant-numeric: tabular-nums; }
.rr-vs { font: 800 20px var(--font-display); color: var(--ink-3); text-align: center; }
.rr-vs b { color: var(--accent-2); font-size: 30px; }
.rr-head, .room-results li { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.2fr) 70px 70px; gap: 12px; align-items: center; }
.rr-head { padding: 0 14px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rr-head span:first-child { grid-column: span 2; }
.rr-head span:nth-child(n+3) { text-align: right; }
.room-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.room-results li { padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.room-results li.me { border-color: var(--accent); }
.room-results .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-results .nm small, .room-results .gs small { color: var(--ink-3); font-weight: 600; }
.room-results .gs { text-align: right; display: inline-flex; justify-content: flex-end; align-items: center; gap: 6px; white-space: nowrap; }
.room-results .gs .icon { width: 18px; height: 18px; stroke-width: 3; }
.room-results .p { text-align: right; color: var(--tier, var(--ink-3)); }
.room-results .tt { text-align: right; font: 800 18px var(--font-display); }
.room-results li.t4 { --tier: var(--good); } .room-results li.t3 { --tier: var(--ok); } .room-results li.t2 { --tier: var(--meh); } .room-results li.t1 { --tier: var(--bad); }
.rr-foot { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.room-final .board { text-align: left; margin-top: 20px; }
@media (max-width: 640px) {
  .party-cta { flex-wrap: wrap; gap: 12px; }
  .party-cta .mode-meta { width: 100%; justify-content: space-between; }
  .party-modes { grid-template-columns: 1fr; }
  .room-share { flex-direction: column; }
  .rr-img { width: 96px; height: 72px; }
  .rr-head { display: none; }
  .room-results li { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 2px; }
  .room-results .gs { grid-column: 2; grid-row: 2; justify-content: flex-start; font-size: 14px; }
  .room-results .p { grid-column: 3; grid-row: 1; }
  .room-results .tt { grid-column: 3; grid-row: 2; font-size: 15px; }
}

/* ========== Vlastné bannery (house ads) – vizuál podľa webov klientov ========== */
.hb { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 220px; padding: 32px 40px; border-radius: var(--r); text-align: left; text-decoration: none; color: #fff; background: #111 center / cover no-repeat; transition: transform .3s var(--ease), box-shadow .3s; }
.hb:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .6); }
.hb-copy { display: grid; justify-items: start; gap: 10px; max-width: 580px; }
.hb-copy .hb-cta { margin-top: 8px; }
.hb-logo { display: block; width: auto; height: 22px; margin: 0 0 6px !important; border-radius: 0 !important; }
.hb-kicker { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.hb-title { display: block; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; }
.hb-text { font-size: 14px; line-height: 1.5; opacity: .85; }
.hb-cta { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 99px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; transition: transform .25s var(--ease); }
.hb:hover .hb-cta { transform: translateX(3px); }
.hb-cta .icon { width: 16px; height: 16px; }

/* CODEUPP – čierna, limetková, Be Vietnam Pro */
.hb-cu { font-family: "Be Vietnam Pro", var(--font); background-color: #0A0A0A; background-image: radial-gradient(60% 90% at 0% 0%, rgba(215, 229, 44, .16), transparent 70%), linear-gradient(90deg, #0A0A0A 30%, rgba(10, 10, 10, .75) 55%, rgba(10, 10, 10, .1) 85%), url("banners/cu-wide.webp"); background-position: center, center, right center; background-size: cover; }
.hb-cu .hb-logo { height: 19px; }
.hb-cu .hb-kicker { color: #D7E52C; letter-spacing: .08em; }
.hb-cu .hb-title { font-weight: 600; font-style: italic; letter-spacing: -.025em; }
.hb-cu em { font-style: italic; color: #D7E52C; }
.hb-cu .hb-text em { font-style: italic; color: #fff; }
.hb-cu .hb-cta { background: #D7E52C; color: #0E0E0E; font-weight: 700; }

/* Kristián Valčo – fotka, Noto Serif Display + Poppins */
.hb-kv { font-family: Poppins, var(--font); background-image: linear-gradient(90deg, rgba(20, 16, 12, .9) 0%, rgba(20, 16, 12, .72) 40%, rgba(20, 16, 12, .1) 75%), url("banners/kv-wide.webp"); background-position: center, 70% 40%; background-size: cover; }
.hb-kv .hb-logo { height: 40px; filter: invert(1); margin-bottom: 2px !important; }
.hb-kv .hb-kicker { font-weight: 500; letter-spacing: .2em; opacity: .9; }
.hb-kv .hb-title { font-family: "Noto Serif Display", Georgia, serif; font-weight: 300; letter-spacing: -.02em; font-size: clamp(30px, 3.4vw, 44px); }
.hb-kv em { font-weight: 500; font-style: italic; }
.hb-kv .hb-cta { background: #fff; color: #111; font-weight: 500; letter-spacing: .14em; }

/* úzke plochy: bočné pásy a stĺpec pri hre – fotka hore, text dole */
.rail .hb, .side .hb { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 18px; padding: 26px 22px; }
.rail .hb { min-height: min(600px, calc(100dvh - 130px)); }
.side .hb { min-height: 300px; }
.rail .hb-title, .side .hb-title { font-size: 28px; }
.rail .hb-text { font-size: 13px; }
.rail .hb-cta, .side .hb-cta { padding: 12px 18px; font-size: 11px; }
.rail .hb-cu, .side .hb-cu { background-image: radial-gradient(90% 50% at 0% 100%, rgba(215, 229, 44, .14), transparent 70%), linear-gradient(180deg, rgba(10, 10, 10, .1) 10%, rgba(10, 10, 10, .7) 45%, #0A0A0A 70%), url("banners/cu-tall.webp"); background-position: center, center, 60% top; }
.rail .hb-kv, .side .hb-kv { background-image: linear-gradient(180deg, rgba(20, 16, 12, 0) 25%, rgba(20, 16, 12, .75) 55%, rgba(20, 16, 12, .95) 100%), url("banners/kv-tall.webp"); background-position: center, center top; }
.rails[style*="--rail-w: 160px"] .hb { padding: 20px 14px; }
.rails[style*="--rail-w: 160px"] .hb-title { font-size: 21px; }
.rails[style*="--rail-w: 160px"] .hb-text { display: none; }
.rails[style*="--rail-w: 160px"] .hb-cta { padding: 10px 12px; font-size: 10px; letter-spacing: .06em; white-space: normal; }
.rails[style*="--rail-w: 160px"] .hb-kv .hb-logo { height: 30px; }
.rails[style*="--rail-w: 160px"] .hb-cu .hb-logo { height: 14px; }
@media (max-width: 760px) {
  .hb { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 22px; min-height: 0; }
  .hb-cu { background-image: radial-gradient(60% 90% at 0% 0%, rgba(215, 229, 44, .16), transparent 70%), linear-gradient(90deg, rgba(10, 10, 10, .95) 40%, rgba(10, 10, 10, .6)), url("banners/cu-wide.webp"); }
  .hb-kv { background-image: linear-gradient(90deg, rgba(20, 16, 12, .88), rgba(20, 16, 12, .55)), url("banners/kv-wide.webp"); }
}


/* ========== Právne stránky a kontakt ========== */
.doc { max-width: 760px; }
.doc-body { color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.doc-body h2 { margin: 32px 0 10px; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.doc-body h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.doc-body p, .doc-body ul { margin: 0 0 12px; }
.doc-body ul { padding-left: 20px; }
.doc-body li { margin-bottom: 6px; }
.doc-body b { color: var(--ink); }
.doc-body a { color: var(--accent-2); }
.doc-op { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.doc-forget { margin-top: 28px; }
.doc-forget .btn-danger, .btn.btn-danger { background: var(--bad); color: #fff; border-color: var(--bad); }
.contact-form { margin-top: 20px; }
.contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); font: 600 16px var(--font); color: var(--ink); outline: none; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.field small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.report { justify-content: flex-end !important; font-size: 13px; }
.report a { color: var(--ink-3); }
.room-again { margin-top: 8px; text-align: left; }
.room-again h3 { font-size: 20px; }
.room-again .muted { margin: 4px 0 14px; }
.party-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: stretch; }
.party-grid .party-form { max-width: none; }
.party-side .spot { display: flex; flex-direction: column; height: 100%; }
.party-side .hb { flex: 1; }
@media (max-width: 960px) {
  .party-grid { grid-template-columns: 1fr; }
  .party-side .hb { min-height: 360px; }
}

/* zdroj inzerátu */
.src-badge { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 10px; background: rgba(12, 14, 20, .6); color: #fff; font-weight: 600; font-size: 12px; backdrop-filter: blur(8px); pointer-events: none; }
.media .dots ~ .src-badge, .media:has(.dots) .src-badge { bottom: 30px; }
.src-links { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.src-links a { color: inherit; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
