:root { --ink: #fbf7ef; --ink-dim: rgba(251, 247, 239, .72); --accent: #f3c98b; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #1b2026; color: var(--ink); font-family: Inter, system-ui, sans-serif; }
body { overflow-x: hidden; }
#scene, #fx { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#fx { z-index: 2; pointer-events: none; }
#scene { background: #d8d4cc url(../p/poster-d.avif) center / cover no-repeat; }
.scroller { height: 760vh; }

.hud { position: fixed; top: 26px; left: 32px; z-index: 5; pointer-events: none; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hud .name { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 17px; letter-spacing: .02em; }
.hud .hint { margin-top: 4px; font-size: 13px; color: var(--ink-dim); }

.sound { position: fixed; top: 22px; right: 28px; z-index: 6; font: 500 13px Inter, sans-serif; color: var(--ink);
  background: rgba(20, 22, 26, .28); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 16px;
  cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s; }
.sound:hover { background: rgba(20, 22, 26, .5); }

.seasons { position: fixed; right: 28px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; gap: 14px; }
.seasons button { all: unset; cursor: pointer; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim);
  text-align: right; padding: 2px 0 2px 18px; position: relative; text-shadow: 0 1px 10px rgba(0,0,0,.4); transition: color .3s; }
.seasons button::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  border: 1px solid currentColor; transition: background .3s; }
.seasons button.on { color: var(--ink); }
.seasons button.on::before { background: var(--accent); border-color: var(--accent); }

.drum { position: fixed; left: 7vw; top: 50%; width: min(480px, 40vw); height: 0; z-index: 4; perspective: 900px; }
.card { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 50% 50% -160px; will-change: transform, opacity;
  opacity: 0; text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 24px rgba(0,0,0,.45); pointer-events: none; }
.card.live { pointer-events: auto; }
.card .eyebrow { margin: 0 0 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.card h1, .card h2 { margin: 0 0 16px; font-family: Fraunces, Georgia, serif; font-weight: 300; font-size: clamp(34px, 3.6vw, 58px); line-height: 1.04; letter-spacing: -.01em; }
.card p { margin: 0; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: rgba(251,247,239,.9); max-width: 30em; }
.contact { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.contact a { color: var(--ink); text-decoration: none; font-size: clamp(16px, 1.25vw, 20px); border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.contact a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 760px) {
  .drum { left: 24px; right: 24px; width: auto; top: 28vh; }
  .card h1, .card h2 { font-size: 32px; }
  .seasons { top: auto; bottom: 22px; right: 50%; transform: translateX(50%); flex-direction: row; gap: 16px; }
  .seasons button { padding: 16px 0 0; text-align: center; }
  .seasons button::before { left: 50%; top: 0; margin: 0 0 0 -3.5px; }
  .hud { left: 22px; top: 20px; }
  .sound { right: 18px; top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

.scrim { position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse 48% 62% at 20% 52%, rgba(20, 16, 12, .55), rgba(20, 16, 12, .22) 55%, rgba(20, 16, 12, 0) 78%),
              linear-gradient(180deg, rgba(18,16,14,.22), rgba(18,16,14,0) 18%); }
@media (max-width: 760px) { .scrim { background: linear-gradient(180deg, rgba(18,16,14,.62), rgba(18,16,14,.45) 42%, rgba(18,16,14,0) 60%), linear-gradient(0deg, rgba(18,16,14,.35), rgba(18,16,14,0) 14%); } }

/* ---- karty jako list z přírody: matné sklo v barvě ročního období ---- */
.card { --tint: 60, 80, 40; --tint2: 30, 40, 20; --acc: #e9f0c8;
  padding: 30px 34px 32px; border-radius: 46px 10px 46px 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(140deg, rgba(var(--tint), .62), rgba(var(--tint2), .5));
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.card.spring { --tint: 92, 118, 58; --tint2: 46, 62, 30; --acc: #f4dce3; }
.card.summer { --tint: 58, 92, 40; --tint2: 28, 46, 22; --acc: #f6dd84; }
.card.autumn { --tint: 140, 72, 26; --tint2: 74, 34, 14; --acc: #f7c270; }
.card.winter { --tint: 70, 92, 124; --tint2: 34, 46, 66; --acc: #dcecff; }
.card .eyebrow { display: flex; align-items: center; gap: 9px; color: var(--acc); font-weight: 500; }
.card .eyebrow .ico { width: 18px; height: 18px; flex: none; color: var(--acc); }
.card h1, .card h2 { font-weight: 500; }
.card p { color: rgba(255, 255, 255, .94); font-weight: 500; }
.contact a { border-bottom-color: rgba(255, 255, 255, .35); }
.contact a:hover { color: var(--acc); border-color: var(--acc); }
.hud { text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 0 18px rgba(0, 0, 0, .3); }
@media (max-width: 760px) { .card { padding: 22px 22px 24px; border-radius: 34px 8px 34px 8px; } }

.scrim { background: linear-gradient(180deg, rgba(18,14,10,.38), rgba(18,14,10,0) 20%) !important; }
@media (max-width: 760px) { .scrim { background: linear-gradient(180deg, rgba(18,14,10,.42), rgba(18,14,10,0) 18%) !important; } }

/* ---- navigace období: ikonky místo teček, aktivní svítí barvou období ---- */
.seasons button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 2px 0; flex-direction: row-reverse; }
.seasons button::before { display: none; }
.seasons button svg { width: 20px; height: 20px; flex: none; color: rgba(255, 255, 255, .6);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); transition: color .35s, transform .35s, filter .35s; }
.seasons button:hover svg { color: rgba(255, 255, 255, .9); }
.seasons .spring { --c: #ffb9cb; } .seasons .summer { --c: #ffd75e; } .seasons .autumn { --c: #ff9a3d; } .seasons .winter { --c: #bfe3ff; }
.seasons button.on svg { color: var(--c); transform: scale(1.22);
  filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 0 14px var(--c)) drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.seasons button.on { color: #fff; }
.seasons button.on span { color: var(--c); }
@media (max-width: 760px) {
  .seasons button { flex-direction: column; gap: 5px; padding: 0; }
  .seasons button svg { width: 22px; height: 22px; }
}
.seasons .winter.on svg { filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 12px var(--c)) drop-shadow(0 1px 3px rgba(10, 30, 60, .8)); }
.seasons .winter.on span { text-shadow: 0 1px 6px rgba(10, 30, 60, .75); }
/* ikonky vlevo před názvem, zarovnané pod sebou */
.seasons { align-items: flex-start; }
.seasons button { flex-direction: row; justify-content: flex-start; text-align: left; padding: 2px 0; }
@media (max-width: 760px) {
  .seasons { align-items: center; }
  .seasons button { flex-direction: column; justify-content: center; text-align: center; }
}

@media (max-aspect-ratio: 4/5) { #scene { background-image: url(../p/poster-m.avif); } }

/* ---- okno michal.txt (?styl=okno) ---- */
.typemode .drum { display: none; }
.typewin { --tint: 92, 118, 58; --tint2: 46, 62, 30; --acc: #f4dce3;
  position: fixed; left: 7vw; top: 50%; transform: translateY(-50%); z-index: 4; width: min(520px, 42vw);
  border-radius: 16px; overflow: hidden; color: #fff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(150deg, rgba(var(--tint), .62), rgba(var(--tint2), .58));
  backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 26px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: background .8s ease; }
.typewin.spring { --tint: 92, 118, 58; --tint2: 46, 62, 30; --acc: #ffd0dc; }
.typewin.summer { --tint: 58, 92, 40; --tint2: 28, 46, 22; --acc: #ffe07a; }
.typewin.autumn { --tint: 140, 72, 26; --tint2: 74, 34, 14; --acc: #ffc074; }
.typewin.winter { --tint: 70, 92, 124; --tint2: 34, 46, 66; --acc: #d6ebff; }
.tw-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(0, 0, 0, .16); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.tw-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.tw-bar i:nth-child(1) { background: #ff6159; } .tw-bar i:nth-child(2) { background: #ffbd2e; } .tw-bar i:nth-child(3) { background: #28c941; }
.tw-title { margin-left: auto; margin-right: auto; transform: translateX(-20px); font: 500 12px Inter, system-ui, sans-serif; letter-spacing: .04em; color: rgba(255, 255, 255, .75); }
.tw-body { padding: 26px 30px 30px; min-height: 190px; text-shadow: 0 1px 2px rgba(0, 0, 0, .22); }
.tw-body h2 { margin: 0 0 14px; font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: clamp(30px, 3vw, 46px); line-height: 1.08; }
.tw-body p { margin: 0; font: 500 clamp(16px, 1.2vw, 19px)/1.55 Inter, system-ui, sans-serif; color: rgba(255, 255, 255, .95); }
.tw-contact { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.tw-contact a { color: #fff; text-decoration: none; font: 500 clamp(16px, 1.25vw, 20px) Inter, system-ui, sans-serif; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.tw-contact a:hover { color: var(--acc); border-color: var(--acc); }
.tw-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.12em; background: var(--acc); animation: tw-blink 1s steps(1) infinite; }
@keyframes tw-blink { 50% { opacity: 0; } }
@media (max-width: 760px) {
  .typewin { left: 16px; right: 16px; width: auto; top: 13vh; transform: none; }
  .tw-body { padding: 18px 20px 22px; min-height: 150px; }
  .tw-body h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .tw-caret { animation: none; } }
@media (max-width: 760px) { .typewin { top: 32vh; } }

/* okno blíž k postavě + linka z notebooku */
.typewin { overflow: visible; left: max(5vw, calc(58vw - 560px)); top: auto; bottom: 34vh; transform: none; }
.typewin .tw-bar { border-radius: 16px 16px 0 0; }
.typewin::after { content: ""; position: absolute; left: var(--tail-x, 80%); bottom: -9px; width: 18px; height: 18px; margin-left: -9px;
  background: rgba(var(--tint2), .75); border-right: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22);
  transform: rotate(45deg); border-radius: 0 0 4px 0; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tw-link { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 3; pointer-events: none; overflow: visible; }
.tw-link path { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1 9;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, .35)); animation: tw-flow 1.1s linear infinite; }
.tw-link circle { fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); animation: tw-pulse 1.6s ease-in-out infinite; }
@keyframes tw-flow { to { stroke-dashoffset: -20; } }
@keyframes tw-pulse { 50% { opacity: .45; } }
@media (max-width: 760px) { .typewin { top: auto; bottom: 47vh; left: 16px; right: 16px; } }
@media (prefers-reduced-motion: reduce) { .tw-link path, .tw-link circle { animation: none; } }

/* léto žluté jako slunce; bez tečkované linky */
.typewin.summer { --tint: 176, 136, 30; --tint2: 112, 78, 10; --acc: #fff2b8; }
.tw-link { display: none; }
/* bez špičky bubliny */
.typewin::after { display: none; }

/* náhled: bez jména a nápovědy nahoře, ukazatel „scrolluj dál“ v okně */
.typemode .hud { display: none; }
.typemode .scrim { opacity: .55; }
.tw-body { padding-right: 64px; }
.tw-next { position: absolute; right: 16px; bottom: 16px; width: 38px; height: 46px; padding: 0; border: 0; border-radius: 19px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); cursor: pointer; color: var(--acc);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease, background .2s; pointer-events: none; }
.tw-next.show { opacity: 1; transform: none; pointer-events: auto; }
.tw-next:hover { background: rgba(255, 255, 255, .24); }
.tw-next:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.tw-next svg { width: 18px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin: -2px 0; }
.tw-next.show svg { animation: tw-down 1.6s ease-in-out infinite; }
.tw-next.show svg + svg { animation-delay: .18s; opacity: .55; }
@keyframes tw-down { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .tw-next.show svg { animation: none; } }
@media (max-width: 760px) { .tw-body { padding-right: 58px; } .tw-next { right: 12px; bottom: 12px; } }
.tw-next { color: #fff; background: rgba(0, 0, 0, .2); border-color: rgba(255, 255, 255, .45); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.tw-next:hover { background: rgba(0, 0, 0, .3); }

/* zvuk jen jako ikonka */
.sound.icon { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.sound.icon svg { width: 21px; height: 21px; }
.sound.icon[aria-pressed="true"] { background: rgba(255, 255, 255, .22); }

/* písmo: Plus Jakarta Sans (podobné jako Eina), menší a klidnější nadpisy */
html, body, .sound, .seasons button, .tw-title, .tw-body p, .tw-contact a, .card p, .contact a { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.tw-body h2, .card h1, .card h2 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 600; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.tw-body p, .card p { font-weight: 400; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; }
.tw-contact a, .contact a { font-weight: 500; font-size: clamp(16px, 1.15vw, 18px); }
.tw-title { font-weight: 500; }
@media (max-width: 760px) { .tw-body h2, .card h1, .card h2 { font-size: 24px; } .tw-body p, .card p { font-size: 16px; } }
/* nadpis na dva řádky: širší okno, o něco menší písmo, šipky pod textem místo vedle */
.typewin { width: min(600px, 46vw); }
.tw-body { padding: 24px 30px 66px; }
.tw-body h2 { font-size: clamp(24px, 2.15vw, 32px); }
@media (max-width: 760px) {
  .typewin { width: auto; }
  .tw-body { padding: 18px 20px 58px; }
  .tw-body h2 { font-size: 20px; }
}

/* ---- tlačítko v okně ---- */
.cta, .tw-cta { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; text-decoration: none;
  font: 600 16px/1 "Plus Jakarta Sans", system-ui, sans-serif; color: #24331a; background: #f4f8e6;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22), inset 0 -2px 0 rgba(0, 0, 0, .08); transition: transform .2s, box-shadow .2s, background .2s; }
.cta:hover, .tw-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .28); background: #fff; }
.cta:focus-visible, .tw-cta:focus-visible { outline: 3px solid #ffd0dc; outline-offset: 3px; }
.tw-cta { margin-top: 20px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .5s, transform .5s, box-shadow .2s, background .2s; }
.tw-cta.show { opacity: 1; transform: none; pointer-events: auto; }
.tw-cta span { transition: transform .2s; } .tw-cta:hover span { transform: translateX(3px); }
.card .cta { display: none; }

/* ---- podstránka (jaro) ---- */
.subpage { position: fixed; inset: 0; z-index: 20; overflow-y: auto; color: #fff; -webkit-overflow-scrolling: touch; }
.subpage[hidden] { display: none; }
.sub-open { overflow: hidden; }
.sp-bg { position: fixed; inset: -40px; background: #2f3d22 url(../img/jaro.avif) center / cover no-repeat; filter: blur(14px) saturate(1.1); transform: scale(1.04); }
.sp-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 40, 18, .55), rgba(28, 40, 18, .78)); }
.sp-back { position: fixed; top: 20px; left: 22px; z-index: 2; color: #fff; text-decoration: none; font: 500 14px "Plus Jakarta Sans", sans-serif;
  padding: 9px 16px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sp-back:hover { background: rgba(0, 0, 0, .4); }
.sp-wrap { position: relative; max-width: 1080px; margin: 0 auto; padding: 110px 24px 80px; }
.sp-hero h1 { margin: 0 0 14px; font: 600 clamp(32px, 4vw, 52px)/1.1 "Plus Jakarta Sans", sans-serif; letter-spacing: -0.02em; text-wrap: balance; }
.sp-hero p { margin: 0; max-width: 36em; font: 400 clamp(17px, 1.4vw, 20px)/1.55 "Plus Jakarta Sans", sans-serif; color: rgba(255, 255, 255, .9); }
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 48px 0 56px; }
.sp-card { padding: 24px 22px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .25s, background .25s; }
.sp-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .15); }
.sp-card svg { width: 30px; height: 30px; fill: none; stroke: #ffd0dc; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-card h3 { margin: 14px 0 6px; font: 600 19px/1.25 "Plus Jakarta Sans", sans-serif; }
.sp-card p { margin: 0; font: 400 15.5px/1.5 "Plus Jakarta Sans", sans-serif; color: rgba(255, 255, 255, .82); }
.sp-steps h2, .sp-end h2 { margin: 0 0 18px; font: 600 clamp(26px, 2.6vw, 34px)/1.15 "Plus Jakarta Sans", sans-serif; letter-spacing: -0.015em; }
.sp-steps ol { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.sp-steps li { counter-increment: s; padding: 20px 22px; border-radius: 18px; border: 1px dashed rgba(255, 255, 255, .35); font-family: "Plus Jakarta Sans", sans-serif; }
.sp-steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: #ffd0dc; color: #2f3d22; font-weight: 700; }
.sp-steps b { display: block; font-size: 18px; margin-bottom: 4px; } .sp-steps span { color: rgba(255, 255, 255, .85); font-size: 15.5px; line-height: 1.5; }
.sp-end { padding: 32px; border-radius: 26px; background: rgba(92, 118, 58, .55); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sp-end p { margin: 0 0 20px; font: 400 17px/1.5 "Plus Jakarta Sans", sans-serif; color: rgba(255, 255, 255, .9); }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.sp-link { color: #fff; text-decoration: none; font: 500 16px "Plus Jakarta Sans", sans-serif; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.sp-link:hover { border-color: #ffd0dc; color: #ffd0dc; }
@media (max-width: 860px) { .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-steps ol { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } .sp-wrap { padding-top: 84px; } .sp-end { padding: 24px 20px; } }

/* ---- letní podstránka ---- */
.subpage.summer .sp-bg { background-image: url(../img/leto.avif); background-color: #4a3e12; }
.subpage.summer .sp-bg::after { background: linear-gradient(180deg, rgba(64, 48, 8, .55), rgba(58, 42, 6, .8)); }
.subpage.summer .sp-end { background: rgba(176, 136, 30, .5); }
.subpage.summer .cta { color: #3d2f06; background: #fff5cc; }
.subpage.summer .sp-link:hover { border-color: #ffe07a; color: #ffe07a; }
.sp-show { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 44px 0 56px; }
.sp-item { padding: 16px 16px 22px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sp-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sp-media { aspect-ratio: 16 / 9; border-radius: 14px; display: grid; place-items: center; overflow: hidden;
  background: rgba(0, 0, 0, .18); border: 1px dashed rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .6); font: 500 14px "Plus Jakarta Sans", sans-serif; }
.sp-media.sp-self { border-style: solid; background: rgba(0,0,0,.12) url(../img/leto.avif) center / cover; }
.sp-media.sp-self span { padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; }
.sp-item h3 { margin: 16px 6px 6px; font: 600 19px/1.25 "Plus Jakarta Sans", sans-serif; }
.sp-item p { margin: 0 6px; font: 400 15.5px/1.5 "Plus Jakarta Sans", sans-serif; color: rgba(255, 255, 255, .85); }
@media (max-width: 680px) { .sp-show { grid-template-columns: minmax(0, 1fr); } }

/* zima: ikonky kontaktů + rezervace */
.tw-icons { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .5s .15s, transform .5s .15s; }
.tw-icons.show { opacity: 1; transform: none; pointer-events: auto; }
.tw-icons a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); transition: background .2s, transform .2s, color .2s; }
.tw-icons a:hover { background: #fff; color: #23324a; transform: translateY(-2px); }
.tw-icons a:focus-visible { outline: 3px solid #cfe0ff; outline-offset: 3px; }
.tw-icons svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tw-icons svg .dot { fill: currentColor; stroke: none; }
.typewin.winter .tw-cta { color: #1f2d44; background: #eef4ff; }
@media (max-width: 760px) { .tw-icons a { width: 42px; height: 42px; } .tw-icons { margin-top: 12px; } }
.subpage.winter .sp-bg { background-image: url(../img/zima.avif); background-color: #2a3446; }
.subpage.winter .sp-bg::after { background: linear-gradient(180deg, rgba(22, 32, 50, .5), rgba(20, 28, 44, .8)); }
.subpage.winter .sp-end { background: rgba(70, 92, 124, .5); }
.subpage.winter .sp-link:hover { border-color: #cfe0ff; color: #cfe0ff; }
.sp-book { margin: 40px 0 28px; }
.sp-book-frame:empty { display: none; }
.sp-book-frame iframe { width: 100%; height: 720px; border: 0; border-radius: 22px; background: #fff; }
.sp-book-todo { display: flex; gap: 18px; align-items: center; padding: 28px 30px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px dashed rgba(255, 255, 255, .4); }
.sp-book-todo svg { flex: none; width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.sp-book-todo p { margin: 0; font: 400 17px/1.5 "Plus Jakarta Sans", sans-serif; color: rgba(255, 255, 255, .9); }
/* kompaktnější okno */
.typewin { width: min(470px, 40vw); border-radius: 14px; }
.typewin .tw-bar { padding: 8px 12px; border-radius: 14px 14px 0 0; }
.tw-bar i { width: 9px; height: 9px; }
.tw-title { font-size: 11px; }
.tw-body { min-height: 0; padding: 18px 64px 18px 22px; }
.tw-body h2 { font-size: clamp(20px, 1.65vw, 25px); margin: 0 0 8px; line-height: 1.2; }
.tw-body p { font-size: clamp(14.5px, 1vw, 16px); line-height: 1.5; }
.tw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.tw-actions:empty { display: none; }
.tw-actions .tw-cta { margin-top: 0; padding: 9px 16px; font-size: 14.5px; gap: 8px; }
.tw-actions .tw-icons { margin: 0; gap: 8px; }
.tw-icons a { width: 38px; height: 38px; }
.tw-icons svg { width: 18px; height: 18px; }
.tw-next { right: 12px; bottom: 12px; width: 34px; height: 40px; }
@media (max-width: 760px) {
  .typewin { width: auto; }
  .tw-body { padding: 14px 54px 14px 16px; }
  .tw-body h2 { font-size: 18px; margin-bottom: 6px; }
  .tw-body p { font-size: 14.5px; }
  .tw-actions { margin-top: 12px; gap: 8px; }
  .tw-actions .tw-cta { padding: 8px 14px; font-size: 14px; }
  .tw-icons a { width: 36px; height: 36px; }
  .tw-next { right: 10px; bottom: 10px; }
}
.sp-book-go { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 26px 30px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sp-book-go svg { flex: none; width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.sp-book-go p { flex: 1 1 320px; margin: 0; font: 400 17px/1.5 "Plus Jakarta Sans", sans-serif; color: rgba(255, 255, 255, .92); }
.subpage.winter .cta { color: #1f2d44; background: #eef4ff; }
/* mobil: stabilní výška scény (lišta prohlížeče ji nesmrskne) */
#scene, #fx { height: 100vh; height: 100lvh; }
/* šipka zpět nad šipkou dál */
.tw-prev { bottom: 58px; }
.tw-prev.show svg { animation: none; }
.tw-prev.show svg + svg { opacity: .55; }
/* v zimě není šipka dál → šipka zpět jde dolů */
.typewin.winter .tw-prev { bottom: 12px; }
@media (max-width: 760px) { .tw-prev { bottom: 56px; } .typewin.winter .tw-prev { bottom: 10px; } }
/* scéna sleduje viditelnou výšku (s lištou i bez), obraz drží spodek */
#scene, #fx { height: 100vh; height: 100dvh; }
