/* MUTANfT — the night gallery. Each section is a room with its own
   painted backdrop (see js/rooms.js); scroll choreography in js/scroll.js. */
:root {
  --bg: #070912; --ink: #f3efe4; --muted: #b3b6c8; --dark: #14110a;
  --line: rgba(255, 255, 255, .12); --g: #f5c842; --grgb: 245, 200, 66; --b: #3a6bff; --brgb: 58, 107, 255;
  --paint: #f5c842; --rail: 78px;
  --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --body: 'Inter', 'Helvetica Neue', Helvetica, sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; }
main, .footer { padding-left: var(--rail); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 56px); position: relative; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--g); letter-spacing: -.01em; }
strong { font-weight: 600; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.h2 { margin: 0; font: 800 clamp(44px, 6.4vw, 104px)/.95 var(--display); letter-spacing: -.05em; }
.h2 em { font-size: 1.08em; }
.sub { color: var(--muted); max-width: 34em; font-size: 18px; margin: 22px 0 0; }
.fine { font-size: 13px; color: var(--muted); margin: 24px 0 0; }

/* word-by-word reveal for .split headings */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wd > span { display: inline-block; transform: translateY(110%) rotate(4deg); transition: transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 70ms); }
.split.in .wd > span { transform: none; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 6px; font: 600 16px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  color: var(--ink); background: transparent; transition: transform .25s, background .25s, color .25s, box-shadow .3s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-g { background: var(--g); color: var(--dark); box-shadow: 4px 4px 0 var(--b); }
.btn-g:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--b); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); background: rgba(7, 9, 18, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(7, 9, 18, .6); }

/* ---------- side rail (the gallery map) ---------- */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: var(--rail);
  display: flex; flex-direction: column; align-items: center; padding: 18px 0;
  background: rgba(7, 9, 18, .55); border-right: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.rail-logo { width: 52px; height: 52px; border-radius: 50%; display: block; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.rail-logo img { width: 100%; height: 100%; filter: drop-shadow(3px 3px 0 var(--b)); }
.rail-logo:hover { transform: rotate(-12deg) scale(1.08); }
.rail-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.rail-nav a { position: relative; display: grid; place-items: center; width: 46px; height: 40px; text-decoration: none; color: var(--muted); border-radius: 8px; transition: color .2s, background .2s; }
.rail-nav a i { font: 400 18px/1 var(--serif); font-style: italic; }
.rail-nav a span {
  position: absolute; left: calc(100% + 14px); top: 50%; white-space: nowrap; pointer-events: none;
  font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--dark); padding: 5px 10px; border-radius: 3px;
  opacity: 0; transform: translate(-6px, -50%) rotate(-2deg); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.rail-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.rail-nav a:hover span { opacity: 1; transform: translate(0, -50%) rotate(-2deg); }
.rail-nav a[aria-current] { color: var(--g); }
.rail-nav a[aria-current]::before { content: ''; position: absolute; left: -16px; width: 4px; height: 22px; border-radius: 0 3px 3px 0; background: var(--g); }
.rail-progress { width: 2px; height: 80px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail-progress b { display: block; width: 100%; height: 100%; background: var(--g); transform-origin: 50% 0; transform: scaleY(0); }
.wallet-chip {
  position: fixed; top: 18px; right: 18px; z-index: 60; min-height: 44px; padding: 0 16px 0 14px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 10px; font: 600 14px var(--body); color: var(--dark); background: var(--ink); border: 0; cursor: pointer;
  box-shadow: 3px 3px 0 var(--b); transition: transform .2s, box-shadow .2s;
}
.wallet-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 3px rgba(var(--grgb), .3); }
.wallet-chip:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--b); }
.room-label { position: fixed; left: calc(var(--rail) + 18px); top: 22px; z-index: 55; color: var(--ink); text-transform: uppercase; background: rgba(7, 9, 18, .55); padding: 6px 10px; border-radius: 4px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- boot ---------- */
.boot { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: grid; place-items: center; transition: opacity .7s, visibility .7s; }
.boot.gone { opacity: 0; visibility: hidden; }
.boot-in { font: 500 14px var(--mono); color: var(--muted); min-width: 260px; }
.boot-in b { color: var(--g); font: 400 34px var(--serif); font-style: italic; margin-right: 6px; }
.boot-lines div { animation: fadeIn .3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-6px); } }

/* ---------- scenes (pinned while you scroll) ---------- */
.scene { position: relative; }
.scene > .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* I. entrance */
.hero-scene { height: 330vh; }
#tex { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.wall { position: absolute; left: 50%; top: 50%; width: min(1080px, 94vw); margin-left: calc(min(1080px, 94vw) / -2); z-index: 1; transform-origin: 50% 50%; will-change: transform; translate: 0 -50%; }
.wall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6vw; }
.hung { margin: 0; aspect-ratio: 1; padding: 4.5%; border-radius: 3px; background: linear-gradient(135deg, #3b2f17, #1a150b 40%, #4a3a1a 70%, #20190d); box-shadow: inset 0 0 0 1px rgba(var(--grgb), .5), 0 30px 60px -20px #000; }
.hung img { width: 100%; height: 100%; object-fit: cover; }
.hung.center { position: relative; }
.frame-art { position: relative; width: 100%; height: 100%; }
.frame-art > div { position: absolute; inset: 0; transition: opacity 1s; }
.frame-art svg { width: 100%; height: 100%; display: block; }
.hero-veil { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(7, 9, 18, .92) 0%, rgba(7, 9, 18, .7) 45%, rgba(7, 9, 18, .25) 80%), radial-gradient(ellipse at 60% 50%, transparent 30%, rgba(7, 9, 18, .8) 80%); }
.hero-title { position: absolute; z-index: 3; left: calc(var(--rail) * 0 + clamp(20px, 6vw, 100px)); right: 20px; top: 50%; translate: 0 -50%; }
.hero-title h1 { margin: 0; font: 800 clamp(52px, 9vw, 156px)/.9 var(--display); letter-spacing: -.055em; text-shadow: 0 4px 40px rgba(0, 0, 0, .6); }
.hero-title h1 em { font-size: 1.1em; }
.hero-title h1 .w { display: inline-block; animation: rise 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title h1 .w:nth-of-type(2) { animation-delay: .08s; } .hero-title h1 .w:nth-of-type(3) { animation-delay: .16s; } .hero-title h1 .w:nth-of-type(4) { animation-delay: .24s; } .hero-title h1 .w:nth-of-type(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(60%) rotate(5deg); } }
.hero-title .eyebrow { color: var(--ink); }
.scroll-hint { margin-top: 28px; color: var(--ink); text-transform: uppercase; }
.scroll-hint span { display: inline-block; animation: bob 1.6s ease-in-out infinite; color: var(--g); }
@keyframes bob { 50% { transform: translateY(6px); } }
.hero-after { position: absolute; z-index: 3; left: clamp(20px, 5vw, 80px); top: 50%; translate: 0 -50%; width: min(500px, 40vw); opacity: 0; }
.hero-lede { font-size: clamp(18px, 1.5vw, 22px); margin: 0; }
.hero-lede strong { color: var(--g); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.placard {
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 34px; rotate: -2deg;
  background: var(--ink); color: var(--dark); padding: 10px 14px 11px; border-radius: 3px; font-size: 13px; line-height: 1.3; box-shadow: 0 14px 30px -12px #000;
}
.placard b { font: 400 22px/1.1 var(--serif); font-style: italic; }
.placard .mono { font-size: 10px; color: #6b6450; margin-top: 4px; text-transform: uppercase; }

/* painted backdrops */
.art-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent); }
.art-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, rgba(7, 9, 18, .55), rgba(7, 9, 18, .82) 80%); }
.sticky .art-bg { -webkit-mask-image: none; mask-image: none; }
.room { position: relative; isolation: isolate; padding: clamp(110px, 13vw, 190px) 0; overflow: hidden; }
.light { color: var(--dark); }
.light .art-bg::after { background: radial-gradient(ellipse at 30% 30%, rgba(255, 250, 235, .35), rgba(255, 250, 235, .1) 70%); }
.light em { color: var(--b); }
.light .sub, .light .eyebrow, .light .fine { color: #4a4536; }

/* II. how: sideways hallway through the wheatfield */
.how-scene { height: 420vh; }
.how-scene .art-bg { z-index: 0; }
.how-scene .art-bg::after { background: linear-gradient(90deg, rgba(10, 7, 2, .9) 10%, rgba(10, 7, 2, .45) 60%, rgba(10, 7, 2, .7)); }
.how-track { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; gap: clamp(28px, 4vw, 64px); padding: 0 clamp(24px, 7vw, 120px); width: max-content; will-change: transform; }
.how-intro { width: min(560px, 80vw); flex: none; }
.step { flex: none; width: clamp(280px, 26vw, 380px); background: var(--ink); color: var(--dark); border-radius: 4px; padding: 34px 30px 30px; box-shadow: 0 30px 60px -25px #000; }
.step:nth-of-type(odd) { rotate: -2deg; } .step:nth-of-type(even) { rotate: 1.6deg; margin-top: 80px; }
.step .num { display: block; font: 400 84px/.8 var(--serif); font-style: italic; color: var(--b); margin-bottom: 16px; }
.step h3 { margin: 0 0 10px; font: 800 32px/1 var(--display); letter-spacing: -.04em; }
.step p { margin: 0; color: #4a4536; }
.how-progress { position: absolute; z-index: 1; left: clamp(24px, 7vw, 120px); right: clamp(24px, 7vw, 120px); bottom: 36px; height: 2px; background: rgba(255, 255, 255, .15); }
.how-progress b { display: block; height: 100%; background: var(--g); transform-origin: 0 50%; transform: scaleX(0); }

/* III. why: glass cards over a turning swirl */
.big-swirl {
  position: absolute; right: -25vmin; top: 50%; width: 120vmin; height: 120vmin; margin-top: -60vmin; border-radius: 50%; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(var(--grgb), .35) 0 6deg, transparent 6deg 14deg, rgba(var(--brgb), .4) 14deg 20deg, transparent 20deg 30deg);
  -webkit-mask-image: radial-gradient(circle, transparent 18%, #000 20%, #000 45%, transparent 70%); mask-image: radial-gradient(circle, transparent 18%, #000 20%, #000 45%, transparent 70%);
}
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 64px; max-width: 900px; }
.why-grid .glass:nth-child(even) { margin-top: 60px; }
.glass {
  background: rgba(7, 9, 18, .55); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 28px;
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.glass h3 { margin: 0 0 10px; font: 700 26px/1.1 var(--display); letter-spacing: -.035em; }
.glass p { margin: 0; color: var(--muted); }
.glass strong { color: var(--g); }
.tag { display: inline-block; color: var(--dark); background: var(--g); border-radius: 3px; padding: 3px 8px; font-size: 11px; margin-bottom: 18px; text-transform: uppercase; rotate: -2deg; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 90px; border-top: 1px solid var(--line); }
.stats div { padding: 22px 20px 0 0; }
.stats b { display: block; font: 400 clamp(52px, 6vw, 92px)/1 var(--serif); font-style: italic; color: var(--g); }
.stats span { color: var(--muted); font-size: 15px; }

/* cards hang on a nail and swing (motion in fx.js) */
.swing { position: relative; transform-origin: 50% -14px; will-change: transform; }
.swing::before {
  content: ''; position: absolute; left: 50%; top: -9px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 35%, #fff6d8, var(--g) 45%, #8a6a12); box-shadow: 0 2px 4px rgba(0, 0, 0, .6);
}
.swing::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 48%, transparent 60%);
  background-size: 250% 100%; background-position: 120% 0; transition: background-position .9s cubic-bezier(.2, .8, .2, 1);
}
.swing:hover::after { background-position: -40% 0; }

/* V. studio (lab) */
.lab-room .art-bg::after { background: radial-gradient(ellipse at 25% 45%, rgba(2, 12, 13, .5), rgba(2, 12, 13, .85) 75%); }
.lab-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 56px; }
.lab-preview { position: sticky; top: 90px; }
.easel { padding: 12px; border-radius: 3px; background: linear-gradient(135deg, #3b2f17, #1a150b 40%, #4a3a1a 70%, #20190d); box-shadow: inset 0 0 0 1px rgba(var(--grgb), .5), 0 40px 60px -25px #000; rotate: -1deg; }
.lab-art { aspect-ratio: 1; overflow: hidden; background: #111; }
.lab-art svg { width: 100%; height: 100%; display: block; }
.lab-art.mutating svg { animation: mutate .7s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes mutate { 35% { filter: blur(6px) saturate(1.8) hue-rotate(60deg); transform: scale(.92) rotate(-5deg); } }
.lab-odds { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 12px; padding: 12px 14px; background: var(--ink); color: var(--dark); border-radius: 3px; text-transform: uppercase; }
.lab-odds b { font-weight: 600; }
.lab-actions { display: flex; gap: 12px; }
.lab-actions .btn { flex: 1; }
.lab-controls { display: grid; gap: 10px; }
.trait-row { display: grid; grid-template-columns: 140px 40px minmax(0, 1fr) 40px auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(2, 12, 13, .6); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.trait-row > label:first-child { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.trait-row select { width: 100%; min-width: 0; font: 500 15px var(--body); color: var(--ink); background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .15); border-radius: 8px; padding: 9px 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--g); color: var(--dark); }
.lock { display: flex; align-items: center; gap: 6px; font: 500 11px var(--mono); text-transform: uppercase; color: var(--muted); cursor: pointer; user-select: none; }
.lock input { accent-color: var(--g); width: 16px; height: 16px; }
.tier { display: inline-block; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 3px; border: 1px solid currentColor; }

/* VI. traits: the bright sunflower room */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 48px 0 26px; }
.pill { min-height: 42px; padding: 0 16px; border-radius: 4px; border: 1.5px solid var(--dark); background: transparent; color: var(--dark); font: 600 14px var(--body); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.pill:hover { transform: translateY(-2px); }
.pill[aria-pressed="true"] { background: var(--dark); color: var(--g); }
.trait-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.trait-card { background: var(--ink); color: var(--dark); border-radius: 4px; padding: 8px; box-shadow: 0 18px 30px -18px rgba(60, 40, 0, .6); transition: translate .35s cubic-bezier(.3, 1.4, .5, 1); will-change: transform; }
.trait-card:nth-child(odd) { rotate: -1deg; } .trait-card:nth-child(even) { rotate: 1deg; }
.trait-card:hover { translate: 0 -8px; }
.trait-card .thumb { aspect-ratio: 1; overflow: hidden; background: #111; }
.trait-card .thumb svg { width: 100%; height: 100%; display: block; }
.trait-card .meta { padding: 10px 4px 4px; display: flex; flex-direction: column; gap: 4px; }
.trait-card b { font: 400 19px/1.1 var(--serif); font-style: italic; }
.trait-card .row { display: flex; justify-content: space-between; align-items: center; font: 500 11px var(--mono); color: #6b6450; }
.traits-room .tier { filter: brightness(.6) saturate(1.6); }
.tier-legend { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 30px; color: #4a4536; }

/* VII. token: a coin that turns as you scroll */
.token-scene { height: 260vh; }
.token-scene .art-bg { z-index: 0; }
.token-scene .art-bg::after { background: radial-gradient(circle at 30% 50%, rgba(10, 26, 92, .2), rgba(4, 8, 30, .85) 60%); }
.token-wrap { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.coin-stage { perspective: 1200px; display: grid; place-items: center; }
.coin { position: relative; width: min(360px, 60vw); aspect-ratio: 1; transform-style: preserve-3d; will-change: transform; }
.face { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 35% 30%, #fff3b0, var(--g) 40%, #b97a06 75%, #6b4600); box-shadow: inset 0 0 0 10px rgba(107, 70, 0, .45), inset 0 0 0 14px rgba(255, 243, 176, .5), 0 0 80px rgba(var(--grgb), .35);
  font: 400 min(200px, 34vw)/1 var(--serif); font-style: italic; color: #6b4600; }
.face.front img { width: 86%; height: 86%; border-radius: 50%; }
.face.back { transform: rotateY(180deg); font: 800 min(110px, 18vw)/1 var(--display); letter-spacing: -.05em; }
.facts { margin: 36px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); align-self: center; }
.facts dd { margin: 0; font-weight: 600; }
.facts .warn { color: var(--g); }

/* VIII. reading room */
.faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.faq-list details { border-bottom: 1.5px solid rgba(20, 17, 10, .25); }
.faq-list details:first-child { border-top: 1.5px solid rgba(20, 17, 10, .25); }
.faq-list summary { cursor: pointer; padding: 22px 0; font: 700 20px var(--display); letter-spacing: -.03em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font: 400 30px/1 var(--serif); color: var(--b); transition: transform .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; color: #4a4536; max-width: 40em; }

/* footer */
.footer { padding-top: 120px; padding-bottom: 60px; }
.foot-tag { font: 800 clamp(48px, 9vw, 150px)/.95 var(--display); letter-spacing: -.055em; margin-bottom: 40px; }
.footer p { color: var(--muted); max-width: 40em; }

/* ---------- modals ---------- */
.modal { background: #0c1020; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 30px; width: min(440px, calc(100vw - 32px)); box-shadow: 8px 8px 0 var(--b), 0 40px 80px -30px #000; }
.modal::backdrop { background: rgba(4, 6, 14, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal h3 { margin: 0 0 18px; font: 400 40px/1 var(--serif); font-style: italic; }
.modal-wide { width: min(920px, calc(100vw - 32px)); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 8px; background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.wallet-list, .acct { display: grid; gap: 10px; }
.wallet-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 0 16px; font: 600 16px var(--body); color: var(--ink); text-decoration: none; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: border-color .2s, background .2s; }
.wallet-item:hover { border-color: var(--g); background: rgba(var(--grgb), .08); }
.wallet-item img { width: 28px; height: 28px; border-radius: 6px; }
.wallet-item small { margin-left: auto; font: 500 11px var(--mono); text-transform: uppercase; color: var(--muted); }
.acct-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.acct-row span { font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; align-self: center; }
.acct-row b { word-break: break-all; text-align: right; font-weight: 600; }
.leg-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.leg-detail img { border-radius: 3px; padding: 10px; background: linear-gradient(135deg, #3b2f17, #1a150b 40%, #4a3a1a 70%, #20190d); }
.leg-detail h3 { font-size: 52px; }
.leg-detail p { color: var(--muted); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- sketched cursor + brush-dab trail ---------- */
#trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 89; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor.dialog-open, .has-cursor.dialog-open * { cursor: auto !important; }
.has-cursor.dialog-open :is(a, button, summary, select, label) { cursor: pointer !important; }
.dialog-open .cur { opacity: 0; }
.cur { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform; }
.cur-hidden .cur { opacity: 0; }
.cur-ring { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; overflow: visible; transition: scale .3s cubic-bezier(.3, 1.6, .5, 1); }
.cur-ring path { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.cur-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50% 40% 55% 45%; background: var(--paint); transition: background .4s, scale .2s; }
.cur.hot .cur-ring { scale: 1.55; }
.cur.hot .cur-ring path { stroke: var(--paint); }
.cur.down .cur-ring { scale: .8; }
.cur.down .cur-dot { scale: 1.6; }
.cur-tag {
  position: absolute; left: 18px; top: 14px; white-space: nowrap; font: italic 400 15px/1 var(--serif); color: var(--ink);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .25s;
}
.cur.hot .cur-tag { opacity: 1; transform: none; }
.on-light .cur-ring path { stroke: var(--dark); }
.on-light .cur-tag { color: var(--dark); text-shadow: none; }

/* mascot */
.mascot { position: fixed; right: 18px; bottom: -110px; z-index: 50; width: 72px; padding: 0; border: 0; background: none; transition: bottom .5s cubic-bezier(.3, 1.4, .5, 1); }
.mascot.peek { bottom: 16px; }
.mascot svg { width: 72px; height: 72px; display: block; animation: bob 4s ease-in-out infinite; }
.mascot .say { position: absolute; right: 62px; top: -4px; white-space: nowrap; background: var(--ink); color: var(--dark); border-radius: 3px; padding: 5px 10px; opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; }
.mascot:hover .say, .mascot.happy .say { opacity: 1; transform: none; }
.mascot.happy svg { animation: happy .5s ease-in-out 3; }
@keyframes happy { 50% { translate: 0 -18px; rotate: 10deg; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .trait-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lab-wrap, .faq { grid-template-columns: minmax(0, 1fr); }
  .lab-preview { position: static; max-width: 460px; }
}
@media (max-width: 820px) {
  :root { --rail: 0px; }
  .rail { top: auto; bottom: 0; right: 0; width: auto; height: 62px; flex-direction: row; padding: 0 10px; border-right: 0; border-top: 1px solid var(--line); }
  .rail-logo { width: 42px; height: 42px; flex: none; }
  .rail-nav { flex-direction: row; justify-content: space-around; gap: 0; }
  .rail-nav a { width: 36px; }
  .rail-nav a span, .rail-progress, .room-label { display: none; }
  .rail-nav a[aria-current]::before { left: 8px; right: 8px; top: -11px; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .wallet-chip { top: 12px; right: 12px; min-height: 40px; font-size: 13px; }
  main { padding-bottom: 62px; }
  .footer { padding-bottom: 100px; }
  .hero-after { left: 20px; right: 20px; width: auto; top: auto; bottom: 84px; translate: none; }
  .hero-after .placard, .hero-after .eyebrow { display: none; }
  .hero-lede { font-size: 17px; }
  .hero-title { top: 46%; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-grid .glass:nth-child(even) { margin-top: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-wrap { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 24px; }
  .coin { width: min(200px, 50vw); }
  .facts { margin-top: 20px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .token-scene .h2 { font-size: 40px; }
  .step { width: 78vw; }
  .step:nth-of-type(even) { margin-top: 40px; }
  .trait-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .trait-row { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .trait-row > label:first-child, .trait-row .lock { grid-column: 1 / -1; }
  .leg-detail { grid-template-columns: 1fr; }
  .mascot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wd > span { transform: none; transition: none; }
  .hero-title h1 .w, .mascot svg, .scroll-hint span { animation: none; }
}
.paper .art-bg::after { background: linear-gradient(rgba(243, 239, 228, .55), rgba(243, 239, 228, .7)); }

/* ---------- logo ---------- */
.boot-logo { display: block; width: 84px; height: 84px; margin-bottom: 14px; animation: wobble 1.2s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-8deg) scale(1.05); } }
.foot-logo { width: 120px; height: 120px; margin-bottom: 30px; filter: drop-shadow(5px 5px 0 var(--b)); }

/* ---------- III. why: the vault ---------- */
.why-scene { height: 340vh; }
.why-scene .art-bg { z-index: 0; }
.why-layout { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.why-layout .h2 { font-size: clamp(40px, 5vw, 80px); }
.vault { display: flex; align-items: center; gap: 26px; margin-top: 36px; }
.jar { position: relative; flex: none; width: 120px; height: 160px; border-radius: 26px 26px 34px 34px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 30px rgba(var(--brgb), .4), 0 20px 50px -20px #000; }
.jar::before { content: ''; position: absolute; left: 22px; right: 22px; top: -2px; height: 14px; background: #8a93a6; border-radius: 0 0 6px 6px; z-index: 2; }
.gold { position: absolute; inset: 0; transform-origin: 50% 100%; transform: scaleY(0); background: linear-gradient(180deg, #fff3b0, var(--g) 25%, #c98a00); }
.gold i { position: absolute; left: -20%; right: -20%; top: -8px; height: 16px; border-radius: 50%; background: #fff3b0; opacity: .7; animation: slosh 2.4s ease-in-out infinite; }
@keyframes slosh { 50% { transform: translateX(10%) rotate(3deg); } }
.jar-shine { position: absolute; left: 14px; top: 20px; bottom: 20px; width: 10px; border-radius: 10px; background: rgba(255, 255, 255, .35); z-index: 2; }
.vault-read b { display: block; font: 400 clamp(54px, 6vw, 96px)/1 var(--serif); font-style: italic; color: var(--g); font-variant-numeric: tabular-nums; }
.vault-read span { color: var(--muted); text-transform: uppercase; }
.why-cards { display: grid; gap: 14px; }
.why-card { padding: 20px 22px; will-change: transform, opacity, filter; transition: border-color .4s, box-shadow .4s; }
.why-card h3 { font-size: 22px; margin-bottom: 6px; }
.why-card p { font-size: 15px; }
.why-card.locked { border-color: rgba(var(--grgb), .55); box-shadow: 0 0 40px -18px rgba(var(--grgb), .6); }
.why-card .tag { margin-bottom: 10px; }
.why-fine { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; }

/* ---------- IV. legendaries: 3D wall under a spotlight ---------- */
.gallery-scene { height: 520vh; }
.gallery-scene .art-bg { z-index: 0; }
.spotlight { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: conic-gradient(from 180deg at 50% -10%, transparent 168deg, rgba(255, 236, 180, .2) 176deg, rgba(255, 236, 180, .26) 180deg, rgba(255, 236, 180, .2) 184deg, transparent 192deg),
              radial-gradient(ellipse 30% 14% at 50% 92%, rgba(255, 236, 180, .18), transparent 70%); }
.gallery-head { position: absolute; z-index: 3; top: 70px; left: 0; right: 0; }
.gallery-head .h2 { font-size: clamp(40px, 5vw, 78px); }
.flow-stage { position: absolute; inset: 0; z-index: 2; perspective: 1400px; transform-style: preserve-3d; display: grid; place-items: center; padding-top: 70px; }
.flow-card {
  position: absolute; width: clamp(220px, 24vw, 330px); aspect-ratio: 1; padding: 12px; border: 0; cursor: pointer; border-radius: 3px;
  background: linear-gradient(135deg, #3b2f17, #1a150b 40%, #4a3a1a 70%, #20190d);
  box-shadow: inset 0 0 0 1px rgba(var(--grgb), .5), 0 50px 70px -30px #000; will-change: transform, filter;
}
.flow-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.now-showing { position: absolute; z-index: 3; left: clamp(20px, 5vw, 70px); bottom: 46px; max-width: 380px; background: var(--ink); color: var(--dark); padding: 14px 18px 16px; border-radius: 3px; rotate: -1.5deg; box-shadow: 6px 6px 0 var(--b); }
.now-showing span { color: #6b6450; text-transform: uppercase; }
.now-showing b { display: block; font: 400 34px/1.05 var(--serif); font-style: italic; margin: 4px 0; }
.now-showing p { margin: 0; color: #4a4536; font-size: 14.5px; }
.now-showing.swap b, .now-showing.swap p { animation: swapIn .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- V. studio: painting brushes itself in ---------- */
.easel { --reveal: 1; will-change: transform; transform-origin: 50% 100%; }
.easel .lab-art {
  -webkit-mask-image: linear-gradient(100deg, #000 calc(var(--reveal) * 130% - 30%), transparent calc(var(--reveal) * 130%));
  mask-image: linear-gradient(100deg, #000 calc(var(--reveal) * 130% - 30%), transparent calc(var(--reveal) * 130%));
}
.lab-art.mutating svg { animation: brushwipe .8s cubic-bezier(.6, 0, .2, 1); }
@keyframes brushwipe {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
.lab-art svg { -webkit-mask-image: linear-gradient(100deg, #000 40%, transparent 60%); mask-image: linear-gradient(100deg, #000 40%, transparent 60%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 0 0; mask-position: 0 0; }
.trait-row { will-change: transform, opacity; }

/* ---------- VII. coin orbit ---------- */
.coin-stage { position: relative; min-height: 420px; }
.orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.orbit img { position: absolute; max-width: none; width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 5px; border-radius: 3px; background: linear-gradient(135deg, #3b2f17, #4a3a1a); box-shadow: inset 0 0 0 1px rgba(var(--grgb), .5), 0 10px 20px -8px #000; opacity: 0; }
.coin { z-index: 1; }

@media (max-width: 820px) {
  .why-scene { height: 300vh; }
  .why-layout { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 18px; padding-top: 60px; padding-bottom: 60px; }
  .why-layout .sub { display: none; }
  .vault { margin-top: 16px; }
  .jar { width: 70px; height: 96px; }
  .why-card { padding: 12px 14px; }
  .why-card p, .why-fine { display: none; }
  .why-card .tag { margin-bottom: 4px; }
  .why-card h3 { font-size: 18px; margin: 0; }
  .gallery-head { top: 60px; }
  .flow-card { width: 62vw; }
  .now-showing { left: 16px; right: 16px; bottom: 76px; max-width: none; }
  .now-showing p { display: none; }
  .coin-stage { min-height: 240px; }
  .orbit img { width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 3px; }
}

/* ---------- the mint desk (Lab room) ---------- */
.desk { margin-top: 90px; padding: clamp(22px, 3vw, 40px); border-radius: 4px; background: var(--ink); color: var(--dark); box-shadow: 10px 10px 0 var(--b), 0 40px 80px -40px #000; }
.desk .eyebrow, .desk .sub { color: #4a4536; }
.desk em { color: var(--b); }
.h3 { margin: 0; font: 800 clamp(32px, 3.6vw, 52px)/1 var(--display); letter-spacing: -.045em; }
.desk .sub { margin-top: 12px; font-size: 16px; }
.desk-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.desk-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid rgba(20, 17, 10, .18); border-radius: 4px; }
.desk-steps .n { font: italic 400 30px/1 var(--serif); color: var(--b); }
.desk-steps b { display: block; font: 700 18px var(--display); letter-spacing: -.02em; }
.desk-steps li span:not(.n) { color: #5b5544; font-size: 14.5px; }
.desk .btn-ghost { color: var(--dark); border-color: var(--dark); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.desk .btn-ghost:hover:not(:disabled) { background: var(--dark); color: var(--ink); }
.desk-status { min-height: 1.6em; margin: 18px 0 0; color: #4a4536; text-transform: none; letter-spacing: 0; font-size: 13px; }
.desk-status a { color: var(--b); }
.my-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1.5px solid rgba(20, 17, 10, .18); flex-wrap: wrap; }
.my-head h4 { margin: 0; font: italic 400 30px var(--serif); }
.my-head .mono { color: #6b6450; }
.my-mutants { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 16px; }
.my-mutants .empty { grid-column: 1 / -1; margin: 0; color: #5b5544; }
.mm { display: flex; flex-direction: column; gap: 8px; }
.mm-art { aspect-ratio: 1; padding: 8px; border-radius: 3px; background: linear-gradient(135deg, #3b2f17, #1a150b 40%, #4a3a1a 70%, #20190d); }
.mm-art svg { width: 100%; height: 100%; display: block; }
.mm-meta b { display: block; font: italic 400 22px var(--serif); }
.mm-meta .mono { color: #6b6450; }
.mm-burn { min-height: 40px; font-size: 14px; }
.mm-burn.armed { background: #c43a3a !important; color: #fff !important; border-color: #c43a3a !important; }
.mm-link { color: var(--b); text-decoration: none; }
@media (max-width: 820px) {
  .desk-steps li { grid-template-columns: 34px minmax(0, 1fr); }
  .desk-steps li .btn { grid-column: 1 / -1; }
}

/* ---------- sell form on your mutants ---------- */
.mm-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 6px; }
.mm-sell { display: grid; gap: 6px; padding: 8px; border: 1.5px dashed rgba(20, 17, 10, .3); border-radius: 4px; }
.mm-sell-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.mm-sell input, .mm-sell select { min-width: 0; font: 500 14px var(--body); color: var(--dark); background: #fffaf0; border: 1.5px solid rgba(20, 17, 10, .35); border-radius: 4px; padding: 8px; }
.mm-list { min-height: 40px; font-size: 14px; box-shadow: 3px 3px 0 var(--b); }

/* ---------- VI. the night market ---------- */
.market-room .art-bg::after { background: linear-gradient(rgba(6, 10, 30, .55), rgba(6, 10, 30, .78)); }
.mk-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.mk-bar .pills { margin: 0; }
.mk-bar .pill { color: var(--ink); border-color: rgba(255, 255, 255, .35); }
.mk-bar .pill[aria-pressed="true"] { background: var(--g); border-color: var(--g); color: var(--dark); }
.mk-bar .mono { color: var(--muted); text-transform: uppercase; }
.mk-status { color: var(--ink); }
.mk-status a { color: var(--g); }
.stalls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; margin-top: 24px; }
.stalls .empty { grid-column: 1 / -1; color: var(--muted); margin: 0; padding: 40px 0; }
.stall { display: flex; flex-direction: column; gap: 10px; }
.awning { height: 28px; border-radius: 4px 4px 0 0; background: repeating-linear-gradient(90deg, var(--g) 0 22px, #fff6d8 22px 44px);
  -webkit-mask: radial-gradient(circle 11px at 11px 28px, transparent 98%, #000) 0 0 / 22px 100%; mask: radial-gradient(circle 11px at 11px 28px, transparent 98%, #000) 0 0 / 22px 100%;
  box-shadow: 0 16px 30px -10px rgba(var(--grgb), .55); margin-bottom: -6px; position: relative; z-index: 1; }
.stall-art { aspect-ratio: 1; padding: 10px; border-radius: 3px; background: linear-gradient(135deg, #3b2f17, #1a150b 40%, #4a3a1a 70%, #20190d); box-shadow: inset 0 0 0 1px rgba(var(--grgb), .5), 0 30px 50px -25px #000; }
.stall-art svg { width: 100%; height: 100%; display: block; }
.stall-tag { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--ink); color: var(--dark); border-radius: 3px; rotate: -1deg; }
.stall-tag b { font: italic 400 22px/1.1 var(--serif); }
.stall-tag .price { font: 800 22px/1.1 var(--display); letter-spacing: -.03em; color: var(--b); }
.stall-tag .mono { color: #6b6450; }
.stall .btn { min-height: 44px; font-size: 15px; }

/* ---------- the 10k rarity table (traits room) ---------- */
.rarity { margin-top: 72px; background: rgba(243, 239, 228, .92); color: var(--dark); border-radius: 6px; padding: 30px; box-shadow: 0 30px 60px -30px rgba(60, 40, 0, .7); }
.rarity .sub { color: #4d4632; margin: 6px 0 0; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin: 22px 0 18px; }
.rt-bar input { font: 500 15px var(--mono); color: var(--dark); background: #fff; border: 1.5px solid var(--dark); border-radius: 3px; padding: 9px 12px; width: min(100%, 280px); }
.rt-bar .pill { color: var(--c); border-color: currentColor; background: var(--dark); }
.rt-bar .pill[aria-pressed="true"] { background: var(--c); color: var(--dark); }
.rt-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.rt-card { background: var(--dark); color: var(--ink); border-radius: 4px; padding: 6px; }
.rt-art { aspect-ratio: 1; overflow: hidden; background: #111; border-radius: 2px; }
.rt-art svg, .rt-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rt-meta { display: flex; flex-direction: column; gap: 4px; padding: 8px 4px 4px; }
.rt-meta b { font: 400 17px/1.1 var(--serif); font-style: italic; }
.rt-rank { color: var(--muted); font-size: 11px; }
.rt-meta .tier, .mm-meta .tier, .stall-tag .tier { align-self: flex-start; }
.rt-pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 20px; }
.rt-pager .btn { color: var(--dark); border-color: var(--dark); padding: 8px 14px; }
.rt-pager .btn:disabled { opacity: .35; }
.mm-art img, .stall-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (max-width: 900px) { .rt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rarity { padding: 20px 16px; } }
.rt-bar .pills { margin: 0; }

/* ---------- back office (admin.html) ---------- */
body.admin { background: radial-gradient(1200px 600px at 80% -10%, #1b2350, transparent), var(--bg); cursor: auto; }
.admin-wrap { max-width: 860px; padding-top: 28px; padding-bottom: 80px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 48px; }
.admin-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 24px var(--serif); font-style: italic; }
.admin-logo img { width: 44px; height: 44px; }
.ad-card { background: var(--ink); color: var(--dark); border-radius: 4px; padding: 22px 24px; margin-top: 20px; box-shadow: 0 24px 50px -28px #000; }
.ad-card h3 { margin: 0 0 6px; font: 400 26px/1.1 var(--serif); font-style: italic; }
.ad-card p { margin: 0 0 14px; color: #4d4632; font-size: 15px; }
.ad-card .fine { margin: 10px 0 0; }
.ad-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ad-row input { flex: 1 1 280px; min-width: 0; font: 500 14px var(--mono); color: var(--dark); background: #fff; border: 1.5px solid var(--dark); border-radius: 3px; padding: 10px 12px; }
.ad-card .btn-ghost { color: var(--dark); border-color: var(--dark); }
.ad-card .btn:disabled { opacity: .4; cursor: not-allowed; }
.ad-facts { margin: 0; display: grid; gap: 8px; }
.ad-facts div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; border-bottom: 1px dashed rgba(20, 17, 10, .2); padding-bottom: 6px; }
.ad-facts dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #6b6450; padding-top: 3px; }
.ad-facts dd { margin: 0; font: 500 13px var(--mono); word-break: break-all; }
@media (max-width: 600px) { .ad-facts div { grid-template-columns: 1fr; gap: 2px; } }
