/* ===========================================================================
   Gods of The Multiverse
   ---------------------------------------------------------------------------
   PRIME: the pantheon's deep green under a purple crown, every aspect and
   alignment in the colours the page has always used. RELIC: a different
   world altogether, the Astral Sea at night, with its seven planes stacked
   inside it and each pantheon's gods living in the plane they uphold.
   =========================================================================== */

.wp-site-blocks:has(> .wam-page.wam-gm) { background: #062a17; }
.wam-page.wam-gm {
  --gm-panel: #121217;
  --gm-faint: rgba(255, 255, 255, 0.56);
  --gm-crown: #765dcb;
  --gm-serif: "Cinzel", Georgia, serif;
  position: relative;
  isolation: isolate;
  background: #062a17;
  padding-bottom: clamp(70px, 9vw, 110px);
  transition: background-color 0.7s var(--wam-ease);
}
.wam-page.wam-gm::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(118, 93, 203, 0.55), transparent 70%),
    radial-gradient(900px 700px at 100% 60%, rgba(0, 175, 169, 0.1), transparent 70%),
    radial-gradient(900px 700px at 0% 100%, rgba(252, 185, 0, 0.06), transparent 70%);
  transition: opacity 0.7s ease;
}
.wp-site-blocks:has(> .wam-gm[data-edition="relic"]),
.wam-page.wam-gm[data-edition="relic"] { background: #07070f; }
.wam-page.wam-gm[data-edition="relic"]::before { opacity: 0; }

.wam-gm .wp-block-group > *,
.wam-gm .wp-block-list > * { margin-block: 0; }
.wam-gm .wp-block-image { margin: 0; }
.wam-gm p { margin: 0; }
.wam-gm a { color: inherit; }

.wam-gm-hero,
.wam-gm-panels { width: min(100% - 48px, 1240px); margin-inline: auto; }

/* ------------------------------------------------------------------ hero -- */
.wam-gm-hero { display: grid; justify-items: center; gap: 8px; padding-block: clamp(44px, 6vw, 70px) 34px; text-align: center; }
.wam-gm .wam-gm-sigil { width: 96px; }
.wam-gm .wam-gm-sigil img { display: block; width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 18px rgba(167, 123, 234, 0.55)); animation: wam-gm-turn 60s linear infinite; }
@keyframes wam-gm-turn { to { transform: rotate(360deg); } }
.wam-gm .wam-gm-wams { color: #c9b8ff; font-style: italic; font-weight: 600; }
.wam-gm .wam-gm-title { margin: 0; color: var(--wam-white); font: 800 clamp(2.3rem, 5.4vw, 3.8rem)/1.05 var(--gm-serif); letter-spacing: 0.02em; text-shadow: 0 0 40px rgba(118, 93, 203, 0.55); }

.wam-gm-switch { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 540px); margin-top: 16px; padding: 6px; border-radius: 18px; background: rgba(18, 18, 23, 0.8); border: 1px solid var(--wam-line); }
.wam-gm-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 14px; border: 0; border-radius: 13px; background: none; cursor: pointer; color: rgba(255, 255, 255, 0.5); font: 600 0.95rem/1 var(--wam-font); letter-spacing: 0.04em; white-space: nowrap; transition: color 0.3s ease; }
.wam-gm-switch button b { font-weight: 800; letter-spacing: 0.12em; }
.wam-gm-switch button:hover { color: var(--wam-white); }
.wam-gm-switch .wam-tl-mark { width: 30px; height: 30px; flex: none; }
.wam-gm-switch .wam-tl-word { height: 21px; }
.wam-gm-switch [data-edition="prime"][aria-selected="true"] { color: #f6ecd4; }
.wam-gm-switch [data-edition="relic"][aria-selected="true"] { color: #ece9ff; }
.wam-gm-switch [data-edition="relic"][aria-selected="true"] .wam-tl-mark { filter: drop-shadow(0 0 6px rgba(125, 111, 224, 0.6)); }
.wam-gm-switch [aria-selected="false"] .wam-tl-mark { color: currentColor; opacity: 0.6; }
.wam-gm-thumb { position: absolute; z-index: -1; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 13px; background: linear-gradient(180deg, #3a3020, #2a2318); box-shadow: inset 0 0 0 1px rgba(231, 191, 98, 0.45), 0 6px 18px rgba(0, 0, 0, 0.35); transition: transform 0.55s var(--wam-spring), background 0.4s ease, box-shadow 0.4s ease; }
.wam-gm[data-edition="relic"] .wam-gm-thumb { transform: translateX(100%); background: linear-gradient(180deg, #262046, #17142c); box-shadow: inset 0 0 0 1px rgba(201, 196, 255, 0.5), 0 0 22px rgba(125, 111, 224, 0.3); }

.wam-gm-panel { display: grid; gap: 40px; }
.wam-gm-panel:not(.is-on), .wam-gm-panel[hidden] { display: none; }
.wam-gm.is-switched .wam-gm-panel.is-on { animation: wam-gm-in 0.6s var(--wam-ease) both; }
.wam-gm[data-dir="back"] .wam-gm-panel.is-on { animation-name: wam-gm-in-back; }
@keyframes wam-gm-in { from { opacity: 0; translate: 60px 0; filter: blur(6px); } }
@keyframes wam-gm-in-back { from { opacity: 0; translate: -60px 0; filter: blur(6px); } }

/* ================================================================ PRIME == */
/* A star chart in gold on deep green. The astrolabe sits beside the roster
   as RELIC's stack sits beside its planes: every god a star, the gods of
   Creation round the Compass at its heart. */

/* Aspect and alignment colours: the page's own legend. */
.wam-gm { --asp: #8a8a99; --glow: #8a8a99; }
.wam-gm .is-prime { --asp: #00afa9; --glow: #3fe0d8; }
.wam-gm .is-prophecy { --asp: #fcb900; --glow: #ffd45c; }
.wam-gm .is-elemental { --asp: #004f1e; --glow: #3fbf6f; }
.wam-gm .is-eidos { --asp: #0022bc; --glow: #6b86ff; }
.wam-gm .is-vitality { --asp: #d10039; --glow: #ff4f77; }
.wam-gm .is-hells { --asp: #aa0000; --glow: #ff5a4f; }
.wam-gm .is-triarchs { --asp: #c9873a; --glow: #ffbf6b; }
.wam-gm .is-forgotten { --asp: #160029; --glow: #9b6bd6; }

.wam-gm-prime { --gold: #e7bf62; --ivory: #f6ecd4; --ink: #070c09; position: relative; gap: 34px; }
/* The chart behind it all: fine gold rings and meridians, fading out. */
.wam-gm-prime::before {
  content: "";
  position: absolute;
  inset: -160px -50vw 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 24% 46%, rgba(231, 191, 98, 0.07) 0 1px, transparent 1px 86px),
    repeating-conic-gradient(from 0deg at 24% 46%, rgba(231, 191, 98, 0.05) 0 0.4deg, transparent 0.4deg 15deg);
  -webkit-mask: radial-gradient(ellipse 70% 60% at 30% 45%, #000 30%, transparent 75%);
          mask: radial-gradient(ellipse 70% 60% at 30% 45%, #000 30%, transparent 75%);
}

/* At a glance: engraved brass plaques. */
.wam-gm-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 820px; width: 100%; justify-self: center; }
.wam-gm-stat { position: relative; padding: 16px 10px 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(231, 191, 98, 0.14), rgba(7, 12, 9, 0.85) 70%); border: 1px solid rgba(231, 191, 98, 0.35); box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.18), 0 14px 30px rgba(0, 0, 0, 0.35); text-align: center; }
.wam-gm .wam-gm-stat-num { background: linear-gradient(180deg, #fff6dc, #e8bd5c 60%, #b8892c); -webkit-background-clip: text; background-clip: text; color: transparent; font: 800 2.2rem/1 var(--gm-serif); font-variant-numeric: tabular-nums; }
.wam-gm .wam-gm-stat-label { margin-top: 6px; color: rgba(246, 236, 212, 0.7); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }

/* How to read a god: a framed plate, the card pinned to the key. */
.wam-gm-guide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 32px 36px;
  border-radius: 24px;
  background: radial-gradient(600px 300px at 0% 0%, rgba(231, 191, 98, 0.12), transparent 70%), linear-gradient(160deg, #0f1712, var(--ink) 75%);
  border: 1px solid rgba(231, 191, 98, 0.3);
  box-shadow: inset 0 0 0 6px var(--ink), inset 0 0 0 7px rgba(231, 191, 98, 0.18);
}
.wam-gm-guide-text { display: grid; gap: 12px; }
.wam-gm-prime .wam-eyebrow { color: var(--gold); }
.wam-gm .wam-gm-guide-title { margin: 0; color: var(--ivory); font: 800 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--gm-serif); }
.wam-gm .wam-gm-key { counter-reset: key; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wam-gm .wam-gm-key li { counter-increment: key; position: relative; min-height: 24px; padding-left: 38px; color: var(--wam-faded); font-size: 0.95rem; line-height: 1.55; }
.wam-gm .wam-gm-key li::before { content: counter(key); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #fff6dc, #e8bd5c); color: #1a1200; font-size: 0.78rem; font-weight: 800; }
.wam-gm .wam-gm-key strong { color: var(--ivory); margin-right: 4px; }
.wam-gm .wam-gm-deadnote { display: flex; gap: 10px; align-items: center; color: var(--gm-faint); font-size: 0.9rem; }
.wam-gm .wam-gm-deadnote::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 1.5px #8a8a8a; }
.wam-gm-guide-card { padding-right: 34px; }
.wam-gm-guide .is-sample { overflow: visible; transform: rotate(-2.5deg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(231, 191, 98, 0.35); }
.wam-gm-guide .is-sample:hover { transform: rotate(0deg) translateY(-4px); }
.wam-gm-guide .is-sample :is(.wam-gm-domain, .wam-gm-aspects, .wam-gm-al, .wam-gm-origin) { position: relative; }
.wam-gm-guide .is-sample :is(.wam-gm-domain, .wam-gm-aspects, .wam-gm-al, .wam-gm-origin)::after {
  position: absolute; top: 50%; right: -32px; translate: 0 -50%;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, #fff6dc, #e8bd5c); color: #1a1200; font: 800 0.74rem/1 var(--wam-font);
  box-shadow: 0 0 0 4px rgba(231, 191, 98, 0.2);
  animation: wam-gm-pin 2.4s ease-in-out infinite;
}
.wam-gm-guide .is-sample .wam-gm-domain::after { content: "1"; }
.wam-gm-guide .is-sample .wam-gm-aspects::after { content: "2"; animation-delay: 0.3s; }
.wam-gm-guide .is-sample .wam-gm-al::after { content: "3"; animation-delay: 0.6s; }
.wam-gm-guide .is-sample .wam-gm-origin::after { content: "4"; animation-delay: 0.9s; }
@keyframes wam-gm-pin { 50% { box-shadow: 0 0 0 9px rgba(231, 191, 98, 0); } }

/* The astrolabe beside the roster. */
.wam-gm-atlas { display: grid; gap: 18px; }
.wam-gm-atlas.has-astro { grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); grid-template-areas: "astro tools" "astro roster"; column-gap: 30px; align-items: start; }
.wam-gm-astro { grid-area: astro; position: sticky; top: 92px; display: grid; gap: 14px; margin: 0; }
.wam-gm-atlas.has-astro .wam-gm-tools { grid-area: tools; }
.wam-gm-atlas.has-astro .wam-gm-roster { grid-area: roster; }
.wam-gm-astro-stage { position: relative; }
.wam-gm-astro-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); }
.wam-gm-astro-svg .astro-disc { stroke: rgba(231, 191, 98, 0.6); stroke-width: 2; }
.wam-gm-astro-svg .astro-bezel { transform-box: view-box; transform-origin: 50% 50%; animation: wam-gm-turn 240s linear infinite; }
.wam-gm-astro-svg .tick { stroke: rgba(231, 191, 98, 0.4); stroke-width: 1; }
.wam-gm-astro-svg .tick.is-long { stroke: var(--gold); stroke-width: 2; }
.wam-gm-astro-svg .astro-rim { fill: none; stroke: rgba(231, 191, 98, 0.3); stroke-width: 1; stroke-dasharray: 2 6; }
.wam-gm-astro-svg .astro-wedge { cursor: pointer; }
.wam-gm-astro-svg .astro-wedge-fill { fill: color-mix(in srgb, var(--glow) 8%, transparent); stroke: color-mix(in srgb, var(--glow) 30%, transparent); stroke-width: 1; transition: fill 0.35s ease, stroke 0.35s ease; }
.wam-gm-astro-svg .astro-wedge:hover .astro-wedge-fill,
.wam-gm-astro-svg .astro-wedge.is-current .astro-wedge-fill { fill: color-mix(in srgb, var(--glow) 17%, transparent); stroke: color-mix(in srgb, var(--glow) 60%, transparent); }
.wam-gm-astro-svg .astro-wedge.is-chosen .astro-wedge-fill { fill: color-mix(in srgb, var(--glow) 26%, transparent); stroke: var(--glow); }
.wam-gm-astro-svg .astro-wedge-name { fill: color-mix(in srgb, var(--glow) 65%, white); font: 700 12px var(--gm-serif); letter-spacing: 4px; pointer-events: none; }
.wam-gm-astro-svg .astro-ring { fill: none; stroke: rgba(231, 191, 98, 0.2); stroke-width: 1; stroke-dasharray: 3 5; }
.wam-gm-astro-svg .astro-ring.is-creation { stroke: rgba(63, 224, 216, 0.5); stroke-dasharray: none; }
.wam-gm-astro-svg .astro-ring.is-prophet { stroke: rgba(255, 212, 92, 0.5); stroke-dasharray: none; }
.wam-gm-astro-svg .astro-beam { transform-box: view-box; transform-origin: 50% 50%; animation: wam-gm-turn 18s linear infinite; pointer-events: none; }
.wam-gm-astro-svg .astro-thread { fill: none; stroke: rgba(255, 215, 107, 0.3); stroke-width: 1.2; stroke-dasharray: 3 4; transition: stroke 0.25s ease, stroke-width 0.25s ease; }
.wam-gm-astro-svg .astro-thread.is-hot { stroke: #ffd76b; stroke-width: 2.2; stroke-dasharray: none; filter: drop-shadow(0 0 4px rgba(255, 215, 107, 0.8)); }
.wam-gm-astro-svg .astro-heart { color: var(--gold); overflow: visible; filter: drop-shadow(0 0 12px rgba(231, 191, 98, 0.55)); }
.wam-gm-astro-svg .astro-heart .tl-needle { animation: tl-listen 9s ease-in-out infinite; }
.wam-gm-astro-svg .astro-heart .tl-dash { animation: tl-spin 80s linear infinite; }
.wam-gm-astro-svg .astro-star { cursor: pointer; outline: none; transition: opacity 0.3s ease; }
.wam-gm-astro-svg .astro-star-in { transform-box: fill-box; transform-origin: center; animation: wam-gm-star-in 0.7s var(--wam-spring) both; animation-delay: calc(var(--i) * 16ms + 0.2s); }
@keyframes wam-gm-star-in { from { transform: scale(0); opacity: 0; } }
.wam-gm-astro-svg .astro-halo { fill: var(--glow); opacity: 0.16; transition: opacity 0.25s ease; }
.wam-gm-astro-svg .astro-core { fill: var(--glow); stroke: rgba(255, 255, 255, 0.75); stroke-width: 1; transition: stroke-width 0.2s ease; }
.wam-gm-astro-svg .astro-star:hover .astro-halo,
.wam-gm-astro-svg .astro-star:focus .astro-halo,
.wam-gm-astro-svg .astro-star.is-hot .astro-halo { opacity: 0.55; }
.wam-gm-astro-svg .astro-star.is-hot .astro-core,
.wam-gm-astro-svg .astro-star:focus .astro-core { stroke: #fff; stroke-width: 2.4; }
.wam-gm-astro-svg .astro-star.is-dead .astro-core { fill: #000; stroke: #8a8a8a; stroke-width: 1.5; }
.wam-gm-astro-svg .astro-star.is-dead .astro-halo { fill: #000; opacity: 0.6; }
.wam-gm-astro-svg .astro-star.is-dim { opacity: 0.14; pointer-events: none; }
.wam-gm-astro-svg .astro-label { fill: var(--ivory); font: 600 11.5px var(--gm-serif); letter-spacing: 0.4px; paint-order: stroke; stroke: var(--ink); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }

.wam-gm-astro-tip {
  --tx: 16px; --ty: -50%;
  position: absolute;
  z-index: 3;
  translate: var(--tx) var(--ty);
  width: max-content;
  max-width: 250px;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(7, 12, 9, 0.95);
  border: 1px solid color-mix(in srgb, var(--glow) 60%, transparent);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55), 0 0 20px color-mix(in srgb, var(--glow) 25%, transparent);
  pointer-events: none;
  animation: wam-gm-tip 0.18s var(--wam-ease) both;
}
.wam-gm-astro-tip.is-left { --tx: calc(-100% - 16px); }
.wam-gm-astro-tip.is-dead { border-color: #555; }
@keyframes wam-gm-tip { from { opacity: 0; scale: 0.94; } }
.wam-gm .wam-gm-astro-tip-name { color: var(--ivory); font: 700 1rem/1.2 var(--gm-serif); }
.wam-gm .wam-gm-astro-tip-domain { color: #fff; font-weight: 700; font-size: 0.9rem; }
.wam-gm .wam-gm-astro-tip-meta { margin-top: 2px; color: var(--gm-faint); font-size: 0.74rem; }

.wam-gm-astro-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; color: rgba(246, 236, 212, 0.75); font-size: 0.76rem; font-weight: 600; }
.wam-gm-astro-key { display: inline-flex; align-items: center; gap: 6px; }
.wam-gm-astro-key i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed rgba(231, 191, 98, 0.6); }
.wam-gm-astro-key.is-creation i { border: 1.5px solid #3fe0d8; }
.wam-gm-astro-key.is-prophet i { border: 1.5px solid #ffd45c; }
.wam-gm-astro-key.is-dead i { border: 1.5px solid #8a8a8a; background: #000; }
.wam-gm-astro-hint { flex-basis: 100%; text-align: center; color: var(--gm-faint); font-weight: 500; font-style: italic; }

/* The tools: sticky above the roster while it scrolls. */
.wam-gm-tools { position: sticky; top: 82px; z-index: 20; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 18px; background: rgba(7, 12, 9, 0.88); backdrop-filter: blur(10px); border: 1px solid rgba(231, 191, 98, 0.25); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); }
.wam-gm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wam-gm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--glow) 45%, transparent); color: var(--wam-faded); font: 600 0.82rem/1.2 var(--wam-font); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--wam-spring); }
.wam-gm-chip:hover { transform: translateY(-1px); color: var(--wam-white); }
.wam-gm-chip[aria-pressed="true"] { background: var(--asp); color: #fff; box-shadow: 0 0 18px color-mix(in srgb, var(--glow) 55%, transparent); }
.wam-gm-chip[data-aspect="all"] { box-shadow: inset 0 0 0 1px rgba(231, 191, 98, 0.45); }
.wam-gm-chip[data-aspect="all"][aria-pressed="true"] { background: linear-gradient(180deg, #fff6dc, #e8bd5c); color: #1a1200; box-shadow: none; }
.wam-gm-chip.is-prophecy[aria-pressed="true"] { color: #1a1200; }
.wam-gm-chip.is-triarchs[aria-pressed="true"] { background: linear-gradient(135deg, #dec44f, #c21919); }
.wam-gm-chip-n { opacity: 0.7; font-size: 0.74rem; }
.wam-gm-tools-side { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.wam-gm .wam-gm-tools input.wam-gm-search { -webkit-appearance: none; appearance: none; margin: 0; box-shadow: none; padding: 9px 13px; border-radius: 12px; border: 1px solid rgba(231, 191, 98, 0.2); background: rgba(0, 0, 0, 0.35); color: var(--wam-white); font: inherit; font-size: 0.9rem; }
.wam-gm .wam-gm-tools input.wam-gm-search:focus { outline: 2px solid rgba(231, 191, 98, 0.6); outline-offset: 1px; background: rgba(0, 0, 0, 0.5); }
.wam-gm-search { width: 100%; padding: 9px 13px; border-radius: 12px; border: 1px solid rgba(231, 191, 98, 0.2); background: rgba(0, 0, 0, 0.35); color: var(--wam-white); font: inherit; font-size: 0.9rem; }
.wam-gm-search::placeholder { color: var(--gm-faint); }
.wam-gm-deadtoggle { display: flex; align-items: center; gap: 6px; color: var(--wam-faded); font-size: 0.84rem; cursor: pointer; white-space: nowrap; }
.wam-gm-deadtoggle input { accent-color: var(--gold); }
.wam-gm-status { color: var(--gm-faint); font-size: 0.8rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wam-gm-empty { padding: 30px; border-radius: 18px; background: rgba(7, 12, 9, 0.7); color: var(--gm-faint); text-align: center; }

/* The roster, aspect by aspect. */
.wam-gm-roster { display: grid; gap: 40px; }
.wam-gm-aspect { display: grid; gap: 16px; scroll-margin-top: 200px; }
.wam-gm-aspect[hidden] { display: none; }
.wam-gm-aspect-head { position: relative; display: grid; gap: 2px; padding: 0 0 12px 20px; }
.wam-gm-aspect-head::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 16px; width: 5px; border-radius: 3px; background: linear-gradient(180deg, var(--glow), var(--asp)); box-shadow: 0 0 18px var(--glow); }
.wam-gm-aspect-head::after { content: ""; position: absolute; left: 20px; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--glow) 60%, transparent), rgba(231, 191, 98, 0.15) 40%, transparent); }
.wam-gm .wam-gm-aspect-head .wam-eyebrow { color: color-mix(in srgb, var(--glow) 70%, white); }
.wam-gm .wam-gm-aspect-name { margin: 0; color: var(--ivory); font: 800 clamp(1.8rem, 3.4vw, 2.5rem)/1.05 var(--gm-serif); letter-spacing: 0.03em; }
.wam-gm .wam-gm-count { color: var(--gm-faint); font-size: 0.85rem; }
.wam-gm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }

/* A god: a plate with its aspect along the edge. */
.wam-gm-god {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 16px 16px 20px;
  border-radius: 16px;
  background: linear-gradient(165deg, #141c16, #0a0f0c 70%);
  border: 1px solid rgba(231, 191, 98, 0.16);
  overflow: hidden;
  scroll-margin-top: 220px;
  transition: transform 0.35s var(--wam-spring), box-shadow 0.35s ease, border-color 0.35s ease;
}
.wam-gm-god[hidden] { display: none; }
.wam-gm-god::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--glow), var(--asp)); }
.wam-gm-god::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--glow) 16%, transparent), transparent 70%); transition: opacity 0.35s ease; opacity: 0.8; }
.wam-gm-god:hover, .wam-gm-god.is-hot { transform: translateY(-4px); border-color: color-mix(in srgb, var(--glow) 55%, rgba(231, 191, 98, 0.4)); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--glow) 30%, transparent); }
.wam-gm-god-head { display: flex; align-items: baseline; gap: 8px; }
.wam-gm .wam-gm-name { margin: 0; color: var(--ivory); font: 700 1.16rem/1.2 var(--gm-serif); letter-spacing: 0.01em; }
.wam-gm .wam-gm-sign { color: var(--gm-faint); font-family: var(--wam-font); font-size: 0.95rem; }
.wam-gm .wam-gm-domain { color: #fff; font-size: 1.04rem; font-weight: 700; line-height: 1.3; }
.wam-gm-aspects { display: flex; flex-wrap: wrap; gap: 5px; }
.wam-gm .wam-gm-asp { padding: 2px 10px; border-radius: 999px; background: var(--asp); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--glow) 60%, transparent); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; }
.wam-gm .wam-gm-asp.is-prophecy { color: #1a1200; }
.wam-gm .wam-gm-asp.is-triarchs { background: linear-gradient(135deg, #dec44f, #c21919); }
.wam-gm .wam-gm-line { position: relative; padding-left: 78px; color: var(--wam-faded); font-size: 0.83rem; line-height: 1.45; }
.wam-gm .wam-gm-line strong { position: absolute; left: 0; top: 0.2em; width: 72px; color: rgba(231, 191, 98, 0.65); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; line-height: 1.6; text-transform: uppercase; }
.wam-gm .wam-gm-line a { color: #ffd76b; text-decoration: none; border-bottom: 1px dotted rgba(255, 215, 107, 0.6); }
.wam-gm .wam-gm-line a:hover { color: #fff; }
.wam-gm .wam-gm-al span { display: inline-block; padding: 1px 9px; border-radius: 6px; background: var(--al, #444); color: #fff; font-weight: 600; }
.wam-gm .wam-gm-symbol { color: var(--ivory); font-style: italic; }
.wam-gm .al-lawful-good { --al: #3fa540; } .wam-gm .al-neutral-good { --al: #00a86b; } .wam-gm .al-chaotic-good { --al: #3e9e00; }
.wam-gm .al-lawful-neutral { --al: #7d7f00; } .wam-gm .al-neutral { --al: #505050; } .wam-gm .al-chaotic-neutral { --al: #bf4900; }
.wam-gm .al-lawful-evil { --al: #7a0000; } .wam-gm .al-neutral-evil { --al: #832f2f; } .wam-gm .al-choatic-evil { --al: #d40000; }
.wam-gm .al-chaotic-evil { --al: #c4163f; } .wam-gm .al-au { --al: #c0287b; } .wam-gm .al-choatic { --al: #000; }
.wam-gm .wam-gm-dead-tag { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px #555; color: #bbb; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.wam-gm-god.is-dead { background: linear-gradient(165deg, #0a0a0a, #030303); border-color: #1b1b1b; filter: grayscale(0.75); }
.wam-gm-god.is-dead::before { background: repeating-linear-gradient(180deg, #000 0 6px, #333 6px 12px); }
.wam-gm-god.is-dead::after { display: none; }
.wam-gm-god.is-dead:hover, .wam-gm-god.is-dead.is-hot { filter: grayscale(0.2); }
.wam-gm-god.is-flash { animation: wam-gm-flash 1.3s ease; }
@keyframes wam-gm-flash { 25% { box-shadow: 0 0 0 3px #ffd76b, 0 0 44px rgba(255, 215, 107, 0.55); } }

/* ================================================================ RELIC == */
/* Nothing like PRIME: the Astral Sea at night, the planes stacked inside it. */

.wam-gm-relic { --pc: #c9c4ff; position: relative; gap: 56px; }
.wam-gm-relic::before {
  content: "";
  position: absolute;
  inset: -200px -50vw 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, #fff, transparent), radial-gradient(1px 1px at 22% 38%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 37% 7%, #fff, transparent), radial-gradient(1px 1px at 52% 26%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 66% 15%, #fff, transparent), radial-gradient(1px 1px at 81% 33%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 92% 9%, #fff, transparent), radial-gradient(1px 1px at 14% 64%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 46% 58%, #fff, transparent), radial-gradient(1px 1px at 73% 71%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 88% 86%, #fff, transparent), radial-gradient(1px 1px at 29% 91%, #fff, transparent),
    radial-gradient(900px 600px at 20% 10%, rgba(125, 111, 224, 0.22), transparent 70%),
    radial-gradient(900px 700px at 85% 55%, rgba(95, 155, 224, 0.12), transparent 70%),
    radial-gradient(900px 700px at 30% 95%, rgba(165, 133, 214, 0.14), transparent 70%);
  background-size: 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, auto, auto, auto;
  animation: wam-gm-twinkle 7s ease-in-out infinite alternate;
}
@keyframes wam-gm-twinkle { to { opacity: 0.7; } }
.wam-gm-relic .wam-eyebrow { color: #c9c4ff; }

.wam-gm-morph { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; max-width: 980px; width: 100%; justify-self: center; }
.wam-gm-morph-art { display: grid; place-items: center; filter: drop-shadow(0 0 40px rgba(214, 168, 0, 0.25)); }
.wam-gm-morph-art .wam-tl-great { --size: 260px; }
.wam-gm-morph-text { display: grid; gap: 10px; color: var(--wam-faded); }
.wam-gm .wam-gm-morph-name { margin: 0; color: #ffe9a6; font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--gm-serif); letter-spacing: 0.04em; text-shadow: 0 0 34px rgba(214, 168, 0, 0.45); }
.wam-gm .wam-gm-morph-intro { color: #d9d4ff; font-weight: 600; }

.wam-gm-sea { display: grid; gap: 28px; }
.wam-gm-sea-head { display: grid; justify-items: center; gap: 4px; text-align: center; }
.wam-gm .wam-gm-sea-name { margin: 0; color: #ece9ff; font: 800 clamp(2rem, 4.4vw, 3rem)/1.05 var(--gm-serif); letter-spacing: 0.14em; }
.wam-gm .wam-gm-sea-sub { color: var(--gm-faint); font-style: italic; }
.wam-gm-sea.has-stack { grid-template-columns: 330px minmax(0, 1fr); align-items: start; }
.wam-gm-sea.has-stack > .wam-gm-sea-head { grid-column: 1 / -1; }

/* Plane colours: each pantheon's own, and the three between. */
.wam-gm .is-principia-mundi { --pc: #a9cf5f; }
.wam-gm .is-concordia-mortalium { --pc: #5f9be0; }
.wam-gm .is-ordo-mutationis { --pc: #e0605a; }
.wam-gm .is-pondus-animae { --pc: #a585d6; }
.wam-gm .is-material { --pc: #e8c37a; }
.wam-gm .is-spirit { --pc: #9ec9ff; }
.wam-gm .is-ethereal { --pc: #dfe6ff; }

/* The stack: discs down an axis, realms orbiting each one. */
.wam-gm-stack { position: sticky; top: 96px; display: grid; gap: 4px; padding: 18px 10px 18px 6px; border-radius: 24px; background: radial-gradient(circle at 30% 30%, rgba(125, 111, 224, 0.16), rgba(10, 10, 22, 0.75) 70%); border: 1px solid rgba(201, 196, 255, 0.18); }
.wam-gm-axis { position: absolute; left: 76px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(#ffd76b, rgba(201, 196, 255, 0.5) 30%, rgba(201, 196, 255, 0.15)); }
.wam-gm-disc { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: 4px; height: 82px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; perspective: 520px; }
.wam-gm-plate {
  position: relative;
  justify-self: center;
  display: block;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  transform: rotateX(72deg) scale(0.92);
  background: radial-gradient(circle, color-mix(in srgb, var(--pc) 70%, white) 0%, var(--pc) 22%, color-mix(in srgb, var(--pc) 35%, transparent) 55%, transparent 71%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pc) 70%, transparent), 0 0 36px color-mix(in srgb, var(--pc) 55%, transparent);
  opacity: 0.55;
  transition: transform 0.5s var(--wam-spring), opacity 0.4s ease, box-shadow 0.4s ease;
  animation: wam-gm-float 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.8s);
}
@keyframes wam-gm-float { 50% { translate: 0 -4px; } }
.wam-gm-orbit { position: absolute; inset: 0; animation: wam-gm-orbit 36s linear infinite; }
.wam-gm-disc:nth-child(odd) .wam-gm-orbit { animation-direction: reverse; animation-duration: 44s; }
@keyframes wam-gm-orbit { to { transform: rotate(360deg); } }
.wam-gm-mote { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px var(--pc), 0 0 2px #fff; transform: rotate(var(--a)) translateX(54px); animation: wam-gm-mote 3s ease-in-out infinite; animation-delay: var(--d); }
@keyframes wam-gm-mote { 50% { opacity: 0.35; } }
.wam-gm-disc.is-material .wam-gm-plate { background: radial-gradient(circle, #fff3d1 0%, #e8c37a 30%, #8a6a2c 62%, transparent 71%); }
.wam-gm-disc.is-spirit .wam-gm-plate { background: radial-gradient(circle, rgba(220, 235, 255, 0.85), rgba(158, 201, 255, 0.35) 45%, transparent 71%); filter: blur(0.6px); }
.wam-gm-disc.is-ethereal .wam-gm-plate { background: none; box-shadow: none; outline: 2px dashed rgba(223, 230, 255, 0.7); outline-offset: -10px; }
.wam-gm-disc-label { display: grid; gap: 1px; padding-right: 4px; opacity: 0.6; transition: opacity 0.3s ease, transform 0.3s var(--wam-spring); }
.wam-gm-disc-label b { color: color-mix(in srgb, var(--pc) 55%, white); font: 700 0.82rem/1.2 var(--gm-serif); letter-spacing: 0.08em; }
.wam-gm-disc-label small { color: var(--gm-faint); font-size: 0.7rem; line-height: 1.25; }
.wam-gm-disc:hover .wam-gm-plate, .wam-gm-disc.is-hover .wam-gm-plate { opacity: 0.85; }
.wam-gm-disc.is-active .wam-gm-plate { opacity: 1; transform: rotateX(68deg) scale(1.12); box-shadow: 0 0 0 2px var(--pc), 0 0 60px color-mix(in srgb, var(--pc) 75%, transparent); }
.wam-gm-disc.is-active .wam-gm-disc-label, .wam-gm-disc:hover .wam-gm-disc-label { opacity: 1; transform: translateX(4px); }
.wam-gm-disc:focus-visible { outline: 2px solid var(--pc); outline-offset: 2px; border-radius: 14px; }

/* The planes */
.wam-gm-planes { display: grid; gap: 22px; }
.wam-gm-plane {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 28px 30px;
  border-radius: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 15%, #0c0c18), #0c0c18 60%);
  border: 1px solid color-mix(in srgb, var(--pc) 32%, transparent);
  color: var(--wam-faded);
  scroll-margin-top: 110px;
  overflow: hidden;
}
.wam-gm-plane::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 30%, transparent), transparent 70%); pointer-events: none; }
.wam-gm .wam-gm-plane-label { color: var(--pc); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.wam-gm .wam-gm-plane-name { margin: 0; color: #fff; font: 800 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--gm-serif); letter-spacing: 0.1em; }
.wam-gm .wam-gm-plane-sub { color: color-mix(in srgb, var(--pc) 45%, white); font-style: italic; font-weight: 600; }
.wam-gm .wam-gm-eyeline { color: var(--gm-faint); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.wam-gm .wam-gm-eyeline span { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 22%, transparent); color: #fff; letter-spacing: 0; }
.wam-gm .wam-gm-realms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.wam-gm .wam-gm-realms li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 30%, transparent); color: #fff; font-size: 0.84rem; font-weight: 600; transition: transform 0.2s var(--wam-spring), background-color 0.2s ease; }
.wam-gm .wam-gm-realms li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 8px var(--pc); }
.wam-gm .wam-gm-realms li:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--pc) 16%, transparent); }
.wam-gm .wam-gm-plane-note { color: var(--gm-faint); font-style: italic; }
.wam-gm .wam-gm-plane-lore { max-width: 62ch; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--pc) 60%, transparent); color: #ece9ff; font: italic 500 1.05rem/1.55 var(--gm-serif); letter-spacing: 0.01em; }
.wam-gm-support { display: grid; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--pc) 25%, transparent); }
.wam-gm .wam-gm-support-name strong { color: var(--pc); font: 700 1.2rem var(--gm-serif); margin-right: 8px; }
.wam-gm .wam-gm-support-name em { color: var(--gm-faint); }
.wam-gm-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wam-gm-rgod { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 18px; background: rgba(8, 8, 18, 0.75); border: 1px solid color-mix(in srgb, var(--pc) 28%, transparent); transition: transform 0.35s var(--wam-spring), box-shadow 0.35s ease; scroll-margin-top: 110px; }
.wam-gm-rgod::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--pc), transparent); }
.wam-gm-rgod:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--pc), 0 22px 44px color-mix(in srgb, var(--pc) 22%, rgba(0, 0, 0, 0.6)); }
.wam-gm .wam-gm-rgod-name { margin: 0; color: color-mix(in srgb, var(--pc) 40%, white); font: 800 1.3rem/1.15 var(--gm-serif); letter-spacing: 0.04em; }
.wam-gm .wam-gm-rgod-title { color: #fff; font-weight: 700; }
.wam-gm .wam-gm-subs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.wam-gm .wam-gm-subs li { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 13%, transparent); color: var(--wam-faded); font-size: 0.72rem; font-weight: 600; }

/* The three between are quieter: no pantheon holds them. */
.wam-gm-plane.is-material, .wam-gm-plane.is-spirit, .wam-gm-plane.is-ethereal { padding: 22px 30px; text-align: center; justify-items: center; }
.wam-gm-plane.is-material .wam-gm-realms, .wam-gm-plane.is-spirit .wam-gm-realms { justify-content: center; }
.wam-gm-plane.is-spirit { background: linear-gradient(135deg, rgba(158, 201, 255, 0.12), rgba(12, 12, 24, 0.7)); backdrop-filter: blur(6px); }
.wam-gm-plane.is-ethereal { background: transparent; border: 2px dashed rgba(223, 230, 255, 0.35); }
.wam-gm-plane.is-ethereal::after, .wam-gm-plane.is-spirit::after { display: none; }

/* ---------------------------------------------------------------- phones -- */
@media (max-width: 1000px) {
  .wam-gm-sea.has-stack { grid-template-columns: minmax(0, 1fr); }
  .wam-gm-stack { position: relative; top: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 14px; }
  .wam-gm-axis { display: none; }
  .wam-gm-disc { grid-template-columns: 1fr; justify-items: center; height: auto; gap: 0; text-align: center; }
  .wam-gm-plate { width: 90px; height: 90px; }
  .wam-gm-mote { transform: rotate(var(--a)) translateX(41px); }
  .wam-gm-disc-label { opacity: 0.85; }
  .wam-gm-guide { grid-template-columns: minmax(0, 1fr); }
  .wam-gm-guide-card { max-width: 360px; justify-self: center; }
  .wam-gm-morph { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .wam-gm-tools { position: static; }
  .wam-gm-atlas.has-astro { grid-template-columns: minmax(0, 1fr); grid-template-areas: "astro" "tools" "roster"; }
  .wam-gm-astro { position: relative; top: 0; width: 100%; max-width: 520px; justify-self: center; }
  .wam-gm-tools-side { grid-template-columns: minmax(0, 1fr) auto; }
  .wam-gm-status { display: none; }
  .wam-gm-trio { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wam-gm-hero, .wam-gm-panels { width: calc(100% - 32px); }
  .wam-gm-switch button { padding: 11px 8px; gap: 7px; font-size: 0.82rem; }
  .wam-gm-switch .wam-tl-mark { width: 24px; height: 24px; }
  .wam-gm-switch .wam-tl-word { height: 16px; }
  .wam-gm-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wam-gm-guide { padding: 20px 16px; }
  .wam-gm-plane { padding: 22px 18px; }
  .wam-gm-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .wam-gm *, .wam-gm *::before, .wam-gm *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
