/* ══════════════════════════════════════════════════════════
   AquamarineAshley — The Celestial Gem Order
   Black void · royal purple · silver heraldry · aquamarine glow
   ══════════════════════════════════════════════════════════ */

:root {
  --void: #07050d;
  --night: #0f0a1c;
  --plum: #1b1130;
  --plum-2: #26173f;
  --royal: #6b3fc4;
  --royal-2: #8b5cf6;
  --lavender: #c9b4ff;
  --silver: #e7e1f5;
  --silver-dim: #a99fc4;
  --aqua: #7fffd4;
  --aqua-dim: #3fb79f;
  --line: rgba(201, 180, 255, .18);
  --line-strong: rgba(201, 180, 255, .4);
  --glass: rgba(20, 12, 38, .72);
  --radius: 4px;
  --notch: 14px;
  --serif-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  --serif-head: 'Cinzel', Georgia, serif;
  --serif-body: 'Spectral', Georgia, serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--void);
  color: var(--silver);
  font: 400 1.075rem/1.7 var(--serif-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--lavender); text-decoration-color: rgba(201,180,255,.4); text-underline-offset: 3px; }
a:hover { color: var(--aqua); }
h1, h2, h3 { font-family: var(--serif-head); font-weight: 700; letter-spacing: .04em; line-height: 1.2; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--silver-dim); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
::selection { background: var(--royal); color: #fff; }

/* ── Sky ───────────────────────────────────────── */
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.nebula {
  position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 20%, rgba(107, 63, 196, .28), transparent 70%),
    radial-gradient(35% 30% at 85% 15%, rgba(139, 92, 246, .16), transparent 70%),
    radial-gradient(45% 40% at 70% 85%, rgba(63, 183, 159, .08), transparent 70%),
    radial-gradient(50% 45% at 25% 90%, rgba(80, 30, 140, .22), transparent 70%);
  animation: drift 60s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(3%, -2%, 0) scale(1.05); } }

/* ── Header ────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(7,5,13,.92), rgba(7,5,13,.75));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  border-bottom: 1px solid rgba(201,180,255,.08);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.brand-fleur { width: 30px; height: 36px; fill: url(#g-silver); filter: drop-shadow(0 0 8px rgba(201,180,255,.35)); }
.brand-text { font: 700 1.05rem/1 var(--serif-head); letter-spacing: .16em; text-transform: uppercase; display: flex; flex-direction: column; }
.brand-text span { font-size: .68rem; letter-spacing: .5em; color: var(--lavender); margin-top: .3em; }

.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav a {
  position: relative; text-decoration: none; color: var(--silver-dim);
  font: 600 .78rem/1 var(--serif-head); letter-spacing: .14em; text-transform: uppercase;
  padding: .7rem .8rem;
}
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-nav a.active::after {
  content: ''; position: absolute; left: 50%; bottom: .2rem; width: 6px; height: 6px;
  background: var(--aqua); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 8px var(--aqua);
}
.nav-live {
  display: inline-flex !important; align-items: center; gap: .45rem; margin-left: .4rem;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: .5rem .9rem !important;
}
.nav-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--silver-dim); }
.nav-live.is-live { border-color: var(--aqua); color: var(--aqua) !important; }
.nav-live.is-live .dot, .live-kicker .dot { background: var(--aqua); box-shadow: 0 0 10px var(--aqua); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: .55rem .5rem; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--silver); margin: 4px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: rgba(10,7,20,.97); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem .5rem; border-bottom: 1px solid rgba(201,180,255,.07); }
  .site-nav a.active::after { left: auto; right: .5rem; top: 50%; bottom: auto; transform: translateY(-50%) rotate(45deg); }
  .nav-live { margin: .6rem 0 0; justify-content: center; }
}

/* ── Decree banner ─────────────────────────────── */
.decree {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  padding: .55rem 1rem; text-align: center; font-size: .92rem;
  background: linear-gradient(90deg, transparent, rgba(107,63,196,.35), transparent);
  border-bottom: 1px solid var(--line);
}
.decree strong { font-family: var(--serif-head); letter-spacing: .1em; color: #fff; font-size: .82rem; text-transform: uppercase; }
.decree svg { width: 14px; height: 17px; fill: var(--lavender); flex: none; }

/* ── Layout ────────────────────────────────────── */
main { width: min(var(--max), 100% - 2rem); margin: 0 auto; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section.narrow { max-width: 800px; margin: 0 auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.2rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: .8rem;
  font: 600 .76rem/1 var(--serif-head); letter-spacing: .32em; text-transform: uppercase; color: var(--aqua);
}
.kicker svg { width: 10px; height: 10px; fill: currentColor; }

.divider { display: flex; align-items: center; gap: 1rem; max-width: 520px; margin: 1rem auto; }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.divider span:last-child { background: linear-gradient(-90deg, transparent, var(--line-strong)); }
.divider svg { width: 26px; height: 32px; fill: url(#g-silver); filter: drop-shadow(0 0 6px rgba(201,180,255,.3)); }

/* Plaques: notched-corner heraldic panels */
.plaque {
  position: relative; background: var(--glass); backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, 0 calc(100% - var(--notch)), 0 var(--notch));
  padding: 1.5rem;
}
.plaque::before {
  content: ''; position: absolute; inset: 5px; pointer-events: none;
  border: 1px solid rgba(201,180,255,.08);
  clip-path: inherit;
}
.plaque.empty { text-align: center; color: var(--silver-dim); padding: 2.5rem 1.5rem; }
.empty-icon { width: 28px; height: 28px; fill: var(--lavender); margin: 0 auto 1rem; opacity: .7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  font: 700 .8rem/1 var(--serif-head); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 1.5rem; border: 1px solid transparent; color: #fff;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  transition: transform .2s, filter .2s, background .2s;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn-primary { background: linear-gradient(135deg, var(--royal-2), var(--royal) 60%, #4a2793); }
.btn-primary:hover { color: #fff; filter: brightness(1.15); transform: translateY(-1px); }
.btn-ghost { background: rgba(201,180,255,.08); color: var(--silver); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgba(127,255,212,.1); color: var(--aqua); }
.btn-small { padding: .6rem .9rem; font-size: .7rem; background: var(--royal); }
.btn-x { background: none; border: 1px solid var(--line); color: var(--silver-dim); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.btn-x:hover { border-color: #ff7a9a; color: #ff7a9a; }

/* ── Hero ──────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 3rem;
  min-height: min(78vh, 720px); padding: 3rem 0 2rem;
}
.hero-title {
  font-family: var(--serif-display); font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; margin-bottom: .35em;
  background: linear-gradient(180deg, #fff 20%, var(--lavender) 65%, #8a6fd6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(139,92,246,.45));
}
.hero-tagline { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--silver); max-width: 34ch; font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.crest { position: relative; width: min(100%, 380px); aspect-ratio: 100 / 128; margin: 0 auto; }
.crest-shield {
  position: absolute; inset: 0 0 8% 0; width: 100%; height: 92%;
  fill: url(#g-silver); filter: drop-shadow(0 0 30px rgba(139,92,246,.55));
}
.crest::before { /* inner field of the shield */
  content: ''; position: absolute; left: 7%; right: 7%; top: 5%; height: 82%; z-index: 1;
  background: radial-gradient(circle at 50% 35%, #3a2266, #140b26 70%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M6 6h88v46c0 34-22 54-44 64C28 106 6 86 6 52z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120' preserveAspectRatio='none'%3E%3Cpath d='M6 6h88v46c0 34-22 54-44 64C28 106 6 86 6 52z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.crest-portrait {
  position: absolute; z-index: 2; left: 50%; top: 34%; width: 52%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; padding: 5px;
  background: conic-gradient(from 0deg, var(--aqua), var(--royal-2), var(--lavender), var(--aqua));
  box-shadow: 0 0 40px rgba(127,255,212,.35);
  animation: spin-glow 12s linear infinite;
}
.crest-portrait img, .crest-portrait .crest-gem {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--night);
  animation: spin-glow 12s linear infinite reverse;
}
.crest-gem { fill: url(#g-gem); padding: 22%; }
@keyframes spin-glow { to { transform: translate(-50%, -50%) rotate(360deg); } }
.crest-portrait img, .crest-portrait .crest-gem { animation-name: counter; }
@keyframes counter { to { transform: rotate(-360deg); } }
.crest-fleur { position: absolute; z-index: 2; left: 50%; top: 58%; width: 22%; height: 27%; transform: translateX(-50%); fill: url(#g-silver); filter: drop-shadow(0 0 10px rgba(201,180,255,.5)); }
.crest-banner {
  position: absolute; z-index: 3; left: -6%; right: -6%; bottom: 3%; text-align: center;
  background: linear-gradient(180deg, var(--royal-2), var(--royal));
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
  padding: .65rem 0; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.crest-banner span { font: 700 .8rem/1 var(--serif-head); letter-spacing: .32em; text-transform: uppercase; color: #fff; }
.crest-orbit { position: absolute; inset: -12%; z-index: 0; animation: orbit 30s linear infinite; }
.crest-orbit svg { position: absolute; width: 16px; height: 16px; fill: var(--aqua); filter: drop-shadow(0 0 6px var(--aqua)); }
.crest-orbit svg:nth-child(1) { top: 0; left: 50%; }
.crest-orbit svg:nth-child(2) { bottom: 18%; left: 2%; width: 11px; fill: var(--lavender); }
.crest-orbit svg:nth-child(3) { bottom: 22%; right: 0; width: 13px; }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: 0; gap: 2rem; padding-top: 2rem; }
  .hero .crest { order: -1; width: min(70%, 280px); }
  .hero-tagline { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

/* ── Live ──────────────────────────────────────── */
.live-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1rem; }
.frame { border: 1px solid var(--line-strong); background: #000; box-shadow: 0 0 40px rgba(107,63,196,.35); }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.frame-video { aspect-ratio: 16 / 9; }
.frame-chat { min-height: 400px; }
@media (max-width: 960px) { .live-grid { grid-template-columns: 1fr; } .frame-chat { height: 480px; } }

/* VOD cards */
.vod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.vod { padding: .7rem .7rem 1rem; text-decoration: none; color: var(--silver); transition: transform .25s, border-color .25s; }
.vod:hover { transform: translateY(-3px); border-color: var(--line-strong); color: #fff; }
.vod img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .8rem; filter: saturate(.9); }
.vod h3 { font-size: .95rem; letter-spacing: .02em; margin: 0 .2rem .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vod p { margin: 0 .2rem; font-size: .85rem; }
.vod-dur { position: absolute; top: 1.1rem; right: 1.1rem; background: rgba(7,5,13,.85); padding: .15rem .5rem; font-size: .75rem; border: 1px solid var(--line); }
.sub-head { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; margin: 2rem 0 1.2rem; }
.sub-head svg { width: 20px; height: 20px; fill: var(--aqua); }

/* ── Week strip ────────────────────────────────── */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; margin-bottom: 1rem; }
.day {
  text-align: center; padding: 1.1rem .5rem; min-height: 140px;
  background: var(--glass); border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}
.day.has { background: linear-gradient(180deg, rgba(107,63,196,.45), rgba(20,12,38,.8)); border-color: var(--line-strong); }
.day.today { box-shadow: inset 0 0 0 2px var(--aqua); }
.day-name { font: 700 .8rem/1 var(--serif-head); letter-spacing: .2em; text-transform: uppercase; color: var(--lavender); margin-bottom: .8rem; }
.day.today .day-name { color: var(--aqua); }
.day-time { font: 700 1rem/1.2 var(--serif-head); color: #fff; margin: 0; }
.day-title { font-size: .82rem; color: var(--silver-dim); margin: .2rem 0 .6rem; line-height: 1.35; }
.day-rest { font-style: italic; color: var(--silver-dim); opacity: .6; font-size: .9rem; }
@media (max-width: 760px) {
  .week { grid-template-columns: repeat(2, 1fr); }
  .day { min-height: 0; clip-path: none; }
}

/* ── Rota (schedule page) ──────────────────────── */
.rota { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.rota-day { display: flex; gap: 1.2rem; align-items: center; padding: 1rem 1.2rem; background: var(--glass); border: 1px solid var(--line); }
.rota-day.rest { opacity: .55; }
.rota-day.today { border-color: var(--aqua); box-shadow: 0 0 24px rgba(127,255,212,.15); }
.rota-badge { position: relative; width: 56px; height: 66px; flex: none; display: grid; place-items: center; }
.rota-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--royal); }
.rota-day.today .rota-badge svg { fill: var(--aqua-dim); }
.rota-badge span { position: relative; font: 700 .78rem/1 var(--serif-head); letter-spacing: .1em; text-transform: uppercase; margin-top: -6px; }
.rota-body h2 { font-size: 1.15rem; margin-bottom: .3rem; display: flex; align-items: center; gap: .5rem; }
.today-star { width: 14px; height: 14px; fill: var(--aqua); display: none; }
.rota-day.today .today-star { display: inline; }
.rota-body p { margin: 0; }
.rota-slot { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.rota-time { font: 700 1rem var(--serif-head); color: var(--aqua); }
.rota-title { color: #fff; }
.rota-game { color: var(--silver-dim); font-size: .9rem; font-style: italic; }

/* ── Gem Nursery ───────────────────────────────── */
.gem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; margin-bottom: 1.5rem; }
@media (max-width: 520px) {
  .gem-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .gem-card { padding: 1.1rem .5rem 1rem; }
  .gem-orb { width: 76px; height: 76px; }
  .gem-rank { font-size: .6rem; letter-spacing: .12em; }
}
.gem-card {
  --gem: #a77bff;
  position: relative; text-align: center; padding: 1.4rem 1rem 1.2rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gem) 14%, transparent), var(--glass) 55%);
  border: 1px solid color-mix(in srgb, var(--gem) 35%, transparent);
  clip-path: polygon(50% 0, 100% 8%, 100% 92%, 50% 100%, 0 92%, 0 8%);
}
.gem-orb {
  position: relative; width: 96px; height: 96px; margin: .4rem auto .8rem; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; border-radius: 50%;
}
.gem-aura {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gem) 55%, transparent), transparent 70%);
  opacity: .35; transition: opacity .3s, transform .3s;
}
.gem-shape { position: relative; width: 52px; height: 46px; fill: var(--gem); filter: drop-shadow(0 0 8px var(--gem)); transition: transform .3s; animation: bob 4s ease-in-out infinite; }
.stage-1 .gem-shape { width: 60px; height: 52px; }
.stage-2 .gem-shape { width: 66px; height: 58px; }
.stage-2 .gem-aura { opacity: .5; }
.stage-3 .gem-shape { width: 72px; height: 63px; }
.stage-3 .gem-aura { opacity: .7; }
.stage-4 .gem-shape { width: 78px; height: 68px; }
.stage-4 .gem-aura { opacity: .9; animation: pulse 2.4s infinite; }
.gem-crown { position: absolute; top: -8px; width: 26px; height: 26px; fill: var(--aqua); filter: drop-shadow(0 0 6px var(--aqua)); }
.gem-orb:hover .gem-shape { transform: scale(1.08) rotate(-4deg); }
.gem-orb:hover .gem-aura { transform: scale(1.15); opacity: .8; }
.gem-orb.pop .gem-shape { animation: pop .6s ease; }
.gem-orb.resting { cursor: default; }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes pop { 40% { transform: scale(1.3) rotate(8deg); filter: drop-shadow(0 0 22px var(--gem)) brightness(1.4); } }
.gem-name { font-size: 1.05rem; margin: 0 0 .2rem; word-break: break-word; }
.gem-type { font-size: .85rem; color: var(--silver-dim); margin: 0; }
.gem-rank { font: 600 .68rem/1 var(--serif-head); letter-spacing: .2em; text-transform: uppercase; color: var(--gem); margin: .6rem 0; filter: brightness(1.3); }
.glow-meter { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; margin: 0 .6rem .5rem; }
.glow-meter span { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--gem) 60%, #000), var(--gem)); box-shadow: 0 0 8px var(--gem); transition: width .6s ease; }
.glow-count { font-size: .78rem; color: var(--silver-dim); margin: 0 0 .4rem; }
.gem-note { font-style: italic; font-size: .88rem; color: var(--silver); margin: .6rem .4rem .2rem; }
.gem-msg { min-height: 1.2em; font-size: .8rem; color: var(--aqua); margin: 0; }
.spark { position: fixed; pointer-events: none; z-index: 100; width: 10px; height: 10px; fill: var(--c, #7fffd4); animation: spark .9s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0) rotate(180deg); opacity: 0; } }

.stages { list-style: none; padding: 0; margin: 0 auto 2.5rem; display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.stage-step { display: grid; justify-items: center; gap: .15rem; text-align: center; padding: .9rem 1rem; min-width: 120px; background: var(--glass); border: 1px solid var(--line); position: relative; }
.stage-step:not(:last-child)::after { content: '›'; position: absolute; right: -.55rem; top: 50%; transform: translateY(-50%); color: var(--lavender); z-index: 1; }
.stage-step svg { width: 22px; height: 20px; fill: var(--lavender); margin-bottom: .3rem; }
.stage-step:last-child svg { fill: var(--aqua); }
.stage-step strong { font: 700 .82rem var(--serif-head); letter-spacing: .08em; color: #fff; }
.stage-step span { font-size: .78rem; color: var(--silver-dim); }
.stage-step small { font-size: .7rem; color: var(--aqua); }

/* ── Page hero (inner pages) ───────────────────── */
.page-hero { text-align: center; padding: clamp(3rem, 8vw, 5rem) 0 1rem; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-family: var(--serif-display); }
.page-hero.lost { padding-bottom: 4rem; }
.lost-gem { width: 80px; height: 70px; fill: var(--lavender); opacity: .5; margin: 0 auto 1.5rem; animation: bob 4s ease-in-out infinite; }

/* ── About scroll ──────────────────────────────── */
.scroll { position: relative; padding: 0 .6rem; }
.scroll-rod { display: block; height: 16px; border-radius: 8px; background: linear-gradient(180deg, #d9cff5, #6d55a8 60%, #2b1d4d); box-shadow: 0 4px 12px rgba(0,0,0,.5); position: relative; z-index: 1; }
.scroll-rod::before, .scroll-rod::after { content: ''; position: absolute; top: -4px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--royal-2) 50%, #2b1d4d); }
.scroll-rod::before { left: -14px; } .scroll-rod::after { right: -14px; }
.scroll-body {
  margin: -4px 1rem; padding: 2.5rem clamp(1.2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, rgba(38,23,63,.92), rgba(20,12,38,.92));
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font-size: 1.15rem;
}
.scroll-portrait { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 2rem; border: 3px solid var(--lavender); box-shadow: 0 0 30px rgba(127,255,212,.3); }
.dropcap::first-letter { float: left; font: 700 3.6rem/.85 var(--serif-display); color: var(--aqua); padding: .3rem .6rem 0 0; text-shadow: 0 0 18px rgba(127,255,212,.5); }
.signature { font-style: italic; color: var(--lavender); margin: 0; }

.tenets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.tenet { text-align: center; padding: 2rem 1.4rem; }
.tenet svg { width: 34px; height: 36px; fill: var(--aqua); margin: 0 auto 1rem; filter: drop-shadow(0 0 8px rgba(127,255,212,.4)); }
.tenet h3 { font-size: 1.3rem; letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 760px) { .tenets { grid-template-columns: 1fr; } }

/* ── Heralds (links) ───────────────────────────── */
.herald-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.herald {
  display: flex; align-items: center; gap: 1.2rem; text-decoration: none; color: #fff;
  padding: 1rem 1.4rem; background: var(--glass); border: 1px solid var(--line);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: background .25s, transform .25s, border-color .25s;
}
.herald:hover { background: rgba(107,63,196,.35); border-color: var(--line-strong); transform: translateX(4px); color: #fff; }
.herald-icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--royal-2), #3a1f74); box-shadow: 0 0 0 1px var(--line-strong); }
.herald-icon svg { width: 20px; height: 20px; fill: #fff; }
.brand-icon { display: block; width: 22px; height: 22px; background: #fff; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.herald-label { flex: 1; font: 700 1rem var(--serif-head); letter-spacing: .12em; text-transform: uppercase; }
.herald-fleur { width: 18px; height: 22px; fill: var(--lavender); opacity: .4; transition: opacity .25s; }
.herald:hover .herald-fleur { opacity: 1; fill: var(--aqua); }

/* ── CTA ───────────────────────────────────────── */
.cta { display: flex; align-items: center; gap: 2rem; padding: 2rem 2.5rem; background: linear-gradient(120deg, rgba(107,63,196,.45), rgba(20,12,38,.85)); }
.cta h2 { margin-bottom: .2rem; }
.cta p { margin: 0; }
.cta > div { flex: 1; }
.cta-fleur { width: 54px; height: 66px; fill: url(#g-silver); flex: none; }
@media (max-width: 700px) { .cta { flex-direction: column; text-align: center; } }

/* ── Footer ────────────────────────────────────── */
.site-footer { text-align: center; padding: 3rem 1rem 2.5rem; border-top: 1px solid var(--line); margin-top: 2rem; background: linear-gradient(to top, rgba(7,5,13,.95), transparent); }
.motto { font: italic 1.05rem var(--serif-body); color: var(--lavender); margin: .5rem 0; }
.site-footer .small { color: var(--silver-dim); }

/* ── Admin ─────────────────────────────────────── */
.login-wrap { display: grid; place-items: center; min-height: 70vh; }
.login { width: min(420px, 100%); display: grid; gap: 1rem; padding: 2.5rem 2rem; text-align: left; }
.login h1 { text-align: center; font-size: 1.8rem; margin: 0; }
.login p { margin: 0; }
.login-shield { position: absolute; inset: 10% 20%; width: 60%; height: 80%; fill: rgba(107,63,196,.08); z-index: -1; }
.login-fleur { width: 40px; height: 48px; fill: url(#g-silver); margin: 0 auto; }
.login .btn { justify-content: center; margin-top: .5rem; }

label { display: grid; gap: .35rem; font: 600 .74rem var(--serif-head); letter-spacing: .12em; text-transform: uppercase; color: var(--lavender); }
.hint { font: italic .78rem var(--serif-body); letter-spacing: 0; text-transform: none; color: var(--silver-dim); }
input, textarea, select {
  width: 100%; font: 400 1rem var(--serif-body); color: #fff;
  background: rgba(7,5,13,.6); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .65rem .75rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(127,255,212,.15); }
input[type="color"] { padding: .2rem; height: 44px; cursor: pointer; }
textarea { resize: vertical; }
label.check { display: flex; align-items: center; gap: .6rem; text-transform: none; letter-spacing: 0; font: 400 1rem var(--serif-body); color: var(--silver); }
label.check input { width: auto; accent-color: var(--royal-2); }
label.short { max-width: 140px; }

.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-head h1 { margin-bottom: .2rem; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.tabs a { padding: .8rem 1.1rem; text-decoration: none; color: var(--silver-dim); font: 600 .78rem var(--serif-head); letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: #fff; border-bottom-color: var(--aqua); }
.form { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.form h2 { font-size: 1.1rem; margin: .6rem 0 0; color: var(--aqua); }
.form .btn { justify-self: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-2.top { align-items: start; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 800px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.alert { padding: .8rem 1rem; border-left: 3px solid; margin-bottom: 1rem; background: var(--glass); }
.alert.ok { border-color: var(--aqua); color: var(--aqua); }
.alert.err { border-color: #ff7a9a; color: #ffb3c4; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font: 600 .72rem var(--serif-head); letter-spacing: .14em; text-transform: uppercase; color: var(--lavender); padding: .6rem; border-bottom: 1px solid var(--line-strong); }
td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
td form { margin: 0; text-align: right; }
.ellipsis { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gem-admin-list { display: grid; gap: .7rem; }
.gem-admin { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; --notch: 8px; }
.gem-admin form { margin: 0; }
.gem-edit { display: flex; align-items: center; gap: .5rem; flex: 1; flex-wrap: wrap; }
.gem-edit input { width: auto; flex: 1 1 120px; padding: .45rem .6rem; font-size: .92rem; }
.gem-edit input.num { flex: 0 0 84px; width: 84px; max-width: 84px; }
.gem-edit .field-tag { font: 600 .62rem var(--serif-head); letter-spacing: .12em; text-transform: uppercase; color: var(--silver-dim); }
.gem-edit input.wide { flex: 3 1 220px; }
.gem-edit input[type="color"] { flex: 0 0 48px; height: 36px; }
.gem-mini { width: 26px; height: 23px; fill: var(--gem); filter: drop-shadow(0 0 4px var(--gem)); flex: none; }
.pill { font: 600 .68rem var(--serif-head); letter-spacing: .1em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; background: rgba(201,180,255,.12); color: var(--lavender); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
