/* ==========================================================================
   MovieKaki — "sticker" design system
   3px ink outline + hard 4px/4px/0 offset shadow. No gradients/blur/glass.
   Fonts: Jersey 25 (display only) + Nunito (body). Locked palette below.
   Values sourced 1:1 from design-assets/README.md + movie-kaki-screens.html
   ========================================================================== */

:root {
  /* Core palette — locked, do not introduce new hues */
  --cream: #FFF6E4;
  --white: #FFFFFF;
  --ink: #2A1D15;
  --tomato: #C8392E;
  --gold: #E8B54A;
  --sand: #F3E7D0;
  --sand-deep: #EFE0C6;
  --brown-text: #7A6650;
  --brown-body: #5C4A3A;
  --muted: #A2947F;
  --dashed-1: #A2865F;
  --dashed-2: #C9A97F;
  --dashed-3: #E0CFAF;
  --poster: #3A2A1E;
  --green: #4F7042;
  --heart-tint: #FFE9E6;
  --highlight: #F5DFA7;

  --font-display: 'Jersey 25', 'Courier New', monospace;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  --radius-card: 17px;
  --radius-btn: 15px;
  --radius-tab: 13px;
  --radius-chip: 9px;
  --radius-pill: 99px;
  --radius-icon-btn: 11px;
  --radius-avatar: 13px;
  --radius-phone: 34px;

  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-hard-focus: 4px 4px 0 var(--tomato);
  --shadow-hard-pressed: 2px 2px 0 var(--ink);
  --shadow-outer: 9px 9px 0 var(--ink);

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--sand-deep);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- App shell: full-bleed edge-to-edge on real phones, boxed "phone frame"
   preview only on wide/desktop viewports. The breakpoint is intentionally
   higher than the design's 390-430px reference frame — real-world mobile
   browsers (large Android phones, Plus/Max iPhones, accessibility display-zoom)
   commonly report CSS viewport widths well past 430px while still being an
   actual phone in your hand, and the boxed "device" treatment only makes
   sense as a desktop-preview affordance. ---- */
.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  position: relative;
  /* overflow-x: clip (not "hidden") — clips any stray horizontal overflow
     without establishing a scroll container. "hidden" would force overflow-y
     to auto per the CSS overflow-computation rule, which turns .app-shell
     itself into a scroll container and breaks position:sticky inside
     .home-scroll on mobile (the sticky bar needs the real document scroll
     container, not this one, to pin correctly). */
  overflow-x: clip;
}

@media (min-width: 601px) {
  html, body { background: var(--sand-deep); }
  body {
    padding: 32px 16px;
  }
  .app-shell {
    min-height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
    border: 3px solid var(--ink);
    border-radius: var(--radius-phone);
    box-shadow: var(--shadow-outer);
    overflow: hidden; /* keeps bottom nav inside the frame — nav is a flex child, never overflows */
  }
}

/* ---- Real desktop (>=901px): NOT a phone frame. A fixed-height boxed frame
   with its own inner scroller floating in empty space read as broken
   (Ronnie, 1 Oct 2026: "looks quite fucked, make it usable"). Past 900px the
   app becomes a normal page: the document scrolls, the shell is a centred
   sheet up to 1280px wide, and browse views become real responsive grids.
   Grids use minmax(0,1fr) - plain 1fr can't shrink below its content's
   min-width, which is what clipped the right-hand cards before. The sticky
   bar keeps a solid cream background spanning the whole sheet so the poster
   grid can never show through around it while scrolling. ---- */
@media (min-width: 901px) {
  html, body { background: var(--sand-deep); }
  body { padding: 0; display: block; }
  .app-shell {
    max-width: 1280px; margin: 0 auto;
    min-height: 100vh; max-height: none;
    border: 0; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink);
    border-radius: 0; box-shadow: none;
    overflow: visible; overflow-x: clip;
  }
  /* ONE grid: every row - hero, search, tabs, dates, filters, poster grid -
     shares the same 32px left/right edges and runs the full sheet width, so
     nothing floats in its own narrower column (Ronnie, 1 Oct 2026: "awkward",
     "bar should be longer"). Spacing is in multiples of 8px.
     Everything is scoped under .app-shell: base rules are declared later in
     the file at equal specificity and would otherwise win silently (an inner
     overflow:auto also kills the sticky bar). */
  .app-shell .top-bar { border-radius: 0; padding: 16px 32px; gap: 16px; }
  .app-shell .top-bar--detail { gap: 16px; padding: 16px 32px; }
  .app-shell .top-bar--detail .top-bar__btn, .app-shell .top-bar__btn { width: 44px; height: 44px; }
  .app-shell .home-scroll { overflow: visible; }
  .app-shell .scroll-body { overflow: visible; padding: 8px 32px 40px; }
  .app-shell .hero { padding: 40px 32px 32px; max-width: none; }
  .app-shell .hero__headline { font-size: 64px; }
  .app-shell .hero__sub { font-size: 15px; margin-top: 16px; }
  .app-shell .hero__mascot { width: 200px; height: 160px; }
  /* Sticky search + tabs: real padding above/below so it never sits flush on
     the top bar line or the content that scrolls under it, plus a hairline. */
  .app-shell .sticky-bar { top: 79px; /* desktop top bar is 79px tall, not 63 */ padding: 16px 0 8px; border-bottom: 2px solid rgba(42, 29, 21, .14); }
  .app-shell .controls--sticky { padding-top: 0; padding-bottom: 16px; }
  .app-shell .controls, .app-shell .tabs { padding-left: 32px; padding-right: 32px; max-width: none; }
  .app-shell .tabs { padding-top: 0; padding-bottom: 8px; }
  .app-shell .date-sort-row, .app-shell .brand-filter-row, .app-shell .filter-row,
  .app-shell .cinemas-title, .app-shell .saved-section {
    max-width: none; padding-left: 32px; padding-right: 32px;
  }
  .app-shell .date-sort-row { padding-top: 24px; }
  .app-shell .brand-filter-row { padding-bottom: 24px; }
  .app-shell .scroll-body.scroll-body--flow {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; align-items: start;
  }
  /* stretch (not the row layout's flex-start) so the body fills the card's
     width - otherwise a long title/showtime row sizes the body and spills out. */
  .app-shell .movie-card { flex-direction: column; align-items: stretch; min-width: 0; }
  .app-shell .movie-card .poster { width: 100%; height: 0; padding-bottom: 142%; }
  /* .poster-col (poster + rating chip, added 26 Sep 2026) has `flex: none`
     so it hugs its own content on mobile's row layout - with no explicit
     width here it shrink-to-fits, sizing each poster by its own intrinsic
     pixel dimensions (Ronnie, 27 Sep 2026: "inconsistent sizes"). */
  .app-shell .movie-card .poster-col { width: 100%; }
  .app-shell .movie-card__title { font-size: 24px; }
  .app-shell .poster-grid, .app-shell .festival-grid, .app-shell .promo-grid { grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 24px; }
  /* Movie detail: hero sits on the same left edge, with room above it (the
     poster used to touch the header line), a bigger poster, and the cinema
     showtime cards flow into columns. */
  .app-shell .detail-hero { padding: 40px 32px 24px; max-width: none; gap: 32px; }
  .app-shell .detail-hero .poster--detail { width: 168px; height: 240px; }
  .app-shell .detail-hero__title { font-size: 56px; }
  .app-shell .detail-hero__synopsis { font-size: 14px; max-width: 720px; }
  .app-shell .action-pair { padding: 0 32px 24px; max-width: 640px; margin: 0; }
  .app-shell .simple-page__sub, .app-shell .event-section__sub, .app-shell .coming-soon { padding-left: 32px; padding-right: 32px; max-width: none; }
  .app-shell .detail-body {
    overflow: visible; padding: 8px 32px 40px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(384px, 1fr)); gap: 24px; align-items: start;
  }
  .app-shell .detail-body > .empty-state { grid-column: 1 / -1; }
  /* Breathing room between controls: gaps are 16px+ everywhere (they were
     7-10px, which with the 3px hard shadows read as glued together). Shared by
     the SPA (.app-shell) and the static pages (.seo-page). */
  :is(.app-shell, .seo-page) .action-pair { gap: 24px; }
  :is(.app-shell, .seo-page) .date-strip { gap: 16px; }
  :is(.app-shell, .seo-page) .brand-filter-row { gap: 16px; }
  :is(.app-shell, .seo-page) .showtime-card__grid { gap: 16px; }
  :is(.app-shell, .seo-page) .detail-hero__badges { gap: 16px; }
  .menu-drawer { max-width: 400px; }
  .menu-drawer .menu-drawer__header { padding: 24px 32px 16px; }
  .menu-drawer .menu-drawer__nav { padding: 24px 32px 32px; gap: 16px; }
  .app-shell .movie-card__chips, .app-shell .cinema-card__showtimes { gap: 16px; }
  :is(.app-shell, .seo-page) .filter-row { gap: 16px; }
  :is(.app-shell, .seo-page) .seo-badges-row { gap: 16px; }
  .app-shell .tabs { gap: 16px; }
  /* Chip rows wrap on desktop instead of hiding a horizontal scrollbar a mouse
     can't use ("all genre cannot be scrolled"); touch keeps the swipe row. */
  .app-shell .filter-row, .app-shell .show-types-tabs { flex-wrap: wrap; overflow: visible; gap: 16px; padding-left: 32px; padding-right: 32px; }
  .app-shell .simple-page__nav, .app-shell .simple-page__title, .app-shell .simple-page__body { padding-left: 32px; padding-right: 32px; }
  /* About: photo + heading left, story right; stacks again below 901px. */
  .app-shell .about-page__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 24px; }
  .app-shell .about-page__body .about-page__hero { padding: 0; position: sticky; top: 24px; }
  /* Empty/short states and the load-more row span every column. */
  .app-shell .scroll-body.scroll-body--flow > .empty-state,
  .app-shell .scroll-body.scroll-body--flow > .load-more { grid-column: 1 / -1; }
}

/* ---- Home scroll container: everything on the Home screen (both tabs)
   lives inside this single scroller. The sticky bar (search field + tab
   toggle) pins to its top once scrolled past; the logo row, saved-cinemas
   strip and hero scroll away above it like normal content.
   On real mobile viewports .app-shell has no fixed height (min-height:100vh,
   grows with content), so the document itself is the scroll container —
   .home-scroll must NOT also set overflow-y:auto there, or position:sticky
   has no scrollport to stick within and the bar just scrolls away with
   everything else. Only the desktop "phone frame" preview (fixed max-height
   app-shell) needs .home-scroll to be its own internal scroller. ---- */
.home-scroll {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (min-width: 601px) {
  .home-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.sticky-bar {
  position: sticky;
  /* Stops just below the frozen top bar (63px: 10px+10px padding + 40px
     button + 3px border) instead of sliding underneath it. */
  top: 63px;
  z-index: 10;
  background: var(--cream);
  flex: none;
}
/* cream gap so the stuck search bar never touches the top-bar line (mobile; desktop pads .sticky-bar itself). Doubled class beats the later .controls shorthand. */
@media (max-width: 900px) { .controls.controls--sticky { padding-top: 24px; } }

/* ---- Header ---- */
.header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 20px 12px;
  flex: none;
}
.header__avatar {
  width: 42px; height: 42px; flex: none;
  border-radius: var(--radius-avatar);
  background: var(--gold);
  border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 19px;
  overflow: hidden;
}
.header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.header__lockup { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.header__logo { font-family: var(--font-display); font-size: 29px; white-space: nowrap; }
.header__logo .accent { color: var(--tomato); }
.header__logo .squirrel { display: inline-block; margin: 0 1px; font-size: .78em; transform: translateY(-1px); }
.header__tagline { font-size: 14px; color: var(--brown-text); font-weight: 700; margin-top: 3px; }
.header__bell {
  margin-left: auto; width: 38px; height: 38px; flex: none;
  border-radius: 12px; background: var(--white); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; position: relative;
  cursor: pointer;
}
.header__bell-dot {
  position: absolute; top: -4px; right: -4px; width: 13px; height: 13px;
  border-radius: var(--radius-pill); background: var(--tomato); border: 2.5px solid var(--ink);
}

/* ==========================================================================
   Frozen top bar — the ONLY persistent chrome (replaces the old bottom nav).
   Sticky at all times, not just after scroll. Hamburger opens the menu
   drawer; wordmark is centered; bell stays top-right.
   ========================================================================== */
.top-bar {
  position: sticky; top: 0; z-index: 30; flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
/* 5 buttons + wordmark must fit with 16px edges + 10px gaps (the 3px hard shadow eats ~3px of every gap) */
@media (max-width: 430px) { .top-bar__wordmark { font-size: 22px; } }
@media (max-width: 380px) { .top-bar__wordmark { font-size: 18px; } .top-bar { gap: 8px; } }
@media (min-width: 601px) {
  .top-bar { border-radius: calc(var(--radius-phone) - 3px) calc(var(--radius-phone) - 3px) 0 0; }
}
.top-bar__btn {
  width: 40px; height: 40px; flex: none;
  border-radius: 12px; background: var(--white); border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; position: relative;
  cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.top-bar__btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.top-bar__spacer { width: 40px; flex: none; }
.top-bar__wordmark {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 26px; white-space: nowrap; gap: 0;
  cursor: pointer; background: none; border: none; padding: 0; color: var(--ink);
}
.top-bar__wordmark .accent { color: var(--tomato); }
.wordmark-img { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; margin-top: 12px; position: relative; z-index: 31; }
/* Big logo pops out: the wordmark slot stays button-height (40px) so the bar doesn't grow; the image hangs over the bottom border. */
.top-bar__wordmark { height: 40px; align-items: flex-start; overflow: visible; }
.top-bar--detail .top-bar__wordmark { overflow: visible; }
.top-bar--detail .wordmark-img { height: 54px; margin-top: 14px; }
.menu-drawer__logo .wordmark-img { height: 44px; margin-top: 0; }
@media (min-width: 901px) { .top-bar__wordmark { height: 44px; } .app-shell .wordmark-img, .seo-page .wordmark-img, .app-shell .top-bar--detail .wordmark-img { height: 92px; margin-top: -13px; } .menu-drawer__logo .wordmark-img { height: 52px; margin-top: 0; } }
.top-bar__wordmark .squirrel { display: inline-block; margin: 0 2px; font-size: .74em; transform: translateY(-2px); }
.top-bar__bell-dot {
  position: absolute; top: -4px; right: -4px; width: 12px; height: 12px;
  border-radius: var(--radius-pill); background: var(--tomato); border: 2.5px solid var(--ink);
}

/* ---- Menu drawer (slide-in from left, reuses the sheet overlay pattern) ---- */
.menu-overlay {
  position: fixed; inset: 0; background: rgba(42, 29, 21, 0.55);
  z-index: 200; display: flex; align-items: stretch; justify-content: flex-start;
}
/* Static SEO pages toggle this overlay via the plain `hidden` attribute
   (seo.js) rather than the SPA's conditional-render approach - needs an
   explicit override since the unconditional `display: flex` above would
   otherwise always beat the attribute's UA-stylesheet `display: none`. */
.menu-overlay[hidden] { display: none; }
.menu-drawer {
  width: 82%; max-width: 320px; height: 100%; background: var(--cream);
  border-right: 3px solid var(--ink); box-shadow: 6px 0 0 rgba(42,29,21,0.12);
  display: flex; flex-direction: column;
  transform: translateX(0);
  animation: menu-slide-in .18s ease-out;
}
@keyframes menu-slide-in {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-drawer { animation: none; }
}
.menu-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 14px; border-bottom: 3px solid var(--ink); flex: none;
}
.menu-drawer__logo { font-family: var(--font-display); font-size: 26px; }
.menu-drawer__logo .accent { color: var(--tomato); }
.menu-drawer__logo .squirrel { display: inline-block; margin: 0 1px; font-size: .78em; transform: translateY(-1px); }
.menu-drawer__close {
  width: 34px; height: 34px; border-radius: 10px; background: var(--white);
  border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none;
}
.menu-drawer__nav {
  flex: 1; overflow-y: auto; padding: 16px 16px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.menu-drawer__item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink); padding: 12px 14px;
  font-family: var(--font-display); font-size: 20px; color: var(--ink);
  cursor: pointer; text-align: left; width: 100%;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.menu-drawer__item:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.menu-drawer__item--active { background: var(--ink); color: var(--cream); }
.menu-drawer__item--active .menu-drawer__item-icon svg { stroke: var(--cream); }
.menu-drawer__item-icon { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.menu-drawer__item-icon svg { stroke: var(--ink); }
.menu-drawer__item--active .menu-drawer__item-icon { color: var(--cream); }
.menu-drawer__item-badge {
  margin-left: auto; font-family: var(--font-body); font-size: 14px; font-weight: 900;
  background: var(--gold); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 7px;
  letter-spacing: .03em; color: var(--ink); flex: none;
}
.menu-drawer__footer {
  padding: 12px 20px 18px; border-top: 3px solid var(--ink); background: var(--sand-deep);
  font-size: 14px; color: var(--brown-body); font-weight: 700; text-align: center; flex: none;
}

/* ---- Hero ---- */
.hero { display: flex; align-items: flex-start; gap: 16px; padding: 24px 20px 16px; flex: none; }
.hero__copy { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hero__eyebrow { font-family: var(--font-display); font-size: 18px; color: var(--tomato); letter-spacing: .04em; }
.hero__headline { font-family: var(--font-display); font-size: 42px; line-height: .95; margin-top: 2px; }
.hero__sub { font-size: 14px; color: var(--brown-text); font-weight: 700; margin-top: 8px; }
.hero__mascot {
  width: 148px; height: 168px; flex: none;
  margin-left: -14px; margin-top: -6px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__mascot img { width: 100%; height: 100%; object-fit: contain; }

/* ---- Street Fighter movie-page easter egg: Ryu squirrel hadouken (one shared 10s clock) ---- */
.hadouken-easter-egg {
  --sf: clamp(190px, 46vw, 250px);
  position: fixed; inset: 0; z-index: 42; pointer-events: none; overflow: hidden;
}
.hadouken-cast {
  position: absolute; left: calc(20px - var(--sf) * 0.1095); top: clamp(72px, 10vh, 96px);
  width: calc(var(--sf) * 1.1095); aspect-ratio: 446 / 284; overflow: hidden;
}
.hadouken-cast img {
  display: block; width: 2000%; max-width: none; height: 100%;
  animation: hadouken-cast-frames 10s steps(1, end) infinite;
}
.hadouken-projectile {
  position: absolute; left: calc(20px + var(--sf) * 0.37);
  top: calc(clamp(72px, 10vh, 96px) + var(--sf) * 0.22);
  width: calc(var(--sf) * 0.6); aspect-ratio: 4 / 3; overflow: hidden;
  opacity: 0; animation: hadouken-projectile-flight 10s linear infinite;
}
.hadouken-projectile img {
  display: block; width: 600%; max-width: none; height: 100%;
  animation: hadouken-projectile-frames 10s steps(1, end) infinite;
}
@keyframes hadouken-cast-frames {
  0% { transform: translateX(0.000%); }
  3% { transform: translateX(-5.000%); }
  6% { transform: translateX(-10.000%); }
  9% { transform: translateX(-15.000%); }
  12% { transform: translateX(-20.000%); }
  15% { transform: translateX(-25.000%); }
  18% { transform: translateX(-30.000%); }
  21% { transform: translateX(-35.000%); }
  24% { transform: translateX(-40.000%); }
  26.5% { transform: translateX(-45.000%); }
  29% { transform: translateX(-50.000%); }
  32% { transform: translateX(-55.000%); }
  35% { transform: translateX(-60.000%); }
  39% { transform: translateX(-65.000%); }
  43% { transform: translateX(-70.000%); }
  47% { transform: translateX(-75.000%); }
  51% { transform: translateX(-80.000%); }
  55% { transform: translateX(-85.000%); }
  59% { transform: translateX(-90.000%); }
  63% { transform: translateX(-95.000%); }
  67% { transform: translateX(-60.000%); }
  71% { transform: translateX(-65.000%); }
  75% { transform: translateX(-70.000%); }
  79% { transform: translateX(-75.000%); }
  83% { transform: translateX(-80.000%); }
  87% { transform: translateX(-85.000%); }
  91% { transform: translateX(-90.000%); }
  95% { transform: translateX(-95.000%); }
  100% { transform: translateX(-95.000%); }
}
@keyframes hadouken-projectile-flight {
  0%, 22.9% { opacity: 0; transform: translate3d(0, 0, 0); }
  23% { opacity: 1; transform: translate3d(0, 0, 0); }
  68% { opacity: 1; transform: translate3d(112vw, 0, 0); }
  68.1%, 100% { opacity: 0; transform: translate3d(112vw, 0, 0); }
}
@keyframes hadouken-projectile-frames {
  0%, 23% { transform: translateX(0); }
  23% { transform: translateX(0.000%); }
  24% { transform: translateX(-16.667%); }
  26% { transform: translateX(-33.333%); }
  29% { transform: translateX(-50.000%); }
  32% { transform: translateX(-66.667%); }
  35% { transform: translateX(-66.667%); }
  38% { transform: translateX(-50.000%); }
  41% { transform: translateX(-66.667%); }
  44% { transform: translateX(-50.000%); }
  47% { transform: translateX(-66.667%); }
  50% { transform: translateX(-50.000%); }
  53% { transform: translateX(-66.667%); }
  56% { transform: translateX(-50.000%); }
  59% { transform: translateX(-66.667%); }
  62% { transform: translateX(-50.000%); }
  65% { transform: translateX(-66.667%); }
  68%, 100% { transform: translateX(-66.667%); }
}
@media (prefers-reduced-motion: reduce) {
  .hadouken-easter-egg { display: none; }
}

/* ---- Spider-Man movie page mascot overlay ---- */
.spider-swing-overlay {
  position: fixed;
  z-index: 40;
  top: clamp(72px, 16vh, 132px);
  left: -28vw;
  width: clamp(112px, 31vw, 164px);
  aspect-ratio: 2 / 3;
  pointer-events: none;
  animation: spider-swing-across 9s ease-in-out infinite;
  will-change: transform;
}
.spider-swing-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(42, 29, 21, .2));
}
@keyframes spider-swing-across {
  0% { transform: translate3d(0, 34px, 0) rotate(-10deg); }
  12% { transform: translate3d(12vw, -10px, 0) rotate(7deg); }
  50% { transform: translate3d(58vw, 18px, 0) rotate(-5deg); }
  86% { transform: translate3d(104vw, -8px, 0) rotate(8deg); }
  100% { transform: translate3d(142vw, 30px, 0) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
  .spider-swing-overlay { animation: none; left: auto; right: 8px; top: 84px; }
}

/* ---- Resident Evil movie page mascot overlay ---- */
.zombie-chase-overlay {
  position: fixed;
  z-index: 40;
  bottom: clamp(64px, 14vh, 120px);
  left: -40vw;
  width: clamp(140px, 34vw, 200px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  animation: zombie-chase-across 12s linear infinite;
  will-change: transform;
}
.zombie-chase-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(42, 29, 21, .2));
}
/* One asset, both directions - the run-cycle APNG (looping on its own timeline,
   independent of this position animation, so the legs never stop mid-chase)
   is just mirrored with scaleX(-1) for the return leg, no second file needed.
   Runs left->right (~5s), holds on-screen at the right for ~2.5s, flips
   instantly, then runs back right->left mirrored (~4.5s) before looping -
   the flip happens at 62.5%/62.6% (two keyframes a hair apart = an instant
   snap, not a gradual squash). A chase should feel faster/more panicked than
   the Spider-Man swing's smooth loop - jolt/stumble beats, not one clean arc. */
@keyframes zombie-chase-across {
  0%     { transform: translate3d(0, 0, 0) scaleX(1) rotate(0deg); }
  10%    { transform: translate3d(15vw, -6px, 0) scaleX(1) rotate(-2deg); }
  25%    { transform: translate3d(38vw, 4px, 0) scaleX(1) rotate(2deg); }
  41.7%  { transform: translate3d(60vw, -4px, 0) scaleX(1) rotate(0deg); }
  62.5%  { transform: translate3d(60vw, -4px, 0) scaleX(1) rotate(0deg); }
  62.6%  { transform: translate3d(60vw, -4px, 0) scaleX(-1) rotate(0deg); }
  75%    { transform: translate3d(38vw, 4px, 0) scaleX(-1) rotate(2deg); }
  90%    { transform: translate3d(15vw, -6px, 0) scaleX(-1) rotate(-2deg); }
  100%   { transform: translate3d(0, 0, 0) scaleX(-1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .zombie-chase-overlay { animation: none; left: 8px; bottom: 84px; }
}

/* ---- Clayface movie page mascot: walks in, transforms, runs away, endless loop ----
   Two tracks on one 12s clock: container travel (hop on odd beats, hold on even, 1-3px bob)
   + a steps(1) sprite strip (16 frames side by side). Same hop rule as Kuri Town pets. */
.clayface-mud-overlay {
  position: fixed;
  z-index: 40;
  bottom: clamp(64px, 14vh, 120px);
  left: 8px;
  width: clamp(150px, 35vw, 220px);
  aspect-ratio: 420 / 300;
  pointer-events: none;
  animation: clayface-travel 12s linear infinite;
  will-change: transform;
}
.clayface-mud-overlay .clayface-window {
  width: 100%;
  height: 100%;
  overflow: hidden;
  filter: drop-shadow(3px 4px 0 rgba(42, 29, 21, .2));
  transform-origin: 50% 100%;
  animation: clayface-breathe 1.8s ease-in-out infinite alternate;
}
@keyframes clayface-breathe {
  from { transform: translate3d(0, 0, 0) scale(1, 1); }
  to { transform: translate3d(0, -3px, 0) scale(0.985, 1.09); }
}
.clayface-mud-overlay img {
  display: block;
  width: 2000%;
  height: 100%;
  max-width: none;
  animation: clayface-frames 12s steps(1, end) infinite;
}
@keyframes clayface-travel {
  0% { transform: translate3d(-115.00%, 0px, 0); }
  0.58% { transform: translate3d(-115.00%, -3px, 0); }
  1.62% { transform: translate3d(-100.62%, 0px, 0); }
  3.25% { transform: translate3d(-100.62%, 0px, 0); }
  3.83% { transform: translate3d(-100.62%, -3px, 0); }
  4.88% { transform: translate3d(-86.25%, 0px, 0); }
  6.5% { transform: translate3d(-86.25%, 0px, 0); }
  7.08% { transform: translate3d(-86.25%, -3px, 0); }
  8.12% { transform: translate3d(-71.88%, 0px, 0); }
  9.75% { transform: translate3d(-71.88%, 0px, 0); }
  10.34% { transform: translate3d(-71.88%, -3px, 0); }
  11.38% { transform: translate3d(-57.50%, 0px, 0); }
  13% { transform: translate3d(-57.50%, 0px, 0); }
  13.59% { transform: translate3d(-57.50%, -3px, 0); }
  14.62% { transform: translate3d(-43.12%, 0px, 0); }
  16.25% { transform: translate3d(-43.12%, 0px, 0); }
  16.84% { transform: translate3d(-43.12%, -3px, 0); }
  17.88% { transform: translate3d(-28.75%, 0px, 0); }
  19.5% { transform: translate3d(-28.75%, 0px, 0); }
  20.09% { transform: translate3d(-28.75%, -3px, 0); }
  21.12% { transform: translate3d(-14.38%, 0px, 0); }
  22.75% { transform: translate3d(-14.38%, 0px, 0); }
  23.34% { transform: translate3d(-14.38%, -3px, 0); }
  24.38% { transform: translate3d(0.00%, 0px, 0); }
  26% { transform: translate3d(0%, 0px, 0); }
  30% { transform: translate3d(0%, 0px, 0); }
  62% { transform: translate3d(0%, 0px, 0); }
  70% { transform: translate3d(0%, 0px, 0); }
  72% { transform: translate3d(0%, 0px, 0); }
  72% { transform: translate3d(calc(0.0000*(100vw + 115%)), 0px, 0); }
  72.38% { transform: translate3d(calc(0.0000*(100vw + 115%)), -5px, 0); }
  73.38% { transform: translate3d(calc(0.1250*(100vw + 115%)), 0px, 0); }
  74.5% { transform: translate3d(calc(0.1250*(100vw + 115%)), 0px, 0); }
  74.88% { transform: translate3d(calc(0.1250*(100vw + 115%)), -5px, 0); }
  75.88% { transform: translate3d(calc(0.2500*(100vw + 115%)), 0px, 0); }
  77% { transform: translate3d(calc(0.2500*(100vw + 115%)), 0px, 0); }
  77.38% { transform: translate3d(calc(0.2500*(100vw + 115%)), -5px, 0); }
  78.38% { transform: translate3d(calc(0.3750*(100vw + 115%)), 0px, 0); }
  79.5% { transform: translate3d(calc(0.3750*(100vw + 115%)), 0px, 0); }
  79.88% { transform: translate3d(calc(0.3750*(100vw + 115%)), -5px, 0); }
  80.88% { transform: translate3d(calc(0.5000*(100vw + 115%)), 0px, 0); }
  82% { transform: translate3d(calc(0.5000*(100vw + 115%)), 0px, 0); }
  82.38% { transform: translate3d(calc(0.5000*(100vw + 115%)), -5px, 0); }
  83.38% { transform: translate3d(calc(0.6250*(100vw + 115%)), 0px, 0); }
  84.5% { transform: translate3d(calc(0.6250*(100vw + 115%)), 0px, 0); }
  84.88% { transform: translate3d(calc(0.6250*(100vw + 115%)), -5px, 0); }
  85.88% { transform: translate3d(calc(0.7500*(100vw + 115%)), 0px, 0); }
  87% { transform: translate3d(calc(0.7500*(100vw + 115%)), 0px, 0); }
  87.38% { transform: translate3d(calc(0.7500*(100vw + 115%)), -5px, 0); }
  88.38% { transform: translate3d(calc(0.8750*(100vw + 115%)), 0px, 0); }
  89.5% { transform: translate3d(calc(0.8750*(100vw + 115%)), 0px, 0); }
  89.88% { transform: translate3d(calc(0.8750*(100vw + 115%)), -5px, 0); }
  90.88% { transform: translate3d(calc(1.0000*(100vw + 115%)), 0px, 0); }
  92% { transform: translate3d(calc(100vw + 115%), 0px, 0); }
  99.99% { transform: translate3d(calc(100vw + 115%), 0px, 0); }
  100% { transform: translate3d(-115%, 0, 0); }
}
@keyframes clayface-frames {
  0% { transform: translate3d(0%, 0, 0); }
  26% { transform: translate3d(0%, 0, 0); }
  28.67% { transform: translate3d(-6.25%, 0, 0); }
  31.33% { transform: translate3d(-12.5%, 0, 0); }
  34.00% { transform: translate3d(-18.75%, 0, 0); }
  36.67% { transform: translate3d(-25%, 0, 0); }
  39.33% { transform: translate3d(-31.25%, 0, 0); }
  42.00% { transform: translate3d(-37.5%, 0, 0); }
  44.67% { transform: translate3d(-43.75%, 0, 0); }
  47.33% { transform: translate3d(-50%, 0, 0); }
  50.00% { transform: translate3d(-56.25%, 0, 0); }
  52.67% { transform: translate3d(-62.5%, 0, 0); }
  55.33% { transform: translate3d(-68.75%, 0, 0); }
  58.00% { transform: translate3d(-75%, 0, 0); }
  60.67% { transform: translate3d(-81.25%, 0, 0); }
  63.33% { transform: translate3d(-87.5%, 0, 0); }
  66.00% { transform: translate3d(-93.75%, 0, 0); }
  100% { transform: translate3d(-93.75%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .clayface-mud-overlay { animation: none; bottom: 84px; }
  .clayface-mud-overlay .clayface-window, .clayface-mud-overlay img { animation: none; }
  .clayface-mud-overlay img { transform: translate3d(-68.75%, 0, 0); }
}

/* ---- Avengers: Endgame Encore movie page mascot overlay ---- */
/* Two independently-moving elements sharing one 8s loop timeline, unlike the
   single self-contained sprite the Spider-Man/Resident Evil eggs use - this
   egg needs a hand-off moment where a flying hammer "arrives" at the
   squirrel's hand, so the two animations are authored against the same
   total duration with matching keyframe percentages so they land in sync.

   HARD-CUT hand-off (rewritten 27 Sep 2026 - see easter-eggs.md for the
   full incident): the squirrel sprite strip used to include its own
   "approach"/"arriving" transitional frames showing the hammer already
   near/on the squirrel WHILE the separate flying-hammer overlay was also
   still visibly mid-flight (both true from ~40%-61% of the old timeline) -
   that's two hammers on screen at once, reading as a glitch. Fixed by
   removing every transitional frame from the strip entirely: the squirrel
   now only ever shows a clean NOT-HOLDING pose or a clean HOLDING pose,
   each with its own 4-frame breathing/idle loop (Ronnie's "add breathing
   animation" ask), and the swap between them is an instant single-frame
   cut timed to land in the exact same % window the hammer overlay is
   already fully invisible (opacity:0, 62%-90%) or fully off-screen
   (0%-26%, 91%-100%) - so there is never a moment with a "holding" squirrel
   AND a mid-flight (not-yet-arrived/already-departed) hammer, and never a
   moment with zero hammers visible either.
   - .avengers-cap-overlay: steps() through a 13-frame sprite strip: frames
     0-3 = not-holding idle breathing (x4 near-identical poses), 4-7 =
     holding-normal idle breathing (x4), 8 = one-off "just caught it!"
     reaction frame (from sheet B, big grin), 9-12 = holding-happy/content
     idle breathing (x4). No approach/arriving/gripping-transition frame
     exists in the strip at all anymore - it is architecturally impossible
     to land on one.
   - .avengers-hammer-overlay: unchanged flight choreography (Ronnie
     confirmed the "flying towards" visual is fine, don't rebuild it) -
     flies in 26%-61%, opacity 0 at 62% (arrived), stays hidden 62%-90%,
     reappears at 91%, flies out 91%-100%.
   Percent boundaries below are shared between both keyframe blocks on
   purpose - do not change one without the other or the hand-off drifts. */
.avengers-cap-overlay {
  position: fixed;
  z-index: 41;
  bottom: clamp(56px, 13vh, 112px);
  left: clamp(8px, 4vw, 28px);
  width: clamp(96px, 24vw, 150px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  overflow: hidden;
  animation: avengers-cap-enter 1.1s ease-out both;
}
.avengers-cap-overlay img {
  display: block;
  height: 100%;
  width: 1300%; /* 13 frames */
  max-width: none;
  filter: drop-shadow(3px 4px 0 rgba(42, 29, 21, .2));
  /* 5.5s, not the original 8s (Ronnie, 28 Sep 2026: "i notice yit stop for
     awhile" - the two idle-only windows, 0-26% and 62-90% of the loop, are
     ~2.1s/2.2s of near-static breathing each at 8s, long enough to read as
     the animation freezing. Shortening the loop cuts both proportionally
     (~1.4s/1.5s) without touching the % structure or the hard-cut sync with
     avengers-hammer-flight below - MUST stay numerically identical to that
     animation's duration or the two fall out of sync frame-by-frame. */
  animation: avengers-cap-frames 5.5s steps(1) infinite .9s;
}
/* One-time walk/slide-in from off-left, then holds in place forever after
   (both, not infinite - it should not re-enter every loop per Ronnie's
   explicit call: the squirrel stays on screen and only the hammer re-loops). */
@keyframes avengers-cap-enter {
  0%   { transform: translate3d(-130%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
/* Frame stepping via transform on the inner <img> (a CSS sprite-sheet
   technique using transform instead of background-position, since this is a
   plain <img> tag not a div background). The img is 1300% of the overlay
   box's width (13 frames), so `transform: translate` percentages - which
   CSS resolves against the element's OWN box, not the parent - must be
   expressed as multiples of 100%/13 (~7.6923%) to shift by exactly one
   frame each step, NOT multiples of 100% (see the frame-math bug this
   pattern already caught once, in easter-eggs.md).
   Frame index -> % offset: 0=0, 1=-7.6923, 2=-15.3846, 3=-23.0769,
   4=-30.7692, 5=-38.4615, 6=-46.1538, 7=-53.8462, 8=-61.5385, 9=-69.2308,
   10=-76.9231, 11=-84.6154, 12=-92.3077.
   These % values are frame-COUNT-relative (100%/13), not frame-pixel-size
   relative, so they needed zero changes when avengers-squirrel-cap-strip.png
   was rebuilt 28 Sep 2026 with each frame's canvas grown from 300x300 to
   360x360 (30px transparent margin pasted on all sides of the existing,
   untouched 300x300 content, identically on all 13 frames) - Ronnie: "give
   more space to the squirrel[,] the hammer is out." The character now
   renders a bit smaller within the same overlay box, with real breathing
   room on every edge instead of the hammer/ears sitting near-flush against
   the frame boundary. The box's own `aspect-ratio: 1/1` also didn't need to
   change (360x360 is still square). Only the hammer-landing grip-point
   fractions below needed recomputing, since padding shifted where the paw
   sits as a fraction of the (now bigger) frame. */
@keyframes avengers-cap-frames {
  0%     { transform: translate3d(0, 0, 0); }             /* frame 0: not-holding idle a */
  6.5%   { transform: translate3d(-7.6923%, 0, 0); }      /* frame 1: not-holding idle b */
  13%    { transform: translate3d(-15.3846%, 0, 0); }     /* frame 2: not-holding idle c */
  19.5%  { transform: translate3d(-23.0769%, 0, 0); }     /* frame 3: not-holding idle d */
  26%    { transform: translate3d(0, 0, 0); }              /* back to frame 0: hold not-holding pose right up to the hand-off */
  61.9%  { transform: translate3d(0, 0, 0); }              /* still not-holding one instant before the cut */
  62%    { transform: translate3d(-61.5385%, 0, 0); }      /* HARD CUT -> frame 8: caught it! (hammer overlay hits opacity:0 in this same instant) */
  67%    { transform: translate3d(-30.7692%, 0, 0); }      /* frame 4: holding-normal idle a */
  73%    { transform: translate3d(-38.4615%, 0, 0); }      /* frame 5: holding-normal idle b */
  79%    { transform: translate3d(-46.1538%, 0, 0); }      /* frame 6: holding-normal idle c */
  85%    { transform: translate3d(-69.2308%, 0, 0); }      /* frame 9: holding-happy idle a */
  90.9%  { transform: translate3d(-76.9231%, 0, 0); }      /* frame 10: holding-happy idle b, held through the release instant */
  91%    { transform: translate3d(0, 0, 0); }              /* HARD CUT -> frame 0: not-holding again (hammer overlay reappears in this same instant) */
  96%    { transform: translate3d(-7.6923%, 0, 0); }       /* frame 1: not-holding idle b */
  100%   { transform: translate3d(0, 0, 0); }               /* back to frame 0, loop */
}
@media (prefers-reduced-motion: reduce) {
  .avengers-cap-overlay { animation: none; }
  .avengers-cap-overlay img { animation: none; transform: translate3d(-61.5385%, 0, 0); } /* static: shown holding the hammer (frame 8) */
}

.avengers-hammer-overlay {
  position: fixed;
  /* Must render ABOVE the squirrel (.avengers-cap-overlay is z-index 41) -
     the hammer's flight path crosses in front of/near the squirrel's head on
     its way to the hand, and with a lower z-index it visually vanished
     behind the (mostly-opaque) squirrel sprite mid-flight, reading as a
     glitch (Ronnie, 27 Sep 2026, screenshotted the hammer poking out from
     behind the squirrel's head). A flying hammer arriving in front of the
     character it's flying toward is the only reading that makes sense. */
  z-index: 42;
  /* left/bottom are DERIVED, not eyeballed (the two prior manual-eyeball
     passes both overshot). The hammer's own "grip point" (the narrow neck of
     the handle just above the rope loop, measured pixel-precise on the
     cropped avengers-hammer-flying.png: x=103/251=41.0% across, y=140/208=
     67.3% down) must land exactly on the squirrel sprite's paw-grip point
     (measured the same way on the cap strip: x=292/360=81.1% across,
     y=213/360=59.2% down -> 40.8% up from the bottom of the cap overlay's
     box - these two fractions were re-measured 28 Sep 2026 after padding
     every cap-strip frame's canvas from 300x300 to 360x360 for breathing
     room, see the frame comment below; update BOTH here if that padding
     amount ever changes again). Both overlay boxes scale with viewport
     (vw/vh clamps), so the landing spot is computed algebraically from the
     SAME clamp() expressions the cap overlay uses, instead of a fixed px
     guess - it now lines up at any viewport width, not just the one
     screenshot it was measured on. At rest the flight keyframes below leave
     this element at translate3d(0,0,0), i.e. exactly this left/bottom, so
     there's no residual offset left over from the animation. */
  left: calc(clamp(8px, 4vw, 28px) + 0.8111 * clamp(96px, 24vw, 150px) - 0.4104 * clamp(28px, 6.5vw, 38px));
  bottom: calc(clamp(56px, 13vh, 112px) + 0.4083 * clamp(96px, 24vw, 150px) - 0.271 * clamp(28px, 6.5vw, 38px));
  /* Sized to match the hammer AS DRAWN in the squirrel's hand (measured
     ~65px head-width inside the 300px sprite frame, scaled down by the same
     ratio the cap overlay uses) instead of the old clamp(70px,15vw,96px),
     which rendered 2-3x bigger than the in-hand hammer (Ronnie, 27 Sep 2026:
     "resize the hammer to smaller, almost fitting the size of the hammer on
     the squirrel's hand"). */
  width: clamp(28px, 6.5vw, 38px);
  aspect-ratio: 251 / 208; /* true content aspect of the (now content-cropped) PNG */
  pointer-events: none;
  /* 5.5s to match avengers-cap-frames above (keep numerically identical).
     `backwards` fill-mode fixes a real bug Ronnie caught (28 Sep 2026: "when
     it start loading the hammer is behind the squirrel"): without it, during
     this element's OWN .9s pre-delay window the animation has no effect yet,
     so the browser shows the element's bare declared style - full opacity,
     no transform - which is opacity:1 sitting AT the landing spot (left/
     bottom above), not hidden off-screen. That overlapped with the cap
     overlay's separate 1.1s slide-in-from-off-left entrance, so for a brief
     window on every fresh page load the small hammer sat stationary at the
     paw position while the squirrel was still sliding into place around it -
     read as "the hammer is behind/already there before the squirrel
     arrives." `backwards` makes the FIRST keyframe (0%: off-screen,
     opacity:0) apply retroactively through the whole delay, so the hammer
     stays properly hidden until its actual flight begins. */
  animation: avengers-hammer-flight 5.5s ease-in-out infinite .9s backwards;
}
.avengers-hammer-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(42, 29, 21, .2));
}
/* Flies in from off-screen right, fully visible through 60%, then fades to
   opacity:0 by 62% - the cap overlay above hard-cuts from its not-holding
   frame to its "caught it!" frame at 62%, mid-fade, so the pose swap happens
   WHILE the flying hammer is dissolving out at the same spot. Stays
   invisible 62%-90% while the cap overlay's holding frames are on screen,
   then fades back to opacity:1 by 92% - the cap overlay hard-cuts back to
   not-holding at 91%, again mid-fade - and flies back out 91%-100%. These
   two fade windows are the only places a hammer appears/disappears; there is
   no window where both a holding-squirrel frame and a visible-but-not-yet-
   arrived/already-departed hammer coexist.
   No rotation, no vertical arc - a straight horizontal line to/from the
   resting spot (Ronnie, 27 Sep 2026: "fly just straight didn't need
   rotate"). translate3d(0,0,0) at rest = exactly the element's own
   left/bottom (the derived landing spot above), so removing the spin also
   removed the old "+4vw fudge" the rotated version needed.
   The opacity fade around each hard-cut (60%-62% catch, 90%-92% release) is
   deliberately a 2%-of-loop span, not 1% (Ronnie, 28 Sep 2026: "the hammer
   get cuts out the shape when he is holding it") - this flying sprite and
   the squirrel's own hand-drawn held-hammer frame are two different pieces
   of art, so an instant (1-frame) swap between them always reads as a
   visible shape jump. A short fade - both ends already sitting at the SAME
   translate3d(0,0,0) position, since the landing spot is calibrated to the
   paw - reads as a soft dissolve instead of a cut, without reintroducing the
   old "two hammers visible" bug (that was ~1.7s of overlap at MISMATCHED
   positions during the flight itself, not ~110ms at the same spot). Do not
   widen this further without re-checking against that regression. */
@keyframes avengers-hammer-flight {
  0%     { transform: translate3d(340vw, 0, 0); opacity: 0; }
  26%    { transform: translate3d(340vw, 0, 0); opacity: 0; }
  40%    { transform: translate3d(120vw, 0, 0); opacity: 1; }
  55%    { transform: translate3d(28vw, 0, 0); opacity: 1; }
  60%    { transform: translate3d(0, 0, 0); opacity: 1; }
  62%    { transform: translate3d(0, 0, 0); opacity: 0; }
  90%    { transform: translate3d(0, 0, 0); opacity: 0; }
  92%    { transform: translate3d(0, 0, 0); opacity: 1; }
  96%    { transform: translate3d(120vw, 0, 0); opacity: 1; }
  100%   { transform: translate3d(340vw, 0, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .avengers-hammer-overlay { animation: none; opacity: 0; }
}

/* ---- Search field + location CTA ---- */
.controls { padding: 0 20px 12px; display: flex; flex-direction: column; gap: 12px; flex: none; }
.search-field {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-btn);
  box-shadow: var(--shadow-hard); padding: 12px 14px;
  cursor: pointer; width: 100%; text-align: left;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.search-field:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.search-field__placeholder { font-size: 14px; font-weight: 700; color: var(--brown-body); }
.search-field--focused { box-shadow: var(--shadow-hard-focus); }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 8px; padding: 6px 20px 12px; flex: none; }
.tab {
  flex: 1; text-align: center; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-tab); padding: 8px 0; font-family: var(--font-display); font-size: 21px;
  color: var(--brown-text); cursor: pointer;
}
.tab--active { background: var(--ink); color: var(--cream); }

/* ---- Scroll body ---- */
.scroll-body {
  flex: 1; overflow-y: auto; padding: 2px 20px 16px;
  display: flex; flex-direction: column; gap: 11px;
  -webkit-overflow-scrolling: touch;
}
/* Home screen (both tabs): the list flows inside .home-scroll instead of
   being its own inner scroller — .home-scroll is the single scroll region
   so the sticky bar above it can pin correctly. */
.scroll-body.scroll-body--flow {
  flex: none; overflow-y: visible; -webkit-overflow-scrolling: auto;
}

/* ---- Movie card (list) ---- */
.movie-card {
  display: flex; align-items: flex-start; gap: 12px; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-hard); padding: 11px;
  cursor: pointer; text-align: left; width: 100%;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.movie-card:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.poster {
  width: 66px; height: 94px; flex: none; border-radius: 10px; background: var(--poster);
  border: 2.5px solid var(--ink); display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 5px; font-size: 14px; font-weight: 800; color: var(--dashed-2);
  overflow: hidden; position: relative;
}
.poster img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; border-radius: inherit; }
.poster--has-image { color: transparent; }
.poster--detail { width: 108px; height: 154px; border-radius: 13px; padding: 8px; align-items: flex-end; font-size: 14px; }
.poster--thumb { width: 28px; height: 40px; border-radius: 6px; }
.poster--cinema { width: 52px; height: 74px; border-radius: 9px; flex: none; }

/* ---- Poster + RT rating chip (sits directly under the poster) ---- */
.poster-col { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: none; }
.rating-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-size: 14px; color: var(--ink);
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-pill);
  padding: 2px 9px 2px 6px; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap;
}
.rating-chip .tomato-icon { flex: none; image-rendering: pixelated; width: 1.1em; height: 1.1em; }
/* Movie-page poster (108px phone / 168px desktop) has room for a properly readable score. */
.detail-hero .rating-chip, .seo-movie-hero .rating-chip { font-size: 16px; padding: 3px 12px 3px 8px; }
@media (min-width: 901px) { .seo-movie-hero .rating-chip, .app-shell .detail-hero .rating-chip { font-size: 21px; padding: 4px 14px 4px 10px; box-shadow: 4px 4px 0 var(--ink); } }

.movie-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.movie-card__title-row { display: flex; align-items: flex-start; gap: 6px; }
/* Titles wrap instead of being cut with "..." (Ronnie: nothing may look cut off). */
.movie-card__title { font-family: var(--font-display); font-size: 26px; line-height: 1.05; flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: normal; padding-right: 8px; }
.movie-card__meta { font-size: 14px; color: var(--brown-text); font-weight: 700; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pct-tomato { color: var(--tomato); font-weight: 900; }
.pct-green { color: var(--green); font-weight: 900; }
.movie-card__chips { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; align-items: center; }
/* Home shares detail pills; columns wrap beside the poster on narrow screens. */
.movie-card__chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); align-items: stretch; gap: 10px; }
.movie-card__chips .chip-overflow { grid-column: 1 / -1; }

.chip-time {
  font-family: var(--font-display); font-size: 18px; background: var(--sand);
  border: 2.5px solid var(--ink); border-radius: var(--radius-chip); padding: 6px 12px;
  cursor: pointer; white-space: nowrap;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.chip-time:active { transform: translate(1px, 1px); }
.chip-overflow { font-family: var(--font-display); font-size: 18px; color: var(--brown-text); padding: 6px 12px; }

/* ---- Load more (pagination) ---- */
.load-more {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-btn);
  box-shadow: var(--shadow-hard); padding: 11px;
  font-family: var(--font-display); font-size: 18px; color: var(--ink);
  cursor: pointer; width: 100%; margin-top: 2px;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.load-more:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.load-more__count { color: var(--brown-text); font-weight: 700; font-family: var(--font-body); font-size: 14px; margin-left: 6px; }

/* ---- Format badge (ink pill, cream text) — used on Now-showing showtime chips ---- */
.badge-format {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .03em;
  background: var(--ink); color: var(--cream);
  border-radius: 7px; padding: 3px 10px; white-space: nowrap;
}
.chip-time-group { display: inline-flex; align-items: center; gap: 4px; }

/* ==========================================================================
   Sheet / modal overlay — trailer player, notifications empty-state
   ========================================================================== */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(42, 29, 21, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 100; padding: 0;
}
@media (min-width: 601px) {
  .sheet-overlay { align-items: center; }
}
.sheet {
  width: 100%; max-width: 430px; background: var(--cream);
  border: 3px solid var(--ink); border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 0 var(--ink);
  padding: 16px 18px 22px; max-height: 88vh; overflow-y: auto;
}
@media (min-width: 601px) {
  .sheet { border-radius: 20px; box-shadow: var(--shadow-hard); }
}
.sheet__handle {
  width: 44px; height: 5px; border-radius: 99px; background: var(--dashed-3);
  margin: 0 auto 14px;
}
.sheet__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet__title { font-family: var(--font-display); font-size: 24px; }
.sheet__close {
  width: 32px; height: 32px; border-radius: 10px; background: var(--white);
  border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none;
}

/* ---- Trailer player ---- */
.trailer-embed {
  width: 100%; aspect-ratio: 16 / 9; background: var(--ink);
  border: 3px solid var(--ink); border-radius: 13px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.trailer-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer-embed__poster {
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--cream);
  cursor: pointer; background: none; border: none; width: 100%; height: 100%; justify-content: center;
}
.trailer-embed__play {
  width: 60px; height: 60px; border-radius: 50%; background: var(--tomato);
  border: 3px solid var(--cream); display: flex; align-items: center; justify-content: center;
}
.trailer-controls { display: flex; gap: 12px; margin-top: 16px; }
@media (min-width: 901px) { .trailer-controls { gap: 16px; } }
.trailer-controls .btn-action { font-size: 16px; padding: 9px; }
.trailer-controls .btn-action svg { flex: none; }

.notif-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px 6px; gap: 8px; }
.notif-empty svg { color: var(--muted); }
.notif-empty__title { font-family: var(--font-display); font-size: 20px; }
.notif-empty__body { font-size: 14px; font-weight: 700; color: var(--brown-text); max-width: 240px; }
.notif-list { display: flex; flex-direction: column; gap: 12px; }

/* ---- Saved tab (screen: filtered Your cinemas + Shortlisted movies) ---- */
.saved-section { padding: 0 20px 16px; flex: none; }
.saved-section__title { font-family: var(--font-display); font-size: 22px; margin: 0 0 10px; }
.saved-section + .saved-section { padding-top: 2px; }
.saved-cinema-grid { display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================================
   Screen 2 — Search
   ========================================================================== */
.search-bar-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px 12px; flex: none; }
.search-input-wrap {
  display: flex; align-items: center; gap: 10px; flex: 1;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-btn);
  box-shadow: var(--shadow-hard-focus); padding: 12px 14px;
}
.search-input-wrap input {
  border: none; outline: none; background: none; font-family: var(--font-body);
  /* 16px: iOS Safari zooms the whole page on focus of anything smaller */
  font-size: 16px; font-weight: 800; color: var(--ink); flex: 1; min-width: 0;
  padding: 0;
}
.seo-format-select select { font-size: 16px; }
.search-input-wrap input::placeholder { color: var(--muted); font-weight: 700; }
.search-cancel {
  font-family: var(--font-display); font-size: 20px; color: var(--tomato);
  background: none; border: none; cursor: pointer; white-space: nowrap; padding: 0;
}

.search-results { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; overflow-y: auto; }
.result-group { display: flex; flex-direction: column; gap: 7px; }
.result-group__label { font-family: var(--font-display); font-size: 17px; color: var(--brown-text); letter-spacing: .04em; }
.result-row {
  display: flex; align-items: center; gap: 11px; background: var(--white);
  border: 3px solid var(--ink); border-radius: 14px; padding: 10px 13px;
  cursor: pointer; text-align: left; width: 100%;
}
.result-row__icon-pin svg { flex: none; }
.result-row__text { display: flex; flex-direction: column; min-width: 0; }
.result-row__title { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-row__title mark { background: var(--highlight); color: inherit; padding: 0; }
.result-row__sub { font-size: 14px; color: var(--brown-text); font-weight: 700; }
.result-row__count { margin-left: auto; font-family: var(--font-display); font-size: 17px; color: var(--brown-text); flex: none; white-space: nowrap; }
.result-row__logo { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--gold); border: 2.5px solid var(--ink); }
.result-row__heart {
  margin-left: auto; flex: none; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; margin-right: -8px;
}

.location-fallback {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--sand); border: 3px dashed var(--dashed-1); border-radius: 14px; padding: 10px;
  font-family: var(--font-display); font-size: 18px; color: var(--brown-text); white-space: nowrap;
  cursor: pointer; width: 100%; margin: 0 0 14px;
}

.search-footer {
  padding: 14px 20px 18px; border-top: 3px solid var(--ink); background: var(--sand-deep);
  display: flex; flex-direction: column; gap: 6px; flex: none;
}
.search-footer__label { font-family: var(--font-display); font-size: 17px; color: var(--brown-text); }
.recent-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.recent-chip {
  background: var(--white); border: 2.5px solid var(--ink); border-radius: var(--radius-pill);
  padding: 4px 11px; font-size: 14px; font-weight: 800; white-space: nowrap;
  cursor: pointer;
}
.search-empty { text-align: center; padding: 40px 12px; color: var(--brown-text); font-weight: 700; font-size: 14px; }

/* ==========================================================================
   Screen 3 — Cinemas nearby
   ========================================================================== */
.cinemas-title { padding: 8px 20px 10px; flex: none; }
.cinemas-title h1 { font-family: var(--font-display); font-size: 34px; margin: 0; font-weight: 400; }
.cinema-search-row { padding: 0 20px 12px; flex: none; }
.cinema-search-row .search-input-wrap { box-shadow: var(--shadow-hard); padding: 10px 14px; }
.filter-row { display: flex; align-items: center; gap: 10px; padding: 0 20px 12px; flex: none; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  display: flex; align-items: center; gap: 6px; background: var(--white);
  border: 3px solid var(--ink); border-radius: var(--radius-pill); padding: 5px 12px;
  font-size: 14px; font-weight: 800; white-space: nowrap; flex: none; cursor: pointer;
}
.filter-chip--active { background: var(--gold); }
.filter-chip svg { flex: none; }

.cinema-card {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard); padding: 12px 13px;
}
.cinema-card__top { display: flex; align-items: flex-start; gap: 10px; }
.cinema-card__logo { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--gold); border: 3px solid var(--ink); }
.cinema-card__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cinema-card__name { font-size: 15px; font-weight: 900; }
.cinema-card__addr { font-size: 14px; color: var(--brown-text); font-weight: 700; margin-top: 2px; }
.heart-btn {
  width: 34px; height: 34px; flex: none; border-radius: 11px; border: 3px solid var(--ink);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .08s ease-out;
}
.heart-btn--saved { background: var(--heart-tint); }
.heart-btn svg { transition: transform .18s ease-out; }
.heart-btn.heart-pop svg { animation: heart-pop 180ms ease-out; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.cinema-card__meta-row { display: flex; align-items: center; gap: 7px; margin-top: 10px; flex-wrap: wrap; }
.pill-distance {
  font-family: var(--font-display); font-size: 19px; background: var(--sand);
  border: 2.5px solid var(--ink); border-radius: 8px; padding: 1px 8px; white-space: nowrap; flex: none;
}
.pill-format {
  font-family: var(--font-display); font-size: 17px; background: var(--ink); color: var(--cream);
  border-radius: 8px; padding: 2px 8px; white-space: nowrap; flex: none;
}
.pill-format--outline {
  background: var(--sand); color: var(--brown-text); border: 2.5px solid var(--ink);
}
.cinema-card__count { margin-left: auto; font-size: 14px; font-weight: 800; color: var(--brown-text); white-space: nowrap; }

.cinema-card__showtimes {
  display: flex; gap: 10px; margin-top: 12px; padding: 12px 0 8px; border-top: 2.5px dashed var(--dashed-3);
  flex-wrap: wrap; align-items: center;
}

/* ==========================================================================
   Screen 4 — Movie detail
   ========================================================================== */
.detail-nav { display: flex; align-items: center; gap: 10px; padding: 8px 18px 10px; flex: none; }
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius-icon-btn); background: var(--white);
  border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.icon-btn:active { transform: translate(1px, 1px); }
.detail-nav__right { margin-left: auto; display: flex; gap: 8px; }

.detail-hero { display: flex; align-items: flex-start; gap: 16px; padding: 24px 20px 16px; flex: none; }
.detail-hero__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.detail-hero__title-row { display: flex; align-items: center; gap: 6px; }
.detail-hero__title { font-family: var(--font-display); font-size: 36px; line-height: .95; }
/* One favourite/shortlist toggle, right beside the title it belongs to -
   used to be duplicated across a nav-bar icon AND a whole "SHORTLIST"
   button below (Ronnie, 26 Sep 2026). Also reused on the static cinema
   page beside the cinema name (seo.js hydrates it from localStorage). */
.heart-toggle-btn {
  flex: none; border: none; background: none; padding: 4px; margin: -4px 4px -4px -4px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.heart-toggle-btn__filled { display: none; }
.heart-toggle-btn--saved .heart-toggle-btn__outline { display: none; }
.heart-toggle-btn--saved .heart-toggle-btn__filled { display: block; }
.detail-hero__badges { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.detail-hero__genre { font-size: 14px; font-weight: 800; color: var(--brown-text); }
.detail-hero__score { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.detail-hero__score-num { font-family: var(--font-display); font-size: 24px; color: var(--tomato); }
.score-track {
  flex: 1; height: 9px; background: #F0E1C4; border: 2.5px solid var(--ink);
  border-radius: var(--radius-pill); overflow: hidden;
}
.score-fill { display: block; height: 100%; background: var(--tomato); }
.detail-hero__synopsis { font-size: 14px; line-height: 1.5; color: var(--brown-body); font-weight: 600; margin-top: 9px; }

.action-pair { display: flex; gap: 12px; padding: 0 20px 16px; flex: none; }
.btn-action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-hard);
  padding: 11px; font-family: var(--font-display); font-size: 22px; cursor: pointer;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.btn-action:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.btn-action--primary { background: var(--tomato); color: var(--white); }
.btn-action--secondary { background: var(--white); color: var(--ink); }
.btn-action--secondary.is-active { background: var(--heart-tint); }
.btn-action--secondary.is-active svg { fill: var(--tomato); }

.date-strip { display: flex; gap: 10px; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: none; flex: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-cell {
  flex: none; width: 64px; text-align: center; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-tab); padding: 7px 0; font-family: var(--font-display); font-size: 17px;
  line-height: 1.15; cursor: pointer;
}
.date-cell--active { background: var(--tomato); color: var(--white); }
.date-cell--dim { color: var(--brown-text); }

/* ---- Sort control: sits beside the date strip, opens the sort bottom sheet ---- */
.date-sort-row { display: flex; align-items: center; gap: 10px; padding: 0 20px 12px; flex: none; }
.date-sort-row .date-strip--inline { padding: 0; flex: 1; min-width: 0; }
.date-sort-row__label {
  flex: 1; font-family: var(--font-display); font-size: 17px; color: var(--brown-text); letter-spacing: .03em;
}
.sort-btn {
  flex: none; width: 40px; height: 40px; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-tab); box-shadow: var(--shadow-hard);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.sort-btn:active { transform: translate(2px, 2px); box-shadow: var(--shadow-hard-pressed); }
.sort-btn--active { background: var(--heart-tint); }

.sort-options { display: flex; flex-direction: column; gap: 8px; }
.sort-option { cursor: pointer; }
.sort-option--active { background: var(--heart-tint); border-color: var(--tomato); }
.sort-option__check { margin-left: auto; flex: none; color: var(--tomato); }
.sort-option--disabled { opacity: .5; cursor: not-allowed; }
.sort-option--disabled .result-row__sub { color: var(--tomato); }

.detail-body { flex: 1; overflow-y: auto; padding: 0 20px 20px; display: flex; flex-direction: column; gap: 11px; }
.showtime-card {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard); padding: 12px 13px;
}
.showtime-card__top { display: flex; align-items: center; gap: 9px; }
.showtime-card__name { font-size: 14.5px; font-weight: 900; color: inherit; text-decoration: none; }
.showtime-card__name:hover { color: #C8392E; }
.showtime-card__formats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.showtime-card__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.showtime-cell {
  min-width: 0; width: 100%; overflow-wrap: anywhere;
  display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--sand);
  border: 2.5px solid var(--ink); border-radius: 11px; padding: 8px 6px;
  cursor: pointer; text-align: center; transition: transform .08s ease-out;
}
.showtime-cell:active { transform: translate(1px, 1px); }
.showtime-cell__date {
  font-family: var(--font-display); font-size: 14px; letter-spacing: .02em;
  background: var(--ink); color: var(--cream); border-radius: 6px; padding: 1px 6px; margin-bottom: 2px;
}
.showtime-cell__time { font-family: var(--font-display); font-size: 22px; }
.showtime-cell__label { font-size: 14px; font-weight: 800; color: var(--brown-text); }
/* No real per-showtime time exists (source gives a booking link only) - a
   single centred CTA line instead of the usual time+label stack. */
.showtime-cell--link { justify-content: center; grid-column: span 2; }
.showtime-cell--link .showtime-cell__label { white-space: nowrap; }
.showtime-cell--link .showtime-cell__label { font-size: 14px; color: var(--tomato); }

.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 24px; gap: 12px; color: var(--brown-text);
}
/* Was 120px — read as noticeably small next to the coming-soon mascot (132px)
   and the about-page mascot (much larger). Bumped to a real, clearly-bigger
   size; this governs every empty-state sprite (no-food, noshowtimes-sad). */
.empty-state img { width: 176px; height: auto; }
.empty-state__title { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.empty-state__body { font-size: 14px; font-weight: 700; max-width: 260px; }

/* ==========================================================================
   Simple content pages — Events / Promotion / Giveaway / About
   ========================================================================== */
.simple-page { display: flex; flex-direction: column; flex: 1; }
.simple-page__nav { display: flex; align-items: center; gap: 10px; padding: 8px 18px 6px; flex: none; }
.simple-page__title { font-family: var(--font-display); font-size: 34px; padding: 6px 20px 4px; margin: 0; flex: none; }
.simple-page__sub { font-size: 14px; color: var(--brown-text); font-weight: 700; padding: 0 20px 14px; margin: 0; flex: none; }
.simple-page__body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; display: flex; flex-direction: column; gap: 12px; }

/* ---- Show Types tabs (5 tabs, horizontally scrollable — same sticker
   tab look as the Home what's-on/cinemas tabs, but scoped narrower since
   there are 5 instead of 2) ---- */
.show-types-tabs {
  display: flex; gap: 8px; padding: 2px 20px 14px; flex: none;
  overflow-x: auto; scrollbar-width: none;
}
.show-types-tabs::-webkit-scrollbar { display: none; }
.show-types-tab {
  flex: none; text-align: center; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-tab); padding: 8px 16px; font-family: var(--font-display); font-size: 18px;
  color: var(--brown-text); cursor: pointer; white-space: nowrap;
}
.show-types-tab--active { background: var(--ink); color: var(--cream); }

/* ---- Show Types genre row (2nd row, Ronnie 25 Sep 2026) - visually
   secondary (smaller, gold-outline) so it doesn't compete with the primary
   category row above it. Real genres from OMDb, never a hardcoded guess
   list - see allGenres() in app.js. ---- */
.show-types-tabs--genre { padding-top: 0; margin-top: -4px; }
.show-types-tab--genre {
  border-width: 2.5px; border-radius: var(--radius-pill); padding: 6px 13px; font-size: 15px;
}
.show-types-tab--genre.show-types-tab--active { background: var(--gold); color: var(--ink); border-color: var(--ink); }

/* ---- Poster grid (Movies tab / "all in clickable posters, with the name
   etc below") — clickable poster tiles, title underneath, same tap-to-open
   behaviour and poster fallback as every movie-card elsewhere. ---- */
.poster-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.poster-grid__item {
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  text-align: left; width: 100%; background: none; border: none; padding: 0;
}
.poster-grid__item .poster--grid {
  width: 100%; height: 0; padding-bottom: 142%; border-radius: 13px;
  box-shadow: var(--shadow-hard-pressed);
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
/* Same fix as .movie-card .poster-col below - .poster-col's flex:none
   shrink-to-fits instead of matching the 100% width above, for any rated
   movie (most of them). */
.poster-grid__item .poster-col { width: 100%; }
.poster-grid__item:active .poster--grid { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.poster-grid__title {
  font-family: var(--font-display); font-size: 18px; line-height: 1.05; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Festival grid (Events hub) — same 2-col/tap-to-open shape as the
   poster grid above, but SQUARE tiles: these are collection/brand tiles
   (a festival), not one film's portrait poster. A source with no usable
   image (SFS) falls back to a solid ink plate with its name, same spirit
   as posterBlock()'s own placeholder. ---- */
.festival-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.festival-tile { position: relative; }
.on-now-pill { position: absolute; top: 9px; left: 9px; z-index: 2; background: var(--gold); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 10px; font-family: var(--font-display); font-size: 14px; line-height: 1.2; }
.festival-tile {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink);
}
.festival-tile__art {
  width: 100%; height: 0; padding-bottom: 100%; border-radius: 13px;
  border: 3px solid var(--ink); box-shadow: var(--shadow-hard-pressed);
  background: var(--white); position: relative; overflow: hidden;
  transition: transform .08s ease-out, box-shadow .08s ease-out;
}
.festival-tile:active .festival-tile__art { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.festival-tile__art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.festival-tile__art--plate {
  background: var(--ink); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.festival-tile__art--plate span {
  font-family: var(--font-display); font-size: 20px; line-height: 1.1; color: var(--cream); text-align: center;
}
.festival-tile__name {
  font-family: var(--font-display); font-size: 18px; line-height: 1.05;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Event section (e.g. Singapore Film Society) — a named source of
   flagged screenings, its own poster-grid + a link out to the source's
   own booking site. ---- */
.event-section { display: flex; flex-direction: column; gap: 10px; }
.event-section__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-section__head .badge-sfs { font-size: 15px; }
.event-section__link {
  margin-left: auto; font-family: var(--font-display); font-size: 15px;
  color: var(--tomato); white-space: nowrap;
}
.event-section__sub { font-size: 14px; color: var(--brown-text); font-weight: 700; line-height: 1.4; margin: 0; }

/* ---- Festival full-schedule (own-hosted, not a link-out) - same movie-
   card + showtime-cell shape as everywhere else in the app, not a plain
   text list. ---- */
.schedule-day { margin-top: 16px; }
.schedule-day__heading { font-family: var(--font-display); font-size: 20px; margin: 0 0 6px; }
.schedule-card {
  display: flex; align-items: center; gap: 10px; background: var(--white);
  border: 3px solid var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard-sm); padding: 9px; margin-bottom: 9px;
}
.schedule-card__poster-link { flex: none; }
.schedule-card__poster { width: 48px; height: 68px; border-radius: 9px; }
.schedule-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.schedule-card__title { font-weight: 800; font-size: 14px; }
/* Standardized pill (same treatment as .pill-format--outline elsewhere -
   Ronnie, 25 Sep 2026: "did you have a standardized pill") instead of plain
   text, so hall/venue reads consistently with every other meta chip. */
.schedule-card__venue {
  display: inline-block; align-self: flex-start; font-family: var(--font-display); font-size: 14px;
  background: var(--sand); color: var(--brown-text); border: 2px solid var(--ink);
  border-radius: 7px; padding: 1px 7px; white-space: nowrap;
}
.schedule-card__time {
  flex: none; font-family: var(--font-display); font-size: 16px; cursor: pointer;
  background: var(--sand); border: 2.5px solid var(--ink); border-radius: 10px; padding: 6px 11px;
}
.schedule-card__time:active { transform: translate(1px, 1px); }

/* Shared "this listing is Singapore Film Society, not a normal walk-up
   booking" flag — same gold-pill treatment wherever an SFS screening
   surfaces (Events section header, a cinema card, a showtime card). */
.badge-sfs {
  font-family: var(--font-display); font-size: 14px; letter-spacing: .03em;
  background: var(--gold); border: 2.5px solid var(--ink); border-radius: 8px;
  padding: 2px 9px; display: inline-block; white-space: nowrap;
}

/* ---- Events list (reuses movie-card layout for consistency) ---- */
.event-card {
  display: flex; gap: 12px; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-hard); padding: 12px;
}
.event-card__badge {
  font-family: var(--font-display); font-size: 14px; letter-spacing: .03em;
  background: var(--gold); border: 2.5px solid var(--ink); border-radius: 99px;
  padding: 2px 9px; display: inline-block; margin-bottom: 6px; align-self: flex-start;
}
.event-card__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.event-card__title { font-family: var(--font-display); font-size: 22px; line-height: 1.05; }
.event-card__meta { font-size: 14px; color: var(--brown-text); font-weight: 700; margin-top: 5px; }

/* ---- Coming-soon placeholder (Promotion / Giveaway) ---- */
.coming-soon {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding: 30px 20px 20px;
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
}
.coming-soon img { width: 132px; height: auto; }
.coming-soon__eyebrow {
  font-family: var(--font-display); font-size: 17px; color: var(--tomato); letter-spacing: .04em;
}
.coming-soon__title { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.coming-soon__body { font-size: 14px; font-weight: 700; color: var(--brown-body); max-width: 280px; line-height: 1.5; }
.coming-soon__badge {
  font-family: var(--font-display); font-size: 16px; background: var(--sand);
  border: 2.5px dashed var(--dashed-1); border-radius: 99px; padding: 5px 16px; color: var(--brown-text);
}

/* ---- Promotion hub — real GV + Shaw deals (feed.promotions). Two labelled
   sections (GV / Shaw), each a grid of cards: image, title, caption
   (GV only), a CTA out to the chain's own promotions/details page. Same
   card shape as .event-card / .festival-tile, just with a landscape image
   (promo banners, not movie posters) and an explicit CTA button. ---- */
.promo-section { display: flex; flex-direction: column; gap: 10px; }
.promo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.promo-card {
  display: flex; flex-direction: column; background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-hard); overflow: hidden;
}
.promo-card__image {
  width: 100%; height: 0; padding-bottom: 62%; position: relative; background: var(--sand);
  border-bottom: 3px solid var(--ink);
}
.promo-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-card__image--plate { display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 10px; }
.promo-card__image--plate span {
  font-family: var(--font-display); font-size: 15px; color: var(--cream); text-align: center;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.promo-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.promo-card__title {
  font-family: var(--font-display); font-size: 17px; line-height: 1.1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.promo-card__caption {
  font-size: 14px; font-weight: 600; color: var(--brown-body); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.promo-card__cta {
  align-self: flex-start; margin-top: auto; font-family: var(--font-display); font-size: 14px;
  background: var(--sand); color: var(--ink); border: 2.5px solid var(--ink); border-radius: var(--radius-pill);
  padding: 5px 13px; text-decoration: none; white-space: nowrap;
}
.promo-card__cta:active { transform: translate(1px, 1px); }

/* ---- Giveaway cards (reuse .promo-card; art tile when the post has no image) ---- */
.promo-card__image.giveaway-card__art { padding-bottom: 78%; } /* art is ~1.3:1, so the poster stays readable */
.giveaway-card__art img { object-fit: contain; padding: 4px; }
.giveaway-card__badge { align-self: flex-start; }
.giveaway-card__when { color: var(--ink); font-weight: 700; }
.promo-grid .promo-card__caption { overflow-wrap: anywhere; }

/* ---- About page ---- */
.about-page__hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 16px; padding: 10px 8px 20px;
}
.about-page__mascot { width: 100%; height: auto; display: block; border: 3px solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-hard); }
.about-page__eyebrow { font-family: var(--font-display); font-size: 18px; color: var(--tomato); letter-spacing: .04em; }
.about-page__title { font-family: var(--font-display); font-size: 36px; line-height: .95; }
.about-page__copy {
  background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px;
}
.about-page__copy p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--brown-body); font-weight: 600; }
.about-page__signoff { font-family: var(--font-display); font-size: 20px; color: var(--tomato); text-align: center; margin-top: 4px; }

/* ==========================================================================
   Brand filter — multi-select chip toggles (GV / Shaw / Eagle Wings)
   ========================================================================== */
.brand-filter-row { display: flex; align-items: center; gap: 10px; padding: 0 20px 12px; flex-wrap: wrap; flex: none; }
.brand-filter-row__label { font-size: 14px; font-weight: 800; color: var(--brown-text); margin-right: 2px; white-space: nowrap; }
.brand-chip {
  display: flex; align-items: center; gap: 5px; background: var(--white);
  border: 2.5px solid var(--ink); border-radius: var(--radius-pill); padding: 5px 12px;
  font-size: 14px; font-weight: 800; white-space: nowrap; cursor: pointer;
  transition: transform .08s ease-out, background .08s ease-out;
}
.brand-chip:active { transform: translate(1px, 1px); }
.brand-chip--active { background: var(--gold); }
.brand-chip__check { display: none; }
.brand-chip--active .brand-chip__check { display: inline-flex; }

.loading-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px; gap: 10px; color: var(--brown-text); flex: 1;
}
.loading-state__spinner {
  width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--sand);
  border-top-color: var(--tomato); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Pressed state helper for generic elements ---- */
.pressable { transition: transform .08s ease-out, box-shadow .08s ease-out; }
.pressable:active { transform: translate(2px, 2px); }

/* ---- Utility ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   29 Sep 2026 batch: one-line detail header, genre chips, runtime/end time,
   synopsis drawer, favourite hall types.
   ========================================================================== */
/* Detail pages fold back + share into the top bar: 5 buttons + wordmark must
   fit one line on a ~390px phone, so buttons/wordmark shrink a touch. */
.top-bar--detail { gap: 10px; padding: 12px 16px; }
@media (max-width: 380px) { .top-bar--detail { gap: 8px; } }
.top-bar--detail .top-bar__btn { width: 36px; height: 36px; border-radius: 11px; }
.top-bar--detail .top-bar__wordmark { font-size: 21px; min-width: 0; overflow: visible; }
.top-bar--detail .top-bar__bell-dot { top: -5px; right: -5px; width: 11px; height: 11px; }

.detail-hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.genre-chip {
  display: inline-block; font-size: 14px; font-weight: 800; color: var(--ink);
  background: var(--sand); border: 2px solid var(--ink); border-radius: var(--radius-pill);
  padding: 2px 10px; text-decoration: none;
}
.genre-chip:active { transform: translate(1px, 1px); }
.detail-hero__runtime {
  display: inline-block; font-size: 14px; font-weight: 800; color: var(--brown-text);
  border: 2px solid var(--brown-text); border-radius: var(--radius-pill); padding: 2px 10px;
}

.showtime-cell__end { letter-spacing: -0.01em; font-size: 14px; font-weight: 700; color: var(--brown-text); opacity: .85; }

.action-pair .btn-action { min-width: 0; }
.action-pair .btn-action--secondary { font-size: 22px; }

.synopsis-meta { padding: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--brown-text); }
.synopsis-body { padding: 4px 0 22px; font-size: 14.5px; line-height: 1.55; font-weight: 600; color: var(--ink); max-height: 55vh; overflow-y: auto; }
.synopsis-body p { margin: 0 0 10px; }

.hall-fav-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px 8px; }
.hall-fav {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  background: var(--white); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-hard);
  padding: 8px 12px; font-family: var(--font-display); font-size: 18px;
}
.hall-fav__heart { display: inline-flex; }

/* Wordmark is centred on the BAR, not in the leftover flex space: absolute + translate works for any button count.
   Every bar is 2 buttons a side max except share pages (menu+back | bell+share; saved heart lives in the menu there). */
.top-bar { --tb-side: 112px; }
.top-bar__wordmark {
  position: absolute; left: 50%; top: 50%; flex: none; height: auto; width: max-content;
  max-width: calc(100% - 2 * var(--tb-side));
  transform: translate(-50%, calc(-50% - 3px)); align-items: center; justify-content: center; overflow: visible;
}
.top-bar .wordmark-img, .top-bar--detail .wordmark-img { height: 56px; margin-top: 0; max-width: 100%; }
.top-bar__btn, .top-bar--detail .top-bar__btn { width: 38px; height: 38px; border-radius: 12px; }
.top-bar__spacer { width: 38px; }
.top-bar__wordmark + .top-bar__btn { margin-left: auto; }
@media (min-width: 901px) {
  .top-bar { --tb-side: 140px; }
  .app-shell .top-bar__wordmark, .seo-page .top-bar__wordmark { height: auto; }
  .app-shell .wordmark-img, .seo-page .wordmark-img, .app-shell .top-bar--detail .wordmark-img { height: 66px; margin-top: 0; }
  .app-shell .top-bar__btn, .seo-page .top-bar .top-bar__btn { width: 44px; height: 44px; }
}

/* Giveaway Current / Past tabs (13 Nov 2026) */
.giveaway-tabs { display: flex; gap: 10px; margin: 4px 0 16px; }
.giveaway-tab { font-family: var(--font-display); font-size: 16px; padding: 8px 16px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.giveaway-tab--active { background: var(--ink); color: #FFF5E1; }
.promo-grid--past .promo-card { opacity: .72; }
