/* ============================================================
   SIRENS SEA CHEST — main.css
   Mystical siren design system — deep ocean twilight, luminous
   sea-glass, soft rose-pearl, misty stone. Vanilla CSS, no build.
   ============================================================ */

/* ---------- Design tokens ----------
   Token NAMES are kept stable so every component re-themes from here.
   Their VALUES carry the soft, mystical siren palette. */
:root {
  /* Backgrounds — deep ocean twilight (blue-green), never flat black */
  --color-trench-black: #0a1a24;   /* deepest — twilight abyss */
  --color-hull-charcoal: #0f2530;  /* deep sea */
  --color-submerged-slate: #163140;/* submerged stone-teal */
  --color-deep-cobalt: #1c4a63;    /* luminous depth glow */

  /* Accents — luminous & soft */
  --color-siren-teal: #7fe0d4;         /* soft sea-glass glow */
  --color-siren-teal-soft: #aeeae1;
  --color-siren-teal-glow: rgba(127, 224, 212, 0.16);
  --color-antique-gold: #e6acbf;       /* soft rose-pearl — the siren's pink */
  --color-antique-gold-hover: #f2c6d5;

  /* Text */
  --color-sea-salt-white: #eaf4f2;     /* misty pearl-white */
  --color-weathered-parchment: #9fb6bd;/* sea-mist gray */

  /* Lines — weathered stone / soft pink */
  --color-border-subtle: rgba(159, 182, 189, 0.18);
  --color-border-gold: rgba(230, 172, 191, 0.38);

  /* Type */
  --font-head: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --maxw: 1200px;
  --header-h: 68px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--color-sea-salt-white);
  background-color: var(--color-trench-black);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* Layered oceanic background: soft depth glows over deep twilight sea */
  background-image:
    radial-gradient(1200px 640px at 50% -12%, rgba(28, 74, 99, 0.50), transparent 62%),
    radial-gradient(920px 520px at 84% 6%, rgba(127, 224, 212, 0.06), transparent 56%),
    radial-gradient(760px 520px at 12% 22%, rgba(230, 172, 191, 0.06), transparent 58%),
    linear-gradient(180deg, #0c1f2a 0%, #0a1a24 44%, #0b1d28 100%);
  background-attachment: fixed;
}

/* ---- Living water: drifting bioluminescent motes (fixed, site-wide) ---- */
body::before {
  content: "";
  position: fixed;
  inset: -20% 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle, rgba(174, 234, 225, 0.9) 0, transparent 1.6px),
    radial-gradient(circle, rgba(242, 198, 213, 0.7) 0, transparent 1.4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 0, transparent 1.1px);
  background-size: 150px 210px, 230px 300px, 90px 130px;
  background-position: 0 0, 60px 90px, 25px 40px;
  animation: motes 70s linear infinite;
}
@keyframes motes {
  to { background-position: 0 -210px, 60px -210px, 25px -130px; }
}
/* ---- Living water: slow caustic light drifting behind everything ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 40% at 28% 18%, rgba(127, 224, 212, 0.12), transparent 60%),
    radial-gradient(50% 38% at 76% 30%, rgba(230, 172, 191, 0.10), transparent 62%),
    radial-gradient(75% 55% at 50% 96%, rgba(28, 74, 99, 0.30), transparent 60%);
  animation: caustics 26s ease-in-out infinite alternate;
}
@keyframes caustics {
  from { transform: translate3d(-2%, -1%, 0) scale(1.05); opacity: 0.75; }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.12); opacity: 1; }
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: var(--color-sea-salt-white);
}
h1 { font-size: clamp(2.1rem, 6vw, 4.1rem); letter-spacing: 0.08em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }

.gold-fill {
  background: linear-gradient(180deg, var(--color-antique-gold-hover), var(--color-antique-gold) 55%, #c07f95);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--color-siren-teal);
  opacity: 0.85;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head p { color: var(--color-weathered-parchment); max-width: 56ch; margin: 0.75rem auto 0; }
.divider { width: 84px; height: 1px; margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--color-antique-gold), transparent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  color: var(--color-trench-black);
  background: linear-gradient(180deg, var(--color-siren-teal-soft), var(--color-siren-teal));
  border-color: var(--color-siren-teal);
  box-shadow: 0 0 18px rgba(127, 224, 212, 0.22);
  font-weight: 600;
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(127, 224, 212, 0.45); transform: translateY(-2px); }
.btn-ghost {
  color: var(--color-antique-gold-hover);
  border-color: var(--color-border-gold);
  background: rgba(230, 172, 191, 0.04);
}
.btn-ghost:hover { border-color: var(--color-antique-gold); color: var(--color-antique-gold-hover);
  box-shadow: 0 0 16px rgba(230, 172, 191, 0.15); background: rgba(230, 172, 191, 0.09); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(9, 22, 30, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-subtle);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand svg { width: 34px; height: 34px; filter: drop-shadow(0 0 6px var(--color-siren-teal-glow)); }
.brand-word {
  font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-antique-gold-hover); line-height: 1;
}
.brand-word small { display: block; font-family: var(--font-mono); font-size: 0.52rem;
  letter-spacing: 0.42em; color: var(--color-weathered-parchment); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-weathered-parchment);
  position: relative; transition: color 0.2s var(--ease); padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--color-siren-teal); box-shadow: 0 0 8px var(--color-siren-teal);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-siren-teal); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 0.9rem; }
.chest-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em;
  color: var(--color-antique-gold-hover); text-transform: uppercase;
  border: 1px solid var(--color-border-gold); border-radius: var(--radius);
  padding: 0.5rem 0.8rem; background: rgba(230, 172, 191, 0.05);
  transition: all 0.2s var(--ease);
}
.chest-btn:hover { border-color: var(--color-antique-gold); box-shadow: 0 0 14px rgba(230, 172, 191,0.18); }
.chest-btn svg { width: 16px; height: 16px; }
.chest-count { color: var(--color-siren-teal); font-weight: 600; }
.chest-btn.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.14); } }

.hamburger { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius); position: relative; }
.hamburger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--color-antique-gold-hover);
  transition: all 0.25s var(--ease); }
.hamburger span:nth-child(1) { top: 13px; } .hamburger span:nth-child(2) { top: 19px; } .hamburger span:nth-child(3) { top: 25px; }
body.nav-open .hamburger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 4rem 0; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(28,74,99,0.5), transparent 55%),
    radial-gradient(70% 60% at 78% 18%, rgba(127,224,212,0.08), transparent 60%),
    radial-gradient(70% 60% at 20% 30%, rgba(230,172,191,0.07), transparent 60%),
    linear-gradient(180deg, #0d222d, #0a1a24);
}
/* God-rays: shafts of light sinking from the surface */
.hero-bg::before {
  content: ""; position: absolute; inset: -15% -10% 30% -10%; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(102deg,
    transparent 0 46px, rgba(174,234,225,0.05) 46px 52px, transparent 52px 128px);
  filter: blur(3px); mix-blend-mode: screen; opacity: 0.75;
  transform-origin: top center; animation: rays 20s ease-in-out infinite alternate;
}
@keyframes rays {
  from { transform: translateX(-3%) skewX(-2deg); opacity: 0.5; }
  to   { transform: translateX(3%) skewX(2deg); opacity: 0.9; }
}
/* Soft rolling-wave silhouette at the base of the hero */
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(10,26,36,0.92));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200 L0 150 C120 120 220 120 340 145 C470 172 560 118 700 128 C840 138 930 176 1060 150 C1130 136 1170 140 1200 150 L1200 200 Z' fill='black'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 200 L0 150 C120 120 220 120 340 145 C470 172 560 118 700 128 C840 138 930 176 1060 150 C1130 136 1170 140 1200 150 L1200 200 Z' fill='black'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  background-color: var(--color-trench-black);
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; padding: 0 1.25rem; }
.hero h1 { margin: 1rem 0 1.1rem; }
.hero .lede { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--color-weathered-parchment); max-width: 60ch; margin: 0 auto; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--color-weathered-parchment); opacity: 0.6; animation: sink 2.4s ease-in-out infinite; }
@keyframes sink { 0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.6; } 50% { transform: translateX(-50%) translateY(6px); opacity: 0.25; } }

/* ============================================================
   PRODUCT GRID + CARDS
   ============================================================ */
.product-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--color-hull-charcoal), var(--color-submerged-slate));
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px); border-color: var(--color-siren-teal);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 22px rgba(127, 224, 212,0.10);
}
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1b3846, #0e2029 72%); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.3s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, transparent 40%, rgba(9,22,30,0.55)); pointer-events: none; }
/* Placeholder sigil when no product image is supplied */
.card-media .sigil-ph { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0.5; }
.card-media .sigil-ph svg { width: 46%; height: 46%; }

.badge {
  position: absolute; top: 0.7rem; left: 0.7rem; z-index: 3;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.28rem 0.55rem; border-radius: var(--radius); backdrop-filter: blur(4px);
}
.badge-rarity { color: var(--color-antique-gold-hover); border: 1px solid var(--color-border-gold); background: rgba(9,22,30,0.6); }
.badge-low { color: #ffb84d; border: 1px solid rgba(255,184,77,0.4); background: rgba(9,22,30,0.6); }
.badge-out { color: var(--color-weathered-parchment); border: 1px solid var(--color-border-subtle); background: rgba(9,22,30,0.7); }

.card-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-siren-teal); opacity: 0.8; margin-bottom: 0.35rem; }
.card-title { font-family: var(--font-head); font-size: 1.06rem; letter-spacing: 0.03em;
  color: var(--color-antique-gold-hover); margin-bottom: 0.4rem; }
.card-desc { font-size: 0.85rem; color: var(--color-weathered-parchment); flex: 1; margin-bottom: 0.9rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.card-price { font-family: var(--font-mono); font-size: 1.02rem; color: var(--color-antique-gold-hover); }
.card .btn { padding: 0.6rem 0.9rem; font-size: 0.68rem; }
.card.is-out { opacity: 0.72; }
.card.is-out .btn-primary { background: none; color: var(--color-weathered-parchment);
  border-color: var(--color-border-subtle); box-shadow: none; cursor: not-allowed; pointer-events: none; }

/* ============================================================
   VAULT (catalog layout)
   ============================================================ */
.vault-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2.2rem; align-items: start; }
.filter-panel {
  position: sticky; top: calc(var(--header-h) + 1.4rem);
  background: linear-gradient(180deg, var(--color-hull-charcoal), var(--color-submerged-slate));
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius); padding: 1.3rem;
}
.filter-panel h3 { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--color-siren-teal); margin-bottom: 1rem; }
.filter-search { width: 100%; margin-bottom: 1.2rem; }
.filter-list li { margin-bottom: 0.2rem; }
.filter-list button {
  width: 100%; text-align: left; background: none; border: none;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--color-weathered-parchment); padding: 0.5rem 0.6rem; border-radius: var(--radius);
  border-left: 2px solid transparent; transition: all 0.2s var(--ease); display: flex; justify-content: space-between;
}
.filter-list button:hover { color: var(--color-sea-salt-white); background: rgba(255,255,255,0.03); }
.filter-list button[aria-pressed="true"] {
  color: var(--color-siren-teal); border-left-color: var(--color-siren-teal);
  background: rgba(127, 224, 212,0.05);
}
.filter-list .count { opacity: 0.5; }
.vault-empty { text-align: center; padding: 4rem 1rem; color: var(--color-weathered-parchment); grid-column: 1 / -1; }
.vault-count { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-weathered-parchment); margin-bottom: 1.2rem; }

/* ---------- Inputs ---------- */
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-weathered-parchment); margin-bottom: 0.5rem; }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  color: var(--color-sea-salt-white); background: rgba(9,22,30,0.6);
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius);
  padding: 0.75rem 0.9rem; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.textarea { resize: vertical; min-height: 140px; }
.input::placeholder, .textarea::placeholder { color: rgba(160,171,184,0.5); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--color-siren-teal);
  box-shadow: 0 0 0 1px var(--color-siren-teal), 0 0 16px rgba(127, 224, 212,0.15);
}
.select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A0ABB8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }

/* ============================================================
   CART
   ============================================================ */
.cart-shell { max-width: 820px; margin: 0 auto; }
.cart-row {
  display: grid; grid-template-columns: 90px 1fr auto auto 28px; gap: 1rem; align-items: center;
  padding: 1rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--color-hull-charcoal), var(--color-submerged-slate));
  margin-bottom: 0.9rem;
}
.cart-thumb { width: 90px; height: 68px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #1b3846, #0e2029 72%); display: grid; place-items: center; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .sigil-ph svg { width: 42px; height: 42px; opacity: 0.5; }
.cart-info .card-cat { margin-bottom: 0.15rem; }
.cart-qty { display: flex; align-items: center; gap: 0.35rem; }
.cart-qty button { width: 30px; height: 30px; border: 1px solid var(--color-border-gold);
  background: rgba(230, 172, 191,0.06); color: var(--color-antique-gold-hover); border-radius: var(--radius);
  font-size: 1rem; line-height: 1; transition: all 0.2s var(--ease); }
.cart-qty button:hover { border-color: var(--color-antique-gold); box-shadow: 0 0 10px rgba(230, 172, 191,0.15); }
.cart-qty input { width: 52px; text-align: center; padding: 0.4rem; font-family: var(--font-mono); }
.cart-line { color: var(--color-antique-gold-hover); font-size: 1rem; min-width: 68px; text-align: right; }
.cart-remove { width: 28px; height: 28px; border: none; background: none; color: var(--color-weathered-parchment);
  font-size: 0.9rem; opacity: 0.6; transition: all 0.2s var(--ease); border-radius: var(--radius); }
.cart-remove:hover { opacity: 1; color: #ff8a8a; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--color-border-gold); }
.cart-summary .total-label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.8rem; color: var(--color-weathered-parchment); }
.cart-summary .total-amt { font-family: var(--font-head); font-size: 1.8rem; color: var(--color-antique-gold-hover); }
.cart-note { text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--color-weathered-parchment); margin-top: 1.2rem; opacity: 0.8; }

@media (max-width: 640px) {
  .cart-row { grid-template-columns: 64px 1fr auto; grid-template-areas: "thumb info rm" "thumb qty line"; row-gap: 0.6rem; }
  .cart-thumb { grid-area: thumb; width: 64px; height: 64px; }
  .cart-info { grid-area: info; } .cart-qty { grid-area: qty; } .cart-line { grid-area: line; } .cart-remove { grid-area: rm; justify-self: end; }
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-wrap { max-width: 1000px; margin: 0 auto; }
.admin-login { max-width: 420px; margin: 3rem auto; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-siren-teal); text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--color-border-gold); }
.admin-table td { padding: 0.6rem; border-bottom: 1px solid var(--color-border-subtle); color: var(--color-weathered-parchment); vertical-align: middle; }
.admin-table tr.inactive { opacity: 0.5; }
.admin-actions { display: flex; gap: 0.4rem; }
.admin-actions button { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.6rem; border-radius: var(--radius); border: 1px solid var(--color-border-subtle);
  background: none; color: var(--color-weathered-parchment); transition: all 0.2s var(--ease); }
.admin-actions button:hover { color: var(--color-siren-teal); border-color: var(--color-siren-teal); }
.admin-actions button.danger:hover { color: #ff8a8a; border-color: rgba(255,138,138,0.5); }
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(7,18,25,0.85); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 4vh 1rem; }
.modal-backdrop.show { display: flex; }
.modal { width: 100%; max-width: 560px; background: linear-gradient(180deg, var(--color-hull-charcoal), var(--color-submerged-slate));
  border: 1px solid var(--color-border-gold); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-2col { grid-template-columns: 1fr; } .admin-table thead { display:none; } }

/* ============================================================
   BANNERS / LORE / CALLOUTS
   ============================================================ */
.callout {
  position: relative; border: 1px solid var(--color-border-gold); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(10,37,64,0.4), rgba(18,24,32,0.6));
  padding: clamp(2rem, 5vw, 3.2rem); text-align: center;
  box-shadow: 0 0 30px rgba(127, 224, 212,0.05), inset 0 0 40px rgba(127, 224, 212,0.03);
}
.callout h2 { margin-bottom: 0.8rem; }
.callout p { color: var(--color-weathered-parchment); max-width: 60ch; margin: 0 auto 1.6rem; }

.lore-block { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: center;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.lore-block:nth-child(even) .lore-media { order: 2; }
.lore-media { aspect-ratio: 4/3; border: 1px solid var(--color-border-subtle); border-radius: var(--radius);
  background: radial-gradient(circle at 50% 30%, #1b3846, #0c1c25 74%); display: grid; place-items: center;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.6); overflow: hidden; }
.lore-media svg { width: 42%; height: 42%; opacity: 0.55; }
.lore-media img { width: 100%; height: 100%; object-fit: cover; }
.lore-text h2 { text-align: left; margin-bottom: 1rem; }
.lore-text p { color: var(--color-weathered-parchment); margin-bottom: 1rem; }

.dropcap::first-letter { font-family: var(--font-head); float: left; font-size: 3.4rem; line-height: 0.8;
  padding: 0.2rem 0.6rem 0 0; color: var(--color-antique-gold-hover); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-shell { max-width: 620px; margin: 0 auto;
  background: linear-gradient(180deg, var(--color-hull-charcoal), var(--color-submerged-slate));
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); font-size: 0.9rem; display: none; }
.form-status.show { display: block; }
.form-status.loading { color: var(--color-siren-teal); border: 1px solid var(--color-siren-teal-glow); background: rgba(127, 224, 212,0.05); }
.form-status.success { color: #7fe3a0; border: 1px solid rgba(127,227,160,0.35); background: rgba(127,227,160,0.06); }
.form-status.error { color: #ff8a8a; border: 1px solid rgba(255,138,138,0.35); background: rgba(255,138,138,0.06); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--color-border-subtle); background: var(--color-trench-black);
  padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2.2rem; margin-bottom: 2.2rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-siren-teal); margin-bottom: 1rem; opacity: 0.85; }
.footer-col p, .footer-col a { color: var(--color-weathered-parchment); font-size: 0.88rem; }
.footer-col a { display: block; margin-bottom: 0.5rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--color-siren-teal); }
.manifest-form { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.manifest-form .input { padding: 0.6rem 0.75rem; font-size: 0.85rem; }
.coords { font-family: var(--font-mono); font-size: 0.74rem; color: var(--color-weathered-parchment);
  letter-spacing: 0.06em; line-height: 1.9; }
.footer-bottom { border-top: 1px solid var(--color-border-subtle); padding-top: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--color-weathered-parchment); }

/* ============================================================
   404
   ============================================================ */
.error-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.25rem; }
.error-page .big { font-family: var(--font-head); font-size: clamp(4rem, 18vw, 9rem); letter-spacing: 0.1em;
  color: var(--color-antique-gold); opacity: 0.85; text-shadow: 0 0 40px rgba(127, 224, 212,0.12); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 860px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(4,7,10,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
    transform: translateY(-120%); transition: transform 0.3s var(--ease); padding: 0.5rem 0;
  }
  body.nav-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--color-border-subtle); font-size: 0.9rem; }
  .nav-links a::after { display: none; }
  .brand-word { font-size: 0.92rem; }
  .vault-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .filter-list li { margin: 0; }
  .filter-list button { border-left: none; border: 1px solid var(--color-border-subtle); }
  .filter-list button[aria-pressed="true"] { border-color: var(--color-siren-teal); }
  .filter-list .count { display: none; }
  .lore-block { grid-template-columns: 1fr; gap: 1.4rem; }
  .lore-block:nth-child(even) .lore-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

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

/* ============================================================
   THE CHARACTER FORGE  (AI character generator)
   ============================================================ */
.forge-intro { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.forge-intro p { color: var(--color-weathered-parchment); margin-top: 0.9rem; }

.forge-step { margin-bottom: 2.6rem; }
.forge-step-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--color-siren-teal); opacity: 0.85; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.7rem; }
.forge-step-label::before { content: ""; width: 22px; height: 1px; background: var(--color-siren-teal); opacity: 0.6; }

/* ---- Tier chooser ---- */
.tier-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tier-card {
  position: relative; text-align: left; cursor: pointer;
  background: linear-gradient(180deg, var(--color-hull-charcoal), var(--color-submerged-slate));
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem; transition: all 0.28s var(--ease); color: inherit;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.tier-card:hover { transform: translateY(-4px); border-color: var(--color-siren-teal);
  box-shadow: 0 12px 34px rgba(0,0,0,0.4), 0 0 22px var(--color-siren-teal-glow); }
.tier-card[aria-pressed="true"] { border-color: var(--color-antique-gold);
  box-shadow: 0 0 0 1px var(--color-antique-gold), 0 0 26px rgba(230,172,191,0.18); }
.tier-card[aria-pressed="true"]::after { content: "✧ Chosen"; position: absolute; top: 0.9rem; right: 1rem;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-antique-gold-hover); }
.tier-name { font-family: var(--font-head); font-size: 1.45rem; letter-spacing: 0.03em;
  color: var(--color-antique-gold-hover); }
.tier-price { font-family: var(--font-mono); font-size: 1.5rem; color: var(--color-siren-teal); }
.tier-price small { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--color-weathered-parchment); }
.tier-qcount { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-weathered-parchment); }
.tier-blurb { font-size: 0.86rem; color: var(--color-weathered-parchment); }

/* ---- Questionnaire ---- */
.forge-form { display: none; }
.forge-form.show { display: block; animation: fadein 0.4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q-grid { display: grid; gap: 1.2rem 1.6rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.q-field .qnum { color: var(--color-siren-teal); font-size: 0.62rem; margin-right: 0.4rem; }

/* ---- Chaos slider ---- */
.chaos-wrap { background: linear-gradient(120deg, rgba(28,74,99,0.28), rgba(22,49,64,0.5));
  border: 1px solid var(--color-border-gold); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.8rem; }
.chaos-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
.chaos-head h3 { color: var(--color-antique-gold-hover); }
.chaos-val { font-family: var(--font-mono); color: var(--color-siren-teal); font-size: 0.9rem; }
input[type="range"].chaos { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--color-siren-teal), var(--color-antique-gold)); outline: none; }
input[type="range"].chaos::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--color-sea-salt-white); border: 2px solid var(--color-antique-gold);
  box-shadow: 0 0 12px rgba(230,172,191,0.5); cursor: pointer; }
input[type="range"].chaos::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-sea-salt-white); border: 2px solid var(--color-antique-gold); cursor: pointer; }
.chaos-scale { display: flex; justify-content: space-between; font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-weathered-parchment);
  margin-top: 0.6rem; }
.seed-row { display: flex; align-items: flex-end; gap: 0.8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.seed-row .field { margin-bottom: 0; flex: 1; min-width: 180px; }
.seed-reroll { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.75rem 1rem; border: 1px solid var(--color-border-gold); border-radius: var(--radius);
  background: rgba(230,172,191,0.05); color: var(--color-antique-gold-hover); transition: all 0.2s var(--ease); }
.seed-reroll:hover { border-color: var(--color-antique-gold); box-shadow: 0 0 12px rgba(230,172,191,0.2); }

.forge-actions { text-align: center; margin-top: 2rem; }
.forge-actions .btn { padding: 1rem 2.4rem; font-size: 0.86rem; }

/* ---- Working / status ---- */
.forge-working { display: none; text-align: center; padding: 3rem 1rem; }
.forge-working.show { display: block; }
.forge-working .spinner { width: 46px; height: 46px; margin: 0 auto 1.4rem; border-radius: 50%;
  border: 2px solid var(--color-border-subtle); border-top-color: var(--color-siren-teal); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.forge-working p { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--color-siren-teal); }
.forge-error { display:none; margin-top:1rem; }
.forge-error.show { display:block; }

/* ---- The generated character sheet ---- */
.sheet { display: none; }
.sheet.show { display: block; animation: fadein 0.5s var(--ease); }
.char-sheet { background: linear-gradient(180deg, var(--color-hull-charcoal), var(--color-submerged-slate));
  border: 1px solid var(--color-border-gold); border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), inset 0 0 60px rgba(127,224,212,0.03);
  padding: clamp(1.6rem, 4vw, 2.8rem); max-width: 860px; margin: 0 auto; }
.char-head { text-align: center; border-bottom: 1px solid var(--color-border-subtle); padding-bottom: 1.4rem; margin-bottom: 1.6rem; }
.char-name { font-family: var(--font-head); font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: 0.05em;
  color: var(--color-antique-gold-hover); }
.char-sub { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-siren-teal); margin-top: 0.6rem; }
.char-tier-badge { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-weathered-parchment); margin-top: 0.5rem; }

.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.7rem; margin: 1.4rem 0 1.8rem; }
.stat-cell { text-align: center; border: 1px solid var(--color-border-subtle); border-radius: var(--radius);
  padding: 0.7rem 0.3rem; background: rgba(9,22,30,0.4); }
.stat-cell .ab { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-weathered-parchment); }
.stat-cell .sc { font-family: var(--font-head); font-size: 1.7rem; color: var(--color-sea-salt-white); line-height: 1.1; }
.stat-cell .mod { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-siren-teal); }

.vitals { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-bottom: 1.8rem; }
.vital { border: 1px solid var(--color-border-gold); border-radius: var(--radius); padding: 0.55rem 1rem; text-align: center;
  background: rgba(230,172,191,0.04); }
.vital .vl { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-weathered-parchment); }
.vital .vv { font-family: var(--font-head); font-size: 1.3rem; color: var(--color-antique-gold-hover); }

.char-section { margin-bottom: 1.6rem; }
.char-section h3 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-siren-teal); margin-bottom: 0.7rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--color-border-subtle); }
.char-section p { color: var(--color-sea-salt-white); margin-bottom: 0.8rem; line-height: 1.75; }
.char-section p:last-child { margin-bottom: 0; }
.char-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.char-list span { font-family: var(--font-mono); font-size: 0.74rem; color: var(--color-weathered-parchment);
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius); padding: 0.35rem 0.7rem; background: rgba(9,22,30,0.35); }
.hook { border-left: 2px solid var(--color-antique-gold); padding: 0.2rem 0 0.2rem 1rem; margin-bottom: 1rem; }
.hook:last-child { margin-bottom: 0; }
.hook .hk-title { font-family: var(--font-head); color: var(--color-antique-gold-hover); font-size: 1.05rem; margin-bottom: 0.2rem; }
.pull-quote { text-align: center; font-family: var(--font-head); font-style: italic; font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-antique-gold-hover); margin: 1.6rem auto; max-width: 46ch; line-height: 1.5; }
.pull-quote::before { content: "“"; } .pull-quote::after { content: "”"; }

.sheet-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

.forge-note { text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--color-weathered-parchment); opacity: 0.85; max-width: 60ch; margin: 1.6rem auto 0; line-height: 1.8; }

@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Print: just the character sheet, on parchment ---- */
@media print {
  .site-header, .site-footer, .forge-step, .forge-intro, .sheet-actions, .forge-note, .hero-scroll { display: none !important; }
  body { background: #fff !important; color: #1a1a1a; }
  body::before { display: none; }
  .char-sheet { border-color: #b99; box-shadow: none; background: #fff; max-width: 100%; }
  .char-name, .char-sub, .char-section h3, .stat-cell .mod, .vital .vv, .char-name, .hook .hk-title, .pull-quote { color: #6a2f45 !important; -webkit-text-fill-color: #6a2f45; }
  .char-section p, .stat-cell .sc { color: #1a1a1a !important; }
  .stat-cell, .vital, .char-list span { border-color: #ccc !important; background: #f7f3f4 !important; }
}

/* ============================================================
   THE SHIP'S LOG  (accounts + re-download library)
   ============================================================ */
.auth-shell { max-width: 460px; margin: 0 auto; }
.auth-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.6rem; border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius); padding: 0.3rem; }
.auth-tab { flex: 1; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem; border: none; border-radius: var(--radius); background: none; color: var(--color-weathered-parchment);
  transition: all 0.2s var(--ease); }
.auth-tab[aria-selected="true"] { background: rgba(127,224,212,0.08); color: var(--color-siren-teal); }
.auth-pane { display: none; } .auth-pane.show { display: block; }

.log-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-bottom: 1.4rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--color-border-gold); }
.log-bar .who { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-weathered-parchment); letter-spacing: 0.06em; }
.log-bar .who b { color: var(--color-antique-gold-hover); font-weight: 500; }

.log-section { margin-bottom: 2.6rem; }
.log-section > h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--color-antique-gold-hover); margin-bottom: 0.3rem; }
.log-section > .sub { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-siren-teal); opacity: 0.85; margin-bottom: 1.3rem; }
.log-empty { color: var(--color-weathered-parchment); font-size: 0.92rem; padding: 1.4rem 0; }

.log-char { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.2rem 1.25rem;
  background: linear-gradient(180deg, var(--color-hull-charcoal), var(--color-submerged-slate));
  border: 1px solid var(--color-border-subtle); border-radius: var(--radius); transition: border-color 0.25s var(--ease); }
.log-char:hover { border-color: var(--color-siren-teal); }
.log-char .lc-name { font-family: var(--font-head); font-size: 1.25rem; color: var(--color-antique-gold-hover); letter-spacing: 0.03em; }
.log-char .lc-meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-weathered-parchment); }
.log-char .lc-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-top: 0.4rem; }
.log-char .lc-actions button { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.45rem 0.75rem; border-radius: var(--radius); border: 1px solid var(--color-border-subtle); background: none;
  color: var(--color-weathered-parchment); transition: all 0.2s var(--ease); }
.log-char .lc-actions button:hover { color: var(--color-siren-teal); border-color: var(--color-siren-teal); }
.log-char .lc-actions button.danger:hover { color: #ff9a9a; border-color: rgba(255,154,154,0.5); }

/* ============================================================
   THE CHARACTER FORGE — guided one-question-at-a-time quiz
   ============================================================ */
.quiz { max-width: 780px; margin: 0 auto; }
.quiz-progress { height: 3px; background: var(--color-border-subtle); border-radius: 2px; overflow: hidden; }
.quiz-progress-bar { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--color-siren-teal), var(--color-antique-gold));
  box-shadow: 0 0 10px var(--color-siren-teal-glow); transition: width 0.45s var(--ease); }
.quiz-count { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--color-weathered-parchment); text-align: center; margin: 1rem 0 1.6rem; }

.quiz-stage { min-height: 360px; }
.quiz-card { text-align: center; }
.quiz-card.enter { animation: quizIn 0.45s var(--ease); }
@keyframes quizIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.q-siren { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--color-siren-teal); opacity: 0.82; margin-bottom: 0.9rem; }
.q-ask { font-family: var(--font-head); font-size: clamp(1.6rem, 4.6vw, 2.6rem); letter-spacing: 0.02em;
  color: var(--color-antique-gold-hover); line-height: 1.15; margin: 0 auto 0.7rem; max-width: 22ch; }
.q-help { color: var(--color-weathered-parchment); font-size: 0.9rem; max-width: 52ch; margin: 0 auto; }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.9rem; }
.opt {
  font-family: var(--font-head); font-size: 1.22rem; letter-spacing: 0.015em;
  color: var(--color-sea-salt-white);
  background:
    linear-gradient(180deg, rgba(174,234,225,0.14), rgba(230,172,191,0.06) 55%, rgba(16,40,52,0.15));
  background-color: rgba(26, 56, 70, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(127,224,212,0.40); border-radius: 14px;
  padding: 1.4rem 1.1rem; min-height: 102px; line-height: 1.25; text-align: center;
  display: flex; align-items: center; justify-content: center;
  /* Glow is visible AT REST now, not only on hover */
  box-shadow:
    0 0 20px rgba(127,224,212,0.14),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 0 26px rgba(127,224,212,0.07),
    0 10px 26px rgba(0,0,0,0.3);
  transition: all 0.22s var(--ease);
}
.opt:hover { transform: translateY(-4px); border-color: var(--color-antique-gold-hover); color: #ffffff;
  box-shadow:
    0 0 0 1px var(--color-antique-gold),
    0 0 36px rgba(230,172,191,0.42),
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 0 30px rgba(230,172,191,0.10),
    0 18px 40px rgba(0,0,0,0.45); }
.opt.is-chosen { border-color: var(--color-antique-gold); color: var(--color-antique-gold-hover);
  box-shadow: 0 0 0 1px var(--color-antique-gold), 0 0 40px rgba(230,172,191,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2); }

.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.9rem; }
.quiz-back, .quiz-surprise {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem 1.05rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius);
  background: none; color: var(--color-weathered-parchment); transition: all 0.2s var(--ease);
}
.quiz-back:hover:not(:disabled), .quiz-surprise:hover { color: var(--color-siren-teal); border-color: var(--color-siren-teal); }
.quiz-back:disabled { opacity: 0.3; cursor: default; }
.quiz-surprise[hidden] { display: none; }

.attune-card .chaos-wrap { text-align: left; margin-top: 1.7rem; }
.attune-card .forge-actions { margin-top: 1.6rem; }

/* ============================================================
   LUSH PASS — illustration, ornament, bolder color & motion
   ============================================================ */

/* Siren crest emblem (inline SVG sits in .forge-intro / hero) */
.siren-emblem { width: clamp(96px, 14vw, 148px); height: auto; margin: 0 auto 1.1rem;
  filter: drop-shadow(0 0 18px rgba(127,224,212,0.35)) drop-shadow(0 0 30px rgba(230,172,191,0.2));
  animation: emblemGlow 6s ease-in-out infinite alternate; }
@keyframes emblemGlow {
  from { filter: drop-shadow(0 0 12px rgba(127,224,212,0.28)) drop-shadow(0 0 22px rgba(230,172,191,0.15)); }
  to   { filter: drop-shadow(0 0 24px rgba(127,224,212,0.5)) drop-shadow(0 0 40px rgba(230,172,191,0.3)); }
}

/* Ornamental wave divider — replaces the plain hairline */
.divider {
  width: 190px; height: 16px; margin: 1.1rem auto 0; background: none; position: relative;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 16'%3E%3Cpath d='M5 8 Q22 -2 40 8 T75 8 T110 8 T145 8 T180 8' fill='none' stroke='black' stroke-width='1.5'/%3E%3Ccircle cx='95' cy='8' r='3' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 190 16'%3E%3Cpath d='M5 8 Q22 -2 40 8 T75 8 T110 8 T145 8 T180 8' fill='none' stroke='black' stroke-width='1.5'/%3E%3Ccircle cx='95' cy='8' r='3' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
  background-image: linear-gradient(90deg, transparent, var(--color-antique-gold), var(--color-siren-teal), var(--color-antique-gold), transparent);
}

/* Bolder primary button — a slow light-sweep across it */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }

/* Question type — luminous, dramatic */
.q-ask { text-shadow: 0 0 26px rgba(230,172,191,0.35); }

/* Option cards — a light sweep on hover, deeper glow */
.opt { position: relative; overflow: hidden; }
.opt::before {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 35%, rgba(127,224,212,0.18) 50%, transparent 65%);
  transition: transform 0.5s var(--ease);
}
.opt:hover::before { transform: translateX(130%); }

/* Quiz stage becomes an elegant framed panel with colored light inside, so the
   frosted-glass cards over it actually have something luminous to catch. */
.quiz-stage {
  border-radius: 18px;
  background:
    radial-gradient(60% 45% at 18% 12%, rgba(127,224,212,0.12), transparent 60%),
    radial-gradient(55% 45% at 86% 38%, rgba(230,172,191,0.12), transparent 62%),
    radial-gradient(70% 50% at 50% 105%, rgba(28,74,99,0.30), transparent 60%),
    linear-gradient(180deg, rgba(15,37,48,0.62), rgba(20,45,60,0.42));
  border: 1px solid var(--color-border-gold);
  box-shadow: inset 0 0 90px rgba(127,224,212,0.06), 0 24px 70px rgba(0,0,0,0.45);
  padding: clamp(1.8rem, 4vw, 2.9rem);
}

/* Ornamental corner flourishes for framed panels (character sheet, callout) */
.char-sheet, .callout { position: relative; }
.char-sheet::before, .char-sheet::after,
.callout::before, .callout::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none; opacity: 0.6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M2 24 C2 12 12 2 24 2' fill='none' stroke='%23e6acbf' stroke-width='1.2'/%3E%3Ccircle cx='6' cy='20' r='1.6' fill='%237fe0d4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.char-sheet::before, .callout::before { top: 8px; left: 8px; }
.char-sheet::after, .callout::after { bottom: 8px; right: 8px; transform: rotate(180deg); }

/* Drop-cap flourish, richer */
.dropcap::first-letter { text-shadow: 0 0 18px rgba(230,172,191,0.4); }
