/* ==========================================================
   OZVENY ČASU – vzhľad
   Pravidlo: nadpisy vždy rovným písmom (Cinzel), nikdy italic.
   ========================================================== */
:root {
  --ink: #15110c; --ink-2: #251d16; --ink-3: #3a2f25;
  --parchment: #f3ead6; --parchment-2: #e9dcbf; --parchment-3: #d8c59e;
  --gold: #c99a2e; --gold-soft: #e8c46c; --red: #7d2422; --red-2: #9b302c; --green: #4f6b3a;
  --text: #2b211a; --muted: #6b5a49; --radius: 12px;
  --era-c1: #2a1d14; --era-c2: #e2bd62;
  --f-head: 'Cinzel', Georgia, serif; --f-body: 'Lora', Georgia, serif; --f-glag: 'Noto Sans Glagolitic', sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--text); font-family: var(--f-body); min-height: 100vh; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--f-head); font-style: normal; font-weight: 700; letter-spacing: .02em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
.screen { display: none; }
.screen.is-active { display: block; animation: screen-in .7s var(--ease); }
@keyframes screen-in { from { opacity: 0; } }

/* ---------- opona (prechod) ---------- */
.curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: radial-gradient(circle at 50% 50%, #1d150e 0%, #070504 70%); opacity: 0; transition: opacity .5s ease; }
.curtain.is-on { opacity: 1; pointer-events: auto; }

/* ---------- tlačidlá ---------- */
.btn { background: rgba(37,29,22,.88); border: 2px solid var(--gold); color: var(--parchment); padding: 12px 24px; border-radius: 999px; cursor: pointer; font-family: var(--f-head); font-weight: 700; letter-spacing: .06em; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); background: var(--ink-3); box-shadow: 0 8px 24px rgba(201,154,46,.25); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn--primary { background: linear-gradient(180deg, var(--red-2), var(--red)); }
.btn--primary:hover { background: linear-gradient(180deg, #b03d37, var(--red-2)); }
.btn--small { padding: 8px 16px; font-size: .82rem; }
.btn--big { padding: 16px 34px; font-size: 1.05rem; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(201,154,46,.5); background: rgba(255,255,255,.04); cursor: pointer; display: grid; place-items: center; color: var(--parchment); transition: background .2s, transform .2s; }
.icon-btn:hover { background: rgba(201,154,46,.18); transform: rotate(-6deg); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-soft); box-shadow: 0 0 0 2px var(--ink-2); animation: dot 1.6s infinite; }
@keyframes dot { 50% { transform: scale(1.35); } }

/* =========================================================
   OBAL
   ========================================================= */
.screen--title.is-active { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #3b2a18 0%, #160f09 60%, #080604 100%); }
.screen--title::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px); pointer-events: none; }
.title-fx, .hub-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.title-card { position: relative; max-width: 640px; text-align: center; color: var(--parchment); }
.title-card > * { animation: rise 1.2s var(--ease) both; }
.title-card > *:nth-child(2) { animation-delay: .2s; } .title-card > *:nth-child(3) { animation-delay: .35s; } .title-card > *:nth-child(4) { animation-delay: .5s; } .title-card > *:nth-child(5) { animation-delay: .65s; } .title-card > *:nth-child(6) { animation-delay: .8s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.title-emblem { width: 120px; margin: 0 auto 10px; filter: drop-shadow(0 0 24px rgba(201,154,46,.35)); }
.emb-hand { transform-origin: 60px 60px; animation: spin 60s linear infinite; } .emb-hand2 { transform-origin: 60px 60px; animation: spin 8s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.title-kicker { font-family: var(--f-head); color: var(--gold-soft); letter-spacing: .32em; text-transform: uppercase; font-size: .78rem; }
.title-card h1 { font-size: clamp(2.8rem, 9vw, 5.4rem); line-height: 1; margin: 12px 0 18px; color: #fff4dc; text-shadow: 0 0 40px rgba(201,154,46,.35), 0 4px 30px rgba(0,0,0,.7);
  color: #f6e2ad; }
.title-lead { font-size: 1.13rem; line-height: 1.75; color: #eadfc6; margin-bottom: 30px; }
.title-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.title-meta { margin-top: 28px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: .9rem; color: #bfae8e; }

/* =========================================================
   ČASOVÁ OS
   ========================================================= */
.screen--hub.is-active { position: relative; min-height: 100vh; padding: 28px 0 40px; overflow: hidden;
  background: radial-gradient(ellipse at 30% 0%, #3a2a18 0%, #120d08 55%, #080604 100%); color: var(--parchment); }
.hub-head { position: relative; max-width: 1200px; margin: 0 auto 18px; padding: 0 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.hub-head h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); color: #fff4dc; margin-top: 6px; }
.hub-tools { display: flex; gap: 8px; }
.timeline { position: relative; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 70px max(20px, calc((100vw - 1200px) / 2 + 20px)) 30px; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.timeline__line { position: absolute; left: 0; right: 0; top: 52px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 6%, var(--gold) 94%, transparent); min-width: 2200px; }
.era-card { position: relative; flex: 0 0 300px; scroll-snap-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 85%, #000), #0d0a07);
  border: 1px solid color-mix(in srgb, var(--c2) 55%, transparent); border-radius: 16px; overflow: visible; box-shadow: 0 20px 50px rgba(0,0,0,.55);
  transition: transform .35s var(--ease), box-shadow .35s; animation: card-in .8s var(--ease) both; animation-delay: calc(var(--i) * .09s); }
@keyframes card-in { from { opacity: 0; transform: translateY(40px); } }
.era-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 1px var(--c2), 0 0 40px color-mix(in srgb, var(--c2) 30%, transparent); }
.era-card__year { position: absolute; top: -66px; left: 50%; transform: translateX(-50%); font-family: var(--f-head); font-weight: 800; font-size: 1.3rem; color: var(--c2); letter-spacing: .08em; text-shadow: 0 0 20px rgba(0,0,0,.8); }
.era-card__dot { position: absolute; top: -26px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 0 4px #120d08, 0 0 16px var(--c2); }
.era-card__dot::after { content: ""; position: absolute; left: 50%; top: 16px; width: 1px; height: 12px; background: var(--c2); }
.era-card__img { height: 170px; border-radius: 16px 16px 0 0; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.era-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, color-mix(in srgb, var(--c1) 90%, #000)); }
.era-card:hover .era-card__img { animation: card-drift 6s ease-in-out infinite alternate; }
@keyframes card-drift { to { background-position: 60% 40%; } }
.era-card__body { padding: 16px 18px 18px; }
.era-card__num { font-family: var(--f-head); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c2); }
.era-card h3 { font-size: 1.45rem; color: #fff4dc; margin: 4px 0 2px; }
.era-card__sub { color: #e6d6b6; font-size: .98rem; }
.era-card__meta { color: #a8977a; font-size: .82rem; margin-top: 6px; }
.era-card__progress { display: flex; align-items: center; gap: 5px; margin: 14px 0; font-size: .8rem; color: #bfae8e; }
.era-card__progress i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--c2); opacity: .6; }
.era-card__progress i.is-on { background: var(--c2); opacity: 1; box-shadow: 0 0 8px var(--c2); }
.era-card__progress span { margin-left: 6px; }
.era-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.era-card.is-done::before { content: "✓"; position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--c2); color: #1a120a; font-weight: 800; }
.hub-foot { max-width: 1200px; margin: 6px auto 0; padding: 0 20px; color: #a8977a; font-size: .9rem; }

/* =========================================================
   ÚVOD KAPITOLY
   ========================================================= */
.screen--intro.is-active { position: fixed; inset: 0; z-index: 40; background: #000; overflow: hidden; display: block; }
.intro-media, .intro-still, .intro-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-still { background-size: cover; background-position: center; filter: saturate(.9) brightness(.8); }
.intro-video { object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.intro-video.is-on { opacity: 1; }
.intro-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,4,3,.92) 0%, rgba(5,4,3,.6) 45%, rgba(5,4,3,.1) 80%), linear-gradient(0deg, rgba(5,4,3,.8), transparent 40%); }
.intro-text { position: absolute; left: clamp(20px, 7vw, 110px); bottom: clamp(30px, 10vh, 110px); max-width: 560px; color: var(--parchment); padding-right: 16px; }
.intro-kicker { font-family: var(--f-head); letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; color: var(--era-c2); opacity: 0; }
.intro-title { font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1.02; color: #fff4dc; margin: 10px 0 6px; opacity: 0; text-shadow: 0 6px 40px rgba(0,0,0,.7); }
.intro-years { font-family: var(--f-head); color: var(--era-c2); letter-spacing: .12em; opacity: 0; }
.is-play .intro-kicker { animation: rise 1s .2s var(--ease) both; } .is-play .intro-title { animation: title-in 1.6s .35s var(--ease) both; } .is-play .intro-years { animation: rise 1s .9s var(--ease) both; }
@keyframes title-in { from { opacity: 0; letter-spacing: .3em; filter: blur(10px); } to { opacity: 1; letter-spacing: .02em; filter: none; } }
.intro-lines { margin: 22px 0 8px; min-height: 7.5em; }
.intro-lines p { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.55; color: #f1e6cc; margin-bottom: 6px; animation: line-in 1.2s var(--ease) both; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
@keyframes line-in { from { opacity: 0; transform: translateX(-14px); filter: blur(6px); } }
.intro-hero { color: #cdbb98; font-size: .98rem; opacity: 0; transition: opacity .8s; margin-bottom: 18px; }
.intro-go { opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .8s, transform .8s; }
.is-ready .intro-hero { opacity: 1; } .is-ready .intro-go { opacity: 1; transform: none; pointer-events: auto; }
.intro-skip { position: absolute; top: 18px; right: 18px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.25); color: #f1e6cc; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-family: var(--f-head); letter-spacing: .08em; font-size: .8rem; }

/* =========================================================
   HRA
   ========================================================= */
.screen--game.is-active { padding: 20px 16px 50px; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--era-c1) 70%, #000) 0%, var(--ink) 60%) fixed; min-height: 100vh; }
.app { max-width: 980px; margin: 0 auto; background: var(--parchment); border: 2px solid var(--gold); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.7); overflow: hidden;
  background-image: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.35), transparent 50%), radial-gradient(ellipse at 80% 90%, rgba(160,120,60,.14), transparent 55%); }
.hud { background: var(--ink-2); color: var(--parchment); border-bottom: 2px solid var(--gold); display: flex; align-items: center; gap: 22px; padding: 10px 18px; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.hud__group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hud__group--inv { flex: 1; }
.hud__label { font-family: var(--f-head); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); white-space: nowrap; }
.hud__tools { display: flex; gap: 8px; margin-left: auto; }
.trust { display: flex; gap: 3px; }
.trust__pip { width: 24px; height: 24px; display: inline-block; }
.trust__pip svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.trust__pip.pulse-up svg { animation: seal-stamp .7s cubic-bezier(.2,1.6,.4,1); }
.trust__pip.pulse-down svg { animation: pip-down .6s; }
@keyframes seal-stamp { 0% { transform: scale(2.4) rotate(-25deg); opacity: 0; } 60% { transform: scale(.9) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes pip-down { 25%,75% { transform: translateX(-3px); } 50% { transform: translateX(3px); opacity: .4; } }
.inventory { display: flex; gap: 6px; flex-wrap: wrap; }
.inventory em { color: #9d8b6e; font-size: .9rem; }
.item { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff7e6; border: 1px solid var(--gold); padding: 3px 11px 3px 4px; border-radius: 999px; font-size: .82rem; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.item__ico { width: 20px; height: 20px; display: inline-grid; place-items: center; background: #f6ecd2; border-radius: 50%; padding: 2px; }
.item__ico svg { width: 100%; height: 100%; }
@keyframes pop { from { transform: scale(0); } }

/* Vizuál scény */
.visual { position: relative; aspect-ratio: 16 / 7.4; background: #0d0a07; overflow: hidden; transition: opacity .38s, filter .38s; }
.visual.is-leaving { opacity: .2; filter: blur(6px) sepia(.6); }
.visual img { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; opacity: 0; transition: opacity 1s ease; will-change: transform; }
.visual img.is-loaded { opacity: 1; }
.visual__fallback { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.visual__fallback.is-on { opacity: 1; }
.visual__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(10,7,4,.55) 100%); z-index: 2; }
.fx-canvas { position: absolute; inset: -2%; width: 104%; height: 104%; pointer-events: none; z-index: 3; mix-blend-mode: screen; }
.fx-glow { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; }
.fx-glow--fire { opacity: 1; background: radial-gradient(ellipse at 50% 110%, rgba(255,120,30,.35), transparent 60%); animation: flicker 2.2s infinite; mix-blend-mode: screen; }
.fx-glow--forge { opacity: 1; background: radial-gradient(ellipse at 50% 90%, rgba(255,140,40,.4), transparent 55%); animation: flicker 1.2s infinite; mix-blend-mode: screen; }
.fx-glow--candle { opacity: 1; background: radial-gradient(ellipse at 30% 60%, rgba(255,200,110,.22), transparent 40%), radial-gradient(ellipse at 75% 55%, rgba(255,200,110,.18), transparent 35%); animation: flicker 3s infinite; mix-blend-mode: screen; }
.fx-glow--sun { opacity: 1; background: linear-gradient(115deg, transparent 40%, rgba(255,230,170,.14) 60%, transparent 80%); animation: sun 9s ease-in-out infinite alternate; mix-blend-mode: screen; }
.fx-glow.flash { animation: flash .9s ease-out; background: rgba(220,230,255,.85); opacity: 0; }
@keyframes flicker { 0%,100% { opacity: .85; } 20% { opacity: 1; } 40% { opacity: .7; } 60% { opacity: .95; } 80% { opacity: .75; } }
@keyframes sun { to { transform: translateX(6%); opacity: .7; } }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: .9; } 14% { opacity: .1; } 20% { opacity: .7; } 100% { opacity: 0; } }
.visual__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 26px 18px; background: linear-gradient(transparent, rgba(12,9,6,.95)); z-index: 4; }
.visual__date { font-family: var(--f-head); font-size: .76rem; letter-spacing: .28em; text-transform: uppercase; color: #dccaa2; }
.visual__caption h2 { color: var(--gold-soft); font-size: clamp(1.4rem, 3.6vw, 2.1rem); margin-top: 2px; text-shadow: 0 2px 14px rgba(0,0,0,.8); animation: title-in 1.1s var(--ease) both; }
.progress { position: absolute; top: 14px; right: 16px; display: flex; gap: 5px; z-index: 4; }
.progress span { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); }
.progress span.is-done { background: var(--gold-soft); box-shadow: 0 0 6px var(--gold-soft); }
.era-badge { position: absolute; top: 12px; left: 14px; z-index: 4; font-family: var(--f-head); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #f1e6cc; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 12px; backdrop-filter: blur(4px); }
.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* Príbeh */
.story { padding: 30px clamp(18px, 4.5vw, 44px) 36px; transition: opacity .38s, transform .38s; }
.story.is-leaving { opacity: 0; transform: translateY(10px); }
.story__text { font-size: 1.12rem; line-height: 1.82; }
.story__text p { margin-bottom: 14px; }
.reveal { animation: reveal .9s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } }
.speech { position: relative; margin: 6px 0 18px; padding: 14px 18px 4px 22px; background: rgba(255,255,255,.45); border-radius: 4px 14px 14px 14px; border-left: 3px solid var(--era-c2); box-shadow: 0 2px 10px rgba(80,50,20,.08); }
.speech p { color: #33251a; }
.speech__who { display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--red); padding: 3px 10px; border-radius: 999px; margin: -26px 0 6px -10px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.term { border: 0; border-bottom: 2px dotted var(--red); cursor: help; color: var(--red); font-weight: 600; background: none; padding: 0; font: inherit; font-weight: 600; transition: background .2s; }
.term:hover, .term:focus-visible { background: rgba(125,36,34,.1); }
.fact, .source { margin: 22px 0 0; padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; line-height: 1.65; animation: reveal .9s .6s var(--ease) both; }
.fact { background: var(--parchment-2); border-left: 5px solid var(--red); }
.fact summary { cursor: pointer; list-style: none; }
.fact summary::-webkit-details-marker { display: none; }
.fact summary::after { content: " ▾"; color: var(--muted); }
.fact:not([open]) summary::after { content: " ▸"; }
.fact p { margin-top: 6px; }
.source { background: #efe2c3; border-left: 5px solid var(--gold); position: relative; }
.source::before { content: "„"; position: absolute; right: 16px; top: -8px; font-family: Georgia, serif; font-size: 5rem; color: rgba(201,154,46,.25); line-height: 1; }
.fact__label, .source__label { display: block; font-family: var(--f-head); font-weight: 700; color: var(--red); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.source__label { color: #8b6516; margin-bottom: 6px; }
.source blockquote { font-size: 1.04rem; }
.source cite { display: block; margin-top: 8px; font-size: .85rem; color: var(--muted); font-style: normal; }
.choices { display: flex; flex-direction: column; gap: 11px; margin-top: 28px; }
.choice { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: linear-gradient(90deg, var(--ink-2), #2f251c); color: var(--parchment); border: 1px solid var(--gold);
  padding: 15px 18px; border-radius: var(--radius); cursor: pointer; font-size: 1.04rem; line-height: 1.45; transition: transform .18s var(--ease), background .2s, box-shadow .2s; animation: reveal .7s var(--ease) both; position: relative; overflow: hidden; }
.choice::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(232,196,108,.18), transparent); transform: translateX(-100%); transition: transform .6s; }
.choice:hover::before { transform: translateX(100%); }
.choice:hover { background: linear-gradient(90deg, var(--red), #6a1e1c); transform: translateX(6px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.choice.is-picked { background: var(--red); box-shadow: 0 0 0 3px var(--gold-soft); }
.choice__key { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-soft); font-family: var(--f-head); font-size: .85rem; }
.choice__text { flex: 1; }
.choice__tag { flex: none; font-size: .72rem; color: var(--gold-soft); border: 1px solid rgba(201,154,46,.5); padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }
.choice__arrow { color: var(--gold-soft); font-size: 1.4rem; transition: transform .2s; }
.choice:hover .choice__arrow { transform: translateX(4px); }
.choice:disabled { opacity: .45; cursor: not-allowed; transform: none; background: var(--ink-2); }
.choices__lock { color: var(--muted); font-size: .92rem; }

/* =========================================================
   MINIHRY – spoločné
   ========================================================= */
.stage:empty { display: none; }
.stage { margin-top: 20px; animation: reveal .9s .3s var(--ease) both; }
.panel { position: relative; background: linear-gradient(180deg, #2a2119, #1c1610); color: var(--parchment); border: 1px solid var(--gold); border-radius: 14px; padding: 20px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 12px 30px rgba(0,0,0,.25); }
.panel h3 { color: var(--gold-soft); font-size: 1.12rem; margin-bottom: 6px; }
.panel__hint { color: #d3c19d; font-size: .95rem; line-height: 1.55; margin-bottom: 16px; }
.panel__status { min-height: 1.5em; margin-top: 14px; font-weight: 600; color: var(--gold-soft); }
.panel.is-solved { box-shadow: 0 0 0 2px var(--gold-soft), 0 0 40px rgba(232,196,108,.25); animation: solved 1.2s var(--ease); }
@keyframes solved { 30% { transform: scale(1.012); } }
.panel__row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -50%) rotate(-4deg) scale(1.08); opacity: .92; box-shadow: 0 16px 30px rgba(0,0,0,.45); }
.is-dragging { opacity: .35; }
.is-locked { pointer-events: none; }

/* Váhy */
.scales-wrap { position: relative; max-width: 540px; margin: 0 auto; touch-action: none; }
.scales-svg { width: 100%; height: auto; display: block; overflow: visible; }
.sc-pan-click { cursor: pointer; }
.sc-total { position: absolute; right: 6%; top: 4%; min-width: 56px; padding: 6px 10px; text-align: center; font-family: var(--f-head); font-weight: 800; font-size: 1.4rem; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid var(--gold); color: var(--gold-soft); transition: background .3s, color .3s; }
.sc-total::after { content: " / 7"; font-size: .8rem; color: #a8977a; }
.sc-total.is-ok { background: var(--green); color: #fff; } .sc-total.is-over { background: var(--red); color: #fff; }
.panel.is-solved .scales-wrap { animation: glow 1.6s ease-out; }
@keyframes glow { 30% { filter: drop-shadow(0 0 22px rgba(242,207,115,.8)); } }
.counter { margin-top: 10px; background: linear-gradient(180deg, #6b4524, #3d2614); border-radius: 10px; padding: 10px 12px 14px; border: 1px solid #2a180b; box-shadow: inset 0 2px 0 rgba(255,255,255,.08); }
.counter__label { font-family: var(--f-head); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #e6c98f; margin-bottom: 8px; }
.counter__items { display: flex; flex-wrap: wrap; gap: 8px; }
.piece { background: rgba(0,0,0,.18); border: 1px dashed rgba(255,230,180,.25); border-radius: 8px; padding: 4px; cursor: grab; touch-action: none; transition: transform .15s; }
.piece:hover { transform: translateY(-3px) rotate(-2deg); }
.piece--hrivna { width: 86px; height: 36px; } .piece--platienko { width: 54px; height: 38px; }
.piece svg { width: 100%; height: 100%; display: block; pointer-events: none; }

/* Hlaholika */
.parchment-strip { background: linear-gradient(180deg, #f3e6c4, #e1cd9e); border-radius: 10px; padding: 14px 10px; margin: 6px 0 18px; box-shadow: inset 0 0 30px rgba(120,80,30,.35); transition: box-shadow .6s; }
.parchment-strip.is-glow { box-shadow: inset 0 0 30px rgba(120,80,30,.35), 0 0 40px rgba(242,207,115,.6); }
.glag-target { display: flex; gap: 10px; justify-content: center; }
.glag-slot { position: relative; width: 64px; height: 80px; border: 2px dashed #8b6516; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-glag); font-size: 2.4rem; color: var(--red); background: rgba(255,255,255,.3); }
.glag-slot small { position: absolute; bottom: 4px; font-family: var(--f-head); font-size: .7rem; color: #8b6516; }
.glag-slot.is-filled { border-style: solid; background: rgba(255,255,255,.55); animation: pop .35s; text-shadow: 0 0 10px rgba(242,207,115,.8); }
.glag-tiles { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.glag-tile { width: 84px; padding: 8px 4px; border-radius: 10px; border: 2px solid var(--gold); cursor: grab; touch-action: none; display: flex; flex-direction: column; align-items: center; transition: transform .15s, opacity .3s;
  background: linear-gradient(180deg, #fbf3df, #e9d7ad); color: var(--text); box-shadow: inset 0 0 0 3px #fbf3df, inset 0 0 0 4px rgba(125,36,34,.35); }
.glag-tile:hover { transform: translateY(-3px) rotate(-2deg); }
.glag-tile b { font-family: var(--f-glag); font-size: 2rem; font-weight: 400; line-height: 1.2; color: var(--red); }
.glag-tile small { font-size: .78rem; color: var(--muted); }
.glag-tile.is-used { opacity: .2; }

/* Strážne ohne */
.beacon-scene { border-radius: 10px; overflow: hidden; border: 1px solid #000; }
.beacon-svg { width: 100%; display: block; }
.b-star { animation: twinkle 2.6s infinite; } @keyframes twinkle { 50% { opacity: .2; } }
.b-cloud { animation: cloud 40s linear infinite alternate; } @keyframes cloud { to { transform: translateX(60px); } }
.b-fog { animation: fog 8s ease-in-out infinite alternate; } @keyframes fog { to { opacity: .5; } }
.bc { cursor: pointer; }
.bc-halo { opacity: 0; transition: opacity .6s; }
.bc-flame { transform-origin: 0 10px; transform: scale(0); transition: transform .5s cubic-bezier(.2,1.6,.4,1); }
.bc-smoke { opacity: 0; }
.bc.is-lit .bc-halo { opacity: 1; animation: flicker 1.2s infinite; }
.bc.is-lit .bc-flame { transform: scale(1); animation: flame .35s infinite alternate; }
.bc.is-lit .bc-smoke { opacity: 1; animation: smoke 3s infinite; }
.bc.is-lit .bc-ring, .bc.is-lit .bc-num { opacity: 0; }
@keyframes flame { to { transform: scale(1.06, .94) skewX(4deg); } }
@keyframes smoke { from { transform: translateY(0); opacity: .8; } to { transform: translateY(-30px) translateX(10px); opacity: 0; } }
.bc-ring { transform-origin: center; transform-box: fill-box; transition: opacity .3s; opacity: .45; }
.bc.is-next .bc-ring { opacity: 1; animation: ring 1.2s infinite; stroke: #fff2b0; }
@keyframes ring { 50% { transform: scale(1.25); } }
.bc-num, .bc-label { font-family: var(--f-head); font-weight: 800; font-size: 15px; fill: #f3e7c8; paint-order: stroke; stroke: #000; stroke-width: 3px; }
.bc-label { font-size: 12px; font-weight: 700; }
.b-rider { animation: gallop .3s infinite alternate; } @keyframes gallop { to { transform: translateY(-3px); } }
#bc-riders.is-retreat { transition: opacity 1.5s; opacity: 0; }
.bc-timer { height: 8px; background: #0b0e14; } .bc-timer span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #e2bd62, #ff8a1a); transition: background .3s; }
.bc-timer span.is-low { background: linear-gradient(90deg, #c4473f, #ff3a1a); animation: flicker .6s infinite; }

/* Baňa */
.mine { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #000; }
.mine__cv { width: 100%; display: block; cursor: none; touch-action: none; }
.mine__hud { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 10px 14px; font-family: var(--f-head); color: #f3e7c8; pointer-events: none; text-shadow: 0 1px 4px #000; }
.mine__oil i { display: inline-block; width: 120px; height: 8px; border: 1px solid #c99a2e; border-radius: 4px; margin-left: 6px; vertical-align: middle; overflow: hidden; }
.mine__oil b { display: block; height: 100%; background: linear-gradient(90deg, #ff8a1a, #ffd36b); }

/* Mincovňa */
.mint__svg { width: 100%; display: block; border-radius: 10px; }
.mint__forge { animation: flicker 1.4s infinite; }
.spark { animation: spark .5s ease-out forwards; } @keyframes spark { to { opacity: 0; } }
#mt-big { transition: opacity 1s, transform 1s cubic-bezier(.2,1.4,.4,1); transform-origin: 110px 130px; }
#mt-big.is-show { opacity: 1; animation: coin-spin 1.4s var(--ease); }
@keyframes coin-spin { from { transform: translate(110px,130px) scale(.2) rotateY(180deg); } to { transform: translate(110px,130px) scale(1); } }
.mint__meter { position: relative; height: 22px; margin: 14px auto 8px; max-width: 420px; border-radius: 11px; background: linear-gradient(90deg, #5a1a18, #2a1a0e 40%, #2a1a0e 60%, #5a1a18); border: 1px solid var(--gold); overflow: hidden; }
.mint__zone { position: absolute; left: 41%; width: 18%; top: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(242,207,115,.85), transparent); }
.mint__needle { position: absolute; top: -2px; bottom: -2px; width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 10px #fff; }
.mint__strikes { display: flex; gap: 8px; justify-content: center; }
.mint__strikes span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold); }
.mint__strikes .is-good { background: var(--gold-soft); box-shadow: 0 0 10px var(--gold-soft); } .mint__strikes .is-bad { background: var(--red-2); }
.mint__btn { display: block; margin: 12px auto 0; }

/* Tlačiareň */
.press__case { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; padding: 10px; background: linear-gradient(180deg, #5a3a1c, #3a2412); border-radius: 10px; border: 1px solid #1d1209; box-shadow: inset 0 3px 10px rgba(0,0,0,.4); }
.type { height: 58px; border-radius: 6px; border: 1px solid #1a1612; cursor: grab; touch-action: none; background: linear-gradient(180deg, #a7a39c, #6d6a64); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 0 #3a3733; transition: transform .12s; }
.type:hover { transform: translateY(-2px); }
.type span { display: inline-block; transform: scaleX(-1); font-family: var(--f-head); font-weight: 800; font-size: 1.6rem; color: #2a2724; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.type.is-used { opacity: .15; }
.press__stick { display: flex; gap: 4px; justify-content: center; margin: 14px 0; padding: 10px; background: linear-gradient(180deg, #8d8a85, #55524d); border-radius: 6px; min-height: 76px; border: 2px solid #33302c; }
.press__stick i { width: 46px; height: 56px; border: 1px dashed rgba(255,255,255,.35); border-radius: 4px; display: grid; place-items: center; font-style: normal; }
.press__stick i.is-set { border-style: solid; background: linear-gradient(180deg, #b7b3ac, #7b7872); animation: pop .3s; }
.press__stick i span { display: inline-block; transform: scaleX(-1); font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; color: #1d1b19; }
.press__machine { position: relative; height: 130px; margin-top: 34px; display: grid; place-items: center; }
.press__platen { position: absolute; top: 0; left: 15%; right: 15%; height: 24px; background: linear-gradient(180deg, #3a3733, #1c1a18); border-radius: 4px; transform: translateY(-30px); transition: transform .6s cubic-bezier(.6,0,.4,1); }
.press__platen.is-down { animation: press 1.2s ease-in-out; }
@keyframes press { 50% { transform: translateY(40px); } }
.press__paper { width: 70%; height: 70px; background: #f6efdc; border-radius: 2px; box-shadow: 0 6px 16px rgba(0,0,0,.4); display: grid; place-items: center; }
.press__paper span { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.2rem); letter-spacing: .12em; color: #1a1612; opacity: 0; filter: blur(2px); transition: opacity .8s, filter .8s; }
.press__paper.is-printed span { opacity: 1; filter: none; }

/* Vysielačka */
.radio__set { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: linear-gradient(180deg, #4a4033, #2a241c); border: 2px solid #1a1510; box-shadow: inset 0 2px 0 rgba(255,255,255,.08); }
.radio__grille { height: 54px; border-radius: 8px; background: repeating-linear-gradient(0deg, #1a1510 0 3px, #3a3228 3px 6px); grid-column: 1 / -1; }
.radio__dial { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e9dcc0, #8d7e66); border: 3px solid #1a1510; position: relative; animation: dial 6s ease-in-out infinite alternate; }
.radio__dial i { position: absolute; left: 50%; top: 6px; width: 3px; height: 20px; margin-left: -1.5px; background: #7d2422; }
@keyframes dial { to { transform: rotate(40deg); } }
.radio__lamp { width: 22px; height: 22px; border-radius: 50%; background: #3a1e10; border: 2px solid #1a1510; transition: background .05s, box-shadow .05s; }
.radio__lamp.on { background: #ffcf5a; box-shadow: 0 0 20px #ffcf5a, 0 0 40px #ff9a30; }
.radio__code { font-family: monospace; font-size: 1.8rem; letter-spacing: .3em; color: #9ef08a; text-shadow: 0 0 10px #4ad13a; min-width: 6em; }
.radio__msg { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.radio__msg i { width: 46px; height: 56px; border-bottom: 3px solid var(--gold); display: grid; place-items: center; font-style: normal; font-family: var(--f-head); font-weight: 800; font-size: 1.7rem; color: #fff4dc; }
.radio__msg i.is-set { animation: pop .3s; color: #9ef08a; }
.radio__keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.mkey { padding: 8px; border-radius: 8px; background: #efe2c3; color: var(--text); border: 2px solid #8b6516; cursor: pointer; transition: transform .12s; display: flex; flex-direction: column; align-items: center; }
.mkey:hover { transform: translateY(-2px); }
.mkey b { font-family: var(--f-head); font-size: 1.3rem; } .mkey small { font-size: .95rem; letter-spacing: .1em; color: var(--red); }

/* Hory */
.stealth { border-radius: 10px; overflow: hidden; border: 1px solid #000; }
.stealth__svg { width: 100%; display: block; }
.st-cell { fill: #e9eff1; stroke: #c9d4d8; stroke-width: 1; transition: fill .3s; }
.st-cell.is-seen { fill: #ffe7a0; }
.st-cell.is-adj { fill: #cfe5d0; cursor: pointer; stroke: #4f6b3a; stroke-width: 2; }
.st-cell.is-adj:hover { fill: #a9d3ab; }
.st-cell.is-adj.is-seen { fill: #ffc9a0; stroke: #c4473f; }
.st-lamp { animation: flicker 1s infinite; } .st-fire { animation: flicker .8s infinite; }
.st-me { transition: transform .25s; }

/* Kľúče */
.rhythm { position: relative; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #0b1020, #1d2338 60%, #2a2030); padding-bottom: 14px; }
.rhythm__sky { height: 60px; background: radial-gradient(circle at 80% 40%, rgba(255,250,230,.6) 0 3px, transparent 4px), radial-gradient(circle at 20% 30%, rgba(255,250,230,.6) 0 2px, transparent 3px); }
.rhythm__crowd { position: relative; height: 120px; --glow: 0; }
.rhythm__crowd i { position: absolute; bottom: 0; width: 3.2%; background: #05060a; border-radius: 50% 50% 0 0; animation: sway 1.24s ease-in-out infinite alternate; }
.rhythm__crowd i b { position: absolute; top: -10px; left: 30%; width: 5px; height: 9px; border-radius: 2px; background: #ffd77a; box-shadow: 0 0 10px #ffb030; opacity: calc(.2 + var(--glow)); animation: flicker 1.5s infinite; }
.rhythm__crowd.is-full i { animation-duration: .62s; }
@keyframes sway { to { transform: translateY(-6px) rotate(2deg); } }
.rhythm__lane { position: relative; height: 70px; margin: 14px 16px 0; border-radius: 35px; background: rgba(255,255,255,.06); border: 1px solid rgba(232,196,108,.4); cursor: pointer; }
.rhythm__target { position: absolute; right: 8px; top: 5px; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(232,196,108,.12); border: 2px solid var(--gold-soft); }
.rhythm__target svg { width: 44px; height: 44px; }
.rhythm__target.pulse { animation: ring .3s; }
.rhythm__note { position: absolute; top: 22px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #fff2b0, #ff9a30); box-shadow: 0 0 16px #ffb030; transform: translateX(-50%); }
.rhythm__note.is-hit { animation: note-hit .4s forwards; } @keyframes note-hit { to { transform: translateX(-50%) scale(2.5); opacity: 0; } }
.rhythm__foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 0; color: #f3e7c8; }
.rhythm__score { font-family: var(--f-head); font-size: 1.3rem; }

/* Triedenie */
.sort__cards { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; min-height: 10px; }
.card { padding: 10px 14px; border-radius: 10px; background: #f6ecd2; color: var(--text); border: 1px solid #b89a5f; cursor: grab; touch-action: none; font-size: .95rem; box-shadow: 0 3px 0 #b89a5f; transition: transform .12s, box-shadow .12s; text-align: left; }
.card:hover { transform: translateY(-2px) rotate(-1deg); }
.card.is-sel { box-shadow: 0 0 0 3px var(--gold-soft), 0 3px 0 #b89a5f; }
.card.is-ok { background: #dfe9d2; border-color: var(--green); box-shadow: none; cursor: default; font-size: .86rem; padding: 6px 10px; }
.sort__bins { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 10px; }
.bin { border: 2px dashed rgba(232,196,108,.6); border-radius: 12px; padding: 10px; min-height: 120px; cursor: pointer; transition: background .2s; }
.bin:hover { background: rgba(232,196,108,.08); }
.bin.pulse { animation: solved .5s; }
.bin__label { font-family: var(--f-head); font-weight: 700; color: var(--gold-soft); font-size: .9rem; margin-bottom: 8px; text-align: center; }
.bin__drop { display: flex; flex-wrap: wrap; gap: 6px; }

/* Kvíz */
.quiz__q { font-size: 1.12rem; margin: 10px 0 14px; font-weight: 600; }
.quiz__bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; } .quiz__bar span { display: block; height: 100%; background: var(--gold-soft); border-radius: 2px; transition: width .5s; }
.quiz__opts { display: grid; gap: 8px; }
.quiz__opt { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(201,154,46,.6); background: rgba(255,255,255,.04); cursor: pointer; color: var(--parchment); transition: background .2s, transform .15s; }
.quiz__opt b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); font-family: var(--f-head); font-size: .8rem; color: var(--gold-soft); }
.quiz__opt:hover:not(:disabled) { background: rgba(201,154,46,.15); transform: translateX(4px); }
.quiz__opt.is-right { background: var(--green); border-color: #9fc27e; animation: pop .4s; } .quiz__opt.is-wrong { background: var(--red); animation: shake .4s; }
.quiz__expl { margin-top: 12px; color: #e3d5b5; font-size: .95rem; line-height: 1.6; }
.quiz__count { font-family: var(--f-head); font-size: .76rem; letter-spacing: .14em; color: var(--gold-soft); margin-bottom: 8px; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 8px; }
.summary__cell { background: rgba(255,255,255,.05); border: 1px solid rgba(201,154,46,.4); border-radius: 10px; padding: 14px; }
.summary__cell span { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-soft); font-family: var(--f-head); }
.summary__cell b { font-size: 1.4rem; font-family: var(--f-head); }
.endings { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.endings span { padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(201,154,46,.5); font-size: .85rem; color: #9d8b6e; }
.endings span.is-found { color: var(--parchment); background: var(--red); border-color: var(--gold); }

/* Mapa – tlačidlo zväčšenia a klikateľné trasy */
.map-zoom { position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(42,34,27,.88); color: var(--parchment); font-size: .78rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--gold); cursor: pointer; }
.m-hit { fill: none; stroke: transparent; stroke-width: 26; cursor: pointer; pointer-events: stroke; }
.m-route.is-hover { stroke-width: 7; filter: drop-shadow(0 0 6px rgba(255,220,140,.9)); }
.m-city { cursor: pointer; }

/* ---------- tooltip, kronika, toasty ---------- */
.tip { position: fixed; z-index: 60; max-width: 330px; background: var(--ink-2); color: var(--parchment); border: 1px solid var(--gold); border-radius: 12px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(0,0,0,.5); font-size: .93rem; line-height: 1.55; pointer-events: none; animation: reveal .25s; }
.tip strong { display: block; font-family: var(--f-head); color: var(--gold-soft); margin-bottom: 4px; letter-spacing: .04em; }
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--parchment); border-left: 3px solid var(--gold); padding: 22px; overflow-y: auto; transform: translateX(100%); transition: transform .4s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer__head h3 { color: var(--red); } .drawer__head .icon-btn { color: var(--ink-3); border-color: var(--gold); }
.drawer__hint { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.chron-era { border-top: 2px solid var(--parchment-3); padding: 10px 0; }
.chron-era summary { cursor: pointer; font-family: var(--f-head); font-weight: 700; color: var(--ink-3); display: flex; justify-content: space-between; }
.chron-era summary span { color: var(--muted); font-size: .85rem; }
.entry { border-top: 1px solid var(--parchment-3); padding: 10px 0; }
.entry h4 { font-size: .96rem; color: var(--ink-3); margin-bottom: 4px; }
.entry .tag { font-style: normal; font-family: var(--f-body); font-size: .7rem; background: var(--red); color: #fff; padding: 1px 6px; border-radius: 999px; vertical-align: middle; }
.entry p { font-size: .92rem; line-height: 1.6; }
.entry--locked h4 { color: #b0a084; font-weight: 500; }
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 480px; pointer-events: none; }
.toast { background: var(--ink-2); color: var(--parchment); border: 1px solid var(--gold); border-radius: 12px; padding: 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: .95rem; animation: toast-in .4s cubic-bezier(.2,1.3,.4,1); display: flex; gap: 10px; align-items: center; }
.toast--bad { border-color: var(--red-2); } .toast--good { border-color: #9fc27e; }
.toast.is-leaving { animation: toast-out .3s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- mobil ---------- */
@media (max-width: 680px) {
  .screen--game.is-active { padding: 0 0 30px; }
  .app { border-radius: 0; border-left: 0; border-right: 0; }
  .visual { aspect-ratio: 4 / 3.3; }
  .hud { gap: 8px 12px; padding: 8px 12px; }
  .hud__group--inv { order: 3; flex-basis: 100%; }
  .trust__pip { width: 20px; height: 20px; }
  .story { padding: 22px 16px 30px; }
  .story__text { font-size: 1.04rem; }
  .panel { padding: 14px; }
  .glag-slot { width: 50px; height: 66px; font-size: 1.9rem; } .glag-tile { width: 70px; }
  .era-card { flex-basis: 82vw; }
  .radio__set { grid-template-columns: 1fr auto; } .radio__code { grid-column: 1 / -1; }
  .intro-text { left: 16px; right: 16px; bottom: 24px; }
  .intro-shade { background: linear-gradient(0deg, rgba(5,4,3,.95) 30%, rgba(5,4,3,.3) 75%, rgba(5,4,3,.1)); }
  .sort__bins { grid-template-columns: 1fr; }
  .press__stick i { width: 34px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
/* Mapa */
.panel--map { padding: 18px; }
.map-frame { border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(201,154,46,.4); background: #efe0bb; }
.chart-map { width: 100%; height: auto; display: block; }
.m-realm text, text.m-realm { font-family: var(--f-head); font-size: 22px; letter-spacing: 4px; fill: #6b4a10; font-weight: 800; paint-order: stroke; stroke: #f3e7c8; stroke-width: 6px; stroke-linejoin: round; }
.m-realm .m-realm--gold { fill: #7a5410; }
.m-realm .m-realm--small { font-size: 14px; letter-spacing: 2px; stroke-width: 4px; }
.m-realm .m-realm--tight { font-size: 18px; letter-spacing: 2px; }
text.m-realm--red { fill: #7d2422; font-size: 23px; letter-spacing: 3px; }
.m-sea text { font-family: var(--f-body); font-size: 18px; font-weight: 600; fill: #1f3d39; letter-spacing: 1.5px; paint-order: stroke; stroke: #c6d6cf; stroke-width: 5px; stroke-linejoin: round; }
.m-sea .m-sea--small { font-size: 15px; }
.m-sea .m-river { fill: #1f4a5a; font-size: 16px; stroke: #f3e7c8; }
.m-label { font-family: var(--f-head); font-size: 18px; font-weight: 800; fill: #1e1208; paint-order: stroke; stroke: #f6ecd2; stroke-width: 6px; stroke-linejoin: round; }
.m-compass { font-family: var(--f-head); font-size: 15px; font-weight: 800; fill: #4a2f10; }
.m-cart { font-family: var(--f-head); font-size: 17px; font-weight: 800; letter-spacing: 3px; fill: #fff4dc; }
.m-cart-sub { font-family: var(--f-body); font-size: 13px; font-weight: 600; fill: #f6d27a; letter-spacing: 2px; }
.m-scale text { font-family: var(--f-body); font-size: 14px; font-weight: 600; fill: #1e1208; paint-order: stroke; stroke: #f3e7c8; stroke-width: 4px; }
.m-bang { font-family: var(--f-head); font-size: 15px; font-weight: 800; fill: #7d2422; }
.map-frame { position: relative; }
.map-frame.is-zoomed { position: fixed; inset: 0; z-index: 80; border-radius: 0; background: rgba(10,8,6,.92); display: grid; place-items: center; padding: 12px; }
.map-frame.is-zoomed .chart-map { max-width: min(100%, 160vh); max-height: 100%; border-radius: 8px; }
.m-route { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.m-route--danube { stroke: #8f2b27; stroke-dasharray: 10 7; }
.m-route--sea { stroke: #1f5f74; stroke-dasharray: 10 7; }
.m-route--sea.is-unknown { stroke: #6b5a49; opacity: .22; stroke-dasharray: 3 8; }
.m-route--rome { stroke: #6b5a49; stroke-dasharray: 3 7; opacity: .45; }
.m-route--rome.is-tried { stroke: #7d2422; opacity: .6; }
.m-route.is-drawing { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 3.2s ease-in-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.m-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.m-danger { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }
.compass { transform-box: fill-box; transform-origin: center; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: .88rem; color: #cdbb98; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 34px; height: 0; border-top: 4px dashed; display: inline-block; }
.lg--danube { border-color: #c4473f; }
.lg--sea { border-color: #4d97ae; }
.lg--sea.is-off { border-color: #6b5a49; border-top-style: dotted; }
.lg--rome { border-color: #a8977a; border-top-style: dotted; }

/* šípky časovej osi */
.tl-nav { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(20,14,9,.85); color: var(--gold-soft); font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; transition: transform .2s, background .2s; }
.tl-nav:hover { transform: scale(1.1); background: var(--red); }
.tl-nav--l { left: 12px; } .tl-nav--r { right: 12px; }
.hub-stage { position: relative; }
@media (max-width: 680px) { .tl-nav { display: none; } }
.bc:focus { outline: none; } .bc:focus-visible .bc-ring { stroke: #fff; opacity: 1; }
@media (max-width: 680px) { .era-badge { font-size: .58rem; max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .progress span { width: 12px; } }

/* =========================================================
   ÚVOD – orloj času
   ========================================================= */
.screen--title.is-active { display: block; padding: 0; min-height: 100vh; place-items: initial; }
.title-montage, .title-flash, .title-shade { position: absolute; inset: 0; }
.title-montage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; filter: saturate(.85) brightness(.75); }
.title-montage video.is-on { opacity: 1; }
.title-flash { background-size: cover; background-position: center; opacity: 0; filter: saturate(.8) brightness(.6); }
.title-flash.is-on { animation: flash-img 1.1s ease-out; }
@keyframes flash-img { 0% { opacity: 0; } 25% { opacity: .75; } 100% { opacity: 0; } }
.title-shade { background: radial-gradient(ellipse at 32% 50%, rgba(10,7,4,.25) 0%, rgba(10,7,4,.78) 55%, rgba(6,4,2,.96) 100%), linear-gradient(90deg, rgba(6,4,2,.3), rgba(6,4,2,.75)); pointer-events: none; }
.title-stage { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 1.05fr) 1fr; align-items: center; gap: clamp(20px, 4vw, 70px); padding: 40px clamp(20px, 5vw, 80px); max-width: 1400px; margin: 0 auto; }
.orloj-col { position: relative; display: grid; justify-items: center; }
.orloj-wrap { width: min(42vw, 78vh, 640px); aspect-ratio: 1; opacity: 0; transform: scale(.82) rotate(-8deg); filter: drop-shadow(0 30px 60px rgba(0,0,0,.8)) drop-shadow(0 0 40px rgba(201,154,46,.25)); transition: opacity 1.6s ease, transform 2.2s var(--ease); }
.is-running .orloj-wrap { opacity: 1; transform: none; }
.orloj { width: 100%; height: 100%; display: block; overflow: visible; }
.or-num { font-family: var(--f-head); font-weight: 800; font-size: 19px; fill: #f6dc8e; text-anchor: middle; dominant-baseline: middle; }
.or-year { font-family: var(--f-head); font-weight: 800; font-size: 15px; fill: #f6dc8e; text-anchor: middle; paint-order: stroke; stroke: #120c06; stroke-width: 4px; }
.or-g1, .or-g2, .or-g3, .or-g4, .or-g5 { transform-box: fill-box; transform-origin: center; }
.or-g1 { animation: spin 40s linear infinite; } .or-g2 { animation: spin 28s linear infinite reverse; } .or-g3 { animation: spin 34s linear infinite reverse; } .or-g4 { animation: spin 18s linear infinite; } .or-g5 { animation: spin 14s linear infinite reverse; }
.is-running:not(.is-landed) .or-g1 { animation-duration: 6s; } .is-running:not(.is-landed) .or-g2 { animation-duration: 4s; } .is-running:not(.is-landed) .or-g3 { animation-duration: 5s; } .is-running:not(.is-landed) .or-g4 { animation-duration: 2.5s; } .is-running:not(.is-landed) .or-g5 { animation-duration: 2s; }
.or-ring { transform-origin: 300px 300px; animation: spin 240s linear infinite reverse; }
.or-tymp { transform-origin: 300px 300px; animation: spin 120s linear infinite; }
.or-moon { transform-origin: 300px 300px; animation: spin 60s linear infinite; }
.or-sun { animation: spin 20s linear infinite; transform-box: fill-box; transform-origin: center; }
.or-aura { animation: aura 4s ease-in-out infinite; transform-origin: 300px 300px; } @keyframes aura { 50% { opacity: .16; transform: scale(1.03); } }
.or-med { color: #e8c46c; transition: filter .4s; }
.or-med__halo { fill: #f6c84a; opacity: 0; transition: opacity .3s; filter: blur(8px); }
.or-med.is-lit .or-med__halo { opacity: .9; } .or-med.is-lit { filter: brightness(1.4); }
.or-med.was-lit .or-med__ico { color: #fff4cc; }
.is-landed .or-med[data-era="samo"] .or-med__halo { opacity: .7; animation: flicker 2s infinite; }
.title-counter { margin-top: 18px; text-align: center; opacity: 0; transition: opacity 1s .8s; }
.is-running .title-counter { opacity: 1; }
.title-year { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.4rem); color: #f6dc8e; letter-spacing: .08em; text-shadow: 0 0 30px rgba(246,200,74,.45); font-variant-numeric: tabular-nums; line-height: 1; }
.title-era-name { display: block; font-family: var(--f-head); letter-spacing: .3em; text-transform: uppercase; font-size: .82rem; color: #cdbb98; min-height: 1.4em; margin-top: 6px; }
.title-era-name.pop, .title-montage-label.pop { animation: rise .7s var(--ease) both; }
.title-card { text-align: left; max-width: 560px; color: var(--parchment); }
.title-card > * { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); animation: none; }
.is-landed .title-card > * { opacity: 1; transform: none; }
.is-landed .title-card > *:nth-child(2) { transition-delay: .15s; } .is-landed .title-card > *:nth-child(3) { transition-delay: .5s; } .is-landed .title-card > *:nth-child(4) { transition-delay: .8s; } .is-landed .title-card > *:nth-child(5) { transition-delay: 1s; } .is-landed .title-card > *:nth-child(6) { transition-delay: 1.2s; }
.title-card h1 { font-size: clamp(3rem, 7.5vw, 6.2rem); line-height: .95; margin: 14px 0 22px; color: #f6e2ad; text-shadow: 0 0 50px rgba(201,154,46,.4), 0 6px 30px rgba(0,0,0,.8); }
.title-card h1 span { display: inline-block; }
.is-landed .title-card h1 span { animation: title-in 1.8s var(--ease) both; } .is-landed .title-card h1 span + span { animation-delay: .35s; }
.title-card .title-lead { font-size: 1.14rem; } .title-card .title-lead b { color: #f6dc8e; font-weight: 600; }
.title-card .title-actions { justify-content: flex-start; }
.btn--glow { position: relative; box-shadow: 0 0 0 0 rgba(232,196,108,.6); animation: glowpulse 2.4s infinite; }
@keyframes glowpulse { 0% { box-shadow: 0 0 0 0 rgba(232,196,108,.55); } 70% { box-shadow: 0 0 0 18px rgba(232,196,108,0); } 100% { box-shadow: 0 0 0 0 rgba(232,196,108,0); } }
.title-eras { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.title-eras span { font-size: .78rem; color: #a8977a; border: 1px solid rgba(201,154,46,.35); border-radius: 999px; padding: 4px 10px; transition: all .4s; }
.title-eras span b { font-family: var(--f-head); color: #e8c46c; margin-right: 6px; }
.title-eras span.is-on { background: rgba(155,48,44,.85); color: #fff4dc; border-color: var(--gold-soft); }
.title-montage-label { margin-top: 10px; font-family: var(--f-head); letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; color: #cdbb98; min-height: 1.2em; }
.title-skip { position: absolute; z-index: 5; right: 18px; bottom: 18px; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.25); color: #f1e6cc; border-radius: 999px; padding: 8px 16px; cursor: pointer; font-family: var(--f-head); letter-spacing: .08em; font-size: .78rem; opacity: 0; pointer-events: none; transition: opacity .5s; }
.is-running:not(.is-landed) .title-skip { opacity: 1; pointer-events: auto; }
.title-gate { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #1a120a 0%, #050302 70%); cursor: pointer; transition: opacity 1.2s ease, visibility 1.2s; }
.is-running .title-gate { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-inner { text-align: center; color: #cdbb98; animation: rise 1.4s var(--ease) both; }
.gate-ico { width: 64px; margin-bottom: 18px; animation: aura 3s ease-in-out infinite; }
.gate-kicker { font-family: var(--f-head); letter-spacing: .5em; text-transform: uppercase; color: #e8c46c; font-size: .9rem; }
.gate-text { font-size: 1.2rem; margin: 14px 0 26px; color: #f1e6cc; }
.gate-cta { font-family: var(--f-head); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; color: #e8c46c; border: 1px solid rgba(232,196,108,.5); border-radius: 999px; padding: 12px 24px; display: inline-block; animation: glowpulse 2.4s infinite; }
@media (max-width: 860px) {
  .title-stage { grid-template-columns: 1fr; gap: 10px; padding: 28px 16px 60px; text-align: center; }
  .orloj-wrap { width: min(86vw, 52vh); }
  .title-card { text-align: center; margin: 0 auto; }
  .title-card .title-actions, .title-eras { justify-content: center; }
}

/* úvod – plnšia scéna */
.title-stage { grid-template-areas: "orloj card" "cards cards"; grid-template-rows: 1fr auto; }
.orloj-col { grid-area: orloj; } .title-card, .title-teaser { grid-area: card; }
.title-cards { grid-area: cards; }
.title-rays { position: absolute; z-index: 1; left: 30%; top: 46%; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity 2s;
  background: repeating-conic-gradient(from 0deg, rgba(246,200,74,.09) 0deg 4deg, transparent 4deg 15deg); -webkit-mask: radial-gradient(circle, #000 0%, transparent 55%); mask: radial-gradient(circle, #000 0%, transparent 55%); animation: spin 90s linear infinite; }
.is-running .title-rays { opacity: 1; }
.title-teaser { align-self: center; max-width: 520px; color: var(--parchment); opacity: 0; pointer-events: none; }
.title-teaser.is-on { animation: teaser 2.2s var(--ease) both; }
@keyframes teaser { 0% { opacity: 0; transform: translateX(-24px); filter: blur(8px); } 18% { opacity: 1; transform: none; filter: none; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateX(10px); filter: blur(4px); } }
.is-landed .title-teaser { display: none; }
.tz-year { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; color: #f6dc8e; text-shadow: 0 0 40px rgba(246,200,74,.4); }
.tz-name { display: block; font-family: var(--f-head); letter-spacing: .3em; text-transform: uppercase; color: #e8c46c; margin: 8px 0 16px; font-size: .95rem; }
.tz-line { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; color: #f1e6cc; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.title-card { display: none; } .is-landed .title-card { display: block; }
.title-counter { display: none; }
.title-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 4px; opacity: 0; transform: translateY(30px); transition: opacity 1.2s 1.4s var(--ease), transform 1.2s 1.4s var(--ease); pointer-events: none; }
.is-landed .title-cards { opacity: 1; transform: none; pointer-events: auto; }
.tc-card { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid rgba(232,196,108,.45); background-size: cover; background-position: center; cursor: pointer; overflow: hidden; text-align: left; box-shadow: 0 14px 30px rgba(0,0,0,.6); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.tc-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(8,5,3,.92)); transition: background .35s; }
.tc-card:hover, .tc-card.is-on { transform: translateY(-6px) scale(1.03); border-color: var(--gold-soft); box-shadow: 0 20px 40px rgba(0,0,0,.7), 0 0 30px rgba(246,200,74,.3); }
.tc-card:hover::before { background: linear-gradient(transparent 10%, rgba(125,36,34,.85)); }
.tc-year, .tc-name { position: relative; display: block; padding: 0 12px; }
.tc-year { font-family: var(--f-head); font-weight: 800; color: #f6dc8e; font-size: 1.15rem; margin-top: auto; padding-top: 0; position: absolute; left: 0; bottom: 30px; }
.tc-name { position: absolute; left: 0; bottom: 10px; font-size: .82rem; color: #f1e6cc; }
.is-landed .title-cards .tc-card { animation: card-in .8s var(--ease) both; animation-delay: calc(1.4s + var(--i) * .1s); }
@media (max-width: 860px) {
  .title-stage { grid-template-areas: "orloj" "card" "cards"; }
  .title-teaser { text-align: center; margin: 0 auto; }
  .title-cards { grid-template-columns: repeat(3, 1fr); }
  .title-rays { left: 50%; top: 22%; }
}
.title-rays { left: 28%; top: 40%; }
.title-teaser.is-on { animation-duration: 2.8s; }
.tc-card { background-color: #2a1d14; }
.title-eras { display: none; }
@media (max-width: 860px) { .title-rays { left: 50%; top: 20%; } .tc-year { font-size: .95rem; bottom: 34px; } .tc-name { font-size: .72rem; line-height: 1.2; bottom: 8px; padding-right: 6px; } }

/* upútavka s obrázkom */
.title-teaser { display: grid; grid-template-columns: minmax(180px, 46%) 1fr; gap: 26px; align-items: center; max-width: 720px; }
.tz-img { aspect-ratio: 4 / 5; border-radius: 14px; background-size: cover; background-position: center; background-color: #2a1d14; border: 1px solid rgba(232,196,108,.6);
  box-shadow: 0 24px 50px rgba(0,0,0,.7), 0 0 0 6px rgba(20,14,9,.6), 0 0 0 7px rgba(232,196,108,.35); }
.title-teaser.is-on .tz-img { animation: tz-img 2.8s var(--ease) both; }
@keyframes tz-img { 0% { opacity: 0; transform: translateY(18px) rotate(-2deg) scale(.96); } 18% { opacity: 1; transform: none; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
.title-cards { display: none !important; }
/* pätička */
.copyright { position: relative; z-index: 3; text-align: center; font-size: .78rem; letter-spacing: .06em; color: #8f7f66; padding: 16px; }
.screen--title .copyright { position: absolute; left: 0; right: 0; bottom: 6px; }
.screen--game .copyright { margin-top: 18px; }
@media (max-width: 860px) {
  .title-teaser { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .tz-img { width: 60%; aspect-ratio: 16 / 10; }
  .screen--title .copyright { position: relative; }
}
.title-rays { top: 47%; }

/* upútavka ostáva, kým sa ručička nepohne */
.title-teaser.is-on { animation: tz-in 1s var(--ease) both !important; }
.title-teaser.is-on .tz-img { animation: tz-img-in 1.1s var(--ease) both !important; }
.title-teaser.is-out { animation: tz-out .7s ease both !important; }
@keyframes tz-in { from { opacity: 0; transform: translateX(-24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tz-img-in { from { opacity: 0; transform: translateY(18px) rotate(-2deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes tz-out { from { opacity: 1; } to { opacity: 0; transform: translateX(14px); filter: blur(4px); } }

/* =========================================================
   AKO HRAŤ
   ========================================================= */
.btn--ghost { background: rgba(0,0,0,.35); }
.title-card .title-actions { gap: 12px; flex-wrap: wrap; }
.icon-btn[data-help] { font-family: var(--f-head); font-weight: 800; font-size: 1.1rem; color: var(--gold-soft); }
.help { position: fixed; inset: 0; z-index: 85; background: rgba(5,3,2,.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.help.is-open { opacity: 1; pointer-events: auto; }
.help__panel { width: min(920px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--parchment); color: var(--text); border: 2px solid var(--gold); border-radius: 18px; box-shadow: 0 40px 100px rgba(0,0,0,.7); overflow: hidden; transform: translateY(20px) scale(.97); transition: transform .4s var(--ease);
  background-image: radial-gradient(ellipse at 15% 0%, rgba(255,255,255,.4), transparent 50%); }
.help.is-open .help__panel { transform: none; }
.help__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 10px; background: var(--ink-2); color: var(--parchment); }
.help__head h3 { color: #f6e2ad; font-size: 1.4rem; margin-top: 2px; }
.help__head .icon-btn { color: var(--parchment); }
.help__tabs { display: flex; gap: 4px; padding: 0 16px; background: var(--ink-2); overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--gold); }
.help__tabs button { flex: none; background: none; border: 0; color: #bfae8e; padding: 12px 14px; cursor: pointer; font-family: var(--f-head); font-size: .8rem; letter-spacing: .06em; border-bottom: 3px solid transparent; }
.help__tabs button[aria-selected="true"] { color: #f6dc8e; border-bottom-color: var(--gold-soft); }
.help__tabs button:hover { color: #fff4dc; }
.help__body { padding: 22px clamp(18px, 3vw, 32px); overflow-y: auto; line-height: 1.65; }
.help__body.is-in { animation: reveal .5s var(--ease); }
.help__body h4 { color: var(--red); font-size: 1.15rem; margin: 4px 0 10px; }
.help__body h4:not(:first-child) { margin-top: 22px; }
.help__body p { margin-bottom: 10px; }
.help__foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-top: 1px solid var(--parchment-3); background: var(--parchment-2); color: var(--muted); font-size: .85rem; }
.help-steps { display: grid; gap: 10px; margin: 14px 0; }
.help-step { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.5); border: 1px solid var(--parchment-3); border-radius: 12px; padding: 12px 14px; }
.help-step > span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--f-head); font-weight: 800; }
.help-step p { margin: 2px 0 0; font-size: .95rem; }
.help-note { background: #efe2c3; border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: .95rem; }
.help-list { padding-left: 20px; } .help-list li { margin-bottom: 8px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.help-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.help-card { background: rgba(255,255,255,.55); border: 1px solid var(--parchment-3); border-radius: 12px; padding: 14px; }
.help-card b { display: block; font-family: var(--f-head); color: var(--ink-3); margin: 8px 0 4px; }
.help-card p { font-size: .92rem; margin: 0; }
.hc-ico { min-height: 44px; display: flex; align-items: center; gap: 4px; }
.hc-seals svg { width: 28px; height: 28px; }
.hc-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-2); color: var(--parchment); justify-content: center; } .hc-btn svg { width: 22px; height: 22px; }
.hc-prog i { width: 22px; height: 5px; border-radius: 3px; background: var(--parchment-3); } .hc-prog i.on { background: var(--gold); }
.hc-src { font-family: Georgia, serif; font-size: 2rem; color: var(--gold); } .hc-fact { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; justify-content: center; font-family: Georgia, serif; font-size: 1.2rem; }
.tag-uc { font-size: .72rem; background: var(--red); color: #fff; padding: 1px 6px; border-radius: 999px; }
.help-demo { border: 2px solid var(--gold); border-radius: 12px; overflow: hidden; margin: 8px 0 16px; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.hd-visual { position: relative; height: 110px; background: linear-gradient(160deg, #3b4a52, #120c06); padding: 12px 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.hd-badge { position: absolute; top: 10px; left: 12px; font-family: var(--f-head); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #f1e6cc; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 10px; }
.hd-date { font-family: var(--f-head); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: #dccaa2; }
.hd-title { font-family: var(--f-head); font-size: 1.3rem; color: var(--gold-soft); }
.hd-body { padding: 14px 16px; font-size: .98rem; }
.hd-body .speech { margin-top: 18px; } .hd-choice { pointer-events: none; animation: none; font-size: .95rem; padding: 11px 14px; }
.help-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px; }
.hg { display: flex; gap: 12px; background: rgba(255,255,255,.55); border: 1px solid var(--parchment-3); border-radius: 12px; padding: 12px; }
.hg-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ink-2); display: grid; place-items: center; font-size: 1.3rem; color: var(--gold-soft); font-family: var(--f-glag); }
.hg b { font-family: var(--f-head); color: var(--ink-3); } .hg em { font-style: normal; font-size: .76rem; color: var(--muted); }
.hg p { font-size: .9rem; margin: 3px 0 0; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; margin: 0 2px; border: 1px solid #b89a5f; border-bottom-width: 3px; border-radius: 6px; background: #fbf3df; font-family: var(--f-body); font-size: .8rem; text-align: center; color: var(--text); }
.help-keys td { padding: 5px 10px 5px 0; vertical-align: middle; }
.help-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: .92rem; }
.help-table th, .help-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--parchment-3); vertical-align: top; }
.help-table th { font-family: var(--f-head); font-size: .78rem; letter-spacing: .08em; color: var(--red); }
@media (max-width: 640px) { .help { padding: 0; } .help__panel { max-height: 100vh; height: 100%; border-radius: 0; } .help__head { padding: 14px 16px 8px; } }
.help__head, .help__tabs, .help__foot { flex: none; }

/* ---------- ochrana súkromia: lišta + odkaz + noscript ---------- */
.copyright a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.copyright a:hover { color: var(--gold-soft); }
.privacy-bar { position: fixed; left: 50%; bottom: 16px; z-index: 95; width: min(680px, calc(100% - 32px)); display: flex; gap: 16px; align-items: center; background: rgba(21,17,12,.96); border: 1px solid rgba(201,154,46,.55); border-radius: 14px; padding: 14px 18px; color: var(--parchment-2); font-size: .9rem; line-height: 1.45; box-shadow: 0 14px 40px rgba(0,0,0,.55); transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--ease), opacity .45s; }
.privacy-bar.is-on { transform: translate(-50%, 0); opacity: 1; }
.privacy-bar p { flex: 1; }
.privacy-bar a { color: var(--gold-soft); }
.privacy-bar .btn { flex: none; padding: 9px 18px; }
@media (max-width: 560px) { .privacy-bar { flex-direction: column; align-items: stretch; text-align: center; } }
.noscript { max-width: 720px; margin: 15vh auto; padding: 0 16px; color: var(--parchment); line-height: 1.6; }
.noscript h1 { color: var(--gold-soft); margin-bottom: 16px; }
.noscript a { color: var(--gold-soft); }
.privacy-bar[hidden] { display: none; }

/* ---------- trieda (žiak) ---------- */
.cls-chip { align-self: center; margin-left: auto; background: rgba(37,29,22,.85); border: 1px solid rgba(201,154,46,.6); color: var(--parchment-2); border-radius: 999px; padding: 8px 16px; font-family: var(--f-head); font-weight: 700; font-size: .8rem; letter-spacing: .06em; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, border-color .2s; }
.cls-chip:hover { background: var(--ink-3); border-color: var(--gold-soft); }
.cls-chip[hidden] { display: none; }
.cls-chip.is-on { border-color: #9fc27e; }
.cls-dot { width: 8px; height: 8px; border-radius: 50%; background: #9fc27e; box-shadow: 0 0 8px #9fc27e; }
.cls-modal { position: fixed; inset: 0; z-index: 96; background: rgba(8,6,4,.75); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.cls-modal.is-on { opacity: 1; pointer-events: auto; }
.cls-panel { position: relative; width: min(440px, 100%); background: linear-gradient(180deg, #2a2017, #1a140e); border: 1px solid rgba(201,154,46,.55); border-radius: 18px; padding: 26px 24px 22px; color: var(--parchment-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.cls-panel h3 { color: #fff4dc; font-size: 1.5rem; margin: 6px 0 10px; }
.cls-x { position: absolute; top: 12px; right: 12px; }
.cls-p { line-height: 1.55; margin-bottom: 16px; }
.cls-panel label { display: block; font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; color: var(--gold-soft); margin-bottom: 12px; }
.cls-panel input { display: block; width: 100%; margin-top: 6px; background: rgba(0,0,0,.35); border: 1px solid rgba(201,154,46,.45); border-radius: 10px; padding: 11px 13px; color: #fff4dc; font: 500 1.05rem var(--f-body); letter-spacing: .04em; }
.cls-panel input:focus { outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(232,196,108,.2); }
#cls-code { text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; letter-spacing: .25em; }
.cls-note { font-size: .82rem; color: #b3a283; line-height: 1.45; margin: -2px 0 8px; }
.cls-err { color: #f0a08f; min-height: 1.2em; font-size: .9rem; }
.cls-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 640px) { .hub-head { flex-wrap: wrap; } .cls-chip { order: 3; margin: 0; } }
.choices__skip { background: none; border: 0; color: var(--gold-soft); text-decoration: underline; cursor: pointer; font: inherit; margin-top: 6px; }

/* ---------- časová os: zarovnanie lišty a päty ---------- */
.hub-tools { align-items: center; }
.cls-chip { height: 40px; padding: 0 16px; margin: 0 6px 0 0; font-size: .74rem; letter-spacing: .08em; align-self: center; }
.hub-bottom { max-width: 1200px; margin: 14px auto 0; padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.hub-bottom .hub-foot { margin: 0; padding: 0; max-width: none; }
.hub-bottom .hub-teach { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .85rem; color: var(--gold-soft); text-decoration: none; border: 1px solid rgba(201,154,46,.4); border-radius: 999px; padding: 6px 16px; transition: background .2s, border-color .2s; }
.hub-bottom .hub-teach:hover { background: rgba(201,154,46,.12); border-color: var(--gold-soft); }
.screen--hub .copyright { max-width: 1200px; margin: 18px auto 0; padding: 14px 20px 18px; border-top: 1px solid rgba(201,154,46,.15); }
@media (max-width: 640px) { .hub-tools { flex-wrap: wrap; justify-content: flex-end; } .cls-chip { order: 0; margin: 0; } }
