/* ==========================================================================
   Film Heaven — the web face of the Android app.

   Deliberately nothing to do with css/orca-shared.css. The rest of
   orcasinformatica.co.uk is an ocean-blue B2B site; this section is a
   children's night sky, and the two sharing a stylesheet would mean every
   tweak to one risking the other. The tokens below are lifted straight from
   the app's src/theme/index.ts so the page and the product are the same
   colour, and the sky swatches from src/theme/skies.ts.
   ========================================================================== */

:root {
  /* Night-sky backdrop, top to bottom — colors.skyTop / skyMid / skyBottom. */
  --fh-sky-top: #2a1070;
  --fh-sky-mid: #3a1b8f;
  --fh-sky-bottom: #1e3fb8;

  --fh-star: #ffd23f;
  --fh-star-deep: #f5a623;
  --fh-star-glow: rgba(255, 200, 60, 0.55);

  --fh-moon: #f7f3ff;
  --fh-moon-shade: #cec8ec;

  --fh-text: #ffffff;
  --fh-text-warm: #fff3b0;
  --fh-headline: #ffe14d;
  --fh-wordmark: #ffa41b;

  --fh-muted: rgba(255, 255, 255, 0.62);
  --fh-faint: rgba(255, 255, 255, 0.38);
  --fh-line: rgba(255, 255, 255, 0.12);
  --fh-panel: rgba(255, 255, 255, 0.06);
  --fh-panel-strong: rgba(12, 6, 42, 0.55);

  --fh-good: #4ade80;
  --fh-loved: #ff5d8f;
  --fh-watchlist: #ffd23f;
  --fh-watched: #4ade80;

  /* MENU_TONES from src/components/MenuRow.tsx. */
  --fh-blue-from: #2f6bf0;
  --fh-blue-to: #1b41c4;
  --fh-blue-edge: #7fb0ff;
  --fh-violet-from: #7a3ce0;
  --fh-violet-to: #5320b4;
  --fh-violet-edge: #b58cff;
  --fh-magenta-from: #e0357e;
  --fh-magenta-to: #a51f6a;
  --fh-magenta-edge: #ff7ab8;
  --fh-indigo-from: #3f5ae8;
  --fh-indigo-to: #2333ac;
  --fh-indigo-edge: #8ea2ff;

  --fh-radius: 18px;
  --fh-radius-lg: 26px;
}

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

body.fh {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fh-text);
  background: var(--fh-sky-top);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The gradient and the stars are fixed behind everything and never scroll, so
   a long page reads as one continuous sky rather than a repeating tile. */
.fh-sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--fh-sky-top) 0%, var(--fh-sky-mid) 48%, var(--fh-sky-bottom) 100%);
}

/* Three star layers at different sizes and speeds. radial-gradient dots
   rather than hundreds of elements: the whole field costs three paints. */
.fh-stars {
  position: fixed;
  inset: -50% 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 28% 62%, #fff, transparent),
    radial-gradient(2px 2px at 44% 8%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 58% 44%, #ffe7a8, transparent),
    radial-gradient(1.7px 1.7px at 71% 76%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 83% 24%, #fff, transparent),
    radial-gradient(2.1px 2.1px at 92% 58%, #ffd8f2, transparent),
    radial-gradient(1.2px 1.2px at 6% 84%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 36% 92%, #c77dff, transparent),
    radial-gradient(1.3px 1.3px at 64% 14%, #fff, transparent);
  background-size: 620px 620px;
  opacity: 0.7;
  animation: fh-twinkle 7s ease-in-out infinite alternate, fh-drift 200s linear infinite;
}

.fh-stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 55% 70%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 78% 40%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 40% 55%, rgba(199, 125, 255, 0.8), transparent);
  background-size: 340px 340px;
  animation: fh-twinkle 4.5s ease-in-out infinite alternate-reverse;
}

@keyframes fh-twinkle {
  from { opacity: 0.32; }
  to { opacity: 0.85; }
}

@keyframes fh-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-620px, 0, 0); }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.fh-navbar {
  padding: 0.85rem 0;
  background: rgba(20, 9, 62, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fh-line);
  transition: background 0.25s ease, padding 0.25s ease;
}

.fh-navbar.is-scrolled {
  padding: 0.5rem 0;
  background: rgba(14, 6, 46, 0.92);
}

.fh-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--fh-text);
  letter-spacing: 0.2px;
}

.fh-navbar .navbar-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 0 18px rgba(255, 210, 63, 0.35);
}

.fh-navbar .navbar-brand span {
  font-size: 1.05rem;
}

.fh-navbar .navbar-brand span b {
  color: var(--fh-wordmark);
  font-weight: 800;
}

.fh-navbar .nav-link {
  color: var(--fh-muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  transition: color 0.2s ease;
}

.fh-navbar .nav-link:hover,
.fh-navbar .nav-link.active {
  color: var(--fh-star);
}

.fh-navbar .navbar-toggler {
  border-color: var(--fh-line);
}

.fh-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.fh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.fh-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.fh-btn-star {
  background: linear-gradient(180deg, var(--fh-star) 0%, var(--fh-star-deep) 100%);
  border-color: #ffe89a;
  color: #2a1070;
  box-shadow: 0 10px 30px rgba(255, 190, 40, 0.32);
}

.fh-btn-star:hover {
  color: #2a1070;
  box-shadow: 0 16px 38px rgba(255, 190, 40, 0.45);
}

.fh-btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--fh-text);
}

.fh-btn-ghost:hover {
  color: var(--fh-text);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.4);
}

.fh-btn-violet {
  background: linear-gradient(180deg, var(--fh-violet-from) 0%, var(--fh-violet-to) 100%);
  border-color: var(--fh-violet-edge);
  color: #fff;
  box-shadow: 0 10px 30px rgba(122, 60, 224, 0.35);
}

.fh-btn-violet:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.fh-section {
  padding: 92px 0;
  position: relative;
}

.fh-section-tight { padding: 64px 0; }

.fh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 210, 63, 0.12);
  border: 1px solid rgba(255, 210, 63, 0.32);
  color: var(--fh-star);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.fh-title {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fh-text);
  margin: 1rem 0 0.85rem;
}

.fh-title em {
  font-style: normal;
  color: var(--fh-headline);
}

.fh-lead {
  color: var(--fh-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.fh-hero {
  padding: 190px 0 96px;
  position: relative;
  overflow: hidden;
}

.fh-hero-mark {
  width: clamp(150px, 26vw, 232px);
  /* The <img> carries width/height attributes so the browser reserves the right
     box before the file arrives; without `height: auto` the 512px attribute
     wins over the CSS width and the square mark renders as a tall rectangle. */
  height: auto;
  border-radius: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(255, 210, 63, 0.22);
  animation: fh-float 6s ease-in-out infinite;
}

@keyframes fh-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-1.4deg); }
}

.fh-hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.fh-hero h1 .fh-wordmark {
  background: linear-gradient(180deg, #ffe14d 0%, var(--fh-wordmark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 164, 27, 0.35));
}

.fh-hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  max-width: 34rem;
}

.fh-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin-top: 2.6rem;
}

.fh-stat b {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--fh-star);
  line-height: 1;
}

.fh-stat span {
  font-size: 0.85rem;
  color: var(--fh-faint);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Clouds drifting behind the hero — the app draws them too. */
.fh-cloud {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 40%, rgba(61, 139, 245, 0.5), rgba(31, 95, 208, 0));
  filter: blur(28px);
  pointer-events: none;
  z-index: -1;
}

.fh-cloud-a { width: 420px; height: 220px; top: 14%; left: -8%; animation: fh-cloud-move 46s linear infinite; }
.fh-cloud-b { width: 320px; height: 180px; top: 58%; right: -6%; animation: fh-cloud-move 62s linear infinite reverse; }
.fh-cloud-c { width: 260px; height: 150px; top: 34%; left: 52%; opacity: 0.6; animation: fh-cloud-move 78s linear infinite; }

@keyframes fh-cloud-move {
  from { transform: translateX(-90px); }
  to { transform: translateX(90px); }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.fh-card {
  height: 100%;
  padding: 1.7rem;
  border-radius: var(--fh-radius-lg);
  background: var(--fh-panel);
  border: 1px solid var(--fh-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.fh-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 210, 63, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.fh-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.fh-card p {
  color: var(--fh-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.fh-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.tone-blue .fh-card-icon { background: linear-gradient(180deg, var(--fh-blue-from), var(--fh-blue-to)); border-color: var(--fh-blue-edge); }
.tone-violet .fh-card-icon { background: linear-gradient(180deg, var(--fh-violet-from), var(--fh-violet-to)); border-color: var(--fh-violet-edge); }
.tone-magenta .fh-card-icon { background: linear-gradient(180deg, var(--fh-magenta-from), var(--fh-magenta-to)); border-color: var(--fh-magenta-edge); }
.tone-indigo .fh-card-icon { background: linear-gradient(180deg, var(--fh-indigo-from), var(--fh-indigo-to)); border-color: var(--fh-indigo-edge); }

/* --------------------------------------------------------------------------
   Games
   -------------------------------------------------------------------------- */

.fh-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2rem 0 2.6rem;
}

.fh-chip {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fh-muted);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.fh-chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.42); }

.fh-chip.is-active {
  background: linear-gradient(180deg, var(--fh-star) 0%, var(--fh-star-deep) 100%);
  border-color: #ffe89a;
  color: #2a1070;
}

.fh-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 1.1rem;
}

.fh-game {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--fh-radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--fh-panel-strong);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* The tone shows as a lit edge down the left rather than a filled tile: two
   dozen saturated rectangles side by side is a colour chart, not a list. */
.fh-game::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--tone-from), var(--tone-to));
}

.fh-game::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(420px circle at 0% 0%, var(--tone-glow), transparent 70%);
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.fh-game:hover {
  transform: translateY(-5px);
  border-color: var(--tone-edge);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.fh-game:hover::after { opacity: 0.5; }

.fh-game.is-hidden { display: none; }

.fh-game-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  position: relative;
}

.fh-game-emoji {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(180deg, var(--tone-from), var(--tone-to));
  border: 1px solid var(--tone-edge);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fh-game:hover .fh-game-emoji { transform: rotate(-8deg) scale(1.09); }

.fh-game-name {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}

.fh-game-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffe6a3;
}

.fh-game-blurb {
  position: relative;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-style: italic;
  margin: 0 0 0.55rem;
}

.fh-game-desc {
  position: relative;
  color: var(--fh-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Skies, tunes, awards
   -------------------------------------------------------------------------- */

.fh-skies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  gap: 1rem;
}

.fh-sky-card {
  border-radius: var(--fh-radius);
  padding: 1.2rem 1.1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fh-sky-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.45);
}

.fh-sky-card .fh-sky-emoji {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0.9;
}

.fh-sky-card b {
  font-size: 1rem;
  font-weight: 800;
  display: block;
}

.fh-sky-card span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.fh-sky-card i {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  animation: fh-twinkle 3.4s ease-in-out infinite alternate;
}

.fh-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.7rem;
}

.fh-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fh-line);
  transition: background 0.2s ease, transform 0.2s ease;
}

.fh-row:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.fh-row .fh-row-emoji { font-size: 1.3rem; }
.fh-row b { display: block; font-size: 0.94rem; font-weight: 800; }
.fh-row span { font-size: 0.81rem; color: var(--fh-muted); line-height: 1.45; }

.fh-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.9rem;
}

.fh-badge {
  text-align: center;
  padding: 1.3rem 0.9rem;
  border-radius: var(--fh-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fh-line);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.fh-badge:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 210, 63, 0.5);
  background: rgba(255, 210, 63, 0.08);
}

.fh-badge .fh-badge-medal {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: radial-gradient(circle at 34% 30%, #fff0b8, var(--fh-star) 48%, var(--fh-star-deep));
  box-shadow: 0 0 26px var(--fh-star-glow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fh-badge:hover .fh-badge-medal { transform: scale(1.1) rotate(-6deg); }
.fh-badge b { display: block; font-size: 0.95rem; font-weight: 800; margin-bottom: 0.25rem; }
.fh-badge span { font-size: 0.8rem; color: var(--fh-muted); line-height: 1.5; }

/* Film marks — loved / watch-later / watched. */
.fh-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  border: 1px solid currentColor;
}

.fh-mark-loved { color: var(--fh-loved); background: rgba(255, 93, 143, 0.12); }
.fh-mark-watchlist { color: var(--fh-watchlist); background: rgba(255, 210, 63, 0.12); }
.fh-mark-watched { color: var(--fh-watched); background: rgba(74, 222, 128, 0.12); }

/* --------------------------------------------------------------------------
   Phone mock-up
   -------------------------------------------------------------------------- */

.fh-phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(160deg, #3c2a7a, #170a3f);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.55);
}

.fh-phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #2a1070, #3a1b8f 55%, #1e3fb8);
  padding: 1.2rem 1rem 0.5rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.fh-phone-title { font-size: 0.95rem; font-weight: 800; color: var(--fh-headline); }
.fh-phone-sub { font-size: 0.72rem; color: var(--fh-muted); margin-bottom: 0.9rem; }

.fh-phone-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.76rem;
  color: var(--fh-faint);
  margin-bottom: 0.85rem;
}

.fh-phone-chips { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 0.9rem; }

.fh-phone-chip {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fh-muted);
}

.fh-phone-chip.on {
  background: var(--fh-star);
  border-color: var(--fh-star);
  color: #2a1070;
}

.fh-posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }

.fh-poster {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  position: relative;
  overflow: hidden;
}

/* A slow sheen across the placeholder posters, so the mock-up reads as a
   screen that is doing something rather than a flat drawing. */
.fh-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.24) 50%, transparent 62%);
  transform: translateX(-100%);
  animation: fh-sheen 3.6s ease-in-out infinite;
}

.fh-poster:nth-child(2)::after { animation-delay: 0.3s; }
.fh-poster:nth-child(3)::after { animation-delay: 0.6s; }
.fh-poster:nth-child(4)::after { animation-delay: 0.9s; }
.fh-poster:nth-child(5)::after { animation-delay: 1.2s; }
.fh-poster:nth-child(6)::after { animation-delay: 1.5s; }

@keyframes fh-sheen {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

.fh-phone-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  padding: 0.7rem 0 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--fh-faint);
  text-align: center;
}

.fh-phone-tabs .on { color: var(--fh-star); }
.fh-phone-tabs i { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; font-style: normal; }

/* --------------------------------------------------------------------------
   Forms — Contact Us structure, Film Heaven paint
   -------------------------------------------------------------------------- */

.fh-form .form-control {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.fh-form .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--fh-star);
  box-shadow: 0 0 0 0.22rem rgba(255, 210, 63, 0.2);
  color: #fff;
}

.fh-form .form-control::placeholder { color: transparent; }

.fh-form .form-floating > label { color: rgba(255, 255, 255, 0.6); padding: 1rem 1.1rem; }

.fh-form .form-floating > .form-control:focus ~ label,
.fh-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--fh-star);
  opacity: 1;
}

/* Bootstrap paints a white pill behind a floated label; on a dark field that
   is a white bar across the border. Kill it. */
.fh-form .form-floating > label::after { background: transparent !important; }

/* A select is `.form-select`, not `.form-control`: Bootstrap only floats a
   floating-label over a select when the select carries that class, and with
   `.form-control` the label would sit on top of the chosen option. */
.fh-form .form-select {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #fff;
  padding: 1rem 1.1rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffd23f'%3e%3cpath d='M8 11L3 6h10z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 14px;
}

.fh-form .form-select:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--fh-star);
  box-shadow: 0 0 0 0.22rem rgba(255, 210, 63, 0.2);
  color: #fff;
}

/* The dropdown list itself is painted by the OS, which does not inherit any of
   the above — white text on a white sheet without these two. */
.fh-form .form-select option { background: #2a1070; color: #fff; }

.fh-form .form-floating > .form-select ~ label { color: var(--fh-star); opacity: 1; }

.fh-form .form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}

.fh-form .form-check-input:checked {
  background-color: var(--fh-star);
  border-color: var(--fh-star);
}

.fh-form .form-check-label { color: var(--fh-muted); font-size: 0.92rem; line-height: 1.6; }

.fh-alert {
  border-radius: 14px;
  border: 1px solid;
  padding: 0.9rem 1.1rem;
  font-size: 0.93rem;
  font-weight: 700;
}

.fh-alert-good { color: var(--fh-good); border-color: rgba(74, 222, 128, 0.5); background: rgba(74, 222, 128, 0.12); }
.fh-alert-warn { color: #ffd23f; border-color: rgba(255, 210, 63, 0.5); background: rgba(255, 210, 63, 0.12); }

.fh-info-card {
  padding: 1.8rem;
  border-radius: var(--fh-radius-lg);
  background: var(--fh-panel);
  border: 1px solid var(--fh-line);
}

.fh-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.fh-info-item i {
  color: var(--fh-star);
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

.fh-info-item h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 0.15rem; }
.fh-info-item p, .fh-info-item a { color: var(--fh-muted); font-size: 0.92rem; margin: 0; }
.fh-info-item a { color: var(--fh-star); text-decoration: none; }
.fh-info-item a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Policy pages
   -------------------------------------------------------------------------- */

.fh-policy-hero { padding: 170px 0 60px; }

.fh-toc {
  position: sticky;
  top: 100px;
  padding: 1.4rem;
  border-radius: var(--fh-radius);
  background: var(--fh-panel);
  border: 1px solid var(--fh-line);
}

.fh-toc h2 {
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fh-star);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.fh-toc a {
  display: block;
  padding: 0.36rem 0;
  color: var(--fh-muted);
  font-size: 0.9rem;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.7rem;
  transition: all 0.18s ease;
}

.fh-toc a:hover { color: var(--fh-star); border-left-color: var(--fh-star); }

.fh-policy h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fh-headline);
  margin: 2.6rem 0 1rem;
  scroll-margin-top: 110px;
}

.fh-policy h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 1.6rem 0 0.6rem;
}

.fh-policy p,
.fh-policy li {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  font-size: 1rem;
}

.fh-policy ul, .fh-policy ol { padding-left: 1.3rem; }
.fh-policy li { margin-bottom: 0.5rem; }
.fh-policy a { color: var(--fh-star); }

.fh-policy .fh-callout {
  padding: 1.3rem 1.5rem;
  border-radius: var(--fh-radius);
  background: rgba(255, 210, 63, 0.08);
  border: 1px solid rgba(255, 210, 63, 0.3);
  border-left: 4px solid var(--fh-star);
  margin: 1.6rem 0;
}

.fh-policy .fh-callout p:last-child { margin-bottom: 0; }

.fh-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.94rem;
}

.fh-table th,
.fh-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--fh-line);
  text-align: left;
  vertical-align: top;
  color: rgba(255, 255, 255, 0.75);
}

.fh-table th {
  color: var(--fh-star);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.fh-table-wrap { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.fh-step {
  display: flex;
  gap: 1.1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--fh-line);
}

.fh-step:last-child { border-bottom: none; }

.fh-step-n {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #2a1070;
  background: linear-gradient(180deg, var(--fh-star), var(--fh-star-deep));
}

.fh-step h4 { font-size: 1rem; font-weight: 800; margin-bottom: 0.3rem; }
.fh-step p { color: var(--fh-muted); font-size: 0.93rem; line-height: 1.7; margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.fh-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--fh-line);
  background: rgba(10, 4, 34, 0.55);
}

.fh-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fh-star);
  font-weight: 800;
  margin-bottom: 1rem;
}

.fh-footer a {
  display: block;
  color: var(--fh-muted);
  text-decoration: none;
  padding: 0.28rem 0;
  font-size: 0.93rem;
  transition: color 0.18s ease;
}

.fh-footer a:hover { color: var(--fh-star); }

.fh-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fh-footer-brand img { width: 44px; height: 44px; border-radius: 13px; }
.fh-footer-brand b { font-size: 1.05rem; font-weight: 800; }

.fh-footer-legal {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--fh-line);
  color: var(--fh-faint);
  font-size: 0.86rem;
  text-align: center;
}

.fh-footer-legal a { display: inline; color: var(--fh-muted); }

/* --------------------------------------------------------------------------
   Motion preferences and small screens
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
  .fh-hero { padding: 140px 0 64px; }
  .fh-section { padding: 64px 0; }
  .fh-hero-stats { gap: 1.6rem; }
  .fh-toc { position: static; margin-bottom: 2rem; }
}

/* Every animation here is decoration. Somebody who has asked the operating
   system to stop moving things gets the page with nothing moving at all. */
@media (prefers-reduced-motion: reduce) {
  .fh-stars,
  .fh-stars::after,
  .fh-hero-mark,
  .fh-cloud,
  .fh-poster::after,
  .fh-sky-card i {
    animation: none !important;
  }

  .fh-card:hover,
  .fh-game:hover,
  .fh-sky-card:hover,
  .fh-badge:hover,
  .fh-btn:hover,
  .fh-row:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Tone variables

   `.fh-game` reads --tone-* for its left edge, its emoji tile and its hover
   glow, so one class on the card colours all three. Same four ways as
   MENU_TONES in the app.
   -------------------------------------------------------------------------- */

.tone-blue {
  --tone-from: var(--fh-blue-from);
  --tone-to: var(--fh-blue-to);
  --tone-edge: var(--fh-blue-edge);
  --tone-glow: rgba(47, 107, 240, 0.3);
}

.tone-violet {
  --tone-from: var(--fh-violet-from);
  --tone-to: var(--fh-violet-to);
  --tone-edge: var(--fh-violet-edge);
  --tone-glow: rgba(122, 60, 224, 0.3);
}

.tone-magenta {
  --tone-from: var(--fh-magenta-from);
  --tone-to: var(--fh-magenta-to);
  --tone-edge: var(--fh-magenta-edge);
  --tone-glow: rgba(224, 53, 126, 0.3);
}

.tone-indigo {
  --tone-from: var(--fh-indigo-from);
  --tone-to: var(--fh-indigo-to);
  --tone-edge: var(--fh-indigo-edge);
  --tone-glow: rgba(63, 90, 232, 0.3);
}
