/* Ghost Dimension shop
   One dark, atmospheric base with seasonal palettes swapped on <html data-theme>. */
:root, :root[data-theme="normal"] {
  --bg: #0f1520; --bg-2: #172030; --bg-3: #222d40;
  --ink: #e2e8e6; --muted: #93a1ad; --line: rgba(226, 232, 230, 0.11);
  --accent: #e9b65a; --accent-soft: #f6dfae; --on-accent: #10151f;
  --glow: 233, 182, 90;
  --fog-a: rgba(84, 116, 160, 0.20); --fog-b: rgba(233, 182, 90, 0.07);
  --display: "IM Fell English", "Iowan Old Style", Georgia, serif;
  --hud: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --rec: #ff3d3d;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(1200px, 100% - 2.5rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="halloween"] {
  --bg: #110b17; --bg-2: #1c1325; --bg-3: #2a1d36;
  --ink: #f2e8f6; --muted: #a895b6; --line: rgba(242, 232, 246, 0.11);
  --accent: #ff8a2a; --accent-soft: #ffc690; --on-accent: #160d0a;
  --glow: 255, 138, 42;
  --fog-a: rgba(124, 62, 176, 0.26); --fog-b: rgba(255, 120, 30, 0.09);
}
:root[data-theme="christmas"] {
  --bg: #0a1613; --bg-2: #11211c; --bg-3: #1a2f28;
  --ink: #eef3ec; --muted: #9db3a8; --line: rgba(238, 243, 236, 0.11);
  --accent: #e8c46c; --accent-soft: #f8e4ad; --on-accent: #0e1612;
  --glow: 232, 196, 108;
  --fog-a: rgba(58, 124, 96, 0.22); --fog-b: rgba(204, 52, 62, 0.10);
}
:root[data-theme="easter"] {
  --bg: #16132a; --bg-2: #211d39; --bg-3: #2d294a;
  --ink: #f4eff9; --muted: #b4abca; --line: rgba(244, 239, 249, 0.12);
  --accent: #f4abc2; --accent-soft: #fcd9e5; --on-accent: #1b1428;
  --glow: 244, 171, 194;
  --fog-a: rgba(146, 204, 176, 0.15); --fog-b: rgba(244, 171, 194, 0.13);
}
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem); scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
  --px: 50vw; --py: 30vh;
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 600ms ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--accent-soft); text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Atmosphere: particles, light that follows you, fog, grain, vignette ---- */
#atmos { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.lightwash {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(circle 520px at var(--px) var(--py), rgba(var(--glow), 0.10), transparent 70%);
}
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 2; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55)); }
.page { position: relative; z-index: 3; }

/* ---- Announcement + header ---- */
.notice { background: var(--accent); color: var(--on-accent); font-size: 0.9375rem; font-weight: 600; text-align: center; padding: 0.55rem 1rem; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.wordmark { font: 400 1.65rem/1 var(--display); color: var(--ink); text-decoration: none; margin-right: auto; }
.head-links { display: flex; gap: 1.75rem; margin-right: 1.75rem; }
.head-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.head-links a:hover { color: var(--ink); }
.basket-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.55rem 0.7rem 0.55rem 1.1rem; font-weight: 600; font-size: 0.9375rem;
  transition: border-color 200ms, background 200ms;
}
.basket-btn:hover { border-color: rgba(var(--glow), 0.6); background: rgba(var(--glow), 0.08); }
.basket-count { min-width: 1.6rem; height: 1.6rem; border-radius: 999px; display: inline-grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 0.8125rem; font-weight: 700; padding-inline: 0.4rem; }
.basket-count[data-empty="true"] { background: var(--bg-3); color: var(--muted); }
.basket-count.bump { animation: bump 420ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Christmas: a string of lights under the header. */
:root[data-theme="christmas"] .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 12px; pointer-events: none;
  background:
    radial-gradient(circle 3.5px at 12px 7px, #ff5a5f 90%, transparent) 0 0 / 96px 12px repeat-x,
    radial-gradient(circle 3.5px at 36px 8px, #ffd36b 90%, transparent) 0 0 / 96px 12px repeat-x,
    radial-gradient(circle 3.5px at 60px 7px, #6fe0a2 90%, transparent) 0 0 / 96px 12px repeat-x,
    radial-gradient(circle 3.5px at 84px 8px, #7fb6ff 90%, transparent) 0 0 / 96px 12px repeat-x;
  filter: drop-shadow(0 0 6px rgba(255, 220, 140, 0.8));
  animation: twinkle 2.4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero::before { width: 70vw; height: 50vw; left: -20vw; top: -10vw; background: radial-gradient(closest-side, var(--fog-a), transparent); }
.hero::after { width: 60vw; height: 45vw; right: -18vw; bottom: -20vw; background: radial-gradient(closest-side, var(--fog-b), transparent); animation-duration: 32s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, 4vw) scale(1.15); } }
.hero .wrap {
  position: relative; z-index: 1;
  min-height: min(calc(100svh - 4.5rem), 900px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.torch {
  --tx: 30%; --ty: 40%;
  position: relative; margin: 0;
  font: 400 clamp(3.25rem, 11.5vw, 6.5rem)/0.92 var(--display);
  letter-spacing: -0.02em; text-wrap: balance;
}
.torch .dim { display: block; color: color-mix(in srgb, var(--ink) 30%, var(--bg)); }
.torch .lit {
  position: absolute; inset: 0; color: var(--accent-soft);
  text-shadow: 0 0 30px rgba(var(--glow), 0.45), 0 0 2px rgba(var(--glow), 0.6);
  -webkit-mask-image: radial-gradient(circle 210px at var(--tx) var(--ty), #000 30%, transparent 78%);
  mask-image: radial-gradient(circle 210px at var(--tx) var(--ty), #000 30%, transparent 78%);
}
.hero-sub { max-width: 36ch; margin: 1.75rem 0 2.25rem; color: color-mix(in srgb, var(--ink) 72%, var(--muted)); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: 999px; padding: 0.95rem 1.7rem;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 0 0 0 rgba(var(--glow), 0.5), 0 12px 30px -12px rgba(var(--glow), 0.7);
  transition: transform 200ms var(--ease), box-shadow 300ms, background 200ms;
}
.btn:hover { background: var(--accent-soft); transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(var(--glow), 0.12), 0 18px 40px -12px rgba(var(--glow), 0.8); }
.btn[disabled] { background: var(--bg-3); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-quiet { background: none; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-quiet:hover { background: var(--bg-2); box-shadow: none; }

/* Featured product: turns towards your pointer. */
.stage { perspective: 1400px; justify-self: center; width: min(100%, 340px); }
.feature { display: block; width: 100%; background: none; border: 0; padding: 0; text-align: left; perspective: 1400px; }
.tilt {
  --rx: 0deg; --ry: -14deg; --sx: 30%;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease);
}
.tilt.live { transition: transform 120ms linear; }
.feature .frame { aspect-ratio: 4 / 5; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 100px -20px rgba(var(--glow), 0.4); }
.feature .frame::before { opacity: 1; }
.sheen { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.55) var(--sx), transparent calc(var(--sx) + 25%)); opacity: 0.7; }
.feature-shadow { height: 26px; margin: 1.4rem auto 0; width: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent); }
.feature-caption { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--muted); text-align: center; }
.feature-caption strong { display: block; color: var(--ink); font: 400 1.5rem/1.2 var(--display); margin-bottom: 0.2rem; }

/* ---- Camera viewfinder over the hero (the show is shot on night cameras) ---- */
.viewfinder { position: absolute; inset: clamp(0.75rem, 2.5vw, 1.75rem); pointer-events: none; z-index: 2; font: 500 0.75rem/1 var(--hud); letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.72); }
.vf-corner { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255, 255, 255, 0.55); }
.vf-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.vf-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.vf-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.vf-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.vf-top, .vf-bottom { position: absolute; left: 2.5rem; right: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.vf-top { top: 0.55rem; }
.vf-bottom { bottom: 0.55rem; }
.rec { display: inline-flex; align-items: center; gap: 0.5rem; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px var(--rec); animation: rec 1.6s steps(1) infinite; }
.rec b { font-weight: 500; color: rgba(255, 255, 255, 0.9); font-variant-numeric: tabular-nums; }
@keyframes rec { 50% { opacity: 0.15; } }
.vf-right { display: inline-flex; align-items: center; gap: 0.6rem; }
.battery { width: 26px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; display: inline-block; }
.battery::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: currentColor; }
.battery i { position: absolute; inset: 1.5px; right: 35%; background: currentColor; }
.vf-loc b { font-weight: 500; color: #fff; margin-left: 0.4rem; transition: opacity 400ms; }
.emf { display: inline-flex; align-items: flex-end; gap: 3px; }
.emf-label { margin-right: 0.35rem; }
.emf i { width: 7px; border-radius: 1px; background: rgba(255, 255, 255, 0.18); transition: background 120ms; }
.emf i:nth-of-type(1) { height: 6px; } .emf i:nth-of-type(2) { height: 9px; } .emf i:nth-of-type(3) { height: 12px; } .emf i:nth-of-type(4) { height: 15px; } .emf i:nth-of-type(5) { height: 18px; }
.emf i.on:nth-of-type(1), .emf i.on:nth-of-type(2) { background: #5ee08a; box-shadow: 0 0 6px #5ee08a; }
.emf i.on:nth-of-type(3) { background: #f0d24a; box-shadow: 0 0 6px #f0d24a; }
.emf i.on:nth-of-type(4) { background: #ff9440; box-shadow: 0 0 6px #ff9440; }
.emf i.on:nth-of-type(5) { background: var(--rec); box-shadow: 0 0 8px var(--rec); }
.scanlines { position: absolute; inset: 0; opacity: 0.25; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---- Locations ticker ---- */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; padding-block: 1.15rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; align-items: center; width: max-content; animation: ticker 80s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: italic 400 clamp(1.35rem, 2.8vw, 2rem)/1.2 var(--display); white-space: nowrap; padding-inline: 1.4rem; color: color-mix(in srgb, var(--ink) 60%, var(--bg)); }
.ticker span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 50%, var(--bg)); }
.ticker i { font-style: normal; color: var(--accent); font-size: 0.95rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- Shop ---- */
.shop { padding-block: clamp(4rem, 9vw, 7rem); }
.shop-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
h2 { font: 400 clamp(2.4rem, 6vw, 4.5rem)/0.95 var(--display); margin: 0; letter-spacing: -0.01em; }
.shop-note { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.cats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.cat { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); border-radius: 999px; padding: 0.5rem 1rem; font-weight: 600; font-size: 0.9375rem; color: var(--muted); transition: color 160ms, border-color 160ms, background 160ms; }
.cat:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.cat[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cat small { font-weight: 600; opacity: 0.6; margin-left: 0.3rem; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.card { display: flex; flex-direction: column; }
.card-open .tilt { --ry: 0deg; }
.card-open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; perspective: 1000px; }
/* Each item sits in its own pool of torchlight. */
.frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(var(--glow), 0.16), transparent 70%),
    radial-gradient(ellipse 60% 18% at 50% 92%, rgba(0, 0, 0, 0.55), transparent 70%),
    linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg) 70%, #000));
  border: 1px solid var(--line);
  transition: border-color 300ms, box-shadow 300ms;
}
.frame::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 45% at 50% 8%, rgba(var(--glow), 0.28), transparent 70%); opacity: 0; transition: opacity 300ms; pointer-events: none; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 400ms var(--ease); }
.frame.fit-contain img { object-fit: contain; padding: 11%; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.55)); }
.frame.fit-cover img { object-fit: cover; }
.card-open:hover .frame, .card-open:focus-visible .frame { border-color: rgba(var(--glow), 0.45); box-shadow: 0 30px 60px -30px rgba(var(--glow), 0.45); }
.card-open:hover .frame::before, .card-open:focus-visible .frame::before { opacity: 1; }
.card-open:hover .frame.fit-contain img { transform: translateY(-6px) scale(1.03); }
.card-open:hover .frame.fit-cover img { transform: scale(1.04); }
.badge { position: absolute; top: 0.8rem; left: 0.8rem; z-index: 1; background: var(--accent); color: var(--on-accent); font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: 999px; }
.badge-sale { left: auto; right: 0.8rem; background: var(--rec); color: #fff; }
.sold { position: absolute; inset: auto 0 0 0; z-index: 1; text-align: center; padding: 0.55rem; background: rgba(0, 0, 0, 0.65); font-weight: 700; font-size: 0.875rem; color: var(--ink); }
.card.out .frame img { filter: grayscale(0.85) brightness(0.55); }
.card h3 { font: 400 1.4rem/1.15 var(--display); margin: 1rem 0 0.2rem; }
.card .sub { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.card .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-top: 0.55rem; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.was { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 0.4rem; font-size: 0.9em; }
.tag { font-size: 0.8125rem; color: var(--accent-soft); }
.tag-out { color: var(--muted); }
.cover-blank { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; font: 400 1.5rem/1.15 var(--display); color: var(--accent-soft); }
.empty-shelf { color: var(--muted); padding: 3rem 0; grid-column: 1 / -1; }

/* ---- About ---- */
.about { border-top: 1px solid var(--line); padding-block: clamp(4rem, 9vw, 7rem); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem 5rem; align-items: start; }
.about-text p { margin: 0 0 1.1rem; max-width: 58ch; font-size: 1.125rem; color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.about-text p:first-child { font: 400 clamp(1.4rem, 2.4vw, 1.85rem)/1.35 var(--display); color: var(--ink); }

.about .btn-quiet { margin-top: 0.75rem; }
.prose p { margin: 0 0 1rem; max-width: 60ch; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); white-space: pre-line; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding-top: 3rem; overflow: hidden; }
.foot-links { display: inline-flex; gap: 1.5rem; flex-wrap: wrap; }
.foot-links button, .foot-links a { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.foot-links button:hover, .foot-links a:hover { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; color: var(--muted); font-size: 0.9375rem; }
.bigmark {
  font: 400 clamp(4rem, 17vw, 16rem)/0.8 var(--display); letter-spacing: -0.03em; white-space: nowrap;
  margin: 2.5rem 0 -0.12em; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 22%, var(--bg)), transparent 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Sheets (details + basket) ---- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4, 6, 10, 0.66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 260ms ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
  background: var(--bg-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(102%); transition: transform 380ms var(--ease); visibility: hidden;
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, 0.6);
}
.sheet.open { transform: none; visibility: visible; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.sheet-head h2 { font-size: 1.8rem; }
.close { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); width: 2.5rem; height: 2.5rem; border-radius: 999px; font-size: 1.4rem; line-height: 1; }
.close:hover { background: var(--bg-3); }
.sheet-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.sheet-foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); background: var(--bg-2); }

.sheet-head.floating { position: absolute; top: env(safe-area-inset-top, 0px); right: 0; border: 0; z-index: 2; }
.detail { padding: 0; }
.gallery { position: relative; }
.gallery .frame { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); aspect-ratio: auto; height: min(44vh, 400px); }
.gallery .frame::before { opacity: 1; }
.thumbs { display: flex; gap: 0.5rem; padding: 0.75rem 1.5rem 0; overflow-x: auto; }
.thumbs button { flex: none; width: 58px; height: 58px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--bg-3); }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.options { border: 0; padding: 0; margin: 1.25rem 0 0; }
.options legend { font-weight: 600; margin-bottom: 0.6rem; padding: 0; }
.option-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.option-list label { position: relative; }
.option-list input { position: absolute; opacity: 0; inset: 0; }
.option-list span { display: inline-block; min-width: 3rem; text-align: center; padding: 0.6rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; transition: border-color 160ms, background 160ms; }
.option-list input:checked + span { border-color: var(--accent); background: rgba(var(--glow), 0.12); color: var(--accent-soft); }
.option-list input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.option-list input:disabled + span { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.detail-info { padding: 0.5rem 1.5rem 1.5rem; }
.detail h3 { font: 400 2.3rem/1.05 var(--display); margin: 0 0 0.35rem; }
.detail .author { color: var(--muted); margin: 0 0 1.25rem; }
.detail .desc { white-space: pre-line; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); max-width: 60ch; }
.detail-buy { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.detail-buy .price { font-size: 1.45rem; margin-right: auto; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { background: none; border: 0; width: 2.3rem; height: 2.3rem; border-radius: 999px; font-size: 1.1rem; }
.qty button:hover { background: var(--bg-3); }
.qty output { min-width: 1.75rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

.line .frame { aspect-ratio: 1 / 1; border-radius: 10px; }
.line .frame.fit-contain img { padding: 8%; }
.line .variant { color: var(--muted); font-size: 0.875rem; margin: -0.2rem 0 0.4rem; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: start; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.line:first-child { padding-top: 0; }
.line h4 { margin: 0 0 0.35rem; font: 400 1.2rem/1.2 var(--display); }
.line .remove { background: none; border: 0; padding: 0; color: var(--muted); font-size: 0.875rem; text-decoration: underline; margin-top: 0.5rem; }
.line .price { text-align: right; }
.dest { margin: 1.25rem 0 1rem; border: 0; padding: 0; }
.dest legend { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.5rem; padding: 0; }
.dest-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.dest label { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; cursor: pointer; font-size: 0.9375rem; transition: border-color 200ms, background 200ms; }
.dest input { accent-color: var(--accent); }
.dest label:has(input:checked) { border-color: var(--accent); background: rgba(var(--glow), 0.08); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; margin: 0 0 1.25rem; font-variant-numeric: tabular-nums; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; }
.totals .grand { color: var(--ink); font-weight: 700; font-size: 1.2rem; padding-top: 0.4rem; }
.pay-note { color: var(--muted); font-size: 0.8125rem; margin: 0.75rem 0 0; text-align: center; }
.msg { border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.9375rem; margin-bottom: 1rem; }
.msg-error { background: rgba(214, 92, 72, 0.16); color: #f6b8ab; }
.done { padding: 1rem 0; }
.done h3 { font: 400 2.4rem/1.05 var(--display); margin: 0 0 0.75rem; color: var(--accent-soft); text-shadow: 0 0 30px rgba(var(--glow), 0.4); }
.done p { color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.checkout-btn { width: 100%; }
.pay-marks { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.8rem; flex-wrap: wrap; }
.pay-marks span { font-size: 0.6875rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0.2rem 0.4rem; }
.mock-stripe { background: #fff; color: #1a1f36; border-radius: 14px; padding: 1.25rem; margin-top: 1rem; }
.mock-stripe h4 { margin: 0 0 0.25rem; font: 600 1rem/1.3 var(--body); }
.mock-stripe p { margin: 0 0 1rem; font-size: 0.875rem; color: #555; }
.mock-stripe button { width: 100%; border: 0; border-radius: 8px; padding: 0.85rem; background: #635bff; color: #fff; font-weight: 700; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 3.5rem; }
  .stage { width: min(78%, 300px); }
  .head-links { display: none; }
  .vf-top, .vf-bottom { left: 1.6rem; right: 1.6rem; }
  .vf-loc { max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.85rem; }
  .card h3 { font-size: 1.15rem; }
  .about .wrap { grid-template-columns: 1fr; }

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .torch .lit { -webkit-mask-image: none; mask-image: none; }
  .torch .dim { visibility: hidden; }
  .grain, .hero::before, .hero::after, .ticker-track, .rec i, :root[data-theme="christmas"] .site-header::after { animation: none; }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .sheet, .scrim, .tilt, .btn { transition: none; }
}

/* ---- Pages and contact ---- */
.sheet-wide { width: min(720px, 100%); }
.prose h3 { font: 400 1.5rem/1.2 var(--display); margin: 1.75rem 0 0.6rem; color: var(--ink); }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.prose li { margin-bottom: 0.4rem; max-width: 60ch; }
.prose p { white-space: normal; }
.contact-form { display: grid; gap: 1rem; }
.contact-intro { margin: 0; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.contact-form .field { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9375rem; }
.contact-form .field small { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact-form textarea { resize: vertical; min-height: 8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.human { min-height: 65px; }
.fake-human { display: flex; align-items: center; gap: 0.75rem; border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem; background: rgba(255,255,255,0.04); font-weight: 600; width: fit-content; cursor: pointer; }
.fake-human input { width: 1.4rem; height: 1.4rem; accent-color: var(--accent); }
.fake-human small { font-weight: 400; color: var(--muted); }

/* ---- Closed for updates: a camera that's lost its signal ---- */
.offair { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 4.5rem 1.25rem; overflow: auto; background: #07090d; }
.offair-static { position: fixed; inset: 0; width: 100%; height: 100%; opacity: 0.22; image-rendering: pixelated; }
.offair-bars { position: fixed; inset: 0; display: flex; opacity: 0.07; pointer-events: none; }
.offair-bars i { flex: 1; }
.offair-bars i:nth-child(1) { background: #c0c0c0; } .offair-bars i:nth-child(2) { background: #c0c000; } .offair-bars i:nth-child(3) { background: #00c0c0; }
.offair-bars i:nth-child(4) { background: #00c000; } .offair-bars i:nth-child(5) { background: #c000c0; } .offair-bars i:nth-child(6) { background: #c00000; } .offair-bars i:nth-child(7) { background: #0000c0; }
.offair .viewfinder { position: fixed; }
.offair::after { content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(7, 9, 13, 0.82), rgba(7, 9, 13, 0.2) 75%); }
.rec.paused { color: #fff; }
.offair-card { position: relative; z-index: 3; max-width: 34rem; text-align: center; }
.offair-name { font: 500 0.8125rem/1 var(--hud); letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.5rem; }
.offair-title {
  font: 400 clamp(3rem, 11vw, 6.5rem)/0.95 var(--display); margin: 0; color: var(--accent-soft);
  text-shadow: 0 0 30px rgba(var(--glow), 0.5), 2px 0 rgba(255, 60, 60, 0.35), -2px 0 rgba(60, 200, 255, 0.35);
  animation: flicker 6s infinite steps(1);
}
@keyframes flicker { 0%, 100% { opacity: 1; transform: none; } 41% { opacity: 0.55; transform: translateX(2px); } 42% { opacity: 1; transform: none; } 77% { opacity: 0.7; } 78% { opacity: 1; } }
.offair-text { margin: 1.5rem auto 0; max-width: 30rem; font-size: 1.125rem; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.offair-until { margin: 1.25rem 0 0; font: 500 0.875rem/1.4 var(--hud); letter-spacing: 0.08em; color: var(--muted); }
.offair-until b { color: var(--ink); font-weight: 500; }
.offair-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
body.is-closed { overflow: hidden; }
body.is-closed .page, body.is-closed .lightwash, body.is-closed #atmos { display: none; }
.preview-bar { position: sticky; top: 0; z-index: 25; background: var(--rec); color: #fff; text-align: center; font-weight: 600; font-size: 0.9375rem; padding: 0.5rem 1rem; }
.preview-bar a { color: #fff; margin-left: 0.5rem; }
@media (prefers-reduced-motion: reduce) { .offair-title { animation: none; } }

.optin { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.875rem; color: color-mix(in srgb, var(--ink) 80%, var(--muted)); margin-bottom: 0.9rem; cursor: pointer; }
.optin input { margin-top: 0.15rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
