/* Hallmark · macrostructure: Walked World (gate → house → room → vanity, one stage, no scroll) · genre: atmospheric · theme: studied-DNA (source: Miu Miu "A House that we shaped", Awwwards SOTD) · anchor hue: pumpkin
 * pre-emit critique: P5 H4 E4 S5 R4 V5 · nav: N9 edge-aligned bar · footer: none (single stage) · contrast: pass (40–41) · mobile: pass (34, 49, 50–57) · tokens: pass (48) */
/* WAIFUWEEN: the house. A candlelit Victorian dollhouse at midnight, after the Miu Miu
   "A House that we shaped" walk: one frontal room at a time, pulsing hotspots, a cream
   prompt card, subtitles in the narrator's italic, a slow dolly that follows the hand. */

@font-face { font-family: 'Work Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/work-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/work-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 800; font-style: normal; font-display: swap; src: url(/assets/fonts/work-sans-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url(/assets/fonts/eb-garamond-latin-400-italic.woff2) format('woff2'); }

:root {
  --night: #140b14;
  --plum: #2b1029;
  --velvet: #4a1838;
  --cream: #ede6d6;
  --wax: #c9bba3;
  --pumpkin: #f39a3d;
  --ink: #1b1216;
  --gold: #c9a052;
  --sans: 'Work Sans', system-ui, sans-serif;
  --serif: 'EB Garamond', Georgia, serif;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --inout: cubic-bezier(0.76, 0, 0.24, 1);
  --bar: 64px;
  /* lifted shades: gilt frame golds and see-through veils of the palette */
  --night-a86: rgba(20, 11, 20, 0.86);
  --night-a00: rgba(20, 11, 20, 0);
  --cream-a08: rgba(237, 230, 214, 0.08);
  --cream-a16: rgba(237, 230, 214, 0.16);
  --pit-a72: rgba(14, 6, 12, 0.72);
  --flame-a00: rgba(255, 190, 120, 0);
  --wine-a50: rgba(40, 14, 20, 0.5);
  --cream-a18: rgba(237, 230, 214, 0.18);
  --pumpkin-a55: rgba(243, 154, 61, 0.55);
  --gilt-1: #5a4650;
  --cream-a00: rgba(237, 230, 214, 0);
  --cream-a75: rgba(237, 230, 214, 0.75);
  --pumpkin-a08: rgba(243, 154, 61, 0.08);
  --gilt-2: #f3d27e;
  --gilt-3: #9c6b22;
  --gilt-4: #e8c068;
  --gilt-5: #7d5418;
  --gilt-6: #d9ae5a;
  --shade-a60: rgba(8, 2, 6, 0.6);
  --gilt-7: #5c3b10;
  --gilt-8: #e6c06c;
  --gilt-9: #6f4914;
  --gilt-10: #1c0f19;
  --black-a80: rgba(0, 0, 0, 0.8);
  --shade-a70: rgba(8, 2, 6, 0.7);
  --pumpkin-a35: rgba(243, 154, 61, 0.35);
  --gilt-11: #e9c977;
  --gilt-12: #a87a2c;
  --gilt-13: #2a1a08;
  --black-a50: rgba(0, 0, 0, 0.5);
  --black-a60: rgba(0, 0, 0, 0.6);
  --black-a90: rgba(0, 0, 0, 0.9);
  --pit2-a90: rgba(20, 6, 12, 0.9);
  --shade-a50: rgba(8, 2, 6, 0.5);
  --gilt-14: #4a3740;
  --ink-a35: rgba(27, 18, 22, 0.35);
  --cream-a28: rgba(237, 230, 214, 0.28);
  --night-a66: rgba(20, 11, 20, 0.66);
  --night-a70: rgba(20, 11, 20, 0.7);
  --night-a96: rgba(20, 11, 20, 0.96);
  --gilt-15: #f0d48a;
  --gilt-16: #7a5420;
  --gilt-17: #e3c06a;
  --pumpkin-a18: rgba(243, 154, 61, 0.18);
  --gilt-18: #e9782a;
  --pumpkin-a60: rgba(243, 154, 61, 0.6);
  --gilt-19: #5a1f45;
  --gilt-20: #d8b25a;
  --pumpkin-a25: rgba(243, 154, 61, 0.25);
  --night-a55: rgba(20, 11, 20, 0.55);
  --cream-a10: rgba(237, 230, 214, 0.1);
  --cream-a20: rgba(237, 230, 214, 0.2);
  --pumpkin-a00: rgba(243, 154, 61, 0);
  --pumpkin-a45: rgba(243, 154, 61, 0.45);
  --cream-a05: rgba(237, 230, 214, 0.05);
  --cream-a50: rgba(237, 230, 214, 0.5);
  --black-a25: rgba(0, 0, 0, 0.25);
  --cream-a22: rgba(237, 230, 214, 0.22);
  --pit-a50: rgba(14, 6, 12, 0.5);
  --pit-a35: rgba(14, 6, 12, 0.35);
  --cream-a25: rgba(237, 230, 214, 0.25);
  --gilt-21: #ffb38a;
  --pit-a78: rgba(14, 6, 12, 0.78);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow-x: clip; }
body {
  background: var(--night); color: var(--cream);
  font: 400 17px/1.5 var(--sans); letter-spacing: -0.005em;
  overflow: hidden; overscroll-behavior: none;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pumpkin); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 99; background: var(--cream); color: var(--ink); padding: 10px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- the bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 clamp(12px, 2.4vw, 32px);
  background: linear-gradient(var(--night-a86), var(--night-a00));
}
.mark { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.mark img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1.5px var(--pumpkin); }
.bar-end { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ca, .buy, .connect, .ico {
  height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; border: 0;
}
.ca { padding: 0 12px; background: var(--cream-a08); color: var(--wax); border: 1px solid var(--cream-a16); }
.ca:not(:disabled) { color: var(--cream); }
.ca:disabled { cursor: default; }
.buy { padding: 0 14px; background: var(--pumpkin); color: var(--ink); font-weight: 800; }
.connect { padding: 0 14px; background: var(--cream); color: var(--ink); }
.ico { width: 38px; background: var(--cream-a08); color: var(--cream); border: 1px solid var(--cream-a16); }
.ico svg { width: 17px; height: 17px; fill: currentColor; }
.pumpmark { width: 19px; height: 19px; background: currentColor; -webkit-mask: url(/assets/img/pumpfun.svg) center / contain no-repeat; mask: url(/assets/img/pumpfun.svg) center / contain no-repeat; }
.buy:hover, .connect:hover { filter: brightness(1.08); }
.ico:hover, .ca:not(:disabled):hover { background: var(--cream-a16); }

/* ---------- the stage ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; outline: none; }
.scene { position: absolute; inset: 0; overflow: hidden; }
.cam { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, var(--pit-a72)); }
.candle { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; background: radial-gradient(90% 70% at 50% 40%, var(--flame-a00) 40%, var(--wine-a50)); opacity: 0.55; }
.candle.on { animation: flicker 5.2s steps(1) infinite; }
@keyframes flicker {
  0%, 100% { opacity: 0.5; } 7% { opacity: 0.66; } 9% { opacity: 0.48; } 31% { opacity: 0.58; }
  33% { opacity: 0.74; } 35% { opacity: 0.52; } 61% { opacity: 0.6; } 78% { opacity: 0.47; } 80% { opacity: 0.7; } 82% { opacity: 0.5; }
}

/* hotspots: Miu Miu's breathing rings */
.spots { position: absolute; inset: 0; }
.spot { position: absolute; transform: translate(-50%, -50%); width: 56px; height: 56px; padding: 0; border: 0; background: none; color: var(--cream); }
.ring { position: absolute; inset: 14px; border-radius: 50%; border: 2px solid var(--cream); background: var(--cream-a18); box-shadow: 0 0 18px var(--pumpkin-a55); }
.ring::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--cream); animation: breathe 2.4s var(--out) infinite; }
@keyframes breathe { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.3); opacity: 0; } }
.spot-tip {
  position: absolute; left: 50%; top: calc(100% - 4px); transform: translate(-50%, 6px); opacity: 0;
  background: var(--cream); color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.25;
  padding: 7px 11px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  transition: opacity 0.25s var(--out), transform 0.25s var(--out);
}
.spot-tip small { display: block; font-size: 13px; color: var(--gilt-1); font-weight: 400; }
.spot:hover .spot-tip, .spot:focus-visible .spot-tip, .spot.show .spot-tip { opacity: 1; transform: translate(-50%, 0); }
.spot:focus-visible { outline: none; }
.spot:focus-visible .ring { outline: 2px solid var(--pumpkin); outline-offset: 4px; }

/* a lit window on the facade: the whole window is the target, the ring sits in its middle */
.win { position: absolute; border: 0; padding: 0; background: transparent; border-radius: 4px; }
.win .spot { left: 50%; top: 50%; pointer-events: none; }
.win::before { content: ''; position: absolute; inset: 0; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--cream-a00); transition: box-shadow 0.3s var(--out), background 0.3s; }
.win:hover::before, .win:focus-visible::before { box-shadow: inset 0 0 0 2px var(--cream-a75); background: var(--pumpkin-a08); }
.win:hover .spot-tip, .win:focus-visible .spot-tip { opacity: 1; transform: translate(-50%, 0); }
.win:focus-visible { outline: none; }

/* ---------- the walls and their portraits ---------- */
.wall { position: absolute; container-type: size; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 7cqh 6cqw; }
.frame {
  position: relative; display: block; padding: 6%; border: 0; aspect-ratio: 1; width: min(62cqw, 82cqh);
  background:
    linear-gradient(135deg, var(--gilt-2), var(--gilt-3) 30%, var(--gilt-4) 52%, var(--gilt-5) 74%, var(--gilt-6));
  box-shadow: 0 1.2vw 2.4vw var(--shade-a60), inset 0 0 0 2px var(--gilt-7), inset 0 0 0 5px var(--gilt-8), inset 0 0 0 7px var(--gilt-9);
  color: var(--cream); text-decoration: none; transition: transform 0.4s var(--out), box-shadow 0.4s var(--out);
}
.wall.n2 .frame { width: min(44cqw, 74cqh); }
.wall.n4 .frame { width: min(34cqw, 40cqh); }
.frame-in { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--gilt-10); box-shadow: inset 0 0 1.4vw var(--black-a80); }
.frame-in img { width: 100%; height: 100%; object-fit: cover; }
.frame:hover, .frame:focus-visible { transform: translateY(-1.5%) scale(1.03); box-shadow: 0 1.6vw 3vw var(--shade-a70), 0 0 2.4vw var(--pumpkin-a35), inset 0 0 0 2px var(--gilt-7), inset 0 0 0 5px var(--gilt-8), inset 0 0 0 7px var(--gilt-9); }
.plaque {
  position: absolute; left: 50%; bottom: -1.1em; transform: translateX(-50%); white-space: nowrap;
  background: linear-gradient(var(--gilt-11), var(--gilt-12)); color: var(--gilt-13); border-radius: 3px;
  font-size: max(9px, 4.6cqh); font-weight: 800; padding: 0.25em 0.7em; box-shadow: 0 2px 4px var(--black-a50);
}
.plaque small { font-weight: 500; margin-left: 0.4em; }
.crown { position: absolute; left: 50%; top: -0.9em; transform: translateX(-50%); width: 2.2em; height: 1.5em; font-size: max(10px, 5cqh); color: var(--pumpkin); filter: drop-shadow(0 2px 3px var(--black-a60)); }
.frame.empty .frame-in { display: grid; place-items: center; text-align: center; padding: 10%; }
.frame.empty p { margin: 0; font: italic 400 max(11px, 5.4cqh)/1.3 var(--serif); color: var(--wax); }
.wall.n4 .plaque { font-size: max(9px, 3.6cqh); }
.more { flex-basis: 100%; background: none; border: 0; color: var(--cream); font-size: clamp(11px, 0.9vw, 16px); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- narration ---------- */
.sub {
  position: absolute; left: 50%; top: calc(var(--bar) + clamp(10px, 2vh, 24px)); transform: translateX(-50%); z-index: 20;
  width: min(820px, calc(100% - 32px)); margin: 0; text-align: center; pointer-events: none;
  font: italic 400 clamp(20px, 2.1vw, 30px)/1.3 var(--serif); color: var(--pumpkin);
  text-shadow: 0 1px 2px var(--black-a90), 0 0 18px var(--pit2-a90);
}
.card {
  position: absolute; left: clamp(12px, 2.4vw, 32px); bottom: clamp(12px, 2.4vw, 32px); z-index: 25;
  width: min(360px, calc(100% - 24px)); padding: 18px 20px 18px; border-radius: 14px;
  background: var(--cream); color: var(--ink); box-shadow: 0 18px 40px var(--shade-a50);
}
.card-h { margin: 0 0 4px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.card-p { margin: 0; font-size: 15px; color: var(--gilt-14); }
.card-do { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-do:empty { display: none; }
.card-do button, .card-do a {
  height: 40px; padding: 0 14px; border-radius: 10px; border: 0; display: inline-flex; align-items: center;
  background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 500; text-decoration: none;
}
.card-do .alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-a35); }

.views { position: absolute; right: clamp(12px, 2.4vw, 32px); bottom: clamp(12px, 2.4vw, 32px); z-index: 25; display: flex; gap: 8px; }
.outside, .lights {
  height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--cream-a28);
  background: var(--night-a66); backdrop-filter: blur(8px); color: var(--cream); font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
}
.outside svg { width: 18px; height: 18px; fill: currentColor; }
.lights[aria-pressed='false'] { color: var(--wax); }
.look { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 25; display: none; gap: 6px; padding: 5px; border-radius: 12px; background: var(--night-a70); backdrop-filter: blur(8px); }
.look button { height: 36px; padding: 0 12px; white-space: nowrap; border-radius: 8px; border: 0; background: transparent; color: var(--wax); font-size: 15px; }
.look button[aria-pressed='true'] { background: var(--cream); color: var(--ink); }

/* ---------- the gate ---------- */
body.is-gate .bar { z-index: 70; }
.gate {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: calc(var(--bar) + 16px) clamp(20px, 6vw, 110px) 32px; overflow-y: auto;
  background: linear-gradient(90deg, var(--night-a96) 30%, var(--night-a70)), url(/assets/img/house.jpg) center / cover no-repeat, var(--night);
}
.gate-txt { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2.6vh, 28px); min-width: 0; }
.adult { margin: 0; font-size: 15px; color: var(--wax); }
.gate-ttl { margin: 0; min-width: 0; white-space: nowrap; font: normal 800 clamp(40px, 8vw, 150px)/0.92 var(--sans); letter-spacing: -0.04em; color: var(--pumpkin); }
.gate-line { margin: -0.2em 0 0; font: italic 400 clamp(28px, 3.4vw, 54px)/1.08 var(--serif); color: var(--cream); }
.gate-ttl .row, .gate-line .row { display: block; }
.gate-p { margin: 0; max-width: 52ch; font-size: clamp(16px, 1.2vw, 19px); color: var(--wax); }
.gate-art { margin: 0; justify-self: center; width: min(100%, 520px, 64vh); aspect-ratio: 4 / 5; padding: 10px; border-radius: 999px 999px 18px 18px;
  background: linear-gradient(145deg, var(--gilt-15), var(--gold) 40%, var(--gilt-16) 70%, var(--gilt-17)); box-shadow: 0 30px 80px var(--black-a60), 0 0 120px var(--pumpkin-a18); }
.gate-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 10px 10px; background: var(--gilt-18); }
@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; align-content: start; gap: 22px; background: var(--night); }
  .gate-art { order: -1; width: min(70vw, 300px, 34vh); }
  .gate-txt { align-items: center; text-align: center; margin: 0 auto; }
  .gate-ttl { font-size: min(15vw, 120px); }
}
.enter {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border: 0; border-radius: 12px;
  background: var(--cream); color: var(--ink); font-size: 17px; font-weight: 800; box-shadow: 0 0 0 0 var(--pumpkin-a60);
  transition: box-shadow 0.4s var(--out), transform 0.4s var(--out);
}
.enter svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.enter:hover { box-shadow: 0 0 0 6px var(--pumpkin-a35); transform: translateY(-1px); }

/* ---------- the vanity ---------- */
.vanity { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: calc(var(--bar) + 4px) clamp(8px, 2vw, 28px) clamp(8px, 2vw, 28px); background: var(--pit-a72); backdrop-filter: blur(6px); }
.v-shell {
  width: min(1240px, 100%); height: min(780px, 100%); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px var(--black-a60);
  background: radial-gradient(120% 90% at 20% 10%, var(--gilt-19), var(--velvet) 40%, var(--plum));
}
.v-mirror { position: relative; display: grid; place-items: center; padding: clamp(16px, 3vw, 44px); min-height: 0; }
.v-mirror canvas {
  width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: 1; border-radius: 10px;
  box-shadow: 0 0 0 6px var(--gilt-20), 0 0 0 9px var(--gilt-9), 0 0 0 13px var(--gilt-8), 0 24px 60px var(--black-a60), 0 0 80px var(--pumpkin-a25);
}
.v-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font: italic 400 17px var(--serif); color: var(--wax); }
.v-panel { display: flex; flex-direction: column; min-height: 0; background: var(--night-a55); border-left: 1px solid var(--cream-a10); }
.v-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 8px; }
.v-top h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.v-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--cream-a20); background: transparent; display: grid; place-items: center; }
.v-close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.v-scroll { flex: 1; overflow-y: auto; padding: 4px 20px 16px; scrollbar-width: thin; scrollbar-color: var(--velvet) transparent; }
/* scroll-scrubbed: a gilt thread under the title fills as she goes from who she is to her launch,
   and the launch button warms up as you reach it */
.v-panel { timeline-scope: --dress; }
.v-scroll { scroll-timeline: --dress block; }
.v-top { position: relative; }
.v-top::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: var(--gold); transform-origin: left; transform: scaleX(0.04); }
@supports (animation-timeline: scroll()) {
  .v-top::after { animation: dress-thread linear both; animation-timeline: --dress; }
  .v-do .go { animation: dress-warm linear both; animation-timeline: --dress; }
}
@keyframes dress-thread { to { transform: scaleX(1); } }
@keyframes dress-warm { from { box-shadow: 0 0 0 var(--pumpkin-a00); } to { box-shadow: 0 0 34px var(--pumpkin-a45); } }
.pick { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.pick legend { padding: 0; margin-bottom: 8px; font-size: 16px; font-weight: 800; color: var(--cream); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips + .chips { margin-top: 8px; }
.chip {
  min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--cream-a20);
  background: var(--cream-a05); color: var(--cream); font-size: 15px; display: inline-flex; align-items: center; gap: 7px;
}
.chip[aria-pressed='true'] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.chip:hover { border-color: var(--cream-a50); }
.faces .chip { padding: 0 10px 0 4px; }
.faces .chip img { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; object-position: 50% 8%; background: var(--cream-a10); }
.swatches .chip { padding: 0 10px 0 6px; }
.dot { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--black-a25); }
.field { display: block; margin-bottom: 10px; font-size: 15px; color: var(--wax); }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--cream-a22);
  background: var(--pit-a50); color: var(--cream); font-size: 16px;
}
.field input { min-height: 44px; }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field textarea { resize: vertical; }
#ticker { font-weight: 800; font-size: 20px; text-transform: uppercase; }
.opt { color: var(--wax); }
.warn { margin: 0 0 8px; font-size: 15px; color: var(--pumpkin); }
.warn:empty { display: none; }
.backro { display: flex; flex-direction: column; gap: 6px; }
.backro .chip { justify-content: flex-start; text-align: left; }
.reroll { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--pumpkin); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.fine { margin: 2px 0 0; font-size: 15px; color: var(--wax); }
.v-do { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--cream-a10); background: var(--pit-a35); }
.go { flex: 1 1 100%; height: 50px; border: 0; border-radius: 12px; background: var(--pumpkin); color: var(--ink); font-size: 17px; font-weight: 800; }
.go:disabled { opacity: 0.6; cursor: progress; }
.plain { flex: 1; height: 44px; white-space: nowrap; border-radius: 10px; border: 1px solid var(--cream-a25); background: transparent; color: var(--cream); font-size: 15px; }
.plain:disabled, .chip:disabled { opacity: 0.55; cursor: not-allowed; }
.go:active:not(:disabled), .plain:active:not(:disabled), .chip:active:not(:disabled), .enter:active, .v-close:active, .reroll:active { transform: translateY(1px); }
.status { flex: 1 1 100%; margin: 0; font-size: 15px; color: var(--wax); min-height: 1.5em; }
.status.bad { color: var(--gilt-21); }

/* ---------- close-up of one portrait ---------- */
.close { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: calc(var(--bar) + 8px) 16px 16px; background: var(--pit-a78); backdrop-filter: blur(8px); }
.cu-in { position: relative; width: min(980px, 100%); max-height: 100%; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center; padding: clamp(18px, 3vw, 40px); border-radius: 18px; background: radial-gradient(120% 90% at 20% 10%, var(--gilt-19), var(--plum)); }
.cu-frame { padding: 7%; background: linear-gradient(135deg, var(--gilt-2), var(--gilt-3) 30%, var(--gilt-4) 52%, var(--gilt-5) 74%, var(--gilt-6)); box-shadow: inset 0 0 0 2px var(--gilt-7), inset 0 0 0 5px var(--gilt-8), inset 0 0 0 7px var(--gilt-9), 0 20px 50px var(--black-a60); }
.cu-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--gilt-10); }
.cu-queen { margin: 0 0 6px; color: var(--pumpkin); font: italic 400 22px var(--serif); }
.cu-txt h2 { margin: 0; font-size: clamp(34px, 4.4vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.cu-name { margin: 6px 0 18px; font: italic 400 clamp(20px, 2vw, 28px)/1.25 var(--serif); color: var(--pumpkin); }
.cu-num { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 20px; font-size: 16px; }
.cu-num dt { color: var(--wax); }
.cu-num dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.cu-do { display: flex; flex-wrap: wrap; gap: 8px; }
.cu-do a, .cu-do button { height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--cream-a25); background: transparent; color: var(--cream); font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; }
.cu-do .buyit { background: var(--pumpkin); color: var(--ink); border-color: var(--pumpkin); font-weight: 800; }

.linkish { padding: 0; border: 0; background: none; color: var(--cream); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.cu-x { position: absolute; top: 12px; right: 12px; }

.toast { position: fixed; left: 50%; top: calc(var(--bar) + 8px); transform: translate(-50%, -12px); opacity: 0; z-index: 90; margin: 0; padding: 10px 16px; border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 15px; pointer-events: none; transition: opacity 0.3s var(--out), transform 0.3s var(--out); max-width: calc(100% - 24px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.nojs { position: fixed; inset: auto 0 20px; text-align: center; z-index: 99; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .ca { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 900px) {
  :root { --bar: 58px; }
  .mark span { display: none; }
  .buy { padding: 0 10px; }
  .ca { display: none; }
  .v-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
  .v-mirror { padding: 14px 14px 8px; }
  .v-mirror canvas { max-height: 34vh; }
  .v-hint { display: none; }
  .cu-in { grid-template-columns: 1fr; }
  .cu-frame { max-width: 340px; width: 100%; justify-self: center; }
  .look.on { display: flex; }
  .card { bottom: 74px; }
  .views { bottom: auto; top: calc(var(--bar) + 6px); }
  .sub { bottom: auto; top: calc(var(--bar) + 60px); font-size: 19px; }
}
@media (max-width: 520px) {
  .bar-end { gap: 6px; }
  .buy { font-size: 14px; }
  .connect { padding: 0 10px; font-size: 14px; }
  .ico { width: 34px; }
  .card { padding: 14px 16px; }
  .card-h { font-size: 17px; }
  .lights { display: none; }
}
@media (max-width: 440px) {
  .lg { display: none; }
  .sub { display: none; }
  .look button { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .candle.on { animation: none; }
}
