/* ═══════════════════════════════════════════════════════════════════
   LEARNING ABOUT HELENDALE — STYLES (film edition)
   Helendale School District

   The 3D world is the page. Type floats over it on dark glass, so the
   palette here is restrained: bluff dark, alkali paper, iron accent,
   lake teal, district gold.
════════════════════════════════════════════════════════════════════ */

:root {
  --bluff:   #3B2A34;
  --bluff-2: #241A21;
  --iron:    #C9663F;
  --alkali:  #F1E8D4;
  --lake:    #37B4BC;
  --navy:    #0A1F44;
  --gold:    #C9A227;
  --gold-dp: #8C6E20;
  --glass:   rgba(20, 14, 18, 0.66);
  --glass-line: rgba(241, 232, 212, 0.16);

  --ff-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --ff-body: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --ff-data: "Space Mono", ui-monospace, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }
html.is-reduced { scroll-behavior: auto; }
html.sheet-open { overflow: hidden; }

body {
  font-family: var(--ff-body);
  background: var(--bluff-2);
  color: var(--alkali);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ── The world ──────────────────────────────────────────────────── */
#gl {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh; height: 100svh;
  display: block;
}

/* film cut between sets */
#cut {
  position: fixed; inset: 0; z-index: 30;
  background: #0B080A; opacity: 0; pointer-events: none;
}
#cut.go { animation: cutfade .48s ease; }
@keyframes cutfade { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
html.is-reduced #cut.go { animation: none; }

/* ── Fixed chrome ───────────────────────────────────────────────── */
.top-band {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 3px;
  background: linear-gradient(90deg, var(--gold-dp), var(--gold), #E0C459, var(--gold), var(--gold-dp));
}
.masthead {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: rgba(10, 31, 68, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, .26);
}
.crest {
  width: 30px; height: 30px; flex: 0 0 auto;
  border: 1.5px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 800; font-size: 10px;
  letter-spacing: .04em; color: var(--gold);
}
.masthead-text { flex: 1 1 auto; min-width: 0; }
.masthead-title {
  font-family: var(--ff-display); font-weight: 800; font-size: 13px;
  color: #FFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.masthead-sub {
  font-family: var(--ff-data); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-dp); margin-top: 1px;
}
.ctrl {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(201,162,39,.42);
  color: var(--gold); border-radius: 999px; padding: 6px 11px; cursor: pointer;
  font-family: var(--ff-data); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap; text-decoration: none;
}
.ctrl:hover { background: rgba(201,162,39,.14); }
.ctrl.is-on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.ctrl-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ctrl-text { display: none; }
@media (min-width: 560px) { .ctrl-text { display: inline; } }

/* ── Era ribbon ─────────────────────────────────────────────────── */
.era-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(20, 14, 18, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(201, 162, 39, .22);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
}
.era-track { height: 2px; background: rgba(241, 232, 212, .16); border-radius: 2px; overflow: hidden; }
.era-fill { height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); transition: transform .1s linear; }
.era-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
#era-label {
  font-family: var(--ff-data); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--alkali); white-space: nowrap;
  flex: 0 0 auto; min-width: 100px;
}
#era-dots { display: flex; gap: 5px; flex: 1 1 auto; justify-content: flex-end; }
.era-dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(241, 232, 212, .4); background: transparent;
}
.era-dot.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }

/* ── Shots ──────────────────────────────────────────────────────── */
#shots { position: relative; z-index: 10; }

.shot { height: 185vh; height: 185svh; }
.shot:last-child { height: 150vh; }
.shot-inner {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: flex-end;
  padding: 0 16px calc(70px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.cap {
  pointer-events: auto;
  max-width: 560px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 16px 18px 15px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1);
}
.shot.is-active .cap { opacity: 1; transform: translateY(0); }
html.is-reduced .cap { opacity: 1; transform: none; transition: none; }

.cap-eyebrow { margin-bottom: 7px; }
.cap-marker {
  font-family: var(--ff-data); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
}
.cap-line {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(23px, 6.2vw, 38px);
  line-height: 1.04; letter-spacing: -.02em; color: #FFF;
  margin-bottom: 7px;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.cap-sub { font-size: 14px; color: var(--alkali); opacity: .92; margin-bottom: 12px; }
.cap-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn-solid, .btn-gold, .btn-ghost {
  font-family: var(--ff-data); font-size: 10.5px;
  letter-spacing: .07em; text-transform: uppercase;
  border-radius: 999px; padding: 9px 16px; cursor: pointer;
}
.btn-solid { background: var(--alkali); color: var(--bluff-2); border: 1px solid var(--alkali); }
.btn-solid:hover { background: #FFF; }
.btn-gold { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); font-weight: 700; }
.btn-gold:hover { background: #E0C459; }
.btn-ghost { background: transparent; color: var(--alkali); border: 1px solid var(--glass-line); }
.btn-ghost:hover { border-color: var(--alkali); }
.btn-ghost.is-speaking { background: var(--lake); color: #06272A; border-color: var(--lake); }

/* live conditions strip */
.live-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
  padding-top: 11px; border-top: 1px solid var(--glass-line);
}
.live-cell {
  display: flex; flex-direction: column; min-width: 66px;
  padding: 7px 10px; border: 1px solid var(--glass-line); border-radius: 9px;
}
.live-value { font-family: var(--ff-display); font-weight: 800; font-size: 17px; color: #FFF; line-height: 1.15; }
.live-key { font-family: var(--ff-data); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

/* creature chips */
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--glass-line); }
.chip {
  font-family: var(--ff-data); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase;
  background: transparent; color: var(--alkali);
  border: 1px solid var(--glass-line); border-radius: 999px; padding: 7px 11px; cursor: pointer;
}
.chip:hover { border-color: var(--lake); color: var(--lake); }

/* full story text: hidden in film mode, present for readers and no-webgl */
.shot-story { display: none; }

/* ── The sheet ──────────────────────────────────────────────────── */
.sheet-root { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.sheet-root.is-open { visibility: visible; }
.sheet-scrim {
  position: absolute; inset: 0;
  background: rgba(8, 5, 7, .62);
  opacity: 0; transition: opacity .3s ease;
}
.sheet-root.is-open .sheet-scrim { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 82vh; max-height: 82svh;
  background: #F7F1E3; color: #2A2029;
  border-radius: 18px 18px 0 0;
  transform: translateY(102%);
  transition: transform .38s cubic-bezier(.2,.8,.25,1);
  display: flex; flex-direction: column;
  box-shadow: 0 -18px 60px rgba(0,0,0,.5);
}
.sheet-root.is-open .sheet { transform: translateY(0); }
html.is-reduced .sheet { transition: none; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; width: 640px; transform: translate(-50%, 102%); border-radius: 18px 18px 0 0; }
  .sheet-root.is-open .sheet { transform: translate(-50%, 0); }
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 10px;
}
.sheet-title {
  font-family: var(--ff-display); font-weight: 800;
  font-size: clamp(20px, 5vw, 27px); letter-spacing: -.02em; color: #3B2A34; line-height: 1.1;
}
.sheet-close {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #B79A6A; background: #EFE5D0; color: #3B2A34;
  border-radius: 999px; padding: 10px 16px; cursor: pointer;
  font-family: var(--ff-data); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.sheet-close:hover { background: #E4D5B8; }
.sheet-close-x { font-size: 12px; color: #A8462A; }
.sheet-body { overflow-y: auto; padding: 4px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
.sheet-kicker {
  font-family: var(--ff-data); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: #A8462A; margin-bottom: 12px;
}
.sheet-p { font-size: 15px; margin-bottom: 12px; color: #2A2029; }
.sheet-headline {
  font-family: var(--ff-display); font-weight: 700; font-size: 17px;
  color: #A8462A; margin-bottom: 10px; line-height: 1.3;
}
.sheet-facts { list-style: none; margin-bottom: 12px; }
.sheet-facts li { position: relative; padding-left: 17px; font-size: 14.5px; margin-bottom: 8px; }
.sheet-facts li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border: 1.5px solid #2E7F86; transform: rotate(45deg);
}
.sheet-watch { padding: 11px 13px; background: rgba(110,122,84,.14); border-radius: 10px; margin-bottom: 12px; }
.sheet-watch-label {
  display: block; font-family: var(--ff-data); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; color: #55613D; margin-bottom: 3px;
}
.sheet-watch p { font-size: 14px; }
.sheet-body .btn-ghost { color: #3B2A34; border-color: #CFBE9C; }
.sheet-body .btn-ghost.is-speaking { background: #2E7F86; color: #FFF; border-color: #2E7F86; }

/* quiz inside the sheet */
.quiz-progress { font-family: var(--ff-data); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6A5C60; margin-bottom: 9px; }
.quiz-q { font-family: var(--ff-display); font-weight: 700; font-size: 18px; line-height: 1.3; color: #3B2A34; margin-bottom: 13px; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opt {
  text-align: left; font-family: var(--ff-body); font-size: 14.5px;
  background: rgba(59,42,52,.05); border: 1px solid #CFBE9C; border-radius: 10px;
  padding: 12px 14px; cursor: pointer; color: #2A2029;
}
.quiz-opt:hover:enabled { background: rgba(59,42,52,.10); }
.quiz-opt:disabled { cursor: default; opacity: .78; }
.quiz-opt.is-right { background: rgba(46,127,134,.18); border-color: #2E7F86; color: #164E52; opacity: 1; font-weight: 700; }
.quiz-opt.is-wrong { background: rgba(168,70,42,.14); border-color: #A8462A; color: #7A3320; opacity: 1; }
.quiz-why { display: none; }
.quiz-why.is-shown { display: block; margin-top: 11px; font-size: 13.5px; padding: 11px 13px; border-radius: 10px; background: rgba(59,42,52,.06); }
.quiz-why.is-right { background: rgba(46,127,134,.13); }
.quiz-why.is-wrong { background: rgba(168,70,42,.11); }
.sheet-body .btn-solid { background: #3B2A34; color: #F7F1E3; border-color: #3B2A34; margin-top: 13px; }
.sheet-body .btn-solid:hover { background: #503A47; }
.quiz-result { text-align: center; padding-top: 6px; }
.badge { width: 96px; margin: 4px auto 10px; }
.badge svg { width: 100%; height: auto; display: block; }
.result-score { font-family: var(--ff-display); font-weight: 800; font-size: 34px; color: #3B2A34; line-height: 1; }
.result-rank { font-family: var(--ff-data); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #A8462A; margin-top: 6px; }
.result-note { font-size: 14px; margin-top: 10px; color: #2A2029; }

/* ── Colophon ───────────────────────────────────────────────────── */
.colophon {
  position: relative; z-index: 10;
  background: var(--bluff-2);
  border-top: 1px solid rgba(201, 162, 39, .22);
  padding: 30px 18px 78px;
  text-align: center; color: #A99A8C;
}
.colophon-title { font-family: var(--ff-display); font-weight: 800; font-size: 15px; color: var(--alkali); margin-bottom: 7px; }
.colophon p { font-size: 12.5px; max-width: 560px; margin: 0 auto 8px; }
.colophon a { color: var(--gold); text-decoration: none; }
.colophon a:hover { text-decoration: underline; }

.noscript-note {
  position: relative; z-index: 20;
  margin: 92px auto 0; max-width: 620px;
  background: #F7F1E3; color: #2A2029; border: 1px solid var(--gold);
  border-radius: 12px; padding: 16px 18px; font-size: 14px;
}

/* ── No WebGL: the film becomes a readable page ─────────────────── */
html.no-webgl body { background: var(--bluff-2); }
html.no-webgl .shot { height: auto; padding: 26px 0; }
html.no-webgl .shot-inner { position: static; height: auto; padding: 0 16px; pointer-events: auto; }
html.no-webgl .cap { opacity: 1; transform: none; max-width: 640px; margin: 0 auto; }
html.no-webgl .shot-story { display: block; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--glass-line); }
html.no-webgl .shot-story p { font-size: 14px; color: var(--alkali); margin-bottom: 10px; }
html.no-webgl #cut { display: none; }

/* ── Embedded ───────────────────────────────────────────────────── */
html.is-embedded .masthead-sub { display: none; }
html.is-embedded .shot { height: 160vh; }
#btn-fullpage { display: inline-flex; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cap { opacity: 1 !important; transform: none !important; transition: none !important; }
  .era-fill { transition: none; }
}

/* ── Ranger layer ───────────────────────────────────────────────── */
.rg-toast {
  position: fixed; left: 50%; bottom: 86px; z-index: 70;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--gold); color: var(--navy);
  font-family: var(--ff-data); font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; border-radius: 999px; padding: 10px 18px;
  max-width: 88vw; text-align: center;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  box-shadow: 0 8px 26px rgba(0,0,0,.4);
}
.rg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.rg-h {
  font-family: var(--ff-display); font-weight: 800; font-size: 16px;
  color: #3B2A34; margin: 18px 0 7px;
}
.rg-note { font-size: 13px; color: #6A5C60; margin-bottom: 10px; }

.rg-missions, .rg-field-list { display: grid; gap: 7px; }
.rg-mission {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid #CFBE9C; border-radius: 10px; padding: 10px 12px;
}
.rg-mission.is-done { background: rgba(46,127,134,.10); border-color: #2E7F86; }
.rg-mark { font-size: 15px; color: #8C6E20; line-height: 1.3; }
.rg-mission.is-done .rg-mark { color: #2E7F86; }
.rg-mtitle { font-weight: 700; font-size: 14px; color: #3B2A34; }
.rg-mhint { font-size: 12.5px; color: #6A5C60; margin-top: 2px; }

.rg-stamps { display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 560px) { .rg-stamps { grid-template-columns: 1fr 1fr; } }
.rg-stamp {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 12.5px; color: #6A5C60;
  border: 1px dashed #CFBE9C; border-radius: 8px; padding: 8px 10px;
}
.rg-stamp.is-got { color: #3B2A34; border-style: solid; background: rgba(201,162,39,.10); }
.rg-stamp.is-got .rg-mark { color: var(--gold-dp); }

.rg-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: rgba(59,42,52,.05); border: 1px solid #CFBE9C;
  border-radius: 12px; padding: 13px 15px; margin-bottom: 8px;
  font-family: var(--ff-body);
}
.rg-item:hover { background: rgba(59,42,52,.10); }
.rg-item-title { display: block; font-weight: 700; font-size: 15px; color: #3B2A34; }
.rg-item-sub { display: block; font-size: 12.5px; color: #6A5C60; margin-top: 2px; }
.rg-item-toggle .rg-item-title { color: #1D5C61; }

.rg-slider { width: 100%; margin: 10px 0 14px; accent-color: #A8462A; }
.rg-explabel { font-family: var(--ff-data); font-size: 12px; color: #3B2A34; margin-top: 6px; }
.rg-bars { display: grid; gap: 9px; margin-bottom: 12px; }
.rg-bar-row { display: flex; align-items: center; gap: 9px; }
.rg-bar { height: 16px; border-radius: 4px; min-width: 6px; transition: width .5s cubic-bezier(.2,.7,.3,1); }
.rg-bar-raven { background: #241A21; }
.rg-bar-tort { background: #2E7F86; }
.rg-bar-txt { font-family: var(--ff-data); font-size: 11px; color: #3B2A34; white-space: nowrap; }
.rg-verdict { font-size: 14px; font-weight: 700; color: #A8462A; margin-bottom: 10px; }

.btn-ghost.is-live { background: #A8462A; color: #FFF; border-color: #A8462A; animation: rgpulse 1.2s ease infinite; }
@keyframes rgpulse { 0%,100% { opacity: 1; } 50% { opacity: .72; } }
html.is-reduced .btn-ghost.is-live { animation: none; }

/* touring: hide chrome so the projector shows only the film */
html.is-touring .era-bar, html.is-touring .masthead, html.is-touring .top-band { opacity: .18; }
html.is-following .cap { opacity: .25; }

/* little rangers: bigger words, bigger targets */
html.is-lil .cap-line { font-size: clamp(27px, 7.4vw, 44px); }
html.is-lil .cap-sub { font-size: 16px; }
html.is-lil .btn-solid, html.is-lil .btn-gold, html.is-lil .btn-ghost { padding: 12px 20px; font-size: 12px; }

/* ── The invitation and the score ───────────────────────────────── */
.join-row { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--glass-line); }
.join-row .btn-gold { display: inline-block; text-decoration: none; }
#btn-music.is-on { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ── Today in Helendale ─────────────────────────────────────────── */
.today {
  margin-top: 13px; padding-top: 12px;
  border-top: 1px solid var(--glass-line);
  display: grid; gap: 8px;
}
.today-greeting {
  font-family: var(--ff-display); font-weight: 800; font-size: 17px; color: #FFF;
}
.today-line { font-size: 13px; color: var(--gold); font-style: italic; margin-top: -4px; }
.today-row {
  display: flex; gap: 9px; align-items: baseline;
  font-size: 13px; color: var(--alkali); line-height: 1.5;
  animation: todayrise .6s ease both;
}
@keyframes todayrise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
html.is-reduced .today-row { animation: none; }
.today-ico { flex: 0 0 auto; color: var(--gold); font-size: 13px; }
.today-chip {
  font-family: var(--ff-data); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  background: transparent; color: var(--lake);
  border: 1px solid rgba(55,180,188,.5); border-radius: 999px;
  padding: 4px 11px; cursor: pointer;
}
.today-chip:hover { background: rgba(55,180,188,.16); }
.btn-play { font-weight: 700; }
html.is-lil .today-row { font-size: 14.5px; }

/* ── the photographic finish ────────────────────────────────────── */
.film-finish {
  position: fixed; inset: 0; z-index: 25; pointer-events: none;
  background-repeat: repeat, no-repeat;
  background-size: 128px 128px, cover;
}
html.no-webgl .film-finish { display: none; }

/* ── cinema letterbox during the Autoplay tour ──────────────────── */
body::before, body::after {
  content: ""; position: fixed; left: 0; right: 0; height: 7vh;
  background: #050307; z-index: 26; pointer-events: none;
  transition: transform 0.9s ease;
}
body::before { top: 0; transform: translateY(-101%); }
body::after { bottom: 0; transform: translateY(101%); }
html.hl-touring body::before, html.hl-touring body::after { transform: none; }
html.no-webgl body::before, html.no-webgl body::after { display: none; }

/* ── Real Helendale media gallery ───────────────────────────────── */
.media-btn {
  position: fixed; left: 14px; bottom: 14px; z-index: 40;
  font: 600 13px/1 "Zilla Slab", serif; letter-spacing: 0.03em;
  color: #F7F1E3; background: rgba(10, 31, 68, 0.82);
  border: 1px solid rgba(201, 162, 39, 0.55); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; backdrop-filter: blur(6px);
}
.media-btn:hover { border-color: #C9A227; }
.media-view {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto;
  background: rgba(6, 4, 7, 0.94); padding: 18px 14px 30px;
}
.media-head { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; }
.media-title { font: 700 26px/1.1 "Fraunces", serif; color: #F7F1E3; margin: 0; }
.media-close {
  font: 400 30px/1 serif; color: #C9A227; background: none;
  border: 1px solid rgba(201, 162, 39, 0.5); border-radius: 50%;
  width: 44px; height: 44px; cursor: pointer;
}
.media-hint { font: 400 13px/1.4 "Zilla Slab", serif; color: #C7B79A; max-width: 1100px; margin: 6px auto 16px; }
.media-row {
  display: flex; gap: 18px; overflow-x: auto; padding: 12px 4px 20px;
  max-width: 1100px; margin: 0 auto; scroll-snap-type: x mandatory;
}
.media-card {
  flex: 0 0 auto; width: min(78vw, 420px); margin: 0;
  background: #F4EFE4; padding: 10px 10px 8px; border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); scroll-snap-align: center;
}
.media-card.tilt-a { transform: rotate(-1.1deg); }
.media-card.tilt-b { transform: rotate(1.2deg); }
.media-card img, .media-card video { width: 100%; display: block; border-radius: 2px; background: #111; }
.media-cap { font: 500 12.5px/1.45 "Zilla Slab", serif; color: #3B2A34; padding: 8px 2px 2px; }
