/* ==========================================================================
   STAROSTA: svetlá, živá hra s dedinskou scénou
   ========================================================================== */

:root {
    --navy: #14213d;
    --navy-2: #24365e;
    --navy-3: #3c5486;
    --night: #0f1a35;
    --sky: #6ec1f1;
    --mist: #f3f6fa;
    --meadow: #e8f0e4;
    --sand: #f7f0e2;
    --grass: #55b04d;
    --grass-deep: #2f6a45;
    --roof: #b4553f;
    --roof-deep: #8e3f2d;
    --sun: #f0b341;
    --sun-deep: #b9821b;
    --green: #3e9361;
    --green-deep: #256b43;
    --line: #d6e2ee;
    --ink-soft: #4b5877;

    --common: #9aa8b8;
    --rare: #4aa8f0;
    --epic: #b27fe0;
    --legend: #f29c1f;

    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-text: "Figtree", "Segoe UI", system-ui, sans-serif;

    --gutter: clamp(1rem, 4vw, 2rem);
    --section: clamp(3.5rem, 8vw, 6rem);
    --r-lg: 22px;
    --ease: cubic-bezier(.22, 1, .36, 1);

    /* jemný vyšívaný lem, jediný ornament na stránke */
    --trim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12' viewBox='0 0 28 12'%3E%3Cpath d='M7 1l5 5-5 5-5-5z' fill='%23D9533D'/%3E%3Cpath d='M21 4l2 2-2 2-2-2z' fill='%23FFC83D'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
    margin: 0;
    background: var(--mist);
    color: var(--navy);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-weight: 600;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 4px solid var(--navy); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 7px var(--sun); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--sun); color: var(--navy); padding: .6rem 1rem; z-index: 100; font-weight: 800; border-radius: 8px; }
.skip:focus { top: 1rem; }
.nums { font-variant-numeric: tabular-nums lining-nums; }

.wrap { width: min(100% - var(--gutter) * 2, 74rem); margin-inline: auto; }

/* ---------- typografia ---------- */
.display { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
h2.display { font-size: clamp(2.2rem, 5.6vw, 3.8rem); }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.55; max-width: 38em; text-wrap: pretty; color: var(--ink-soft); font-weight: 600; }

/* ---------- tlačidlá: hrubé, hmatateľné ---------- */
.btn {
    --b: var(--sun); --bd: var(--sun-deep); --t: var(--navy);
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 3.1rem; padding: .65rem 1.5rem .6rem;
    background: var(--b); color: var(--t);
    border: 2px solid var(--navy); border-bottom-width: 6px; border-bottom-color: var(--bd);
    border-radius: 16px;
    font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; line-height: 1.1;
    text-decoration: none;
    transition: transform .15s var(--ease), filter .15s;
}
.btn svg { width: 1.3rem; height: 1.3rem; flex: none; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(3px); border-bottom-width: 4px; }
.btn-green { --b: var(--green); --bd: var(--green-deep); --t: #fff; }
.btn-white { --b: #fff; --bd: #b9c9dc; --t: var(--navy); }
.btn-lg { min-height: 3.7rem; padding-inline: 2rem; font-size: 1.35rem; }

/* ---------- hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 2px solid var(--navy); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem 2rem; min-height: 4.2rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand svg { width: 2.6rem; height: 2.6rem; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: .06em; color: var(--navy); }
.nav { display: flex; gap: .2rem 1.5rem; margin-left: auto; font-weight: 800; font-size: 1rem; }
.nav a { white-space: nowrap; text-decoration: none; padding: .5rem .15rem; border-bottom: 2px solid transparent; color: var(--ink-soft); }
.nav a:hover { color: var(--navy); border-color: var(--sun); }
.header-cta { display: flex; align-items: center; gap: .6rem; }
.header-cta .btn { white-space: nowrap; min-height: 2.8rem; font-size: 1.02rem; padding-inline: 1.1rem; }
.nav-toggle { display: none; min-width: 3rem; min-height: 3rem; border: 2px solid var(--navy); border-radius: 14px; background: #fff; align-items: center; justify-content: center; }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; color: var(--navy); }
.trim { height: 12px; background: #fff var(--trim) repeat-x center; }

/* ---------- obecný rozhlas ---------- */
.rozhlas { background: var(--navy); color: #fff; overflow: hidden; }
.rozhlas .wrap { display: flex; align-items: stretch; width: 100%; max-width: none; margin: 0; }
.rozhlas-label { flex: none; display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem; background: var(--roof); font-weight: 800; font-size: .9rem; position: relative; z-index: 1; }
.rozhlas-label svg { width: 1.35rem; height: 1.35rem; }
.rozhlas-label small { font-weight: 700; opacity: .9; display: block; font-size: .72rem; margin-top: -.15rem; }
.rozhlas-track { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 1.5rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5rem); }
.rozhlas-row { display: flex; gap: 3.5rem; width: max-content; padding-block: .5rem; white-space: nowrap; animation: tick 60s linear infinite; font-weight: 700; font-size: .96rem; }
.rozhlas-row:hover { animation-play-state: paused; }
.rozhlas-row li { display: flex; align-items: center; gap: .7rem; }
.rozhlas-row b { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .06em; padding: .08rem .55rem; border-radius: 99px; background: var(--sun); color: var(--navy); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- úvod: scéna ---------- */
.hero { position: relative; background: #0f1a35; }
.scene-wrap { position: relative; width: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--sky-a); --scene-h: clamp(18rem, 44vw, 40rem); padding-bottom: calc(var(--scene-h) - 11rem); }
[data-phase="day"] { --sky-a:#2f6fb0; --sky-b:#7fb6df; --sky-c:#cfe6f1; --orb:#fff4c8; --orb-glow:#ffe9a0; --orb-x:820px; --orb-y:250px; --cloud:#fff; --m1:#8ea3c3; --m2:#6f89b0; --snow:#f4f7fb; --fog:#dcebf4; --fog-o:.55; --h1:#86ad72; --h2:#679b5d; --h3:#4f8750; --h4:#3d7142; --river:#6fb2d6; --glint:#e8f6fc; --tree-a:#3f7a47; --tree-b:#4f9055; --wall:#f1ebe0; --wall-dark:#6d4a33; --roof-a:#b4553f; --roof-b:#4f5f82; --roof-wood:#6a4a33; --wood:#b48a56; --win:#9cbad2; --rock:#9ba7b8; --rock-lt:#bcc6d4; --smoke:#fff; --bird:#14213d; --stars:0; }
[data-phase="dawn"] { --sky-a:#4b5a96; --sky-b:#e49a8c; --sky-c:#fbd9ad; --orb:#fff0c8; --orb-glow:#ffd6a0; --orb-x:330px; --orb-y:300px; --cloud:#ffd9c4; --m1:#8a82a8; --m2:#6a6a92; --snow:#ffe9dc; --fog:#f3c9b8; --fog-o:.6; --h1:#78946c; --h2:#5c8060; --h3:#476e55; --h4:#385c49; --river:#8fb0cf; --glint:#ffe6cf; --tree-a:#3a6246; --tree-b:#4a7653; --wall:#f0ddd0; --wall-dark:#5e4132; --roof-a:#a64b3c; --roof-b:#494f78; --roof-wood:#5e4332; --wood:#a88056; --win:#ffd48a; --rock:#9aa0b4; --rock-lt:#b7bbca; --smoke:#fbe3d6; --bird:#2a2f58; --stars:.15; }
[data-phase="dusk"] { --sky-a:#2d2f6b; --sky-b:#d0766e; --sky-c:#f6bb82; --orb:#ffd9a0; --orb-glow:#ff9a6a; --orb-x:830px; --orb-y:340px; --cloud:#f1a58f; --m1:#6a5c8c; --m2:#4c4776; --snow:#f0c9c0; --fog:#c98c8c; --fog-o:.55; --h1:#4f6b58; --h2:#3d5a4b; --h3:#31493f; --h4:#283c36; --river:#5f7fa8; --glint:#ffcf9f; --tree-a:#2f5440; --tree-b:#3a6049; --wall:#dccbc6; --wall-dark:#4e362c; --roof-a:#8f4336; --roof-b:#3d4468; --roof-wood:#50382b; --wood:#8f6c48; --win:#ffd58a; --rock:#7c819a; --rock-lt:#9a9db2; --smoke:#e8c7c0; --bird:#1b1d40; --stars:.35; }
[data-phase="night"] { --sky-a:#0c1330; --sky-b:#1b2a5c; --sky-c:#33477f; --orb:#f4f1e4; --orb-glow:#b6c7ff; --orb-x:820px; --orb-y:240px; --cloud:#3a4a82; --m1:#2d3b6d; --m2:#232e5a; --snow:#7f93c8; --fog:#2a3a70; --fog-o:.5; --h1:#284a47; --h2:#1f3d3d; --h3:#193333; --h4:#132a2b; --river:#26427a; --glint:#8fa8e0; --tree-a:#1d3f3d; --tree-b:#25504b; --wall:#7d8199; --wall-dark:#3a2c2a; --roof-a:#5e3238; --roof-b:#2a3258; --roof-wood:#3b2b28; --wood:#6a5340; --win:#ffd27a; --rock:#4f5978; --rock-lt:#66708f; --smoke:#8f9ac0; --bird:#8fa0d0; --stars:1; }
.scene { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: var(--scene-h); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%); mask-image: linear-gradient(180deg, transparent 0, #000 26%); }
.scene .tap { cursor: pointer; transition: transform .2s var(--ease); transform-box: fill-box; transform-origin: 50% 100%; outline: none; }
.scene .tap:hover, .scene .tap:focus-visible { transform: scale(1.05); }
.scene .tap:active { transform: scale(.97); }
.scene .tap:focus-visible { filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 2px var(--navy)); }
.scene .cloud { animation: drift 60s linear infinite; }
.scene .c2 { animation-duration: 80s; animation-delay: -25s; }
.scene .c3 { animation-duration: 95s; animation-delay: -50s; }
@keyframes drift { from { transform: translateX(-80px); } to { transform: translateX(160px); } }
.scene .smoke circle { animation: puff 3.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.scene .smoke circle:nth-child(2) { animation-delay: .8s; }
.scene .smoke circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes puff { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 25% { opacity: .85; } 100% { opacity: 0; transform: translateY(-26px) scale(1.4); } }
.scene .wheel { animation: spin 5s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene .bird { animation: fly 22s linear infinite; }
.scene .b2 { animation-duration: 28s; animation-delay: -9s; }
@keyframes fly { from { transform: translateX(-120px); } to { transform: translateX(980px); } }
.scene .river-glint { animation: glint 4s ease-in-out infinite; }
@keyframes glint { 50% { opacity: .2; } }

.hud { position: absolute; z-index: 5; top: 1rem; left: 0; right: 0; }
.hud .wrap { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; justify-content: flex-end; }
.hud-badge { display: flex; align-items: center; gap: .6rem; margin-right: auto; background: #fff; border: 2px solid var(--navy); border-radius: 99px; padding: .2rem 1rem .2rem .25rem; }
.hud-lvl { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--roof); color: #fff; border: 2px solid var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.hud-name { font-weight: 800; font-size: .92rem; line-height: 1.1; }
.hud-name small { display: block; color: var(--ink-soft); font-weight: 700; font-size: .75rem; }
.pill { position: relative; display: flex; align-items: center; gap: .45rem; background: #fff; border: 2px solid var(--navy); border-radius: 99px; padding: .22rem .85rem .22rem .3rem; min-height: 2.6rem; }
.pill-ico { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--ic, var(--sun)); color: var(--navy); flex: none; }
.pill-ico svg { width: 1.15rem; height: 1.15rem; }
.pill-val { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.pill .plus { position: absolute; right: .4rem; top: -.2rem; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--grass-deep); text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff; opacity: 0; pointer-events: none; }
.plus.go { animation: floaty 1.4s var(--ease) forwards; }
@keyframes floaty { 0% { transform: translateY(4px); opacity: 0; } 18% { opacity: 1; } 100% { transform: translateY(-30px); opacity: 0; } }
.pill.bump { animation: bump .32s var(--ease); }
@keyframes bump { 40% { transform: scale(1.1); } }

.hero-card::before { content: ""; position: absolute; inset: -2.5rem -5rem; background: radial-gradient(ellipse at center, rgba(10, 18, 45, .42), transparent 68%); z-index: -1; pointer-events: none; }
.hero-card { position: relative; z-index: 4; width: min(100% - var(--gutter) * 2, 52rem); margin: 5.4rem auto 0; }
.hero-card-in { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.hero h1 { font-size: clamp(3.4rem, 12.5vw, 7.2rem); line-height: .94; text-transform: uppercase; color: #fff8ec; letter-spacing: .04em; text-shadow: 0 2px 0 rgba(10, 18, 45, .35), 0 12px 44px rgba(10, 18, 45, .5); }
.hero .tag { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.85rem); line-height: 1.2; color: #fff; max-width: 22em; text-wrap: balance; text-shadow: 0 2px 18px rgba(10, 18, 45, .55); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: center; margin-top: .4rem; }
.hero-note { font-size: .92rem; color: #fff; font-weight: 700; display: flex; flex-wrap: wrap; gap: .4rem .6rem; justify-content: center; }
.hero-note span { display: inline-flex; align-items: center; gap: .35rem; background: rgba(15, 26, 53, .55); padding: .2rem .75rem; border-radius: 99px; }
.hero-note svg { width: 1rem; height: 1rem; color: var(--sun); }
.hero .lead { color: rgba(255, 255, 255, .94); font-weight: 600; text-shadow: 0 1px 14px rgba(10, 18, 45, .6); max-width: 34em; text-align: center; }
.tap-hint { position: absolute; z-index: 4; right: var(--gutter); bottom: 1.2rem; background: var(--navy); color: #fff; font-weight: 800; font-size: .88rem; padding: .35rem .9rem; border-radius: 99px; display: flex; align-items: center; gap: .5rem; }
.tap-hint::before { content: ""; width: .6rem; height: .6rem; background: var(--sun); border-radius: 50%; animation: livedot 1.6s ease-in-out infinite; }
@keyframes livedot { 50% { opacity: .3; } }
.fx { position: absolute; z-index: 6; pointer-events: none; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #fff; -webkit-text-stroke: 2px var(--navy); paint-order: stroke fill; animation: fxUp 1.1s var(--ease) forwards; white-space: nowrap; }
@keyframes fxUp { from { transform: translate(-50%, 0) scale(.7); opacity: 1; } to { transform: translate(-50%, -64px) scale(1.15); opacity: 0; } }

.crit { position: absolute; z-index: 7; left: 50%; bottom: 1.2rem; display: flex; align-items: center; gap: .8rem; padding: .6rem 1.1rem; background: var(--roof); color: #fff; border: 2px solid var(--navy); border-radius: 99px; font-weight: 800; font-size: .98rem; transform: translate(-50%, 140%); opacity: 0; pointer-events: none; white-space: nowrap; }
.crit svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--sun); }
.crit b { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.crit.show { animation: critIn 3.4s var(--ease) forwards; }
@keyframes critIn { 0% { opacity: 0; transform: translate(-50%, 140%); } 10%, 84% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 140%); } }

/* ---------- sekcie ---------- */
.section { padding-block: var(--section); position: relative; border-radius: var(--r-lg) var(--r-lg) 0 0; margin-top: -1.8rem; }
.section-head { display: grid; gap: .9rem; max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; }
.section-head.split > div:first-child { display: grid; gap: .9rem; max-width: 42rem; }

/* ---------- dashboard obce pod scénou ---------- */
.dash { position: relative; background: #fff; padding-block: clamp(2.8rem, 6vw, 4.2rem) clamp(3.5rem, 7vw, 5rem); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.card { background: #fff; border: 2px solid var(--navy); border-radius: var(--r-lg); padding: 1.3rem 1.3rem 1.4rem; display: grid; gap: .9rem; box-shadow: 0 10px 24px rgba(27, 42, 74, .12); }
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.tagline { font-family: var(--font-text); font-weight: 800; font-size: .72rem; letter-spacing: .08em; background: var(--sun); color: var(--navy); padding: .15rem .6rem; border-radius: 99px; }
.meter-top { display: flex; justify-content: space-between; gap: .6rem; font-weight: 800; font-size: .85rem; color: var(--ink-soft); }
.meter-top b { color: var(--roof-deep); }
.bar { height: 1.4rem; border-radius: 99px; background: #e6eef6; border: 2px solid var(--navy); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 50%); background: linear-gradient(#ffd75e, var(--sun)); border-radius: 99px; transition: width .8s var(--ease); }
.bar.purple i { background: linear-gradient(#c79bf0, var(--epic)); }
.meter-hint { font-size: .92rem; font-weight: 800; color: var(--roof-deep); }
.q-list { display: grid; gap: .5rem; }
.q-row { display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; align-items: center; padding: .55rem .7rem; background: var(--mist); border: 2px solid var(--line); border-radius: 14px; }
.q-lvl { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--tint); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--navy); border: 2px solid var(--navy); border-radius: 12px; }
.q-main { min-width: 0; }
.q-line { display: flex; justify-content: space-between; gap: .6rem; font-weight: 800; font-size: .95rem; }
.q-line span:last-child { font-size: .85rem; color: var(--ink-soft); }
.q-bar { height: .5rem; background: var(--line); border-radius: 99px; margin-top: .35rem; overflow: hidden; }
.q-bar i { display: block; height: 100%; width: var(--w); background: var(--tint); border-radius: 99px; transition: width 1s linear; }
.udalost { background: var(--navy-2); color: #fff; border-color: var(--night); }
.udalost h3 { color: #fff; font-size: 1.3rem; justify-content: flex-start; }
.udalost h3 svg { width: 1.3rem; height: 1.3rem; color: var(--sun); }
.udalost p { font-size: .98rem; line-height: 1.5; font-weight: 600; }
.udalost .choices { display: grid; gap: .6rem; }
.choice { min-height: 3rem; padding: .5rem .9rem; border-radius: 14px; border: 2px solid #fff; background: transparent; font-weight: 800; font-size: .95rem; text-align: left; transition: background-color .15s, transform .15s var(--ease); }
.choice:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.choice.risk { border-color: #ff9a85; }
.choice[aria-pressed="true"] { background: #fff; color: var(--navy); }
.udalost-out { font-weight: 800; font-size: .95rem; min-height: 1.5em; color: var(--sun); }

/* ---------- ranná porada ---------- */
#porada { background: var(--mist); }
.countdown { background: var(--navy); color: #fff; padding: 1rem 1.4rem 1.2rem; border-radius: var(--r-lg); display: grid; gap: .5rem; justify-items: start; }
.countdown-label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: #b9c7e6; }
.clock { display: flex; align-items: center; gap: .35rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1; }
.clock .d { background: var(--night); padding: .3rem .6rem; border-radius: 12px; min-width: 2.2ch; text-align: center; }
.clock .sep { color: var(--sun); }
.countdown-streak { font-weight: 800; font-size: .95rem; color: var(--sun); display: flex; align-items: center; gap: .5rem; }
.countdown-streak svg { width: 1.2rem; height: 1.2rem; }

.porada-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.3rem; align-items: start; }
.hadanka { background: #fff; border: 2px solid var(--navy); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; display: grid; gap: 1.05rem; box-shadow: 0 10px 24px rgba(27, 42, 74, .12); }
.hadanka-slovo { grid-column: span 5; }
.hadanka-odhad { grid-column: span 7; }
.hadanka-spoj { grid-column: span 7; }
.hadanka-share { grid-column: span 5; }
.hadanka-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.hadanka-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1.05; }
.reward { font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: .04em; padding: .2rem .8rem; border-radius: 99px; border: 2px solid var(--navy); }
.reward.wood { background: #f0d3a4; }
.reward.coin { background: #ffe38a; }
.reward.fame { background: #e4cdfa; }

.word { display: grid; gap: .4rem; justify-content: start; }
.word-row { display: flex; gap: .4rem; }
.cell { width: clamp(2.6rem, 11vw, 3.1rem); height: clamp(2.6rem, 11vw, 3.1rem); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; border-radius: 12px; border: 2px solid var(--navy); position: relative; }
.cell.g { background: var(--green); color: #fff; }
.cell.y { background: var(--sun); color: var(--navy); }
.cell.n { background: #e6eef6; color: var(--ink-soft); border-color: #aebcd0; }
.cell.g::after { content: ""; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; background: #fff; transform: rotate(45deg); }
.cell.y::after { content: ""; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.hadanka-foot { font-size: .98rem; font-weight: 700; color: var(--ink-soft); }
.hadanka-foot b { color: var(--roof-deep); }

.otazka { font-size: 1.25rem; font-weight: 800; line-height: 1.35; }
.ruler { position: relative; height: 4.4rem; margin-top: .4rem; }
.ruler-line { position: absolute; left: 0; right: 0; top: 1.75rem; height: 14px; border-radius: 99px; border: 2px solid var(--navy); background: linear-gradient(90deg, #f3b9ab, #f6dd9a 36%, #9fdfb6 46%, #9fdfb6 54%, #f6dd9a 64%, #f3b9ab); }
.ruler-pin { position: absolute; top: 1rem; transform: translateX(-50%); }
.ruler-pin i { display: block; width: 6px; height: 2.8rem; background: var(--navy); border-radius: 3px; }
.ruler-pin span { position: absolute; top: -.2rem; left: 50%; transform: translate(-50%, -100%); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.ruler-pin.you i { background: var(--roof); }
.ruler-pin.you span { color: var(--roof-deep); }
.ruler-vals { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1.2rem; font-weight: 700; color: var(--ink-soft); }
.ruler-vals b { color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }

.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.chip { min-height: 3rem; padding: .35rem .3rem; border-radius: 12px; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: clamp(.64rem, 1.9vw, .84rem); border: 2px solid var(--navy); overflow-wrap: anywhere; hyphens: auto; }
.chip.c1 { background: var(--green); color: #fff; }
.chip.c2 { background: #bfe0fb; color: var(--navy); }
.chip.c0 { background: #eef3f9; color: var(--navy); border-color: #aebcd0; }

.share { background: var(--navy-2); color: #fff; border-color: var(--night); }
.share-card { background: var(--night); border: 2px dashed #7f95c6; border-radius: 16px; padding: 1rem 1.1rem; display: grid; gap: .5rem; justify-items: start; }
.share-title { font-weight: 800; font-size: .95rem; color: var(--sun); }
.share-grid { display: grid; gap: 3px; }
.share-grid div { display: flex; gap: 3px; }
.share-grid i { width: 1.2rem; height: 1.2rem; background: #3f4f7a; border-radius: 4px; }
.share-grid i.g { background: var(--green); }
.share-grid i.y { background: var(--sun); }
.share-sum { font-size: .92rem; color: #c3d0ee; font-weight: 700; }
.share h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.share p { font-size: .98rem; color: #d3ddf2; }
.share-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.copy-state { font-weight: 800; font-size: .92rem; color: var(--sun); }

/* ---------- truhlice ---------- */
#truhlice { background-color: var(--night); color: #fff; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.5) 1px, transparent 2px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.35) 1px, transparent 2px), radial-gradient(circle at 45% 85%, rgba(255,255,255,.4) 1px, transparent 2px); background-size: 120px 120px, 170px 170px, 90px 90px; }
#truhlice .lead { color: #c3d0ee; }
.truhlice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; align-items: end; }
.truhla { --c: var(--common); position: relative; padding: 1.2rem 1rem 1.3rem; border: 2px solid var(--c); border-radius: var(--r-lg); background: var(--navy-2); display: grid; gap: .7rem; justify-items: center; text-align: center; }
.truhla[data-r="rare"] { --c: var(--rare); }
.truhla[data-r="epic"] { --c: var(--epic); }
.truhla[data-r="legend"] { --c: var(--legend); background: #4a3210; }
.truhla:nth-child(1) { padding-top: 1.8rem; }
.truhla:nth-child(2) { padding-top: 2.3rem; }
.truhla:nth-child(3) { padding-top: 2.8rem; }
.truhla:nth-child(4) { padding-top: 3.4rem; }
.truhla svg { width: min(100%, 8.5rem); height: auto; }
.truhla-rate { position: absolute; top: .6rem; left: .8rem; right: .8rem; display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 800; font-size: .9rem; letter-spacing: .05em; color: var(--c); }
.truhla-rate b { color: #c3d0ee; font-weight: 400; }
.truhla h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.truhla p { font-size: .93rem; color: #c3d0ee; line-height: 1.45; }
.truhla[data-r="legend"] { animation: legendPulse 3.2s ease-in-out infinite; }
@keyframes legendPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 156, 31, 0); } 50% { box-shadow: 0 0 0 8px rgba(242, 156, 31, .28); } }

.skusit { margin-top: clamp(2rem, 5vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; background: var(--navy-2); border: 2px solid #fff; border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); }
.skusit-main { display: grid; gap: 1rem; justify-items: center; text-align: center; align-content: center; }
.skusit-chest { width: min(15rem, 70%); background: none; border: 0; padding: 0; border-radius: 16px; }
.skusit-chest svg { width: 100%; height: auto; transition: transform .2s var(--ease); }
.skusit-chest:hover svg { transform: scale(1.04) rotate(-1deg); }
.skusit-chest.shake svg { animation: shake .62s ease-in-out; }
@keyframes shake { 15% { transform: translateX(-7px) rotate(-3deg); } 30% { transform: translateX(7px) rotate(3deg); } 45% { transform: translateX(-6px) rotate(-2deg); } 60% { transform: translateX(6px) rotate(2deg); } 80% { transform: scale(1.08); } }
.skusit-hint { font-weight: 700; color: #c3d0ee; font-size: .98rem; }
.drop { min-height: 5.4rem; width: 100%; display: grid; place-items: center; }
.drop-card { --c: var(--common); display: grid; gap: .25rem; width: 100%; padding: .9rem 1rem; border: 2px solid var(--c); border-radius: 18px; background: var(--night); animation: pop .5s var(--ease); }
.drop-card[data-r="rare"] { --c: var(--rare); }
.drop-card[data-r="epic"] { --c: var(--epic); }
.drop-card[data-r="legend"] { --c: var(--legend); background: #4a3210; animation: pop .5s var(--ease), legendPulse 1.6s ease-in-out 3; }
.drop-card b { font-family: var(--font-display); font-weight: 800; font-size: .9rem; letter-spacing: .08em; color: var(--c); }
.drop-card span { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; line-height: 1.15; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.skusit-side { display: grid; gap: 1.1rem; align-content: start; }
.pity { display: grid; gap: .4rem; }
.pity-top { display: flex; justify-content: space-between; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: .04em; color: #c3d0ee; }
.pity-top b { color: var(--epic); font-weight: 400; }
.pity .bar { border-color: #fff; background: var(--night); }
.pity-hint { font-size: .92rem; color: #c3d0ee; }
.history-title { font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: .04em; color: #c3d0ee; }
.history { display: grid; gap: .4rem; min-height: 6rem; align-content: start; margin-top: .4rem; }
.history li { display: flex; align-items: center; gap: .7rem; padding: .5rem .8rem; background: var(--night); border-radius: 12px; font-weight: 700; font-size: .95rem; animation: slideIn .35s var(--ease); }
.history li::before { content: ""; width: .8rem; height: .8rem; background: var(--c, var(--common)); border-radius: 50%; flex: none; }
.history li[data-r="rare"] { --c: var(--rare); }
.history li[data-r="epic"] { --c: var(--epic); }
.history li[data-r="legend"] { --c: var(--legend); }
.history .empty { background: transparent; color: #c3d0ee; }
.history .empty::before { display: none; }
@keyframes slideIn { from { transform: translateY(-.5rem); opacity: 0; } }
.fineprint { font-size: .88rem; color: #aebcdc; }

/* ---------- vojna krajov ---------- */
#kraje { background: var(--meadow); }
.kraje { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.kraje-side { display: grid; gap: 1.2rem; position: sticky; top: 6rem; }
.kraje-intro { display: grid; gap: 1rem; }
.weekend { background: var(--roof); color: #fff; padding: 1.2rem 1.3rem 1.3rem; border-radius: var(--r-lg); border: 2px solid var(--navy); display: grid; gap: .4rem; }
.weekend small { font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: .06em; }
.weekend strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.05; }
.weekend p { font-size: .98rem; font-weight: 700; }
.bonus-list { display: grid; gap: .7rem; }
.bonus-list li { display: grid; grid-template-columns: 2.8rem 1fr; gap: .8rem; align-items: center; font-weight: 700; }
.bonus-list svg { width: 2.8rem; height: 2.8rem; padding: .55rem; background: var(--sun); color: var(--navy); border: 2px solid var(--navy); border-radius: 50%; }
.rank-list { display: grid; gap: .6rem; }
.rank { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 3rem; gap: .9rem; align-items: center; padding: .7rem 1rem; background: #fff; border: 2px solid var(--navy); border-radius: 18px; }
.rank.first { background: #fff6d2; }
.rank.mine { background: #e9fbe9; border-color: var(--green-deep); box-shadow: 0 0 0 4px var(--green); }
.rank-n { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; text-align: center; color: var(--ink-soft); line-height: 1; }
.rank.gold .rank-n { color: #d9980e; }
.rank.silver .rank-n { color: #7e8da4; }
.rank.bronze .rank-n { color: #b4692c; }
.rank-main { min-width: 0; }
.rank-line { display: flex; justify-content: space-between; gap: .6rem; font-weight: 800; flex-wrap: wrap; }
.rank-line span:last-child { font-weight: 700; color: var(--ink-soft); font-size: .92rem; }
.rank-bar { height: .75rem; background: #e6eef6; border-radius: 99px; margin-top: .4rem; overflow: hidden; border: 2px solid var(--navy); }
.rank-bar i { display: block; height: 100%; width: var(--w); background: var(--navy-3); }
.rank.first .rank-bar i { background: var(--sun); }
.rank.mine .rank-bar i { background: var(--green); }
.rank-trend { text-align: right; font-weight: 800; font-size: .95rem; display: inline-flex; align-items: center; justify-content: flex-end; gap: .25rem; }
.rank-trend.up { color: var(--green-deep); }
.rank-trend.down { color: var(--roof-deep); }
.rank-trend.flat { color: var(--ink-soft); }
.rank-trend svg { width: .85rem; height: .85rem; }
.rank-note { font-size: .88rem; color: var(--ink-soft); margin-top: .8rem; font-weight: 700; }
.rank-note a { color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }
.rank-mine { font-style: normal; font-weight: 700; color: var(--green-deep); }
.rank-crown { display: inline-block; width: 1.05rem; height: 1.05rem; color: var(--sun-deep); vertical-align: -.12em; margin-left: .3rem; }

/* ---------- sezónny chodník ---------- */
#sezona { background: linear-gradient(180deg, #2f4e8f, #243b73); color: #fff; }
#sezona .lead { color: #cdd9f3; }
.season-now { font-weight: 800; color: #cdd9f3; }
.season-now b { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--sun); letter-spacing: 0; }
.track-wrap { overflow-x: auto; padding: 1.2rem .6rem 1.4rem; margin-inline: -.6rem; scrollbar-color: var(--sun) var(--night); }
.track { display: flex; min-width: 62rem; align-items: flex-start; }
.stop { flex: 1 1 0; display: grid; justify-items: center; gap: .8rem; position: relative; text-align: center; }
.stop::before { content: ""; z-index: 0; position: absolute; top: 2rem; left: -50%; right: 50%; height: 8px; border-radius: 99px; background: #4b67a6; }
.stop:first-child::before { display: none; }
.stop.done::before, .stop.cur::before { background: var(--sun); }
.stop-node { z-index: 1; position: relative; width: 4rem; height: 4rem; display: grid; place-items: center; background: #4b67a6; border: 4px solid #fff; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; line-height: 1; }
.stop.done .stop-node { background: var(--green); }
.stop.cur .stop-node { background: var(--sun); color: var(--navy); border-color: var(--navy); animation: curPulse 2.2s ease-in-out infinite; box-shadow: 0 0 0 5px #fff; }
.stop.last .stop-node { width: 4.6rem; height: 4.6rem; border-color: var(--legend); background: #4a3210; }
@keyframes curPulse { 50% { transform: scale(1.09); } }
.stop-label { font-weight: 800; font-size: .92rem; line-height: 1.3; max-width: 7.5rem; color: #cdd9f3; margin-top: .3rem; }
.stop.cur .stop-label { color: var(--sun); }
.stop.done .stop-label { color: #fff; }
.swipe-hint { display: none; font-size: .88rem; color: #cdd9f3; margin-top: .3rem; font-weight: 700; }

/* ---------- voľby ---------- */
#volby { background: var(--sand); }
.volby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.volby-copy { display: grid; gap: 1.2rem; }
.mandat { display: grid; gap: .7rem; }
.mandat li { display: grid; grid-template-columns: minmax(6.5rem, max-content) 1fr; gap: 1rem; align-items: center; padding: .8rem 1.1rem; background: #fff; border: 2px solid var(--navy); border-radius: 18px; }
.mandat b { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--roof); line-height: 1; }
.mandat span { font-weight: 700; color: var(--ink-soft); }
.listok { background: #fff; border: 2px solid var(--navy); border-radius: var(--r-lg); padding: 1.8rem 1.5rem 1.5rem; display: grid; gap: 1.2rem; position: relative; box-shadow: 0 14px 30px rgba(27, 42, 74, .16); }
.listok::before { content: "VOLEBNÝ LÍSTOK"; position: absolute; top: -1rem; left: 1.4rem; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .9rem; letter-spacing: .08em; padding: .2rem .9rem; border-radius: 99px; }
.listok-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.listok-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.listok-head span { font-weight: 800; font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); }
.kandidat { display: grid; gap: .5rem; }
.kandidat-line { display: flex; align-items: center; gap: .8rem; font-weight: 800; font-size: 1.1rem; }
.kandidat-box { width: 1.8rem; height: 1.8rem; border: 2px solid var(--navy); border-radius: 8px; display: grid; place-items: center; flex: none; }
.kandidat-box svg { width: 1.2rem; height: 1.2rem; color: var(--green-deep); }
.kandidat-pct { margin-left: auto; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.kandidat.win .kandidat-pct { color: var(--green-deep); }
.kandidat-bar { height: 1.3rem; border-radius: 99px; background: #e6eef6; overflow: hidden; border: 2px solid var(--navy); }
.kandidat-bar i { display: block; height: 100%; width: var(--w); background: #8fa0c0; }
.kandidat.win .kandidat-bar i { background: linear-gradient(#58c37a, var(--green)); }
.zvoleny { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--sun); border: 2px solid var(--navy); border-radius: 18px; }
.zvoleny svg { width: 2.4rem; height: 2.4rem; flex: none; }
.zvoleny b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.zvoleny span { font-size: .95rem; font-weight: 700; }

/* ---------- otázky ---------- */
#otazky { background: #fff; }
.faq { display: grid; gap: .7rem; max-width: 52rem; }
.faq details { background: var(--mist); border: 2px solid var(--navy); border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 1.2rem; font-weight: 800; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.4rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: .9rem; height: .9rem; border-right: 4px solid var(--roof); border-bottom: 4px solid var(--roof); transform: rotate(45deg); transition: transform .2s var(--ease); flex: none; margin-top: -.3rem; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: .3rem; }
.faq details[open] { background: #fff; }
.faq-body { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); max-width: 42rem; font-weight: 600; }

/* ---------- záverečná výzva ---------- */
.final { background: var(--grass-deep); color: #fff; text-align: center; padding-block: clamp(4rem, 10vw, 7rem); margin-top: -1.8rem; border-radius: var(--r-lg) var(--r-lg) 0 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; width: 22rem; height: 22rem; border-radius: 50%; background: var(--sun); right: -6rem; top: -9rem; }
.final::after { content: ""; position: absolute; left: -4rem; right: -4rem; bottom: -8rem; height: 14rem; background: #3f9e46; border-radius: 50%; }
.final .wrap { position: relative; z-index: 1; display: grid; gap: 1.5rem; justify-items: center; }
.final h2 { font-size: clamp(2.5rem, 7vw, 4.6rem); color: #fff; text-shadow: 0 4px 0 var(--night); }
.final p { font-size: 1.25rem; font-weight: 800; max-width: 30em; }

/* ---------- päta ---------- */
.site-footer { background: var(--night); color: #fff; padding-block: 2.2rem 2.6rem; font-size: .96rem; position: relative; z-index: 1; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem 2rem; }
.site-footer .brand span { color: #fff; font-size: 1.3rem; }
.site-footer .brand svg { width: 2.2rem; height: 2.2rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; color: #c3d0ee; font-weight: 800; }
.foot-nav a { text-decoration: none; padding: .3rem 0; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.foot-copy { color: #8fa3cf; width: 100%; font-size: .88rem; font-weight: 600; }

.dock { display: none; }

/* ---------- zjavenie pri skrolovaní ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responzivita ---------- */
@media (max-width: 1120px) {
    .nav { gap: .2rem 1.1rem; font-size: .94rem; }
    .site-header .wrap { gap: 1rem 1.2rem; }
}
@media (max-width: 1060px) {
    .dash-grid { grid-template-columns: minmax(0, 1fr); max-width: 40rem; margin-inline: auto; }
    .kraje, .volby { grid-template-columns: minmax(0, 1fr); }
    .kraje-side { position: static; }
    .truhlice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .truhla:nth-child(n) { padding-top: 1.9rem; }
    .skusit { grid-template-columns: minmax(0, 1fr); }
    .hadanka-slovo, .hadanka-share { grid-column: span 6; }
    .hadanka-odhad, .hadanka-spoj { grid-column: span 12; }
}
@media (max-width: 860px) {
    .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; background: #fff; border-bottom: 2px solid var(--navy); padding: .4rem var(--gutter) 1rem; display: none; }
    .nav.open { display: flex; }
    .nav a { padding: .9rem 0; border-bottom: 2px solid var(--line); font-size: 1.1rem; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .header-cta .btn-white { display: none; }
    .section-head.split { grid-template-columns: minmax(0, 1fr); }
    .hadanka-slovo, .hadanka-share { grid-column: span 12; }
    .swipe-hint { display: block; }
    .hero-card { margin-top: 7rem; }
}
@media (max-width: 640px) {
    body { font-size: 1.02rem; }
    .header-cta { display: none; }
    .rozhlas-label small { display: none; }
    .hud { position: static; padding-top: .9rem; }
    .hud .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
    .hud-badge { grid-column: 1 / -1; margin-right: 0; }
    .pill { padding-right: .6rem; min-height: 2.4rem; }
    .pill-val { font-size: 1.05rem; }
    .hero-card { margin-top: 1.6rem; }
    .scene-wrap { --scene-h: 20rem; padding-bottom: 12rem; }
    .hero-cta .btn { flex: 1 1 100%; }
    .hero .lead { display: none; }
    .tap-hint { left: var(--gutter); right: auto; bottom: .7rem; }
    .truhlice-grid { gap: .7rem; }
    .truhla { padding-inline: .6rem; }
    .truhla p { font-size: .86rem; }
    .rank { grid-template-columns: 2rem minmax(0, 1fr) 2.6rem; gap: .6rem; padding: .6rem .7rem; }
    .mandat li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
    .skusit-chest { width: min(13rem, 80%); }
    .dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 2px solid var(--navy); transform: translateY(110%); transition: transform .35s var(--ease); }
    .dock.show { transform: none; }
    .dock .btn { width: 100%; }
    .site-footer { padding-bottom: 6rem; }
}
@media (max-width: 400px) {
    .cell { width: 2.4rem; height: 2.4rem; font-size: 1.25rem; }
    .brand span { font-size: 1.3rem; }
    .truhlice-grid { grid-template-columns: minmax(0, 1fr); }
    .crit { font-size: .85rem; padding-inline: .8rem; }
}

/* ---------- prihlásenie, registrácia, obec ---------- */
.auth-stage { position: relative; overflow: hidden; background: var(--sky-a); --scene-h: clamp(16rem, 40vw, 30rem); min-height: calc(100vh - 5rem); display: grid; justify-items: center; align-content: start; padding: clamp(2rem, 6vw, 4rem) var(--gutter) calc(var(--scene-h) * .55); }
.auth-card { position: relative; z-index: 2; width: min(100%, 30rem); background: #fff; border: 2px solid var(--navy); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.2rem); display: grid; gap: 1.1rem; box-shadow: 0 20px 44px rgba(10, 18, 45, .35); }
.auth-card-wide { width: min(100%, 40rem); }
.auth-card h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.auth-sub { color: var(--ink-soft); font-weight: 600; }
.auth-card form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 800; font-size: .95rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="password"] { width: 100%; min-height: 3.1rem; padding: .6rem .9rem; border: 2px solid var(--navy); border-radius: 14px; background: var(--mist); color: var(--navy); font: inherit; font-weight: 600; }
.field input:focus { background: #fff; }
.field input[aria-invalid="true"] { border-color: var(--roof); background: #fff6f3; }
.field-hint { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }
.field-error { font-size: .92rem; font-weight: 800; color: var(--roof-deep); }
.field-pass { position: relative; display: grid; }
.field-pass input { padding-right: 5.6rem; }
.pass-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); min-height: 2.4rem; padding: 0 .8rem; border: 0; background: transparent; font-weight: 800; font-size: .88rem; color: var(--navy-3); border-radius: 10px; }
.pass-toggle:hover { background: #e6eef6; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 700; min-height: 2.75rem; cursor: pointer; }
.check input { width: 1.4rem; height: 1.4rem; accent-color: var(--green); }
.btn-block { width: 100%; }
.auth-alt { text-align: center; font-weight: 700; color: var(--ink-soft); }
.auth-alt a { color: var(--navy); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.kraje-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.6rem, 1fr)); gap: .5rem; }
.kraj-choice { position: relative; cursor: pointer; }
.kraj-choice input { position: absolute; opacity: 0; inset: 0; }
.kraj-choice span { display: flex; align-items: center; min-height: 3rem; padding: .5rem .9rem; border: 2px solid var(--line); border-radius: 14px; background: var(--mist); font-weight: 800; }
.kraj-choice:hover span { border-color: var(--navy-3); }
.kraj-choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.kraj-choice input:focus-visible + span { outline: 4px solid var(--navy); outline-offset: 3px; box-shadow: 0 0 0 7px var(--sun); }
.auth-alert { padding: .75rem 1rem; border-radius: 14px; border: 2px solid var(--roof); background: #fff6f3; color: var(--roof-deep); font-weight: 800; font-size: .95rem; }
.auth-notice { border-color: var(--green); background: #effaf3; color: var(--green-deep); }
.verify-strip { background: var(--sand); border-bottom: 2px solid var(--line); }
.verify-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-block: .6rem; }
.verify-strip p { font-weight: 700; color: var(--navy); }
.or-line { display: flex; align-items: center; gap: .8rem; color: var(--ink-soft); font-weight: 800; font-size: .85rem; margin: .1rem 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.obec-region { font-weight: 800; color: var(--ink-soft); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.obec-meta { font-weight: 800; }
.obec-note { color: var(--ink-soft); font-weight: 600; }
.site-header form { margin: 0; }
.header-cta form button.btn { font: inherit; font-family: var(--font-display); font-weight: 800; }
.nav-extra { display: none; }
@media (max-width: 860px) {
    .nav .nav-extra { display: block; }
    .nav form.nav-extra { margin: 0; }
    .nav form.nav-extra button { width: 100%; text-align: left; padding: .9rem 0; border: 0; border-bottom: 2px solid var(--line); background: transparent; font: inherit; font-weight: 800; font-size: 1.1rem; color: var(--ink-soft); }
}

/* ---------- stránka obce: hra ---------- */
.game-jump { display: none; }
.obec-stage { position: relative; overflow: hidden; background: var(--sky-a); --scene-h: clamp(15rem, 34vw, 24rem); padding: clamp(1.4rem, 4vw, 2.4rem) var(--gutter) calc(var(--scene-h) - 5rem); text-align: center; }
.obec-title { position: relative; z-index: 2; display: grid; gap: .35rem; justify-items: center; }
.obec-title h1 { font-size: clamp(2.2rem, 7vw, 4rem); color: #fff8ec; text-shadow: 0 2px 0 rgba(10, 18, 45, .35), 0 10px 30px rgba(10, 18, 45, .5); }
.obec-title .obec-region { color: #fff; font-weight: 800; text-shadow: 0 1px 10px rgba(10, 18, 45, .7); }
.obec-tip { font-weight: 800; font-size: .88rem; color: #fff; background: rgba(15, 26, 53, .6); padding: .25rem .85rem; border-radius: 99px; }
.scene .unbuilt { opacity: .35; filter: grayscale(.7); cursor: not-allowed; }
.obec-flash { display: grid; gap: .6rem; margin-top: 1rem; }
.obec-flash:empty { display: none; }

/* Odkaz na poradu na stránke obce */
.obec-porada { display: inline-flex; align-items: center; gap: .6rem; margin-top: .2rem; padding: .45rem 1rem; border-radius: 99px; background: var(--sun); color: var(--navy); font-weight: 800; text-decoration: none; border: 2px solid var(--navy); }
.obec-porada b { font-family: var(--font-display); font-weight: 800; }
.obec-porada:hover { filter: brightness(1.05); }
.obec-crown { display: inline-block; width: 1.1rem; height: 1.1rem; color: var(--sun); vertical-align: -.15em; margin-right: .2rem; filter: drop-shadow(0 1px 4px rgba(10, 18, 45, .6)); }
.game { background: var(--mist); padding-bottom: 4rem; }
.hud-bar { position: sticky; top: calc(4.2rem + 15px); z-index: 30; background: #fff; border-bottom: 2px solid var(--navy); box-shadow: 0 8px 18px rgba(10, 18, 45, .08); }
.hud-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding-block: .6rem .35rem; }
.lvl { display: flex; align-items: center; gap: .7rem; flex: 1 1 16rem; min-width: 0; }
.lvl-badge { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--roof); color: #fff; border: 2px solid var(--navy); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; flex: none; }
.lvl-meter { flex: 1; min-width: 0; display: grid; gap: .25rem; }
.lvl-top { display: flex; justify-content: space-between; gap: .6rem; font-weight: 800; font-size: .85rem; color: var(--ink-soft); }
.lvl-top b { color: var(--navy); }
.lvl-meter .bar { height: 1rem; }
.hud-res { display: flex; flex-wrap: wrap; gap: .4rem; }
.hud-res .pill { min-height: 2.4rem; }
.lvl-hint { font-size: .85rem; font-weight: 700; color: var(--roof-deep); padding-bottom: .5rem; }
.pill.gain { animation: bump .45s var(--ease); }
.pill-val.counting { color: var(--green-deep); }

.game-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; margin-top: 1.4rem; }
.game-h { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; display: flex; align-items: baseline; gap: .6rem; margin-bottom: .8rem; }
.game-h-sub { font-family: var(--font-text); font-size: .95rem; color: var(--ink-soft); font-weight: 800; }
.bld-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: .9rem; }
.bld { background: #fff; border: 2px solid var(--navy); border-radius: 18px; padding: 1rem; display: grid; gap: .75rem; align-content: start; }
.bld.is-locked { background: transparent; border-style: dashed; border-color: #aebcd0; color: var(--ink-soft); }
.bld.is-new { border-style: dashed; }
.bld-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.bld-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.bld-lvl { font-weight: 800; font-size: .8rem; background: var(--navy); color: #fff; padding: .15rem .55rem; border-radius: 99px; white-space: nowrap; }
.bld-locked { display: flex; align-items: center; gap: .45rem; font-weight: 800; font-size: .92rem; }
.bld-locked svg { width: 1.1rem; height: 1.1rem; flex: none; }
.bld-desc, .bld-effect { font-size: .92rem; color: var(--ink-soft); font-weight: 600; }
.bld-effect b { color: var(--navy); }
.stores { display: grid; gap: .55rem; }
.store-top { display: flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; }
.store-ico { width: 1.1rem; height: 1.1rem; flex: none; }
.store-rate { margin-left: auto; color: var(--green-deep); font-weight: 800; }
.store-bar { height: .7rem; background: #e6eef6; border-radius: 99px; overflow: hidden; margin-top: .3rem; }
.store-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #f0c66b, var(--sun)); border-radius: 99px; }
.store.is-full .store-bar i { background: linear-gradient(90deg, #6bc28b, var(--green)); }
.store.is-full .store-top b { color: var(--green-deep); }
.costs { display: flex; flex-wrap: wrap; gap: .35rem; }
.cost { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 99px; background: var(--mist); border: 1.5px solid var(--line); font-weight: 800; font-size: .85rem; }
.cost svg { width: .95rem; height: .95rem; }
.cost.is-missing { border-color: var(--roof); color: var(--roof-deep); background: #fff6f3; }
.cost-time { color: var(--ink-soft); }
.bld-up { display: grid; gap: .5rem; }
.bld-wait { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.site-hint { margin-top: .6rem; color: var(--roof-deep); font-weight: 700; }
.bld-block { font-size: .85rem; font-weight: 700; color: var(--roof-deep); }
.bld-building { display: flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .92rem; color: var(--navy-3); }
.bld-building svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn-mini { min-height: 2.75rem; padding: .4rem 1rem; font-size: .95rem; --b: var(--sun); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; filter: none; }
.btn.is-busy { opacity: .7; pointer-events: none; }

.game-side { display: grid; gap: 1.2rem; }
.side-card { background: #fff; border: 2px solid var(--navy); border-radius: 18px; padding: 1rem; }
.q-item { padding: .7rem .8rem; border-radius: 14px; background: var(--mist); border: 1.5px solid var(--line); display: grid; gap: .4rem; }
.q-item + .q-item { margin-top: .5rem; }
.q-top { display: flex; justify-content: space-between; gap: .5rem; font-weight: 800; font-size: .95rem; }
.q-top span { color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.q-progress { height: .6rem; background: #dfe8f2; border-radius: 99px; overflow: hidden; }
.q-progress i { display: block; height: 100%; width: var(--w); background: var(--navy-3); border-radius: 99px; }
.q-time { font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.game-empty { font-size: .92rem; color: var(--ink-soft); font-weight: 600; }

/* udalosti v obci a v kraji */
.ev-card { display: grid; gap: .7rem; }
.ev-card .game-h { margin-bottom: 0; }
.ev { display: grid; gap: .6rem; }
.ev-title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.ev-title svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--roof); }
.ev-text { font-weight: 600; }
.ev-notice { background: var(--mist); border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem .8rem; font-weight: 700; font-size: .92rem; }
.ev-choices { display: grid; gap: .55rem; }
.ev-choices form { display: block; }
.ev-choice { width: 100%; display: grid; gap: .15rem; text-align: left; padding: .65rem .8rem; border-radius: 14px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: inherit; cursor: pointer; transition: background-color .15s, transform .15s var(--ease); }
.ev-choice b { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; }
.ev-choice:hover:not(:disabled) { background: var(--mist); transform: translateY(-1px); }
.ev-choice.is-risk { border-color: var(--roof-deep); background: #fff4f0; }
.ev-choice.is-risk:hover:not(:disabled) { background: #ffe9e2; }
.ev-choice:disabled { opacity: .55; cursor: not-allowed; }
.ev-choice.is-busy { opacity: .7; pointer-events: none; }
.ev-line { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.ev-line.is-lack { color: var(--roof-deep); }
.ev-foot { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.ev-meter { height: .9rem; background: #e6eef6; border: 2px solid var(--navy); border-radius: 99px; overflow: hidden; }
.ev-meter i { display: block; height: 100%; width: 100%; background: var(--green); border-radius: 99px; transform: scaleX(calc(var(--p, 0))); transform-origin: left; transition: transform .6s var(--ease); }
.ev-meter-text { font-size: .9rem; font-weight: 700; }
.ev-give { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.ev-give form { display: block; }
.ev-give-btn { width: 100%; display: grid; justify-items: center; gap: .1rem; padding: .55rem .3rem; border-radius: 14px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; transition: background-color .15s, transform .15s var(--ease); }
.ev-give-btn svg { width: 1.4rem; height: 1.4rem; }
.ev-give-btn small { font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.ev-give-btn:hover:not(:disabled) { background: var(--mist); transform: translateY(-1px); }
.ev-give-btn:disabled { opacity: .5; cursor: not-allowed; }
.ev-give-btn.is-busy { opacity: .7; pointer-events: none; }
.ev-claim { display: grid; gap: .6rem; background: #fff3cf; border: 2px solid var(--sun-deep); border-radius: 14px; padding: .7rem .8rem; font-weight: 600; }
.bld-paused { margin-bottom: .4rem; }
.ev-banner { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .7rem 1rem; border-radius: 16px; border: 2px solid var(--navy); background: #fff3cf; color: var(--navy); font-weight: 800; text-decoration: none; }
.ev-banner svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--roof); }
.ev-banner span { flex: 1; min-width: 0; }
.ev-banner b { text-decoration: underline; text-underline-offset: .2em; }
.ev-banner:hover { background: #ffeaa8; }
.order-list { display: grid; gap: .7rem; }
.order { border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem; display: grid; gap: .45rem; background: var(--mist); }
.order.is-generous { border-color: var(--sun-deep); background: #fff8e6; }
.order.is-urgent { border-color: var(--roof); }
.order-head { display: flex; gap: .6rem; align-items: flex-start; }
.order-av { width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; }
.order-who-wrap { min-width: 0; flex: 1; }
.order-who { font-weight: 800; font-size: .82rem; color: var(--ink-soft); }
.order-text { font-weight: 800; line-height: 1.3; }
.order-tag { font-weight: 800; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; background: var(--sun); padding: .15rem .5rem; border-radius: 99px; border: 1.5px solid var(--navy); white-space: nowrap; }
.order-timer { display: flex; align-items: center; gap: .35rem; font-weight: 800; font-size: .85rem; color: var(--roof-deep); }
.order-timer svg { width: 1rem; height: 1rem; flex: none; }
.order-progress { font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.order-progress.is-ready { color: var(--green-deep); }
.order-reward { font-size: .9rem; font-weight: 600; }
.order-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.order-actions .btn { min-height: 2.75rem; padding-inline: 1.1rem; font-size: 1rem; }
.link-btn { background: none; border: 0; padding: .6rem .3rem; min-height: 2.75rem; font-weight: 800; color: var(--ink-soft); text-decoration: underline; text-underline-offset: .2em; }

.crit-banner { position: fixed; z-index: 90; left: 50%; top: 32%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .8rem; padding: .9rem 1.6rem; background: var(--roof); color: #fff; border: 2px solid var(--navy); border-radius: 18px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 4vw, 2rem); box-shadow: 0 20px 40px rgba(10, 18, 45, .35); pointer-events: none; white-space: nowrap; }
.crit-banner svg { width: 2rem; height: 2rem; color: var(--sun); }
.crit-banner.show { animation: critPop 1.6s var(--ease) forwards; }
@keyframes critPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } 30% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -62%); } }
.toast-zone { position: fixed; z-index: 95; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: grid; gap: .5rem; width: min(100% - 2rem, 28rem); pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 14px; font-weight: 700; box-shadow: 0 12px 28px rgba(10, 18, 45, .3); animation: toastIn .3s var(--ease); }
.toast.is-error { background: var(--roof-deep); }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }
.fx-float { position: fixed; z-index: 96; pointer-events: none; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--green-deep); text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff; animation: fxUp 1.2s var(--ease) forwards; white-space: nowrap; }
.fx-float.is-crit { color: var(--roof); font-size: 1.8rem; }
.levelup { border: 2px solid var(--navy); border-radius: 22px; padding: 1.6rem; width: min(100% - 2rem, 26rem); text-align: center; color: var(--navy); }
.levelup::backdrop { background: rgba(10, 18, 45, .55); }
.levelup[open] { display: grid; gap: 1rem; animation: pop .45s var(--ease); }
.levelup h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); }
.levelup-list { display: grid; gap: .4rem; font-weight: 800; }
.levelup-list li { background: var(--mist); border-radius: 12px; padding: .5rem .8rem; }

@media (max-width: 1060px) {
    .game-grid { grid-template-columns: minmax(0, 1fr); }
    .game-jump { display: flex; gap: .4rem; padding-bottom: .55rem; overflow-x: auto; }
    .game-jump a { flex: 1 0 auto; min-height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: 0 .8rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--mist); font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; }
    .game-jump b { color: var(--roof-deep); }
    .side-card, .game-main { scroll-margin-top: 13rem; }
}
@media (max-width: 640px) {
    .lvl { flex-basis: 100%; }
    .hud-res { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hud-res .pill { padding: .15rem .45rem .15rem .2rem; gap: .3rem; min-width: 0; }
    .hud-res .pill-ico { width: 1.5rem; height: 1.5rem; }
    .hud-res .pill-ico svg { width: .9rem; height: .9rem; }
    .hud-res .pill-val { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
    .bld-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    .rozhlas-row { animation: none; flex-wrap: wrap; white-space: normal; width: auto; }
}
