/* ============================================================
   Father's Day — CINEMA PARADISO edition (for Mr Boateng)
   Vintage theater: projector glow, marquee bulbs, film strip,
   ticket stub, end credits. Mobile-first.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Limelight&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300;1,6..72,400&family=Courier+Prime:wght@400;700&display=swap');

:root {
  --font-title: 'Cinzel', Georgia, serif;
  --font-marquee: 'Limelight', 'Cinzel', serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;
  --maxw: 460px;
  --gold: #E0A24B;
}

/* ---------- Modes ---------- */
[data-mode="evening"] {
  --bg:       #1B120C;
  --bg2:      #241710;
  --panel:    #2C1C12;
  --ink:      #F3E6CD;
  --ink-soft: #D8BE97;
  --muted:    #A98C66;
  --gold:     #E0A24B;
  --gold-dim: #C0832F;
  --red:      #A8493A;
  --hair:     rgba(243,230,205,0.16);
  --frame:    #0D0907;
  --hole:     #1B120C;
  --grain:    0.5;
}
[data-mode="matinee"] {
  --bg:       #F2E5CB;
  --bg2:      #EAD9B9;
  --panel:    #FBF1DA;
  --ink:      #2A1B11;
  --ink-soft: #6A4F32;
  --muted:    #9A7C53;
  --gold:     #B6791F;
  --gold-dim: #9A6518;
  --red:      #9E4636;
  --hair:     rgba(42,27,17,0.18);
  --frame:    #2A1C12;
  --hole:     #F2E5CB;
  --grain:    0.28;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0a0705;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#root { min-height: 100vh; }

.page {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 50% -12%, rgba(224,162,75,0.18), transparent 55%),
    radial-gradient(140% 90% at 50% 0%, var(--bg2), var(--bg) 60%);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
  transition: background .5s ease, color .5s ease;
}

/* ---------- projector beam ---------- */
.beam {
  position: absolute; top: -4%; left: 50%; transform: translateX(-50%);
  width: 10px; height: 62%;
  background: linear-gradient(to bottom, rgba(255,222,160,0.30), rgba(255,222,160,0.0));
  filter: blur(26px);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0% 100%);
  width: 320px;
  pointer-events: none; z-index: 1;
  mix-blend-mode: screen;
}

/* ---------- film grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: var(--grain);
  mix-blend-mode: soft-light;
}
.grain.flicker { animation: flick 0.32s steps(3) infinite; }
@keyframes flick { 0%{opacity:calc(var(--grain) * 0.7)} 50%{opacity:var(--grain)} 100%{opacity:calc(var(--grain) * 0.85)} }

.content { position: relative; z-index: 4; }

/* ---------- shared atoms ---------- */
.slate {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.divider { height: 1px; background: var(--hair); margin: 0 26px; }

/* marquee bulbs */
.bulbs { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.bulbs i {
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6dd, var(--gold) 60%, var(--gold-dim));
  box-shadow: 0 0 7px rgba(224,162,75,0.85);
  flex: 1 0 7px; max-width: 7px;
  animation: twinkle 2.4s ease-in-out infinite;
}
.bulbs i:nth-child(even) { animation-delay: -1.2s; }
.bulbs i:nth-child(3n) { animation-delay: -0.7s; }
@keyframes twinkle { 0%,100%{ opacity: 1; } 50%{ opacity: 0.35; } }

/* ============================================================
   HERO — marquee
   ============================================================ */
.hero { padding: 22px 26px 40px; position: relative; }
.marquee-top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 26px;
}
.marquee-top .reel { color: var(--gold); }

.now-showing {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.32em;
  text-transform: uppercase; padding: 6px 13px; border-radius: 2px;
  margin-bottom: 26px; white-space: nowrap;
}
.now-showing .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: twinkle 1.6s ease-in-out infinite; }

.feature-label {
  font-family: var(--font-title); font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; font-size: 12px; color: var(--ink-soft);
  text-align: center; margin: 0 0 6px;
}
.hero h1 {
  font-family: var(--font-title);
  font-weight: 700;
  text-align: center;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 4px 0 6px;
  font-size: clamp(40px, 13.5vw, 60px);
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.hero .tagline {
  text-align: center; font-style: italic; color: var(--gold);
  font-size: 17px; margin: 8px 0 4px; font-family: var(--font-body);
}
.bulb-rule { margin: 16px 4px 22px; }

/* poster */
.poster-wrap { position: relative; padding: 12px; background: var(--panel); border: 1px solid var(--hair); border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.poster {
  position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden;
  border: 1px solid rgba(224,162,75,0.4); border-radius: 2px;
}
.poster image-slot { width: 100%; height: 100%; display: block; }
.poster .corner {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em;
  color: #fff; background: rgba(0,0,0,0.45); padding: 3px 7px; border-radius: 2px;
  text-transform: uppercase; pointer-events: none;
}
.billing {
  text-align: center; margin-top: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink-soft); line-height: 1.7; text-transform: uppercase;
}
.billing b { color: var(--gold); font-weight: 700; }

.scroll-cue {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 28px; color: var(--muted);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
}
.scroll-cue .ln { width: 26px; height: 1px; background: var(--muted); opacity: .6; animation: cue 2.6s ease-in-out infinite; }
@keyframes cue { 0%,100%{ transform: scaleX(.4); opacity:.3 } 50%{ transform: scaleX(1); opacity:.7 } }

/* ============================================================
   ACT — message
   ============================================================ */
.act { padding: 50px 28px 54px; }
.act-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.act-head .slate { white-space: nowrap; }
.act-head .ln { flex: 1; height: 1px; background: var(--hair); }
.letter { font-family: var(--font-body); font-size: 19px; line-height: 1.76; font-weight: 300; color: var(--ink); }
.letter p { margin: 0 0 1.05em; }
.letter p:first-of-type::first-letter {
  font-family: var(--font-title); font-weight: 700; float: left;
  font-size: 62px; line-height: 0.76; padding: 8px 12px 0 0; color: var(--gold);
}
.letter em { color: var(--gold); font-style: italic; }
.sign-inline { margin-top: 26px; font-family: var(--font-title); font-style: italic; font-size: 20px; color: var(--ink-soft); }

/* ============================================================
   FILM STRIP gallery
   ============================================================ */
.reel { padding: 48px 22px 54px; }
.reel-head { text-align: center; margin-bottom: 24px; }
.reel-head h2 { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 26px; margin: 8px 0 0; }
.filmstrip {
  background: var(--frame);
  border-radius: 5px;
  padding: 8px 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 14px 30px rgba(0,0,0,0.4);
}
.frame-row {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  gap: 8px;
  padding: 7px 0;
}
.rail { display: flex; flex-direction: column; justify-content: space-around; align-items: center; padding: 5px 0; }
.rail span { width: 12px; height: 9px; border-radius: 2px; background: var(--hole); box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); }
.frame-photo { position: relative; aspect-ratio: 3/2; overflow: hidden; border-radius: 1px; background: #000; }
.frame-photo image-slot { width: 100%; height: 100%; display: block; }
.frame-tag {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em;
  color: #ffeccc; background: rgba(0,0,0,0.5); padding: 2px 7px; border-radius: 2px;
  pointer-events: none; white-space: nowrap;
}
.frame-gap { height: 1px; background: rgba(255,255,255,0.05); margin: 0 30px; }

/* ============================================================
   TICKET STUB — soundtrack
   ============================================================ */
.soundtrack { padding: 46px 26px 52px; }
.soundtrack .slate { display: block; text-align: center; margin-bottom: 18px; }
.ticket {
  position: relative; display: flex; align-items: stretch;
  background: var(--panel); border: 1px solid var(--hair); border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
  overflow: hidden;
}
.ticket-stub {
  flex: none; width: 64px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ticket-stub .admit {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.3em; color: #2a1b11; text-transform: uppercase;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
/* perforation */
.perf { position: relative; width: 0; }
.perf::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: -1px;
  border-left: 2px dashed rgba(42,27,17,0.45);
}
.notch { position: absolute; left: 64px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); transform: translateX(-50%); z-index: 3; }
.notch.top { top: -7px; } .notch.bottom { bottom: -7px; }
.ticket-body { flex: 1; padding: 16px 16px 16px 20px; min-width: 0; border-left: 2px dashed rgba(224,162,75,0.4); }
.ticket-body .feat { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dim); }
.ticket-body .ttl { font-family: var(--font-title); font-weight: 700; font-size: 21px; line-height: 1.06; margin: 5px 0 3px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticket-body .by { font-style: italic; color: var(--ink-soft); font-size: 14px; font-family: var(--font-body); }
.ticket-meta { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.ticket-meta .m { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.ticket-meta .m b { color: var(--ink-soft); font-weight: 700; }
.play-reel {
  margin-left: auto; width: 42px; height: 42px; flex: none; border-radius: 50%;
  border: 1px solid var(--gold); background: transparent; color: var(--gold);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.play-reel:hover { background: var(--gold); color: #2a1b11; }
.play-reel:active { transform: scale(.92); }
.play-reel svg { width: 16px; height: 16px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 12px; margin-left: 4px; }
.eq i { width: 2.5px; background: var(--gold); height: 30%; border-radius: 2px; }
.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(1){animation-delay:-.2s}.eq i:nth-child(2){animation-delay:-.5s}.eq i:nth-child(3){animation-delay:-.1s}.eq i:nth-child(4){animation-delay:-.7s}
@keyframes eq { 0%,100%{height:22%} 50%{height:100%} }

/* ============================================================
   END CREDITS — sign-off
   ============================================================ */
.credits { padding: 56px 28px 96px; text-align: center; }
.the-end {
  font-family: var(--font-marquee); font-size: clamp(38px, 13vw, 54px);
  color: var(--gold); letter-spacing: 0.04em; margin: 0 0 6px;
  text-shadow: 0 0 26px rgba(224,162,75,0.45);
}
.the-end .star { color: var(--red); font-family: var(--font-title); }
.credits .pre { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.crawl { max-width: 320px; margin: 28px auto 0; display: grid; gap: 12px; }
.crawl .row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 10px; }
.crawl .role { text-align: right; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.crawl .dots { color: var(--hair); letter-spacing: 2px; }
.crawl .name { text-align: left; font-family: var(--font-title); font-size: 15px; color: var(--ink); letter-spacing: 0.04em; }
.credits .yr { margin-top: 34px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   FLOATING TICKET PILL
   ============================================================ */
.music-pill {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 70; display: flex; align-items: center; gap: 11px;
  background: var(--panel); border: 1px solid var(--gold);
  box-shadow: 0 12px 34px rgba(0,0,0,0.5);
  border-radius: 100px; padding: 7px 16px 7px 8px; cursor: pointer;
  max-width: calc(var(--maxw) - 44px); width: max-content;
  transition: transform .2s ease; font-family: var(--font-body);
}
.music-pill:active { transform: translateX(-50%) scale(.97); }
.pill-btn { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--gold); color: #2a1b11; display: grid; place-items: center; }
.pill-btn svg { width: 12px; height: 12px; }
.pill-txt { line-height: 1.15; min-width: 0; }
.pill-txt .a { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pill-txt .b { font-size: 14px; font-style: italic; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.pill-eq i { width: 2.5px; background: var(--gold); height: 30%; border-radius: 2px; }
.music-pill.playing .pill-eq i { animation: eq 0.9s ease-in-out infinite; }
.pill-eq i:nth-child(1){animation-delay:-.2s}.pill-eq i:nth-child(2){animation-delay:-.55s}.pill-eq i:nth-child(3){animation-delay:-.1s}.pill-eq i:nth-child(4){animation-delay:-.4s}

/* ---------- light motes (reused Confetti) ---------- */
.confetti-layer { position: fixed; inset: 0; z-index: 75; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -24px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); opacity: 0;
  box-shadow: 0 0 8px rgba(224,162,75,0.8);
  filter: blur(0.4px);
  will-change: transform, opacity;
}

image-slot { background: var(--frame); }

@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
  .bulbs i, .now-showing .dot, .scroll-cue .ln, .eq i, .pill-eq i, .grain.flicker { animation: none !important; }
}


/* ============================================================
   desktop.css — big-screen (tablet / laptop) layout for ALL
   five Father's Day themes. Mobile stays untouched; at >= 992px
   the page becomes a two-pane spread: a sticky hero panel on the
   left, the notes / gallery / music / sign-off scrolling on the
   right, with galleries opening up to more columns.

   Relies on the shared structure each app now uses:
     .page > .content > (header.hero + .rest)
   ============================================================ */

@media (min-width: 992px) {

  /* ---------------- shared frame ---------------- */
  .page {
    max-width: 1200px;
    overflow: visible;            /* let the hero pin via position:sticky */
  }

  .content {
    display: grid;
    grid-template-columns: minmax(360px, 432px) minmax(0, 1fr);
    column-gap: 60px;
    align-items: start;
    padding: 0 52px;
  }

  .hero {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .rest { min-width: 0; }
  .rest > .divider:first-child { display: none; }

  /* keep long-form reading at a comfortable measure */
  .rest .letter { max-width: 58ch; }

  /* ---------------- ELEGANT (styles.css) ---------------- */
  .hero-portrait { max-height: 58vh; }
  .gallery .grid { gap: 16px; }

  /* ---------------- CINEMA (cinema.css) ---------------- */
  .poster-wrap { max-width: 360px; margin-left: auto; margin-right: auto; }
  .poster { max-height: 42vh; }
  .hero .bulb-rule { margin-top: 12px; margin-bottom: 16px; }

  /* ---------------- HIGHLIFE (highlife.css) ---------------- */
  .record-set { max-width: 432px; }
  .crate-grid { grid-template-columns: repeat(3, 1fr); }

  /* ---------------- MATCHDAY (matchday.css) ---------------- */
  .markings { display: none; }
  .sticker-grid { grid-template-columns: repeat(3, 1fr); }

  /* ---------------- GARAGE (garage.css) ---------------- */
  .cover-frame { max-height: 46vh; }
  .specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .spec-row { padding: 11px 0; }
  .road-grid { grid-template-columns: repeat(3, 1fr); }
}

/* A roomier mid-band for large tablets / small laptops in portrait. */
@media (min-width: 992px) and (max-width: 1180px) {
  .content { column-gap: 44px; padding: 0 36px; }
  .crate-grid, .sticker-grid, .road-grid { grid-template-columns: repeat(2, 1fr); }
}



/* ============================================================
   Static control state — vanilla music + confetti helpers.
   (Added for the no-framework static build.)
   ============================================================ */
[data-music-toggle] { cursor: pointer; }
.i-pause { display: none; }
.is-playing .i-play { display: none; }
.is-playing .i-pause { display: inline-block; }
[data-when-playing] { display: none; }
.is-playing [data-when-idle] { display: none; }
.is-playing [data-when-playing] { display: inline; }
