/* CAN I PET THAT -- the site. One committed dark world (a night scene), painted explicitly so it holds on any
   host ground. Palette and gilt language are the game's own menu system (scr_menu_ui): ink, plum, bone, gilt, and
   the crimson of the logo's under-wing as the single hot accent. */
:root {
  --ink: #0b0910;         /* the forest floor: the page's ground, and the front ridge's fill */
  --plum: #17121d;
  --plum-hi: #2a2033;
  --bone: #e9e1cf;
  --bone-dim: #a89f8c;
  --gilt: #d8b25a;
  --gilt-hi: #ffe08a;
  --gilt-dk: #7d6633;
  --crimson: #b22228;
  --sky-top: #05060c;
  --sky-low: #131a33;
  --measure: 62ch;
  --f-head: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --f-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --f-mark: "Russo One", "Arial Black", Impact, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--ink); color: var(--bone); }
body { font: 400 1.0625rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gilt-hi); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gilt-hi); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gilt); color: var(--ink); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }

/* ---- the preview note + nav ---- */
.preview-bar { margin: 0; padding: .45rem 1.5rem; font-size: .875rem; color: var(--bone-dim); background: #120e18; border-bottom: 1px solid var(--gilt-dk); text-align: center; }
.preview-bar b { color: var(--gilt); font-weight: 700; }
.nav { position: absolute; inset: auto 0 auto 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap; }
.nav-mark { font: 400 .95rem/1 var(--f-mark); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); text-decoration: none; font-style: italic; }
.nav nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); flex-wrap: wrap; }
.nav nav a { font: 400 .8rem/1 var(--f-mark); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); text-decoration: none; padding: .4rem 0; border-bottom: 1px solid transparent; }
.nav nav a:hover { color: var(--gilt-hi); border-bottom-color: var(--gilt); }

/* ---- HERO: the scene ---- */
.hero { position: relative; min-height: min(86vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate;
  background: linear-gradient(var(--sky-top), var(--sky-low) 62%, #1a2140 100%); }
.scene { position: absolute; inset: 0; z-index: -1; }
.scene > * { position: absolute; }
.stars, .life { inset: 0; width: 100%; height: 100%; }
.moon { width: clamp(180px, 24vw, 340px); left: 52%; top: 6%; transform: translateX(-50%); filter: drop-shadow(0 0 60px #ffd58a33); }
.cloud { left: -20%; width: 140%; height: 38%; border-radius: 50%; filter: blur(34px); mix-blend-mode: screen; opacity: .5; will-change: transform; }
.cloud.c1 { top: 2%;  background: radial-gradient(ellipse 30% 50% at 30% 50%, #8e86b0 0, transparent 70%), radial-gradient(ellipse 26% 40% at 68% 40%, #b9ad9a 0, transparent 70%); animation: drift 140s linear infinite; }
.cloud.c2 { top: 16%; background: radial-gradient(ellipse 34% 46% at 54% 52%, #d9cdb4 0, transparent 68%), radial-gradient(ellipse 22% 36% at 16% 60%, #5f6c9c 0, transparent 70%); animation: drift 95s linear infinite reverse; opacity: .42; }
.cloud.c3 { top: 30%; background: radial-gradient(ellipse 40% 40% at 40% 50%, #4a4f7e 0, transparent 70%), radial-gradient(ellipse 24% 38% at 82% 46%, #6a5a86 0, transparent 70%); animation: drift 180s linear infinite; opacity: .38; }
@keyframes drift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
.ridge { left: -12.5%; bottom: 0; width: 125%; will-change: transform; }
.ridge[data-ridge="0"] { height: 50%; } .ridge[data-ridge="1"] { height: 42%; } .ridge[data-ridge="2"] { height: 34%; } .ridge[data-ridge="3"] { height: 25%; }
.tower { left: 44%; bottom: 9%; height: 50%; aspect-ratio: 360 / 678; will-change: transform; }
.tower img { position: absolute; inset: 0; height: 100%; width: auto; }
.tower .glow { animation: lamp 5.3s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { opacity: .62; } 38% { opacity: 1; } 61% { opacity: .78; } }

.hero-inner { position: relative; width: min(1280px, 100% - 3rem); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: 6.5rem 5rem; }
.wordmark { width: min(640px, 100%); }
.wm-word { display: block; width: 100%; filter: drop-shadow(0 6px 0 #000a); }
.genre { font: 400 .95rem/1 var(--f-mark); letter-spacing: .2em; text-transform: uppercase; font-style: italic; color: var(--gilt-hi); margin: 1.5rem 0 0; text-shadow: 0 2px 0 #000c; }
.genre + .tagline { margin-top: .7rem; }
.tagline { font: 400 clamp(1.35rem, 2.3vw, 1.9rem)/1.25 var(--f-head); margin: 1.4rem 0 .6rem; max-width: 22ch; text-wrap: balance; text-shadow: 0 2px 0 #000c; }
.tagline em { color: var(--gilt-hi); }
.lede { max-width: 44ch; margin: 0 0 1.6rem; color: #d6cebc; text-shadow: 0 1px 0 #000c; }
.cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.btn { font: 400 .9rem/1 var(--f-mark); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: .95rem 1.5rem; transform: skewX(-12deg); display: inline-block; transition: background .15s, color .15s, box-shadow .15s; }
.btn > *, .btn { }
.btn-primary { background: var(--bone); color: var(--ink); box-shadow: 5px 5px 0 var(--crimson); }
.btn-primary:hover { background: var(--gilt-hi); box-shadow: 7px 7px 0 var(--crimson); }
.btn-ghost { color: var(--bone); box-shadow: inset 0 0 0 2px var(--bone-dim); }
.btn-ghost:hover { color: var(--gilt-hi); box-shadow: inset 0 0 0 2px var(--gilt); }
.cta-note { margin: 1rem 0 0; font-size: .875rem; color: var(--bone-dim); }

.hero-card { position: relative; justify-self: center; width: min(340px, 100%); perspective: 1300px; }
.card-aura { position: absolute; inset: -18% -30%; background: radial-gradient(ellipse at center, #ffc86e3d 0, transparent 66%); animation: aura 6s ease-in-out infinite; }
@keyframes aura { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.card-face { position: relative; aspect-ratio: 420 / 785; border-radius: 14px; overflow: hidden; transform-style: preserve-3d; transition: transform .14s linear; box-shadow: 0 36px 70px #000d, 0 0 0 1px #d8b25a66; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 -8px; } 50% { translate: 0 8px; } }
.card-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease; }
.card-face .cb { opacity: 0; }
.foil { position: absolute; inset: 0; opacity: .3; mix-blend-mode: color-dodge; filter: blur(5px) saturate(1.3); pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, #ff5d8f88 43%, #ffd16688 46%, #7cff9a88 49%, #6ac8ff88 52%, #c98bff88 55%, transparent 61%); background-size: 320% 100%; background-position: var(--fx, 50%) 0; }
.sweep { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(115deg, transparent 42%, #fff6d6cc 50%, transparent 58%); background-size: 300% 100%; animation: sweep 3.2s ease-in-out infinite; }
@keyframes sweep { 0%, 72% { background-position: 130% 0; } 100% { background-position: -40% 0; } }

/* ---- bands ---- */
.band { padding-block: clamp(4rem, 9vw, 7.5rem); background: var(--ink); position: relative; }
.band-alt { background: linear-gradient(var(--ink), var(--plum) 18%, var(--plum) 82%, var(--ink)); }
.eyebrow { font: 400 .78rem/1 var(--f-mark); letter-spacing: .2em; text-transform: uppercase; color: var(--gilt); margin: 0 0 .9rem; font-style: italic; }
.eyebrow::after { content: ""; display: inline-block; width: 3.5rem; height: 3px; margin-left: .9rem; vertical-align: middle; background: var(--crimson); transform: skewX(-30deg); }
h2 { font: 400 clamp(2.1rem, 4.6vw, 3.6rem)/1.06 var(--f-head); margin: 0 0 1.1rem; text-wrap: balance; }
h3 { font: 400 1.5rem/1.15 var(--f-head); margin: 0; }
.pitch { max-width: var(--measure); color: #d2cab8; margin: 0 0 2.6rem; font-size: 1.15rem; }

/* ---- the pet: the Witch and the wolf, at 2x game pixels (frame 140x274, origin 48,246; wolf 630x372, origin 372,278) ---- */
.pet-band { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.pet-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.stamp { font: 400 clamp(3.2rem, 8.2vw, 6.6rem)/.92 var(--f-mark); font-style: italic; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 1.6rem; color: var(--bone); text-shadow: 5px 5px 0 var(--crimson); }
.stamp span { display: block; }
.stamp span:nth-child(2) { margin-left: .35em; }
.stamp span:nth-child(3) { margin-left: .7em; color: var(--gilt-hi); }
.stamp .hookword.torn { color: #fff; text-shadow: -5px 0 0 #ff2f6d, 5px 0 0 #22e9ff; }
.pet-copy .pitch { margin-bottom: 0; }
.pet-stage { position: relative; }
.pet-inner { position: relative; width: 760px; height: 460px; transform-origin: 0 0; }
.pet-inner > * { position: absolute; }
.pet-ground { left: 40px; top: 210px; width: 680px; height: 240px; border-radius: 50%; background: radial-gradient(ellipse at 50% 45%, #2b3560 0, #1a2040 38%, transparent 70%); opacity: .75; }
.pet-shadow { border-radius: 50%; background: radial-gradient(ellipse, #000b 0, #0006 45%, transparent 72%); }
.sh-witch { left: 225px; top: 272px; width: 130px; height: 40px; }
.sh-wolf { left: 215px; top: 322px; width: 400px; height: 78px; }
.witch { left: 242px; top: 44px; width: 140px; height: 274px; padding: 0; border: 0; cursor: pointer; background: url("../assets/pet/witch.webp") 0 0 / 3360px 274px no-repeat; transition: filter .2s; }
.witch:hover { filter: drop-shadow(0 0 10px #ffe08a99); }
.witch:focus-visible { outline: 2px dashed var(--gilt-hi); outline-offset: 4px; }
.wolf { left: 28px; top: 72px; width: 630px; height: 372px; background: url("../assets/pet/wolf.webp") 0 0 / 100% 100% no-repeat; pointer-events: none; transform-origin: 59% 75%; }
.wolf.hop { animation: hop 1.9s cubic-bezier(.3, 0, .4, 1); }
.sh-wolf.hop { animation: hopsh 1.9s cubic-bezier(.3, 0, .4, 1); }
@keyframes hop { 0%, 100% { transform: none; } 6% { transform: scale(1.04, .94); } 17% { transform: translateY(-46px) scale(.97, 1.04) rotate(-3deg); } 28% { transform: scale(1.05, .93); }
  39% { transform: translateY(-34px) scale(.98, 1.03) rotate(2deg); } 50% { transform: scale(1.05, .93); } 62% { transform: translateY(-52px) scale(.97, 1.05) rotate(-4deg); } 76% { transform: scale(1.06, .92); } 88% { transform: translateY(-14px); } }
@keyframes hopsh { 0%, 28%, 50%, 76%, 100% { transform: none; opacity: 1; } 17%, 39% { transform: scale(.78); opacity: .6; } 62% { transform: scale(.72); opacity: .5; } 88% { transform: scale(.93); opacity: .9; } }
.hearts { inset: 0; pointer-events: none; }
.heart { position: absolute; left: var(--x); top: var(--y); width: var(--sz); height: var(--sz); animation: heart var(--life) ease-out forwards; }
.heart svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 0 #0008); }
.heart.still { animation: none; }
@keyframes heart { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 14% { opacity: 1; transform: translate(calc(var(--dx) * .15), -14px) scale(1.15); } 100% { opacity: 0; transform: translate(var(--dx), -130px) scale(.9); } }
.pet-hint { margin: .4rem 0 0; font-size: .9rem; color: var(--bone-dim); font-style: italic; text-align: center; }
/* the portrait that pops over the pet scene: the game's capture panel, the Wolf's own pair */
.pet-panel { left: 330px; top: -6px; width: 340px; height: 170px; object-fit: cover; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .25s ease, transform .25s cubic-bezier(.2, 1.4, .4, 1);
  box-shadow: 0 0 0 3px var(--bone), 0 0 0 5px #000, 0 18px 40px #000d; pointer-events: none; z-index: 5; }
.pet-panel.show { opacity: 1; transform: none; }
.pet-panel.pop { animation: panelpop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes panelpop { 0% { transform: scale(1.12); filter: brightness(1.8); } 100% { transform: none; filter: none; } }

/* ---- the portraits: two GIFs of the real capture ---- */
.react { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.6rem 1.4rem; max-width: 1180px; }
.flip { margin: 0; }
.flip .pic, .flip { position: relative; }
.flip img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; box-shadow: 0 0 0 1px var(--gilt-dk), 0 14px 30px #000b; }
.flip img.e { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .45s ease; }
.flip.on img.e { opacity: 1; }
.flip figcaption { font-size: .95rem; color: #c3bba9; margin-top: .6rem; }
/* (the hover pairs, kept for the pet scene's markup only) */
.pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1.2rem 1rem; }
.pair { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 2 / 1; overflow: hidden; box-shadow: 0 0 0 1px var(--gilt-dk), 0 14px 30px #000b; transition: box-shadow .2s ease, transform .2s ease; }
.pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pair .e { opacity: 0; transition: opacity .18s ease; }
.pair:hover, .pair:focus-visible, .pair.on { box-shadow: 0 0 0 1px var(--gilt-hi), 0 18px 36px #000d; transform: translateY(-3px); }
.pair:hover .e, .pair:focus-visible .e, .pair.on .e { opacity: 1; }
.pair-name { position: absolute; left: 0; bottom: 0; padding: .3rem .6rem; font: 400 .66rem/1 var(--f-mark); letter-spacing: .14em; text-transform: uppercase; font-style: italic; color: var(--gilt); background: #0b0910cc; }

/* ---- footage: the trailer and the loop clips ---- */
.trailer { margin: 0 0 3rem; max-width: 960px; }
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px var(--gilt-dk), 0 24px 50px #000c; }
.trailer figcaption, .clip figcaption { font-size: .95rem; color: #c3bba9; margin-top: .6rem; }
h3.sub { margin: 0 0 1.2rem; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.6rem 1.2rem; margin-bottom: 3rem; }
.clip { margin: 0; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px var(--gilt-dk), 0 14px 30px #000b; }

/* ---- the spread ---- */
.spread { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3.4vw, 3.2rem); align-items: start; }
.pos figure { margin: 0 0 1.4rem; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 50px #000c, 0 0 0 1px #d8b25a44; transition: transform .35s ease; aspect-ratio: 420 / 785; max-width: 270px; }
.pos figure img { width: 100%; height: 100%; object-fit: cover; }
.pos-1 figure { transform: rotate(-3.2deg); } .pos-2 figure { transform: rotate(1.1deg) translateY(18px); } .pos-3 figure { transform: rotate(3.6deg); }
.pos:hover figure { transform: rotate(0) translateY(-6px); }
.pos h3 { margin-bottom: .5rem; }
.pos p:last-child { color: #cfc7b5; margin: 0; max-width: 34ch; }

/* ---- placeholders: a hatched screen that says what it is waiting for ---- */
.ph { margin: 0; }
.ph-screen { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: .4rem; border: 1px dashed var(--gilt-dk);
  background: repeating-linear-gradient(135deg, #1b1524 0 14px, #15101c 14px 28px); color: var(--bone-dim); }
.ph-tag { font: 400 .8rem/1 var(--f-mark); letter-spacing: .16em; text-transform: uppercase; color: var(--gilt); font-style: italic; }
.ph-size { font-size: .8rem; font-variant-numeric: tabular-nums; }
.ph-play { width: 0; height: 0; border-left: 30px solid var(--bone-dim); border-block: 19px solid transparent; margin-bottom: .6rem; opacity: .7; }
.ph figcaption { font-size: .95rem; color: #c3bba9; margin-top: .7rem; max-width: 60ch; }
.ph figcaption b { color: var(--bone); font-weight: 700; }
.ph-trailer { max-width: 920px; margin-bottom: 3rem; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; box-shadow: 0 0 0 1px var(--gilt-dk), 0 14px 30px #000b; transition: box-shadow .2s ease; }
.shot a:hover img, .shot a:focus-visible img { box-shadow: 0 0 0 1px var(--gilt-hi), 0 18px 36px #000d; }
.shot figcaption { font-size: .95rem; color: #c3bba9; margin-top: .6rem; } .shot figcaption b { color: var(--bone); font-weight: 700; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 2.2rem 1.8rem; }

/* ---- facts ---- */
.facts-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #ffffff14; }
.facts dt { font: 400 .74rem/1.6 var(--f-mark); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); font-style: italic; }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.disclosure { background: var(--plum); padding: 1.8rem 1.9rem; box-shadow: inset 0 0 0 1px var(--gilt-dk), 6px 6px 0 #0006; }
.disclosure h3 { margin-bottom: .8rem; }
.disclosure p { margin: 0 0 .8rem; color: #d0c8b6; max-width: 56ch; }
.draft-flag { font-size: .85rem; color: var(--gilt) !important; font-style: italic; }

.foot { padding: 2.6rem 0 3.2rem; border-top: 1px solid #ffffff14; color: var(--bone-dim); font-size: .9rem; }
.foot p { margin: 0 0 .4rem; max-width: 80ch; }
.credits { font-size: .8rem; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 6rem 3.5rem; }
  .pet-wrap { grid-template-columns: 1fr; }
  .hero-card { width: min(230px, 62%); justify-self: start; }
  .spread { grid-template-columns: 1fr; gap: 3rem; }
  .pos figure { max-width: 220px; }
  .pos-2 figure { transform: rotate(1.1deg); }
  .facts-wrap { grid-template-columns: 1fr; }
  .tower { left: 58%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .card-aura, .card-face, .sweep, .tower .glow, .wolf.hop, .sh-wolf.hop { animation: none; }
  .card-face img, .pos figure { transition: none; }
  .pet-panel, .pair, .pair .e { transition: none; } .pet-panel.pop { animation: none; }
}
