:root {
  --ink: #050505;
  --bone: #efe6dc;
  --bone-dim: #9a9088;
  --gold: #c9a45c;
  --gold-hi: #e8d5a3;
  --ember: #c9a45c;
  --blood: #7a5a1e;
  --line: rgba(201, 164, 92, 0.28);
  --display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(18px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif);
  font-size: clamp(18px, 1.15vw + 12px, 21px);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
::selection { background: var(--blood); color: var(--bone); }
a { color: var(--gold); }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.cinzel { font-family: var(--display); letter-spacing: 0.12em; }
.small { font-size: 12px; }
.dim { color: var(--bone-dim); opacity: 0.7; }
.defs { position: absolute; }

/* ---------- atmosphere ---------- */
#embers { display: none; }
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.72) 100%);
}
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(201, 164, 92, 0.7); border-radius: 50%; pointer-events: none;
  box-shadow: none;
  transition: width 0.2s, height 0.2s, margin 0.2s, border-color 0.2s; opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor.hot { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: var(--ember); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 16px;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0));
  backdrop-filter: blur(10px);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.82);
  border-bottom-color: rgba(201, 164, 92, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ember); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.brand span { font-family: var(--display); font-size: 12px; letter-spacing: 0.38em; font-weight: 600; }
.links { display: flex; gap: clamp(18px, 2.8vw, 40px); }
.links a {
  color: var(--bone-dim); text-decoration: none; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; transition: color 0.2s;
  position: relative;
}
.links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.links a:hover::after, .links a[aria-current="page"]::after { transform: scaleX(1); }
.links a:hover, .links a[aria-current="page"] { color: var(--gold-hi); }
@media (max-width: 720px) {
  .links { gap: 14px; }
  .links a { font-size: 10px; letter-spacing: 0.12em; }
  .brand span { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border: 1px solid var(--gold); background: transparent; color: var(--gold-hi);
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.15s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:active { transform: scale(0.98); }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--blood), var(--ember));
  transform: translateX(-101%); transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover, .btn:focus-visible { color: #fff; border-color: var(--ember); box-shadow: none; outline: none; }
.btn-ember { background: rgba(201, 164, 92, 0.16); border-color: var(--ember); color: var(--gold-hi); animation: breathe 3.5s ease-in-out infinite; }
@keyframes breathe { 50% { border-color: var(--gold-hi); } }
.btn-ghost { border-color: var(--line); color: var(--bone-dim); }
.btn-lg { padding: 18px 38px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-x { border-color: rgba(233, 226, 210, 0.4); color: var(--bone); }
.btn-x svg { width: 18px; height: 18px; fill: currentColor; }
.btn[disabled], fieldset[disabled] .btn { opacity: 0.4; pointer-events: none; animation: none; }
.nav-cta { padding: 10px 18px; font-size: 11px; }

/* ---------- hero ---------- */
main { position: relative; z-index: 2; }
.hero {
  min-height: 100svh; display: grid; place-items: center; position: relative; text-align: center;
  padding: 110px var(--gutter) 80px; gap: 28px;
}
.hero-stage {
  position: relative; display: grid; place-items: center;
  width: min(78vw, 460px); transform: translateY(var(--parallax, 0px));
}
.pack-orbit, .pack-ring { display: none; }
.hero-pack { position: relative; margin: 0; width: 100%; background: none; }
.pack-float { animation: pack-float 5.6s ease-in-out infinite; }
.pack-shake {
  position: relative;
  filter: drop-shadow(0 32px 56px rgba(0, 0, 0, 0.8));
  animation: pack-rattle 4.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
  transform-origin: 50% 58%;
}
.hero-pack.violent .pack-shake { animation-duration: 0.42s; }
.hero-pack img {
  width: 100%; height: auto; display: block; background: none;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
}
.pack-shine {
  position: absolute; inset: 6% 18% 8%; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 220, 210, 0.18) 48%, transparent 62%);
  mix-blend-mode: screen; animation: pack-shine 6.5s ease-in-out infinite;
}
@keyframes pack-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pack-rattle {
  0%, 68%, 86%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); }
  70% { transform: rotate(-2.4deg) translate3d(-4px, 2px, 0); }
  72% { transform: rotate(2.8deg) translate3d(5px, -3px, 0); }
  74% { transform: rotate(-3deg) translate3d(-5px, 3px, 0); }
  76% { transform: rotate(2.2deg) translate3d(4px, -2px, 0); }
  78% { transform: rotate(-1.4deg) translate3d(-2px, 1px, 0); }
  80% { transform: rotate(0.8deg) translate3d(1px, -1px, 0); }
  82% { transform: rotate(-0.4deg) translate3d(0, 0, 0); }
}
@keyframes pack-shine {
  0%, 55%, 100% { opacity: 0; transform: translateX(-24%); }
  62% { opacity: 1; }
  78% { opacity: 0; transform: translateX(24%); }
}
@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
    text-align: left; justify-items: center; padding-top: 96px;
  }
  .hero-copy { margin-top: 0; max-width: 640px; justify-self: start; }
  .cta-row, .hero-meta { justify-content: flex-start; }
  .scroll-hint { left: var(--gutter); transform: none; }
  @keyframes drift { 50% { transform: translateY(6px); opacity: 0.5; } }
}

.hero-copy { position: relative; max-width: 760px; }
.brand-mark {
  margin: 0 0 6px; color: var(--ember); font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.46em; font-weight: 600;
}
.eyebrow { color: var(--ember); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 12px; opacity: 0.85; }
.title {
  font-family: var(--display); font-weight: 800; margin: 0;
  font-size: clamp(42px, 8vw, 104px); letter-spacing: 0.08em; line-height: 0.95;
  background: linear-gradient(180deg, #f3e2b0 0%, #c9a45c 48%, #7a5a1e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: none;
  animation: flicker 6s infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; } 41% { opacity: 1; } 42% { opacity: 0.6; } 43% { opacity: 1; } 44% { opacity: 0.8; } 45% { opacity: 1; }
}
.lede { font-size: clamp(20px, 2.2vw, 28px); margin: 18px 0 14px; color: var(--bone); }
.lede em { color: var(--bone-dim); }
.treasury {
  margin: 0 0 30px; color: var(--gold-hi); font-size: clamp(16px, 1.6vw, 20px); letter-spacing: 0.04em;
}
.treasury em { font-style: italic; color: var(--gold-hi); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  display: flex; justify-content: center; gap: clamp(18px, 5vw, 56px); flex-wrap: wrap; margin-top: 42px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta .k { font-size: 10px; letter-spacing: 0.3em; color: var(--bone-dim); }
.hero-meta .v { font-size: 18px; color: var(--gold-hi); font-variant-numeric: tabular-nums; text-decoration: none; }
.scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.3em; color: var(--bone-dim); text-decoration: none;
  animation: drift 2.4s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translate(-50%, 6px); opacity: 0.5; } }

/* ---------- sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: clamp(80px, 14vh, 160px) var(--gutter); position: relative; }
.numeral {
  font-family: var(--display); font-size: clamp(90px, 18vw, 200px); line-height: 1; margin: 0;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 92, 0.22);
  position: absolute; top: clamp(40px, 8vh, 90px); right: var(--gutter); pointer-events: none;
}
h2 {
  font-family: var(--display); font-weight: 600; letter-spacing: 0.2em;
  font-size: clamp(28px, 4.5vw, 50px); margin: 0 0 24px; color: #f2d2c8;
}
h2::before { content: '†  '; color: var(--ember); font-size: 0.6em; vertical-align: middle; }
.section-lede { font-size: clamp(20px, 2vw, 26px); color: var(--bone-dim); max-width: 640px; margin: 0 0 50px; font-style: italic; }

.prophecy .scroll { max-width: 720px; }
.prophecy p { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.45; margin: 0 0 26px; }
.prophecy em { color: var(--gold-hi); }
.prophecy .whisper, .manuscript .whisper {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--ember); text-transform: uppercase;
}

.board-page { position: relative; z-index: 2; padding: 130px var(--gutter) 20px; }
.board-count { color: var(--gold); letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; margin: 0 0 36px; }
.board-wrap {
  max-width: 980px; margin: 0 auto 40px; overflow-x: auto;
  border: 1px solid var(--line);
}
.board-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.board-table th, .board-table td {
  padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(201, 164, 92, 0.14);
}
.board-table th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-dim); font-weight: 400;
}
.board-table td { font-size: 17px; color: var(--bone); }
.board-table td:first-child, .board-table td:nth-child(3), .board-table td:nth-child(4) {
  font-family: var(--mono); font-size: 13px; color: var(--gold-hi);
}
.board-table tbody tr:last-child td { border-bottom: 0; }
.board-empty {
  text-align: center; color: var(--bone-dim); font-style: italic;
  padding: 48px 20px; margin: 0;
}

.story-page { position: relative; z-index: 2; padding: 130px var(--gutter) 20px; }
.story-head { text-align: center; max-width: 760px; margin: 0 auto 20px; }
.story-pack {
  width: min(168px, 38vw); height: auto; margin: 0 auto 28px; display: block;
  background: none; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}
.story-head .title { font-size: clamp(42px, 8vw, 96px); }
.manuscript { max-width: 720px; margin: 0 auto; }
.story-chapter { position: relative; padding: clamp(56px, 10vh, 100px) 0 10px; }
.manuscript p { font-size: clamp(21px, 2.3vw, 30px); line-height: 1.5; margin: 0 0 22px; }
.manuscript em { color: var(--gold-hi); }
.manuscript .name { color: var(--gold-hi); font-style: italic; }
.manuscript .mark {
  font-family: var(--display); letter-spacing: 0.16em; color: var(--ember);
  font-size: clamp(16px, 1.8vw, 20px); text-transform: uppercase;
}
.oath-lines {
  margin: 28px 0 36px; padding: 26px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(201, 164, 92, 0.1), rgba(5, 5, 5, 0.4));
}
.oath-lines p {
  margin: 0 0 10px; font-style: italic; color: var(--bone);
  font-size: clamp(18px, 2vw, 24px);
}
.oath-lines p:last-child { margin: 0; }

.reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 1.1s ease, transform 1.1s ease, filter 1.1s ease; }
.reveal.in { opacity: 1; transform: none; filter: none; }

.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.rune-card {
  position: relative; padding: 34px 28px; border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(201, 164, 92, 0.08), transparent 38%),
    linear-gradient(160deg, rgba(16, 14, 14, 0.96), rgba(8, 8, 9, 0.96));
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.rune-card:hover {
  border-color: rgba(201, 164, 92, 0.7); transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}
.rune-card::after {
  content: ''; position: absolute; inset: 7px; border: 1px solid rgba(201, 164, 92, 0.1); pointer-events: none;
}
.rune-mark { color: var(--ember); font-size: 12px; letter-spacing: 0.3em; }
.rune-card h3 { font-family: var(--display); letter-spacing: 0.1em; font-size: 20px; margin: 10px 0 12px; color: var(--bone); }
.rune-card p { margin: 0; color: var(--bone-dim); font-size: 18px; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 20px; margin-top: 80px;
  perspective: 900px;
}
.pack-card, .hood-card {
  aspect-ratio: 2 / 3; border: none; position: relative; overflow: visible;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.2s ease-out, filter 0.3s;
  background: none; box-shadow: none;
}
.pack-card.reveal.in, .hood-card.reveal.in {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out, opacity 1.1s ease, filter 1.1s ease, border-color 0.3s;
}
.pack-card:hover, .hood-card:hover { filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.45)); }
.pack-card img, .hood-card img {
  width: 100%; height: 100%; object-fit: contain; display: block; background: none;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.55));
}
.pack-card .glitch, .hood-card .glitch { width: 100%; height: 100%; }
.pack-card .tag, .hood-card .tag {
  position: absolute; left: 10px; right: 10px; bottom: 8px; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: #f0c8c0;
  text-shadow: 0 1px 8px #000;
}
.pack-card:hover .glitch, .hood-card:hover .glitch { animation: glitch 0.5s steps(2) infinite; }
@keyframes glitch {
  0% { transform: translate(0); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, -1px); } 75% { transform: translate(-1px, -2px); }
}
.gallery-note { text-align: center; color: var(--bone-dim); font-size: 12px; letter-spacing: 0.2em; margin-top: 22px; }

.rites { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); max-width: 760px; }
.rites li { position: relative; padding: 0 0 46px 26px; }
.rites li::before {
  content: ''; position: absolute; left: -35px; top: 6px; width: 13px; height: 13px; transform: rotate(45deg);
  border: 1px solid var(--gold); background: var(--ink);
}
.rites li.active::before { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 18px var(--ember); }
.rite-no { font-size: 11px; letter-spacing: 0.3em; color: var(--ember); }
.rites h3 { font-family: var(--display); letter-spacing: 0.12em; font-size: 24px; margin: 6px 0 8px; }
.rites p { margin: 0; color: var(--bone-dim); }
.rites strong { color: var(--gold-hi); font-weight: 600; }

.oath-banner {
  text-align: center;
  max-width: 980px;
  border: 1px solid rgba(201, 164, 92, 0.22);
  background: rgba(8, 6, 6, 0.7);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.oath-banner .big { font-size: clamp(34px, 7vw, 84px); letter-spacing: 0.12em; margin-bottom: 12px; }
.oath-banner .big::before { content: none; }
.banner-pack {
  width: min(180px, 42vw); height: auto; margin: 0 auto 28px; display: block;
  background: none; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}
.banner-tag { color: var(--bone-dim); letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; margin: 0 0 32px; }

.codex { max-width: 780px; }
.codex details { border-bottom: 1px solid var(--line); }
.codex summary {
  cursor: pointer; list-style: none; padding: 22px 36px 22px 0; position: relative;
  font-family: var(--display); letter-spacing: 0.08em; font-size: clamp(17px, 1.6vw, 20px);
}
.codex summary::-webkit-details-marker { display: none; }
.codex summary::after { content: '+'; position: absolute; right: 4px; top: 18px; color: var(--ember); font-family: var(--mono); font-size: 22px; transition: transform 0.3s; }
.codex details[open] summary::after { transform: rotate(45deg); }
.codex details p { margin: 0 0 22px; color: var(--bone-dim); }
.codex strong { color: var(--ember); }

.footer { position: relative; z-index: 2; text-align: center; padding: 70px var(--gutter) calc(50px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer-glyph { width: 46px; height: 46px; color: var(--ember); opacity: 0.85; }
.footer p { margin: 10px 0; }
.footer a { color: var(--bone-dim); }

/* ---------- oath overlay ---------- */
.oath { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px 16px; }
.oath-backdrop {
  position: absolute; inset: 0; background: rgba(3, 3, 4, 0.88); backdrop-filter: blur(8px);
  animation: fade 0.4s ease;
}
.oath-panel {
  position: relative; width: min(680px, 100%); max-height: calc(100svh - 40px); overflow-y: auto;
  padding: clamp(26px, 5vw, 48px); border: 1px solid rgba(201, 164, 92, 0.35);
  background: linear-gradient(180deg, #111010, #070708);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 6px rgba(6, 6, 7, 1), inset 0 0 0 7px rgba(201, 164, 92, 0.15);
  animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.98); filter: blur(6px); } }
.oath-close {
  position: absolute; top: 14px; right: 14px; background: none; border: 1px solid var(--line); color: var(--bone-dim);
  width: 36px; height: 36px; cursor: pointer; font-size: 14px;
}
.oath-close:hover { color: var(--ember); border-color: var(--ember); }
.oath h2 { font-size: clamp(30px, 6vw, 46px); margin: 0 0 6px; }
.oath h2::before { content: none; }
.oath-sub { color: var(--bone-dim); margin: 0 0 26px; font-style: italic; }
.oath-sub .mono { font-style: normal; font-size: 12px; color: var(--gold); margin-left: 6px; }

.step { padding: 20px 0; border-top: 1px solid var(--line); }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.step-no {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none; position: relative;
  font-family: var(--display); font-size: 13px; color: var(--ember);
}
.step-no::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(201, 164, 92, 0.5); transform: rotate(45deg); }
.step-head h3 { margin: 0; font-family: var(--display); letter-spacing: 0.14em; font-size: 17px; font-weight: 600; }
.hint { font-size: 15px; color: var(--bone-dim); margin: 10px 0 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 7px; }
.field em { text-transform: none; letter-spacing: 0; opacity: 0.7; }
input, select, textarea {
  width: 100%; padding: 13px 14px; background: rgba(0, 0, 0, 0.5); color: var(--bone);
  border: 1px solid rgba(201, 164, 92, 0.25); border-radius: 0; font: inherit; font-size: 17px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input.mono { font-family: var(--mono); font-size: 14px; }
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) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: #111; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.15); }
input::placeholder, textarea::placeholder { color: rgba(163, 157, 144, 0.5); }
.invalid input, .invalid select, .invalid textarea { border-color: #e0513a; }
.err { display: block; min-height: 0; color: #ff7a5c; font-family: var(--mono); font-size: 12px; margin-top: 6px; }
.err:empty { display: none; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.wallet-wrap { position: relative; }
.wallet-wrap input { padding-right: 40px; }
.wallet-ok { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) scale(0.5); color: #9fd8a8; opacity: 0; transition: 0.3s; }
.wallet-wrap.ok .wallet-ok { opacity: 1; transform: translateY(-50%) scale(1); }
.wallet-wrap.ok input { border-color: rgba(120, 200, 140, 0.5); }

.oath-check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-style: italic; font-size: 18px; color: var(--bone); }
.oath-check input { appearance: none; flex: none; width: 22px; height: 22px; padding: 0; margin-top: 4px; transform: rotate(45deg); border: 1px solid var(--gold); cursor: pointer; }
.oath-check input:checked { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 14px var(--ember); }
.form-error { color: #e8c98a; font-family: var(--mono); font-size: 13px; border-left: 2px solid var(--ember); padding: 8px 12px; background: rgba(201, 164, 92, 0.1); }
#swear-btn { margin-top: 10px; }

.sworn { text-align: center; animation: rise 0.8s ease; }
.initiate-card {
  margin: 10px auto 26px; max-width: 340px; padding: 34px 20px 26px; border: 1px solid var(--gold);
  background: #0a0a0b;
  box-shadow: 0 0 60px rgba(201, 164, 92, 0.2), inset 0 0 0 5px #0a0a0b, inset 0 0 0 6px rgba(201, 164, 92, 0.3);
}
.initiate-pack { width: 92px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5)); }
.initiate-label { color: var(--bone-dim); margin: 6px 0 0; font-size: 13px; letter-spacing: 0.5em; }
.initiate-no { font-family: var(--display); font-size: 60px; font-weight: 800; margin: 0; color: var(--gold-hi); }
.initiate-alias { font-style: italic; font-size: 22px; margin: 0 0 6px; }
.sworn-copy { color: var(--bone-dim); margin: 0 0 22px; }

.secret {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 80; width: min(560px, calc(100% - 32px));
  padding: 22px 26px; text-align: center; border: 1px solid var(--ember); background: rgba(6, 6, 7, 0.95);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); animation: rise 0.6s ease;
}
.secret .mono { color: var(--ember); font-size: 12px; letter-spacing: 0.2em; margin: 0 0 8px; }
.secret .cinzel { margin: 0; font-size: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .pack-float, .pack-shake, .pack-shine, .pack-ring { animation: none !important; }
  html { scroll-behavior: auto; }
}
