:root {
  --bg: #0B0E17;
  --bg-elevated: #151B2E;
  --bg-card: #111626;
  --bg-panel: #13192B;
  --gold: #D4AF37;
  --gold-bright: #E8CA68;
  --gold-soft: rgba(212, 175, 55, 0.28);
  --gold-faint: rgba(212, 175, 55, 0.12);
  --ivory: #F4EFE6;
  --muted: #B6BFD2;
  --wands: #C86432;
  --cups: #4A8B8C;
  --swords: #7A8B99;
  --pentacles: #2E6F40;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  --max-w: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  background: radial-gradient(circle at top center, #182038 0%, var(--bg) 62%);
  background-color: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #FFF3C4; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--gold); color: #0B0E17; font-weight: 700;
  padding: 0.65rem 1rem; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Header & Navigation */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 23, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-soft);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ivory);
}
.brand-ornament { width: 28px; height: 28px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ivory); }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); }

.nav-toggle {
  display: none; appearance: none;
  background: var(--bg-elevated); color: var(--ivory);
  border: 1px solid var(--gold-soft); border-radius: 8px;
  padding: 0.45rem 0.75rem; font-size: 0.9rem; cursor: pointer;
}
.nav-links {
  display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block; padding: 0.45rem 0.75rem; border-radius: 999px;
  text-decoration: none; color: var(--ivory); font-size: 0.88rem; font-weight: 500;
  border: 1px solid transparent; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { border-color: var(--gold-soft); color: var(--gold-bright); }
.nav-links a[aria-current="page"] {
  background: var(--gold); color: #0B0E17; font-weight: 700;
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: rgba(11, 14, 23, 0.98); border-bottom: 1px solid var(--gold-soft);
    padding: 0.75rem 1.25rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 8px; padding: 0.6rem 0.85rem; }
}

/* Main Layout */
main { flex: 1 0 auto; width: 100%; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }
.page-hero {
  text-align: center; padding: 2.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--gold-soft);
  background: linear-gradient(180deg, rgba(21, 27, 46, 0.88) 0%, rgba(11, 14, 23, 0.95) 100%);
}
.kicker {
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-bright); margin: 0 0 0.5rem;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ivory); margin-top: 0; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: 0.03em; margin-bottom: 0.6rem; }
.hero-lead { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.6rem 1.15rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  font-family: var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--gold); transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.btn-primary { background: var(--gold); color: #0B0E17; }
.btn-primary:hover { background: var(--gold-bright); color: #0B0E17; }
.btn-secondary { background: var(--bg-elevated); color: var(--ivory); border-color: var(--gold-soft); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn[aria-pressed="true"] { background: rgba(212, 175, 55, 0.2); border-color: var(--gold); color: var(--gold-bright); }

/* Cards & Panels */
.panel {
  background: var(--bg-panel); border: 1px solid var(--gold-soft);
  border-radius: var(--radius); padding: 1.5rem;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }

.dedication-box {
  max-width: 640px; margin: 2rem auto 0; padding: 1.5rem 1.75rem;
  background: rgba(21, 27, 46, 0.72); border: 1px solid var(--gold-soft);
  border-radius: var(--radius); text-align: center;
}
.dedication-ornament { width: 48px; height: 48px; margin: 0 auto 0.75rem; }
.dedication-box p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ivory); margin: 0.25rem 0; }
.dedication-label { font-family: var(--sans); font-style: normal; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 0.5rem; }

/* Suit Badges */
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--gold-soft); background: rgba(21, 27, 46, 0.9); color: var(--gold-bright);
}
.badge-wands { border-color: var(--wands); color: #F5A37A; }
.badge-cups { border-color: var(--cups); color: #8DD1D2; }
.badge-swords { border-color: var(--swords); color: #C5D3DF; }
.badge-pentacles { border-color: var(--pentacles); color: #84D49A; }

/* Gallery Grid & Library Suit Sections */
.filter-bar {
  background: rgba(11, 14, 23, 0.9); border: 1px solid var(--gold-soft);
  border-radius: var(--radius); padding: 1rem; margin-bottom: 1.25rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  appearance: none; background: var(--bg-elevated); color: var(--ivory);
  border: 1px solid var(--gold-soft); border-radius: 999px;
  padding: 0.4rem 0.85rem; font-size: 0.82rem; cursor: pointer; font-family: var(--sans);
}
.chip:hover { border-color: var(--gold); color: var(--gold-bright); }
.chip.active { background: var(--gold); color: #0B0E17; border-color: var(--gold); font-weight: 700; }

.input, .select {
  background: var(--bg-elevated); color: var(--ivory);
  border: 1px solid var(--gold-soft); border-radius: 8px;
  padding: 0.5rem 0.8rem; font-size: 0.88rem; font-family: var(--sans);
  max-width: 100%; text-overflow: ellipsis;
}
.input:focus, .select:focus { border-color: var(--gold); outline: none; }

.library-suit-sections {
  display: flex;
  flex-direction: column;
}
.library-suit-section {
  margin-top: 2.75rem;
}
.library-suit-section:first-child {
  margin-top: 1rem;
}
.library-suit-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.library-suit-header::before,
.library-suit-header::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
}
.library-suit-header::before {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.58) 100%);
}
.library-suit-header::after {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.58) 0%, rgba(212, 175, 55, 0) 100%);
}
.library-suit-heading-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  padding: 0.25rem 0.65rem;
}
.library-suit-symbol {
  font-size: 1.05rem;
  color: var(--gold-bright);
  line-height: 1;
}
.library-suit-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ivory);
}
.library-suit-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.library-suit-count {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: rgba(21, 27, 46, 0.9);
  color: var(--gold-bright);
}

.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 1.1rem;
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .library-suit-section { margin-top: 2.1rem; }
  .library-suit-title { font-size: 1.15rem; }
  .draw-actions { width: 100%; flex-direction: column; }
  .draw-actions .btn { width: 100%; }
}
.card-tile {
  background: var(--bg-card); border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; text-align: left; padding: 0; color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card-tile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 24px rgba(0,0,0,0.5); }
.card-img-wrap { aspect-ratio: 2 / 3; width: 100%; background: #070910; overflow: hidden; position: relative; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.card-img-wrap img.reversed { transform: rotate(180deg); }
.card-meta { padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.25rem; }
.card-title { font-family: var(--serif); font-size: 0.98rem; font-weight: 600; color: var(--ivory); }
.card-sub { font-size: 0.76rem; color: var(--muted); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 7, 12, 0.84); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal-dialog {
  background: var(--bg-panel); border: 1px solid var(--gold);
  border-radius: var(--radius); max-width: 920px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 1.5rem; position: relative;
}
.modal-close {
  position: sticky; top: 0; float: right; z-index: 2;
  background: var(--bg-elevated); color: var(--ivory); border: 1px solid var(--gold-soft);
  border-radius: 999px; width: 36px; height: 36px; font-size: 1.2rem; cursor: pointer;
}
.modal-grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 720px) { .modal-grid { grid-template-columns: 1fr; } }
.modal-art { border-radius: 10px; overflow: hidden; border: 1px solid var(--gold-soft); background: #070910; }
.modal-art img.reversed { transform: rotate(180deg); }

/* Companion Reader */
.companion-layout { display: grid; grid-template-columns: 270px 1fr; gap: 1.75rem; align-items: start; }
@media (max-width: 900px) { .companion-layout { grid-template-columns: 1fr; } }
.companion-sidebar {
  position: sticky; top: 4.5rem; max-height: calc(100vh - 5.5rem); overflow-y: auto;
  background: var(--bg-panel); border: 1px solid var(--gold-soft); border-radius: var(--radius); padding: 1rem;
}
.companion-toc { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.35rem; }
.companion-toc a { font-size: 0.86rem; text-decoration: none; color: var(--muted); display: block; padding: 0.25rem 0.4rem; border-radius: 6px; }
.companion-toc a:hover, .companion-toc a:focus-visible { color: var(--gold-bright); background: var(--gold-faint); }
.companion-article { font-size: var(--reader-size, 1rem); }
.companion-chapter { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--gold-soft); scroll-margin-top: 5rem; }
.companion-card-entry {
  background: var(--bg-panel); border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; scroll-margin-top: 5rem;
}
.companion-card-head { display: flex; gap: 1.15rem; align-items: flex-start; margin-bottom: 0.75rem; }
.companion-card-thumb { width: 92px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--gold-soft); }
@media (max-width: 520px) { .companion-card-head { flex-direction: column; } .companion-card-thumb { width: 120px; } }
mark { background: rgba(212, 175, 55, 0.38); color: var(--ivory); padding: 0 2px; border-radius: 3px; }

/* Draw & Spreads */
.spread-picker-groups { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
.spread-picker-group { display: flex; flex-direction: column; gap: 0.4rem; }
.spread-picker-heading {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-bright);
}
.draw-controls-bar {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  justify-content: space-between; margin-top: 0.85rem; padding-top: 0.85rem;
  border-top: 1px solid var(--gold-faint);
}
.draw-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.drawn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: start;
}
.tarot-cloth-stage {
  background: radial-gradient(circle at 50% 45%, #3A4B75 0%, #2B395C 65%, #1E2842 100%);
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 48px rgba(11, 14, 23, 0.55), 0 14px 32px rgba(5, 7, 12, 0.45);
}
.tarot-cloth-stage:empty {
  display: none;
}
.tarot-cloth-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: url('../img/tarot-cloth-seal.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.tarot-cloth-stage > * {
  position: relative;
  z-index: 1;
}
.drawn-slot {
  background: #0D111C;
  border: 1px solid rgba(212, 175, 55, 0.58);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 22px rgba(5, 7, 12, 0.55);
}
.slot-card-btn {
  appearance: none; border: 1px solid var(--gold-soft); border-radius: 10px;
  padding: 0; background: #070910; overflow: hidden; cursor: pointer;
  aspect-ratio: 2 / 3; width: 100%; max-width: 240px; margin: 0 auto; position: relative;
}
.slot-card-btn img { width: 100%; height: 100%; object-fit: cover; }
.slot-card-btn img.reversed { transform: rotate(180deg); }

@media (min-width: 960px) {
  .drawn-grid.spread-layout-single-card {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .drawn-grid.spread-layout-two-card-polarity {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .drawn-grid.spread-layout-three-card-horizon,
  .drawn-grid.spread-layout-three-card-ppf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 3x3 Cross Grid:
     row 1: .  4  .
     row 2: 3  1  5
     row 3: .  2  . */
  .drawn-grid.spread-layout-five-card-crossroads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1020px;
    margin-left: auto;
    margin-right: auto;
  }
  .drawn-grid.spread-layout-five-card-crossroads .drawn-slot[data-slot="4"] { grid-column: 2; grid-row: 1; }
  .drawn-grid.spread-layout-five-card-crossroads .drawn-slot[data-slot="3"] { grid-column: 1; grid-row: 2; }
  .drawn-grid.spread-layout-five-card-crossroads .drawn-slot[data-slot="1"] { grid-column: 2; grid-row: 2; }
  .drawn-grid.spread-layout-five-card-crossroads .drawn-slot[data-slot="5"] { grid-column: 3; grid-row: 2; }
  .drawn-grid.spread-layout-five-card-crossroads .drawn-slot[data-slot="2"] { grid-column: 2; grid-row: 3; }

  /* Celtic Cross (10-Card Classic):
     Left cross formation (cols 1-4) + Right 4-row staff stacked bottom-to-top (col 5):
     row 1:  .   [5]   .   | [10]
     row 2: [4] [1][2] [6] | [9]
     row 3:  .   [3]   .   | [8]
     row 4:  .    .    .   | [7] */
  .drawn-grid.spread-layout-celtic-cross {
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(210px, 1.05fr);
    gap: 1rem;
  }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot { padding: 0.85rem; }
  .drawn-grid.spread-layout-celtic-cross .slot-card-btn { max-width: 175px; }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot[data-slot="5"] { grid-column: 2 / 4; grid-row: 1; max-width: 240px; width: 100%; justify-self: center; }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot[data-slot="4"] { grid-column: 1; grid-row: 2; }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot[data-slot="1"] { grid-column: 2; grid-row: 2; border-color: var(--gold); }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot[data-slot="2"] { grid-column: 3; grid-row: 2; border-color: var(--gold-bright); }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot[data-slot="6"] { grid-column: 4; grid-row: 2; }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot[data-slot="3"] { grid-column: 2 / 4; grid-row: 3; max-width: 240px; width: 100%; justify-self: center; }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot[data-slot="10"] { grid-column: 5; grid-row: 1; }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot[data-slot="9"] { grid-column: 5; grid-row: 2; }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot[data-slot="8"] { grid-column: 5; grid-row: 3; }
  .drawn-grid.spread-layout-celtic-cross .drawn-slot[data-slot="7"] { grid-column: 5; grid-row: 4; }

  /* Twelve-House Astrological Wheel (5x5 perimeter counter-clockwise):
     row 1:  .   [11]  [10]  [9]   .
     row 2: [12]   .     .    .   [8]
     row 3: [1]    .     .    .   [7]
     row 4: [2]    .     .    .   [6]
     row 5:  .    [3]   [4]  [5]   .  */
  .drawn-grid.spread-layout-twelve-house-wheel {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
  }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot { padding: 0.85rem; }
  .drawn-grid.spread-layout-twelve-house-wheel .slot-card-btn { max-width: 170px; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="11"] { grid-column: 2; grid-row: 1; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="10"] { grid-column: 3; grid-row: 1; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="9"]  { grid-column: 4; grid-row: 1; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="12"] { grid-column: 1; grid-row: 2; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="8"]  { grid-column: 5; grid-row: 2; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="1"]  { grid-column: 1; grid-row: 3; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="7"]  { grid-column: 5; grid-row: 3; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="2"]  { grid-column: 1; grid-row: 4; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="6"]  { grid-column: 5; grid-row: 4; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="3"]  { grid-column: 2; grid-row: 5; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="4"]  { grid-column: 3; grid-row: 5; }
  .drawn-grid.spread-layout-twelve-house-wheel .drawn-slot[data-slot="5"]  { grid-column: 4; grid-row: 5; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--gold-soft);
  background: rgba(11, 14, 23, 0.96);
  padding: 1.5rem 1.25rem; text-align: center;
  color: var(--muted); font-size: 0.84rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 0.45rem; }

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

/* Spread Badges & Draw Layouts */
.badge-supplemental { border-color: rgba(182, 191, 210, 0.55); color: var(--muted); }
.spread-positions-preview {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem; margin-top: 0.85rem;
}
.spread-pos-chip {
  background: rgba(11, 14, 23, 0.65); border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 8px; padding: 0.55rem 0.75rem; font-size: 0.82rem;
}
.spread-pos-chip strong { display: block; color: var(--ivory); margin-bottom: 0.15rem; }
.spread-pos-chip span { color: var(--muted); }

/* Journal & Socials */
.journal-empty {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--bg-panel); border: 1px solid var(--gold-soft); border-radius: var(--radius);
}
.journal-list { display: flex; flex-direction: column; gap: 1.25rem; }
.journal-entry-card {
  background: var(--bg-panel); border: 1px solid var(--gold-soft);
  border-radius: var(--radius); padding: 1.5rem;
}
.journal-meta { font-size: 0.82rem; color: var(--gold-bright); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.4rem; }
.social-card {
  background: var(--bg-panel); border: 1px solid var(--gold-soft);
  border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem;
}
.social-status-plain {
  display: inline-block; padding: 0.45rem 0.85rem; border-radius: 8px;
  background: rgba(11, 14, 23, 0.7); border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--ivory); font-weight: 600; font-size: 0.92rem; align-self: flex-start;
}

/* Planned Modules Navigation Strip */
.planned-modules-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.45rem; margin-top: 0.35rem; font-size: 0.78rem; color: var(--muted);
}
.planned-label { color: var(--gold-bright); font-weight: 600; }
.planned-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem; border-radius: 999px;
  border: 1px dashed rgba(212, 175, 55, 0.32);
  background: rgba(21, 27, 46, 0.65); color: var(--muted);
}
.planned-pill em { font-style: normal; color: var(--gold-bright); font-size: 0.72rem; }
