/* Seraph Designs storefront. Old-library dark, warm gold, Cinzel + Spectral. */
:root {
  --ink: #0d0b09;
  --ink-2: #14110d;
  --panel: rgba(24, 20, 15, .78);
  --line: rgba(216, 180, 86, .22);
  --gold: #cba43a;
  --gold-hi: #f2d98c;
  --gold-lo: #8a6a1c;
  --text: #ece4d1;
  --muted: #a99f8b;
  --faint: #6f6757;
  --danger: #e2826a;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --settle: cubic-bezier(.16, 1, .3, 1);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Spectral", Georgia, serif;
  --gW1: #fffaf0; --gW2: #e6dcc0; --gW3: #a8987a;
  --gU1: #cfe9ff; --gU2: #4f9ae8; --gU3: #163a7a;
  --gB1: #d9c8f0; --gB2: #6b4f8c; --gB3: #1d1428;
  --gR1: #ffd2c2; --gR2: #e2533a; --gR3: #6b130c;
  --gG1: #d8f7dd; --gG2: #3fae62; --gG3: #0f4424;
  --gC1: #ffffff; --gC2: #b9b9bb; --gC3: #5c5c62;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 400 18px/1.6 var(--body);
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(203, 164, 58, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(120, 60, 30, .14), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(203, 164, 58, .08), transparent 60%),
    linear-gradient(180deg, #0f0c0a 0%, #0b0908 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
#motes { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 1; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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%,-2%)} }
main, .bar, .foot { position: relative; z-index: 2; }
a { color: var(--gold-hi); text-decoration: none; }
::selection { background: rgba(203, 164, 58, .35); color: #fff; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(13, 11, 9, .92), rgba(13, 11, 9, .55));
  backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), padding .4s var(--ease);
}
.bar.scrolled { border-bottom-color: var(--line); padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold-hi); }
.brand-word { font: 600 19px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--text); }
.brand-word em { font-style: normal; color: var(--gold); }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 30px); font: 500 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.nav a { color: var(--muted); position: relative; padding: 6px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--settle); }
.nav a:hover { color: var(--gold-hi); }
.nav a:hover::after { transform: scaleX(1); }
.nav-cta { color: var(--ink) !important; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); padding: 10px 16px !important; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255, 230, 160, .4) inset, 0 6px 24px rgba(203, 164, 58, .25); }
.nav-cta::after { display: none; }
.nav-threads b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; border-radius: 9px; background: var(--gold); color: var(--ink); font-size: 11px; }
.nav-threads b:empty { display: none; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 28px;
  border-radius: 999px; font: 600 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  border: 0; position: relative; overflow: hidden; transition: transform .35s var(--settle), box-shadow .35s var(--ease), background .3s;
}
.btn.small { --h: 40px; padding: 0 18px; font-size: 12px; }
.btn.gold { color: #1a1306; background: linear-gradient(180deg, #f6e3a0, #cfa63c 55%, #a8801f); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 30px rgba(203, 164, 58, .28); }
.btn.gold::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn.gold:hover::before { transform: translateX(120%); }
.btn.ghost { color: var(--gold-hi); background: rgba(203, 164, 58, .06); box-shadow: 0 0 0 1px var(--line) inset; }
.btn.ghost:hover { background: rgba(203, 164, 58, .14); box-shadow: 0 0 0 1px rgba(216, 180, 86, .5) inset; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }

/* ---------- hero ---------- */
.hero { min-height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 24px; padding: 40px clamp(16px, 5vw, 72px) 90px; position: relative; }
.eyebrow { font: 600 12px/1.4 var(--display); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.eyebrow span { color: var(--faint); padding: 0 6px; }
h1 { font: 700 clamp(44px, 5.4vw, 88px)/1.02 var(--display); letter-spacing: .01em; margin: 0 0 26px; color: var(--text); }
.sheen {
  background: linear-gradient(100deg, #e9dcb8 0%, #fff6d8 18%, #d8b456 32%, #8f6a1d 46%, #f2d98c 60%, #e9dcb8 78%, #fff 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite; filter: drop-shadow(0 4px 30px rgba(203, 164, 58, .18));
}
@keyframes sheen { 0%,100% { background-position: 0% 0 } 50% { background-position: 100% 0 } }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: #d9cfb8; max-width: 36em; margin: 0 0 34px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-facts { display: flex; gap: clamp(20px, 4vw, 52px); margin: 0; }
.hero-facts div { border-left: 1px solid var(--line); padding-left: 16px; }
.hero-facts dt { font: 600 32px/1 var(--display); color: var(--gold-hi); }
.hero-facts dd { margin: 6px 0 0; font: 500 11px/1.3 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-fan { position: relative; height: min(78vh, 720px); perspective: 1600px; }
.fan-card { position: absolute; left: 50%; top: 50%; width: clamp(160px, 15vw, 250px); transform-style: preserve-3d; transition: transform 1.2s var(--settle), opacity 1s; will-change: transform; }
.fan-card .scard { animation: float 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
.hero-fan::before { content: ""; position: absolute; left: 50%; top: 52%; width: 70%; height: 70%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(203, 164, 58, .28), transparent); filter: blur(30px); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0) } 30% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%, 14px) } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; background: linear-gradient(90deg, rgba(13, 11, 9, .9), rgba(28, 22, 14, .6), rgba(13, 11, 9, .9)); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 60s linear infinite; font: 500 15px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%) } }

/* ---------- sections ---------- */
section { padding: clamp(70px, 10vw, 130px) clamp(16px, 5vw, 72px); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto clamp(36px, 5vw, 60px); }
h2 { font: 600 clamp(32px, 4.2vw, 56px)/1.1 var(--display); margin: 0 0 18px; color: var(--text); }
.section-sub { color: var(--muted); margin: 0 auto; max-width: 40em; }
.section-head::after { content: ""; display: block; width: 160px; height: 1px; margin: 26px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin-bottom: 40px; }
.gem-filter, .gem-pick { display: flex; gap: 10px; }
.gem-btn { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: none; opacity: .4; transform: scale(.92); transition: opacity .3s, transform .4s var(--settle), filter .3s; }
.gem-btn[aria-pressed="true"] { opacity: 1; transform: scale(1.06); filter: drop-shadow(0 0 10px var(--glow, rgba(203, 164, 58, .5))); }
.gem-btn:hover { opacity: .85; }
.gem-btn .gem { width: 100%; height: 100%; }
.search input { width: min(340px, 80vw); height: 44px; padding: 0 18px 0 42px; border-radius: 999px; border: 1px solid var(--line); background: rgba(20, 16, 12, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cba43a' stroke-width='1.6'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 15px 50% / 18px no-repeat; color: var(--text); font: 400 16px var(--body); outline: none; transition: border-color .3s, box-shadow .3s; }
.search input:focus { border-color: rgba(216, 180, 86, .6); box-shadow: 0 0 0 4px rgba(203, 164, 58, .12); }

/* ---------- shelves + deck tiles ---------- */
.shelf + .shelf { margin-top: 70px; }
.shelf-head { display: flex; align-items: baseline; gap: 18px; margin: 0 0 26px; }
.shelf-head h3 { font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--display); margin: 0; letter-spacing: .04em; }
.shelf-head p { margin: 0; color: var(--muted); font-style: italic; }
.shelf-head .count { margin-left: auto; font: 600 12px var(--display); letter-spacing: .24em; color: var(--gold); white-space: nowrap; }
.shelf-head::after { content: ""; flex: 1 1 40px; height: 1px; background: linear-gradient(90deg, var(--line), transparent); align-self: center; order: 2; }
.shelf-head .count { order: 3; margin-left: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: clamp(16px, 2vw, 28px); }
.tile {
  position: relative; aspect-ratio: 5 / 7; border-radius: 18px; overflow: hidden; cursor: pointer; isolation: isolate;
  background: #120f0b; box-shadow: 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, .45);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .5s var(--settle), box-shadow .5s var(--ease); outline: none;
}
.tile:hover, .tile:focus-visible { --ty: -8px; box-shadow: 0 0 0 1px rgba(242, 217, 140, .7), 0 30px 60px rgba(0, 0, 0, .6), 0 0 50px rgba(203, 164, 58, .22); }
.tile-art { position: absolute; inset: 0; background: center / cover no-repeat; transform: scale(1.04); transition: transform 1.2s var(--settle), filter .6s; filter: saturate(.92) brightness(.9); }
.tile:hover .tile-art { transform: scale(1.12); filter: saturate(1.05) brightness(1); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10, 8, 6, .1) 0%, rgba(10, 8, 6, 0) 35%, rgba(10, 8, 6, .75) 68%, rgba(10, 8, 6, .97) 100%); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 200, .22) 48%, transparent 60%); transform: translateX(-100%); transition: transform 1.1s var(--ease); }
.tile:hover::after { transform: translateX(100%); }
.tile-frame { position: absolute; inset: 10px; z-index: 2; border-radius: 12px; border: 1px solid rgba(242, 217, 140, .28); pointer-events: none; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 22px 24px; }
.tile-stage { position: absolute; top: 18px; left: 18px; z-index: 2; font: 600 10px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; color: var(--gold-hi); background: rgba(13, 11, 9, .72); box-shadow: 0 0 0 1px var(--line) inset; backdrop-filter: blur(6px); }
.tile-stage.printed { color: #1a1306; background: linear-gradient(180deg, #f6e3a0, #cfa63c); box-shadow: none; }
.tile-gems { display: flex; gap: 5px; margin-bottom: 12px; }
.tile-gems .gem { width: 20px; height: 20px; }
.tile h4 { font: 700 clamp(20px, 1.8vw, 24px)/1.12 var(--display); margin: 0 0 6px; color: #fff4d6; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.tile .cmd { margin: 0; font-size: 15px; font-style: italic; color: #cdbf9d; line-height: 1.35; }
.tile .meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 600 10px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); padding: 6px 9px; border-radius: 999px; background: rgba(203, 164, 58, .1); box-shadow: 0 0 0 1px var(--line) inset; white-space: nowrap; }
.empty, .loading { text-align: center; color: var(--muted); padding: 50px 0; font-style: italic; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ring { width: 46px; height: 46px; border-radius: 50%; border: 2px solid rgba(203, 164, 58, .2); border-top-color: var(--gold); animation: turn 1.1s linear infinite; }
@keyframes turn { to { transform: rotate(360deg) } }
@keyframes breathe { 0%,100% { opacity: .35; transform: scale(.94) } 50% { opacity: 1; transform: scale(1.04) } }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 38px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.steps li { text-align: center; padding: 0 8px; position: relative; }
.num { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 22px; border-radius: 50%; font: 700 26px/1 var(--display); color: var(--gold-hi); background: radial-gradient(circle at 35% 30%, #2a2216, #120e09 70%); box-shadow: 0 0 0 1px rgba(242, 217, 140, .45), 0 0 0 7px rgba(13, 11, 9, 1), 0 0 0 8px var(--line), 0 0 40px rgba(203, 164, 58, .25); position: relative; }
.steps h3 { font: 600 19px/1.2 var(--display); letter-spacing: .06em; margin: 0 0 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- form ---------- */
.form, .sent { max-width: 920px; margin: 0 auto; padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: linear-gradient(180deg, rgba(30, 24, 16, .82), rgba(18, 15, 11, .9)); box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 240, 200, .06); position: relative; }
.form::before, .sent::before { content: ""; position: absolute; inset: 10px; border-radius: 16px; border: 1px solid rgba(242, 217, 140, .08); pointer-events: none; }
.kind { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; padding: 6px; border-radius: 999px; background: rgba(0, 0, 0, .3); width: fit-content; margin-inline: auto; box-shadow: 0 0 0 1px var(--line) inset; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind span { display: block; padding: 11px 20px; border-radius: 999px; font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: all .35s var(--settle); }
.kind input:checked + span { color: #1a1306; background: linear-gradient(180deg, #f6e3a0, #cfa63c); }
.kind input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.wide { margin-bottom: 18px; }
.field > span { font: 600 11px/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.field input, .field select, .field textarea, .studio input, .studio textarea, .studio select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(216, 180, 86, .2); background: rgba(8, 7, 5, .55);
  color: var(--text); font: 400 17px/1.5 var(--body); outline: none; transition: border-color .3s, box-shadow .3s, background .3s; resize: vertical;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: #15110c; }
.field input:focus, .field select:focus, .field textarea:focus, .studio input:focus, .studio textarea:focus { border-color: rgba(242, 217, 140, .6); box-shadow: 0 0 0 4px rgba(203, 164, 58, .12); background: rgba(8, 7, 5, .75); }
.field ::placeholder { color: #6d6556; font-style: italic; }
.gem-pick .gem-btn { width: 38px; height: 38px; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.form-note { margin: 0; color: var(--faint); font-style: italic; font-size: 15px; }
.form-error { color: var(--danger); margin: 14px 0 0; min-height: 1.2em; text-align: right; }
.sent { text-align: center; }
.sent h3 { font: 600 30px/1.2 var(--display); margin: 10px 0; }
.sent p { color: var(--muted); max-width: 36em; margin: 0 auto 22px; }
.linkbox { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 22px; }
.linkbox input { flex: 1; min-width: 0; padding: 0 14px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); color: var(--gold-hi); font: 400 14px/1 ui-monospace, Consolas, monospace; }

/* ---------- gems (original colour symbols) ---------- */
.gem { --c1: #fff; --c2: #bbb; --c3: #555; display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; border-radius: 50%; vertical-align: -.16em; position: relative; flex: none;
  background: radial-gradient(circle at 34% 28%, var(--c1) 0%, var(--c2) 46%, var(--c3) 100%);
  box-shadow: 0 0 0 .07em rgba(255, 236, 180, .85), 0 0 0 .13em rgba(70, 50, 15, .9), 0 .12em .3em rgba(0, 0, 0, .55), inset 0 -.1em .2em rgba(0, 0, 0, .35); }
.gem::before { content: ""; position: absolute; left: 22%; top: 14%; width: 38%; height: 26%; border-radius: 50%; background: rgba(255, 255, 255, .55); filter: blur(.04em); }
.gem svg { width: 62%; height: 62%; position: relative; fill: rgba(255, 255, 255, .92); filter: drop-shadow(0 .03em .05em rgba(0, 0, 0, .55)); }
.gem.gW svg { fill: rgba(120, 95, 40, .9); filter: none; }
.gem.gW { --c1: var(--gW1); --c2: var(--gW2); --c3: var(--gW3); --glow: rgba(255, 240, 200, .7); }
.gem.gU { --c1: var(--gU1); --c2: var(--gU2); --c3: var(--gU3); --glow: rgba(90, 160, 255, .7); }
.gem.gB { --c1: var(--gB1); --c2: var(--gB2); --c3: var(--gB3); --glow: rgba(170, 130, 220, .7); }
.gem.gR { --c1: var(--gR1); --c2: var(--gR2); --c3: var(--gR3); --glow: rgba(255, 110, 80, .7); }
.gem.gG { --c1: var(--gG1); --c2: var(--gG2); --c3: var(--gG3); --glow: rgba(90, 210, 120, .7); }
.gem.gC, .gem.gN { --c1: var(--gC1); --c2: var(--gC2); --c3: var(--gC3); }
.gem.gN { font: 700 .66em/1 var(--display); color: #1b1710; }
.gem.gN::before { opacity: .4; }
.gem.hy { background: conic-gradient(from 225deg, var(--h1) 0 50%, var(--h2) 50% 100%); }
.gem.gT { --c1: #f8e7b0; --c2: #b38a2c; --c3: #5a3f0e; }
.gem-btn .gem { box-shadow: 0 0 0 2px rgba(255, 236, 180, .85), 0 0 0 4px rgba(70, 50, 15, .9), 0 4px 10px rgba(0, 0, 0, .5), inset 0 -3px 6px rgba(0, 0, 0, .35); }
.gem-btn[aria-pressed="true"] .gem { animation: gem-pop .5s var(--settle); }
@keyframes gem-pop { 40% { transform: scale(1.18) } }

/* ---------- the Seraph card frame ---------- */
.scard {
  --ax: 50%; --ay: 30%; container-type: inline-size; position: relative; width: 100%; aspect-ratio: 63 / 88; border-radius: 4.6% / 3.3%;
  overflow: hidden; background: #0b0908; color: #f4ead2; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 18px 40px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .5);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--settle), box-shadow .5s;
}
.scard.whole img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-art { position: absolute; inset: 0; background-image: var(--art); background-size: cover; background-position: var(--pos, 50% 30%); }
.sc-art.none { background: radial-gradient(circle at 50% 35%, #3b2e17, #120e09 70%); }
.sc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 4, .55) 0%, rgba(8, 6, 4, 0) 15%, rgba(8, 6, 4, 0) 46%, rgba(8, 6, 4, .55) 58%, rgba(8, 6, 4, .9) 100%); }
.sc-frame { position: absolute; inset: 2.6cqw; border-radius: 3.4cqw; pointer-events: none;
  box-shadow: 0 0 0 .35cqw rgba(242, 217, 140, .9), 0 0 0 .8cqw rgba(60, 42, 12, .9), 0 0 0 1.1cqw rgba(203, 164, 58, .7), inset 0 0 0 .35cqw rgba(0, 0, 0, .45), inset 0 0 6cqw rgba(0, 0, 0, .5); }
.sc-frame::before, .sc-frame::after { content: ""; position: absolute; left: 50%; width: 9cqw; height: 9cqw; transform: translateX(-50%) rotate(45deg); border: .35cqw solid rgba(242, 217, 140, .85); background: #0f0c08; }
.sc-frame::before { top: -4.9cqw; }
.sc-frame::after { bottom: -4.9cqw; }
.sc-title { position: absolute; left: 5cqw; right: 5cqw; top: 5.4cqw; display: flex; align-items: center; gap: 2cqw; padding: 1.8cqw 2.8cqw; border-radius: 2.4cqw;
  background: linear-gradient(180deg, rgba(14, 11, 8, .82), rgba(14, 11, 8, .6)); box-shadow: 0 0 0 .3cqw rgba(242, 217, 140, .55) inset, 0 1cqw 3cqw rgba(0, 0, 0, .4); backdrop-filter: blur(1.5px); }
.sc-name { flex: 1; min-width: 0; font: 700 calc(5.3cqw * var(--ns, 1))/1.08 var(--display); letter-spacing: .02em; color: #fff3cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 .3cqw 1cqw rgba(0, 0, 0, .8); }
.sc-cost { display: flex; gap: .7cqw; font-size: 5.2cqw; flex: none; }
.sc-type { position: absolute; left: 5cqw; right: 5cqw; top: 57%; display: flex; align-items: center; gap: 2cqw; padding: 1.3cqw 2.8cqw; border-radius: 2cqw;
  background: linear-gradient(90deg, rgba(14, 11, 8, .85), rgba(14, 11, 8, .55)); box-shadow: 0 0 0 .3cqw rgba(242, 217, 140, .4) inset; }
.sc-type span { flex: 1; min-width: 0; font: 600 3.7cqw/1.15 var(--display); letter-spacing: .04em; color: var(--gold-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-rar { width: 3.2cqw; height: 3.2cqw; transform: rotate(45deg); background: linear-gradient(135deg, #f3f3f3, #8f8f95); box-shadow: 0 0 0 .3cqw rgba(0, 0, 0, .5); flex: none; }
.r-uncommon .sc-rar { background: linear-gradient(135deg, #e3f3ff, #6f8aa0); }
.r-rare .sc-rar { background: linear-gradient(135deg, #fff1b8, #b08a2a); }
.r-mythic .sc-rar { background: linear-gradient(135deg, #ffd0a8, #c24a1c); box-shadow: 0 0 1.5cqw rgba(255, 120, 60, .7); }
.sc-text { position: absolute; left: 5cqw; right: 5cqw; top: calc(57% + 8.6cqw); bottom: 7.8cqw; border-radius: 2.4cqw; padding: 2.6cqw 3.2cqw;
  background: linear-gradient(180deg, rgba(20, 16, 11, .78), rgba(12, 10, 7, .86)); box-shadow: 0 0 0 .3cqw rgba(242, 217, 140, .22) inset; overflow: hidden; }
.sc-text-in { font: 400 calc(3.75cqw * var(--fs, 1))/1.28 var(--body); color: #efe5cc; }
.sc-text-in p { margin: 0 0 .45em; }
.sc-text-in .fl { font-style: italic; color: #b9ac8c; border-top: .25cqw solid rgba(242, 217, 140, .2); padding-top: .4em; margin-top: .3em; }
.sc-text-in .gem { font-size: 1.02em; }
.sc-pt { position: absolute; right: 4.2cqw; bottom: 3.8cqw; min-width: 15cqw; padding: 1.4cqw 2.4cqw; text-align: center; font: 700 5cqw/1 var(--display); color: #1d150a;
  background: linear-gradient(180deg, #f8e7b0, #c99e33 60%, #8f6a1d); clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%); filter: drop-shadow(0 .5cqw 1cqw rgba(0, 0, 0, .6)); }
.sc-foot { position: absolute; left: 6cqw; bottom: 4.4cqw; font: 600 2.2cqw/1 var(--display); letter-spacing: .3em; color: rgba(242, 217, 140, .55); }
.sc-glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .55), transparent 45%), linear-gradient(115deg, transparent 20%, rgba(255, 220, 160, .35) 45%, rgba(150, 200, 255, .25) 55%, transparent 80%); }
.scard:hover .sc-glare, .scard.live .sc-glare { opacity: 1; }
.sc-tap { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; }

/* flip to the card back */
.flip { position: relative; perspective: 1400px; cursor: pointer; }
.flip-in { position: relative; transform-style: preserve-3d; transition: transform 1s var(--settle); }
.flip.flipped .flip-in { transform: rotateY(180deg); }
.flip .face, .flip .back { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .back { position: absolute; inset: 0; transform: rotateY(180deg); border-radius: 4.6% / 3.3%; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.flip .back img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- deck modal ---------- */
.deck-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: clamp(10px, 3vw, 40px); }
.dm-backdrop { position: absolute; inset: 0; background: rgba(6, 5, 4, .78); backdrop-filter: blur(8px); animation: fade .5s var(--ease); }
.dm { position: relative; width: min(1180px, 100%); max-height: 100%; overflow: hidden auto; border-radius: 26px; background: #100d0a; box-shadow: 0 0 0 1px var(--line), 0 60px 120px rgba(0, 0, 0, .7); animation: rise .7s var(--settle); overscroll-behavior: contain; }
.dm-hero { position: absolute; inset: 0 0 auto 0; height: 380px; background: center 25% / cover no-repeat; filter: blur(18px) saturate(1.1) brightness(.55); transform: scale(1.15); opacity: .8; }
.dm-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, #100d0a 92%); }
.dm-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 56px); align-items: start; }
.dm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: start; }
.dm-cards.single { grid-template-columns: minmax(0, 340px); justify-content: center; }
.dm-cards figure { margin: 0; }
.dm-cards figcaption { margin-top: 12px; text-align: center; font: 600 11px/1.4 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.dm-cards figcaption small { display: block; color: var(--faint); letter-spacing: .1em; text-transform: none; font: italic 400 13px var(--body); margin-top: 2px; }
.dm-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: var(--gold-hi); background: rgba(13, 11, 9, .7); box-shadow: 0 0 0 1px var(--line) inset; font-size: 22px; line-height: 1; transition: transform .4s var(--settle), background .3s; }
.dm-close:hover { transform: rotate(90deg); background: rgba(203, 164, 58, .2); }
.dm-info .eyebrow { margin-bottom: 12px; }
.dm-info h2 { text-align: left; margin-bottom: 8px; font-size: clamp(30px, 3.4vw, 46px); }
.dm-sub { color: #cdbf9d; font-style: italic; margin: 0 0 20px; }
.dm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.dm-row .gem { width: 28px; height: 28px; }
.dm-row .sep { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }
.dm-blurb { font-size: 19px; line-height: 1.7; color: #e2d8c0; margin: 0 0 26px; font-weight: 300; }
.dm-blurb::first-letter { font: 700 3.1em/.8 var(--display); float: left; margin: .08em .1em 0 0; color: var(--gold); }
.dm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.dm-note { color: var(--faint); font-style: italic; font-size: 15px; margin: 0; }
.dm-hint { text-align: center; color: var(--faint); font: italic 400 14px var(--body); margin: 14px 0 0; }

/* ---------- thread + studio views ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px) 80px; min-height: 70vh; }
.page h2 { text-align: center; }
.thread { max-width: 820px; margin: 0 auto; }
.status { display: inline-block; font: 600 10px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; color: var(--gold-hi); box-shadow: 0 0 0 1px var(--line) inset; background: rgba(203, 164, 58, .08); }
.status.new { color: #1a1306; background: var(--gold); box-shadow: none; }
.status.delivered, .status.closed { color: var(--muted); }
.msgs { display: flex; flex-direction: column; gap: 16px; margin: 30px 0; }
.msg { max-width: 82%; padding: 16px 20px; border-radius: 18px; background: rgba(28, 23, 16, .85); box-shadow: 0 0 0 1px var(--line) inset; white-space: pre-wrap; animation: rise .5s var(--settle); }
.msg.mine { align-self: flex-end; background: linear-gradient(180deg, rgba(60, 46, 18, .85), rgba(38, 29, 12, .9)); box-shadow: 0 0 0 1px rgba(242, 217, 140, .35) inset; }
.msg header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 600 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.msg header svg { width: 18px; height: 18px; }
.msg header time { margin-left: auto; color: var(--faint); letter-spacing: .06em; text-transform: none; font: italic 400 13px var(--body); }
.reply { display: flex; flex-direction: column; gap: 12px; }
.reply textarea { min-height: 110px; }
.reply .btn { align-self: flex-end; }
.brief { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; padding: 18px 20px; border-radius: 16px; background: rgba(20, 16, 12, .7); box-shadow: 0 0 0 1px var(--line) inset; font-size: 15px; }
.brief b { display: block; font: 600 10px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

.studio-login { max-width: 420px; margin: 40px auto; text-align: center; }
.pin { display: flex; justify-content: center; gap: 10px; margin: 26px 0 14px; }
.pin input { width: 52px; height: 64px; text-align: center; font: 600 26px var(--display); border-radius: 12px; }
.studio-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 30px; }
.inbox { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tlist { display: flex; flex-direction: column; gap: 8px; max-height: 75vh; overflow: auto; padding-right: 4px; }
.tfilter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tfilter button { border: 0; cursor: pointer; }
.titem { text-align: left; border: 0; cursor: pointer; padding: 14px 16px; border-radius: 14px; color: var(--text); background: rgba(24, 20, 14, .8); box-shadow: 0 0 0 1px var(--line) inset; font: 400 15px/1.4 var(--body); transition: background .3s, transform .3s var(--settle); }
.titem:hover { transform: translateX(3px); }
.titem.on { background: rgba(60, 46, 18, .7); box-shadow: 0 0 0 1px rgba(242, 217, 140, .5) inset; }
.titem strong { display: flex; align-items: center; gap: 8px; font: 600 14px/1.3 var(--display); letter-spacing: .04em; }
.titem strong i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.titem span { display: block; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tview { min-height: 300px; }
.tview .top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.tview .top h3 { font: 600 22px/1.2 var(--display); margin: 0; flex: 1; min-width: 200px; }
.tview select { width: auto; }
.sc-edit { display: grid; gap: 14px; }
.sc-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: 16px; background: rgba(20, 16, 12, .75); box-shadow: 0 0 0 1px var(--line) inset; }
.sc-row .thumb { border-radius: 10px; aspect-ratio: 5/7; background: center / cover; box-shadow: 0 0 0 1px var(--line); }
.sc-row h4 { margin: 0 0 8px; font: 600 18px var(--display); display: flex; gap: 10px; align-items: center; }
.sc-row label { display: block; margin-bottom: 8px; font: 600 10px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.sc-row textarea { min-height: 90px; font-size: 15px; }
.sc-row .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font: italic 400 14px var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted) !important; }
.toggle input { width: auto; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 140%); padding: 14px 22px; border-radius: 999px; color: #1a1306; background: linear-gradient(180deg, #f6e3a0, #cfa63c); font: 600 13px var(--display); letter-spacing: .12em; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); transition: transform .6s var(--settle); }
.toast.on { transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 70px 20px 50px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); }
.foot-word { font: 600 18px var(--display); letter-spacing: .32em; text-transform: uppercase; margin: 10px 0 6px; }
.foot-line { color: var(--muted); margin: 0 0 16px; }
.foot-links { display: flex; justify-content: center; gap: 12px; font: 500 12px var(--display); letter-spacing: .2em; text-transform: uppercase; }
.foot-links span { color: var(--faint); }
.foot-fine { color: var(--faint); font-size: 14px; margin-top: 18px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--settle); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.98) } }
@keyframes fade { from { opacity: 0 } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero-actions, .hero-facts { justify-content: center; }
  .lede { margin-inline: auto; }
  .hero-fan { height: 440px; order: -1; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .dm-inner { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .bar { padding: 12px 16px; }
  .brand-word { font-size: 13px; letter-spacing: .14em; white-space: nowrap; }
  .nav a:not(.nav-cta) { display: none; }
  .hero-fan { height: 360px; }
  .fan-card { width: 150px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .shelf-head { flex-wrap: wrap; }
  .shelf-head::after { display: none; }
  .dm-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .msg { max-width: 94%; }
  .sc-row { grid-template-columns: 1fr; }
  .sc-row .two { grid-template-columns: 1fr; }
  .linkbox { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
