/* ============================================
   TVŮJ MALÝ SVĚT — v2 (dev setup edition)
   ============================================ */

:root {
  --bg: #0d1117;
  --bg-soft: #15192b;
  --warm: #fcd9a8;
  --warm-deep: #f0a866;
  --moon: #fef6e0;
  --ink: #e8dcc0;
  --ink-soft: rgba(232, 220, 192, 0.65);
  --red: #c44a2a;
  --red-deep: #8a2a14;
  --screen-blue: #5a9ae0;
  --code-ok: #8ad28a;
  --code-warn: #e0c060;
  --code-kw: #c48ad0;
  --code-str: #e0a060;
  --code-fn: #8ad0e0;
  --code-comment: #5a6a8a;
  --code-var: #e0e0e0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* DAY/NIGHT CYCLE — defaults pro noc */
  --sky-top: #1a1f3a;
  --sky-bottom: #2d2845;
  --wall-top: #15192b;
  --wall-bottom: #0d1117;
  --moon-opacity: 1;
  --star-opacity: 1;
  --sun-opacity: 0;
}

/* svítání 5-7h */
body[data-phase="dawn"] {
  --sky-top: #3a2a5a;
  --sky-bottom: #e0a890;
  --wall-top: #2a1d28;
  --wall-bottom: #1a0d18;
  --moon-opacity: 0.5;
  --star-opacity: 0.5;
  --sun-opacity: 0.4;
}

/* ráno 7-10h */
body[data-phase="morning"] {
  --sky-top: #6a8aba;
  --sky-bottom: #e8c4a0;
  --wall-top: #2a2d3a;
  --wall-bottom: #1a1d28;
  --moon-opacity: 0.1;
  --star-opacity: 0.05;
  --sun-opacity: 0.9;
}

/* poledne 10-14h */
body[data-phase="noon"] {
  --sky-top: #6a98c8;
  --sky-bottom: #a8d0e8;
  --wall-top: #3a3e4a;
  --wall-bottom: #2a2e38;
  --moon-opacity: 0;
  --star-opacity: 0;
  --sun-opacity: 1;
}

/* odpoledne 14-17h */
body[data-phase="afternoon"] {
  --sky-top: #7a8aba;
  --sky-bottom: #d4b894;
  --wall-top: #3a3540;
  --wall-bottom: #2a2530;
  --moon-opacity: 0;
  --star-opacity: 0;
  --sun-opacity: 0.9;
}

/* západ 17-19h */
body[data-phase="sunset"] {
  --sky-top: #5a3a6a;
  --sky-bottom: #e0794a;
  --wall-top: #3a1d28;
  --wall-bottom: #2a0d18;
  --moon-opacity: 0.3;
  --star-opacity: 0.2;
  --sun-opacity: 0.7;
}

/* večer 19-22h */
body[data-phase="evening"] {
  --sky-top: #2a2050;
  --sky-bottom: #5a3a6a;
  --wall-top: #1a1f3a;
  --wall-bottom: #0d1118;
  --moon-opacity: 0.85;
  --star-opacity: 0.7;
  --sun-opacity: 0;
}

/* noc 22-5h */
body[data-phase="night"] {
  --sky-top: #1a1f3a;
  --sky-bottom: #2d2845;
  --wall-top: #15192b;
  --wall-bottom: #0d1117;
  --moon-opacity: 1;
  --star-opacity: 1;
  --sun-opacity: 0;
}

/* smooth transition mezi fázemi */
html, body {
  transition: background-color 4s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Šipky nepulsují pořád. Puls má dostat jen aktuální další krok. */
.stairs-down.quest-active .stairs-arrow {
  animation: stairsArrowPulse 2.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes stairsArrowPulse {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(3px); }
}
.stairs-down.quest-active .stairs-glow {
  animation: stairsGlowBreathe 3.8s ease-in-out infinite;
}
@keyframes stairsGlowBreathe {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}
.stairs-down:hover {
  filter: drop-shadow(0 0 14px rgba(252, 217, 168, 0.6));
}

/* QUEST ACTIVE — schody/objekt aktivně volají hráče za sebou */
.object.quest-active {
  animation: questCall 1.6s ease-in-out infinite !important;
}
@keyframes questCall {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(252, 217, 168, 0.4)); }
  50% { filter: drop-shadow(0 0 22px rgba(252, 217, 168, 0.95)) brightness(1.3); }
}

/* ============================================
   GOAL BAR — žívé hodiny + jasný cíl (okno v 21:00)
   ============================================ */
.goal-bar {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 22px;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(252, 217, 168, 0.22);
  border-radius: 100px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: rgba(232, 220, 192, 0.7);
  z-index: 6;
  opacity: 0;
  transition: opacity 1.8s ease 1.5s, border-color 1s ease;
  pointer-events: none;
  letter-spacing: 1px;
}
.goal-bar.visible { opacity: 1; }
.goal-bar.ready {
  border-color: var(--warm);
  animation: goalReady 3s ease-in-out infinite;
}
@keyframes goalReady {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 217, 168, 0); }
  50% { box-shadow: 0 0 30px 4px rgba(252, 217, 168, 0.25); }
}

.goal-clock {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--warm);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.5px;
  min-width: 56px;
  text-align: center;
}

.goal-divider {
  width: 1px;
  height: 18px;
  background: rgba(252, 217, 168, 0.25);
}

.goal-status {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(232, 220, 192, 0.65);
}

.goal-target {
  color: var(--warm);
  font-weight: 500;
  font-style: normal;
}

@media (max-width: 640px) {
  .goal-bar { font-size: 13px; padding: 10px 16px; gap: 12px; bottom: 48px; }
  .goal-clock { font-size: 15px; min-width: 48px; }
}

/* HINT GLOW — jen Vincent (kočka) pulsuje warm
   Vincent = klíč k bonus path (cellar). Hráč ho má vidět jako "quest target". */
[data-object="cat"]:not(.visited) {
  animation: catCallPulse 3.5s ease-in-out infinite;
}
[data-object="cat"].visited {
  animation: none;
}
@keyframes catCallPulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 10px rgba(252, 217, 168, 0.4)); }
}

/* REAL-TIME WEATHER — déšť/sníh viditelný v okně */

#room.weather-rain .rain-drops {
  opacity: 0.65;
  animation: rainAppear 3s ease-out forwards;
}
@keyframes rainAppear {
  0% { opacity: 0; }
  100% { opacity: 0.65; }
}

.rain-drops .rd {
  animation: rainFall 1.1s linear infinite;
}
.rain-drops .r1 { animation-delay: 0s; }
.rain-drops .r2 { animation-delay: 0.2s; }
.rain-drops .r3 { animation-delay: 0.4s; }
.rain-drops .r4 { animation-delay: 0.6s; }
.rain-drops .r5 { animation-delay: 0.8s; }
.rain-drops .r6 { animation-delay: 0.3s; }
.rain-drops .r7 { animation-delay: 0.5s; }
.rain-drops .r8 { animation-delay: 0.7s; }

@keyframes rainFall {
  0%   { transform: translateY(-20px); opacity: 0; }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.6; }
  100% { transform: translateY(280px); opacity: 0; }
}

/* sníh = bílé kruhy padající pomalu (reuse rain-drops s class snow) */
#room.weather-snow .rain-drops {
  opacity: 0.7;
}
#room.weather-snow .rd {
  stroke: #fef6e0;
  stroke-width: 1.4;
  animation: snowFall 4.5s linear infinite;
}
@keyframes snowFall {
  0%   { transform: translate(0, -20px) rotate(0); opacity: 0; }
  20%  { opacity: 0.8; }
  80%  { opacity: 0.8; }
  100% { transform: translate(12px, 320px) rotate(180deg); opacity: 0; }
}

/* mraky = ztlumí hvězdy a měsíc (subtle) */
#room.weather-cloudy .stars { opacity: 0.3 !important; }
#room.weather-cloudy .easter-moon { opacity: 0.5 !important; }

/* jasno = víc hvězd, jasnější měsíc */
#room.weather-clear .stars { opacity: 1 !important; }

/* ============================================
   DLC: PŮLNOČNÍ POKOJ (23:00–02:00) — speciální atmosféra
   ============================================ */
#room.midnight-mode {
  filter: brightness(0.78) contrast(1.08) hue-rotate(-8deg);
}
#room.midnight-mode .pendant-glow,
#room.midnight-mode .candle-flame {
  animation: midnightFlicker 0.3s ease-in-out infinite alternate;
}
@keyframes midnightFlicker {
  0% { opacity: 0.55; }
  25% { opacity: 0.95; }
  50% { opacity: 0.6; }
  75% { opacity: 1; }
  100% { opacity: 0.8; }
}
/* monitory zhasnou — Radek šel spát */
#room.midnight-mode .monitor-deco rect[fill="#0a0e1a"],
#room.midnight-mode .monitor-deco rect[fill="#050608"] {
  fill: #050308;
}
#room.midnight-mode .code-line {
  opacity: 0.15;
  animation: monitorDim 8s ease-in-out infinite;
}
@keyframes monitorDim {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.2; }
}
/* půlnoční jemný cyan tint na okno */
#room.midnight-mode [data-object="window"] {
  filter: hue-rotate(-12deg) brightness(0.85);
}
/* Vincent spí (úplně leží) — speciální postava */
#room.midnight-mode #cat-element {
  filter: drop-shadow(0 0 8px rgba(252, 217, 168, 0.15));
}

/* badge na statusbaru že je půlnoc */
.midnight-badge {
  position: fixed;
  top: 22px;
  right: 184px;
  padding: 8px 14px;
  background: rgba(15, 15, 30, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 184, 232, 0.32);
  border-radius: 100px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(184, 200, 248, 0.85);
  z-index: 6;
  opacity: 0;
  transition: opacity 2s ease 2s;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.midnight-badge.visible {
  opacity: 1;
  animation: midnightBadgePulse 4s ease-in-out infinite;
}
.midnight-badge::before {
  content: '☾';
  font-size: 14px;
  color: rgba(252, 217, 168, 0.75);
}
@keyframes midnightBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 184, 232, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(168, 184, 232, 0.2); }
}
@media (max-width: 640px) {
  .midnight-badge { right: 152px; padding: 6px 10px; font-size: 11px; }
}

/* MOBILE — větší tap targety: zvětšit click oblast malých objektů */
@media (max-width: 640px) {
  .object {
    /* malé objekty potřebují větší tap area pro fingertip touch */
    pointer-events: auto;
  }
  /* invisible padding okolo malých objektů přes ::after */
  [data-object="mug"], [data-object="phone"], [data-object="journal"],
  [data-object="lamp"], [data-object="hole"] {
    transform-box: fill-box;
  }
}

/* PULSING BREATH — jemný rytmus pro celý svět (i mobile) */
#scene, #room {
  animation: worldBreath 7s ease-in-out infinite;
  will-change: filter;
}
@keyframes worldBreath {
  0%, 100% { filter: brightness(1) contrast(1); }
  50% { filter: brightness(1.03) contrast(1.01); }
}
@media (prefers-reduced-motion: reduce) {
  #scene, #room { animation: none; }
}

body { position: relative; cursor: default; }

/* candle cursor — desktop only */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, .object, .choice-btn, .final-btn, .name-gate-btn, input { cursor: none !important; }
}

/* ============================================
   INTRO
   ============================================ */

#intro {
  position: fixed;
  inset: 0;
  background: #050608;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 1.8s ease;
}

#intro.gone { opacity: 0; pointer-events: none; }

.intro-inner {
  text-align: center;
  animation: introBreath 4s ease-in-out infinite;
}

.intro-line {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 36px);
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.intro-hint {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(232, 220, 192, 0.3);
}

@keyframes introBreath {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* typewriter effect for intro line */
.intro-line {
  overflow: hidden;
  border-right: 1px solid transparent;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  animation: typewriter 1.8s steps(20, end) 0.3s both, blinkCaret 0.8s step-end 8 0.3s;
}

@keyframes typewriter {
  from { width: 0; border-right-color: rgba(252, 217, 168, 0.8); }
  90% { border-right-color: rgba(252, 217, 168, 0.8); }
  to { width: 100%; border-right-color: transparent; }
}

@keyframes blinkCaret {
  0%, 100% { border-right-color: rgba(252, 217, 168, 0.8); }
  50% { border-right-color: transparent; }
}

.intro-hint {
  opacity: 0;
  animation: hintAppear 1.4s ease 2.4s forwards;
}

@keyframes hintAppear {
  to { opacity: 1; }
}

/* ============================================
   SCENE
   ============================================ */

#scene {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2.5s ease;
}

#room.awake { opacity: 1; }

/* ambient warm light from lamp — čistě dekorace, nesmí chytat kliky */
#ambientLight { transition: opacity 2s ease; pointer-events: none; }

#room.lit #ambientLight {
  opacity: 1;
  animation: lightFlicker 6s ease-in-out infinite;
}

@keyframes lightFlicker {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 1; }
  73% { opacity: 0.88; }
}

.bulb { transform-origin: center; }

#room.lit .bulb {
  animation: bulbBreath 4s ease-in-out infinite;
}

@keyframes bulbBreath {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

/* ============================================
   OBJECTS
   ============================================ */

.object {
  cursor: pointer;
  transition: filter 0.4s ease;
  transform-box: fill-box;
}

.object:hover, .object:focus {
  filter: brightness(1.2) drop-shadow(0 0 14px rgba(252, 217, 168, 0.35));
  outline: none;
}

.object.visited {
  filter: brightness(0.85) saturate(0.85);
}

.object.visited:hover {
  filter: brightness(1.0) saturate(0.95);
}

/* steam */
.steam {
  animation: steamRise 4s ease-in-out infinite;
  transform-origin: bottom;
}

@keyframes steamRise {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(-3px); }
}

/* cat tail */
.tail {
  transform-origin: 18px 0px;
  animation: tailWag 6s ease-in-out infinite;
}

@keyframes tailWag {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-8deg); }
}

/* cat fleeing transition */
#cat-element {
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* Vincent v kuchyni — appear animace */
#kitchen-vincent {
  transition: opacity 1.5s ease;
}
#kitchen-vincent.kitchen-vincent-appear {
  animation: kitchenVincentBlink 4s ease-in-out infinite;
}
@keyframes kitchenVincentBlink {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(252, 217, 168, 0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(252, 217, 168, 0.6)); }
}

#cat-element.fleeing .tail {
  animation: tailFlee 0.3s ease-in-out infinite;
}

@keyframes tailFlee {
  0%, 100% { transform: rotate(-20deg); }
  50% { transform: rotate(20deg); }
}

/* První klik: Vincent zavibruje ocáskem PŘED útěkem */
#cat-element.cat-alerted .tail {
  transform-origin: 18px 8px;
  transform-box: fill-box;
  animation: tailAlert 0.55s ease-in-out;
}
@keyframes tailAlert {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(28deg); }
  40% { transform: rotate(-18deg); }
  60% { transform: rotate(22deg); }
  80% { transform: rotate(-12deg); }
  100% { transform: rotate(0deg); }
}

/* hlava lehce nahoru — kočka registruje hráče */
#cat-element.cat-alerted {
  filter: drop-shadow(0 0 8px rgba(252, 217, 168, 0.5));
}

/* shake (locked door / fail) */
.object.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { translate: 0 0; }
  20% { translate: -4px 0; }
  40% { translate: 3px 0; }
  60% { translate: -2px 0; }
  80% { translate: 1px 0; }
}

/* stars twinkle */
.stars circle { animation: twinkle 4s ease-in-out infinite; }
.stars circle:nth-child(2n) { animation-delay: 1.3s; animation-duration: 5s; }
.stars circle:nth-child(3n) { animation-delay: 2.7s; animation-duration: 6s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* radek head subtle turn on hover */
#radek-head {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 80px 120px;
}

#radek-head.turned {
  transform: rotate(-8deg);
}

/* ============================================
   CODE ANIMATION on monitors
   ============================================ */

.code-line {
  font-family: var(--mono);
  font-size: 9px;
  fill: var(--code-var);
}

.code-vertical .code-line, .code-middle .code-line {
  opacity: 0;
  animation: codeAppear 0.4s forwards;
}

/* stagger each code line on vertical monitor */
.code-vertical .code-line:nth-child(1)  { animation-delay: 0.5s; }
.code-vertical .code-line:nth-child(2)  { animation-delay: 0.8s; }
.code-vertical .code-line:nth-child(3)  { animation-delay: 0.9s; }
.code-vertical .code-line:nth-child(4)  { animation-delay: 1.0s; }
.code-vertical .code-line:nth-child(5)  { animation-delay: 1.1s; }
.code-vertical .code-line:nth-child(6)  { animation-delay: 1.4s; }
.code-vertical .code-line:nth-child(7)  { animation-delay: 1.7s; }
.code-vertical .code-line:nth-child(8)  { animation-delay: 1.9s; }
.code-vertical .code-line:nth-child(9)  { animation-delay: 2.1s; }
.code-vertical .code-line:nth-child(10) { animation-delay: 2.3s; }
.code-vertical .code-line:nth-child(11) { animation-delay: 2.5s; }
.code-vertical .code-line:nth-child(12) { animation-delay: 2.7s; }
.code-vertical .code-line:nth-child(13) { animation-delay: 2.9s; }
.code-vertical .code-line:nth-child(14) { animation-delay: 3.1s; }
.code-vertical .code-line:nth-child(15) { animation-delay: 3.4s; }
.code-vertical .code-line:nth-child(16) { animation-delay: 3.6s; }
.code-vertical .code-line:nth-child(17) { animation-delay: 3.8s; }
.code-vertical .code-line:nth-child(18) { animation-delay: 4.0s; }
.code-vertical .code-line:nth-child(19) { animation-delay: 4.3s; }
.code-vertical .code-line:nth-child(20) { animation-delay: 4.5s; }

/* middle monitor (slower) */
.code-middle .code-line { animation-duration: 0.5s; }
.code-middle .code-line:nth-child(1)  { animation-delay: 0.8s; }
.code-middle .code-line:nth-child(2)  { animation-delay: 1.0s; }
.code-middle .code-line:nth-child(3)  { animation-delay: 1.2s; }
.code-middle .code-line:nth-child(4)  { animation-delay: 1.5s; }
.code-middle .code-line:nth-child(5)  { animation-delay: 1.8s; }
.code-middle .code-line:nth-child(6)  { animation-delay: 2.0s; }
.code-middle .code-line:nth-child(7)  { animation-delay: 2.3s; }
.code-middle .code-line:nth-child(8)  { animation-delay: 2.8s; }
.code-middle .code-line:nth-child(9)  { animation-delay: 3.0s; }
.code-middle .code-line:nth-child(10) { animation-delay: 3.2s; }
.code-middle .code-line:nth-child(11) { animation-delay: 3.5s; }
.code-middle .code-line:nth-child(12) { animation-delay: 3.7s; }
.code-middle .code-line:nth-child(13) { animation-delay: 3.9s; }
.code-middle .code-line:nth-child(14) { animation-delay: 4.1s; }
.code-middle .code-line:nth-child(15) { animation-delay: 4.4s; }
.code-middle .code-line:nth-child(16) { animation-delay: 4.6s; }
.code-middle .code-line:nth-child(17) { animation-delay: 4.8s; }
.code-middle .code-line:nth-child(18) { animation-delay: 5.0s; }
.code-middle .code-line:nth-child(19) { animation-delay: 5.2s; }
.code-middle .code-line:nth-child(20) { animation-delay: 5.4s; }
.code-middle .code-line:nth-child(21) { animation-delay: 5.7s; }
.code-middle .code-line:nth-child(22) { animation-delay: 6.0s; }
.code-middle .code-line:nth-child(23) { animation-delay: 6.3s; }
.code-middle .code-line:nth-child(24) { animation-delay: 6.6s; }
.code-middle .code-line:nth-child(25) { animation-delay: 6.9s; }
.code-middle .code-line:nth-child(26) { animation-delay: 7.2s; }
.code-middle .code-line:nth-child(27) { animation-delay: 7.5s; }

/* right monitor (always visible quickly) */
.code-right .code-line { animation: codeAppear 0.3s 0.5s forwards; opacity: 0; }
.code-right .code-line:nth-child(1)  { animation-delay: 0.6s; }
.code-right .code-line:nth-child(2)  { animation-delay: 0.9s; }
.code-right .code-line:nth-child(3)  { animation-delay: 1.2s; }
.code-right .code-line:nth-child(4)  { animation-delay: 1.5s; }
.code-right .code-line:nth-child(5)  { animation-delay: 1.8s; }
.code-right .code-line:nth-child(6)  { animation-delay: 2.1s; }
.code-right .code-line:nth-child(7)  { animation-delay: 2.4s; }
.code-right .code-line:nth-child(8)  { animation-delay: 2.7s; }

@keyframes codeAppear {
  from { opacity: 0; transform: translateX(-2px); }
  to { opacity: 1; transform: translateX(0); }
}

/* syntax colors */
.code-comment { fill: var(--code-comment); }
.code-kw      { fill: var(--code-kw); }
.code-str     { fill: var(--code-str); }
.code-fn      { fill: var(--code-fn); }
.code-var     { fill: var(--code-var); }
.code-ok      { fill: var(--code-ok); }
.code-warn    { fill: var(--code-warn); }

/* blinking cursor */
.cursor-line {
  animation: blink 1s infinite step-end !important;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* bar graph subtle animation */
.bar-graph rect {
  animation: barWave 2s ease-in-out infinite;
  transform-origin: bottom;
}
.bar-graph rect:nth-child(2n) { animation-delay: 0.2s; }
.bar-graph rect:nth-child(3n) { animation-delay: 0.5s; }
.bar-graph rect:nth-child(5n) { animation-delay: 0.7s; }

@keyframes barWave {
  0%, 100% { transform: scaleY(0.7); }
  50% { transform: scaleY(1); }
}

/* heart pulse */
.pulse-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: pulseDraw 3s linear infinite;
}

@keyframes pulseDraw {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

/* keyboard RGB underglow */
.kb-glow {
  animation: kbGlow 4s ease-in-out infinite;
}

@keyframes kbGlow {
  0% { fill: #7a3aa0; }
  33% { fill: #3aa07a; }
  66% { fill: #a07a3a; }
  100% { fill: #7a3aa0; }
}

/* mug text */
.mug-text {
  font-family: var(--mono);
  font-size: 9px;
  fill: #c9a576;
  font-weight: 500;
}

/* ============================================
   STŘEDOVĚKÝ DIAL — den/noc kompas vlevo nahoře
   ============================================ */

.phase-dial {
  position: fixed;
  top: 20px;
  left: 22px;
  width: 88px;
  z-index: 5;
  opacity: 0;
  transition: opacity 1.4s ease 1s;
  pointer-events: none;
}

.phase-dial.visible { opacity: 0.92; }

.phase-dial svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.phase-info {
  margin-top: 6px;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 1px;
  line-height: 1.3;
}

.phase-label {
  display: block;
  color: var(--warm);
  font-size: 14px;
}

.phase-time {
  font-size: 11px;
  color: rgba(232, 220, 192, 0.45);
  letter-spacing: 0.5px;
}

/* sun/moon rotates smoothly */
#dialSun, #dialMoon {
  transition: transform 2s ease;
  transform-origin: center;
}

/* ============================================
   NAME GATE — jméno jako klíč
   ============================================ */

.name-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: radial-gradient(ellipse at center, #1a1208 0%, #050608 70%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.name-gate.visible {
  display: flex;
  opacity: 1;
}

.name-gate-inner {
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.name-gate-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  opacity: 0;
  animation: gateLineIn 1.2s 0.4s forwards;
}

.name-gate-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--ink-soft);
  margin-bottom: 48px;
  opacity: 0;
  animation: gateLineIn 1.2s 1.4s forwards;
}

.name-gate-input {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 24px;
  padding: 16px 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(252, 217, 168, 0.4);
  outline: none;
  text-align: center;
  transition: border-color 0.4s ease, transform 0.3s ease;
  opacity: 0;
  animation: gateLineIn 1.2s 2.2s forwards;
}

.name-gate-input::placeholder {
  color: rgba(232, 220, 192, 0.25);
  font-style: italic;
}

.name-gate-input:focus {
  border-color: var(--warm);
}

.name-gate-btn {
  display: inline-block;
  padding: 16px 48px;
  background: var(--warm);
  color: #1a1208;
  border: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  animation: gateLineIn 1.2s 2.6s forwards;
}

.name-gate-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 30px rgba(252, 217, 168, 0.35);
  background: var(--moon);
}

.name-gate-btn:active {
  transform: scale(0.97);
}

.name-gate-fine {
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(232, 220, 192, 0.3);
  font-style: italic;
  opacity: 0;
  animation: gateLineIn 1.2s 3.2s forwards;
}

@keyframes gateLineIn {
  to { opacity: 1; }
}

/* ============================================
   AUDIO TOGGLE (corner button)
   ============================================ */

.audio-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(252, 217, 168, 0.2);
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink-soft);
  font-size: 16px;
  cursor: pointer;
  z-index: 8;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.audio-toggle.visible {
  opacity: 0.7;
  pointer-events: auto;
}

.audio-toggle:hover {
  opacity: 1;
  border-color: var(--warm);
  color: var(--warm);
  transform: scale(1.05);
}

.audio-toggle.playing {
  color: var(--warm);
  border-color: rgba(252, 217, 168, 0.5);
  animation: audioPulse 3s ease-in-out infinite;
}

@keyframes audioPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 217, 168, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(252, 217, 168, 0); }
}

/* ============================================
   PROGRESS METER — aesthetic top-right
   ============================================ */

.progress-meter {
  position: fixed;
  top: 22px;
  right: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(232, 220, 192, 0.4);
  letter-spacing: 1px;
  z-index: 5;
  opacity: 0;
  transition: opacity 1s ease, color 1.5s ease;
  pointer-events: none;
}

.progress-meter.visible { opacity: 1; }

.progress-current {
  color: var(--warm);
  font-weight: 500;
  transition: text-shadow 0.6s ease;
}

.progress-meter.complete {
  color: var(--warm);
  text-shadow: 0 0 12px rgba(252, 217, 168, 0.5);
  animation: meterComplete 3s ease-in-out infinite;
}

@keyframes meterComplete {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ============================================
   RADEK STATUS — mood indicator
   ============================================ */

.radek-status {
  position: fixed;
  top: 22px;
  left: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(232, 220, 192, 0.45);
  letter-spacing: 1px;
  z-index: 5;
  opacity: 0;
  transition: opacity 1s ease 0.5s, color 0.6s ease;
  pointer-events: none;
}

.radek-status.visible { opacity: 1; }

.status-emoji {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(252, 217, 168, 0.6);
  display: inline-block;
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

.radek-status.happy .status-emoji {
  background: var(--warm);
  box-shadow: 0 0 8px var(--warm);
}

.radek-status.sad .status-emoji {
  background: #6a7a9a;
  box-shadow: 0 0 4px #6a7a9a;
}

.radek-status.sad .status-mood {
  color: rgba(150, 160, 180, 0.7);
}

/* ============================================
   RETURN BADGE — krásný "vrať se zítra v 21:00"
   ============================================ */

.return-badge {
  margin: 40px auto 0;
  padding: 32px 28px;
  max-width: 280px;
  background: linear-gradient(180deg, rgba(252, 217, 168, 0.12), rgba(40, 30, 20, 0.4));
  border: 1px solid rgba(252, 217, 168, 0.35);
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 30px rgba(252, 217, 168, 0.08) inset;
  animation: badgeAppear 1.2s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.return-badge[hidden] { display: none; }

@keyframes badgeAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.return-badge-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(252, 217, 168, 0.55);
  margin-bottom: 12px;
}

.return-badge-day {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--warm);
  letter-spacing: 4px;
  margin-bottom: 4px;
  text-shadow: 0 0 14px rgba(252, 217, 168, 0.4);
}

.return-badge-time {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--moon);
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(254, 246, 224, 0.4);
}

.return-badge-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.5px;
}

/* ============================================
   CINEMATIC FADE (pokoj → střecha)
   ============================================ */

.cinematic-fade {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 150;
  transition: opacity 3s ease;
}

.cinematic-fade.fade-in {
  opacity: 1;
  pointer-events: auto;
}

.cinematic-fade.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 4s ease 0.5s;
}

/* ============================================
   ROOF SCENE
   ============================================ */

.roof-scene {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: #0a0e1f;
  display: none;
  overflow: hidden;
}

.roof-scene.visible {
  display: block;
  animation: roofAppear 3s ease-out forwards;
}

/* DLC: Sunrise mód (5-7h ráno) — teplý oranžový/růžový filter */
.roof-scene.sunrise-mode {
  background: linear-gradient(180deg, #2a1a3a 0%, #5a3a4a 30%, #c97a6a 70%, #fcd9a8 100%);
}
.roof-scene.sunrise-mode svg {
  filter: hue-rotate(-30deg) saturate(1.15) brightness(1.05);
}
.roof-scene.sunrise-mode .roof-text-line {
  color: rgba(252, 217, 168, 0.95);
  text-shadow: 0 0 24px rgba(252, 170, 100, 0.5);
}

@keyframes roofAppear {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

#roofSvg {
  width: 100%;
  height: 100%;
}

/* moon halo pulse */
.roof-moon .moon-halo {
  transform-origin: center;
  animation: moonHalo 8s ease-in-out infinite;
}

@keyframes moonHalo {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* stars twinkle */
.roof-stars circle {
  animation: roofStarTwinkle 5s ease-in-out infinite;
}
.roof-stars circle:nth-child(3n) { animation-delay: 1.2s; animation-duration: 6s; }
.roof-stars circle:nth-child(5n) { animation-delay: 2.5s; animation-duration: 4s; }
.roof-stars circle:nth-child(7n) { animation-delay: 0.8s; animation-duration: 7s; }

@keyframes roofStarTwinkle {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.city-twinkle circle {
  animation: cityFlicker 3s ease-in-out infinite;
}
.city-twinkle circle:nth-child(2n) { animation-delay: 0.6s; }
.city-twinkle circle:nth-child(3n) { animation-delay: 1.4s; }

@keyframes cityFlicker {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 0.95; }
}

/* cabin warm window glow (chata) */
.cabin-window-glow {
  animation: cabinFlicker 4s ease-in-out infinite;
}

@keyframes cabinFlicker {
  0%, 100% { opacity: 0.8; }
  35% { opacity: 0.95; }
  60% { opacity: 0.75; }
}

/* lantern (visící lampa nad terasou) flicker */
.lantern-glow {
  animation: lanternFlame 3s ease-in-out infinite;
}

@keyframes lanternFlame {
  0%, 100% { opacity: 0.7; }
  40% { opacity: 0.95; }
  70% { opacity: 0.6; }
}

/* smoke z komínu chaty */
.smoke {
  animation: smokeRise 6s linear infinite;
  transform-box: fill-box;
  transform-origin: bottom center;
}

@keyframes smokeRise {
  0% { transform: translateY(0) scale(1); opacity: 0.25; }
  100% { transform: translateY(-30px) scale(1.4); opacity: 0; }
}

/* roof texts - appear one by one */
.roof-texts {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  max-width: 620px;
  width: 88%;
  pointer-events: none;
}

.roof-text-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--ink);
  margin: 18px 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 2.4s ease, transform 2.4s ease;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
  line-height: 1.5;
}

.roof-text-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.roof-text-line.credit {
  margin-top: 36px;
  color: rgba(232, 220, 192, 0.5);
  font-size: clamp(15px, 2vw, 18px);
}

.roof-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 40px;
  height: 40px;
  background: rgba(15, 15, 20, 0.5);
  border: 1px solid rgba(252, 217, 168, 0.25);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 1s ease, color 0.3s ease;
  pointer-events: none;
}

.roof-close.visible {
  opacity: 0.5;
  pointer-events: auto;
}

.roof-close:hover {
  opacity: 1;
  color: var(--warm);
  border-color: var(--warm);
}

/* ============================================
   DVEŘE SKLEPA — lock icon / unlock animace
   ============================================ */

.lock-icon {
  transition: opacity 0.8s ease;
}

[data-object="cellar_door"].unlocked .lock-icon {
  opacity: 0;
}

[data-object="cellar_door"].unlocked {
  animation: doorReady 3s ease-in-out infinite;
}

@keyframes doorReady {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4) drop-shadow(0 0 14px rgba(252, 217, 168, 0.4)); }
}

/* ============================================
   DAY BADGE — subtilní indikátor návštěvy (top right)
   ============================================ */

.day-badge {
  position: fixed;
  top: 22px;
  right: 76px; /* vedle audio toggle */
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(15, 15, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(252, 217, 168, 0.18);
  border-radius: 100px;
  font-family: var(--serif);
  font-style: italic;
  color: rgba(252, 217, 168, 0.7);
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 1.8s ease 1.5s, transform 1.8s ease 1.5s;
  letter-spacing: 1px;
}
.day-badge.visible {
  opacity: 1;
  transform: translateY(0);
}
.day-badge.new-day {
  border-color: rgba(252, 217, 168, 0.6);
  animation: dayBadgeGlow 2.4s ease-in-out infinite;
}
@keyframes dayBadgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(252, 217, 168, 0); }
  50% { box-shadow: 0 0 16px rgba(252, 217, 168, 0.55); }
}
.day-badge-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(232, 220, 192, 0.45);
}
.day-badge-num {
  font-size: 16px;
  color: var(--warm);
}

/* na mobile menší */
@media (max-width: 640px) {
  .day-badge { right: 64px; padding: 6px 10px; }
  .day-badge-label { font-size: 9px; letter-spacing: 2px; }
  .day-badge-num { font-size: 13px; }
}

/* ============================================
   TAJNÉ DVEŘE V CIHLOVÉ ZDI (sklep) — 3× klik → trhlina → kabinet
   ============================================ */
.cellar-wall {
  cursor: pointer;
}
.cellar-wall.crack-revealed .secret-crack {
  opacity: 1;
  animation: secretCrackPulse 4s ease-in-out infinite;
}
.cellar-wall.crack-revealed .secret-glow {
  opacity: 0.5;
  animation: secretGlowBreathe 4s ease-in-out infinite;
}
@keyframes secretCrackPulse {
  0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 4px rgba(252, 217, 168, 0.4)); }
  50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(252, 217, 168, 0.9)); }
}
@keyframes secretGlowBreathe {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.grandfather-scene {
  position: fixed;
  inset: 0;
  z-index: 142;
  background: #0a0508;
  display: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 2s ease;
}
.grandfather-scene.visible {
  display: block;
  opacity: 1;
}
.grandfather-scene svg {
  width: 100%;
  height: 100%;
}
.grandfather-close {
  position: fixed;
  top: 24px;
  left: 24px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(252, 217, 168, 0.3);
  border-radius: 100px;
  color: rgba(252, 217, 168, 0.7);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}
.grandfather-close:hover {
  background: rgba(252, 217, 168, 0.1);
  border-color: var(--warm);
  color: var(--warm);
}

/* ============================================
   HUDEBNÍ MOMENT — 5 kliků kytary, plovoucí noty
   ============================================ */
.music-scene {
  position: fixed;
  inset: 0;
  z-index: 152;
  background: radial-gradient(ellipse at center, rgba(40, 28, 20, 0.85) 0%, rgba(5, 5, 10, 0.95) 75%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 2.4s ease;
}
.music-scene.visible {
  display: flex;
  opacity: 1;
}
.music-stage {
  position: relative;
  max-width: 640px;
  width: 100%;
  text-align: center;
  padding: 60px 40px;
}
.music-notes {
  position: absolute;
  inset: -120px;
  pointer-events: none;
}
.music-note {
  position: absolute;
  font-size: 36px;
  color: var(--warm);
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(252, 217, 168, 0.7));
}
.music-scene.visible .music-note {
  animation: musicNoteFloat 8s ease-in-out forwards;
}
.music-note.n1 { left: 10%; top: 20%; animation-delay: 0s; }
.music-note.n2 { left: 75%; top: 15%; animation-delay: 0.8s; font-size: 44px; }
.music-note.n3 { left: 20%; top: 70%; animation-delay: 1.4s; font-size: 32px; }
.music-note.n4 { left: 85%; top: 60%; animation-delay: 2.0s; }
.music-note.n5 { left: 40%; top: 10%; animation-delay: 2.8s; font-size: 28px; }
.music-note.n6 { left: 60%; top: 80%; animation-delay: 3.4s; font-size: 38px; }
@keyframes musicNoteFloat {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.6); }
  20% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(-160px) rotate(15deg) scale(1.2); }
}
.music-content {
  position: relative;
  z-index: 2;
}
.music-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 26px);
  color: rgba(252, 217, 168, 0.85);
  line-height: 1.7;
  letter-spacing: 1.5px;
  opacity: 0;
  text-shadow: 0 0 18px rgba(252, 217, 168, 0.3);
  margin: 0 0 4px;
}
.music-scene.visible .music-l1 { animation: musicLineIn 2s 1.5s forwards; }
.music-scene.visible .music-l2 { animation: musicLineIn 2s 3s forwards; }
.music-scene.visible .music-l3 { animation: musicLineIn 2s 4.5s forwards; }
.music-scene.visible .music-l4 { animation: musicLineIn 2s 6s forwards; }
.music-scene.visible .music-l5 { animation: musicLineIn 2s 7.5s forwards; }
.music-scene.visible .music-l6 { animation: musicLineIn 2.4s 9.5s forwards; }
.music-scene.visible .music-sign { animation: musicLineIn 2s 12s forwards; }
@keyframes musicLineIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.music-em {
  font-size: clamp(20px, 2.6vw, 28px) !important;
  color: var(--moon) !important;
  font-weight: 500;
}
.music-sign {
  margin-top: 24px;
  font-size: clamp(15px, 1.8vw, 18px) !important;
  color: rgba(252, 217, 168, 0.5) !important;
  letter-spacing: 3px !important;
}
.music-cat {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(252, 217, 168, 0.4));
}
.music-scene.visible .music-cat {
  animation: musicCatComes 4s 5s ease-out forwards;
}
@keyframes musicCatComes {
  0% { opacity: 0; transform: translateX(-50%) translateY(40px); }
  60% { opacity: 0.9; transform: translateX(-50%) translateY(-2px); }
  100% { opacity: 0.85; transform: translateX(-50%) translateY(0); }
}
.music-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(252, 217, 168, 0.4);
  color: var(--warm);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 200;
  opacity: 0;
}
.music-scene.visible .music-close {
  animation: musicLineIn 1.5s 14s forwards;
}
.music-close:hover {
  background: rgba(252, 217, 168, 0.18);
  border-color: var(--warm);
  transform: scale(1.08);
}

/* ============================================
   DOPIS OD NÍ — za fotkou ve sklepě (modrý inkoust, ženské písmo)
   ============================================ */
.her-letter-scene {
  position: fixed;
  inset: 0;
  z-index: 155;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 2.2s ease;
  padding: 30px;
  overflow-y: auto;
}
.her-letter-scene.visible {
  display: flex;
  opacity: 1;
}
.her-letter-paper {
  max-width: 480px;
  width: 100%;
  padding: 64px 56px;
  background: linear-gradient(180deg, #f8f0d8 0%, #ede0c0 100%);
  border-radius: 1px;
  box-shadow:
    0 0 0 1px rgba(40, 30, 20, 0.25),
    0 40px 100px rgba(0, 0, 0, 0.7),
    inset 0 0 40px rgba(180, 140, 80, 0.15);
  color: #2a3a6a;
  font-family: 'Caveat', 'Bradley Hand', 'Brush Script MT', cursive;
  position: relative;
  transform: rotate(0.6deg);
  animation: herLetterIn 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.her-letter-paper::before {
  /* jemné lapky a vrstvení */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(120, 80, 40, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(120, 80, 40, 0.10) 0%, transparent 55%);
  pointer-events: none;
  border-radius: 1px;
}
@keyframes herLetterIn {
  0% { opacity: 0; transform: rotate(0.6deg) translateY(30px) scale(0.97); }
  100% { opacity: 1; transform: rotate(0.6deg) translateY(0) scale(1); }
}
.her-letter-date {
  margin: 0 0 28px;
  text-align: right;
  font-size: 17px;
  color: rgba(42, 58, 106, 0.65);
  font-style: italic;
  letter-spacing: 1px;
}
.her-letter-line {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  letter-spacing: 0.5px;
  color: #2a3a6a;
}
.her-letter-spacer { height: 14px; }
.her-letter-em {
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 23px);
  color: #1a2a5a;
}
.her-letter-sign {
  margin-top: 32px;
  font-size: 28px;
  text-align: right;
  color: #1a2a5a;
  letter-spacing: 4px;
  font-weight: 500;
}
.her-letter-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(252, 217, 168, 0.4);
  color: var(--warm);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 200;
}
.her-letter-close:hover {
  background: rgba(252, 217, 168, 0.18);
  border-color: var(--warm);
  transform: scale(1.08);
}

/* ============================================
   VINCENTŮV DOPIS — schovaný v myší díře
   ============================================ */
.vincent-letter-scene {
  position: fixed;
  inset: 0;
  z-index: 155;
  background: rgba(5, 5, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  padding: 30px;
}
.vincent-letter-scene.visible {
  display: flex;
  opacity: 1;
}
.vincent-letter-paper {
  max-width: 440px;
  width: 100%;
  padding: 56px 48px;
  background: linear-gradient(180deg, #f4e8c8 0%, #e8d8b0 100%);
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(58, 40, 24, 0.3),
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(180, 140, 80, 0.18);
  color: #3a2818;
  font-family: var(--serif);
  font-style: italic;
  position: relative;
  transform: rotate(-1.5deg);
  animation: vincentLetterIn 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.vincent-letter-paper::before {
  /* lapka okrajů a stáří */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(120, 80, 40, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(120, 80, 40, 0.14) 0%, transparent 55%);
  pointer-events: none;
  border-radius: 2px;
}
@keyframes vincentLetterIn {
  0% { opacity: 0; transform: rotate(-1.5deg) translateY(20px); }
  100% { opacity: 1; transform: rotate(-1.5deg) translateY(0); }
}
.vincent-letter-line {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.85;
  letter-spacing: 0.3px;
  position: relative;
  /* mírně nepravidelná "ručně psaná" stopa */
  text-shadow: 0 0 0.5px rgba(58, 40, 24, 0.2);
}
.vincent-letter-spacer {
  height: 10px;
}
.vincent-letter-sign {
  margin-top: 14px;
  font-size: 22px;
  text-align: right;
  font-weight: 500;
  color: #2a1810;
  letter-spacing: 3px;
}
.vincent-letter-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(252, 217, 168, 0.4);
  color: var(--warm);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 200;
}
.vincent-letter-close:hover {
  background: rgba(252, 217, 168, 0.12);
  border-color: var(--warm);
}

/* ============================================
   PHOTO ALBUM (krabice 2018) — fullscreen, 6 fotek, navigace
   ============================================ */

.album-scene {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: radial-gradient(ellipse at center, #1a1208 0%, #050608 80%);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  padding: 40px 80px;
}
.album-scene.visible {
  display: flex;
  opacity: 1;
}

.album-photo-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.album-photo {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: albumPhotoIn 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.album-photo.active { display: flex; }

@keyframes albumPhotoIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.album-image {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4/3;
  border: 1px solid rgba(252, 217, 168, 0.25);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 0 8px rgba(232, 220, 192, 0.07),
    0 0 0 9px rgba(252, 217, 168, 0.15);
  position: relative;
  overflow: hidden;
  background: #1a1208;
}

.album-image svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* polaroid-style — slight rotate per photo for organic feel */
.album-photo[data-photo="0"] .album-image { transform: rotate(-1deg); }
.album-photo[data-photo="1"] .album-image { transform: rotate(0.8deg); }
.album-photo[data-photo="2"] .album-image { transform: rotate(-0.6deg); }
.album-photo[data-photo="3"] .album-image { transform: rotate(1.2deg); }
.album-photo[data-photo="4"] .album-image { transform: rotate(-0.4deg); }
.album-photo[data-photo="5"] .album-image { transform: rotate(0.5deg); }

.album-caption {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(252, 217, 168, 0.7);
  letter-spacing: 1px;
  text-align: center;
  max-width: 500px;
  line-height: 1.6;
}

.album-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 15, 20, 0.7);
  border: 1px solid rgba(252, 217, 168, 0.3);
  color: rgba(252, 217, 168, 0.7);
  font-family: var(--serif);
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.album-nav:hover {
  background: rgba(252, 217, 168, 0.1);
  border-color: var(--warm);
  color: var(--warm);
  transform: translateY(-50%) scale(1.08);
}
.album-nav:disabled { opacity: 0.25; cursor: not-allowed; }
.album-prev { left: 32px; }
.album-next { right: 32px; }

.album-counter {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(232, 220, 192, 0.4);
  z-index: 2;
}

.album-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(252, 217, 168, 0.3);
  color: rgba(252, 217, 168, 0.7);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}
.album-close:hover {
  background: rgba(252, 217, 168, 0.1);
  border-color: var(--warm);
  color: var(--warm);
}

/* TELEFON — face down s pulsing notifikací + fullscreen scéna */

[data-object="phone"] {
  cursor: pointer;
  transition: filter 0.4s ease;
}
[data-object="phone"]:hover {
  filter: drop-shadow(0 0 8px rgba(252, 217, 168, 0.35));
}

.phone-notif-dot {
  opacity: 0.95;
  animation: phoneNotifBlink 2.4s ease-in-out infinite;
}
@keyframes phoneNotifBlink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; filter: drop-shadow(0 0 4px rgba(252, 217, 168, 0.9)); }
}
.phone-notif-pulse {
  animation: phoneNotifRipple 2.4s ease-out infinite;
  transform-origin: 62px 17px;
}
@keyframes phoneNotifRipple {
  0% { opacity: 0; transform: scale(0.6); }
  60% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(2.4); }
}

.phone-scene {
  position: fixed;
  inset: 0;
  z-index: 145;
  background: rgba(5, 5, 10, 0.45);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.7s ease;
  padding: 20px;
}
.phone-scene.visible {
  display: flex;
  opacity: 1;
}

.phone-mockup {
  position: relative;
  z-index: 5;
  width: min(300px, 80vw);
  height: min(580px, 78vh);
  border-radius: 38px;
  background: #0a0805;
  border: 9px solid #1a1208;
  box-shadow:
    0 0 0 1px rgba(80, 60, 40, 0.5),
    0 40px 100px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(20, 14, 8, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: phoneIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* jemný fade na spodku — naznačuje že lze scrollovat */
.phone-mockup::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(180deg, transparent 0%, #050304 100%);
  pointer-events: none;
  border-radius: 0 0 30px 30px;
  z-index: 2;
}

@keyframes phoneIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(252, 217, 168, 0.7);
  letter-spacing: 0.5px;
}

.phone-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 1px;
}

.phone-wallpaper {
  flex: 1;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(252, 217, 168, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #0e0808 0%, #050304 100%);
  padding: 24px 22px 60px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(252, 217, 168, 0.3) transparent;
}
.phone-wallpaper::-webkit-scrollbar {
  width: 4px;
}
.phone-wallpaper::-webkit-scrollbar-track {
  background: transparent;
}
.phone-wallpaper::-webkit-scrollbar-thumb {
  background: rgba(252, 217, 168, 0.35);
  border-radius: 4px;
}
.phone-wallpaper::-webkit-scrollbar-thumb:hover {
  background: rgba(252, 217, 168, 0.55);
}

.phone-bigtime {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 64px;
  color: rgba(232, 220, 192, 0.85);
  text-align: center;
  letter-spacing: -1px;
  line-height: 1;
}
.phone-date {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(232, 220, 192, 0.5);
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.phone-notifs {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(252, 217, 168, 0.06);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(252, 217, 168, 0.08);
  animation: phoneNotifIn 0.8s ease-out both;
}
.phone-notif:nth-child(1) { animation-delay: 0.6s; }
.phone-notif:nth-child(2) { animation-delay: 0.9s; }
.phone-notif:nth-child(3) { animation-delay: 1.2s; }
.phone-notif:nth-child(4) { animation-delay: 1.5s; }

@keyframes phoneNotifIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.phone-notif-mystery {
  border-color: rgba(252, 217, 168, 0.25);
  background: rgba(252, 217, 168, 0.08);
  animation: phoneNotifIn 0.8s ease-out both, phoneNotifMysteryPulse 4s ease-in-out infinite;
}
@keyframes phoneNotifMysteryPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 217, 168, 0); }
  50% { box-shadow: 0 0 16px 2px rgba(252, 217, 168, 0.15); }
}

.phone-notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(252, 217, 168, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--warm);
  flex-shrink: 0;
}
.phone-notif-mystery .phone-notif-icon {
  background: rgba(252, 217, 168, 0.25);
  font-weight: 600;
}

.phone-notif-body { flex: 1; min-width: 0; }

.phone-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.phone-notif-from {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(232, 220, 192, 0.85);
  letter-spacing: 0.3px;
}
.phone-notif-time {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(232, 220, 192, 0.4);
  flex-shrink: 0;
}
.phone-notif-msg {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(232, 220, 192, 0.7);
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.phone-comment {
  margin: 36px 8px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(252, 217, 168, 0.6);
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.3px;
  opacity: 0;
  animation: phoneCommentIn 2s 2s ease-out forwards;
}
@keyframes phoneCommentIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 0.8; transform: translateY(0); }
}

.phone-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(252, 217, 168, 0.4);
  color: var(--warm);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-close:hover {
  background: rgba(252, 217, 168, 0.18);
  border-color: var(--warm);
  color: var(--moon);
  transform: scale(1.08);
}

/* click-outside backdrop — pokrývá celou scénu kromě telefonu */
.phone-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  cursor: pointer;
}

/* ---- ZAVOLAT ZPĚT neznámému číslu (creepy) ---- */
.phone-callback {
  position: fixed; left: 50%; bottom: 9%; transform: translateX(-50%);
  z-index: 12; padding: 11px 22px; border-radius: 30px;
  background: rgba(38, 18, 18, 0.88); border: 1px solid rgba(200, 90, 90, 0.5);
  color: #e0b0b0; font-family: var(--serif); font-style: italic; font-size: 14px;
  cursor: pointer; transition: all 0.3s ease;
}
.phone-callback:hover { background: rgba(60, 24, 24, 0.96); color: #f2c6c6; border-color: rgba(220, 110, 110, 0.8); }
.phone-scene:not(.visible) .phone-callback { display: none; }
.phone-call {
  position: fixed; inset: 0; z-index: 60; background: #060608;
  display: none; align-items: center; justify-content: center;
}
.phone-call.on { display: flex; }
.phone-call-inner { text-align: center; max-width: 480px; padding: 0 26px; }
.phone-call-q { font-size: 40px; color: rgba(200, 200, 210, 0.5); margin-bottom: 16px; }
.phone-call-num { font-family: var(--serif); font-size: 22px; color: #d8d8e0; letter-spacing: 1px; }
.phone-call-status { margin-top: 8px; font-family: monospace; font-size: 12px; color: rgba(205, 95, 95, 0.85); letter-spacing: 3px; text-transform: uppercase; }
.phone-call.ringing .phone-call-status { animation: callPulse 1.2s ease-in-out infinite; }
@keyframes callPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.phone-call-lines { margin-top: 30px; min-height: 150px; display: flex; flex-direction: column; gap: 14px; }
.phone-call-lines p { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 2.2vw, 19px); color: #cdd2da; opacity: 0; transition: opacity 1.4s ease; margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,0.8); }
.phone-call-lines p.visible { opacity: 0.95; }
.phone-call-end { margin-top: 30px; padding: 10px 28px; border-radius: 30px; background: rgba(120, 30, 30, 0.7); border: none; color: #fff; font-family: var(--serif); font-size: 15px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.phone-call-end.show { opacity: 0.9; pointer-events: auto; }

/* ============================================
   DENNÍK NA STOLE + scéna otevřené knihy
   ============================================ */

[data-object="journal"] {
  cursor: pointer;
  transition: filter 0.5s ease, transform 0.4s ease;
}
[data-object="journal"]:hover {
  filter: drop-shadow(0 0 12px rgba(252, 217, 168, 0.4));
}
[data-object="journal"]:hover .journal-glow {
  opacity: 0.4;
}

.journal-scene {
  position: fixed;
  inset: 0;
  z-index: 145;
  background: radial-gradient(ellipse at center, #1a1410 0%, #050608 70%);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 2s ease;
  padding: 40px 20px;
}
.journal-scene.visible {
  display: flex;
  opacity: 1;
}

.journal-book {
  position: relative;
  max-width: 720px;
  width: 100%;
  min-height: 480px;
  padding: 60px 80px;
  background: linear-gradient(180deg, #f0e3c4 0%, #e8d8b4 100%);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(58, 40, 24, 0.4),
    0 24px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(180, 140, 80, 0.15);
  font-family: var(--serif);
  color: #3a2818;
  position: relative;
  overflow: hidden;
}

.journal-book::before {
  /* texture papíru */
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 38px, rgba(150, 110, 60, 0.05) 38px, rgba(150, 110, 60, 0.05) 39px),
    radial-gradient(ellipse at top right, rgba(120, 80, 40, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.journal-book::after {
  /* spodní stín pro feeling */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, transparent 50%, rgba(58, 40, 24, 0.15) 100%);
  pointer-events: none;
}

.journal-page {
  display: none;
  position: relative;
  z-index: 1;
  animation: journalPageIn 1.4s ease-out;
}
.journal-page.active { display: block; }

@keyframes journalPageIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.journal-pagenum {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: rgba(58, 40, 24, 0.5);
  letter-spacing: 4px;
  margin-bottom: 32px;
  text-align: right;
}

.journal-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.85;
  letter-spacing: 0.3px;
  color: #3a2818;
  margin: 0;
}

.journal-line.journal-pause {
  margin-top: 20px;
}
.journal-line.journal-em {
  font-weight: 500;
  font-size: clamp(17px, 2vw, 21px);
  margin-top: 4px;
}
.journal-line.journal-quiet {
  color: rgba(58, 40, 24, 0.55);
  font-size: clamp(14px, 1.5vw, 16px);
  margin-top: 18px;
}

.journal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 15, 20, 0.7);
  border: 1px solid rgba(252, 217, 168, 0.3);
  color: rgba(252, 217, 168, 0.7);
  font-family: var(--serif);
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.journal-nav:hover {
  background: rgba(252, 217, 168, 0.1);
  border-color: var(--warm);
  color: var(--warm);
  transform: translateY(-50%) scale(1.08);
}
.journal-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.journal-prev { left: 32px; }
.journal-next { right: 32px; }

.journal-counter {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 3px;
  color: rgba(232, 220, 192, 0.4);
  z-index: 2;
}

.journal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(252, 217, 168, 0.3);
  color: rgba(252, 217, 168, 0.7);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
}
.journal-close:hover {
  background: rgba(252, 217, 168, 0.1);
  border-color: var(--warm);
  color: var(--warm);
}

/* mobile */
@media (max-width: 720px) {
  .journal-book { padding: 40px 28px; min-height: 380px; }
  .journal-nav { width: 44px; height: 44px; font-size: 24px; }
  .journal-prev { left: 12px; }
  .journal-next { right: 12px; }
}

/* ============================================
   ZRCADLO — intimní hover, subtle shimmer
   ============================================ */

[data-object="mirror"] {
  cursor: pointer;
  transition: filter 0.6s ease;
}
[data-object="mirror"]:hover {
  filter: drop-shadow(0 0 14px rgba(252, 217, 168, 0.4));
}
[data-object="mirror"]:hover ellipse:nth-child(4) {
  /* sklo zrcadla mírně zaleskne při hover */
  filter: brightness(1.4);
}

/* ============================================
   OTVŮREK VE ZDI (myší díra) — Vincent klíč
   ============================================ */

.mouse-hole {
  cursor: pointer;
  transition: filter 0.4s ease;
}
.mouse-hole:hover {
  filter: drop-shadow(0 0 6px rgba(252, 217, 168, 0.3));
}

.hole-glow {
  transition: opacity 1.2s ease;
}
.mouse-hole.feeding .hole-glow {
  opacity: 0.85;
  animation: holeGlowPulse 3s ease-in-out infinite;
}

@keyframes holeGlowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.key-from-hole {
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(252, 217, 168, 0.6));
}
.key-from-hole.shimmering {
  animation: keyShimmer 1.4s ease-in-out infinite;
}
@keyframes keyShimmer {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(252, 217, 168, 0.5)); }
  50% { filter: drop-shadow(0 0 18px rgba(252, 217, 168, 1)) brightness(1.3); }
}

/* ============================================
   KLÍČ V PUSE — Vincent ho nese (visible during carry)
   ============================================ */

.cat-key-in-mouth {
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(252, 217, 168, 0.7));
}
.cat-key-glow {
  animation: catKeyGlow 1.6s ease-in-out infinite;
}
@keyframes catKeyGlow {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.28; }
}

/* subtle vertical bounce while Vincent walks with the key */
.cat.carrying-key {
  animation: catCarryBounce 0.55s ease-in-out infinite;
}
@keyframes catCarryBounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

/* ============================================
   OKNO ODEMČENÉ — pulsuje warm, ukazuje že je klíč funkční
   ============================================ */

[data-object="window"].unlocked {
  animation: windowReady 3s ease-in-out infinite;
}
@keyframes windowReady {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5) drop-shadow(0 0 18px rgba(252, 217, 168, 0.5)); }
}

/* ============================================
   TRHLINA VE ZDI — animace rozevírání
   ============================================ */

.wall-crack {
  transition: opacity 4s ease;
  cursor: pointer;
}

.wall-crack.appearing {
  opacity: 1;
}

.crack-line, .crack-glow {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: crackGrow 6s ease-out forwards;
}

@keyframes crackGrow {
  to { stroke-dashoffset: 0; }
}

.wall-crack.appearing .crack-glow {
  animation: crackGrow 6s ease-out forwards, crackPulse 3s ease-in-out 6s infinite;
}

@keyframes crackPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ============================================
   INVENTORY KEY (klíč v rohu)
   ============================================ */

.inventory-key {
  transition: opacity 1.5s ease, transform 0.4s ease;
  cursor: default;
}

.inventory-key.has-key {
  opacity: 1;
  animation: keyAppear 1.8s ease-out;
}

@keyframes keyAppear {
  0% { opacity: 0; transform: translate(1330px, 60px) scale(0.5) rotate(-180deg); }
  60% { transform: translate(1330px, 60px) scale(1.3) rotate(0deg); }
  100% { opacity: 1; transform: translate(1330px, 60px) scale(1) rotate(0deg); }
}

/* ============================================
   SCHODY DOLŮ — light leak animace
   ============================================ */

.stairs-glow {
  animation: stairsLeakGlow 4s ease-in-out infinite;
}
@keyframes stairsLeakGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* ============================================
   KUCHYNĚ SCÉNA
   ============================================ */

.kitchen-scene {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: #1a1208;
  display: none;
  overflow: hidden;
}

.kitchen-scene.visible {
  display: block;
  animation: kitchenAppear 1.2s ease-out forwards;
}

@keyframes kitchenAppear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.kitchen-scene svg {
  width: 100%;
  height: 100%;
}

.kitchen-ambient {
  animation: kitchenAmbientPulse 7s ease-in-out infinite;
}
@keyframes kitchenAmbientPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.45; }
}

/* pendant lamps glow */
.pendant-glow {
  animation: pendantFlicker 5s ease-in-out infinite;
}
.pendant-lamps g:nth-child(2) .pendant-glow { animation-delay: 1.5s; }
.pendant-lamps g:nth-child(3) .pendant-glow { animation-delay: 3s; }

@keyframes pendantFlicker {
  0%, 100% { opacity: 0.85; }
  30% { opacity: 1; }
  60% { opacity: 0.75; }
}

.pendant-aura {
  animation: pendantAura 6s ease-in-out infinite;
}
.pendant-lamps g:nth-child(2) .pendant-aura { animation-delay: 2s; }
.pendant-lamps g:nth-child(3) .pendant-aura { animation-delay: 4s; }

@keyframes pendantAura {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.08); }
}

/* gentle curtain sway */
.curtain-left, .curtain-right {
  animation: curtainSway 10s ease-in-out infinite;
  transform-origin: top center;
  transform-box: fill-box;
}
.curtain-right { animation-delay: 5s; }

@keyframes curtainSway {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(1deg); }
}

/* candle flame */
.candle-flame {
  animation: candleFlicker 0.8s ease-in-out infinite;
  transform-origin: bottom center;
  transform-box: fill-box;
}
@keyframes candleFlicker {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 1; }
  50% { transform: scaleY(1.12) translateY(-1px); opacity: 0.92; }
}

.candle-glow {
  animation: candleGlowPulse 3s ease-in-out infinite;
}
@keyframes candleGlowPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.15); }
}

/* cup steam */
.cup-steam {
  animation: cupSteamRise 3.5s ease-in-out infinite;
}
@keyframes cupSteamRise {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(-3px); }
}

/* room particles ve světle pendant lampy */
.room-particles .rp {
  animation: rpFloat 9s linear infinite;
}
.room-particles .p1 { animation-delay: 0s; animation-duration: 10s; }
.room-particles .p2 { animation-delay: 1.6s; animation-duration: 12s; }
.room-particles .p3 { animation-delay: 3s; animation-duration: 8s; }
.room-particles .p4 { animation-delay: 0.8s; animation-duration: 11s; }
.room-particles .p5 { animation-delay: 4s; animation-duration: 9.5s; }
.room-particles .p6 { animation-delay: 2.2s; animation-duration: 10.5s; }

@keyframes rpFloat {
  0%   { transform: translate(0, 0); opacity: 0; }
  20%  { opacity: 0.8; }
  100% { transform: translate(-15px, -100px); opacity: 0; }
}

/* pokoji jemný vánek listy monstery */
.monstera-leaves {
  animation: monsteraBreath 8s ease-in-out infinite;
  transform-origin: bottom center;
  transform-box: fill-box;
}
@keyframes monsteraBreath {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(0.6deg); }
}

/* kitchen floating particles in light */
.kitchen-particles .kp {
  animation: kpFloat 8s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.kitchen-particles .p1 { animation-delay: 0s; animation-duration: 9s; }
.kitchen-particles .p2 { animation-delay: 1.4s; animation-duration: 11s; }
.kitchen-particles .p3 { animation-delay: 2.8s; animation-duration: 8s; }
.kitchen-particles .p4 { animation-delay: 0.6s; animation-duration: 10s; }
.kitchen-particles .p5 { animation-delay: 3.2s; animation-duration: 7s; }
.kitchen-particles .p6 { animation-delay: 1.8s; animation-duration: 12s; }
.kitchen-particles .p7 { animation-delay: 4s; animation-duration: 8.5s; }
.kitchen-particles .p8 { animation-delay: 2.4s; animation-duration: 9.5s; }
.kitchen-particles .p9 { animation-delay: 5s; animation-duration: 11s; }
.kitchen-particles .p10 { animation-delay: 1s; animation-duration: 10.5s; }
.kitchen-particles .p11 { animation-delay: 3.6s; animation-duration: 8s; }

@keyframes kpFloat {
  0%   { transform: translate(0, 0); opacity: 0; }
  20%  { opacity: 0.8; }
  100% { transform: translate(-20px, -120px); opacity: 0; }
}

.kettle-led {
  animation: kettleLed 2s ease-in-out infinite;
}
@keyframes kettleLed {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.kettle-steam, .pot-steam {
  animation: kSteamRise 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: bottom;
}
@keyframes kSteamRise {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 0.7; transform: translateY(-4px); }
}

.water-drop {
  animation: waterDropFall 4s ease-in 2s infinite;
}
@keyframes waterDropFall {
  0%, 70% { transform: translateY(0); opacity: 0.7; }
  100% { transform: translateY(40px); opacity: 0; }
}

.stove-glow {
  animation: stoveGlow 3s ease-in-out infinite;
}
@keyframes stoveGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

.kitchen-stairs-glow {
  animation: stairsLeakGlow 4s ease-in-out infinite;
}

.kitchen-close {
  position: fixed;
  top: 22px;
  left: 26px;
  padding: 10px 18px;
  background: rgba(15, 15, 20, 0.6);
  border: 1px solid rgba(252, 217, 168, 0.3);
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.5s ease 1.8s;
  pointer-events: none;
}

.kitchen-scene.visible .kitchen-close {
  opacity: 0.7;
  pointer-events: auto;
}

.kitchen-close:hover {
  opacity: 1;
  color: var(--warm);
  border-color: var(--warm);
}

/* ============================================
   SKLEP SCÉNA
   ============================================ */

.cellar-scene {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: #0a0e14;
  display: none;
  overflow: hidden;
}

.cellar-scene.visible {
  display: block;
  animation: cellarAppear 3.5s ease-out forwards;
}

@keyframes cellarAppear {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

.cellar-scene svg {
  width: 100%;
  height: 100%;
}

/* warm bulb pulse */
.cellar-bulb {
  animation: cellarBulbFlicker 5s ease-in-out infinite;
}

@keyframes cellarBulbFlicker {
  0%, 100% { opacity: 0.85; }
  30% { opacity: 1; }
  60% { opacity: 0.7; }
  80% { opacity: 0.9; }
}

.cellar-ambient {
  animation: cellarAmbient 6s ease-in-out infinite;
}

@keyframes cellarAmbient {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.75; }
}

/* stairs glow up */
.cellar-stairs-glow {
  animation: cellarStairs 4s ease-in-out infinite;
}

@keyframes cellarStairs {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.35; }
}

/* secret glow hint on box */
.cellar-box-glow {
  animation: boxHint 3s ease-in-out infinite;
}

@keyframes boxHint {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

.cellar-close {
  position: fixed;
  top: 22px;
  left: 26px;
  padding: 10px 18px;
  background: rgba(15, 15, 20, 0.6);
  border: 1px solid rgba(252, 217, 168, 0.3);
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.5s ease 2s;
  pointer-events: none;
}

.cellar-scene.visible .cellar-close {
  opacity: 0.7;
  pointer-events: auto;
}

.cellar-close:hover {
  opacity: 1;
  color: var(--warm);
  border-color: var(--warm);
}

/* ============================================
   CRACK SCÉNA — void / dimenze
   ============================================ */

.crack-scene {
  position: fixed;
  inset: 0;
  z-index: 145;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 2.5s ease;
}

.crack-scene.visible {
  display: flex;
  opacity: 1;
}

.crack-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a1208 0%, #050608 80%);
  z-index: 0;
}

.crack-bg::before, .crack-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(252, 217, 168, 0.04) 50%, transparent 51%);
  animation: crackShimmer 8s ease-in-out infinite;
}

.crack-bg::after {
  animation-delay: 4s;
  background: linear-gradient(-45deg, transparent 49%, rgba(252, 217, 168, 0.04) 50%, transparent 51%);
}

@keyframes crackShimmer {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.crack-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 620px;
}

.crack-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
  line-height: 1.5;
  margin: 18px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 2s ease, transform 2s ease;
}

.crack-scene.visible .crack-1 { transition-delay: 0.8s; }
.crack-scene.visible .crack-2 { transition-delay: 2.4s; }
.crack-scene.visible .crack-3 { transition-delay: 4.0s; }
.crack-scene.visible .crack-4 { transition-delay: 5.4s; }
.crack-scene.visible .crack-5 { transition-delay: 7.2s; }
.crack-scene.visible .crack-6 { transition-delay: 8.6s; }
.crack-scene.visible .crack-7 { transition-delay: 10.4s; color: rgba(232, 220, 192, 0.5); font-size: 18px; }
.crack-scene.visible .crack-line { opacity: 1; transform: translateY(0); }

.crack-cta {
  margin-top: 50px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transition: opacity 2s ease 11.4s;
}

.crack-scene.visible .crack-cta { opacity: 1; }

/* ============================================
   HEART BURST (celebration na YES)
   ============================================ */

.burst-heart {
  position: fixed;
  z-index: 9999;
  color: var(--warm);
  text-shadow: 0 0 12px rgba(252, 217, 168, 0.7);
  pointer-events: none;
  animation: heartBurst 2.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  transform: translate(-50%, -50%) scale(0);
  font-family: serif;
}

@keyframes heartBurst {
  0%   { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
  15%  { transform: translate(-50%, -50%) scale(1.4) rotate(0deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.4) rotate(360deg); opacity: 0; }
}

/* ============================================
   CURSOR GLOW (warm dot following mouse)
   ============================================ */

/* CANDLE FLAME CURSOR */
.cursor-glow {
  position: fixed;
  width: 22px;
  height: 34px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -88%); /* špička plamene u kurzoru, kontaktní bod = bottom */
  transition: width 0.4s ease, height 0.4s ease, opacity 0.5s ease;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: left, top;
}

.cursor-glow::before {
  /* hlavní tělo plamene */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 90% at 50% 75%,
    rgba(255, 248, 220, 1) 0%,
    rgba(255, 220, 140, 0.92) 20%,
    rgba(252, 184, 90, 0.75) 45%,
    rgba(220, 110, 40, 0.45) 72%,
    transparent 100%);
  border-radius: 50% 50% 42% 42% / 70% 70% 38% 38%;
  filter: blur(0.4px);
  animation: candleFlicker 0.18s ease-in-out infinite alternate;
}

.cursor-glow::after {
  /* aura/halo okolo plamene */
  content: '';
  position: absolute;
  inset: -28px;
  background: radial-gradient(circle at 50% 65%,
    rgba(252, 217, 168, 0.32) 0%,
    rgba(252, 184, 90, 0.12) 35%,
    transparent 75%);
  pointer-events: none;
  animation: candleAura 2.5s ease-in-out infinite;
}

@keyframes candleFlicker {
  0%   { transform: scaleY(1)    scaleX(1)    translateY(0); opacity: 0.92; }
  25%  { transform: scaleY(1.06) scaleX(0.95) translateY(-1px); opacity: 1; }
  50%  { transform: scaleY(1.02) scaleX(1.02) translateY(0); opacity: 0.96; }
  75%  { transform: scaleY(1.08) scaleX(0.93) translateY(-0.5px); opacity: 1; }
  100% { transform: scaleY(1.04) scaleX(0.97) translateY(0); opacity: 0.94; }
}

@keyframes candleAura {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}

.cursor-glow.visible { opacity: 1; }

.cursor-glow.over-object {
  width: 28px;
  height: 42px;
  /* nad klikatelným objektem plamen vzplane silněji */
}
.cursor-glow.over-object::after {
  background: radial-gradient(circle at 50% 65%,
    rgba(252, 217, 168, 0.48) 0%,
    rgba(252, 184, 90, 0.2) 35%,
    transparent 75%);
}

/* hide cursor glow on touch devices */
@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ============================================
   LIGHT PARTICLES (drifting from lamp)
   ============================================ */

.light-particles .p {
  animation: particleFloat 8s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.light-particles .p1 { animation-delay: 0s; animation-duration: 7s; }
.light-particles .p2 { animation-delay: 1.5s; animation-duration: 9s; }
.light-particles .p3 { animation-delay: 3s; animation-duration: 6s; }
.light-particles .p4 { animation-delay: 0.5s; animation-duration: 10s; }
.light-particles .p5 { animation-delay: 2.3s; animation-duration: 7.5s; }
.light-particles .p6 { animation-delay: 4s; animation-duration: 8.5s; }
.light-particles .p7 { animation-delay: 5.2s; animation-duration: 6.5s; }
.light-particles .p8 { animation-delay: 1.2s; animation-duration: 9.5s; }

@keyframes particleFloat {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translate(-30px, -80px); opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translate(-50px, -160px); opacity: 0; }
}

/* ============================================
   WISH STAR pulse + easter star hover
   ============================================ */

.wish-star {
  animation: wishTwinkle 3s ease-in-out infinite;
}
.easter-star:nth-of-type(2) .wish-star { animation-delay: 1s; }
.easter-star:nth-of-type(3) .wish-star { animation-delay: 2s; }

@keyframes wishTwinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8); transform-box: fill-box; transform-origin: center; }
  50%      { opacity: 1;   transform: scale(1.4); transform-box: fill-box; transform-origin: center; }
}

.easter-star, .easter-moon {
  cursor: pointer;
  transition: filter 0.3s ease;
}

.easter-star:hover .wish-star {
  filter: drop-shadow(0 0 8px #fcd9a8);
}

.easter-moon:hover {
  filter: drop-shadow(0 0 18px rgba(254, 246, 224, 0.6));
}

/* ============================================
   SENTENCE BAR — skrytá věta postupně skládaná
   ============================================ */

.sentence-bar {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: rgba(15, 15, 20, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(252, 217, 168, 0.22);
  border-radius: 18px;
  font-family: var(--serif);
  font-style: italic;
  color: rgba(232, 220, 192, 0.55);
  z-index: 6;
  opacity: 0;
  transition: opacity 2s ease 1s, border-color 1s ease;
  pointer-events: none;
  max-width: 92vw;
}

.sentence-bar.visible { opacity: 1; }

/* progress: "0 / 8 slov" */
.sentence-progress {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(232, 220, 192, 0.5);
  font-style: normal;
}
.sentence-count {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--warm);
  letter-spacing: 0;
  font-weight: 500;
}
.sentence-divider {
  color: rgba(232, 220, 192, 0.3);
  font-size: 14px;
}
.sentence-total {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(232, 220, 192, 0.45);
}
.sentence-label {
  margin-left: 4px;
}

.sentence-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 18px;
  letter-spacing: 2px;
  color: rgba(232, 220, 192, 0.5);
}

.sentence-word {
  transition: color 1.4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 1.4s ease;
  display: inline-block;
}

.sentence-word.revealed {
  color: var(--warm);
  text-shadow: 0 0 12px rgba(252, 217, 168, 0.5);
  animation: wordReveal 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wordReveal {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; color: var(--moon); }
  100% { transform: scale(1); opacity: 1; }
}

.sentence-bar.complete {
  animation: barPulse 3s ease-in-out infinite;
  border-color: var(--warm);
}

@keyframes barPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(252, 217, 168, 0); }
  50% { box-shadow: 0 0 30px 4px rgba(252, 217, 168, 0.25); }
}

/* ============================================
   SENTENCE REVEAL — fullscreen po dokončení
   ============================================ */

.sentence-reveal {
  position: fixed;
  inset: 0;
  z-index: 300; /* nad kitchen(140) + cellar(140) + roof(140) + overlay(160) */
  background: radial-gradient(ellipse at center, #1a1208 0%, #050608 70%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 2.5s ease;
}

.sentence-reveal.visible {
  display: flex;
  opacity: 1;
}

.reveal-inner {
  text-align: center;
  max-width: 800px;
  position: relative;
}

.reveal-inner::before {
  content: '';
  position: absolute;
  inset: -120px -80px;
  background: radial-gradient(ellipse at center, rgba(252, 217, 168, 0.2) 0%, transparent 60%);
  pointer-events: none;
  animation: revealGlow 4s ease-in-out infinite;
}

@keyframes revealGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.reveal-line {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 500;
  color: var(--moon);
  text-shadow: 0 0 24px rgba(252, 217, 168, 0.5);
  line-height: 1.35;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(16px);
  animation: revealLineIn 2.4s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes revealLineIn {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-sub {
  position: relative;
  margin-top: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-soft);
  opacity: 0;
  animation: revealLineIn 1.8s 3.6s forwards;
}

.reveal-credit {
  position: relative;
  margin-top: 36px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(232, 220, 192, 0.5);
  opacity: 0;
  animation: revealLineIn 1.8s 4.8s forwards;
}

#revealContinue, .reveal-continue {
  margin-top: 48px;
  padding: 16px 38px;
  background: transparent;
  border: 1px solid rgba(252, 217, 168, 0.45);
  border-radius: 100px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--warm);
  cursor: pointer;
  transition: all 0.5s ease;
  opacity: 0;
  animation: revealLineIn 1.8s 5.8s forwards;
}
#revealContinue:hover, .reveal-continue:hover {
  background: rgba(252, 217, 168, 0.08);
  border-color: var(--warm);
  box-shadow: 0 0 24px rgba(252, 217, 168, 0.25);
  letter-spacing: 4px;
}

/* ============================================
   STATUS BAR (top) — live "co dělá"
   ============================================ */

.status-bar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(252, 217, 168, 0.12);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 1s ease 0.5s;
  z-index: 6;
  max-width: 92vw;
  white-space: nowrap;
  overflow: hidden;
}

.status-bar.visible {
  opacity: 1;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 10px var(--warm);
  animation: statusPulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.status-dot.sleeping {
  background: #6a7a9a;
  box-shadow: 0 0 8px #6a7a9a;
  animation-duration: 6s;
}

.status-dot.away {
  background: #888;
  box-shadow: none;
  animation: none;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.status-text {
  color: var(--ink);
  font-weight: 400;
}

.status-time {
  color: rgba(232, 220, 192, 0.4);
  font-style: italic;
  font-family: var(--serif);
  font-size: 13px;
  margin-left: 4px;
}

/* ============================================
   DAILY MESSAGE (subtle corner)
   ============================================ */

.daily-msg {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(232, 220, 192, 0.5);
  opacity: 0;
  transition: opacity 1.4s ease 1.4s;
  z-index: 5;
  pointer-events: none;
  max-width: 90vw;
}

.daily-msg.visible { opacity: 1; }

.daily-label {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(252, 217, 168, 0.4);
  margin-bottom: 4px;
  font-style: normal;
}

.daily-text { font-style: italic; }

/* ============================================
   HINT / COUNTER
   ============================================ */

.hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(232, 220, 192, 0.45);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
  z-index: 5;
}

.hint.visible {
  opacity: 1;
  animation: hintFade 3s ease-in-out infinite;
}

@keyframes hintFade {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 8px var(--warm);
}

.counter {
  position: fixed;
  top: 22px;
  right: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(232, 220, 192, 0.4);
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 1s ease, filter 1.5s ease;
  z-index: 5;
  pointer-events: none;
}

.counter.visible { opacity: 1; }
.counter-current { color: var(--warm); font-weight: 500; }

.counter-label {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(252, 217, 168, 0.4);
  margin-bottom: 2px;
}

.counter.won {
  filter: drop-shadow(0 0 14px rgba(252, 217, 168, 0.6));
  animation: counterWin 2s ease-in-out infinite;
}

@keyframes counterWin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ============================================
   OVERLAY
   ============================================ */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.overlay-card {
  position: relative;
  max-width: 580px;
  width: 100%;
  padding: 64px 56px;
  background: linear-gradient(180deg, rgba(46, 34, 22, 0.96) 0%, rgba(18, 14, 10, 0.97) 100%);
  border: 1px solid rgba(252, 217, 168, 0.22);
  border-radius: 4px;
  text-align: center;
  transform: translateY(40px) scale(0.92);
  opacity: 0;
  transition:
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
    opacity 0.7s ease 0.1s;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    0 0 80px rgba(252, 217, 168, 0.1) inset,
    0 0 0 1px rgba(252, 217, 168, 0.05);
}

.overlay.visible .overlay-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* text uvnitř karty fade-in postupně pro feeling */
.overlay-card .overlay-label,
.overlay-card .overlay-text {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.overlay.visible .overlay-card .overlay-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.overlay.visible .overlay-card .overlay-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.overlay-label {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(252, 217, 168, 0.45);
  margin-bottom: 28px;
}

.overlay-text {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  white-space: pre-line;
}

/* multi-choice answers inside overlay */
.overlay-choices {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-choices[hidden] { display: none; }

.choice-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: rgba(40, 30, 20, 0.4);
  border: 1px solid rgba(252, 217, 168, 0.18);
  border-radius: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  line-height: 1.4;
}

.choice-btn:hover {
  background: rgba(60, 45, 28, 0.65);
  border-color: rgba(252, 217, 168, 0.5);
  transform: translateY(-2px);
}

.choice-btn:active {
  transform: translateY(0);
}

.choice-btn.picked {
  background: rgba(252, 217, 168, 0.15);
  border-color: var(--warm);
  color: var(--warm);
}

.choice-btn.faded {
  opacity: 0.3;
  pointer-events: none;
}

/* soft-faded: lehce ztlumené ale stále klikací */
.choice-btn.soft-faded {
  opacity: 0.55;
}
.choice-btn.soft-faded:hover {
  opacity: 0.85;
}

/* his reply after choice */
.overlay-reply {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(252, 217, 168, 0.12);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.8vw, 26px);
  color: var(--warm);
  line-height: 1.55;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.overlay-reply[hidden] { display: none; }
.overlay-reply.visible {
  opacity: 1;
  transform: translateY(0);
}

.overlay-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: rgba(232, 220, 192, 0.4);
  font-size: 28px;
  font-weight: 200;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.5, 0, 0.5, 1);
  font-family: var(--sans);
  border-radius: 50%;
}

.overlay-close:hover {
  color: var(--warm);
}

/* runaway: button that dodges on hover (used for both overlay close occasionally + "ne díky" CTA) */
.overlay-close.runaway {
  /* applied transform via JS */
}

/* ============================================
   FINAL — multi-step date picker
   ============================================ */

.final, .final-cinematic {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(ellipse at center, #1a1208 0%, #050608 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2.5s ease;
  padding: 20px;
}

.final.visible, .final-cinematic.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   CINEMATIC ENDING — poetic close, žádné CTA
   ============================================ */

.cinematic-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at center, rgba(252, 217, 168, 0.14) 0%, transparent 65%);
  pointer-events: none;
  animation: cinematicGlow 8s ease-in-out infinite;
}

@keyframes cinematicGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.06); }
}

.cinematic-room-fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at center, rgba(252, 217, 168, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: roomFade 12s ease-in-out infinite;
}

@keyframes roomFade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.cinematic-stage {
  position: relative;
  text-align: center;
  max-width: 720px;
  width: 100%;
  z-index: 2;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.ending-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 36px);
  color: var(--moon);
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-shadow: 0 0 20px rgba(252, 217, 168, 0.35);
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  position: absolute;
  width: 100%;
  text-align: center;
  pointer-events: none;
}

.final-cinematic.visible .ending-line {
  animation: endingLineFade 7s ease-in-out forwards;
}

@keyframes endingLineFade {
  0% { opacity: 0; transform: translateY(8px); }
  18% { opacity: 1; transform: translateY(0); }
  78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* každý řádek má timing — staggered fade in/out */
.final-cinematic.visible .ending-line[data-line="1"] { animation-delay: 0.8s; }
.final-cinematic.visible .ending-line[data-line="2"] { animation-delay: 5.5s; }
.final-cinematic.visible .ending-line[data-line="3"] { animation-delay: 10.2s; }
.final-cinematic.visible .ending-line[data-line="4"] { animation-delay: 14.9s; }
.final-cinematic.visible .ending-line[data-line="5"] { animation-delay: 19.6s; }
.final-cinematic.visible .ending-line[data-line="6"] { animation-delay: 24.3s; }

/* tiché "..." pauza */
.ending-pause {
  font-size: clamp(28px, 3.5vw, 42px) !important;
  letter-spacing: 12px !important;
  color: rgba(252, 217, 168, 0.6) !important;
}
.final-cinematic.visible .ending-line[data-line="7"] { animation-delay: 29s; animation-duration: 5s; }

/* signature "— r." zůstane */
.ending-sign {
  font-size: clamp(18px, 2.2vw, 26px) !important;
  color: rgba(252, 217, 168, 0.55) !important;
  letter-spacing: 3px !important;
}
.final-cinematic.visible .ending-line[data-line="8"] {
  animation: endingSignAppear 3s 32s ease-out forwards;
}
@keyframes endingSignAppear {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* footer s kredity — diskrétní, objeví se až nakonec */
.cinematic-footer {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(232, 220, 192, 0.35);
  opacity: 0;
  z-index: 3;
}
.final-cinematic.visible .cinematic-footer {
  animation: endingSignAppear 3s 35s ease-out forwards;
}

.footer-title { color: rgba(232, 220, 192, 0.5); }
.footer-dot { color: rgba(232, 220, 192, 0.25); }
.footer-ig {
  color: rgba(252, 217, 168, 0.6);
  text-decoration: none;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.footer-ig:hover {
  color: var(--warm);
  text-shadow: 0 0 12px rgba(252, 217, 168, 0.4);
}
.footer-year { color: rgba(232, 220, 192, 0.3); }

/* nenápadný restart v rohu (pro ty co chtějí znovu) */
.cinematic-restart {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(252, 217, 168, 0.2);
  color: rgba(252, 217, 168, 0.5);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 3;
}
.final-cinematic.visible .cinematic-restart {
  animation: endingSignAppear 2s 36s ease-out forwards;
}
.cinematic-share {
  position: fixed; bottom: 7%; left: 50%; transform: translateX(-50%);
  padding: 10px 26px; border-radius: 30px;
  background: rgba(20, 20, 26, 0.6); border: 1px solid rgba(252, 217, 168, 0.25);
  color: rgba(252, 217, 168, 0.6); font-family: var(--serif); font-style: italic; font-size: 15px;
  cursor: pointer; opacity: 0; pointer-events: none; transition: all 0.4s ease; z-index: 3;
}
.final-cinematic.visible .cinematic-share {
  animation: endingSignAppear 2s 37s ease-out forwards;
  pointer-events: auto;
}
.cinematic-share:hover { border-color: var(--warm); color: var(--warm); box-shadow: 0 0 16px rgba(252, 217, 168, 0.25); }
.cinematic-restart:hover {
  border-color: var(--warm);
  color: var(--warm);
  box-shadow: 0 0 16px rgba(252, 217, 168, 0.3);
  transform: rotate(180deg);
}

.final-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at center, rgba(252, 217, 168, 0.16) 0%, transparent 60%);
  pointer-events: none;
  animation: finalGlow 6s ease-in-out infinite;
}

@keyframes finalGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.final-step {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-step[hidden] { display: none; }

.final-inner {
  text-align: center;
  max-width: 680px;
  position: relative;
  width: 100%;
}

.final-step-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--ink);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.final-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(8px);
  animation: lineFade 1s forwards;
}

.final-step[data-step="invite"] .final-line:nth-child(1) { animation-delay: 0.3s; }
.final-step[data-step="invite"] .final-line:nth-child(2) { animation-delay: 1.3s; }
.final-step[data-step="invite"] .final-line:nth-child(3) { animation-delay: 2.3s; }
.final-step[data-step="invite"] .final-cta { animation: lineFade 1s 3.3s forwards; opacity: 0; }

.final-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-soft);
}

.final-q {
  margin-top: 24px;
  color: var(--warm);
  font-size: clamp(26px, 3.6vw, 34px);
}

.final-tiny { font-size: clamp(13px, 1.6vw, 15px); margin-top: 8px; }

@keyframes lineFade {
  to { opacity: 1; transform: translateY(0); }
}

.final-cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Only the invite-step cta is delayed (since it has dramatic line-by-line reveal) */
.final-step[data-step="invite"] .final-cta {
  opacity: 0;
  animation: lineFade 1s 3.3s forwards;
}

.final-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.35s ease;
  border: 1px solid transparent;
}

.final-btn-primary {
  background: var(--warm);
  color: #1a1208;
}

.final-btn-primary:hover {
  background: var(--moon);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(252, 217, 168, 0.3);
}

.final-btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: rgba(232, 220, 192, 0.2);
}

.final-btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(232, 220, 192, 0.45);
}

/* RUNAWAY button — dodges the cursor */
.runaway,
.no-btn {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  position: relative;
}

/* YES/NO buttons styling — větší, slavnostní */
.yesno-cta {
  margin-top: 48px;
  gap: 24px;
}

.yes-btn,
.no-btn {
  min-width: 140px;
  padding: 22px 48px;
  font-size: 16px;
  letter-spacing: 6px;
  font-weight: 500;
}

/* ============================================
   DATE GRID
   ============================================ */

.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

.date-card {
  background: rgba(40, 30, 20, 0.4);
  border: 1px solid rgba(252, 217, 168, 0.15);
  border-radius: 4px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--sans);
  color: var(--ink);
  text-align: center;
}

.date-card:hover {
  background: rgba(60, 45, 28, 0.6);
  border-color: rgba(252, 217, 168, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.date-card.selected {
  background: rgba(252, 217, 168, 0.12);
  border-color: var(--warm);
}

.date-day {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--warm);
  line-height: 1;
}

.date-month {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--ink-soft);
}

.date-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  margin-top: 10px;
  color: var(--ink);
}

.date-time {
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 4px;
  color: var(--ink-soft);
}

/* ============================================
   VIBE GRID
   ============================================ */

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.vibe-card {
  background: rgba(40, 30, 20, 0.4);
  border: 1px solid rgba(252, 217, 168, 0.15);
  border-radius: 4px;
  padding: 28px 18px 24px;
  cursor: pointer;
  transition: all 0.35s ease;
  text-align: center;
  color: var(--ink);
}

.vibe-card:hover {
  background: rgba(60, 45, 28, 0.6);
  border-color: rgba(252, 217, 168, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.5);
}

.vibe-card.selected {
  background: rgba(252, 217, 168, 0.12);
  border-color: var(--warm);
}

.vibe-icon {
  font-size: 38px;
  margin-bottom: 14px;
}

.vibe-name {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--warm);
  margin-bottom: 8px;
}

.vibe-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ============================================
   NAME INPUT
   ============================================ */

.name-input {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 0 auto 32px;
  padding: 18px 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(252, 217, 168, 0.3);
  outline: none;
  text-align: center;
  transition: border-color 0.3s ease;
}

.name-input::placeholder {
  color: rgba(232, 220, 192, 0.3);
  font-style: italic;
}

.name-input:focus {
  border-color: var(--warm);
}

/* ============================================
   DONE SCREEN
   ============================================ */

.final-done .final-line { animation-delay: 0.4s; }

/* closing flow — soft IG CTA */
.closing-cta {
  margin: 40px auto 32px;
  display: flex;
  justify-content: center;
}

.closing-ig-btn {
  display: inline-block;
  padding: 20px 40px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: lowercase;
  text-decoration: none;
  background: var(--warm);
  color: #1a1208;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 500;
}

.closing-ig-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(252, 217, 168, 0.4);
  background: var(--moon);
}

/* personalised letter v done screen */
.final-letter {
  margin: 32px auto 16px;
  padding: 28px 32px;
  max-width: 520px;
  background: rgba(40, 30, 20, 0.35);
  border-left: 2px solid var(--warm);
  border-radius: 2px;
  text-align: left;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-line;
  opacity: 0;
  transform: translateY(12px);
  animation: lineFade 1.6s 2.4s forwards;
}
.final-done .final-summary {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--warm);
  font-weight: 500;
  margin: 24px 0 32px;
  animation: lineFade 1s 1s forwards;
  opacity: 0;
  letter-spacing: 0.5px;
}

.final-done .final-sub:nth-of-type(2) { animation-delay: 1.8s; }
.final-done .final-sub:nth-of-type(3) { animation-delay: 2.4s; }

.final-credit {
  margin-top: 56px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(232, 220, 192, 0.4);
  opacity: 0;
  animation: lineFade 1.5s 3s forwards;
}

#restart {
  margin-top: 40px;
  opacity: 0;
  animation: lineFade 1.5s 3.6s forwards;
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 700px) {
  .overlay-card {
    padding: 40px 24px;
  }
  .overlay-text { font-size: 20px; }
  .counter { top: 16px; right: 18px; font-size: 15px; }
  .hint { bottom: 22px; font-size: 9px; letter-spacing: 2.5px; }

  .final-btn {
    min-width: 0;
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    font-size: 12px;
  }

  .date-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .date-card { padding: 14px 8px; }
  .date-day { font-size: 26px; }
  .date-name { font-size: 13px; }

  .vibe-grid { grid-template-columns: 1fr; }
  .vibe-card { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.2s !important;
  }
}

/* ============================================
   VINCENT U OKNA — nové prvky
   ============================================ */

/* intro titulek */
.intro-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(34px, 6vw, 58px);
  color: var(--warm, #fcd9a8);
  letter-spacing: 3px;
  margin: 0 0 14px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}

/* stopy v okně — skryté dokud hráč nepodívá podruhé */
.window-tracks {
  opacity: 0;
  transition: opacity 2.4s ease;
}
.window-tracks.tracks-visible {
  opacity: 1;
}

/* ---- INVENTÁŘ HUD ---- */
.inventory-hud {
  position: fixed;
  top: 20px;
  right: 22px;
  display: flex;
  gap: 10px;
  z-index: 120;
  pointer-events: none;
}
.inv-slot {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 12, 8, 0.75);
  border: 1px solid rgba(252, 217, 168, 0.35);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(252, 217, 168, 0.15);
  animation: invPop 0.6s ease-out;
}
@keyframes invPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- KAPITOLOVÁ KARTA ---- */
.chapter-card {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #07090e;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}
.chapter-card.visible {
  opacity: 1;
  pointer-events: auto;
}
.chapter-inner { text-align: center; }
.chapter-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 6px;
  color: rgba(252, 217, 168, 0.6);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.chapter-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 5vw, 52px);
  color: var(--ink, #e8dcc0);
  margin: 0;
  text-shadow: 0 4px 24px rgba(0,0,0,0.7);
  animation: chapterDrift 4s ease-in-out;
}
@keyframes chapterDrift {
  0% { letter-spacing: 1px; opacity: 0.4; }
  50% { letter-spacing: 4px; opacity: 1; }
  100% { letter-spacing: 3px; opacity: 0.9; }
}

/* ---- NOVÉ SCÉNY (chodba, pracovna, venku) ---- */
.hallway-scene, .study-scene, .outside-scene {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: #0d0a07;
  display: none;
  overflow: hidden;
}
.outside-scene { background: #070a14; }
.hallway-scene.visible, .study-scene.visible, .outside-scene.visible {
  display: block;
  animation: kitchenAppear 1.2s ease-out forwards;
}
.hallway-scene svg, .study-scene svg, .outside-scene svg {
  width: 100%;
  height: 100%;
}

/* close tlačítka nových scén */
.hall-close, .study-close {
  position: fixed;
  top: 22px;
  left: 26px;
  padding: 10px 18px;
  background: rgba(15, 15, 20, 0.6);
  border: 1px solid rgba(252, 217, 168, 0.3);
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.5s ease 1.6s;
  pointer-events: none;
}
.hallway-scene.visible .hall-close,
.study-scene.visible .study-close {
  opacity: 0.7;
  pointer-events: auto;
}
.hall-close:hover, .study-close:hover {
  opacity: 1;
  color: var(--warm);
  border-color: var(--warm);
}

/* konzerva — pulzující glow aby šla najít */
.can-glow {
  animation: canGlowPulse 2.6s ease-in-out infinite;
}
@keyframes canGlowPulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.28; }
}
.kitchen-can { cursor: pointer; }
.kitchen-can:hover { filter: drop-shadow(0 0 12px rgba(252, 217, 168, 0.6)); }

/* zápisník glow */
.study-notebook .notebook-glow {
  animation: canGlowPulse 2.8s ease-in-out infinite;
  opacity: 0.5 !important;
}

/* ---- VENKU: cinematic text ---- */
.outside-texts {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8%;
  box-sizing: border-box;
}
.outside-text-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 27px);
  color: #e8dcc0;
  margin: 12px 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 2.4s ease, transform 2.4s ease;
  text-shadow: 0 2px 18px rgba(0,0,0,0.85);
  line-height: 1.55;
}
.outside-text-line.visible { opacity: 1; transform: translateY(0); }
.outside-text-line.credit {
  margin-top: 34px;
  color: rgba(232, 220, 192, 0.5);
  font-size: clamp(15px, 2vw, 18px);
}
.outside-close {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 26px;
  background: rgba(15, 15, 20, 0.6);
  border: 1px solid rgba(252, 217, 168, 0.35);
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.outside-close.visible { opacity: 0.8; pointer-events: auto; }
.outside-close:hover { opacity: 1; color: var(--warm); border-color: var(--warm); }

/* Vincentovy oči venku — jemné mihotání */
.outside-vincent .vincent-eye {
  animation: eyeGlow 4s ease-in-out infinite;
}
@keyframes eyeGlow {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* během finálního cinematicu schovat HUD */
body.cinematic-final #goalBar,
body.cinematic-final #inventoryHud,
body.cinematic-final #phaseDial,
body.cinematic-final #dayBadge,
body.cinematic-final #hint {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 1.2s ease;
}

/* legacy skóre counter — natrvalo schovaný (nová hra ho nepoužívá) */
#counter { display: none !important; }

/* ---- LES (Kapitola III) ---- */
.forest-scene {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: #0a1018;
  display: none;
  overflow: hidden;
}
.forest-scene.visible {
  display: block;
  animation: kitchenAppear 1.6s ease-out forwards;
}
.forest-scene svg { width: 100%; height: 100%; }
.forest-window, .forest-path, .forest-clearing { cursor: pointer; }
.forest-window:hover .far-window-glow { opacity: 1; }
.far-window-glow { animation: canGlowPulse 3.4s ease-in-out infinite; }
.forest-path:hover { filter: drop-shadow(0 0 10px rgba(90,110,130,0.4)); }
.forest-texts {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center; padding: 0 8% 14%; box-sizing: border-box;
}
.forest-texts .outside-text-line { font-size: clamp(18px, 2.4vw, 25px); }
.forest-hint {
  position: fixed;
  bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic;
  font-size: 13px; letter-spacing: 1.5px;
  color: rgba(232,220,192,0.4);
  opacity: 0; transition: opacity 1.5s ease 1.5s;
  pointer-events: none;
}
.forest-scene.visible .forest-hint { opacity: 1; }

/* stopy do kuchyně — svítí, ať jdou najít */
.hall-tracks-prints {
  animation: tracksGlow 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(166, 182, 202, 0.5));
}
@keyframes tracksGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.hall-tracks:hover .hall-tracks-prints { opacity: 1; filter: drop-shadow(0 0 10px rgba(207, 224, 240, 0.8)); }

/* hall objekty — kurzor + hover */
.hall-door, .hall-locked-door, .hall-exit-door, .hall-tracks, .hall-vincent { cursor: pointer; }
.hall-locked-door:hover, .hall-exit-door:hover, .hall-door:hover { filter: drop-shadow(0 0 12px rgba(252, 217, 168, 0.4)); }
.hall-locked-door.unlocked { filter: drop-shadow(0 0 10px rgba(252, 217, 168, 0.5)); }



.girl-guitar {
  transform-box: fill-box;
  transform-origin: center;
  animation: guitarBreath 3.8s ease-in-out infinite;
}
@keyframes guitarBreath {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(252, 217, 168, 0.15)); }
  50% { filter: drop-shadow(0 0 10px rgba(252, 217, 168, 0.45)); }
}


/* Kuchyně v6: postava na gauči a jasné vedení k lednici */
.kitchen-sofa, .kitchen-sofa-front {
  pointer-events: none;
}
#kitchen-person {
  cursor: pointer;
}
#kitchen-person.quest-active {
  animation: gentleQuestPulse 2.2s ease-in-out infinite;
}
#kitchenScene [data-object="kitchen_fridge"] {
  pointer-events: auto;
  cursor: pointer;
}
#kitchenScene [data-object="kitchen_fridge"].quest-active {
  animation: gentleQuestPulse 2.0s ease-in-out infinite;
}
@keyframes gentleQuestPulse {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(252, 217, 168, 0.18)); }
  50% { filter: drop-shadow(0 0 16px rgba(252, 217, 168, 0.72)); }
}

/* ---- v14: lepší les a spolehlivé klikání ---- */
.forest-scene svg * { pointer-events: none; }
.forest-scene svg .object, .forest-scene svg .object * { pointer-events: all; }
.forest-scene .forest-far, .forest-scene .forest-near { pointer-events: none; }
.forest-scene .forest-path { filter: drop-shadow(0 0 8px rgba(180,190,210,0.12)); }
.forest-scene.visible .forest-vincent { animation: forestCatWait 2.4s ease-in-out infinite; }
@keyframes forestCatWait {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(252,217,168,0.18)); }
  50% { filter: drop-shadow(0 0 12px rgba(252,217,168,0.36)); }
}
.forest-moving .forest-far { animation: forestDriftFar 7s ease-in-out infinite; }
.forest-moving .forest-near { animation: forestDriftNear 5s ease-in-out infinite; }
.forest-moving-2 .forest-far { animation: forestDriftFar 4s ease-in-out infinite; }
.forest-moving-2 .forest-near { animation: forestDriftNear 3.2s ease-in-out infinite; }
@keyframes forestDriftFar {
  0%,100% { transform: translateX(0); opacity: .85; }
  50% { transform: translateX(-10px); opacity: .95; }
}
@keyframes forestDriftNear {
  0%,100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(16px); opacity: .95; }
}
.clearing-person {
  filter: drop-shadow(0 0 20px rgba(252,217,168,0.16));
}
.forest-scene .far-window-glow { opacity: .18; }

/* v14: kuchyňská postava sedí níž, kytara je víc v klíně */
#kitchen-person .girl-guitar {
  filter: drop-shadow(0 0 4px rgba(252,217,168,0.18));
}


/* v18 finální kuchyňská logika */
.kitchen-key-on-floor { cursor: pointer; filter: drop-shadow(0 0 10px rgba(252,217,168,0.45)); }
.kitchen-key-on-floor.quest-active { animation: gentleQuestPulse 1.7s ease-in-out infinite; }
#kitchen-person { transform-box: fill-box; }
#kitchenScene .object.quest-active:not(#kitchen-person):not([data-object="kitchen_fridge"]):not(#kitchen-vincent):not(.kitchen-key-on-floor) { animation: none; }

/* v19: kuchyňská postava má působit jako sedící, ne stojící */
#kitchen-person .girl-guitar {
  transform-origin: center;
}
.kitchen-sofa-front {
  filter: drop-shadow(0 -6px 10px rgba(0,0,0,0.18));
}
#kitchen-vincent.quest-active {
  animation: gentleQuestPulse 1.8s ease-in-out infinite;
}
#kitchenScene [data-object="kitchen_fridge"]:not(.quest-active),
#kitchen-person:not(.quest-active),
#kitchen-vincent:not(.quest-active) {
  animation: none !important;
}
/* telefon a drobné předměty mají zůstat plošně usazené */
[data-object="phone"] {
  filter: drop-shadow(0 4px 2px rgba(0,0,0,0.22));
}


/* V21 release dialog: herní textbox dole místo velkého zavíracího okna */
.overlay {
  align-items: flex-end !important;
  justify-content: center !important;
  padding: 0 18px 26px !important;
}
.overlay-bg {
  background: linear-gradient(180deg, rgba(8,10,18,0.18), rgba(8,10,18,0.68)) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}
.overlay-card {
  max-width: 920px !important;
  padding: 22px 24px 18px !important;
  border-radius: 16px !important;
  text-align: left !important;
  transform: translateY(28px) scale(0.98) !important;
  background: linear-gradient(180deg, rgba(22,17,13,0.96), rgba(7,6,5,0.98)) !important;
  border: 1px solid rgba(252,217,168,0.34) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.72), 0 0 40px rgba(252,217,168,0.08) inset !important;
}
.overlay.visible .overlay-card {
  transform: translateY(0) scale(1) !important;
}
.overlay-label {
  margin-bottom: 10px !important;
  font-size: 11px !important;
  letter-spacing: 3px !important;
  color: rgba(252,217,168,0.72) !important;
}
.overlay-text {
  font-size: clamp(18px, 2.2vw, 24px) !important;
  line-height: 1.45 !important;
}
.overlay-choices {
  margin-top: 16px !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 10px !important;
}
.choice-btn {
  text-align: center !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 16px !important;
  background: rgba(252,217,168,0.08) !important;
}
.overlay-reply {
  margin-top: 14px !important;
  padding-top: 14px !important;
  font-size: clamp(17px, 2vw, 22px) !important;
}
.overlay-close {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 16px 0 0 auto !important;
  padding: 10px 18px !important;
  border: 1px solid rgba(252,217,168,0.35) !important;
  border-radius: 999px !important;
  background: rgba(252,217,168,0.1) !important;
  color: rgba(252,217,168,0.9) !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
}
.overlay-close:hover {
  background: rgba(252,217,168,0.2) !important;
  transform: translateY(-1px) !important;
}
@media (max-width: 640px) {
  .overlay { padding: 0 10px 12px !important; }
  .overlay-card { padding: 18px 16px 14px !important; }
  .overlay-choices { grid-template-columns: 1fr !important; }
}


.tuna-can-object.quest-active { animation: tunaPulse 1.2s ease-in-out infinite; }
@keyframes tunaPulse { 0%,100% { filter: drop-shadow(0 0 4px rgba(252,217,168,.45)); } 50% { filter: drop-shadow(0 0 18px rgba(252,217,168,.95)); } }

/* v33 teaser door */
.hall-future-door { filter: drop-shadow(0 0 8px rgba(252,217,168,0.08)); transition: filter .35s ease, transform .35s ease; }
.hall-future-door:hover, .hall-future-door:focus { filter: drop-shadow(0 0 18px rgba(252,217,168,0.35)); }


/* v35: finální les a uklizené quest pulzy */
.forest-lantern { cursor: pointer; filter: drop-shadow(0 0 16px rgba(252,217,168,0.2)); }
.forest-lantern.quest-active { animation: gentleQuestPulse 1.8s ease-in-out infinite; }
.forest-lantern-light { animation: lanternBreath 2.6s ease-in-out infinite; }
@keyframes lanternBreath {
  0%,100% { opacity: .28; }
  50% { opacity: .72; }
}
.forest-scene.lantern-on .forest-lantern-aura,
.forest-scene.lantern-on .far-window-glow { opacity: .72 !important; }
.forest-scene.lantern-on svg { filter: brightness(1.12) contrast(1.04); }
.clearing-person.quest-active { animation: gentleQuestPulse 2.4s ease-in-out infinite; cursor: pointer; }
#kitchen-vincent:not(.quest-active) { animation: none !important; }
#kitchenScene [data-object="can"]:not(.quest-active),
#kitchenScene [data-object="kitchen_fridge"]:not(.quest-active),
#kitchenScene .kitchen-key-on-floor:not(.quest-active) { animation: none !important; }

/* v36 forest polishing */
.forest-scene.forest-whisper svg { filter: saturate(0.92) brightness(0.92); }
.forest-scene.forest-return-mark svg { filter: saturate(1.05) brightness(1.02); }
.forest-scene.forest-return-mark .far-window-glow { opacity: 0.34 !important; }
.forest-scene.forest-whisper .far-window-glow { opacity: 0.24 !important; }


/* v40 plnohodnotnější les: vizuální DLC vrstvy a delší kapitola */
.forest-owl, .forest-warning-sign, .forest-stream, .forest-shadow-door, .forest-footprints {
  transition: opacity 1.8s ease, transform 2.2s ease;
  pointer-events: none !important;
}
.forest-stage-owl .forest-owl { opacity: 1 !important; animation: owlBlink 4s ease-in-out infinite; }
@keyframes owlBlink { 0%, 92%, 100% { filter: brightness(1); } 96% { filter: brightness(1.6); } }
/* stopy v blátě se odkryjí dřív (scéna „tři stopy“) i u cedule */
.forest-stage-tracks .forest-footprints,
.forest-stage-sign .forest-footprints { opacity: 1 !important; }
.forest-stage-sign .forest-warning-sign { opacity: 1 !important; }
.forest-stage-stream .forest-stream { opacity: 1 !important; animation: streamBreath 5s ease-in-out infinite; }
@keyframes streamBreath { 0%,100% { filter: brightness(.9); } 50% { filter: brightness(1.18); } }
.forest-stage-door .forest-shadow-door { opacity: 1 !important; animation: shadowDoorPulse 3.4s ease-in-out infinite; }
@keyframes shadowDoorPulse { 0%,100% { filter: drop-shadow(0 0 8px rgba(252,217,168,.08)); transform: scale(1); } 50% { filter: drop-shadow(0 0 26px rgba(252,217,168,.22)); transform: scale(1.03); } }
.forest-stage-runes .forest-path { filter: drop-shadow(0 0 18px rgba(252,217,168,0.25)); }
.forest-stage-whispers svg { filter: brightness(.86) saturate(.82); }
.forest-stage-person .far-window-glow { opacity: .62 !important; }
/* místo, kde les přestane znít — všechno se ztlumí */
.forest-stage-silent svg { filter: brightness(.78) saturate(.62) contrast(1.05); transition: filter 2.4s ease; }
.forest-stage-silent .far-window-glow { opacity: 0.28 !important; }
/* cesta se přeskupí — kulisy se jemně posunou */
.forest-stage-shift .forest-far,
.forest-stage-shift .forest-near { transition: transform 2.6s ease; }


/* ===================================================================
   VINCENT SE VRACÍ DO LESA (2026-06)
   Nová logika: Vincent ucítí v lese zlo a protáhne se ven jako ochránce.
   (Tímto se ruší dřívější „audit“ patche, které ho schovávaly.)
   =================================================================== */
.outside-vincent {
  transition: opacity 1.6s ease, transform 2.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.outside-vincent .vincent-eye { animation: eyeGlow 4s ease-in-out infinite; }
#forest-vincent {
  transition: opacity 1.4s ease, transform 2.2s cubic-bezier(0.45, 0, 0.2, 1);
  cursor: default;
}
.forest-scene.visible #forest-vincent { animation: forestCatWait 2.8s ease-in-out infinite; }
/* u stínových dveří je Vincent klikací (hráč jím musí projít sám) */
#forest-vincent.vincent-clickable { cursor: pointer; pointer-events: auto; animation: forestCatAlert 1.7s ease-in-out infinite; }
@keyframes forestCatAlert {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(252,217,168,0.30)); }
  50% { filter: drop-shadow(0 0 20px rgba(252,217,168,0.68)); }
}


/* ===================================================================
   LESNÍ CINEMATIC — ŘETĚZEC SAMOSTATNÝCH SCÉN (2026-06)
   Každá scéna = vlastní obrazovka s vlastní temně-lesní kompozicí.
   Fade mezi scénami, vlastní text + tlačítko, vlastní animace.
   =================================================================== */
.fcine {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #04060a;
  display: none;
  overflow: hidden;
}
.fcine.visible { display: block; }
.fcs {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.fcs.active { opacity: 1; visibility: visible; pointer-events: auto; }
/* černý překryv mezi scénami — kryje swap, takže se scény nepřekrývají (žádný cross-fade) */
#fcineFade {
  position: absolute;
  inset: 0;
  background: #04060a;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  transition: opacity 0.7s ease;
}
#fcineFade.on { opacity: 1; }
.fcs > svg { width: 100%; height: 100%; display: block; }

/* text scény */
.fcs-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 9%;
  box-sizing: border-box;
  pointer-events: none;
}
.fcs-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 27px);
  color: #e8dcc0;
  margin: 11px 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 2.2s ease, transform 2.2s ease;
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
  line-height: 1.5;
  max-width: 760px;
}
.fcs-line.visible { opacity: 1; transform: translateY(0); }
.fcs-line.whisper { color: #b8c2cf; font-size: clamp(17px, 2.2vw, 22px); letter-spacing: 0.5px; }
.fcs-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 26px;
  background: rgba(15, 15, 20, 0.62);
  border: 1px solid rgba(252, 217, 168, 0.35);
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}
.fcs-btn.visible { opacity: 0.82; pointer-events: auto; }
.fcs-btn:hover { opacity: 1; color: var(--warm); border-color: var(--warm); }

/* ---- ZAJÍMAVOSTI v lese (klikací objevy, ať to není jen text) ---- */
.fc-curio { cursor: pointer; pointer-events: auto; transition: opacity 0.7s ease, filter 0.5s ease; }
.fcs.active .fc-curio { animation: fcCurioHint 2.8s ease-in-out infinite; }
@keyframes fcCurioHint {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(190, 214, 255, 0.35)); }
  50% { filter: drop-shadow(0 0 13px rgba(200, 222, 255, 0.9)); }
}
.fc-curio:hover { filter: drop-shadow(0 0 11px rgba(214, 230, 255, 0.9)) !important; }
.fc-curio.found { animation: none !important; opacity: 0.45; }
/* odhalený text zajímavosti (nahoře, ať se nepere s vyprávěním uprostřed) */
.fc-curio-reveal {
  position: absolute; top: 8%; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 84%; max-width: 620px;
  text-align: center;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(15px, 2vw, 21px); line-height: 1.45;
  color: #d2dce4; text-shadow: 0 2px 18px rgba(0,0,0,0.92);
  opacity: 0; pointer-events: none; z-index: 16;
  transition: opacity 1s ease, transform 1s ease;
}
.fc-curio-reveal.show { opacity: 0.94; transform: translateX(-50%) translateY(0); }

/* glowy oči Vincenta v cinematic scénách */
.fcine .vincent-eye { animation: eyeGlow 4s ease-in-out infinite; }

/* ---- sdílené animační prvky temného lesa ---- */
/* pomalý „dech" celé scény (kamera se sune dopředu) */
.fcs.active .fc-push { animation: fcPush 14s ease-in-out infinite alternate; transform-origin: 50% 70%; }
@keyframes fcPush { from { transform: scale(1); } to { transform: scale(1.07); } }
/* větev, která přejede přes měsíc */
.fc-branch { transform-origin: 100% 0%; }
.fcs.active .fc-branch { animation: fcBranchSway 11s ease-in-out infinite; }
@keyframes fcBranchSway {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  45% { transform: rotate(-7deg) translateX(-40px); }
  55% { transform: rotate(-7deg) translateX(-40px); }
}
/* stín, který se vlevo mihne */
.fc-shadow { opacity: 0; }
.fcs.active .fc-shadow { animation: fcShadowFlicker 8s ease-in-out infinite; }
@keyframes fcShadowFlicker {
  0%, 62%, 100% { opacity: 0; transform: translateX(0); }
  70% { opacity: 0.55; transform: translateX(-26px); }
  78% { opacity: 0.12; transform: translateX(-44px); }
  84% { opacity: 0; transform: translateX(-60px); }
}
/* mlha u země */
.fcs.active .fc-fog { animation: fcFog 9s ease-in-out infinite; }
@keyframes fcFog { 0%,100% { opacity: 0.10; } 50% { opacity: 0.22; } }
/* napjatý Vincent — jemné chvění ostražitosti */
.fcs.active .fc-cat { animation: fcCatTense 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fcCatTense {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(168,224,160,0.25)); }
  50% { filter: drop-shadow(0 0 12px rgba(168,224,160,0.45)); }
}

/* ---- prvky jednotlivých scén ---- */
.fcs.active .fc-owl { animation: owlBlink 4s ease-in-out infinite; }
.fcs.active .fc-door { animation: shadowDoorPulse 3.6s ease-in-out infinite; transform-origin: 50% 42%; }
.fcs.active .fc-symbol { animation: fcSymbol 3s ease-in-out infinite; }
@keyframes fcSymbol { 0%,100% { opacity: 0.28; } 50% { opacity: 0.7; } }
.fcs.active .fc-lantern { animation: fcLantern 2.3s ease-in-out infinite; }
@keyframes fcLantern { 0%,100% { opacity: 0.72; } 45% { opacity: 0.98; } 62% { opacity: 0.5; } }
.fcs.active .fc-figure { animation: fcFigure 6s ease-out forwards; }
@keyframes fcFigure { from { opacity: 0; transform: translateY(12px); } to { opacity: 0.96; transform: translateY(0); } }
.fcs.active .fc-window { animation: fcWindow 4s ease-in-out infinite; }
@keyframes fcWindow { 0%,100% { opacity: 0.5; } 50% { opacity: 0.9; } }
.fc-dust { opacity: 0.5; }          /* zamrzlé částice — záměrně bez pohybu */
.fcs.active .fc-stream { animation: streamBreath 5s ease-in-out infinite; }
.fcs.active .fc-reflection { animation: fcReflection 7s ease-in-out infinite; }
@keyframes fcReflection { 0%,66%,100% { opacity: 0; } 74% { opacity: 0.5; } 82% { opacity: 0.1; } }
/* cesta se přeskupí — kulisy se posunou */
.fcs.active .fc-shift-a { animation: fcShiftA 7s ease-in-out infinite; }
.fcs.active .fc-shift-b { animation: fcShiftB 7s ease-in-out infinite; }
@keyframes fcShiftA { 0%,100% { transform: translateX(0); opacity: 0.9; } 50% { transform: translateX(38px); opacity: 0.5; } }
@keyframes fcShiftB { 0%,100% { transform: translateX(0); opacity: 0.5; } 50% { transform: translateX(-44px); opacity: 0.9; } }

/* ---- volba u cedule ---- */
.fcs-choices {
  position: fixed; left: 0; right: 0; bottom: 92px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 12; opacity: 0; pointer-events: none; transition: opacity 1s ease;
}
.fcs-choices.visible { opacity: 1; pointer-events: auto; }
.fcs-choice {
  padding: 10px 22px; background: rgba(15,15,20,0.66);
  border: 1px solid rgba(252,217,168,0.3); color: var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 15px;
  border-radius: 4px; cursor: pointer; transition: all 0.3s ease;
}
.fcs-choice:hover { color: var(--warm); border-color: var(--warm); }
.fcs-choice.picked { color: var(--warm); border-color: var(--warm); background: rgba(40,32,20,0.7); }

/* ---- skryté objevy v okně (měsíc, hvězda přání) ---- */
.sky-secret { cursor: pointer; transition: fill-opacity .45s ease, filter .45s ease; }
.sky-secret:hover, .sky-secret:focus { fill-opacity: 0.16 !important; filter: drop-shadow(0 0 12px rgba(254,246,224,.85)); outline: none; }

/* ---- PŘÍSTUPNOST: respektuj prefers-reduced-motion ---- */
/* Nekonečné dekorativní animace přehraj jen jednou (zastav věčný pohyb), */
/* odhalovací animace i přechody scén nech být, ať se nic neskryje. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-iteration-count: 1 !important;
  }
  #cursorGlow { display: none !important; }
  .stars circle, .roof-star, .rain, .snow { animation: none !important; }
}
