@font-face {
  font-family: 'HomemadeApple';
  src: url('../assets/fonts/HomemadeApple-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Caveat fallback for Hungarian chars missing from HomemadeApple (Ő ő Ű ű) */
@font-face {
  font-family: 'HomemadeApple';
  src: url('../assets/fonts/caveat-regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0150-0151, U+0170-0171;
}
@font-face {
  font-family: 'LinotypeFeltpen';
  src: url('../assets/fonts/LinotypeFeltpen-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'LinotypeFeltpen';
  src: url('../assets/fonts/LinotypeFeltpen-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --cream: #FAF7F2;
  --accent: #C8501E;
  --coral-light: #E8896A;
  --coral-pale: #F5E0D8;
  --green: #2D4A38;
  --ink: #1C1410;
  --ink-light: #5C4A3A;
  --ink-faint: #A89080;
  --white: #FFFDF9;
  --section-gap: 5rem;
}

body[data-mode="dorka"] {
  --accent: #C2506A;
  --cream: #FFF5F7;
}

body[data-mode="andris"] {
  --accent: #3D6B6B;
  --cream: #F3FAFA;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Display and label elements keep Space Grotesk */
.label,
.dateline,
.countdown-unit .num,
.countdown-unit .unit-label,
.timeline-time .time,
.timeline-content .event-venue,
.venue-tag,
.venue-address,
.footer-names,
footer > p,
#main-nav ul a,
.nav-home {
  font-family: 'Space Grotesk', sans-serif;
}

/* Headings stay with their explicitly-set fonts (HomemadeApple via component rules);
   this prevents any unstyled h* from accidentally inheriting body mono */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

/* MODE TRANSITIONS */
*, *::before, *::after {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* TYPOGRAPHY */
.script { font-family: 'HomemadeApple', cursive; }
.bold-caps {
  font-family: 'LinotypeFeltpen', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* LAYOUT */
.container { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--section-gap) 0; }
#story, #program, #helyszinek, #infok, #oltozet, #gyik, #rsvp { padding-bottom: 0; }
.wavy-divider { display: block; width: 100%; overflow: visible; line-height: 0; }

/* SECTION DIVIDERS */
.section-divider {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.5rem 0.5rem;
}
.section-divider svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  stroke: var(--accent);
  stroke-linecap: round;
  fill: none;
  opacity: 0.45;
}

/* HERO */
#hero { text-align: center; padding: 4rem 0 0; }
#hero .pretitle {
  font-family: 'HomemadeApple', cursive;
  font-size: 20px;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}
#hero .names {
  font-size: clamp(50px, 12vw, 86px);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 0.5rem;
  animation: heartbeat 3s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.8s ease;
}
#hero .names.visible {
  opacity: 1;
}
#hero .ampersand {
  color: var(--accent);
  font-size: 0.6em;
  display: block;
  letter-spacing: 0;
  font-family: 'HomemadeApple', cursive;
  line-height: 1.15;
  animation: heartbeat 3s ease-in-out infinite;
  animation-delay: 0.4s;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.008); }
}
#hero .dateline {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 1.5rem 0 2rem;
  font-weight: 600;
}

/* COUNTDOWN */
.countdown {
  display: inline-flex;
  border: 2px solid var(--accent);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.25rem;
}
.countdown-unit {
  padding: 0.9rem 1rem;
  text-align: center;
  border-right: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  min-width: 64px;
}
.countdown-unit:last-child { border-right: none; }
.countdown-unit .num {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.countdown-unit .unit-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

.cursor {
  display: inline;
  font-style: normal;
  animation: cursor-blink 0.7s step-end infinite;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(0.85); }

/* HERO BLOB PHOTO */
.hero-blob-wrap {
  max-width: 360px;
  margin: 2.5rem auto 0;
  position: relative;
}
.hero-photo {
  width: 100%;
  display: block;
}
/* SECTION HEADERS */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .label { margin-bottom: 0.5rem; display: block; }
.section-header h2 {
  font-family: 'HomemadeApple', cursive;
  font-size: clamp(32px, 6.5vw, 46px);
  color: var(--ink);
  line-height: 1.3;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 140px;
  height: 10px;
  margin: 6px auto 0;
  background-image: url("data:image/svg+xml,<svg viewBox='0 0 140 10' xmlns='http://www.w3.org/2000/svg'><path d='M2,7 C22,2 44,10 66,5 C88,1 112,9 138,6' stroke='%23C8501E' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.section-header p {
  margin-top: 0.75rem;
  font-size: 15px;
  color: var(--ink-light);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* INTRO */
.intro-text {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.intro-text p {
  font-family: 'HomemadeApple', cursive;
  font-size: 22px;
  line-height: 1.85;
  color: var(--ink-light);
}

/* PHOTO BLOBS */
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.5rem 0; align-items: start; }
.photo-row.trio { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.photo-blob { position: relative; }
.blob-photo {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.blob-stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.photo-full {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.photo-full-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.fotok-photo {
  transition: opacity 0.7s ease;
}

/* TIMELINE */
.timeline { display: flex; flex-direction: column; position: relative; padding-left: 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--coral-pale);
}
.timeline-item {
  display: grid;
  grid-template-columns: 90px 2rem 1fr;
  padding-bottom: 2.5rem;
  align-items: start;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item + .timeline-item {
  border-top: 1px dotted color-mix(in srgb, var(--ink) 18%, transparent);
  padding-top: 2rem;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-time { text-align: right; padding-right: 1rem; padding-top: 4px; }
.timeline-time .time { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }
.timeline-dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--cream);
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
}
.timeline-dot.major {
  width: 18px;
  height: 18px;
  box-shadow: 0 0 0 2px var(--accent);
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 2px var(--accent); }
  50%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 2px var(--accent); }
}
.timeline-dot.major.pulse {
  animation: dot-pulse 0.6s ease-out forwards;
}
.timeline-content { padding-left: 1.25rem; }
.timeline-content .event-title {
  font-family: 'HomemadeApple', cursive;
  font-size: 26px;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 3px;
}
.timeline-content .event-venue {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-content .event-desc { font-size: 14px; color: var(--ink-light); line-height: 1.7; }
.timeline-content .event-card {
  background: var(--white);
  border: 1.5px solid var(--coral-pale);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  margin-top: 0.75rem;
}
.card-detail {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink-light);
  padding: 2px 0;
}
.card-detail .di { font-size: 14px; flex-shrink: 0; }

/* ── Program: collapsible segments ── */
.seg-wrap {
  margin-bottom: 2rem;
}
.seg-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding: 0.85rem 0;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.seg-header:hover {
  border-color: var(--accent);
}
.seg-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}
.seg-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.seg-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.seg-meta {
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.05em;
}
.seg-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.35s ease;
  flex-shrink: 0;
  margin-right: 2px;
  margin-bottom: 3px;
}
.seg-wrap:not(.open) .seg-chevron {
  transform: rotate(-135deg);
  margin-bottom: -3px;
}
.seg-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.4s ease;
}
.seg-wrap:not(.open) .seg-body {
  grid-template-rows: 0fr;
}
.seg-static {
  margin: 1.5rem 0;
}
.seg-header--static {
  cursor: default;
  opacity: 0.55;
  border-bottom-color: color-mix(in srgb, var(--accent) 15%, transparent);
}
.seg-header--static:hover {
  border-color: color-mix(in srgb, var(--accent) 15%, transparent);
  opacity: 0.55;
}
.seg-static .seg-intro {
  opacity: 0.55;
}
.seg-intro {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.7;
  margin: 0.6rem 0 0;
  padding-bottom: 0.1rem;
}
.seg-body > .timeline {
  overflow: hidden;
  min-height: 0;
}
.seg-body > .timeline > .timeline-item:first-child {
  margin-top: 1.75rem;
}
.seg-body > .timeline > .timeline-item:last-child {
  padding-bottom: 0.25rem;
}

/* VENUE CARDS */
.venue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.venue-card { background: var(--white); border: 2px solid var(--coral-pale); border-radius: 20px; overflow: hidden; }
.venue-card-photo {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--coral-pale) 0%, #D4B0A0 100%);
  overflow: hidden;
}
.venue-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.venue-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.venue-tag { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.venue-card-body h3 { font-family: 'HomemadeApple', cursive; font-size: 26px; margin-bottom: 4px; }
.venue-address { font-size: 13px; color: var(--ink-faint); margin-bottom: 1rem; }
.venue-map {
  width: 100%;
  height: 130px;
  background: #E8E0D8;
  border-radius: 10px;
  overflow: hidden;
}
.venue-map iframe { width: 100%; height: 100%; border: none; }
.venue-desc { font-size: 13px; color: var(--ink-light); margin-top: 0.75rem; line-height: 1.65; }

/* DETAILS GRID */
.info-venue-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.info-venue-divider::before,
.info-venue-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--ink) 15%, transparent);
}
.info-venue-divider span {
  white-space: nowrap;
  color: var(--accent);
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.details-col {
  padding: 0 2rem 2rem;
  text-align: center;
}
.details-col:not(:last-child) {
  border-right: 1px dotted color-mix(in srgb, var(--ink) 15%, transparent);
}
.details-illus {
  display: block;
  margin: 0 auto 1.25rem;
}
.details-subhead {
  font-family: 'HomemadeApple', cursive;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.details-col p {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.7;
}
@media (max-width: 600px) {
  .details-grid { grid-template-columns: 1fr; }
  .details-col:not(:last-child) {
    border-right: none;
    border-bottom: 1px dotted color-mix(in srgb, var(--ink) 15%, transparent);
    padding-bottom: 2rem;
    margin-bottom: 0;
  }
  .details-col { padding: 1.5rem 0; }
}

.details-col img.details-illus {
  mix-blend-mode: multiply;
  height: 130px;
  width: auto;
  object-fit: contain;
  mask-image: radial-gradient(ellipse 82% 92% at 50% 52%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 82% 92% at 50% 52%, black 60%, transparent 100%);
}

/* DRESS CODE */
.dress-code-block {
  background: var(--coral-pale);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.dress-code-block .dc-title {
  font-family: 'HomemadeApple', cursive;
  font-size: 30px;
  margin-bottom: 1rem;
}
.dress-code-block p { font-size: 15px; color: var(--ink-light); max-width: 440px; margin: 0 auto; line-height: 1.75; }
.dress-code-icons { display: flex; gap: 1.5rem; justify-content: center; margin: 1.5rem 0 0; font-size: 30px; }

/* FAQ */
.faq-list { border: 1.5px solid var(--coral-pale); border-radius: 16px; overflow: hidden; }
.faq-item { border-bottom: 1px dotted color-mix(in srgb, var(--ink) 18%, transparent); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 1.1rem 1.5rem;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { background: var(--cream); }
.faq-question.open { color: var(--accent); }
.faq-chevron { font-size: 18px; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; font-style: normal; }
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; font-size: 14px; color: var(--ink-light); line-height: 1.75; background: var(--white); }
.faq-answer.open { display: block; }

/* RSVP */
.rsvp-block {
  background: var(--ink);
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--cream);
}
.rsvp-pretitle { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral-light); font-weight: 600; margin-bottom: 0.75rem; }
.rsvp-block h2 {
  font-family: 'HomemadeApple', cursive;
  font-size: clamp(36px, 7vw, 58px);
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 0;
}
.rsvp-block .rsvp-desc { font-size: 14px; color: rgba(250,247,242,0.6); max-width: 400px; margin: 0 auto 2rem; line-height: 1.7; }
.rsvp-deadline { font-size: 12px; color: rgba(250,247,242,0.35); margin-top: 1rem; letter-spacing: 0.05em; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.contact-card { background: var(--white); border: 1.5px solid var(--coral-pale); border-radius: 18px; padding: 1.5rem; text-align: center; }
.contact-name { font-family: 'HomemadeApple', cursive; font-size: 26px; margin-bottom: 0.5rem; }
.contact-card a { display: block; font-size: 16px; color: var(--accent); text-decoration: none; font-weight: 600; margin-top: 4px; }
.contact-card a:hover { text-decoration: underline; }

/* CAT CAMEOS */
.cat-cameo { display: flex; align-items: center; gap: 0.75rem; margin: 2rem auto; }
.cat-cameo.center { justify-content: center; flex-direction: column; text-align: center; }
.cat-speech { font-family: 'HomemadeApple', cursive; font-size: 17px; color: var(--ink-light); }

/* FOOTER */
footer { text-align: center; padding: 0 1.5rem 2.5rem; background: var(--ink); color: rgba(250,247,242,0.45); }
.footer-names { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--coral-light); font-weight: 600; margin-bottom: 0.4rem; }
footer p { font-size: 12px; }

/* RESPONSIVE */
@media (max-width: 540px) {
  .timeline::before { left: 68px; }
  .timeline-item { grid-template-columns: 68px 2rem 1fr; }
  .photo-row.trio { grid-template-columns: 1fr 1fr; }
  .rsvp-block { padding: 2rem 1.25rem; }
  #main-nav { padding: 0 1rem; }
  #main-nav ul { gap: 0.75rem; }
  #main-nav ul a { font-size: 10px; }
}

/* CAT IMAGE */
.cat-img {
  mix-blend-mode: multiply;
  display: block;
}

/* NAVIGATION */
#main-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--coral-pale);
  padding: 0 1.5rem;
  height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
body.nav-visible #main-nav { display: flex; }
body.nav-visible { padding-top: 52px; }
.nav-home {
  font-family: 'LinotypeFeltpen', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink);
  text-transform: uppercase;
  flex-shrink: 0;
}
#main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#main-nav ul a {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-light);
  font-weight: 600;
}
#main-nav ul a:hover { color: var(--accent); }

/* ── MODE TOGGLE WIDGET ─────────────────────────────── */
#mode-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--cream);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.mode-btn {
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
}
.mode-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ── CAT FILTER PER MODE ────────────────────────────── */
body[data-mode="dorka"] .cat-img {
  filter: hue-rotate(-30deg) saturate(1.4);
}
body[data-mode="andris"] .cat-img {
  filter: hue-rotate(140deg) saturate(0.7);
}

/* ── SCROLL COMPANION ───────────────────────────── */
#cat-companion {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 90px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: var(--cream);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  isolation: isolate;
  overflow: hidden;
}
#cat-companion img {
  width: 100%;
  display: block;
  mix-blend-mode: multiply;
}
@media (max-width: 600px) {
  #cat-companion { display: none; }
}

/* ── STORY TEXT VARIANTS ────────────────────────────── */
[data-story] { display: none; }
body:not([data-mode]) [data-story="default"],
body[data-mode=""] [data-story="default"],
body[data-mode="dorka"] [data-story="dorka"],
body[data-mode="andris"] [data-story="andris"] { display: block; }

/* ── EASTER EGG ─────────────────────────────────── */
@keyframes paw-float {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0);     }
  100% { opacity: 0; transform: translateX(-50%) translateY(-52px); }
}
.cat-paw {
  position: fixed;
  font-size: 22px;
  pointer-events: none;
  z-index: 9999;
  animation: paw-float 0.85s ease-out forwards;
}

@keyframes bubble-appear {
  0%   { opacity: 0; transform: translateX(-50%) translateY(6px);  }
  15%  { opacity: 1; transform: translateX(-50%) translateY(0);    }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}
.cat-bubble {
  position: fixed;
  background: var(--coral-pale);
  color: var(--ink);
  font-family: 'HomemadeApple', cursive;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 9999;
  animation: bubble-appear 1.4s ease forwards;
}

@keyframes cat-wiggle {
  0%, 100% { transform: rotate(0deg);  }
  25%       { transform: rotate(-9deg); }
  75%       { transform: rotate(9deg);  }
}
.cat-wiggle {
  animation: cat-wiggle 0.28s ease-in-out;
}

@keyframes companion-magic {
  0%   { transform: scale(1)    rotate(0deg);   }
  25%  { transform: scale(1.3)  rotate(-12deg); }
  60%  { transform: scale(1.15) rotate(8deg);   }
  100% { transform: scale(1)    rotate(0deg);   }
}
.companion-magic {
  animation: companion-magic 0.65s ease-in-out forwards;
}
