/* HABITAT, THE WEBSITE. One world, the game's own: the deep teal dark of its pages, amber for what can be
   pressed, cream for what is said, fine gold edges on dark glass (the game's "sleek gold boxes"). A single
   theme on purpose -- the game has one -- with every colour stated here and nothing inherited. */
/* The game's own two faces, served from the site itself (fonts/, with their licences): nothing on this page is
   fetched from anybody else's server, so a visit tells nobody else it happened. */
@font-face { font-family: "Lilita One"; src: url("../fonts/LilitaOne.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Bree Serif"; src: url("../fonts/BreeSerif.ttf") format("truetype"); font-display: swap; }
:root {
  --ink: #061314;
  --ground: #0a1c1d;
  --deep: #07171a;
  --glass: rgba(9, 24, 25, .78);
  --edge: rgba(255, 232, 190, .18);
  --edge-strong: rgba(255, 196, 92, .55);
  --gold: #ffc247;
  --gold-deep: #d99a2b;
  --cream: #f6e9c9;
  --text: #cfe0dc;
  --sage: #8fa5a3;
  --leaf: #9fd3b0;
  --violet: #b9a2ff;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --book: "Bree Serif", Georgia, "Times New Roman", serif;
  --ui: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--book); font-size: 18px; line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
strong { color: var(--cream); font-weight: 400; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--cream); line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 4.4vw, 3rem); }
h3, .h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
p { margin: 0 0 1rem; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1c1203; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.label {
  font-family: var(--ui); font-weight: 800; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .7rem;
}
.small { font-size: .92rem; color: var(--sage); }
.centre { text-align: center; margin-left: auto; margin-right: auto; }
.gap { margin-top: 3.2rem; }

/* ---- what is pressed: the game's gold plate, and its quiet second */
.plate {
  display: inline-block; text-decoration: none; cursor: pointer; border: 0;
  font-family: var(--display); font-size: 1.12rem; color: #2a1904; letter-spacing: .01em;
  background: linear-gradient(180deg, #ffd978 0%, var(--gold) 46%, var(--gold-deep) 100%);
  padding: .78em 1.5em; border-radius: 10px;
  box-shadow: 0 3px 0 #9a6410, 0 10px 26px rgba(255, 180, 60, .22), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .12s ease, filter .12s ease;
}
.plate:hover { filter: brightness(1.07); transform: translateY(-1px); }
.plate:active { transform: translateY(2px); box-shadow: 0 1px 0 #9a6410, inset 0 1px 0 rgba(255, 255, 255, .4); }
.plate-small { font-size: .95rem; padding: .55em 1.05em; }
.ghost {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--ui); font-weight: 700; font-size: .92rem; color: var(--cream);
  background: rgba(8, 22, 23, .6); border: 1px solid var(--edge); border-radius: 10px; padding: .72em 1.15em;
  transition: border-color .15s ease, background .15s ease;
}
.ghost:hover { border-color: var(--edge-strong); background: rgba(20, 44, 44, .7); }
.chip {
  cursor: pointer; font-family: var(--ui); font-weight: 700; font-size: .84rem; color: var(--text);
  background: rgba(8, 22, 23, .7); border: 1px solid var(--edge); border-radius: 999px; padding: .5em 1.05em;
}
.chip.is-on { color: #2a1904; background: var(--gold); border-color: var(--gold); }
.chip-flip { border-style: dashed; }

/* ---- the bar */
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: 10px var(--gutter); background: rgba(6, 19, 20, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}
.bar-name { font-family: var(--display); font-size: 1.45rem; color: var(--gold); text-decoration: none; letter-spacing: .03em; }
.bar-nav { display: none; gap: 22px; margin-left: 10px; flex: 1; }
.bar-nav a { font-family: var(--ui); font-weight: 700; font-size: .88rem; color: var(--text); text-decoration: none; }
.bar-nav a:hover { color: var(--gold); }
.bar .plate { margin-left: auto; }
@media (min-width: 940px) { .bar-nav { display: flex; } .bar .plate { margin-left: 0; } }

/* ---- the top: the game's own key art, alive */
.hero { position: relative; background: var(--ink); }
.hero-art { position: relative; overflow: hidden; max-height: 82vh; background: #0b2a22; }
.hero-art img { width: 100%; height: auto; transform: scale(1.04); transform-origin: 50% 40%; will-change: transform; }
.hero-art::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: linear-gradient(180deg, rgba(6, 19, 20, 0) 0%, rgba(6, 19, 20, .72) 62%, var(--ink) 100%); pointer-events: none;
}
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-words { position: relative; max-width: 900px; margin: -9vw auto 0; padding: 0 var(--gutter) 64px; text-align: center; z-index: 2; }
.hero-words h1 { text-shadow: 0 3px 22px rgba(0, 0, 0, .7); }
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.25rem); max-width: 40em; margin: 1.1rem auto 1.5rem; color: var(--text); }
.hero-go { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-where { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin: 1.7rem 0 0; font-size: .98rem; color: var(--sage); }
.f2p { width: 190px; }
@media (max-width: 700px) { .hero-words { margin-top: -4vw; } }

/* ---- a scene: every section */
.scene { position: relative; padding: clamp(64px, 9vw, 120px) 0; background: var(--ground); overflow: hidden; }
.scene-deep { background: radial-gradient(120% 90% at 50% 0%, #0d2426 0%, var(--deep) 62%); }
.wrap { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.words { max-width: 40em; }
.words.centre { margin-bottom: 2.4rem; }
.words h2 { margin-bottom: 1.1rem; }
.two { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; } }
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-bg + .wrap { z-index: 1; }
.panel {
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r); padding: clamp(22px, 4vw, 40px);
  backdrop-filter: blur(6px); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); max-width: 34em;
}
.panel h2 { margin-bottom: 1rem; }
.panel-right { margin-left: auto; }
.panel-centre { margin: 0 auto; text-align: center; max-width: 38em; }
.rise { transform: translateY(22px); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.rise.in { transform: none; }

/* ---- the ladder of targets */
.ladder { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 1.2rem 0 0; }
.ladder li {
  min-width: 62px; text-align: center; padding: 7px 8px 6px; border-radius: 10px; border: 1px solid var(--edge);
  background: rgba(8, 22, 23, .7); font-family: var(--display); color: var(--cream); font-size: 1.15rem; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ladder li span { display: block; font-family: var(--ui); font-weight: 800; font-size: .58rem; letter-spacing: .14em; color: var(--sage); text-transform: uppercase; }
.ladder li:last-child { border-color: var(--edge-strong); color: var(--gold); }

/* ---- the moment you can play */
.demo { background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r); padding: clamp(14px, 2.6vw, 24px); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.demo-ask { margin: 0 0 .8rem; font-size: .98rem; }
.demo-board { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--edge); }
.demo-board > img { width: 100%; aspect-ratio: 16 / 7.4; object-fit: cover; filter: saturate(1.05) brightness(.82); }
.demo-row { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5%; padding: 4% 6%; align-items: center; }
.slot { position: relative; aspect-ratio: 420 / 566; border-radius: 9px; border: 2px dashed rgba(255, 236, 190, .45); background: rgba(6, 19, 20, .28); }
.slot.full { border-color: transparent; background: none; }
.slot button { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; }
.slot img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55)); animation: land .34s cubic-bezier(.2, 1.3, .4, 1); }
.slot.lit img { animation: fire .5s ease; }
.pop {
  position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); white-space: nowrap; pointer-events: none;
  font-family: var(--display); font-size: clamp(.8rem, 2.2vw, 1.05rem); color: #2a1904; background: var(--gold);
  padding: 2px 9px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); animation: pop 1.25s ease forwards;
}
.pop.b { background: var(--leaf); }
.pop.m { background: var(--violet); }
@keyframes land { from { transform: translateY(-16px) scale(1.08); } to { transform: none; } }
@keyframes fire { 30% { transform: scale(1.09) rotate(-1.5deg); filter: drop-shadow(0 0 18px rgba(255, 196, 92, .9)); } }
@keyframes pop { 0% { opacity: 0; margin-top: 12px; } 15% { opacity: 1; margin-top: 0; } 80% { opacity: 1; } 100% { opacity: 0; margin-top: -10px; } }
.sum { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2.4vw, 20px); margin: 1rem 0 .4rem; font-variant-numeric: tabular-nums; }
.sum-part { text-align: center; min-width: 3.2em; }
.sum-part b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1; color: var(--cream); }
.sum-part i { font-style: normal; font-family: var(--ui); font-weight: 800; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.sum-score b { color: var(--gold); }
.sum-score.best b { text-shadow: 0 0 26px rgba(255, 196, 92, .8); }
.sum-op { font-family: var(--display); font-size: clamp(1.3rem, 4vw, 2rem); color: var(--sage); padding-bottom: .95em; }
.demo-say { text-align: center; font-size: .95rem; min-height: 3.1em; margin: 0 0 .6rem; }
.demo-say b { color: var(--gold); font-weight: 400; }
.demo-hand { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.demo-hand button { all: unset; cursor: pointer; border-radius: 8px; transition: transform .15s ease, opacity .15s ease; }
.demo-hand button:hover { transform: translateY(-5px); }
.demo-hand button[disabled] { opacity: .22; cursor: default; transform: none; }
.demo-hand img { width: 100%; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .5)); }
.demo-keys { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 1rem; }
/* on a phone six cards in a row are 46px each: two rows of three, big enough to read and to tap */
@media (max-width: 560px) { .demo-hand { grid-template-columns: repeat(3, 1fr); gap: 8px 10px; max-width: 330px; margin: 0 auto; } }

/* ---- cards you can handle */
.fan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; perspective: 1400px; margin: 0 auto 1.6rem; max-width: 1080px; }
@media (min-width: 700px) { .fan { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }
@media (min-width: 1100px) { .fan { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; max-width: none; } }
.card { position: relative; aspect-ratio: 720 / 972; transform-style: preserve-3d; cursor: grab; border: 0; padding: 0; background: none; width: 100%;
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.card.held { transition: transform .06s linear; }
.card-face, .card-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-face img, .card-back img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .55)); }
.card-back { transform: rotateY(180deg); }
.card.flipped { --flip: 180deg; }
/* (no light or finish is painted over a card here: how a card looks is the game's to show, in the films) */
.fan-keys { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 1.2rem; }
.reels { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); max-width: 1000px; margin: 0 auto; }
.reel { margin: 0; text-align: center; }
.reel video { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--edge); background: #0b1d1e; }
.reel figcaption { margin-top: 10px; color: var(--sage); font-size: .95rem; }
.reel figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--cream); }

/* ---- the twelve places */
.stage { margin: 0 auto; max-width: 1100px; }
.stage-frame { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); aspect-ratio: 16 / 9; background: #0b1f20; }
.stage-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s ease; }
#stageB { opacity: 0; }
.stage.swap #stageB { opacity: 1; }
.stage figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: center; padding: 14px 6px 0; }
.stage figcaption strong { font-family: var(--display); font-size: 1.5rem; }
.stage figcaption span { color: var(--sage); font-size: .98rem; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 18px auto 0; max-width: 1100px; }
@media (min-width: 700px) { .strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .strip { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.strip button { all: unset; cursor: pointer; border-radius: 8px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 16 / 10; position: relative; opacity: .62; transition: opacity .2s ease, border-color .2s ease; }
.strip button img { width: 100%; height: 100%; object-fit: cover; }
.strip button:hover, .strip button.is-on { opacity: 1; }
.strip button.is-on { border-color: var(--gold); }

/* ---- the Glade's goods */
.scene-glade .scene-bg { object-position: 22% 50%; filter: blur(3px) brightness(.5); transform: scale(1.04); }
.scene-glade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ground) 0%, rgba(6, 19, 20, .35) 22%, rgba(6, 19, 20, .35) 78%, var(--ground) 100%); z-index: 1; }
.scene-glade .wrap { z-index: 2; }
.scene-glade .panel { max-width: none; }
.reel-framed video { box-shadow: 0 30px 70px rgba(0, 0, 0, .55); border-color: var(--edge-strong); }
.reel-mid { max-width: 940px; margin: 0 auto 2.2rem; }
.goods { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: 6px; }
.goods li { display: flex; gap: 10px; align-items: baseline; font-size: .95rem; padding: 7px 10px; border-radius: 8px; background: rgba(4, 13, 15, .55); border: 1px solid var(--edge); }
.goods b { font-family: var(--display); font-weight: 400; color: var(--cream); white-space: nowrap; }
.goods span { color: var(--text); }

/* ---- the coin */
.coinbox { text-align: center; }
/* (the shadow is on the button, never on .coin-in: a filter on the turning part flattens it, and a flattened
   coin has no reverse -- the Claw never came round) */
.coin { all: unset; cursor: pointer; display: block; width: min(64vw, 300px); aspect-ratio: 1; margin: 0 auto; perspective: 900px; border-radius: 50%; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .6)); }
.coin-in { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--spin, 0deg)); transition: transform 1.5s cubic-bezier(.2, .7, .2, 1); }
.coin-face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 50%; }
.coin-tails { transform: rotateX(180deg); }
.coin.up { animation: toss 1.5s cubic-bezier(.3, .6, .3, 1); }
@keyframes toss { 0% { transform: translateY(0) scale(1); } 45% { transform: translateY(-70px) scale(1.12); } 100% { transform: translateY(0) scale(1); } }
.coin-say { font-family: var(--display); font-size: 1.5rem; color: var(--cream); margin: 1.1rem 0 0; min-height: 1.6em; }
.coin-say.you { color: var(--gold); }
.coin-say.them { color: var(--violet); }
.beats { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); counter-reset: beat; }
@media (min-width: 900px) { .beats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.beats li { counter-increment: beat; }
.beats video { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--edge); background: #0b1d1e; }
.beats span { display: block; margin-top: 8px; font-size: .95rem; color: var(--text); }
.beats span::before { content: counter(beat); font-family: var(--display); color: var(--gold); margin-right: 8px; }

/* ---- the doors */
.doors { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } .door-wide { grid-column: span 2; } }
.door { background: #0b2022; border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.door > img { width: 100%; aspect-ratio: 16 / 8.2; object-fit: cover; }
.door-words { padding: 18px 20px 20px; }
.door h3 { margin-bottom: .35rem; }
.door-line { color: var(--gold); margin-bottom: .5rem; }
.door-words p:last-child { margin-bottom: 0; }
.chapters { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chapters li { font-size: .86rem; padding: 4px 10px; border: 1px solid var(--edge); border-radius: 999px; color: var(--text); background: rgba(4, 13, 15, .5); }
.chapters b { font-family: var(--ui); font-weight: 800; color: var(--gold); margin-right: 6px; }
.metals { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; text-align: center; }
.metals img { width: 100%; }
.metals span { display: block; font-family: var(--ui); font-weight: 800; font-size: .52rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }

/* ---- omens */
.omens { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .omens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .omens { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.omen { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge); background: #0a1b1d; min-height: 200px; display: flex; align-items: flex-end; }
.omen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.omen:hover img { transform: scale(1.07); }
.omen div { position: relative; padding: 70px 18px 16px; width: 100%; background: linear-gradient(180deg, rgba(5, 14, 16, 0) 0%, rgba(5, 14, 16, .9) 58%); }
.omen h3 { margin-bottom: .2rem; }
.omen p { margin: 0; font-size: .95rem; }
.omen b { color: var(--gold); font-weight: 400; }

/* ---- frames and backs */
.frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
@media (min-width: 700px) { .frames { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .frames { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.frames figure { margin: 0; text-align: center; }
.frames img { width: 100%; aspect-ratio: 420 / 567; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)); transition: transform .3s ease; }
.frames figure:hover img { transform: translateY(-6px) rotate(-1.2deg); }
.frames figcaption { margin-top: 8px; font-size: .88rem; color: var(--sage); line-height: 1.35; }
.frames figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: var(--cream); }
.backs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 980px; margin: 0 auto; }
@media (min-width: 900px) { .backs { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.backs img { width: 100%; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .5)); transition: transform .3s ease; }
.backs img:hover { transform: translateY(-8px) rotate(2deg); }

/* ---- packs, said plainly */
.packs { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-bottom: 2rem; }
@media (min-width: 820px) { .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pack { background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r); padding: 22px; }
.pack h3 { margin-bottom: .3rem; }
.pack .pack-blurb { color: var(--text); margin-bottom: .9rem; }
.pack dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .95rem; }
.pack dt { color: var(--sage); }
.pack dd { margin: 0; color: var(--cream); font-variant-numeric: tabular-nums; }
.plain { list-style: none; padding: 0; margin: 0 auto 1.6rem; max-width: 900px; display: grid; gap: 10px; }
@media (min-width: 820px) { .plain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; } }
.plain li { padding-left: 26px; position: relative; font-size: .98rem; }
.plain li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); }

/* ---- the gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.gallery button { all: unset; cursor: zoom-in; border-radius: 10px; overflow: hidden; border: 1px solid var(--edge); position: relative; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery button:hover img { transform: scale(1.05); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; font-size: .85rem; color: var(--cream); background: linear-gradient(180deg, rgba(5, 14, 16, 0), rgba(5, 14, 16, .88)); }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(3, 9, 10, .93); display: grid; place-items: center; padding: 18px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1500px, 100%); text-align: center; }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 10px; border: 1px solid var(--edge); }
.lightbox figcaption { margin-top: 10px; color: var(--cream); }
.lightbox-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: var(--cream); font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---- the numbers */
.numbers { padding: 56px 0; }
.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin: 0; text-align: center; }
@media (min-width: 640px) { .counts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .counts { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.counts dt { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.counts dd { margin: 4px 0 0; font-family: var(--ui); font-weight: 800; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }

/* ---- the close */
.closer { min-height: 620px; display: flex; align-items: center; }
.closer .scene-bg { filter: brightness(.82); }
.closer .wrap { width: 100%; }
.notify { margin: 1.2rem 0 1rem; }
.notify-label { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--cream); margin-bottom: .6rem; }
.notify-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.notify input[type="email"] {
  flex: 1 1 240px; max-width: 340px; font: inherit; font-family: var(--ui); font-size: 1rem; color: var(--cream);
  background: rgba(4, 13, 15, .8); border: 1px solid var(--edge-strong); border-radius: 10px; padding: .8em 1em;
}
.notify input[type="email"]::placeholder { color: #6d8683; }

/* ---- the foot */
.foot { background: #040d0e; text-align: center; padding: 48px var(--gutter) 60px; color: var(--sage); font-size: .95rem; border-top: 1px solid var(--edge); }
.foot-mark { width: 240px; margin: 0 auto 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-small { font-size: .82rem; margin: 1rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { transform: none; }
  .hero-art img { transform: none; }
}
