/* =====================================================================
   KUYA PATING · kuyapating.com
   Mobile-first. Palette and type live in :root.
   The brand as the stream scenes and the media kit use it (streaming/assets/overlays/brand.css, media kit v1.4;
   restyled 1 Nov 2026, like the landing page): navy panels and pills with an amber keyline and a cyan dot,
   Bebas Neue display, Chakra Petch caps for labels, Plus Jakarta Sans for body text, Nunito Black Italic only for
   Kuya's own lines, and Caveat only for things written by hand (the chalkboard, cardboard signs). Since 11 Nov 2026
   the sightings polaroids follow media kit v2.0: Mansalva (the kit's "Kuya's hand") for their titles, flat tape and
   flat red tags.
   ===================================================================== */

:root {
  --abyss: #0D1B2A;
  --abyss-deep: #0A1118;
  --navy: #0D1B2A;
  --sil: #141B2C;
  --board: #1D2840;
  --rim: #F2C35D;
  --veranda: #132238;
  --veranda-2: #1E293B;
  --cyan: #00E5FF;
  --cyan-2: #06B6D4;
  --kit-cyan: #1CC5DC;
  --amber: #F5A825;
  --amber-2: #D98A12;
  --gold: #FFD262;
  --cream: #EDE8DF;
  --pearl: #F8F9FA;

  --text: #F8FAFC;
  --text-2: #C7D3E0;
  --muted: #94A9BF;
  --line: rgba(148, 197, 230, .14);
  --line-2: rgba(148, 197, 230, .26);
  --capiz: #FFD88A;
  --emerald: #2EE59D;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 26px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .42);
  /* Cyan glow is reserved for bioluminescent and live things (stripes, live states, sparkles).
     Everything else that reacts to hover uses --hover-line: a warm border, no glow. */
  --glow: 0 0 0 1px rgba(0, 229, 255, .5), 0 0 26px rgba(0, 229, 255, .26);
  --hover-line: rgba(245, 158, 11, .6);
  --tap: 44px;

  --font-display: "Bebas Neue", "Bebas Neue Fallback", Impact, "Arial Narrow", sans-serif;
  --font-hud: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  /* Plus Jakarta Sans is loaded at 500–800 only (the @font-face rules below), so 800 is its boldest weight (900 is Nunito's) */
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-kuya: "Nunito", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-hand: "Caveat", "Plus Jakarta Sans", cursive;
  --font-note: "Mansalva", "Caveat", cursive;
  /* media kit v2.0's colours for taped-up notes */
  --paper: #F8F4EA;
  --tape: #D9D0BD;
  --sari-red: #C2551F;

  --header-h: 64px;
  --rail-h: 132px;
}

/* The brand fonts, served from this site: the latin subsets Google Fonts serves (all OFL), so there's no second and
   third host to connect to. Plus Jakarta Sans is one variable file for 500 to 800. */
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-400.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("../fonts/caveat-700.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-700.woff2") format("woff2"); }
@font-face { font-family: "Mansalva"; font-weight: 400; font-display: swap; src: url("../fonts/mansalva-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 900; font-display: swap; src: url("../fonts/nunito-900-italic.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-500-800.woff2") format("woff2"); }

/* Until Bebas Neue has downloaded, the display titles show in Impact, which is a third wider: "Welcome to the
   Veranda." wrapped to two lines and the whole hero jumped when the real font arrived. Sized to match Bebas, the
   stand-in wraps the same way, so nothing moves. */
@font-face { font-family: "Bebas Neue Fallback"; src: local("Impact"); size-adjust: 77%; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--abyss-deep);
  color: var(--text);
  font: 500 1rem/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; letter-spacing: .016em; line-height: 1; margin: 0; }

/* A navy pill with the scenes' amber keyline and cyan dot, Chakra Petch caps */
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 13px; border-radius: 999px;
  border: 2px solid var(--amber); background: rgba(13, 27, 42, .88);
  font: 700 .76rem/1.3 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.pill::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--kit-cyan); }
/* Kuya's own words: Nunito Black Italic, amber, with a navy outline where they sit on a picture */
.kuya-line { font-family: var(--font-kuya); font-style: italic; font-weight: 900; color: var(--amber); }
p { margin: 0 0 1em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--amber); color: var(--abyss-deep);
  padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Shared pieces ---------- */
.section { position: relative; padding: 72px 0 112px; }
.section > .wrap { position: relative; }
/* Spacing follows the content: the lore gets room to breathe, the schedule sits tighter */
.lore { padding: 96px 0 128px; }
.quarterdeck { padding: 80px 0 120px; }
.perlas { padding: 72px 0 104px; }
.tides { padding: 64px 0 96px; }

.section-head { max-width: 780px; margin-bottom: 36px; }
.section-head h2 { margin-bottom: 12px; }

/* Small label over a heading (e.g. "Kuya's flavour deck"), in the scenes' HUD caps */
.kicker { font: 700 .82rem/1.3 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }

/* Section titles: the media kit's display title (Bebas Neue caps, gold top stepping to amber, a navy keyline and
   a steel glow) */
h2 {
  font-size: clamp(2.8rem, 1.8rem + 4.2vw, 4.8rem);
  color: var(--amber);
  background: linear-gradient(180deg, #FFD262 0 40%, #FCC753 52%, #FABD43 64%, #F7B234 78%, #F5A825 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 0 0 var(--navy)) drop-shadow(-2px 0 0 var(--navy)) drop-shadow(0 2px 0 var(--navy)) drop-shadow(0 -2px 0 var(--navy)) drop-shadow(0 0 12px rgba(45, 85, 122, .9));
}

.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-2); max-width: 60ch; }

.panel {
  background: #15253B;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

.stripe { filter: drop-shadow(0 0 3px rgba(0, 229, 255, .9)); animation: stripe-pulse 3.6s ease-in-out infinite; }
@keyframes stripe-pulse { 50% { opacity: .55; } }

/* ---------- Buttons & small controls ---------- */
.btn {
  --pad: 14px 22px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: var(--pad); border-radius: 16px; border: 0;
  text-decoration: none; text-align: left; cursor: pointer; color: inherit;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
}
.btn > span { display: flex; flex-direction: column; }
.btn-main { font: 700 1.08rem/1.1 var(--font-hud); letter-spacing: .08em; text-transform: uppercase; }
.btn-sub { font: 600 .68rem/1.3 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.btn-ico { width: 22px; height: 22px; flex: none; }

.btn-amber { background: var(--amber); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy), 0 4px 0 rgba(13, 27, 42, .45); }
.btn-amber:hover { background: var(--gold); }
.btn-amber:active { transform: translateY(1px); }

.btn-ghost { background: rgba(13, 27, 42, .88); color: var(--cream); box-shadow: inset 0 0 0 2px var(--amber); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold); }

.btn-small { --pad: 10px 16px; border-radius: 13px; }
.btn-small .btn-main { font-size: 1rem; }
.btn-small .btn-ico { width: 18px; height: 18px; }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: var(--text-2); font: 800 .9rem var(--font-body);
}
.link-btn svg { width: 16px; height: 16px; }
.link-btn:hover { color: var(--capiz); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 .72rem/1 var(--font-hud); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(148, 197, 230, .1); color: var(--text-2); border: 1px solid var(--line);
}

.ink-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.ink-amber { background: #F59E0B; }
.ink-sapphire { background: #2F80ED; }
.ink-dual { background: linear-gradient(90deg, #F59E0B 50%, #2F80ED 50%); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s;
}
.site-header.is-solid {
  background: rgba(10, 17, 24, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; transition: opacity .35s, visibility .35s; }
.brand-crest { width: 44px; height: 44px; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-crest { transform: rotate(-8deg) scale(1.06); }
.brand-word { width: auto; height: 24px; }
.js .site-header:not(.is-solid) .brand { opacity: 0; visibility: hidden; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap);
  background: rgba(13, 27, 42, .88); color: var(--gold);
  border: 2px solid var(--amber); border-radius: 999px; padding: 8px 14px;
  font: 700 .82rem var(--font-hud); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto; display: none;
  background: rgba(10, 17, 24, .97); border-bottom: 1px solid var(--line);
  padding: 10px 16px 20px;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.site-nav ul a {
  display: block; padding: 12px 10px; border-radius: 10px;
  font: 700 1rem var(--font-hud); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); text-decoration: none;
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { color: var(--capiz); background: rgba(245, 158, 11, .08); }

.live-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap);
  padding: 7px 14px; border-radius: 999px; text-decoration: none;
  font: 700 .78rem/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); background: rgba(13, 27, 42, .88); border: 2px solid var(--amber);
}
.live-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #64748B; }
.live-pill[data-state="live"] { color: #04222A; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px rgba(0, 229, 255, .5); }
.live-pill[data-state="live"] .live-pill-dot { background: #04222A; animation: blink-dot 1.2s infinite; }
@keyframes blink-dot { 50% { opacity: .25; } }

@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 22px;
    background: none; border: 0; padding: 0;
  }
  .site-nav ul { display: flex; gap: 4px; margin: 0; }
  .site-nav ul a { padding: 8px 12px; font-size: .86rem; }
}

/* =====================================================================
   A. HERO · THE VERANDA THRESHOLD
   ===================================================================== */
/* The Veranda at sunset, drawn like the stream's Veranda scene (streaming/assets/overlays/veranda-bg.html) and the
   landing page: a smooth sunset sky with halftone where one tone fades into the next, the sun and its slow sunburst
   right behind Kuya, clouds lit from below, swells with amber halftone under the crests, and the deck as one dark
   silhouette lit only on its top edges. main.js draws the clouds and the sea; without it the gradients remain. */
.hero {
  --pw: min(300px, 76vw);
  --sea-h: calc(var(--rail-h) + var(--pw) * .5 + 110px);
  --kuya-cx: 50%;
  --sun-x: var(--kuya-cx);
  --sun-size: 230px;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(720px, 100svh);
  padding-top: calc(var(--header-h) + 34px);
  background: var(--abyss-deep);
}
.hero-scene { position: absolute; inset: 0; }

.sky {
  position: absolute; inset: 0 0 auto; height: calc(100% - var(--sea-h) + 1px); overflow: hidden;
  background: linear-gradient(180deg, #1E2350 0%, #232856 25%, #2C2C62 35%, #43347A 44%, #4F3A7E 51%, #67417C 60%,
    #8F4E71 69%, #AE5767 78%, #BD5E66 85%, #D07560 91%, #E8A159 95.4%, #F2C35D 98%, #F8DA8F 100%);
}
.ht { position: absolute; left: 0; right: 0; background-size: 9px 9px; }
.ht-1 { bottom: 52%; height: 96px; background-image: radial-gradient(circle, #4A377C 2.5px, transparent 3px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 85%); mask-image: linear-gradient(180deg, transparent, #000 85%); }
.ht-2 { bottom: 22%; height: 128px; background-image: radial-gradient(circle, #B25966 2.5px, transparent 3px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 85%); mask-image: linear-gradient(180deg, transparent, #000 85%); }
.ht-3 { bottom: 0; height: 92px; background-image: radial-gradient(circle, #F2C35D 2.6px, transparent 3.1px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 90%); mask-image: linear-gradient(180deg, transparent, #000 90%); }
.sun-glow {
  position: absolute; left: var(--sun-x); bottom: 0; width: min(1700px, 260vw); height: 560px;
  transform: translate(-50%, 50%); pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 204, 128, .42) 0%, rgba(245, 150, 90, .16) 40%, transparent 68%);
}
.rays {
  position: absolute; left: var(--sun-x); bottom: 0; width: 2600px; height: 2600px; margin: 0 0 -1300px -1300px;
  border-radius: 50%; opacity: .85; pointer-events: none;
  background: repeating-conic-gradient(from -7deg, rgba(255, 214, 120, .36) 0deg 14deg, rgba(255, 214, 120, 0) 14deg 45deg),
              repeating-conic-gradient(from 19.5deg, rgba(255, 226, 160, .18) 0deg 6deg, rgba(255, 226, 160, 0) 6deg 45deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 17%, rgba(0, 0, 0, .55) 28%, transparent 52%);
  mask-image: radial-gradient(circle, #000 0 17%, rgba(0, 0, 0, .55) 28%, transparent 52%);
  animation: rays-turn 60s ease-in-out infinite alternate;
}
@keyframes rays-turn { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.clouds { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; pointer-events: none; }
.drift { animation: drift 120s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.far-boat { position: absolute; left: calc(var(--sun-x) - min(360px, 36vw)); bottom: -4px; width: 64px; height: auto; }
.starfield {
  position: absolute; inset: 0 0 28% 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .9) 38%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .9) 38%, transparent 100%);
}
.star-layer { position: absolute; inset: 0; opacity: 0; animation: emerge 4.5s ease-out var(--emerge, 0s) forwards; }
.star-layer::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--stars); background-size: var(--tile);
  animation: twinkle var(--tw, 5s) ease-in-out infinite;
}
.star-layer-a {
  --emerge: .3s; --tw: 5s; --tile: 300px 220px;
  --stars: radial-gradient(1.7px 1.7px at 22px 34px, #fff, transparent), radial-gradient(1.2px 1.2px at 132px 88px, #fff, transparent),
           radial-gradient(1.5px 1.5px at 210px 22px, #FFF6E0, transparent), radial-gradient(1.1px 1.1px at 280px 150px, #fff, transparent);
}
.star-layer-b {
  --emerge: 1.8s; --tw: 7s; --tile: 380px 260px;
  --stars: radial-gradient(1.1px 1.1px at 48px 120px, #fff, transparent), radial-gradient(1.4px 1.4px at 170px 50px, #DDF6FF, transparent),
           radial-gradient(1px 1px at 240px 200px, #fff, transparent), radial-gradient(1.5px 1.5px at 330px 110px, #FFF6E0, transparent);
}
.star-layer-c {
  --emerge: 3.4s; --tw: 4s; --tile: 230px 190px;
  --stars: radial-gradient(.9px .9px at 30px 70px, #fff, transparent), radial-gradient(.8px .8px at 110px 20px, #fff, transparent),
           radial-gradient(.9px .9px at 190px 120px, #DDF6FF, transparent), radial-gradient(.8px .8px at 76px 160px, #fff, transparent);
}
@keyframes emerge { to { opacity: 1; } }
@keyframes twinkle { 50% { opacity: .35; } }
.evening-star {
  position: absolute; left: calc(var(--sun-x) - 18%); top: 44%;
  width: 4px; height: 4px; border-radius: 50%; background: #FFF8E6; opacity: 0;
  box-shadow: 0 0 8px 3px rgba(255, 244, 214, .85), 0 0 22px 7px rgba(255, 214, 160, .35);
  animation: emerge 2.5s ease-out .1s forwards;
}
.shooting-star {
  position: absolute; left: 12%; top: 12%; width: 130px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95));
  transform: rotate(16deg); animation: shoot 14s ease-in 7s infinite;
}
@keyframes shoot {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(16deg); }
  1.5% { opacity: 1; }
  7%, 100% { opacity: 0; transform: translate3d(320px, 92px, 0) rotate(16deg); }
}
/* The intro's sun: a flat disc, shaded in halftone toward its lower right, half sunk below the horizon */
.sun {
  position: absolute; left: var(--sun-x); bottom: calc(var(--sun-size) * -.5);
  width: var(--sun-size); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 42% 34%, #F59A45 0%, #EC7F31 45%, #DD6A2A 75%, #C9581F 100%);
  box-shadow: 0 0 80px rgba(255, 170, 90, .35);
}
.sun::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background-image: radial-gradient(circle, #B84A1A 2.4px, transparent 2.9px); background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(circle at 78% 82%, rgba(0, 0, 0, .85) 0%, transparent 62%);
  mask-image: radial-gradient(circle at 78% 82%, rgba(0, 0, 0, .85) 0%, transparent 62%);
}

.sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--sea-h); overflow: hidden;
  background: linear-gradient(180deg, #2F858C 0%, #28737D 22%, #1F5F6C 48%, #184E5B 100%);
}
.sea svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.horizon-glow {
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, rgba(255, 230, 168, 0) 10%, rgba(255, 230, 168, .9) var(--sun-x), rgba(255, 230, 168, 0) 98%);
}
.spark { animation: spark 2.4s ease-in-out infinite; }
@keyframes spark { 0%, 100% { opacity: .12; } 50% { opacity: .95; } }

/* The roof beam and corner posts: the deck's own dark silhouette, framing the view */
.corner-post { display: none; position: absolute; z-index: 1; top: 0; bottom: 0; width: 26px; background: var(--sil); }
.corner-post::after { content: ""; position: absolute; top: calc(var(--header-h) + 40px); bottom: var(--rail-h); width: 3px; background: var(--rim); opacity: .25; }
.corner-left { left: 0; }
.corner-left::after { right: 0; }
.corner-right { right: 0; }
.corner-right::after { left: 0; }
.beam { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: calc(var(--header-h) + 6px); background: var(--sil); }

/* Lamps hang on dark strings from the beam; only their panes are lit, with a soft warm pool round them */
.lantern {
  position: absolute; z-index: 1; top: calc(var(--header-h) + 6px);
  width: var(--lw, 40px); transform-origin: 50% 0;
  animation: sway var(--sway, 6s) ease-in-out infinite alternate;
}
.lantern-string { display: block; width: 3px; height: var(--ls, 28px); margin: 0 auto; background: var(--sil); }
.lantern svg { position: relative; width: 100%; height: auto; }
.lantern-glow {
  position: absolute; left: 50%; top: calc(var(--ls, 28px) + var(--lw, 40px) * .5);
  width: 240%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 210, 122, .32), rgba(255, 170, 60, .08) 45%, transparent 70%);
  pointer-events: none; animation: flicker 4.2s infinite;
}
.lantern-1 { display: none; right: 42%; --lw: 54px; --ls: 70px; --sway: 7s; }
.lantern-2 { right: 5%; --lw: 30px; --ls: 30px; --sway: 9s; animation-delay: -3s; }
.lantern-2 .lantern-glow { animation-delay: -1.3s; }

@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
@keyframes flicker {
  0%, 100% { opacity: .9; } 8% { opacity: .72; } 10% { opacity: .96; } 34% { opacity: .86; }
  36% { opacity: .62; } 38% { opacity: .94; } 62% { opacity: .88; } 70% { opacity: 1; } 84% { opacity: .8; }
}

/* The Veranda's rail, posts and floor: one dark colour, with the low sun catching only their top edges, brightest
   nearest the sun. The posts stand 240 px either side of Kuya (a strip of 480 px tiles that starts at his centre). */
.railing {
  --rim-fade: linear-gradient(90deg, rgba(242, 195, 93, .3), var(--rim) var(--sun-x), rgba(242, 195, 93, .3));
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: var(--rail-h); pointer-events: none;
}
.rail-top { position: absolute; left: 0; right: 0; bottom: 112px; height: 20px; background: var(--board); }
.rail-top::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--rim-fade); }
.balusters { position: absolute; left: 0; right: 0; bottom: 40px; height: 72px; background: linear-gradient(90deg, var(--sil) 0 14px, transparent 14px) 50% 0 / 54px 100% repeat-x; }
.rail-bottom { position: absolute; left: 0; right: 0; bottom: 26px; height: 14px; background: var(--sil); }
.posts {
  position: absolute; bottom: 0; left: calc(var(--kuya-cx) - 240px - 4800px); width: 9600px; height: calc(var(--rail-h) + 34px);
  background: linear-gradient(90deg, var(--sil) 0 38px, transparent 38px) 0 0 / 480px 100% repeat-x;
}
.post-caps {
  position: absolute; bottom: calc(var(--rail-h) + 32px); left: calc(var(--kuya-cx) - 247px - 4800px); width: 9600px; height: 14px;
  background:
    linear-gradient(90deg, var(--rim) 0 52px, transparent 52px) 0 0 / 480px 3px repeat-x,
    linear-gradient(90deg, var(--board) 0 52px, transparent 52px) 0 0 / 480px 100% repeat-x;
}
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--sil); }
.floor::before { content: ""; position: absolute; inset: 0 0 auto; height: 2.5px; background: var(--rim-fade); opacity: .7; }
.floor::after {
  content: ""; position: absolute; inset: 4px 0 0; opacity: .7;
  background-image: radial-gradient(circle, #070B16 2.3px, transparent 2.8px); background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000); mask-image: linear-gradient(180deg, transparent, #000);
}
/* The intro's soft-light mottle and grain over the whole scene */
.grain, .mottle { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.grain { opacity: .2; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='480'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.2 -.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.mottle { opacity: .16; mix-blend-mode: soft-light; background-size: cover;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1920' height='1080'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.0035 .006' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 2 -.6'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>"); }

/* Kuya peeking over the rail */
.kuya-peek {
  position: absolute; bottom: 0; left: calc(50% - var(--pw) / 2);
  width: var(--pw); height: calc(var(--rail-h) + var(--pw) * .5);
  background: none; border: 0; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kuya-peek:focus-visible { outline: none; }
.kuya-peek:focus-visible .peek-head { filter: drop-shadow(0 0 0 var(--cyan)) drop-shadow(0 0 10px rgba(0, 229, 255, .9)); }
.peek-head {
  position: absolute; z-index: 2; left: 0; width: 100%; height: auto;
  filter: drop-shadow(0 -1px 0 rgba(255, 214, 150, .75)) drop-shadow(0 0 16px rgba(255, 170, 90, .35));
  bottom: calc(var(--rail-h) - var(--pw) * .0833);
  transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.5, -.35, .3, 1.35);
}
.peek-hands {
  position: absolute; z-index: 4; left: 0; width: 100%; height: auto;
  bottom: calc(var(--rail-h) + 8px - var(--pw) * .1556);
  transition: transform .45s cubic-bezier(.5, -.3, .3, 1.3);
}
.kuya-peek.is-ducking .peek-head { transform: translateY(58%); }
.kuya-peek.is-ducking .peek-hands { transform: translateY(18%); }
/* A woven banig mat draped over the rail under Kuya, like a mat being aired out on a veranda back home.
   It covers the gap where his body would be. z 3 + later in the DOM than .railing = in front of the rail;
   his hands (z 4) rest on top of it. The top band is the fold over the rail; the bottom edge is fringed. */
.rail-cover {
  position: absolute; z-index: 3; left: 16%; right: 16%; bottom: 30px; height: calc(var(--rail-h) - 24px);
  pointer-events: none; border-radius: 5px 5px 2px 2px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .26) 0 12px, transparent 16px),
    repeating-linear-gradient(45deg, rgba(110, 60, 20, .2) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(-45deg, rgba(110, 60, 20, .2) 0 4px, transparent 4px 8px),
    linear-gradient(180deg, transparent 0 28%, #B83280 28% 36%, transparent 36% 44%, #1F8A99 44% 52%, transparent 52% 60%, #F59E0B 60% 66%, transparent 66% 74%, #B83280 74% 82%, transparent 82%),
    #D8B887;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px) bottom / 100% 8px no-repeat;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px) bottom / 100% 8px no-repeat;
}
.peek-head .ear { transform-box: view-box; }
.peek-head .ear-left { transform-origin: 137px 104px; }
.peek-head .ear-right { transform-origin: 223px 104px; }
.kuya-peek:hover .ear-left, .kuya-peek.is-kawag .ear-left { animation: kawag-l .32s ease-in-out 6 alternate; }
.kuya-peek:hover .ear-right, .kuya-peek.is-kawag .ear-right { animation: kawag-r .32s ease-in-out 6 alternate; }
@keyframes kawag-l { to { transform: rotate(12deg); } }
@keyframes kawag-r { to { transform: rotate(-12deg); } }
.peek-head .eyes { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.12); } }

.peek-bubble {
  position: absolute; z-index: 6; left: 50%;
  bottom: calc(var(--rail-h) + var(--pw) * .5);
  transform: translateX(-50%) scale(.6); opacity: 0;
  /* The media kit's Kuya bubble: Pearl Cream, a navy border and offset shadow, amber Nunito Black Italic with a
     navy outline. Long lines wrap. */
  width: max-content; max-width: min(260px, 84vw); padding: 9px 16px 10px; border-radius: 20px; text-align: center; text-wrap: balance;
  background: var(--cream); border: 3px solid var(--navy); box-shadow: 5px 6px 0 rgba(13, 27, 42, .38);
  font: italic 900 1.02rem/1.2 var(--font-kuya); color: var(--amber); -webkit-text-stroke: 3px var(--navy); paint-order: stroke fill;
  transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none;
}
.peek-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg);
  background: var(--cream); border: solid var(--navy); border-width: 0 3px 3px 0;
}
.kuya-peek.is-talking .peek-bubble { opacity: 1; transform: translateX(-50%) scale(1); }

.hero-art {
  position: absolute; z-index: 2; left: 50%; bottom: calc(var(--rail-h) - 70px);
  width: auto; height: min(78%, 640px); transform: translateX(-50%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55));
}

/* Hero copy */
.hero-content::before {
  content: ""; position: absolute; z-index: -1; inset: -30px -40px 0; pointer-events: none;
  background: radial-gradient(ellipse 72% 52% at 32% 36%, rgba(9, 12, 32, .5), rgba(9, 12, 32, .2) 62%, transparent 82%);
}
.hero-content {
  position: relative; z-index: 5;
  /* phones & tablets: keep the sunset, sea and Kuya clear of the copy */
  padding-bottom: calc(var(--sea-h) + 90px);
  /* That empty padding (and the wide desktop column) sits on top of Kuya. Let clicks and hovers fall through to
     him, so he ducks and wiggles his ears, while the copy, buttons and live card inside stay clickable. */
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-logo { margin: 0 0 18px; }
.hero-logo img {
  width: min(460px, 100%); height: auto;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .55));
  animation: logo-rise 1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes logo-rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.eyebrow { margin-bottom: 16px; }
h1 { color: var(--cream); }
.h1-line { display: block; }
/* Kuya's greeting in his own font, amber with a navy outline (the media kit's Kuya line) */
.h1-greet { font-size: clamp(1.55rem, 1rem + 2.2vw, 2.4rem); line-height: 1.15; -webkit-text-stroke: 5px var(--navy); paint-order: stroke fill; text-shadow: 0 3px 16px rgba(9, 12, 32, .6); }
/* The media kit's display title: Bebas Neue caps, gold on the top 40% stepping down to amber, a navy keyline and a
   steel glow */
.h1-accent {
  margin-top: .06em; padding: 0 .04em; font: 400 clamp(3.2rem, 2rem + 5vw, 5rem)/.92 var(--font-display); letter-spacing: .016em; text-transform: uppercase;
  color: var(--amber);
  background: linear-gradient(180deg, #FFD262 0 40%, #FCC753 52%, #FABD43 64%, #F7B234 78%, #F5A825 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 0 0 var(--navy)) drop-shadow(-2px 0 0 var(--navy)) drop-shadow(0 2px 0 var(--navy)) drop-shadow(0 -2px 0 var(--navy)) drop-shadow(0 0 12px rgba(45, 85, 122, .95));
}
.hero-sub { font-size: clamp(1.05rem, .98rem + .4vw, 1.2rem); color: var(--pearl); max-width: 56ch; margin: 20px 0 24px; text-shadow: 0 1px 14px rgba(9, 12, 32, .8); }
.hero-sub strong { color: var(--gold); font-weight: 800; }
.cta-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 12px; }
.cta-main { font-size: 1.35rem; -webkit-text-stroke: 4px var(--navy); paint-order: stroke fill; }
.cta-sub { font: 700 .72rem/1.3 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 10px rgba(9, 12, 32, .9); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }

/* Tabs (main.js setupPages, since 11 Nov 2026): only the current tab's parts show. Some parts set their own display,
   so the hidden ones need the !important. */
[data-page-part][hidden] { display: none !important; }

/* Explore the Veranda (Home): a doorway per tab, each a picture of a real place from the stream scenes in the scenes'
   amber frame, with the scenes' place pill (navy, amber keyline, cyan dot, gold caps) naming it. A doorway a visitor
   has already been through gets a small "Explored" tick (this browser only). */
.explore { background: linear-gradient(180deg, #0A1118 0%, #0B1622 60%, #0D1B2A 100%); padding-bottom: 96px; }
.explore-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.door { display: grid; align-content: start; gap: 8px; height: 100%; text-decoration: none; color: inherit; }
.door-pic { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; border: 3px solid var(--amber); background: var(--sil); }
.door-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.door-pill {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px;
  border-radius: 999px; background: rgba(13, 27, 42, .94); border: 2px solid var(--amber);
  font: 700 .68rem/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.door-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--kit-cyan); }
.door.is-visited .door-pill::after { content: "✓ Explored"; margin-left: 4px; padding-left: 8px; border-left: 1px solid rgba(245, 168, 37, .5); color: var(--cream); letter-spacing: .1em; }
.door-title { margin-top: 6px; font: 400 clamp(1.7rem, 1.4rem + .8vw, 2.1rem)/1 var(--font-display); letter-spacing: .02em; color: var(--cream); }
.door-text { color: var(--text-2); font-size: .95rem; }
.door-go { font: 700 .76rem/1.3 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.door-go span { display: inline-block; transition: transform .25s ease; }
.door:hover .door-pic img, .door:focus-visible .door-pic img { transform: scale(1.05); }
.door:hover .door-go, .door:focus-visible .door-go { color: var(--gold); }
.door:hover .door-go span, .door:focus-visible .door-go span { transform: translateX(5px); }
.door:hover .door-pic, .door:focus-visible .door-pic { border-color: var(--gold); }
.door:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 10px; }

/* The Veranda map (Home, main.js setupMap, since 11 Nov 2026): the stream places in one cutaway in the scenes' amber
   frame, the scenes' place pills as pins, a card per place, and a cream label taped to the cut face of the land at the
   bottom right (where a museum diorama carries its label). It replaces the doorways above, which stay hidden as the
   no-JS fallback. */
.explore-grid[hidden], .vmap[hidden] { display: none; }
.vmap { position: relative; border: 3px solid var(--amber); border-radius: 14px; overflow: hidden; background: #1E2350; }
.vmap > svg { display: block; width: 100%; height: auto; }
.vmap-title {
  position: absolute; right: 2.4%; bottom: 5%; margin: 0; padding: 14px 16px 12px; max-width: 46%;
  background: var(--paper); color: #1A2433; transform: rotate(-1.5deg); box-shadow: 0 8px 16px rgba(0, 0, 0, .35);
}
.vmap-title::before { content: ""; position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; background: var(--tape); transform: translateX(-50%) rotate(-3deg); }
.vmap-title b { display: block; font: 400 1.7rem/1 var(--font-display); color: var(--navy); }
.vmap-title span { font: 400 1.05rem/1.15 var(--font-note); color: #B5341C; }
.vmap-pin {
  position: absolute; z-index: 2; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px;
  border: 2px solid var(--amber); border-radius: 999px; background: rgba(13, 27, 42, .94); color: var(--gold); cursor: pointer;
  font: 700 .68rem/1 var(--font-hud); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  transition: background-color .2s ease, color .2s ease;
}
.vmap-pin b, .vmap-legend b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--sil); font: 400 1rem/1 var(--font-display); letter-spacing: 0; }
.vmap-pin.is-seen span::after { content: " ✓"; color: var(--cream); }
.vmap-pin:hover, .vmap-pin[aria-expanded="true"] { background: var(--amber); color: var(--sil); }
.vmap-pin:hover b, .vmap-pin[aria-expanded="true"] b { background: var(--sil); color: var(--gold); }
.vmap-pin:focus-visible, .vmap-legend button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.vmap-card {
  position: absolute; z-index: 5; width: 310px; padding: 12px 12px 14px; border-radius: 12px;
  background: rgba(13, 27, 42, .97); border: 2px solid var(--amber); box-shadow: 0 16px 30px rgba(0, 0, 0, .5);
}
.vmap-card[hidden] { display: none; }
.vmap-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.vmap-card h3 { margin: 10px 36px 6px 0; font: 400 1.7rem/1 var(--font-display); letter-spacing: .02em; color: var(--cream); }
.vmap-card img + h3 { margin-right: 0; }
.vmap-on { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.vmap-on span { padding: 3px 8px; font: 700 .64rem/1.3 var(--font-hud); letter-spacing: .1em; text-transform: uppercase; }
.vmap-scene { background: var(--sari-red); color: var(--cream); }
.vmap-when { border: 1px solid rgba(255, 210, 98, .5); border-radius: 999px; color: var(--gold); }
.vmap-when span { padding: 0; }
.vmap-when .vmap-en { color: var(--cream); }
.vmap-text { margin: 0; font-size: .9rem; color: var(--text-2); }
.vmap-go { display: grid; gap: 6px; margin: 12px 0 0; }
.vmap-go a { justify-self: start; font: 700 .74rem/1.3 var(--font-hud); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); text-decoration: none; }
.vmap-go a.is-main { padding: 8px 14px; border-radius: 999px; background: var(--amber); color: var(--sil); }
.vmap-go a:hover, .vmap-go a:focus-visible { color: var(--gold); }
.vmap-go a.is-main:hover, .vmap-go a.is-main:focus-visible { background: var(--gold); color: var(--sil); }
.vmap-x { position: absolute; z-index: 1; right: 8px; top: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(13, 27, 42, .85); color: var(--cream); cursor: pointer; font-size: 1.15rem; line-height: 1; }
.vmap-x:hover, .vmap-x:focus-visible { background: var(--amber); color: var(--sil); }
/* the places by number: only on phones, where the pins show just their numbers */
.vmap-legend { display: none; }
@media (max-width: 760px) {
  .vmap { border-radius: 10px; }
  .vmap-pin { padding: 3px; }
  .vmap-pin span { display: none; }
  .vmap-title { display: none; }
  .vmap-card { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: calc(100vh - 80px); overflow: auto; }
  .vmap-legend { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
  .vmap-legend button {
    display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 10px 3px 4px; border: 1px solid rgba(245, 168, 37, .45);
    border-radius: 999px; background: rgba(13, 27, 42, .6); color: var(--gold); cursor: pointer;
    font: 700 .64rem/1 var(--font-hud); letter-spacing: .1em; text-transform: uppercase;
  }
}

/* "Next stop" at the end of every other tab: the next tab's doorway, wide, then the rest */
.next-stop { margin-top: 72px; padding-top: 34px; border-top: 2px dashed rgba(245, 168, 37, .28); }
.next-label { margin: 0 0 14px; font: 700 .78rem/1 var(--font-hud); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.door-wide { max-width: 760px; }
@media (min-width: 720px) {
  .door-wide { grid-template-columns: minmax(0, 300px) 1fr; column-gap: 22px; align-items: center; }
  .door-wide .door-pic { grid-row: 1 / span 4; }
  .door-wide .door-title { margin-top: 0; }
}
.next-others { margin: 22px 0 0; color: var(--text-2); font-size: .92rem; }
.next-others a { color: var(--amber); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.next-others a:hover { color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .door-pic img, .door-go span { transition: none; } }

/* Announcements (config.announcements, main.js setupAnnouncements, since 11 Nov 2026): each current one is a note
   taped up in the hero like the polaroids and house rules (media kit v2.0: a flat cream sheet, flat tape, a flat red
   tag). Under the live card on smaller screens; pinned in the hero's empty upper right on wide ones. Once scrolled
   past, they dock as small tags at the bottom-left (.announce-dock, below). */
.announce-hero { display: grid; gap: 26px; margin-top: 30px; }
.announce-hero:empty { display: none; }
.announce {
  position: relative; display: grid; gap: 8px; width: min(340px, 100%); padding: 32px 16px 16px;
  border-radius: 3px; background: var(--paper); color: #1A2433; box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
  transform: rotate(-1.5deg);
}
.announce::before { content: ""; position: absolute; top: -10px; left: 50%; width: 80px; height: 20px; transform: translateX(-50%) rotate(3deg); background: var(--tape); }
.announce-tag {
  position: absolute; left: 0; top: 10px; padding: 4px 9px 3px; font: 700 .66rem/1 var(--font-hud); letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream); background: var(--sari-red);
}
.announce-title { margin: 0; font: 400 1.7rem/1 var(--font-display); letter-spacing: .02em; color: var(--navy); }
.announce-row { display: grid; grid-template-columns: 58px 1fr; gap: 10px; align-items: start; }
.announce-row.no-art { grid-template-columns: 1fr; }
.announce-art svg { display: block; width: 58px; height: 64px; }
.announce-text { margin: 0; font: 600 .84rem/1.4 var(--font-body); color: #334155; }
.announce-hours { margin: 0; font: 700 .72rem/1.35 var(--font-hud); letter-spacing: .06em; text-transform: uppercase; color: #566680; }
.announce-hours abbr { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; color: #B5341C; }
.announce-hi { margin: 0; font: 400 1.35rem/1 var(--font-note); color: #B5341C; }
.announce-link { justify-self: start; font: 700 .72rem/1.3 var(--font-hud); letter-spacing: .12em; text-transform: uppercase; color: #566680; text-decoration: underline; text-underline-offset: 3px; }
.announce-link:hover { color: #B5341C; }
@media (min-width: 1100px) {
  .announce-hero { position: absolute; top: 150px; right: 24px; width: 290px; margin: 0; }
  .announce-hero .announce { width: 100%; transform: rotate(2deg); }
}

/* The dock: once the hero's notes are scrolled past, each announcement waits as a small flat red tag at the
   bottom-left (the back-to-top fin has the bottom-right). A click opens its note above the tags; scrolling,
   "Minimise" or Esc closes it again. Below the header (60), above the fin (50). */
.announce-dock {
  position: fixed; z-index: 55; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: grid; justify-items: start; gap: 8px; max-width: min(400px, calc(100vw - 110px)); /* clear of the fin */
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.announce-dock.is-docked { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease; }
.announce-pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 36px; padding: 6px 10px 6px 0;
  border: 0; border-radius: 0 999px 999px 0; background: var(--sari-red); color: var(--cream); cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4); text-align: left;
  font: 700 .7rem/1.2 var(--font-hud); letter-spacing: .1em; text-transform: uppercase;
}
.announce-pill-when { flex: none; align-self: stretch; display: inline-flex; align-items: center; padding: 0 9px; background: #9E4418; }
.announce-pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce-pill-ico { flex: none; width: 14px; height: 14px; transform: rotate(-90deg); transition: transform .2s ease; }
.announce-pill[aria-expanded="true"] .announce-pill-ico { transform: rotate(90deg); }
.announce-pill:hover, .announce-pill:focus-visible { background: #B04A1A; }
.announce-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.announce-panel { position: relative; width: min(330px, calc(100vw - 28px)); padding: 46px 6px 6px 0; }
.announce-panel[hidden] { display: none; }
.announce-panel .announce { width: 100%; transform: rotate(-1deg); }
.announce-min {
  position: absolute; z-index: 3; right: 6px; top: 0; display: inline-flex; align-items: center; gap: 5px;
  min-height: 30px; padding: 4px 10px; border: 1.5px solid rgba(86, 102, 128, .5); border-radius: 999px; background: var(--paper);
  color: #566680; cursor: pointer; font: 700 .64rem/1 var(--font-hud); letter-spacing: .12em; text-transform: uppercase;
}
.announce-min span { font-size: 1rem; line-height: 0; }
.announce-min:hover, .announce-min:focus-visible { color: #B5341C; border-color: #B5341C; }
.announce-dock .announce-panel { width: min(330px, calc(100vw - 28px)); } /* the open note may use the full width */
/* Phones: the docked tag drops its date so it stays short and clear of the back-to-top fin */
@media (max-width: 480px) {
  .announce-pill { padding-left: 12px; border-radius: 999px; }
  .announce-pill-when { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .announce-dock, .announce-dock.is-docked, .announce-pill-ico { transition: none; }
}

/* The scenes' navy house panel with an amber keyline */
.live-card {
  max-width: 540px; padding: 16px 18px; border-radius: 20px;
  background: rgba(13, 27, 42, .92); border: 2px solid var(--amber);
  transition: border-color .4s, box-shadow .4s;
}
.live-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; font: 700 .76rem/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #64748B; }
.live-card[data-state="loading"] .live-dot { animation: blink-dot 1s infinite; }
.live-platform { display: inline-flex; align-items: center; gap: 6px; font: 700 .8rem var(--font-body); color: var(--muted); }
.live-platform svg { width: 14px; height: 14px; color: #A970FF; }
.live-headline { font: 800 1.15rem/1.25 var(--font-body); color: var(--cream); margin: 0 0 4px; }
/* min-height: the line is empty until main.js fills it, so reserving one line keeps the card (and the whole hero
   below it) from growing when the status lands */
.live-meta { color: var(--text-2); font-size: .94rem; margin: 0; min-height: 1.6em; }
.live-meta b { color: var(--cream); font-weight: 800; }
.live-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.live-actions:empty { display: none; }
.live-card[data-state="live"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(255, 210, 98, .3); }
.live-card[data-state="live"] .live-dot { background: var(--cyan); animation: ping 1.6s infinite; }
.live-card[data-state="live"] .live-badge { color: var(--cyan); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, .7); } 80%, 100% { box-shadow: 0 0 0 12px rgba(0, 229, 255, 0); } }

@media (min-width: 720px) {
  .hero { --pw: 320px; --sun-size: 280px; }
  .lantern-2 { --lw: 36px; --ls: 44px; }
}
@media (min-width: 1040px) {
  /* Kuya on the right, with the sun and its sunburst right behind him */
  .hero { --pw: 360px; --sea-h: 42%; --kuya-cx: calc(91% - var(--pw) / 2); --sun-size: 340px; }
  .kuya-peek { left: auto; right: 9%; }
  .lantern-1, .corner-post { display: block; }
  .lantern-2 { right: 20%; --lw: 38px; --ls: 30px; }
  .hero-content { padding-bottom: calc(var(--rail-h) + 48px); }
  .hero-content > * { max-width: 600px; }
  .hero-content > h1, .hero-content > .hero-ctas { max-width: 800px; }
  .hero-art { left: auto; right: 6%; transform: none; }
}
@media (min-width: 1400px) {
  .hero { --kuya-cx: calc(87% - var(--pw) / 2); }
  .kuya-peek { right: 13%; }
}

/* ---------- Wave dividers ---------- */
.wave-divider { position: relative; z-index: 6; height: 70px; margin-top: -69px; pointer-events: none; }
.wave-divider svg { width: 100%; height: 100%; }
.wd-fill { fill: currentColor; }
/* The tide line along each wave: gold dashes like the glints on the scenes' water (cyan glows only on things that
   are bioluminescent) */
.wd-glow {
  fill: none; stroke: var(--rim); stroke-width: 2; stroke-opacity: .55;
  vector-effect: non-scaling-stroke; stroke-dasharray: 18 12;
  animation: tide-dash 24s linear infinite;
}
@keyframes tide-dash { to { stroke-dashoffset: -600; } }
.wd-lore { color: #0A1118; }
.wd-deck { color: #132238; }
.wd-perlas { color: #0D1B2A; }
.wd-tides { color: #1E293B; }
.wd-port { color: #0A1118; }

/* =====================================================================
   B. LORE
   ===================================================================== */
.lore { background: linear-gradient(180deg, #0A1118 0%, #0B1622 45%, #0D1B2A 100%); overflow: hidden; }
.marine-snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .55; }
.marine-snow::before {
  content: ""; position: absolute; inset: -240px 0 0; will-change: transform;
  background-image:
    radial-gradient(1.6px 1.6px at 30px 40px, rgba(191, 233, 255, .9), transparent),
    radial-gradient(1px 1px at 130px 90px, rgba(191, 233, 255, .7), transparent),
    radial-gradient(1.3px 1.3px at 210px 170px, rgba(191, 233, 255, .8), transparent),
    radial-gradient(1px 1px at 80px 200px, rgba(127, 246, 255, .7), transparent),
    radial-gradient(1.8px 1.8px at 180px 20px, rgba(255, 255, 255, .5), transparent);
  background-size: 240px 240px;
  animation: snow 42s linear infinite;
}
@keyframes snow { to { transform: translate3d(0, 240px, 0); } }

.ascent { --ascent: 0; position: relative; list-style: none; margin: 0 0 104px; padding: 0 0 0 30px; display: grid; gap: 56px; }
.ascent::before, .ascent::after { content: ""; position: absolute; left: 7px; top: 10px; width: 3px; border-radius: 3px; }
.ascent::before { bottom: 10px; background: rgba(0, 229, 255, .12); }
.ascent::after {
  height: calc(var(--ascent) * (100% - 20px));
  background: linear-gradient(180deg, var(--cyan), var(--amber));
  box-shadow: 0 0 12px rgba(0, 229, 255, .7);
}
.chapter { position: relative; display: grid; gap: 18px; }
.chapter::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--abyss-deep); border: 3px solid rgba(0, 229, 255, .45);
  transition: background .6s, box-shadow .6s, border-color .6s;
}
.chapter.is-in::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px rgba(0, 229, 255, .9); }
.depth b { display: block; font: 400 1.7rem/1 var(--font-display); color: var(--cyan); }
.depth small { display: block; margin-top: 6px; font: 600 .72rem var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.porthole { margin: 0; width: min(210px, 58vw); }
.porthole svg { width: 100%; height: auto; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .55)); }
.ph-shark { animation: glide 7s ease-in-out infinite alternate; }
@keyframes glide { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
.chapter-num { font: 700 .78rem/1 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.chapter-body h3 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); color: var(--cream); margin-bottom: 10px; }
.chapter-body p { color: var(--text-2); max-width: 58ch; margin: 0; }

@media (min-width: 860px) {
  .ascent { padding-left: 40px; gap: 64px; }
  .chapter { grid-template-columns: 150px 220px minmax(0, 1fr); align-items: center; gap: 32px; }
  .chapter::before { left: -40px; top: 50%; transform: translateY(-50%); }
  .porthole { width: 220px; }
}

/* Why bunso */
.bunso { display: grid; gap: 28px; align-items: center; margin-bottom: 104px; }
.dict {
  position: relative; overflow: hidden; padding: 30px 30px 26px;
  background: var(--cream); color: var(--navy);
  border: 0; transform: rotate(-1.2deg);
}
.dict::after {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(217, 119, 6, .16), transparent 70%);
}
.dict-word { font: 800 clamp(2.8rem, 2rem + 3.4vw, 4.2rem)/1 var(--font-body); letter-spacing: -.02em; color: var(--navy); margin: 0 0 6px; }
.dict-pos { font-weight: 700; color: #566680; margin-bottom: 14px; } /* the slate a touch darker: better than 4.5:1 on the cream */
.dict-pos i { font-style: italic; margin-right: 6px; }
.dict-def { font-size: 1.2rem; font-weight: 800; margin: 0; }
.dict-def span { display: block; font-weight: 600; font-style: italic; color: #475569; margin-top: 4px; }
.bunso-body h3 { font-size: clamp(2.2rem, 1.6rem + 1.9vw, 3.1rem); color: var(--cream); margin-bottom: 14px; }
.bunso-body p { color: var(--text-2); }
.bunso-body em { font-style: normal; font-weight: 800; color: var(--amber); }
/* Kuya's own line, in his font */
.bunso-body blockquote {
  margin: 22px 0 0; padding-left: 18px; border-left: 4px solid var(--amber);
  font: italic 900 clamp(1.4rem, 1.1rem + 1vw, 1.9rem)/1.2 var(--font-kuya); color: var(--amber);
}
@media (min-width: 900px) { .bunso { grid-template-columns: .85fr 1.15fr; gap: 64px; } }

/* Veranda House Rules (the Guardian Code), redone 11 Nov 2026: three notes taped up, media kit v2.0's taped-note
   look like the sightings polaroids (a flat cream sheet, a flat strip of tape, a flat red tag, the rule in navy, its
   meaning in Kuya's hand). They replaced navy panels hung on strings from a bare beam, which the owner found
   "stick out like a sore thumb"; before those, carved wooden plaques (no rendered wood in the scenes). */
.rules { margin-bottom: 104px; }
.rules-head { margin-bottom: 30px; max-width: 60ch; }
.rules-title { font-size: clamp(2.2rem, 1.6rem + 1.9vw, 3.1rem); color: var(--cream); margin-bottom: 8px; }
.rules-head p { margin: 0; color: var(--text-2); }
.rules-list { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 34px; }
.rule {
  --rot: -1deg;
  --tape-rot: -3deg;
  position: relative; padding: 26px 24px 24px; border-radius: 3px; background: var(--paper); color: #1A2433;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .42); transform: rotate(var(--rot));
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s;
}
.rule:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 18px 34px rgba(0, 0, 0, .5); }
.rule::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 22px;
  transform: translateX(-50%) rotate(var(--tape-rot)); background: var(--tape);
}
.rule-tag {
  position: absolute; left: 0; top: 16px; padding: 5px 10px 4px; font: 700 .7rem/1 var(--font-hud); letter-spacing: .16em;
  text-transform: uppercase; color: var(--cream); background: var(--sari-red);
}
.rule h4 { margin: 22px 0 0; font-size: clamp(2.6rem, 2.2rem + 1.2vw, 3.3rem); line-height: .95; color: var(--navy); }
.rule-tr { margin: 6px 0 0; font: 400 1.55rem/1.1 var(--font-note); color: #B5341C; }
.rule-what {
  margin: 18px 0 8px; padding-top: 14px; border-top: 2px dotted rgba(86, 102, 128, .45);
  font: 700 .74rem/1.3 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: #566680;
}
.rule-text { margin: 0; font-size: .95rem; color: #334155; }
@media (min-width: 860px) { .rules-list { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
@media (prefers-reduced-motion: reduce) { .rule, .rule:hover { transition: none; } }

/* Sightings */
.sightings-head { display: grid; gap: 22px; margin-bottom: 26px; }
.sightings-head h3 { font-size: clamp(2.2rem, 1.6rem + 1.9vw, 3.1rem); color: var(--cream); margin-bottom: 10px; }
.sightings-head p { color: var(--text-2); max-width: 56ch; margin: 0; }
@media (min-width: 960px) { .sightings-head { grid-template-columns: 1fr minmax(0, 440px); align-items: end; } }

.model-status { background: rgba(13, 27, 42, .92); border: 2px solid var(--amber); border-radius: 18px; padding: 14px 16px; }
.ms-top { display: flex; justify-content: space-between; gap: 10px; font: 700 .72rem/1.3 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ms-top b { color: var(--cream); letter-spacing: .06em; }
.ms-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 10px 0 8px; }
.ms-track i { height: 8px; border-radius: 4px; background: rgba(148, 197, 230, .18); }
.ms-track i.done { background: var(--amber); }
.ms-track i.now { background: var(--amber); animation: now-pulse 1.8s ease-in-out infinite; }
@keyframes now-pulse { 50% { opacity: .55; } }
.ms-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; font: 600 .6rem/1.2 var(--font-hud); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; }
.ms-steps .now { color: var(--capiz); }
.ms-steps .done { color: var(--text-2); }
.ms-debut { margin: 10px 0 0; font-size: .9rem; color: var(--text-2); }
.ms-debut b { color: var(--amber); }

.board {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 18px 16px 30px; scrollbar-width: thin;
}
/* A polaroid is a flat cream print taped up with one flat strip of the second cream, the way the Sari-Sari scene and
   media kit v2.0 draw tape: no see-through tape, no grain, no gloss. */
.polaroid {
  --rot: -2deg;
  --tape-rot: -3deg;
  position: relative; flex: 0 0 214px; scroll-snap-align: center; margin: 0;
  padding: 10px 10px 14px; border-radius: 3px; background: var(--paper); color: #1A2433;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .42); transform: rotate(var(--rot));
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s;
}
.polaroid:hover { transform: rotate(0) translateY(-6px) scale(1.03); box-shadow: 0 18px 34px rgba(0, 0, 0, .5); }
.polaroid::before {
  content: ""; position: absolute; z-index: 2; top: -10px; left: 50%; width: 72px; height: 20px;
  transform: translateX(-50%) rotate(var(--tape-rot)); background: var(--tape);
}
.photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: #fff; }
.photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.is-locked .photo { background: var(--sil); }
/* the camera's date stamp: amber with a flat navy edge, so it reads on white paper and on the sunset alike */
.stamp-time {
  position: absolute; z-index: 1; right: 7px; bottom: 5px;
  font: 700 .76rem/1 var(--font-hud); letter-spacing: .1em; color: var(--amber);
  text-shadow: 1px 0 var(--sil), -1px 0 var(--sil), 0 1px var(--sil), 0 -1px var(--sil);
}
/* the flat red tag (the kit's third shape): WIP, or a lock and "Debut day" */
.photo-tag {
  position: absolute; z-index: 1; left: 0; top: 8px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px 3px; font: 700 .66rem/1 var(--font-hud); letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); background: var(--sari-red);
}
.photo-tag svg { width: 11px; height: 11px; }
.polaroid figcaption { margin-top: 10px; font: 400 1.45rem/1.05 var(--font-note); color: #1A2433; }
.polaroid figcaption small { display: block; margin-top: 5px; font: 600 .82rem/1.38 var(--font-body); color: #475569; }
.polaroid .credit { display: block; margin-top: 7px; font: 700 .66rem/1.3 var(--font-body); letter-spacing: .03em; color: #566680; }
/* the artist's link gets a bigger tap area (padding, cancelled by the margin) with the text the same size */
.polaroid .credit a { display: inline-block; padding: 9px 6px; margin: -9px -6px; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.polaroid .credit a:hover { color: var(--amber-2); }
@media (min-width: 1100px) {
  .board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 18px 0 10px; }
  .polaroid { flex: none; }
}

/* =====================================================================
   C. QUARTERDECK
   ===================================================================== */
.quarterdeck { background: linear-gradient(180deg, #132238 0%, #111F35 100%); }
.quarterdeck::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 72px);
}
.hub { position: relative; padding: 18px; margin-bottom: 80px; }
.hub-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.hub-head h3 { display: flex; align-items: center; gap: 6px; font-size: 1.6rem; color: var(--cream); }
.hub-head h3 .ink-sapphire { margin-right: 8px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(10, 17, 24, .65); border: 1px solid var(--line); }
.tabs [role="tab"] { min-height: var(--tap); background: none; border: 0; padding: 9px 14px; border-radius: 10px; color: var(--text-2); font: 700 .82rem var(--font-hud); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.tabs [role="tab"]:hover { color: var(--gold); }
.tabs [role="tab"][aria-selected="true"] { background: var(--amber); color: var(--navy); }
.tab-panel:focus-visible { outline-offset: 6px; border-radius: 12px; }
@media (min-width: 720px) { .hub { padding: 28px; } }

.deck { display: grid; gap: 28px; }
@media (min-width: 1000px) { .deck { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 36px; } }
.deck-title { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); color: var(--cream); }
.deck-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.deck-blurb { color: var(--text-2); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 12px 14px; border-radius: 14px; background: rgba(10, 17, 24, .55); border: 1px solid var(--line); }
.stat-label { margin: 0; font: 700 .8rem/1.2 var(--font-body); color: var(--muted); }
.stat-value { margin: 4px 0 0; font: 800 1.7rem/1.05 var(--font-body); color: var(--cream); }

.curve { position: relative; margin: 0; padding: 14px 16px 8px; border-radius: 16px; background: rgba(10, 17, 24, .55); border: 1px solid var(--line); }
.curve-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.curve-title { margin: 0; font: 800 .98rem var(--font-body); color: var(--cream); }
.curve-sub { margin: 0; font: 700 .82rem var(--font-body); color: var(--muted); }
.curve-plot { height: 190px; }
.curve-plot svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: rgba(148, 197, 230, .14); stroke-width: 1; shape-rendering: crispEdges; }
.chart-label { fill: var(--muted); font: 700 11px var(--font-body); }
.bar { fill: var(--cyan-2); transition: fill .2s; }
.col { cursor: default; outline: none; }
.col .hit { fill: transparent; }
.col:hover .bar, .col:focus .bar { fill: var(--cyan); }
.col:focus-visible .hit { stroke: var(--cyan); stroke-width: 2; rx: 6; }
.peak-label { fill: var(--text); font: 800 12px var(--font-body); text-anchor: middle; }

.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
  padding: 8px 12px; border-radius: 10px; background: #0A1118; border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-size: .84rem; color: var(--text-2);
}
.chart-tip strong { display: block; font: 800 1rem/1.2 var(--font-body); color: var(--cream); }

.plan { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: plan; }
.plan li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: rgba(10, 17, 24, .45); border: 1px solid var(--line); }
.plan li::before {
  counter-increment: plan; content: counter(plan);
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  background: var(--amber); color: var(--navy); font: 400 1.4rem var(--font-display);
}
.plan b { display: block; font: 800 1.05rem/1.3 var(--font-body); color: var(--cream); margin-bottom: 2px; }
.plan span { color: var(--text-2); font-size: .94rem; }

.decklist { container-type: inline-size; padding: 16px; border-radius: 18px; background: rgba(10, 17, 24, .45); border: 1px solid var(--line); }
.decklist-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.decklist-head h4 { font-size: 1.35rem; color: var(--cream); }
.dl-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 2px; font-size: .78rem; color: var(--muted); }
.dl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dl-legend .bg-ico { width: 14px; height: 14px; color: var(--cyan); }
.dl-legend .mini-hex { width: 14px; height: 15px; }
.dl-group h5 { display: flex; justify-content: space-between; margin: 16px 0 6px; padding: 0 8px; font: 700 .74rem var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-row { display: grid; grid-template-columns: 30px 30px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; transition: background .2s; }
.dl-row:hover { background: rgba(245, 158, 11, .08); }
.cost-hex, .mini-hex {
  position: relative; width: 28px; height: 31px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #64748B; color: #0A1118; font: 800 .92rem var(--font-body);
}
.cost-hex.inkable, .mini-hex.inkable { background: linear-gradient(180deg, #FDE68A, #D97706); }
.cost-hex span { position: relative; z-index: 1; }
.cost-hex::before, .mini-hex::before {
  content: ""; position: absolute; inset: 3px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #E2E8F0;
}
.cost-hex.inkable::before, .mini-hex.inkable::before { background: var(--cream); }
.dl-qty { font: 800 .95rem var(--font-body); color: var(--capiz); }
.dl-name { min-width: 0; font-weight: 800; color: var(--pearl); line-height: 1.25; }
.dl-name small { display: block; font-weight: 600; font-size: .82rem; color: var(--muted); }
.dl-kws { grid-column: 4; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.dl-kws:empty { display: none; }
.dl-flags { grid-column: 5; display: flex; align-items: center; gap: 8px; }
.dl-flags .bg-ico { width: 18px; height: 18px; color: var(--cyan); }
/* A narrow decklist (phones, and the two-column layout just above 1000px): keyword chips get their own line
   under the card name, so a long name and a long chip ("Sing Together") never run into each other */
@container (max-width: 460px) {
  .dl-row { grid-template-columns: 30px 30px minmax(0, 1fr) auto; row-gap: 0; }
  .dl-row > .cost-hex { grid-area: 1 / 1 / 3 / 2; }
  .dl-row > .dl-qty { grid-area: 1 / 2 / 3 / 3; }
  .dl-row > .dl-name { grid-area: 1 / 3 / 2 / 4; }
  .dl-row > .dl-kws { grid-area: 2 / 3 / 3 / 4; justify-content: flex-start; margin-top: 5px; }
  .dl-row > .dl-flags { grid-area: 1 / 4 / 3 / 5; }
}

/* Pulls */
.pulls-note { color: var(--text-2); margin-bottom: 18px; max-width: 60ch; }
.pulls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; perspective: 900px; }
.tcg-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%;
  position: relative; aspect-ratio: 63 / 88; border-radius: 14px; overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .2s ease-out, box-shadow .3s;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5); background: #0A1118;
}
.tcg-card:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
.tcg-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 28%, rgba(0, 229, 255, .38) 44%, rgba(245, 158, 11, .34) 56%, transparent 72%) var(--mx) 0 / 260% 100%;
  opacity: .55; transition: opacity .3s;
}
.tcg-card:hover::after { opacity: 1; }
.tcg-back {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px;
  border: 7px solid #0A1118; border-radius: 14px;
  background: radial-gradient(circle at 50% 42%, #24497A, #0D1B2A 72%);
  box-shadow: inset 0 0 0 2px var(--amber);
}
.tcg-back svg { width: 58%; filter: drop-shadow(0 0 14px rgba(245, 158, 11, .5)); }
.tcg-back span { font: 700 .72rem var(--font-hud); color: var(--gold); letter-spacing: .14em; text-transform: uppercase; }
.tcg-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcg-face .tcg-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(5, 9, 14, .92) 45%);
}
.tcg-face .tcg-name { font: 800 .86rem/1.2 var(--font-body); color: var(--pearl); margin: 0; }
.tcg-face .tcg-set { font-size: .74rem; color: var(--muted); margin: 2px 0 0; }
.rarity { display: inline-block; margin-bottom: 6px; padding: 3px 7px; border-radius: 999px; font: 700 .62rem/1 var(--font-hud); letter-spacing: .12em; text-transform: uppercase; background: rgba(148, 197, 230, .2); color: var(--pearl); }
.rarity[data-r="legendary"], .rarity[data-r="iconic"] { background: var(--amber); color: #1A1206; }
.rarity[data-r="enchanted"], .rarity[data-r="epic"] { background: linear-gradient(90deg, #00E5FF, #A970FF, #F59E0B); color: #0A1118; }
.rarity[data-r="super-rare"] { background: #C7D3E0; color: #0A1118; }

/* Guides: a plain list, like a notebook index */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.guide {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 14px 4px; border-bottom: 1px solid var(--line-2);
}
.guide-tag { grid-column: 1 / -1; font: 700 .74rem/1.2 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.guide-main b { display: block; font: 800 1.1rem/1.3 var(--font-body); color: var(--cream); }
.guide-main b a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.guide-main b a:hover { color: var(--capiz); }
.guide-main b svg { width: 16px; height: 16px; }
.guide-main > span { color: var(--text-2); font-size: .95rem; }
.guide-status { font: 800 .82rem var(--font-body); color: var(--muted); }
.guide.is-live .guide-status { color: var(--capiz); }
@media (min-width: 720px) { .guide { grid-template-columns: 160px 1fr auto; } .guide-tag { grid-column: auto; } }

/* VODs */
.vods-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.vods-head h3 { font-size: clamp(2.1rem, 1.5rem + 1.9vw, 2.9rem); color: var(--cream); margin-bottom: 6px; }
.vods-head p { color: var(--text-2); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: var(--tap); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(10, 17, 24, .55); border: 1px solid var(--line-2); color: var(--text-2);
  font: 700 .78rem var(--font-hud); letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--hover-line); color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.vods-empty { margin: 0; padding: 18px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); font: italic 900 1.2rem/1.35 var(--font-kuya); color: var(--amber); }
.vod-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vod {
  overflow: hidden; border-radius: 20px; background: var(--veranda-2); border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.vod:hover { border-color: var(--hover-line); }
.vod[hidden] { display: none; }
.vod-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  cursor: pointer; overflow: hidden; background: #0A1118;
}
.vod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vod:hover .vod-thumb img { transform: scale(1.05); }
.vod-play {
  position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber); color: #1A1206;
}
.vod-play svg { width: 20px; height: 20px; }
.vod-body { padding: 14px 16px 16px; }
.vod-cat { margin: 0; font: 700 .72rem/1.2 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.vod h4 { margin: 4px 0 6px; font: 800 1.02rem/1.3 var(--font-body); color: var(--pearl); }
.vod-date { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- The Lorcana hub as a cloth TCG playmat ----------
   Deep-sea felt, rubber edge, stitched border, a faint printed sunburst, printed zones
   (Inkwell, Play area, Deck, Pack pulls), stat tokens and a 0–20 lore tracker. */
.hub.playmat {
  --felt: #0F3A44; --felt-ink: rgba(214, 238, 232, .62); --felt-line: rgba(214, 238, 232, .22);
  isolation: isolate; padding: 24px 20px 20px; border-radius: 26px; border: 6px solid #071A1F;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 5px),
    radial-gradient(120% 90% at 50% 38%, #13464F, var(--felt) 70%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06), 0 20px 34px rgba(0, 0, 0, .45);
}
/* The printed art: a faint eight-ray sunburst in the middle of the mat */
.hub.playmat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 44%, rgba(255, 214, 140, .045) 0 7deg, transparent 7deg 22.5deg);
  -webkit-mask: radial-gradient(circle at 50% 44%, #000 0 10%, transparent 44%);
  mask: radial-gradient(circle at 50% 44%, #000 0 10%, transparent 44%);
}
/* Stitched edge */
.hub.playmat::after { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(214, 238, 232, .2); border-radius: 19px; pointer-events: none; }
.playmat .hub-head h3 { color: var(--cream); }
.playmat .tabs { background: rgba(0, 0, 0, .25); border-color: var(--felt-line); }

/* Printed zones */
.playmat .zone {
  position: relative; margin-top: 26px; padding: 22px 16px 14px;
  background: rgba(0, 0, 0, .14); border: 2px solid var(--felt-line); border-radius: 16px;
}
.playmat .zone-label {
  position: absolute; top: -.8em; left: 16px; padding: 0 10px; border-radius: 6px;
  background: var(--felt); font: 700 .74rem/2 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--felt-ink);
}
.playmat .curve { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.playmat .decklist.zone { padding: 22px 16px 16px; }
@media (min-width: 1000px) { .playmat .decklist.zone { margin-top: 12px; } }
.playmat .bar { fill: #F2B544; }
.playmat .col:hover .bar, .playmat .col:focus .bar { fill: #FFD27A; }
.playmat .chart-grid { stroke: var(--felt-line); }
.playmat .plan { margin: 0; }
.playmat .plan li { background: rgba(0, 0, 0, .16); border-color: transparent; }
/* Plan steps numbered with Lorcana-style ink-cost hexagons */
.playmat .plan li::before { width: 36px; height: 40px; border-radius: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Stats as perlas on a string (11 Nov 2026; were bevelled lore gems): at the Sandbar lore is counted in pearls on a
   string, as the stream scoreboard draws it. Flat pearls in the deck's two inks with a navy keyline and one flat
   highlight, threaded on one tan string (each stat draws its own segment, so a wrapped row keeps its string). The
   string runs only between the pearls: it starts at the first pearl's centre and ends at the last's, so it never
   trails off into the mat as if cut (the owner, 11 Nov 2026: "the pearl lines look cut off"). */
.playmat .stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; margin: 20px 0 4px; }
.playmat .stat { --pearl: 68px; position: relative; display: grid; justify-items: center; align-content: start; width: 80px; padding: 0; background: none; border: 0; border-radius: 0; text-align: center; }
.playmat .stat::before {
  content: ""; position: absolute; z-index: 0; left: -12px; right: -12px; top: calc(var(--pearl) / 2 - 1px); height: 2px;
  border-radius: 2px; background: #C9A06A;
}
.playmat .stat:first-child::before { left: 50%; }
.playmat .stat:last-child::before { right: 50%; }
.playmat .pearl {
  position: relative; z-index: 1; display: grid; place-items: center; width: var(--pearl); height: var(--pearl); border-radius: 50%;
  background: #F2C35D; box-shadow: inset 0 0 0 3px var(--sil);
}
.playmat .pearl::before {
  content: ""; position: absolute; left: 21%; top: 18%; width: 19%; height: 13%; border-radius: 50%;
  background: #FFF1C7; transform: rotate(-30deg);
}
.playmat .pearl.is-sapphire { background: #8DB7F0; }
.playmat .pearl.is-sapphire::before { background: #DCEBFF; }
.playmat .stat-value { position: relative; margin: 0; white-space: nowrap; font: 400 1.65rem/1 var(--font-display); color: var(--sil); }
.playmat .stat-label { margin: 7px 0 0; font: 700 .68rem/1.2 var(--font-hud); letter-spacing: .1em; text-transform: uppercase; color: var(--felt-ink); }

/* Lore tracker printed along the bottom (first to 20 lore wins) */
.lore-track { display: none; }
@media (min-width: 900px) {
  .playmat .lore-track { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 26px; font: 700 .74rem/1 var(--font-hud); color: var(--felt-ink); }
  .playmat .lore-track span { margin-right: 8px; font-size: 1.05rem; letter-spacing: .06em; }
  .playmat .lore-track i { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; border: 1.5px solid var(--felt-line); font-style: normal; }
  .playmat .lore-track i:last-child { border-color: #F2B544; color: #F2B544; }
}
@media (max-width: 559px) {
  .hub.playmat { padding: 18px 12px 14px; border-radius: 20px; }
  .hub.playmat::after { inset: 6px; border-radius: 15px; }
  .playmat .zone, .playmat .decklist.zone { padding: 20px 10px 12px; }
  .playmat .stats { gap: 10px; justify-content: space-between; }
  .playmat .stat { --pearl: 58px; width: 66px; }
  .playmat .stat::before { left: -6px; right: -6px; }
  .playmat .stat-value { font-size: 1.4rem; }
  .playmat .stat-label { font-size: .6rem; letter-spacing: .06em; }
}
@media (max-width: 380px) {
  .playmat .stats { justify-content: center; }
  .playmat .stat { --pearl: 52px; width: 60px; }
  .playmat .stat-value { font-size: 1.25rem; }
  .playmat .stat-label { font-size: .56rem; }
}

/* =====================================================================
   D. PERLAS VAULT
   ===================================================================== */
.perlas {
  background:
    radial-gradient(1100px 520px at 12% 8%, rgba(245, 158, 11, .1), transparent 60%),
    radial-gradient(900px 520px at 92% 85%, rgba(0, 229, 255, .08), transparent 60%),
    var(--abyss);
}
.vault { display: grid; gap: 30px; }
@media (min-width: 1000px) {
  .vault { grid-template-columns: 330px minmax(0, 1fr); gap: 40px; align-items: start; }
  .vault-side { position: sticky; top: calc(var(--header-h) + 24px); }
}
.vault-side { text-align: center; }
.oyster { position: relative; display: block; width: min(300px, 80vw); margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* The Perlas, a golden South Sea pearl in a gold-lip half-shell (1 Nov 2026, drawn like the stream scenes;
   brand-source/perlas-2026-11), as a die-cut vinyl sticker on an off-white border (assets/img/perlas-sticker.webp,
   made from perlas.png by make_site_files.py). Stuck on slightly crooked with one real shadow. Hover lifts a corner;
   a tap pops it. */
.oyster-art { position: relative; display: block; transform: rotate(-4deg); }
.oyster-art img {
  position: relative; display: block; width: 100%; height: auto;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .45));
  transform-origin: 50% 85%; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), filter .4s;
}
.oyster:hover .oyster-art img { transform: translateY(-3px) rotate(1.5deg); filter: drop-shadow(0 9px 9px rgba(0, 0, 0, .4)); }
.oyster.is-open .oyster-art img { transform: scale(1.06); filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .4)); }
.oyster:focus-visible { outline: none; }
.oyster:focus-visible .oyster-art img { filter: drop-shadow(0 0 0 var(--cyan)) drop-shadow(0 0 14px rgba(0, 229, 255, .9)); }
.oyster-sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.oyster.is-open .oyster-sparks { opacity: 1; }
.oyster-hint { display: inline-block; margin-top: 8px; font: 700 .76rem var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.oyster-float {
  position: absolute; left: 50%; top: 6%; pointer-events: none;
  font: 700 1.5rem var(--font-hud); letter-spacing: .04em; color: var(--gold); -webkit-text-stroke: 4px var(--navy); paint-order: stroke fill;
  animation: float-up 1.1s ease-out forwards;
}
/* The sparkles are the Philippine sun's eight rays (the pearl's own glint), popping out one after another */
.oyster-sparks path { transform-box: fill-box; transform-origin: center; }
.oyster.is-open .oyster-sparks path { animation: glint-pop .75s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--k) * 70ms); }
@keyframes glint-pop { 0% { transform: scale(0) rotate(-45deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
/* An idle glint twinkling on the pearl every few seconds */
.pearl-glint { position: absolute; left: 59.5%; top: 33%; width: 13%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); pointer-events: none; animation: pearl-glint 5.5s ease-in-out 1.5s infinite; }
.pearl-glint svg { width: 100%; height: 100%; }
@keyframes pearl-glint { 0%, 78%, 100% { transform: translate(-50%, -50%) scale(0) rotate(0); } 86% { transform: translate(-50%, -50%) scale(1) rotate(45deg); } 94% { transform: translate(-50%, -50%) scale(.2) rotate(90deg); } }
.oyster:hover .pearl-glint { animation-duration: 1.6s; animation-delay: 0s; }
/* Perlas flying between the oyster, the wallet and the prices (main.js flyPerlas) */
.perla-fly { position: fixed; z-index: 90; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.wallet.bump .wallet-value svg { animation: glyph-spin .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes glyph-spin { 40% { transform: scale(1.35) rotate(-20deg); } }
@keyframes float-up { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -70px); } }

.wallet { max-width: 340px; margin: 16px auto 14px; padding: 16px; border-radius: 20px; background: rgba(13, 27, 42, .92); border: 2px solid var(--amber); }
.wallet-label { margin: 0; font: 700 .76rem/1.2 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.wallet-value { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 8px; font: 800 2.5rem/1.1 var(--font-body); color: var(--cream); }
.wallet-value svg { width: 30px; height: 30px; }
.wallet-value output { min-width: 4ch; }
.wallet.bump .wallet-value { animation: bump .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.12); } }
.wallet-note { margin: 0; font-size: .84rem; color: var(--muted); }
.earn { list-style: none; max-width: 340px; margin: 0 auto; padding: 0; display: grid; gap: 8px; text-align: left; }
.earn li { padding: 10px 12px; border-radius: 12px; background: rgba(10, 17, 24, .45); border: 1px solid var(--line); font-size: .9rem; color: var(--text-2); }
.earn b { display: block; color: var(--capiz); font-weight: 800; }

/* ---------- Kuya's Sari-Sari: the rewards as a Filipino corner store ----------
   Hand-painted sign, striped scalloped awning, painted plywood price board on teal posts, wooden counter. */
.sari { --paint: #24566A; --board: #F5E7CB; --canvas: #FFFBF0; --ink: #13263D; --price: #9A3412; position: relative; padding-top: 6px; }
.sari-sign {
  position: relative; z-index: 3; width: fit-content; max-width: 100%; margin: 0 auto -8px; padding: 10px 28px 12px;
  text-align: center; border-radius: 8px; background: #FFF1D6; border: 3px solid var(--paint);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .28); transform: rotate(-1.2deg);
}
.sari-sign::before, .sari-sign::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%);
  background: radial-gradient(circle at 35% 35%, #E6E1D8, #8D8578 70%);
}
.sari-sign::before { left: 9px; }
.sari-sign::after { right: 9px; }
.sari-name { font: 400 clamp(2.3rem, 1.7rem + 2.2vw, 3.2rem)/1 var(--font-display); letter-spacing: .02em; color: #C2410C; text-shadow: 2px 2px 0 var(--ink); }
.sari-sub { margin: 4px 0 0; font: 700 .76rem/1.2 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--paint); }
/* Canvas awning: amber/cream stripes, each ending in a scallop */
.sari-awning {
  position: relative; z-index: 2; height: 56px; margin: 0 -10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .22), transparent 45%), repeating-linear-gradient(90deg, #F59E0B 0 32px, var(--canvas) 32px 64px);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 16px) no-repeat, radial-gradient(circle at 50% 0, #000 15.5px, transparent 16px) bottom left / 32px 16px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 16px) no-repeat, radial-gradient(circle at 50% 0, #000 15.5px, transparent 16px) bottom left / 32px 16px repeat-x;
}
.sari-awning::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--paint); }
.sari-board {
  position: relative; container-type: inline-size; margin: -10px 0 0; padding: 22px 18px 8px;
  background: repeating-linear-gradient(180deg, rgba(120, 80, 40, .05) 0 1px, transparent 1px 15px), var(--board);
  border: 10px solid var(--paint); border-top: 0; color: var(--ink);
  box-shadow: inset 0 18px 14px -12px rgba(60, 30, 10, .3); /* the awning's shade */
}
/* The counter in the deck's silhouette colour, lit along its top edge */
.sari-counter {
  height: 20px; margin: 0 -10px; border-radius: 4px;
  background: var(--sil); box-shadow: inset 0 3px 0 rgba(242, 195, 93, .6), 0 12px 20px rgba(0, 0, 0, .45);
}
/* The classic corner-store joke sign: a cardboard tag taped to the front of the counter
   (down here it can never collide with the store sign, whatever the width) */
.sari-tag {
  position: relative; z-index: 2; width: fit-content; max-width: 100%; margin: -8px auto 0; padding: 8px 14px 9px; text-align: center;
  background: #D9B98C; color: #3A2410; border-radius: 3px; transform: rotate(-2.5deg);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
}
.sari-tag b { display: block; font: 400 1.25rem/1.1 var(--font-display); letter-spacing: .03em; }
.sari-tag span { display: block; font: 700 1.15rem/1.1 var(--font-hand); }
@media (min-width: 720px) { .sari-tag { margin: -8px 18px 0 auto; transform: rotate(3deg); } }

/* Price list rows */
.rewards { list-style: none; margin: 0; padding: 0; }
.reward {
  position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 14px 8px; border-radius: 10px; border-bottom: 2px dashed rgba(19, 38, 61, .16); transition: background .25s;
}
.reward:last-child { border-bottom: 0; }
.reward:hover { background: rgba(245, 158, 11, .09); }
.reward.is-active { background: rgba(245, 158, 11, .16); }
.reward-art { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 12px; background: var(--ink); }
.reward-art svg { width: 46px; height: 46px; overflow: visible; }
.reward-top { display: flex; align-items: flex-end; gap: 10px; }
.reward h4 { flex: 0 1 auto; min-width: 0; font-size: 1.55rem; line-height: 1.05; color: var(--ink); }
.reward-dots { flex: 1 1 18px; min-width: 18px; margin-bottom: 7px; border-bottom: 3px dotted rgba(19, 38, 61, .32); }
.cost { flex: none; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 1px; font: 700 1.1rem var(--font-hud); color: var(--price); }
.cost svg { width: 22px; height: 22px; }
.reward-say { display: grid; margin-top: 4px; }
.reward-desc, .reward-line { grid-area: 1 / 1; margin: 0; transition: opacity .25s, transform .3s, visibility 0s .3s; }
.reward-desc { font-size: .94rem; color: #3B4A5E; }
/* Kuya's reaction line, in the media kit's Kuya bubble: cream, a navy border and offset shadow, amber Nunito Black
   Italic with a navy outline, a tail pointing back at the item. It pops in like a speech bubble. */
.reward-say { min-height: 2.3em; }
.reward-line {
  position: relative; justify-self: start; align-self: start; padding: 3px 12px 4px; border-radius: 14px;
  background: #FFF9EE; border: 2px solid var(--navy); box-shadow: 3px 4px 0 rgba(13, 27, 42, .3);
  font: italic 900 1.02rem/1.25 var(--font-kuya); color: var(--amber); -webkit-text-stroke: 2.5px var(--navy); paint-order: stroke fill;
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.85); transform-origin: 10% 100%;
}
.reward-line::before {
  content: ""; position: absolute; left: -7px; top: 50%; width: 10px; height: 10px; margin-top: -5px; transform: rotate(45deg);
  background: #FFF9EE; border: solid var(--navy); border-width: 0 0 2px 2px;
}
.reward.is-active .reward-line { transition: opacity .2s, transform .45s cubic-bezier(.3, 1.6, .5, 1), visibility 0s; }
.reward.is-active .reward-desc { opacity: 0; visibility: hidden; }
.reward.is-active .reward-line { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s, visibility 0s; }
.redeem {
  flex: none; min-height: var(--tap); padding: 9px 16px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--amber); color: var(--navy); font: 700 .8rem var(--font-hud); letter-spacing: .1em; text-transform: uppercase;
  transition: transform .15s, background .2s;
}
.redeem:hover { background: var(--gold); }
.redeem:active { transform: scale(.95); }
.redeem.is-short { background: #E6DBC4; color: #5B6472; }
.redeem.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
/* Narrow board: name on its own line, then ······ price [Try it] */
@container (max-width: 460px) {
  .reward { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px 4px; }
  .reward-art { width: 48px; height: 48px; }
  .reward-art svg { width: 38px; height: 38px; }
  .reward-top { flex-wrap: wrap; align-items: center; row-gap: 4px; }
  .reward h4 { flex: 1 1 100%; font-size: 1.2rem; }
  .reward-dots { margin-bottom: 0; }
}

/* ---------- The Sari-Sari's life (1 Nov 2026), after the stream's Sari-Sari scene ----------
   Chip bags pegged on a wire above the awning and a bare bulb with moths (built by main.js setupSari, only in the
   free space beside the sign), a warm flicker, the shop opening on first sight, and the sale ringing up. */
.sari-wire { position: absolute; z-index: 1; left: 0; right: 0; top: 22px; height: 20px; pointer-events: none; }
.sari-cord { position: absolute; inset: 0; width: 100%; height: 20px; overflow: visible; }
.chip-bag, .sari-bulb { position: absolute; width: 40px; margin-left: -20px; transform-origin: 50% 0; animation: hang-sway var(--d, 4s) ease-in-out var(--dl, 0s) infinite alternate; }
.chip-bag svg { display: block; width: 40px; height: 56px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
@keyframes hang-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.sari-bulb { width: 24px; margin-left: -12px; }
.sari-bulb svg { position: relative; display: block; width: 24px; height: 60px; }
.bulb-glass { fill: #FFE6A8; }
.bulb-halo {
  position: absolute; left: 50%; top: 44px; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 140, .55), rgba(255, 180, 90, .14) 42%, transparent 68%);
  animation: bulb-hum 4.6s infinite;
}
@keyframes bulb-hum { 0%, 100% { opacity: .9; } 47% { opacity: .9; } 48% { opacity: .55; } 49% { opacity: .95; } 72% { opacity: .82; } }
/* two moths circling the bulb */
.moth { position: absolute; left: 50%; top: 44px; width: 0; height: 0; animation: moth-orbit var(--s, 3s) linear var(--o, 0s) infinite; }
.moth i { position: absolute; left: var(--r); top: 0; width: 6px; height: 4px; margin: -2px 0 0 -3px; border-radius: 50%; background: #EDE8DF; opacity: .8; animation: moth-flap .16s steps(2) infinite; }
@keyframes moth-orbit { to { transform: rotate(360deg); } }
@keyframes moth-flap { 50% { transform: scaleX(.4); } }
/* the sale rings up: the bulb flares */
.sari.ka-ching .bulb-halo { animation: bulb-flare .7s ease-out; }
@keyframes bulb-flare { 0% { opacity: 1; transform: scale(1); } 30% { opacity: 1; transform: scale(1.6); } 100% { opacity: .9; transform: scale(1); } }

/* The shop opens on first sight (.is-pending until it scrolls into view; no JS or reduced motion: open already) */
.sari.is-pending .sari-awning { transform: scaleY(0); }
.sari.is-pending .sari-sign { opacity: 0; transform: translateY(-18px) rotate(-8deg); }
.sari.is-pending .sari-wire { opacity: 0; }
.sari.is-pending .reward { opacity: 0; transform: translateX(-16px); }
.sari.is-pending .reward-dots { clip-path: inset(0 100% 0 0); }
.sari.is-pending .sari-tag { opacity: 0; transform: translateY(-20px) rotate(-12deg); }
.sari-awning { transform-origin: 50% 0; transition: transform .7s cubic-bezier(.3, 1.45, .5, 1) .15s; }
.sari-sign { transition: opacity .3s, transform .8s cubic-bezier(.3, 1.6, .5, 1); }
.sari-wire { transition: opacity .6s .5s; }
.sari .reward { transition: background .25s, opacity .5s calc(.55s + var(--i, 0) * 110ms), transform .6s cubic-bezier(.2, .8, .2, 1) calc(.55s + var(--i, 0) * 110ms); }
.reward-dots { transition: clip-path .7s ease-out calc(.8s + var(--i, 0) * 110ms); }
.sari-tag { transition: opacity .3s 1.4s, transform .9s cubic-bezier(.3, 1.7, .5, 1) 1.4s; }
.sari.is-open .sari-bulb .bulb-glass { animation: bulb-on 1.1s steps(1) .5s both; }
.sari.is-open .sari-bulb .bulb-halo { animation: bulb-on-halo 1.1s steps(1) .5s both, bulb-hum 4.6s 1.6s infinite; }
@keyframes bulb-on { 0% { fill: #6B6250; } 20% { fill: #FFE6A8; } 30% { fill: #6B6250; } 45% { fill: #FFE6A8; } 55% { fill: #8B7F60; } 70%, 100% { fill: #FFE6A8; } }
@keyframes bulb-on-halo { 0% { opacity: 0; } 20% { opacity: .8; } 30% { opacity: 0; } 45% { opacity: .9; } 55% { opacity: .2; } 70%, 100% { opacity: .9; } }
/* "Bawal ang utang" (no credit) swings when you try to buy without enough Perlas */
.sari-tag.swing { animation: tag-swing .9s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 0; }
@keyframes tag-swing { 15% { transform: rotate(-9deg); } 35% { transform: rotate(7deg); } 55% { transform: rotate(-4deg); } 75% { transform: rotate(2deg); } }
/* paid: the price glyph spins as the Perlas land, the row gets a warm lamplight sweep, the art tile pops */
.reward.is-paid .cost svg { animation: glyph-spin .55s cubic-bezier(.3, 1.6, .5, 1); }
.reward.is-paid { animation: lamp-sweep 1s ease-out; }
@keyframes lamp-sweep { 0% { background: rgba(255, 210, 98, .55); } 100% { background: rgba(245, 168, 37, .16); } }
.reward-art { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), box-shadow .4s; }
.reward:hover .reward-art { transform: rotate(-3deg); }
.reward.is-active .reward-art { transform: rotate(-4deg) scale(1.08); box-shadow: 0 0 0 3px var(--gold), 0 6px 12px rgba(19, 38, 61, .3); }

/* reward art motion (1 Nov 2026): each icon idles gently, like the scenes' ambient motion, and tells its story when
   bought. Idle loops are slow and small; the purchase moves are snappy with overshoot. */
/* Hydrate: the water sloshes; bought, Kuya raises the tumbler for a toast, takes a big gulp (the level drops in
   two swallows) and water splashes off the rim */
.r-cup { transform-box: view-box; transform-origin: 48px 90px; }
.r-water { transform-box: view-box; transform-origin: 48px 90px; transform: translateY(6px); transition: transform .5s ease-out; }
.r-surface { transform-box: view-box; transform-origin: 48px 34px; animation: slosh 3.2s ease-in-out infinite alternate; }
@keyframes slosh { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.is-active .r-cup { animation: toast-raise 2.4s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes toast-raise { 0% { transform: none; } 18% { transform: translateY(-10px) rotate(-14deg); } 30%, 62% { transform: translateY(-8px) rotate(-26deg); } 80% { transform: translateY(-4px) rotate(4deg); } 100% { transform: none; } }
.is-active .r-water { animation: gulp 2.4s ease-in-out; }
@keyframes gulp { 0%, 30% { transform: translateY(6px); } 42% { transform: translateY(22px); } 50% { transform: translateY(20px); } 62% { transform: translateY(36px); } 90% { transform: translateY(36px); } 100% { transform: translateY(6px); } }
.r-drop { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-active .r-drop.d1 { animation: splash-r 1s ease-out .35s; }
.is-active .r-drop.d2 { animation: splash-l 1s ease-out .45s; }
@keyframes splash-r { 0% { opacity: 0; transform: translate(-22px, -6px) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(4px, 30px) scale(1); } }
@keyframes splash-l { 0% { opacity: 0; transform: translate(20px, -14px) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-2px, 28px) scale(1); } }
/* Posture: a slow slouched breath; bought, he snaps upright, his stripes light up the spine from the bottom, and the
   tick pops with a gold ring */
.r-torso { transform-box: view-box; transform-origin: 37px 60px; transform: rotate(16deg); animation: slouch-breathe 3.6s ease-in-out infinite; transition: transform .9s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes slouch-breathe { 50% { transform: rotate(19deg); } }
.is-active .r-torso { transform: rotate(0); animation: none; }
.r-spine { transition: opacity .3s; opacity: .35; }
.is-active .r-spine { opacity: 1; animation: stripe-pulse .5s ease-in-out 3; }
.is-active .r-spine.s2 { animation-delay: .15s; }
.is-active .r-spine.s3 { animation-delay: .3s; }
.r-ok { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.4); transition: opacity .3s .6s, transform .4s .6s cubic-bezier(.3, 1.6, .5, 1); }
.is-active .r-ok { opacity: 1; transform: scale(1); }
.r-ring { transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-active .r-ring { animation: ring-out .7s ease-out .7s; }
@keyframes ring-out { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
/* Ear-fin kawag: a twitch now and then; bought, both fin-ears wiggle, his head bobs, and two hearts float up */
.r-fin-l { transform-box: view-box; transform-origin: 40px 58px; animation: kp-twitch-l 6s ease-in-out infinite; }
.r-fin-r { transform-box: view-box; transform-origin: 56px 58px; animation: kp-twitch-r 7s ease-in-out 1.2s infinite; }
.is-active .r-fin-l { animation: kawag-l .28s ease-in-out 8 alternate; }
.is-active .r-fin-r { animation: kawag-r .28s ease-in-out 8 alternate; }
.r-head { transform-box: view-box; transform-origin: 48px 90px; }
.is-active .r-head { animation: head-bob .56s ease-in-out 4; }
@keyframes head-bob { 50% { transform: translateY(-3px) rotate(-3deg); } }
.r-hearts path { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-active .r-hearts .h1 { animation: heart-float 1.4s ease-out .2s; }
.is-active .r-hearts .h2 { animation: heart-float 1.4s ease-out .6s; }
@keyframes heart-float { 0% { opacity: 0; transform: translateY(10px) scale(.4); } 25% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-18px) scale(.9); } }
/* Deck review: bought, the clipboard tilts in, the three ticks draw one by one, and a gold star stamp thumps on */
.r-board { transform-box: view-box; transform-origin: 48px 88px; }
.is-active .r-board { animation: board-in .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes board-in { 0% { transform: rotate(-10deg) scale(.9); } 100% { transform: none; } }
.r-stamp { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(2) rotate(-20deg); transition: opacity .2s, transform .25s; }
.is-active .r-stamp { opacity: 1; transform: rotate(-12deg); transition: opacity .15s 1.5s, transform .35s cubic-bezier(.3, 1.8, .5, 1) 1.5s; }
.r-bolt { transform-box: fill-box; transform-origin: center; }
.is-active .r-bolt { animation: zap .5s ease-in-out 4; }
@keyframes zap { 25% { transform: rotate(-6deg) scale(1.08); } 75% { transform: rotate(6deg) scale(1.08); } }
.r-stripes path { opacity: .35; transition: opacity .3s; }
.is-active .r-stripes path { opacity: 1; filter: drop-shadow(0 0 6px #00E5FF); animation: stripe-pulse .4s ease-in-out infinite; }
.r-tick { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .35s; }
.is-active .r-tick { stroke-dashoffset: 0; }
.is-active .r-tick.t2 { transition-delay: .5s; }
.is-active .r-tick.t3 { transition-delay: 1s; }
.r-sheen { transform: translateX(0) skewX(-20deg); }
.reward:hover .r-sheen, .is-active .r-sheen { animation: sheen 1.1s ease-in-out; }
@keyframes sheen { to { transform: translateX(150px) skewX(-20deg); } }
.r-pack-top { transform-box: view-box; transform-origin: 22px 18px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.is-active .r-pack-top { transform: rotate(-24deg) translate(-4px, -8px); }
/* "Tell Kuya Who Hurt You": the heart in the shield beats */
.r-heart { transform-box: fill-box; transform-origin: center; animation: heart-idle 4s ease-in-out infinite; }
@keyframes heart-idle { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.08); } 86% { transform: scale(1); } }
.is-active .r-heart { animation: heart-beat .7s ease-in-out 3; }
@keyframes heart-beat { 30% { transform: scale(1.2); } 60% { transform: scale(.95); } }
/* bought, the shield steps forward and a protective gold ring pulses out round it */
.r-shield { transform-box: view-box; transform-origin: 48px 48px; }
.is-active .r-shield { animation: shield-up .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes shield-up { 40% { transform: scale(1.12); } }
.r-guard { transform-box: fill-box; transform-origin: center; opacity: 0; }
.is-active .r-guard { animation: ring-out .9s ease-out 2; }
/* Food check (2 Nov 2026): steam curls up off the rice; bought, the spoon scoops twice and the steam puffs */
.r-steam path { opacity: 0; transform-box: fill-box; transform-origin: bottom; animation: steam 3.4s ease-in-out infinite; }
.r-steam .st2 { animation-delay: 1.1s; }
.r-steam .st3 { animation-delay: 2.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px) scaleY(.7); } 40% { opacity: .85; } 100% { opacity: 0; transform: translateY(-8px) scaleY(1.1); } }
.is-active .r-steam path { animation: steam .9s ease-out 3; }
.r-spoon { transform-box: view-box; transform-origin: 58px 50px; }
.is-active .r-spoon { animation: scoop .7s ease-in-out 2; }
@keyframes scoop { 40% { transform: rotate(-18deg) translate(-6px, 4px); } 70% { transform: rotate(6deg) translateY(-6px); } }
/* Blush check: the fin-ears twitch now and then; bought, he ducks his head shyly, his fin-ears flush pink and
   tremble, and three hearts float up */
.r-ear-l { transform-box: view-box; transform-origin: 40px 58px; animation: kp-twitch-l 6s ease-in-out infinite; }
.r-ear-r { transform-box: view-box; transform-origin: 56px 58px; animation: kp-twitch-r 7s ease-in-out 1.2s infinite; }
.r-shy { transform-box: view-box; transform-origin: 48px 90px; }
.is-active .r-shy { animation: shy-tilt 2.4s ease-in-out; }
@keyframes shy-tilt { 15%, 80% { transform: rotate(-7deg) translateY(2px); } }
.is-active .r-ear-l, .is-active .r-ear-r { animation: shy .12s ease-in-out 14 alternate; }
@keyframes shy { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.r-flush { transition: fill .5s; }
.is-active .r-flush { fill: #FF6F9C; }
.r-kilig path { opacity: 0; transform-box: fill-box; transform-origin: center; }
.is-active .r-kilig .h1 { animation: heart-float 1.4s ease-out .1s; }
.is-active .r-kilig .h2 { animation: heart-float 1.4s ease-out .45s; }
.is-active .r-kilig .h3 { animation: heart-float 1.4s ease-out .8s; }
.r-squiggle { opacity: 0; transition: opacity .3s; }
.is-active .r-squiggle { opacity: 1; }
/* Pure Tagalog: the sun's rays turn slowly; bought, the bubble pops, the sun spins and the three stars twinkle */
.r-sun { transform-box: view-box; transform-origin: 48px 40px; animation: sun-turn 24s linear infinite; }
@keyframes sun-turn { to { transform: rotate(360deg); } }
.is-active .r-sun { animation: sun-spin 1.2s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes sun-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.r-bubble { transform-box: view-box; transform-origin: 30px 80px; }
.is-active .r-bubble { animation: bubble-pop .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bubble-pop { 0% { transform: scale(.7); } 100% { transform: none; } }
.r-stars path { transform-box: fill-box; transform-origin: center; }
.is-active .r-stars path { animation: star-pop .5s ease-in-out 3; }
.is-active .r-stars .s2 { animation-delay: .15s; }
.is-active .r-stars .s3 { animation-delay: .3s; }
/* not "twinkle": that name belongs to the sky's stars (a soft fade), and a second keyframes rule of that name won */
@keyframes star-pop { 50% { transform: scale(1.5) rotate(36deg); } }
/* Time-out: the chair rests in its corner; bought, it slides in (the Veranda Chair Slide) and the timer runs down */
.r-chair { transform-box: view-box; transform-origin: 50px 88px; }
.is-active .r-chair { animation: chair-slide .7s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes chair-slide { 0% { transform: translateX(34px) rotate(4deg); } 70% { transform: translateX(-3px) rotate(-2deg); } 100% { transform: none; } }
.r-clock { stroke-dashoffset: 0; }
.is-active .r-clock { animation: clock-down 2.4s linear .5s both; }
@keyframes clock-down { to { stroke-dashoffset: 1; } }
.r-timer { transform-box: fill-box; transform-origin: center; }
.is-active .r-timer { animation: shield-up .5s cubic-bezier(.3, 1.6, .5, 1) .4s; }

/* =====================================================================
   E. BROADCAST TIDES
   ===================================================================== */
.tides { background: linear-gradient(180deg, #1E293B 0%, #172238 60%, #132238 100%); }
.tides-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.tides-head > div { max-width: 700px; }
.tz-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(10, 17, 24, .65); border: 1px solid var(--line); }
.tz-toggle button { min-height: var(--tap); padding: 9px 14px; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: 700 .8rem var(--font-hud); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.tz-toggle button:hover { color: var(--gold); }
.tz-toggle [aria-checked="true"] { background: var(--amber); color: var(--navy); }

.tide-chart { position: relative; margin: 0 0 22px; padding: 16px 16px 6px; }
.tide-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font: 800 .98rem var(--font-body); color: var(--cream); margin-bottom: 4px; }
.tide-zone { font-weight: 700; font-size: .84rem; color: var(--muted); }
.tide-plot { height: 210px; }
.tide-plot svg { width: 100%; height: 100%; overflow: visible; }
.tide-area { fill: var(--cyan); fill-opacity: .1; }
.tide-line { fill: none; stroke: var(--cyan-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tide-day { fill: var(--muted); font: 800 12px var(--font-body); text-anchor: middle; }
.tide-day.is-today { fill: var(--cream); }
.tide-today-line { stroke: rgba(245, 158, 11, .7); stroke-width: 1; shape-rendering: crispEdges; }
.tide-today-dot { fill: var(--amber); }
.peak { outline: none; cursor: default; }
.peak .hit { fill: transparent; }
.peak .dot { fill: var(--cyan-2); stroke: #1A2539; stroke-width: 2; }
.peak:hover .dot, .peak:focus .dot { fill: var(--cyan); }
.peak:focus-visible .hit { stroke: var(--cyan); stroke-width: 2; rx: 8; }
.peak.is-live .dot { fill: var(--cyan); animation: live-dot 1.2s ease-in-out infinite; }
@keyframes live-dot { 50% { r: 9; } }
.peak-tag { fill: var(--cream); font: 800 11px var(--font-body); text-anchor: middle; letter-spacing: .08em; }

.slots { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.slot {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 16px 18px; border-radius: 20px; background: rgba(10, 17, 24, .45); border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s;
}
.slot.is-next { border-color: var(--hover-line); }
.slot.is-live { border-color: var(--cyan); box-shadow: var(--glow); background: linear-gradient(90deg, rgba(0, 229, 255, .12), rgba(10, 17, 24, .45)); }
.slot-day { width: 74px; padding: 10px 0; border-radius: 14px; text-align: center; background: #1B3150; border: 1px solid var(--line-2); }
.slot-day b { display: block; font: 400 1.8rem/1 var(--font-display); color: var(--cream); }
.slot-day small { display: block; margin-top: 4px; font: 600 .68rem var(--font-hud); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.slot-time { margin: 0; font: 800 1.05rem var(--font-body); color: var(--capiz); }
.slot-alt { margin: 0; font-size: .8rem; font-weight: 700; color: var(--muted); }
.slot h3 { margin: 6px 0 4px; font-size: 1.3rem; color: var(--cream); }
.slot-note { margin: 0; font-size: .93rem; color: var(--text-2); }
.slot-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.slot-badge { padding: 4px 9px; border-radius: 999px; background: var(--cyan); color: #04222A; font: 700 .68rem/1.2 var(--font-hud); letter-spacing: .12em; text-transform: uppercase; }
.slot-badge.later { background: rgba(148, 197, 230, .14); color: var(--text-2); }
.cal-link { display: inline-flex; align-items: center; gap: 6px; font: 800 .82rem var(--font-body); color: var(--text-2); text-decoration: none; }
.cal-link svg { width: 16px; height: 16px; }
.cal-link:hover { color: var(--capiz); }
.tides-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: .92rem; color: var(--muted); }
.tides-foot p { margin: 0; }
.tides-foot b { color: var(--text-2); }

/* ---------- Tide board: the schedule chalked up on a wood-framed beach-shack chalkboard ----------
   Works in both modes: "times TBC" rows now, and the tide chart + timed rows once schedule.timesSet is true. */
.chalkboard {
  --chalk: #EDEBE4; --chalk-2: rgba(237, 235, 228, .66); --chalk-line: rgba(237, 235, 228, .26);
  --chalk-amber: #F6C76B; --chalk-cyan: #9BE7F0; --slate: #22302A;
  position: relative; margin: 0 0 54px; padding: 24px 26px 22px; color: var(--chalk);
  border: 14px solid transparent; border-radius: 8px;
  background:
    radial-gradient(60% 50% at 26% 30%, rgba(255, 255, 255, .05), transparent 70%) padding-box,
    radial-gradient(45% 40% at 78% 74%, rgba(255, 255, 255, .04), transparent 70%) padding-box,
    linear-gradient(var(--slate), var(--slate)) padding-box,
    linear-gradient(180deg, rgba(242, 195, 93, .55) 0 3px, transparent 3px) border-box,
    var(--sil) border-box;
  /* The frame is the deck's silhouette, lit along its top edge (no rendered wood) */
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35), inset 0 0 44px rgba(0, 0, 0, .45), 0 18px 30px rgba(0, 0, 0, .4);
}
/* Chalk dust */
.chalkboard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: screen;
  background: url("../img/grain.svg") 0 0 / 180px 180px;
}
.chalk-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.chalk-title { margin: 0; font: 700 clamp(2.1rem, 1.7rem + 1.4vw, 2.8rem)/1 var(--font-hand); color: var(--chalk); text-shadow: 0 0 1px rgba(237, 235, 228, .5), 0 0 10px rgba(237, 235, 228, .12); }
.chalk-wave { display: block; width: 180px; height: 14px; margin-top: 2px; }
.chalk-doodle { flex: none; width: 128px; height: auto; opacity: .9; }
.chalkboard .tides-planned {
  position: relative; margin: 8px 0 6px; padding: 0; background: none; border: 0; border-radius: 0; max-width: 60ch;
  font: 700 1.35rem/1.25 var(--font-hand); color: var(--chalk-amber);
}
/* The first stream: the only "TBC" on the board (its date once streaming.firstStream is set), in a chalked box */
.chalkboard .tides-first { position: relative; margin: 6px 0 12px; font: 700 1.45rem/1.3 var(--font-hand); color: var(--chalk); }
.chalkboard .tides-first b {
  display: inline-block; margin-left: 4px; padding: 1px 10px 3px; font-weight: 700; color: var(--chalk-amber);
  border: 2px solid var(--chalk-amber); border-radius: 9px 14px 10px 13px; transform: rotate(-2deg);
}

/* Rows: chalked lines, not cards */
.chalkboard .slots { position: relative; grid-template-columns: 1fr; gap: 0; margin: 0; }
.chalkboard .slot {
  grid-template-columns: 92px minmax(0, 1fr); gap: 6px 22px; align-items: center;
  padding: 16px 4px; background: none; border: 0; border-top: 2px dashed var(--chalk-line); border-radius: 0; box-shadow: none;
}
.chalkboard .slot:first-child { border-top: 0; }
/* Times TBC: stream types without day boxes */
.chalkboard .slot.is-untimed { grid-template-columns: minmax(0, 1fr); }
/* Wide boards: two columns, like a menu board */
@media (min-width: 1000px) {
  .chalkboard .slots { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .chalkboard .slot:nth-child(2) { border-top: 0; }
}
.chalkboard .slot-day { width: auto; padding: 8px 4px 7px; background: none; border: 2px solid var(--chalk-2); border-radius: 9px 14px 10px 13px; transform: rotate(-2deg); }
.chalkboard .slot:nth-child(even) .slot-day { transform: rotate(1.6deg); }
.chalkboard .slot-day b { font: 700 1.8rem/1 var(--font-hand); color: var(--chalk); }
.chalkboard .slot-day small { margin-top: 2px; font: 700 1.05rem/1 var(--font-hand); letter-spacing: 0; text-transform: none; color: var(--chalk-2); }
.chalkboard .slot h3 { margin: 0 0 2px; font: 700 1.7rem/1.1 var(--font-hand); color: var(--chalk); }
.chalkboard .slot-note { font: 700 1.25rem/1.25 var(--font-hand); color: var(--chalk-2); }
.chalkboard .slot-time { font: 700 1.55rem/1.1 var(--font-hand); color: var(--chalk-amber); }
.chalkboard .slot-alt { font: 700 1.1rem/1.1 var(--font-hand); color: var(--chalk-2); }
.chalkboard .slot-foot { margin-top: 8px; }
.chalkboard .tag { padding: 3px 11px 5px; background: none; border: 1.5px solid var(--chalk-2); color: var(--chalk); font: 700 1.1rem/1 var(--font-hand); letter-spacing: 0; }
.chalkboard .slot-badge, .chalkboard .slot-badge.later { padding: 0; background: none; font: 700 1.2rem/1 var(--font-hand); letter-spacing: 0; text-transform: none; color: var(--chalk-2); }
.chalkboard .slot.is-next .slot-day { border-color: var(--chalk-amber); }
.chalkboard .slot.is-next .slot-badge { color: var(--chalk-amber); }
.chalkboard .slot.is-live { background: none; box-shadow: none; }
.chalkboard .slot.is-live .slot-day { border-color: var(--chalk-cyan); }
.chalkboard .slot.is-live .slot-badge { color: var(--chalk-cyan); }
.chalkboard .cal-link { color: var(--chalk); font: 700 1.15rem var(--font-hand); text-decoration: underline dashed 1.5px; text-underline-offset: 4px; }
.chalkboard .cal-link:hover { color: var(--chalk-amber); }

/* The tide chart, in chalk (only shown once times are set) */
.chalkboard .tide-chart { margin: 4px 0 10px; padding: 0; }
.chalkboard .tide-caption { font: 700 1.35rem var(--font-hand); color: var(--chalk); }
.chalkboard .tide-zone { font: 700 1.05rem var(--font-hand); color: var(--chalk-2); }
.chalkboard .tide-area { fill: var(--chalk); fill-opacity: .06; }
.chalkboard .tide-line { stroke: var(--chalk); stroke-width: 2.6; filter: url(#chalky); }
.chalkboard .chart-grid { stroke: var(--chalk-line); }
.chalkboard .tide-day { fill: var(--chalk-2); font: 700 16px var(--font-hand); }
.chalkboard .tide-day.is-today { fill: var(--chalk-amber); }
.chalkboard .tide-today-line { stroke: rgba(246, 199, 107, .7); }
.chalkboard .tide-today-dot { fill: var(--chalk-amber); }
.chalkboard .peak .dot { fill: var(--chalk); stroke: var(--slate); }
.chalkboard .peak:hover .dot, .chalkboard .peak:focus .dot { fill: var(--chalk-amber); }
.chalkboard .peak.is-live .dot { fill: var(--chalk-cyan); }
.chalkboard .peak-tag { fill: var(--chalk-amber); font: 700 15px var(--font-hand); letter-spacing: 0; }

/* Chalk tray along the bottom of the frame: three sticks and a felt eraser */
.chalk-tray {
  position: absolute; left: 3%; right: 3%; bottom: -28px; height: 16px; border-radius: 0 0 4px 4px;
  background: var(--sil); box-shadow: inset 0 3px 0 rgba(242, 195, 93, .5), 0 8px 12px rgba(0, 0, 0, .4);
}
.chalk-stick { position: absolute; bottom: 100%; left: 8%; width: 46px; height: 9px; border-radius: 5px; background: #F2EFE6; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.chalk-stick.is-amber { left: calc(8% + 54px); width: 30px; background: #F6C76B; }
.chalk-stick.is-cyan { left: calc(8% + 92px); width: 38px; background: #9BE7F0; }
.chalk-eraser { position: absolute; bottom: 100%; right: 9%; width: 68px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, #4A3527 0 52%, #CFC8B6 52%); }

@media (max-width: 559px) {
  .chalkboard { padding: 18px 14px 16px; border-width: 10px; }
  .chalk-doodle { width: 96px; }
  .chalkboard .slot { grid-template-columns: 72px minmax(0, 1fr); gap: 6px 14px; }
  .chalkboard .slot-day b { font-size: 1.5rem; }
  .chalkboard .slot-day small { font-size: .92rem; white-space: nowrap; }
  .chalkboard .slot h3 { font-size: 1.5rem; }
}

/* =====================================================================
   F. PORT AUTHORITY (footer)
   ===================================================================== */
.port { position: relative; z-index: 1; padding: 34px 0 30px; background: #0A1118; }
.port .wave-divider { position: absolute; top: -69px; left: 0; right: 0; margin: 0; }
.port-grid { display: grid; gap: 40px; padding-top: 24px; }
@media (min-width: 980px) { .port-grid { grid-template-columns: 1.1fr 1fr 1fr; align-items: start; } }
.port-crest { width: 120px; height: 120px; }
.port-name { margin: 16px 0 6px; line-height: 0; }
.port-name img { width: min(300px, 100%); height: auto; }
.port-tag { font: 700 .82rem/1.3 var(--font-hud); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
/* Kuya's sign-off, in his own font */
.port-signoff { margin: 16px 0 0; font: italic 900 1.35rem/1.25 var(--font-kuya); color: var(--amber); }
.port-signoff span { display: block; color: var(--text-2); }
.port h3 { margin-bottom: 14px; font-size: 1.9rem; color: var(--cream); }
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.social {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; text-decoration: none;
  background: rgba(19, 34, 56, .75); border: 1px solid var(--line-2); transition: border-color .2s;
}
.social svg { width: 22px; height: 22px; flex: none; color: var(--cream); }
.social span { min-width: 0; font-weight: 800; line-height: 1.2; }
.social small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .78rem; color: var(--muted); }
a.social:hover { border-color: var(--hover-line); }
a.social:hover svg { color: var(--capiz); }
.social.is-soon { opacity: .62; }
/* "Also on": spaced chips, wrapping into rows of two on phones */
.socials-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.socials-more:empty { display: none; }
.socials-more .more-label { margin-right: 4px; }
.socials-more a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  color: var(--text-2); font-weight: 800; text-decoration: none; background: rgba(19, 34, 56, .75); border: 1px solid var(--line-2); transition: border-color .2s, color .2s;
}
.socials-more a:hover { color: var(--capiz); border-color: var(--hover-line); }
@media (max-width: 559px) {
  .socials-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .socials-more .more-label { grid-column: 1 / -1; }
  .socials-more a { min-height: var(--tap); }
}
/* Message in a bottle: stories and suggestions go to bunso@, deck shares to decks@ (.mail-decks) */
.port-mail { padding: 24px; }
.mail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.port .mail-head h3 { margin: 0; }
.mail-bottle { width: 42px; height: 42px; flex: none; }
.port-mail > p { color: var(--text-2); margin-bottom: 14px; }
.mail-kinds { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.mail-kinds li { padding-left: 14px; border-left: 2px solid var(--hover-line); font-size: .92rem; line-height: 1.45; color: var(--text-2); }
.mail-kinds b { display: block; margin-bottom: 2px; font: 700 .76rem/1.3 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.port-mail .btn { max-width: 100%; }
.port-mail .btn-main { overflow-wrap: anywhere; }
.port-mail .link-btn { margin-top: 10px; }
.mail-decks { margin: 18px 0 0; }
.mail-kinds a { font-weight: 800; color: var(--capiz); overflow-wrap: anywhere; }
.mail-kinds a:hover { color: var(--cream); }
.port-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-2); }
.port-legal p { margin: 0; }
/* Low-key business contact: its own last line, same quiet style as the legal text
   (--text-2, not --muted: --muted fell to 4.2:1 on phones where the twilight glow is brightest) */
.port-legal .port-biz { flex-basis: 100%; }
.port-biz a { color: var(--text-2); text-decoration: none; border-bottom: 1px dotted rgba(199, 211, 224, .4); }
.port-biz a:hover { color: var(--capiz); border-bottom-color: var(--capiz); }

/* ---------- Floating bits ---------- */
/* Back to the top: Kuya's fin rising from the bottom edge, with a "^ Top" pill riding on it so it reads as a
   button (6 Nov 2026: the bare fin didn't say what it did). The pill is the .pill look, chevron in place of the dot */
.to-top {
  /* The fin never rises past its resting spot, so its flat base stays a few px below the screen edge: the pop-up
     eases in without overshoot and hover lifts only the pill (6 Nov 2026: the old springy pop-up and the 6 px hover
     lift showed the base. Making the fin longer instead looked stretched, so the drawing is the original) */
  position: fixed; z-index: 50; right: 10px; bottom: -7px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 0; border: 0; background: none; color: var(--gold); cursor: pointer;
  transform: translateY(calc(100% + 12px)); transition: transform .45s cubic-bezier(.2, .9, .3, 1);
}
.to-top.is-up { transform: none; }
.to-top-tag {
  /* margin-left centres the pill over the fin's tip, which sits at 45 of the fin's 58 px */
  display: inline-flex; align-items: center; gap: 5px; margin-left: 11px; padding: 4px 11px 4px 8px; border-radius: 999px;
  border: 2px solid var(--amber); background: rgba(13, 27, 42, .92); box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
  font: 700 .72rem/1.2 var(--font-hud); letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  transition: background .2s, color .2s, transform .25s cubic-bezier(.3, 1.5, .5, 1);
}
.to-top-tag svg { width: 12px; height: 12px; flex: none; color: var(--kit-cyan); }
.to-top.is-up .to-top-tag svg { animation: to-top-nudge 2.4s ease-in-out infinite; }
.to-top:hover .to-top-tag, .to-top:focus-visible .to-top-tag { background: var(--amber); color: var(--navy); transform: translateY(-5px); }
.to-top:hover .to-top-tag svg, .to-top:focus-visible .to-top-tag svg { color: var(--navy); }
/* 58×58 is the drawing's own ratio (a taller box letterboxed it, which left the base right at the edge) */
.to-top-fin { width: 58px; height: 58px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); transition: filter .2s; }
.to-top:hover .to-top-fin, .to-top:focus-visible .to-top-fin { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)) brightness(1.18); }
@keyframes to-top-nudge { 0%, 60%, 100% { transform: none; } 75% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .to-top.is-up .to-top-tag svg { animation: none; } }

.toast-zone { position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(440px, calc(100% - 32px)); display: grid; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: #0A1118; border: 1px solid var(--hover-line); color: var(--pearl);
  font-weight: 800; animation: toast-in .3s ease-out;
}
.toast svg { width: 20px; height: 20px; flex: none; color: var(--capiz); }
.toast.out { animation: toast-out .3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(14px); } }

.player { width: min(1100px, 94vw); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.player::backdrop { background: rgba(5, 9, 14, .84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.player-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.player-frame iframe { width: 100%; height: 100%; border: 0; }
.player-close { position: absolute; top: -16px; right: -10px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--amber); color: #1A1206; cursor: pointer; }
.player-close svg { width: 20px; height: 20px; }

/* ---------- Hype mode (Kaya Mo 'Yan, Kuya!) ---------- */
.hype .stripe { animation: stripe-hype .32s ease-in-out infinite alternate; }
@keyframes stripe-hype { from { opacity: .7; } to { opacity: 1; filter: drop-shadow(0 0 7px #00E5FF) drop-shadow(0 0 14px #00E5FF); } }
.hype .lantern-glow { animation-duration: .7s; }
.hype .wd-glow { stroke-opacity: 1; animation-duration: 4s; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .polaroid.reveal { transform: rotate(var(--rot)); }
}

/* ---------- Twilight bookend: the footer is where the sunset fades to night ---------- */
.port {
  background:
    radial-gradient(1400px 320px at 50% 100%, rgba(242, 138, 60, .3), rgba(176, 74, 94, .16) 45%, transparent 75%),
    linear-gradient(180deg, #0A1118 0%, #0C1328 60%, #181838 100%);
}
.port::before {
  content: ""; position: absolute; inset: 0 0 35% 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.4px 1.4px at 30px 40px, #fff, transparent),
    radial-gradient(1px 1px at 150px 110px, #DDF6FF, transparent),
    radial-gradient(1.2px 1.2px at 260px 30px, #FFF6E0, transparent),
    radial-gradient(.9px .9px at 340px 150px, #fff, transparent);
  background-size: 380px 200px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
  animation: twinkle 6s ease-in-out infinite;
}
.port-grid, .port-legal { position: relative; z-index: 1; }

/* Official crest on card backs and placeholder thumbnails */
.tcg-back img { width: 70%; height: auto; }

/* VTuber-style idle: breathing, hair sway, ear twitches, eyes that follow the visitor */
.kp-bob { transform-box: view-box; animation: kp-bob 3.8s ease-in-out infinite; }
@keyframes kp-bob { 50% { transform: translateY(2px); } }
.kp-tilt { transform-box: view-box; transform-origin: 180px 200px; transform: rotate(calc(var(--lx, 0) * 2.5deg)); transition: transform .45s ease-out; }
.kp-iris { transform: translate(calc(var(--lx, 0) * 4px), calc(var(--ly, 0) * 2.5px)); transition: transform .2s ease-out; }
@media (pointer: coarse) { .kp-iris { animation: kp-look 10s ease-in-out infinite; } }
@keyframes kp-look { 0%, 30%, 100% { transform: translate(0, 0); } 38%, 52% { transform: translate(-3.5px, .5px); } 60%, 78% { transform: translate(3.5px, -.5px); } }
.kp-lock { transform-box: fill-box; transform-origin: 50% 0; animation: kp-sway 3.2s ease-in-out infinite alternate; }
.kp-lock:nth-child(2) { animation-duration: 2.6s; animation-delay: -.9s; }
.kp-lock:nth-child(3) { animation-duration: 3.6s; animation-delay: -1.7s; }
@keyframes kp-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.ear-left { animation: kp-twitch-l 7s ease-in-out infinite; }
.ear-right { animation: kp-twitch-r 9s ease-in-out 1.3s infinite; }
@keyframes kp-twitch-l { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-9deg); } 92% { transform: rotate(4deg); } 95% { transform: rotate(0); } }
@keyframes kp-twitch-r { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(9deg); } 92% { transform: rotate(-4deg); } 95% { transform: rotate(0); } }

/* ---------- Simulcast (Twitch + YouTube) ---------- */
/* (.cta-label, .cta-main and .cta-sub are styled with the hero copy) */
@media (max-width: 559px) {
  .hero-ctas .btn-amber { flex: 1 1 0; justify-content: center; }
  .hero-ctas .btn-ghost { flex: 1 1 100%; justify-content: center; }
  /* Phones: a smaller logo and tighter gaps bring Twitch and YouTube up into the first screen (the artwork and the
     welcome stay as they are) */
  .hero { padding-top: calc(var(--header-h) + 14px); }
  .hero-logo { margin-bottom: 10px; }
  .hero-logo img { width: min(270px, 74%); }
  .hero .eyebrow { margin-bottom: 12px; padding: 5px 12px 5px 10px; font-size: .62rem; letter-spacing: .1em; gap: 8px; }
  .hero-sub { margin: 12px 0 16px; font-size: 1rem; line-height: 1.5; }
  .cta-label { margin-bottom: 10px; }
}
/* The Discord before it has an invite: a status, not a button (no hover, no pointer, a dashed keyline) */
.btn-soon { --pad: 10px 18px; margin: 0; cursor: default; box-shadow: none; border: 2px dashed rgba(245, 158, 11, .55); }
.btn-soon:hover { box-shadow: none; color: var(--cream); }
.btn-soon .btn-main { font-size: .95rem; }
.btn-soon .btn-ico { width: 18px; height: 18px; opacity: .8; }
/* Follow buttons on the tide board, beside "First stream: TBC" */
.tides-follow { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.tides-follow[hidden] { display: none; }
@media (max-width: 559px) { .tides-follow .btn { flex: 1 1 0; justify-content: center; } }
.live-platform .pf-twitch { color: #A970FF; }
.live-platform .pf-youtube { color: #FF4E45; }
.live-card[data-state="soon"] .live-dot { background: var(--amber); }
.live-card[data-state="soon"] .live-badge { color: var(--capiz); }
.social-tag {
  display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; vertical-align: 2px;
  font: 700 .6rem/1.2 var(--font-hud); font-style: normal; letter-spacing: .12em; text-transform: uppercase;
  background: var(--amber); color: var(--navy);
}
.tides-planned {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 12px;
  background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .4);
  color: var(--capiz); font-weight: 800; font-size: .92rem;
}
.tides-planned[hidden], .tz-toggle[hidden], .tide-chart[hidden], .tides-foot .btn[hidden] { display: none; }

/* ---------- Deck: flavour label, source link, keyword chips ---------- */
.deck-source { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -4px 0 0; font-size: .86rem; color: var(--muted); }
.deck-source a { display: inline-flex; align-items: center; gap: 5px; color: var(--capiz); font-weight: 800; text-decoration: none; }
.deck-source a:hover { text-decoration: underline; }
.deck-source svg { width: 14px; height: 14px; }
.kw {
  padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 600 .64rem/1.3 var(--font-hud); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2);
}
