/* XIL – Das Brettspiel
   Farben angelehnt an MB-Studio (Kohlegrau, Messing, Ordensgrün),
   Magenta ist ausschließlich dem Xil vorbehalten. */

:root {
  --nacht: #1f1e21;
  --nacht-tief: #171619;
  --basalt: #2a292c;
  --asche: #454249;
  --messing: #c9a45c;
  --messing-hell: #e0c286;
  --orden: #2f6b55;
  --orden-hell: #6fae93;
  --xil: #c23de0;
  --xil-hell: #e08bf2;
  --pergament: #ece6da;
  --nebel: #a9a3ad;
  --petrol: #689aa0;

  --font-display: "Grenze Gotisch", "Times New Roman", serif;
  --font-text: "Alegreya", Georgia, serif;

  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 11vw, 140px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--pergament);
  font-family: var(--font-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--messing-hell); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol); }

:focus-visible {
  outline: 2px solid var(--messing-hell);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  color: var(--pergament);
}
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h4 { font-size: 1.45rem; }

p { margin: 0 0 1em; max-width: var(--measure); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--messing); color: var(--nacht); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: .7em 1.4em;
  font-family: var(--font-text); font-size: 1.05rem; font-weight: 700;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid var(--messing);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--messing); color: var(--nacht); }
.btn-primary:hover { background: var(--messing-hell); border-color: var(--messing-hell); color: var(--nacht); }
.btn-ghost { background: transparent; color: var(--pergament); border-color: rgba(201, 164, 92, .55); }
.btn-ghost:hover { border-color: var(--messing-hell); color: var(--messing-hell); background: rgba(201, 164, 92, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31, 30, 33, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 164, 92, .18);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 74px; height: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a {
  color: var(--pergament); text-decoration: none; font-size: 1.02rem;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--messing-hell); }
.nav a[aria-current="page"] { color: var(--messing-hell); border-bottom-color: var(--messing); }
.nav .btn { min-height: 42px; padding: .5em 1.1em; font-size: .98rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--asche); color: var(--pergament);
  width: 46px; height: 46px; border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nacht-tief); border-bottom: 1px solid var(--asche);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(69, 66, 73, .6); font-size: 1.15rem; }
  .nav .btn { margin-top: 18px; justify-content: center; }
}

/* ---------- Hero mit Xil-Strahl ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 900px);
  display: grid; align-items: end;
  padding: 0 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #2b1f33 0%, var(--nacht) 62%);
}
.hero-art {
  position: absolute; inset: 0; z-index: -2; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 30%, #000 40%, transparent 98%);
          mask-image: radial-gradient(ellipse 60% 80% at 50% 30%, #000 40%, transparent 98%);
}
/* Das Cover liegt dreifach übereinander: eine ruhende Basis und je eine Hälfte für
   Chaos (links) und Ordnung (rechts), die sich langsam und gegenläufig bewegen. */
.hero-art img {
  position: absolute; top: 0; left: 50%;
  width: 100%; min-width: 0; max-width: none; height: 100%;
  margin-left: min(-50%, -450px);
  object-fit: contain; object-position: 50% 0;
  filter: saturate(1.05);
}
.hero-art .art-left {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 49%);
          mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 49%);
  transform-origin: 15% 45%;
}
.hero-art .art-right {
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 40%, transparent 51%);
          mask-image: linear-gradient(270deg, #000 0%, #000 40%, transparent 51%);
  transform-origin: 85% 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(31,30,33,.15) 0%, rgba(31,30,33,.2) 45%, rgba(31,30,33,.92) 82%, var(--nacht) 100%);
}

/* Xil-Strahl: mehrere Ebenen, die zusammen die Zündung ergeben.
   --beam-base ist die Höhe der Quelle über dem unteren Rand des Hero. */
.hero { --beam-base: 30%; }
.xil-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.xil-fx > * { position: absolute; }

.xil-beam, .xil-core, .xil-flow { left: 50%; top: 0; bottom: var(--beam-base); transform-origin: 50% 100%; }
.xil-beam {
  width: 16px; margin-left: -8px;
  background: linear-gradient(180deg, transparent 0%, rgba(224,139,242,.55) 18%, rgba(214,92,240,.9) 70%, var(--xil) 100%);
  filter: blur(5px);
  box-shadow: 0 0 40px 14px rgba(194,61,224,.5), 0 0 150px 50px rgba(194,61,224,.28);
}
.xil-core {
  width: 3px; margin-left: -1.5px; border-radius: 2px;
  background: linear-gradient(180deg, transparent 0%, #fff 16%, #fff 75%, #fbe0ff 100%);
  box-shadow: 0 0 6px 1px #fff, 0 0 14px 3px rgba(240,180,255,.9);
}
.xil-flow {
  width: 12px; margin-left: -6px; opacity: .55; mix-blend-mode: screen;
  background: repeating-linear-gradient(0deg, transparent 0 26px, rgba(255,255,255,.9) 26px 29px, transparent 29px 70px);
  -webkit-mask-image: linear-gradient(180deg, transparent 5%, #000 30%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 5%, #000 30%, #000 100%);
}
.xil-source {
  left: 50%; bottom: var(--beam-base);
  width: 26px; height: 26px; margin: 0 0 -13px -13px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, var(--xil-hell) 42%, rgba(194,61,224,0) 72%);
  box-shadow: 0 0 34px 12px rgba(194,61,224,.6);
}
.xil-pool {
  left: 50%; bottom: var(--beam-base);
  width: min(620px, 90vw); height: 110px; margin: 0 0 -55px calc(min(620px, 90vw) / -2);
  background: radial-gradient(ellipse at center, rgba(224,139,242,.55) 0%, rgba(194,61,224,.28) 35%, transparent 70%);
  mix-blend-mode: screen;
}
.xil-shock {
  left: 50%; bottom: var(--beam-base);
  width: 180px; height: 46px; margin: 0 0 -23px -90px; border-radius: 50%;
  border: 2px solid rgba(246,210,255,.95);
  box-shadow: 0 0 24px rgba(194,61,224,.9), inset 0 0 18px rgba(194,61,224,.7);
  opacity: 0;
}
.xil-flash {
  inset: 0; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse 80% 70% at 50% calc(100% - var(--beam-base)), #fff 0%, rgba(255,250,255,.98) 7%, rgba(255,244,255,.95) 0%, rgba(224,139,242,.6) 22%, rgba(194,61,224,.25) 48%, transparent 75%);
}
/* Spitzenlichter der Entladung */
.xil-burst {
  left: 50%; bottom: var(--beam-base);
  width: 120px; height: 120px; margin: 0 0 -60px -60px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, rgba(255,250,255,.9) 42%, rgba(240,190,255,.5) 58%, transparent 72%);
  mix-blend-mode: screen; opacity: 0;
}
.xil-glare {
  left: -10%; right: -10%; bottom: var(--beam-base);
  height: 10px; margin-bottom: -5px; border-radius: 50%;
  background: linear-gradient(90deg, transparent 0%, rgba(240,190,255,.5) 20%, #fff 50%, rgba(240,190,255,.5) 80%, transparent 100%);
  box-shadow: 0 0 18px 4px rgba(255,255,255,.7), 0 0 60px 14px rgba(224,139,242,.55);
  mix-blend-mode: screen; opacity: 0;
}
.xil-glare-v {
  left: 50%; top: 0; bottom: 0; width: 8px; margin-left: -4px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.7) 40%, #fff calc(100% - var(--beam-base)), rgba(255,255,255,.6) 80%, transparent 100%);
  filter: blur(2px); mix-blend-mode: screen; opacity: 0;
}
.xil-sparks { inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 1; }

.hero-content { text-align: center; display: grid; justify-items: center; }
/* Das "I" sitzt im Logo-Bild bei x = 489,5 von 920 px, also 3,2 % rechts der Bildmitte.
   Die Verschiebung legt es exakt auf den Strahl (translate ist unabhängig von transform). */
.hero-logo { width: clamp(220px, 34vw, 420px); margin-bottom: 18px; translate: -3.2% 0; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.hero-tagline {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.45rem, 3.4vw, 2.6rem); line-height: 1.2;
  margin: 0 auto 14px; max-width: none;
}
.hero-tagline span { display: block; white-space: nowrap; }
.hero-sub { color: var(--nebel); font-size: 1.15rem; margin: 0 auto 30px; max-width: 46ch; }
.hero .btn-row { justify-content: center; }

/* Zündung, einmalig beim Laden:
   0,15–1,1 s Quelle lädt auf · 1,1 s Strahl bricht aus · 1,3 s Entladung (Blitz, Schockwelle, Beben)
   1,45 s Logo schlägt ein · ab 2,4 s ruhiges Nachglühen */
.js .hero .xil-source { animation: src-charge 1s ease-in .15s both, src-idle 3.2s ease-in-out 2.4s infinite; }
.js .hero .xil-pool   { animation: pool-in 1s ease-out .3s both, pool-idle 3.2s ease-in-out 2.4s infinite; }
.js .hero .xil-core   { animation: core-shoot .32s cubic-bezier(.7,0,.9,.5) 1.1s both, core-idle 1.6s steps(1) 2.4s infinite; }
.js .hero .xil-beam   { animation: beam-shoot .9s cubic-bezier(.2,.8,.2,1) 1.15s both, beam-idle 3.2s ease-in-out 2.4s infinite; }
.js .hero .xil-flow   { animation: flow-in .8s ease-out 1.4s both, flow-move .9s linear infinite; }
.js .hero .xil-flash  { animation: flash 1.2s ease-out 1.28s both; }
.js .hero .xil-shock  { animation: shock 1.1s cubic-bezier(.15,.7,.25,1) 1.3s both; }
.js .hero .xil-shock + .xil-shock { animation-delay: 1.48s; animation-duration: 1.3s; }
.js .hero .xil-burst  { animation: burst .7s cubic-bezier(.1,.8,.3,1) 1.26s both; }
.js .hero .xil-glare  { animation: glare 1s cubic-bezier(.1,.8,.3,1) 1.28s both; }
.js .hero .xil-glare-v { animation: glare-v .6s ease-out 1.24s both; }
.js .hero .hero-art   { animation: quake .5s linear 1.3s both; }
.js .hero .hero-art img { animation: art-reveal 2.2s ease-out .1s both; }
.js .hero .hero-art .art-left  { animation: art-reveal 2.2s ease-out .1s both, drift-left 9s ease-in-out 2.3s infinite alternate; }
.js .hero .hero-art .art-right { animation: art-reveal 2.2s ease-out .1s both, drift-right 11s ease-in-out 2.3s infinite alternate; }
.js .hero .hero-content { animation: quake .5s linear 1.3s both; }
.js .hero .hero-logo  { animation: logo-slam .9s cubic-bezier(.2,.9,.25,1.15) 1.4s both, logo-idle 3.2s ease-in-out 2.4s infinite; }
.js .hero .hero-content > :not(h1) { animation: rise .9s var(--ease) both; }
.js .hero .hero-content > :nth-child(2) { animation-delay: 1.9s; }
.js .hero .hero-content > :nth-child(3) { animation-delay: 2.05s; }
.js .hero .hero-content > :nth-child(4) { animation-delay: 2.2s; }

@keyframes src-charge {
  0%   { transform: scale(0); opacity: 0; }
  18%  { transform: scale(.55); opacity: 1; }
  30%  { transform: scale(.3); opacity: .6; }
  48%  { transform: scale(.95); opacity: 1; }
  58%  { transform: scale(.55); opacity: .7; }
  80%  { transform: scale(1.7); opacity: 1; }
  88%  { transform: scale(1.1); }
  100% { transform: scale(2.2); opacity: 1; }
}
@keyframes src-idle { 0%, 100% { transform: scale(2.2); } 50% { transform: scale(1.8); } }
@keyframes pool-in {
  0% { opacity: 0; transform: scale(.2); }
  70% { opacity: .5; transform: scale(.5); }
  90% { opacity: 1; transform: scale(1.25); }
  100% { opacity: .55; transform: scale(.9); }
}
@keyframes pool-idle { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: .35; transform: scale(.82); } }
@keyframes core-shoot { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes core-idle { 0%, 100% { opacity: 1; } 47% { opacity: .75; } 50% { opacity: 1; } 53% { opacity: .85; } }
@keyframes beam-shoot {
  0%   { transform: scale(.4, 0); opacity: .6; }
  28%  { transform: scale(.6, 1); opacity: 1; }
  45%  { transform: scale(4.5, 1); opacity: 1; box-shadow: 0 0 80px 30px rgba(224,139,242,.8), 0 0 260px 110px rgba(194,61,224,.5); }
  100% { transform: scale(1, 1); opacity: 1; }
}
@keyframes beam-idle {
  0%, 100% { transform: scale(1, 1); opacity: 1; }
  50% { transform: scale(1.35, 1); opacity: .82; }
}
@keyframes flow-in { from { opacity: 0; } to { opacity: .55; } }
@keyframes flow-move { from { background-position: 0 0; } to { background-position: 0 -70px; } }
@keyframes flash {
  0% { opacity: 0; }
  6% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes shock {
  0%   { transform: scale(.15); opacity: 1; border-width: 4px; }
  100% { transform: scale(9); opacity: 0; border-width: 1px; }
}
@keyframes burst {
  0%   { transform: scale(0); opacity: 0; }
  12%  { transform: scale(2.6); opacity: 1; }
  100% { transform: scale(7); opacity: 0; }
}
@keyframes glare {
  0%   { transform: scaleX(.05); opacity: 0; }
  10%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1.1) scaleY(.4); opacity: 0; }
}
@keyframes glare-v {
  0% { opacity: 0; }
  15% { opacity: 1; }
  100% { opacity: 0; }
}
/* Langsamer Ken-Burns-Effekt, je Seite gegenläufig */
@keyframes drift-left {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.16) translate(-3%, 1.6%); }
}
@keyframes drift-right {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.18) translate(2.8%, -2%); }
}
@keyframes quake {
  0%, 100% { transform: none; }
  10% { transform: translate(-7px, 4px); }
  20% { transform: translate(6px, -5px); }
  30% { transform: translate(-5px, -3px); }
  40% { transform: translate(5px, 4px); }
  55% { transform: translate(-3px, 2px); }
  70% { transform: translate(2px, -2px); }
  85% { transform: translate(-1px, 1px); }
}
@keyframes art-reveal {
  0%  { opacity: .18; filter: brightness(.25) saturate(.5); }
  50% { opacity: .3;  filter: brightness(.35) saturate(.6); }
  56% { opacity: 1;   filter: brightness(2.1) saturate(1.5); }
  100% { opacity: 1;  filter: brightness(1) saturate(1.05); }
}
@keyframes logo-slam {
  0%   { opacity: 0; transform: scale(1.45); filter: brightness(3) drop-shadow(0 0 0 rgba(194,61,224,0)); }
  35%  { opacity: 1; transform: scale(.97); filter: brightness(1.8) drop-shadow(0 0 40px rgba(224,139,242,.95)); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1) drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
}
@keyframes logo-idle {
  0%, 100% { filter: brightness(1) drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
  50% { filter: brightness(1.08) drop-shadow(0 0 22px rgba(194,61,224,.45)); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Abschnitte ---------- */

.section { padding-block: var(--section); position: relative; overflow-x: clip; }
.section-tief { background: var(--nacht-tief); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--nebel); font-size: 1.2rem; }
.lead { font-size: 1.28rem; line-height: 1.55; color: var(--pergament); }
.muted { color: var(--nebel); }

/* Das Spiel */
.game-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.game-photo { border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.55); }

.specs { margin: 32px 0 34px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--asche); }
.specs div { padding: 16px 0; border-bottom: 1px solid var(--asche); }
.specs div:nth-child(odd) { padding-right: 18px; }
.specs dt { color: var(--nebel); font-size: .98rem; }
.specs dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--messing-hell); }

.specs-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.specs-glossary div:nth-child(odd) { padding-right: 0; }
.specs-glossary dt { font-family: var(--font-display); font-size: 1.6rem; color: var(--messing-hell); }
.specs-glossary dd { font-family: var(--font-text); font-size: 1.05rem; line-height: 1.5; color: var(--nebel); }
@media (max-width: 560px) { .specs-glossary { grid-template-columns: 1fr; } }

/* Uhltra */
.world {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.world-art img { width: 100%; filter: drop-shadow(0 30px 60px rgba(104, 154, 160, .18)); }
.world blockquote {
  margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--xil);
  font-style: italic; color: var(--pergament); font-size: 1.2rem; max-width: 52ch;
}

/* Ordnung gegen Chaos */
.factions { display: grid; grid-template-columns: 1fr 4px 1fr; gap: 0 clamp(24px, 4vw, 56px); }
/* Trennlinie als Xil-Strahl: wächst beim Scrollen (--grow von 0 bis 1, per JS gesetzt)
   und prallt am Ende des Abschnitts auf eine unsichtbare Grenze. */
.faction-divider { position: relative; --grow: 1; }
.faction-divider > span, .faction-divider > canvas { position: absolute; pointer-events: none; }
.fd-beam {
  inset: 0; border-radius: 2px; transform-origin: 50% 0;
  transform: scaleY(var(--grow));
  background: linear-gradient(180deg, transparent 0%, var(--xil) 12%, var(--xil-hell) 78%, #fbe0ff 94%, #fff 100%);
  box-shadow: 0 0 22px 4px rgba(194, 61, 224, .4);
}
.fd-tip {
  left: 50%; top: calc(var(--grow) * 100%);
  width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 35%, rgba(240,190,255,.8) 55%, transparent 75%);
  box-shadow: 0 0 18px 6px rgba(255,255,255,.55), 0 0 40px 14px rgba(194,61,224,.6);
  opacity: 0; transition: opacity .25s;
}
.faction-divider.is-growing .fd-tip { opacity: 1; }
.fd-impact {
  left: 50%; bottom: 0; width: 150px; height: 150px; margin: 0 0 -75px -75px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, rgba(255,248,255,.85) 38%, rgba(224,139,242,.45) 58%, transparent 72%);
  mix-blend-mode: screen; opacity: 0;
}
.fd-glare {
  left: 50%; bottom: 0; width: min(560px, 90vw); height: 3px; margin: 0 0 -1.5px calc(min(560px, 90vw) / -2);
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(240,190,255,.7) 25%, #fff 50%, rgba(240,190,255,.7) 75%, transparent);
  box-shadow: 0 0 12px 3px rgba(255,255,255,.6), 0 0 34px 8px rgba(194,61,224,.5);
  opacity: 0;
}
.fd-spark {
  left: 50%; bottom: 0; width: 4px; height: 4px; margin: 0 0 -2px -2px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 2px rgba(224,139,242,.9); opacity: 0;
}
/* Wegpunkt-Einschläge: kompakte violette Energie statt weißer Sterne. */
.fd-waypoint {
  left: 50%; top: var(--stop); width: 10px; height: 10px;
  margin: -5px 0 0 -5px; border-radius: 50%; opacity: 0;
  background: #db60f5; box-shadow: 0 0 13px 5px rgba(194,61,224,.7);
}
.fd-waypoint::before, .fd-waypoint::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 36px; height: 36px; border: 2px solid rgba(209,79,238,.8);
  border-radius: 50%; transform: translate(-50%,-50%) scale(.15); opacity: 0;
}
.fd-waypoint::after { width: 55px; height: 55px; border-color: rgba(136,41,197,.55); }
.fd-waypoint.is-striking { animation: xil-stop-flash .58s ease-out both; }
.fd-waypoint.is-striking::before { animation: xil-stop-ring .52s ease-out both; }
.fd-waypoint.is-striking::after { animation: xil-stop-ring .65s .06s ease-out both; }
@keyframes xil-stop-flash { 0% { opacity: 0; transform: scale(.35); } 15% { opacity: 1; transform: scale(2.4); } 100% { opacity: 0; transform: scale(.6); } }
@keyframes xil-stop-ring { 0% { opacity: .95; transform: translate(-50%,-50%) scale(.12); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.65); } }
.fd-impact-2 { display: none; }
@media (max-width: 820px) { .fd-impact-2 { display: block; } }

/* Geladener Zustand nach dem Aufprall: Strahl summt, Begrenzung entlädt sich dauerhaft */
.fd-line {
  bottom: 0; height: 3px; width: min(300px, 45vw); margin-bottom: -1.5px; opacity: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(255,255,255,.95) 16px 20px, transparent 20px 46px),
    linear-gradient(90deg, rgba(224,139,242,.9), rgba(194,61,224,.35) 70%, transparent);
  box-shadow: 0 0 10px 2px rgba(194,61,224,.55);
  filter: drop-shadow(0 0 3px #fff);
}
.fd-line-r { left: 50%; }
.fd-line-l { right: 50%; transform: scaleX(-1); }
.fd-arcs { left: 50%; bottom: 0; width: min(640px, 92vw); height: 90px; margin: 0 0 -45px calc(min(640px, 92vw) / -2); }

.faction-divider.is-charged .fd-beam { animation: fd-hum .42s linear infinite; }
.faction-divider.is-charged .fd-impact { animation: fd-node 2.4s ease-in-out infinite; }
.faction-divider.is-charged .fd-line { animation: fd-crawl .7s linear infinite, fd-flicker 1.9s steps(1) infinite; }
.faction-divider.is-paused, .faction-divider.is-paused * { animation-play-state: paused !important; }

@keyframes fd-hum {
  0%   { transform: scaleY(1) skewX(.14deg); filter: brightness(1); }
  20%  { transform: scaleY(1) skewX(-.11deg); filter: brightness(1.18); }
  40%  { transform: scaleY(1) skewX(.06deg); filter: brightness(.95); }
  55%  { transform: scaleY(1) skewX(-.16deg); filter: brightness(1.25); }
  75%  { transform: scaleY(1) skewX(.1deg); filter: brightness(1); }
  100% { transform: scaleY(1) skewX(.14deg); filter: brightness(1); }
}
@keyframes fd-node {
  0%, 100% { transform: scale(.32); opacity: .6; }
  45% { transform: scale(.42); opacity: .95; }
  50% { transform: scale(.55); opacity: 1; }
  60% { transform: scale(.38); opacity: .75; }
}
@keyframes fd-crawl { from { background-position: 0 0, 0 0; } to { background-position: 46px 0, 0 0; } }
@keyframes fd-flicker {
  0% { opacity: .75; } 13% { opacity: .45; } 21% { opacity: .9; } 34% { opacity: .6; }
  47% { opacity: 1; } 52% { opacity: .5; } 68% { opacity: .8; } 81% { opacity: .55; } 90% { opacity: .95; }
}

.faction-divider.is-impact .fd-impact { animation: fd-impact .75s cubic-bezier(.1,.8,.3,1) both; }
.faction-divider.is-impact .fd-glare  { animation: fd-glare .9s cubic-bezier(.1,.8,.3,1) both; }
.faction-divider.is-impact .fd-beam   { animation: fd-vibrate .5s linear both; }
.faction-divider.is-impact .fd-spark  { animation: fd-spark .8s cubic-bezier(.15,.7,.3,1) both; }

@keyframes fd-impact {
  0% { transform: scale(.1); opacity: 0; }
  12% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes fd-glare {
  0% { transform: scaleX(.05); opacity: 0; }
  12% { transform: scaleX(1); opacity: 1; }
  45% { opacity: .8; }
  100% { transform: scaleX(1.15); opacity: 0; }
}
/* Vibration nahe der Aufprallstelle: das untere Ende zittert stärker als das obere */
@keyframes fd-vibrate {
  0%, 100% { transform: scaleY(1) skewX(0); }
  10% { transform: scaleY(1) skewX(-.9deg); }
  20% { transform: scaleY(1) skewX(.8deg); }
  30% { transform: scaleY(1) skewX(-.7deg); }
  40% { transform: scaleY(1) skewX(.55deg); }
  55% { transform: scaleY(1) skewX(-.4deg); }
  70% { transform: scaleY(1) skewX(.25deg); }
  85% { transform: scaleY(1) skewX(-.1deg); }
}
@keyframes fd-spark {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; }
}
.faction { display: flex; flex-direction: column; }
.faction-titan { position: relative; margin-bottom: 26px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.faction-titan img { width: 100%; height: 100%; object-fit: cover; }
.faction-titan figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(23,22,25,.92));
  font-size: 1rem; color: var(--nebel);
}
.faction-titan figcaption strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: var(--pergament); line-height: 1; }
.faction h3 { margin-bottom: .2em; }
.faction-motto { color: var(--nebel); margin-bottom: 22px; }
.faction-ordnung h3 { color: var(--orden-hell); }
.faction-chaos h3 { color: var(--xil-hell); }

.unit-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--asche); }
.unit-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--asche); }
.unit-list img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 1px solid var(--asche); }
.unit-list b { display: block; font-size: 1.12rem; }
.unit-list span { color: var(--nebel); font-size: 1rem; }
.faction .btn { align-self: flex-start; margin-top: auto; }

/* Eine Runde */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: phase; }
.phases li { padding: 0 clamp(14px, 2vw, 28px) 0 0; position: relative; }
.phases li + li { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--asche); }
.phase-num { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; color: var(--messing); display: block; margin-bottom: 8px; }
.phases h3 { font-size: 1.7rem; margin-bottom: .3em; }
.phases p { color: var(--nebel); font-size: 1.05rem; }
.victory {
  margin-top: clamp(40px, 6vw, 72px); padding: 26px 30px;
  border: 1px solid rgba(201, 164, 92, .4); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 10px; text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(201,164,92,.10), transparent 72%);
}
.victory svg { width: 48px; height: 48px; color: var(--messing); flex: 0 0 auto; }
.victory p { margin: 0; font-size: 1.2rem; max-width: 52rem; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.victory strong { display: block; color: var(--messing-hell); font-family: var(--font-display); font-size: 1.32rem; line-height: 1.1; }
.victory-text { display: block; }

/* Nebulus-Karten */
.nebulus { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.card-fan { position: relative; height: clamp(360px, 40vw, 480px); }
.card-fan button {
  position: absolute; left: 50%; bottom: 0;
  width: clamp(170px, 18vw, 230px); aspect-ratio: 5 / 7; margin-left: calc(clamp(170px, 18vw, 230px) / -2);
  padding: 0; border: 6px solid #151417; border-radius: 10px; overflow: hidden; cursor: pointer;
  background: #151417;
  box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(201,164,92,.35);
  transform-origin: 50% 120%;
  transform: rotate(calc(var(--i) * 9deg - 27deg)) translateY(0);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card-fan button img { width: 100%; height: 100%; object-fit: cover; }
.card-fan button:hover, .card-fan button:focus-visible, .card-fan button[aria-pressed="true"] {
  transform: rotate(calc(var(--i) * 9deg - 27deg)) translateY(-34px);
  box-shadow: 0 24px 50px rgba(0,0,0,.7), 0 0 0 1px var(--xil), 0 0 30px rgba(194,61,224,.45);
  z-index: 5;
}
.card-detail { min-height: 9.5em; }
.card-detail h3 { color: var(--xil-hell); }
.card-hint { color: var(--nebel); font-size: 1rem; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 14vw, 190px); grid-auto-flow: dense; gap: 10px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--basalt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery .g-wide { grid-column: span 4; grid-row: span 2; }
.gallery .g-mid { grid-column: span 2; }
.gallery .g-tall { grid-column: span 2; grid-row: span 2; }
.box-contents { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.box-contents h3 { font-size: 1.6rem; }
.box-contents ul { margin: 0; padding: 0; list-style: none; }
.box-contents li { padding: 7px 0; border-bottom: 1px solid rgba(69,66,73,.7); color: var(--nebel); }
.box-contents li b { color: var(--pergament); font-weight: 700; margin-right: .3em; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 9, 12, .9); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox p { color: var(--nebel); text-align: center; margin: 12px auto 0; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--basalt); color: var(--pergament); border: 1px solid var(--asche); cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-close svg { width: 22px; height: 22px; }

/* Archiv-Liste */
.archive-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--asche); }
.archive-list a {
  display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--asche); text-decoration: none; color: var(--pergament);
  transition: background-color .2s var(--ease);
}
.archive-list a:hover { background: rgba(201,164,92,.05); color: var(--pergament); }
.archive-list a:hover h3 { color: var(--messing-hell); }
.archive-date { color: var(--nebel); font-size: .98rem; }
.archive-list h3 { margin: 0 0 4px; font-size: 1.9rem; transition: color .2s var(--ease); }
.archive-list p { margin: 0; color: var(--nebel); font-size: 1.05rem; }
.archive-list svg { width: 22px; height: 22px; color: var(--messing); }

/* Kauf-CTA */
.cta {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding-block: clamp(90px, 13vw, 170px);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../assets/img/board-2.webp") center / cover no-repeat;
  opacity: .28;
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(31,30,33,.55), var(--nacht) 75%);
}
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta p { margin-inline: auto; color: var(--nebel); font-size: 1.2rem; }
.cta .btn-row { justify-content: center; margin-top: 30px; }

/* ---------- Unterseiten ---------- */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(110px, 16vw, 200px) 0 clamp(48px, 7vw, 80px);
}
.page-hero img.page-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(31,30,33,.35) 0%, rgba(31,30,33,.75) 60%, var(--nacht) 100%);
}
.page-hero h1 { margin-bottom: .15em; }
.page-hero p { font-size: 1.25rem; color: var(--pergament); max-width: 52ch; }
.breadcrumb { font-size: 1rem; color: var(--nebel); margin-bottom: 18px; }
.breadcrumb a { color: var(--nebel); }
.breadcrumb a:hover { color: var(--petrol); }

.prose { max-width: var(--measure); }
.prose p { font-size: 1.15rem; line-height: 1.7; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 100px); }
.split.reverse > :first-child { order: 2; }
.split-sticky { align-items: start; }
.split-sticky > img { position: sticky; top: 110px; }
.split img { border-radius: var(--radius); width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.5); }

/* Einheit mit Aufwertung */
.unit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--asche); }
.unit:first-of-type { border-top: 0; padding-top: 0; }
.unit-pics { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: end; }
.unit-pics figure { margin: 0; }
.unit-pics img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.unit-pics figcaption { font-size: .95rem; color: var(--nebel); margin-top: 6px; }
.unit h3 { margin-bottom: .1em; }
.unit-upgrade { color: var(--nebel); margin-bottom: 18px; }
.unit-upgrade svg { width: 16px; height: 16px; vertical-align: -2px; color: var(--messing); }
.ability {
  margin-top: 22px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--basalt); border-left: 3px solid var(--messing);
}
.ability h4 { margin: 0 0 6px; font-size: 1.35rem; color: var(--messing-hell); }
.ability p { margin: 0 0 .4em; font-size: 1.05rem; }
.ability p:last-child { margin-bottom: 0; }
.theme-chaos .ability { border-left-color: var(--xil); }
.theme-chaos .ability h4 { color: var(--xil-hell); }
.theme-ordnung .ability { border-left-color: var(--orden-hell); }
.theme-ordnung .ability h4 { color: var(--orden-hell); }

.buildings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.buildings article img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.buildings h3 { font-size: 1.8rem; }
.buildings p { font-size: 1.05rem; color: var(--nebel); }

.titan { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.titan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.titan-cards img { width: 100%; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.titan h2 { font-size: clamp(3rem, 7vw, 5.5rem); }

.faction-switch { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Regeln */
.rulebooks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.rulebook { display: flex; flex-direction: column; background: var(--basalt); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(69,66,73,.8); }
.rulebook img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.rulebook-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.rulebook h3 { font-size: 1.8rem; margin-bottom: .2em; }
.rulebook p { color: var(--nebel); font-size: 1.02rem; }
.rulebook .btn { margin-top: auto; align-self: flex-start; }
.note {
  margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--petrol);
  background: rgba(104, 154, 160, .08); color: var(--pergament); max-width: 70ch; font-size: 1.05rem;
}
.note p { margin: 0; }

/* Lesemodus */
.story { padding-block: clamp(48px, 7vw, 90px) var(--section); }
.story-body { max-width: 64ch; margin-inline: auto; }
.story-body p { font-size: 1.2rem; line-height: 1.8; max-width: none; }
.story-body p:first-child::first-letter {
  font-family: var(--font-display); float: left; font-size: 4.4em; line-height: .8;
  padding: .06em .1em 0 0; color: var(--messing);
}
.story-meta { color: var(--nebel); font-size: 1.05rem; }
.story-nav {
  max-width: 64ch; margin: clamp(48px, 7vw, 80px) auto 0; padding-top: 28px; border-top: 1px solid var(--asche);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.story-nav a { text-decoration: none; display: grid; gap: 2px; max-width: 46%; }
.story-nav a span { color: var(--nebel); font-size: .95rem; }
.story-nav a b { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--pergament); }
.story-nav a:hover b { color: var(--messing-hell); }
.story-nav .next { text-align: right; margin-left: auto; }

/* ---------- Footer ---------- */

.site-footer { background: var(--nacht-tief); border-top: 1px solid rgba(201,164,92,.18); padding: 56px 0 36px; font-size: 1rem; color: var(--nebel); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.footer-maker { display: flex; gap: 16px; align-items: center; }
.footer-maker img { width: 92px; }
.footer-maker p { margin: 0; }
.footer-maker strong { color: var(--pergament); display: block; }
.site-footer h2 { font-family: var(--font-text); font-size: 1rem; font-weight: 700; color: var(--pergament); margin-bottom: 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--nebel); text-decoration: none; }
.site-footer a:hover { color: var(--petrol); text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--asche); font-size: .92rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-legal p { margin: 0; max-width: 80ch; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .phases li:nth-child(3) { border-left: 0; padding-left: 0; }
  .rulebooks, .buildings { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .game-grid, .world, .nebulus, .split, .unit, .titan { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .split-sticky > img { position: static; }
  .card-fan { height: 300px; }
  .factions { grid-template-columns: 1fr; }
  /* Auf schmalen Bildschirmen liegt der Strahl waagerecht und zündet von der Mitte nach außen */
  .faction-divider { height: 4px; margin: 48px 0; }
  .fd-beam {
    transform-origin: 50% 50%; transform: scaleX(var(--grow));
    background: linear-gradient(90deg, #fff 0%, var(--xil-hell) 8%, var(--xil) 30%, var(--xil-hell) 50%, var(--xil) 70%, var(--xil-hell) 92%, #fff 100%);
  }
  .fd-tip, .fd-glare, .fd-spark, .fd-line, .fd-arcs { display: none; }
  .fd-waypoint { left: var(--stop); top: 50%; margin: -5px 0 0 -5px; }
  .faction-divider.is-charged .fd-beam { animation: fd-hum-x .4s linear infinite; }
  @keyframes fd-hum-x {
    0%, 100% { transform: scaleX(1) translateY(0); filter: brightness(1); }
    25% { transform: scaleX(1) translateY(-.6px); filter: brightness(1.2); }
    50% { transform: scaleX(1) translateY(.5px); filter: brightness(.95); }
    75% { transform: scaleX(1) translateY(-.4px); filter: brightness(1.15); }
  }
  .fd-impact { left: 0; bottom: 50%; width: 90px; height: 90px; margin: 0 0 -45px -45px; }
  .fd-impact-2 { left: auto; right: 0; margin: 0 -45px -45px 0; }
  .faction-divider.is-impact .fd-beam { animation: fd-vibrate-x .45s linear both; }
  @keyframes fd-vibrate-x {
    0%, 100% { transform: scaleX(1) translateY(0); }
    15% { transform: scaleX(1) translateY(-2px); }
    30% { transform: scaleX(1) translateY(2px); }
    45% { transform: scaleX(1) translateY(-1.5px); }
    60% { transform: scaleX(1) translateY(1px); }
    80% { transform: scaleX(1) translateY(-.5px); }
  }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery .g-wide { grid-column: span 2; grid-row: span 2; }
  .gallery .g-mid, .gallery .g-tall { grid-column: span 1; grid-row: span 1; }
  .box-contents { grid-template-columns: 1fr; }
  .archive-list a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .archive-date { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .nebulus .card-fan { order: 2; }
}

@media (max-width: 560px) {
  body { font-size: 1.06rem; }
  .phases { grid-template-columns: 1fr; }
  .phases li + li { border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--asche); }
  .rulebooks, .buildings { grid-template-columns: 1fr; }
  .specs dd { font-size: 1.45rem; }
  .card-fan { height: 340px; }
  .card-fan button { width: 150px; margin-left: -75px; transform: rotate(calc(var(--i) * 7deg - 21deg)); }
  .card-fan button:hover, .card-fan button:focus-visible, .card-fan button[aria-pressed="true"] { transform: rotate(calc(var(--i) * 7deg - 21deg)) translateY(-24px); }
  .victory { grid-template-columns: 1fr; padding: 22px; }
  .story-nav a { max-width: 100%; }
  .story-nav .next { text-align: left; margin-left: 0; }
  .hero { min-height: 88vh; }
  .hero-art img { width: 140%; min-width: 0; margin-left: -70%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-art .art-left, .hero-art .art-right { animation: none !important; }
}

/* XIL Revision: Karten lassen sich beim Überfahren eindeutig auswählen. */
.card-fan button { will-change: transform; }
.card-fan button:hover, .card-fan button:focus-visible { z-index: 20; }
.card-fan button[aria-pressed="true"]:not(:hover):not(:focus-visible) { z-index: 8; }
@media (hover: none) { .card-fan button { will-change: auto; } }

/* Revision 02: klarere Überschriften, mittige Fraktions-CTAs, Archivkarte */
#spiel-title, #welt-title, #fraktionen-title, #ablauf-title, #nebulus-title, #material-title, #archiv-title {font-family: var(--font-text);font-weight: 500;letter-spacing: -.018em;line-height: 1.12;}
.faction .btn {align-self: center; text-align: center;}
.specs dd small {display:block;font-family:var(--font-text);font-size:.76rem;line-height:1.25;color:var(--nebel);font-weight:400;margin-top:5px;}
.archive-map {position:relative;margin: 0 0 32px;overflow:hidden;border:1px solid var(--asche);border-radius:var(--radius);background:var(--basalt);}
.archive-map img {display:block;width:100%;max-height:430px;object-fit:cover;object-position:center 40%;}
.archive-map figcaption {position:absolute;bottom:0;left:0;right:0;padding:32px 18px 14px;background:linear-gradient(transparent,rgba(15,13,19,.88));color:var(--pergament);font-size:1.04rem;letter-spacing:.02em;}

@media (prefers-reduced-motion: reduce) { .fd-waypoint { display: none; } }

/* REV05: Durchgehende XIL-Energie vom Hero bis zum Archiv */
.xil-journey{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:3;overflow:visible}
.xil-journey svg{width:100%;height:100%;overflow:visible;display:block}
.xil-journey .journey-base{fill:none;stroke:rgba(168,48,208,.13);stroke-width:2}
.xil-journey .journey-active{fill:none;stroke:#d343f5;stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 0 5px #e044ff) drop-shadow(0 0 13px #9223d8)}
.xil-journey .journey-impact{position:absolute;width:14px;height:14px;transform:translate(-50%,-50%);border-radius:50%;opacity:0;background:#e58aff;box-shadow:0 0 13px 5px #a62bde}
.xil-journey .journey-impact.hit{animation:journeyHit .7s ease-out forwards}
@keyframes journeyHit{0%{opacity:1;box-shadow:0 0 0 0 #f1a0ff,0 0 14px 8px #a927e9;transform:translate(-50%,-50%) scale(.4)}45%{opacity:1;box-shadow:0 0 0 22px #9b2cc044,0 0 32px 14px #cb39fa;transform:translate(-50%,-50%) scale(1.6)}100%{opacity:0;box-shadow:0 0 0 50px #9b2cc000,0 0 0 0 #9b2cc000;transform:translate(-50%,-50%) scale(.4)}}
@media(prefers-reduced-motion:reduce){.xil-journey{display:none}}

/* REV06: Gerade Energiebahn bleibt vollständig hinter dem Seiteninhalt. */
main { isolation: isolate; }
main > .xil-journey { z-index: -1; }
.xil-journey .journey-base { stroke: rgba(145, 39, 181, .085); stroke-width: 1.5; }
.xil-journey .journey-active { stroke: rgba(188, 57, 220, .48); stroke-width: 2; filter: drop-shadow(0 0 5px rgba(158, 40, 195, .45)); }
.xil-journey .journey-impact { background: #b53ad9; box-shadow: 0 0 10px 3px rgba(162, 42, 204, .5); }

/* REV07: Dezent pulsierende Energiebahn durch alle Abschnitte. */
main { isolation: isolate; }
main > .xil-journey { z-index: 1; opacity: .28; }
main > .xil-journey .journey-active {
 stroke: rgba(196,71,232,.6); stroke-width: 2.2;
 filter: drop-shadow(0 0 6px rgba(190,54,230,.6));
 animation: xilJourneyBreathe 3.8s ease-in-out infinite;
}
main > .xil-journey .journey-base { stroke: rgba(168,55,202,.18); }
main > .section .container, main > .hero .container { position: relative; z-index: 2; }
main > .section-tief { background: rgba(19,18,23,.5); }
.fd-waypoint { display: none !important; }
@keyframes xilJourneyBreathe { 0%,100% { opacity:.5 } 50% { opacity:1 } }
@media(prefers-reduced-motion:reduce){main > .xil-journey .journey-active{animation:none}}

/* REV08: the background current draws itself as the page scrolls.
   Only the moving energy front has a small glow; it never captures clicks. */
main > .xil-journey .journey-active { transition: stroke-dashoffset 85ms linear; }
main > .xil-journey .journey-tip {
  position:absolute; width:9px; height:9px; pointer-events:none;
  transform:translate(-50%,-50%);border-radius:50%;
  background:radial-gradient(circle,#f3b6ff 0%,#c448e8 34%,rgba(159,38,205,0) 75%);
  box-shadow:0 0 9px 3px rgba(198,76,241,.55),0 0 22px 6px rgba(166,35,218,.20);
  opacity:0; transition:top 85ms linear,opacity 160ms ease;
}
@media(prefers-reduced-motion:reduce){main > .xil-journey .journey-tip{display:none}}

/* REV09: Center all main section titles; energy is decorative, behind content. */
main .section h2 { text-align:center; }
main .section .section-head { max-width:850px; margin-inline:auto; text-align:center; }
main .section .section-head p { text-align:center; }
main .xil-centered-head {
  position:relative; z-index:2; width:min(var(--wrap),calc(100% - 2 * var(--gutter)));
  margin:0 auto clamp(48px,6vw,80px); text-align:center;
}
main .xil-centered-head h2 { max-width:100%; margin-inline:auto; }
main > .xil-journey { z-index:1; opacity:1; }
main > .xil-journey .journey-base { stroke:rgba(177,55,213,.13);stroke-width:1.6; }
main > .xil-journey .journey-active {
 stroke:rgba(214,83,245,.85); stroke-width:2.6;
 filter:drop-shadow(0 0 5px #b833e5) drop-shadow(0 0 12px rgba(196,54,229,.8));
 animation:xilJourneyBreathe 2.7s ease-in-out infinite;
}
main > .xil-journey .journey-tip {
 width:10px;height:10px;
 background:#f0b4ff; box-shadow:0 0 10px 4px #bd37eb,0 0 25px 7px #8f25cb;
}
.xil-heading-strike {
 position:absolute; width:min(560px,74vw); height:40px;
 transform:translate(-50%,-50%); pointer-events:none;
 opacity:0; z-index:2;
}
.xil-heading-strike .strike-left,.xil-heading-strike .strike-right {
 position:absolute;top:50%;height:3px;width:48%;opacity:0;
 background:linear-gradient(90deg,transparent,#a12ad4 30%,#e5a4ff 70%,#fff);
 box-shadow:0 0 8px 2px rgba(191,55,240,.8),0 0 20px 3px rgba(168,36,221,.4);
}
.xil-heading-strike .strike-left {right:50%;transform-origin:right center}
.xil-heading-strike .strike-right {left:50%;transform:scaleX(-1);transform-origin:left center}
.xil-heading-strike .strike-core {
 position:absolute;left:50%;top:50%;width:13px;height:13px;
 border-radius:50%;transform:translate(-50%,-50%);
 background:#f4c3ff;box-shadow:0 0 12px 5px #b82be5,0 0 30px 9px rgba(174,39,227,.55);
}
.xil-heading-strike.strike-on {animation:xilStrikeShow .95s ease-out both}
.xil-heading-strike.strike-on .strike-left {animation:xilStrikeLeft .8s ease-out both}
.xil-heading-strike.strike-on .strike-right {animation:xilStrikeRight .8s ease-out both}
@keyframes xilStrikeShow {0%{opacity:0;filter:brightness(2)}15%{opacity:1}65%{opacity:.8}100%{opacity:0}}
@keyframes xilStrikeLeft {0%{opacity:0;transform:scaleX(0)}25%{opacity:1;transform:scaleX(1)}100%{opacity:0;transform:scaleX(1)}}
@keyframes xilStrikeRight {0%{opacity:0;transform:scaleX(0)}25%{opacity:1;transform:scaleX(-1)}100%{opacity:0;transform:scaleX(-1)}}
@media (prefers-reduced-motion:reduce) {
 .xil-heading-strike {display:none}
}

/* REV10: branching XIL discharge, with reduced brightness over page content. */
main > .xil-journey .journey-active {stroke:rgba(195,66,233,.48);stroke-width:1.8;filter:drop-shadow(0 0 4px rgba(189,49,236,.55));}
main > .xil-journey .journey-base {stroke:rgba(158,45,195,.08);}
main > .xil-journey .journey-tip {width:7px;height:7px;background:#df9cf5;box-shadow:0 0 8px 2px rgba(192,56,236,.75),0 0 18px 5px rgba(156,33,201,.38);}
.xil-heading-strike {width:min(650px,80vw);height:76px;}
.xil-heading-strike .strike-arcs {display:block;width:100%;height:100%;}
.xil-heading-strike .strike-core {width:8px;height:8px;box-shadow:0 0 9px 3px #b82be5,0 0 22px 6px rgba(174,39,227,.5);}
.xil-heading-strike .strike-left,.xil-heading-strike .strike-right {display:none!important;}
.xil-heading-strike.strike-on {animation:xilStrikeShow 1s ease-out both;}
@media (prefers-reduced-motion:reduce){.xil-heading-strike{display:none!important}}

/* REV11: animated lightning remains active at each headline, no faction-button impact. */
#fraktionen .faction-divider { display:none !important; }
.xil-heading-strike { pointer-events:none; }
.xil-heading-strike.strike-on { animation:none!important;opacity:1!important; }
.xil-heading-strike.strike-on .strike-core { animation:xilCoreBreathe 1.3s ease-in-out infinite; }
@keyframes xilCoreBreathe { 0%,100%{opacity:.45;transform:translate(-50%,-50%) scale(.75)}
50%{opacity:1;transform:translate(-50%,-50%) scale(1.2)} }
/* Center the explanatory copy directly below main section headings. */
#spiel .xil-centered-head, #welt .xil-centered-head, #nebulus .xil-centered-head {margin-bottom:28px;}
#spiel .split > div:first-child > p,
#welt .split > div:first-child > p,
#nebulus .split > div:first-child > p {text-align:center;}
#fraktionen .section-head p,
#ablauf .section-head p,
#material .section-head p,
#archiv .section-head p {text-align:center;margin-inline:auto;}
#fraktionen .section-head, #ablauf .section-head,
#material .section-head, #archiv .section-head {text-align:center;}

/* REV12: preserve three-column layout; remove ONLY divider visual effects. */
#fraktionen .factions {grid-template-columns:minmax(0,1fr) 4px minmax(0,1fr);}
#fraktionen .faction-divider {display:block!important;visibility:hidden!important;min-width:4px;}
#fraktionen .faction {min-width:0;}
#fraktionen .faction-chaos, #fraktionen .faction-ordnung {width:auto;}
/* Each reached heading has continuously moving electric arcs, not a one-shot fade. */
.xil-heading-strike.strike-on {opacity:1!important;animation:none!important;}
.xil-heading-strike.strike-on canvas {opacity:1!important;}

/* REV13: finale Entladung unter dem Kaufaufruf; vorherige Blitze bleiben aktiv. */
.xil-final-station {width:min(780px,88vw);height:96px;}
.xil-final-station .strike-core {z-index:2;}
.xil-final-station.xil-final-burst::before,
.xil-final-station.xil-final-burst::after {
  content:"";position:absolute;left:50%;top:50%;width:22px;height:22px;
  border:2px solid rgba(235,153,255,.9);border-radius:50%;
  transform:translate(-50%,-50%) scale(.3);
  box-shadow:0 0 18px 5px rgba(205,58,249,.65);
  animation:xilFinalShockwave 1.25s ease-out both;
}
.xil-final-station.xil-final-burst::after {animation-delay:.16s;}
@keyframes xilFinalShockwave {
  0%{opacity:1;transform:translate(-50%,-50%) scale(.3)}
  100%{opacity:0;transform:translate(-50%,-50%) scale(12)}
}
@media(prefers-reduced-motion:reduce){
 .xil-final-station.xil-final-burst::before,.xil-final-station.xil-final-burst::after{animation:none;display:none}
}

/* Revision 14: Bilder rechts in den Archivzeilen. */
.archive-list a.archive-illustrated {grid-template-columns:190px minmax(0,1fr) 220px 22px;gap:20px;}
.archive-preview {display:block;width:220px;height:85px;object-fit:cover;border-radius:5px;opacity:.88;transition:opacity .2s,transform .2s;}
.archive-illustrated:hover .archive-preview {opacity:1;transform:scale(1.025);}
@media(max-width:820px) {
 .archive-list a.archive-illustrated {grid-template-columns:minmax(0,1fr) 130px 22px;gap:10px;}
 .archive-list a.archive-illustrated .archive-date {grid-column:1/-1;}
 .archive-preview {width:130px;height:72px;}
}
@media(max-width:480px) {
 .archive-list a.archive-illustrated {grid-template-columns:minmax(0,1fr) 22px;}
 .archive-list a.archive-illustrated .archive-preview {grid-column:1;grid-row:auto;width:100%;height:100px;object-fit:cover;}
}
/* Strahl läuft in die Schrift hinein; die Buchstaben reagieren mit Magenta-Licht. */
#kaufen-title {position:relative;z-index:3;transition:color .45s ease,text-shadow .45s ease;}
#kaufen-title.xil-title-energized {
 color:#f3a2ff;
 text-shadow:0 0 7px rgba(255,138,255,.95),0 0 23px rgba(216,55,247,.9),0 0 46px rgba(187,30,220,.65);
 animation:xilTitleCharge 2.8s ease-in-out infinite;
}
@keyframes xilTitleCharge {
 0%,100% {color:#f1a3ff;text-shadow:0 0 8px #e95cff,0 0 26px rgba(199,35,244,.9),0 0 48px rgba(191,34,230,.5);}
 50% {color:#ffd8ff;text-shadow:0 0 14px #f19bff,0 0 34px rgba(230,75,255,1),0 0 65px rgba(201,40,241,.8);}
}
@media(prefers-reduced-motion:reduce){#kaufen-title.xil-title-energized{animation:none;}}

/* REV15: Archiv wieder ohne Vorschaubilder. */
.archive-list a:not(.archive-illustrated) {grid-template-columns:190px minmax(0,1fr) 22px;}
@media(max-width:820px){.archive-list a:not(.archive-illustrated){grid-template-columns:minmax(0,1fr) 22px;}}

/* REV17: Keine mittige Verbindungslinie mehr. Entladung sitzt unter dem Titel. */
main .xil-journey,main .journey-tip,main .journey-base,main .journey-active{display:none!important;}
.xil-heading-strike{position:relative!important;left:auto!important;top:auto!important;transform:none!important;margin:0 auto 16px!important;width:min(650px,85vw);height:65px;opacity:0;pointer-events:none;overflow:visible;z-index:2;}
.xil-heading-strike.strike-on,.xil-heading-strike.xil-impact{opacity:1!important;animation:none!important;}
.xil-heading-strike .strike-core{position:absolute;left:50%;top:50%;}
.xil-heading-strike .strike-arcs{width:100%;height:100%;opacity:0;transition:opacity .2s;}
.xil-heading-strike.strike-on .strike-arcs{opacity:1!important;}
.xil-heading-strike.xil-impact .strike-core{animation:xilImpactCore .65s ease-out both!important;}
.xil-impact-wave{position:absolute;left:50%;top:50%;width:18px;height:18px;border:2px solid #e87cff;border-radius:50%;transform:translate(-50%,-50%) scale(.2);opacity:0;}
.xil-heading-strike.xil-impact .xil-impact-wave{animation:xilImpactRing .65s ease-out both;}
.xil-heading-strike.xil-impact .xil-impact-wave-delayed{animation-delay:.12s;}
@keyframes xilImpactRing{0%{opacity:1;transform:translate(-50%,-50%) scale(.2);box-shadow:0 0 22px #e452ff}100%{opacity:0;transform:translate(-50%,-50%) scale(11);box-shadow:0 0 2px #e452ff}}
@keyframes xilImpactCore{0%{opacity:0;transform:translate(-50%,-50%) scale(.2)}35%{opacity:1;transform:translate(-50%,-50%) scale(2.8);box-shadow:0 0 32px 12px #d24cff}100%{opacity:.8;transform:translate(-50%,-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){.xil-heading-strike{display:none!important}}

/* REV19: vollflächige, rahmenlose Bilddarstellung. */
.hero-art { -webkit-mask-image:none!important; mask-image:none!important; }
.hero-art img { object-fit:cover; object-position:center center; margin-left:0; left:0; }
.archive-map {border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
.archive-map img {border:0!important;border-radius:0!important;display:block;}
/* Blitz genau in der Mitte der Überschrift statt an der Spaltenkante. */
.xil-centered-head, .xil-centered-head h2, #kaufen-title {text-align:center!important;}
.xil-heading-strike {display:block!important;position:relative!important;left:50%!important;transform:translateX(-50%)!important;margin:0 0 16px!important;max-width:85vw;}

/* Nur im Abschnitt „Wähle deine Seite“ kehrt der mittige XIL-Strahl zurück. */
#fraktionen .factions{position:relative;grid-template-columns:minmax(0,1fr) 4px minmax(0,1fr);}
#fraktionen .faction-divider{
 display:block!important;visibility:visible!important;position:relative;min-width:4px;
 align-self:stretch;pointer-events:none;overflow:visible;
}
#fraktionen .faction-divider .fd-beam{
 display:block!important;inset:0;opacity:.82;
 background:linear-gradient(180deg,transparent 0%,rgba(187,45,225,.68) 8%,#d65cf4 54%,rgba(215,89,250,.7) 93%,transparent 100%);
 box-shadow:0 0 13px 2px rgba(196,54,239,.35);
 transform:none!important;
 animation:xilFactionBeam 3.6s ease-in-out infinite!important;
}
#fraktionen .faction-divider .fd-tip,#fraktionen .faction-divider .fd-glare,
#fraktionen .faction-divider .fd-line,#fraktionen .faction-divider .fd-arcs,
#fraktionen .faction-divider .fd-impact{display:none!important;}
@keyframes xilFactionBeam{0%,100%{opacity:.55;filter:brightness(.85)}50%{opacity:.95;filter:brightness(1.3)}}
/* Fraktionstexte und Buttons durchgehend mittig. */
#fraktionen .faction{text-align:center;}
#fraktionen .faction h3,#fraktionen .faction .faction-motto,
#fraktionen .faction figcaption,#fraktionen .faction .unit-list,
#fraktionen .faction .unit-list li,#fraktionen .faction .unit-list li div,
#fraktionen .faction .unit-list li b,#fraktionen .faction .unit-list li span{text-align:center!important;}
#fraktionen .faction .unit-list li{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:13px 4px;}
#fraktionen .faction .unit-list li img{margin:0 auto;}
#fraktionen .faction .faction-motto{margin-inline:auto;}
#fraktionen .section-head{text-align:center;}
#fraktionen .section-head p{margin-inline:auto;text-align:center;}
@media(max-width:820px){
 #fraktionen .factions{grid-template-columns:minmax(0,1fr)!important;}
 #fraktionen .faction-divider{height:4px;min-height:4px;margin:30px 0;}
 #fraktionen .faction-divider .fd-beam{background:linear-gradient(90deg,transparent,#d65cf4,transparent);box-shadow:0 0 12px 2px rgba(196,54,239,.35);}
}
@media(prefers-reduced-motion:reduce){
 .hero .xil-awake,#fraktionen .faction-divider .fd-beam{animation:none!important;}
 .hero .xil-awake{opacity:0!important;}
}


/* REV25: Fraktionsblitze aus Revision 24 bleiben erhalten. */
#fraktionen .factions{isolation:isolate;overflow:visible!important;}
#fraktionen .faction-divider{z-index:3;overflow:visible!important;}
#fraktionen .xil-faction-lightning{display:block!important;position:absolute!important;left:50%;bottom:0;width:calc(100vw - 48px);max-width:1120px;height:110px;transform:none!important;pointer-events:none;overflow:visible;z-index:9!important;}
#fraktionen .xil-faction-impact{position:absolute;left:50%;bottom:50px;width:16px;height:16px;border-radius:50%;transform:translate(-50%,50%) scale(.1);opacity:0;pointer-events:none;background:#f9c4ff;box-shadow:0 0 16px 8px #df57ff,0 0 38px 18px rgba(196,40,246,.65);z-index:10!important;}
#fraktionen .faction-divider.xil-faction-hit .xil-faction-impact{animation:xilFactionHit .7s ease-out both;}
@keyframes xilFactionHit{0%{opacity:0;transform:translate(-50%,50%) scale(.1)}18%{opacity:1;transform:translate(-50%,50%) scale(2.6)}50%{opacity:.85;transform:translate(-50%,50%) scale(1.1)}100%{opacity:.3;transform:translate(-50%,50%) scale(.65)}}
@media(max-width:820px){#fraktionen .xil-faction-lightning{display:none!important;}}
@media(prefers-reduced-motion:reduce){#fraktionen .xil-faction-impact{animation:none!important;}}


/* REV26 – Mobilansicht: zentriertes, ruhiges Hero-Motiv und klare Typografie. */
@media (max-width: 820px) {
  .hero-art, .hero-art img, .hero-art .art-left, .hero-art .art-right {
    animation: none !important;
  }
  .hero-art img {
    left: 50% !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .hero-art .art-left, .hero-art .art-right { display: none !important; }
  .hero-logo { translate: 0 0 !important; }
  .xil-heading-strike {
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: min(650px, 85vw) !important;
    margin: 0 auto 16px !important;
  }
}

/* REV27: ausschließlich die Überschrift Ordnung wird hellblau; Fließtext bleibt original. */
#fraktionen .faction-ordnung h3 { color: #b7e6f4 !important; }
/* Original-X des Logos nur für Nebuluskartentitel, die tatsächlich mit X beginnen. */
#nebulus .card-detail h3 .xil-letter-x { display:inline-block; height:.92em; width:auto; vertical-align:-.11em; margin-right:.025em; filter:none; }
@media (max-width:820px) {
  /* Festes, symmetrisch zentriertes Cover; kein Bild-Zoom oder Drift. */
  .hero-art { inset:0; width:100%; left:0; right:0; transform:none!important; }
  .hero-art .art-base { position:absolute!important; left:50%!important; right:auto!important; top:0!important; width:100%!important; height:100%!important; min-width:100%!important; margin:0!important; transform:translateX(-50%)!important; object-fit:cover!important; object-position:50% 50%!important; animation:none!important; }
  .hero-content, .hero-content h1 { text-align:center!important; justify-items:center!important; }
  .hero-logo { display:block!important; position:relative!important; left:auto!important; right:auto!important; margin-left:auto!important; margin-right:auto!important; translate:0 0!important; }
  .hero .xil-fx { left:0!important; right:0!important; width:100%!important; transform:none!important; }
}

/* REV28: Spitze des I exakt auf dem mittigen Energiestrahl – beide Ansichten. */
.hero-content .hero-logo { translate:-3.2% 0 !important; }
@media(max-width:820px) {
 .hero-content .hero-logo { translate:-3.2% 0 !important; }
}
/* Nur der Fraktionstitel Ordnung wird hellblau, nicht die begleitenden Texte. */
#fraktionen .section-head p, #fraktionen .faction-motto,
#fraktionen .faction-ordnung .unit-list li span,
#fraktionen .faction-ordnung figcaption { color:var(--nebel) !important; }
#fraktionen .faction-ordnung h3 { color:#b7e6f4 !important; }
/* Einzig das Original-X des XIL-Logos, zurückhaltend in der Nebulus-Überschrift. */
#nebulus .card-detail h3 .xil-letter-x {
 height:.68em !important; width:auto !important; margin-right:.035em !important;
 vertical-align:-.045em !important; filter:none !important;
}

/* REV29: Heading lightning centered inside each heading's actual parent. */
main .xil-heading-strike {position:relative!important;display:block!important;left:auto!important;right:auto!important;transform:none!important;margin:0 auto 16px!important;width:min(650px,85vw)!important;max-width:85vw!important;}
main .xil-heading-strike .strike-arcs{display:block!important;margin-inline:auto!important;}
/* Opening energy bolts replace the expanding circular rings. */
main .xil-heading-strike .xil-impact-wave {display:none!important;}
main .xil-heading-strike.xil-impact .strike-arcs {opacity:1!important;}
/* Nebulus card headings use original font for every initial, including X. */
#nebulus .card-detail h3 .xil-letter-x{display:none!important;}

/* REV30: Ringfreie XIL-Blitzentladung beim Hero-Start. */
.hero .xil-shock {
 width:min(560px,88vw)!important;height:54px!important;
 margin:0!important;left:50%!important;bottom:var(--beam-base)!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 background:linear-gradient(180deg,transparent 35%,rgba(244,166,255,.92) 47%,#fff 50%,rgba(198,52,245,.95) 54%,transparent 68%)!important;
 clip-path:polygon(0 55%,7% 37%,13% 62%,20% 29%,28% 57%,35% 35%,42% 59%,49% 44%,56% 60%,64% 32%,71% 58%,79% 35%,86% 60%,93% 39%,100% 53%,100% 70%,93% 56%,86% 76%,79% 51%,71% 74%,64% 47%,56% 76%,49% 58%,42% 75%,35% 50%,28% 74%,20% 45%,13% 78%,7% 52%,0 70%);
 filter:drop-shadow(0 0 8px #dc49ff) drop-shadow(0 0 16px #b629ff);
 transform-origin:center center!important;
}
.js .hero .xil-shock {animation:xilHeroBolt .8s ease-out 1.3s both!important;}
.js .hero .xil-shock + .xil-shock {animation-delay:1.47s!important;}
@keyframes xilHeroBolt {0%{opacity:0;transform:translate(-50%,50%) scaleX(.08)}22%{opacity:1;transform:translate(-50%,50%) scaleX(.85)}45%{opacity:.95;transform:translate(-50%,50%) scaleX(1)}70%{opacity:.65;transform:translate(-50%,50%) scaleX(1.06)}100%{opacity:0;transform:translate(-50%,50%) scaleX(1.12)}}
/* Heading lightning width and center are bound to the section, not text glyphs. */
main .xil-heading-strike {box-sizing:border-box!important;position:relative!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;margin-left:0!important;margin-right:0!important;}

/* REV31: Fraktionsfarben ausschließlich für die Box-Inhaltsüberschriften. */
#material .box-contents > div:nth-child(1) > h3 {color:#b7e6f4!important;}
#material .box-contents > div:nth-child(2) > h3 {color:var(--xil-hell)!important;}

/* REV32: Kräftigeres Eisblau ausschließlich für Ordnung-Überschriften. */
#fraktionen .faction-ordnung h3, #material .box-contents > div:nth-child(1) > h3 { color:#55c9f5!important; }

/* REV33: Desktop-Blitzlinien breiter; Mobilansicht bleibt unverändert. */
@media (min-width: 821px) {
  main .xil-heading-strike {
    width: min(860px, 88vw) !important;
    max-width: 88vw !important;
  }
}

.hero .xil-hero-flickers {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;}
@media (min-width:821px) {
 .card-fan button {transform:rotate(calc(var(--i) * 13deg - 39deg));}
 .card-fan button:hover,.card-fan button:focus-visible,.card-fan button[aria-pressed="true"] {transform:rotate(calc(var(--i) * 13deg - 39deg)) translateY(-38px);}
}
@media (min-width:561px) and (max-width:820px) {
 .card-fan button {transform:rotate(calc(var(--i) * 11deg - 33deg));}
 .card-fan button:hover,.card-fan button:focus-visible,.card-fan button[aria-pressed="true"] {transform:rotate(calc(var(--i) * 11deg - 33deg)) translateY(-32px);}
}
@media (max-width:560px) {
 .card-fan button {transform:rotate(calc(var(--i) * 9deg - 27deg));}
 .card-fan button:hover,.card-fan button:focus-visible,.card-fan button[aria-pressed="true"] {transform:rotate(calc(var(--i) * 9deg - 27deg)) translateY(-24px);}
}

/* REV35: Ruhiges Hero-Motiv ohne permanenten Ken-Burns-Zoom. */
.js .hero .hero-art .art-left,
.js .hero .hero-art .art-right {animation:none!important;transform:none!important;}
/* Ausgewählte Nebuluskarte deutlich oberhalb des Fächers, auch bei seitlichen Karten. */
#nebulus .card-fan button[aria-pressed="true"] {z-index:40!important;}
@media(min-width:821px){
 #nebulus .card-fan button[aria-pressed="true"] {transform:rotate(calc(var(--i) * 13deg - 39deg)) translateY(-90px)!important;}
}
@media(min-width:561px) and (max-width:820px){
 #nebulus .card-fan button[aria-pressed="true"] {transform:rotate(calc(var(--i) * 11deg - 33deg)) translateY(-72px)!important;}
}
@media(max-width:560px){
 #nebulus .card-fan button[aria-pressed="true"] {transform:rotate(calc(var(--i) * 9deg - 27deg)) translateY(-60px)!important;}
}

/* REV36: Nebulusfächer weiter öffnen, aktive Karte höher und links präsentieren. */
@media (min-width:821px) {
 #nebulus .card-fan button {transform:rotate(calc(var(--i) * 16deg - 48deg))!important;}
 #nebulus .card-fan button:hover,#nebulus .card-fan button:focus-visible {transform:rotate(calc(var(--i) * 16deg - 48deg)) translateY(-45px)!important;}
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-38px,-146px) rotate(calc(var(--i) * 16deg - 48deg))!important;}
}
@media (min-width:561px) and (max-width:820px) {
 #nebulus .card-fan button {transform:rotate(calc(var(--i) * 13deg - 39deg))!important;}
 #nebulus .card-fan button:hover,#nebulus .card-fan button:focus-visible {transform:rotate(calc(var(--i) * 13deg - 39deg)) translateY(-36px)!important;}
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-24px,-112px) rotate(calc(var(--i) * 13deg - 39deg))!important;}
}
@media (max-width:560px) {
 #nebulus .card-fan button {transform:rotate(calc(var(--i) * 11deg - 33deg))!important;}
 #nebulus .card-fan button:hover,#nebulus .card-fan button:focus-visible {transform:rotate(calc(var(--i) * 11deg - 33deg)) translateY(-30px)!important;}
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-12px,-92px) rotate(calc(var(--i) * 11deg - 33deg))!important;}
}

/* REV37: Acht originale Nebulus-Kartenillustrationen im Hochformat. */
#nebulus .card-fan button {aspect-ratio:750 / 1039;}
#nebulus .card-fan button img {object-fit:cover;object-position:center;}
@media(min-width:821px){
 #nebulus .card-fan button {transform:rotate(calc(var(--i) * 14deg - 49deg))!important;}
 #nebulus .card-fan button:hover,#nebulus .card-fan button:focus-visible {transform:rotate(calc(var(--i) * 14deg - 49deg)) translateY(-45px)!important;}
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-38px,-146px) rotate(calc(var(--i) * 14deg - 49deg))!important;}
}
@media(min-width:561px) and (max-width:820px){
 #nebulus .card-fan button {transform:rotate(calc(var(--i) * 12deg - 42deg))!important;}
 #nebulus .card-fan button:hover,#nebulus .card-fan button:focus-visible {transform:rotate(calc(var(--i) * 12deg - 42deg)) translateY(-36px)!important;}
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-24px,-112px) rotate(calc(var(--i) * 12deg - 42deg))!important;}
}
@media(max-width:560px){
 #nebulus .card-fan button {transform:rotate(calc(var(--i) * 10deg - 35deg))!important;}
 #nebulus .card-fan button:hover,#nebulus .card-fan button:focus-visible {transform:rotate(calc(var(--i) * 10deg - 35deg)) translateY(-30px)!important;}
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-12px,-92px) rotate(calc(var(--i) * 10deg - 35deg))!important;}
}

/* REV38: Aktive Nebuluskarte tiefer zeigen; obere Motive des Fächers freilassen. */
@media (min-width:821px) {
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-38px,-32px) rotate(calc(var(--i) * 14deg - 49deg))!important;}
}
@media (min-width:561px) and (max-width:820px) {
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-24px,-24px) rotate(calc(var(--i) * 12deg - 42deg))!important;}
}
@media (max-width:560px) {
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-12px,-16px) rotate(calc(var(--i) * 10deg - 35deg))!important;}
}

/* REV39: Kartenfächer räumlich von der gewählten Karte trennen.
   Obere Karten bleiben frei anwählbar; aktive Karte steht darunter. */
#nebulus .card-fan {height:700px;}
#nebulus .card-fan button {bottom:290px;}
#nebulus .card-fan button[aria-pressed="true"] {z-index:35!important;}
@media (min-width:821px) {
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-38px,265px) rotate(calc(var(--i) * 14deg - 49deg))!important;}
}
@media (min-width:561px) and (max-width:820px) {
 #nebulus .card-fan {height:660px;}
 #nebulus .card-fan button {bottom:275px;}
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-24px,245px) rotate(calc(var(--i) * 12deg - 42deg))!important;}
}
@media (max-width:560px) {
 #nebulus .card-fan {height:600px;}
 #nebulus .card-fan button {bottom:270px;}
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(-12px,245px) rotate(calc(var(--i) * 10deg - 35deg))!important;}
}

/* REV40: Smartphone – Text und Nebuluskarten näher zusammenführen.
   Der Fächer rückt hoch, die gewählte Karte bleibt darunter anklickbar. */
@media (max-width: 560px) {
  #nebulus .nebulus { row-gap: 8px !important; }
  #nebulus .card-detail { min-height: 0 !important; }
  #nebulus .card-hint { margin-bottom: 0 !important; }
  #nebulus .card-fan { height: 430px !important; margin-top: 0 !important; }
  #nebulus .card-fan button { bottom: 300px !important; }
  #nebulus .card-fan button[aria-pressed="true"] {
    transform: translate(-12px,260px) rotate(calc(var(--i) * 10deg - 35deg)) !important;
  }
}

/* REV41: Mobil klare, getrennte Ebenen ohne Textüberdeckung.
   580px Kartenfläche: Fächer oben, aktive Karte darunter.
   Kein negatives Margin und keine Überlagerung des Beschreibungstextes. */
@media (max-width: 560px) {
  #nebulus .nebulus { row-gap: 10px !important; align-items: start !important; }
  #nebulus .card-detail { min-height: 0 !important; }
  #nebulus .card-hint { margin-bottom: 0 !important; }
  #nebulus .card-fan {
    height: 580px !important;
    min-height: 580px !important;
    margin-top: 0 !important;
    overflow: visible;
    isolation: isolate;
  }
  #nebulus .card-fan button { bottom: 315px !important; }
  #nebulus .card-fan button[aria-pressed="true"] {
    transform: translate(-12px, 295px) rotate(calc(var(--i) * 10deg - 35deg)) !important;
    z-index: 35 !important;
  }
}

/* REV42: Mobile Navigation vor allen Seiteninhalten anzeigen. */
@media(max-width:900px){.site-header{z-index:1000!important}.site-header .nav{z-index:1001!important}}
.footer-logo-link{display:inline-flex;flex:none;align-items:center}.footer-logo-link img{display:block}.footer-logo-link:focus-visible{outline:2px solid #d9ac58;outline-offset:4px}

/* REV44: Gewählte Nebuluskarte stets mittig unter dem Fächer, aufrecht. */
@media (min-width:821px) {
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(0,265px) rotate(0deg)!important;}
}
@media (min-width:561px) and (max-width:820px) {
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(0,245px) rotate(0deg)!important;}
}
@media (max-width:560px) {
 #nebulus .card-fan button[aria-pressed="true"] {transform:translate(0,295px) rotate(0deg)!important;}
}

/* Rev45: Gold accent for Map Editor and mobile navigation shortcut */
.map-editor-gold{color:var(--messing-hell)!important}
@media(min-width:901px){.nav-editor-link{display:none!important}}
@media(max-width:900px){.nav-editor-link>a{color:var(--messing-hell)!important}}

/* Revision 46: centered ampersand between balanced archive heading halves */
.archive-balanced-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:baseline;column-gap:.22em;width:100%;}
.archive-balanced-heading .archive-heading-left{text-align:right;white-space:nowrap;}
.archive-balanced-heading .archive-heading-amp{text-align:center;}
.archive-balanced-heading .archive-heading-right{text-align:left;white-space:nowrap;}
@media(max-width:600px){.archive-balanced-heading{display:block;text-align:center!important;}.archive-balanced-heading .archive-heading-amp{padding:0 .15em;}.archive-balanced-heading .archive-heading-left,.archive-balanced-heading .archive-heading-right{white-space:normal;}}

/* Revision 47: Archive heading remains a single line on all viewport widths. */
.archive-balanced-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:baseline;gap:.16em;width:100%;white-space:nowrap!important;letter-spacing:-.025em;}
.archive-balanced-heading .archive-heading-left{text-align:right;white-space:nowrap!important;}
.archive-balanced-heading .archive-heading-amp{text-align:center;white-space:nowrap!important;padding:0!important;}
.archive-balanced-heading .archive-heading-right{text-align:left;white-space:nowrap!important;}
.page-hero h1.archive-balanced-heading{font-size:clamp(12px, 5.0vw, 68px)!important;}
#archiv-title.archive-balanced-heading{font-size:clamp(12px, 4.3vw, 54px)!important;}
@media(max-width:600px){.archive-balanced-heading{display:grid!important;text-align:initial!important;gap:.10em!important;}.page-hero h1.archive-balanced-heading{font-size:clamp(11px, 4.7vw, 28px)!important;}#archiv-title.archive-balanced-heading{font-size:clamp(11px, 4.5vw, 28px)!important;}}

/* Rev48: companion studio logo and phase icons */
.site-header .wrap{gap:10px}
.header-mb-link{display:flex;align-items:center;justify-content:center;flex:none;margin-left:2px;max-width:58px}
.header-mb-link img{width:54px;height:40px;object-fit:contain}
.phase-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px}
.phase-symbols{display:inline-flex;align-items:center;gap:5px;vertical-align:middle}
.phase-symbols img{display:block;width:29px;height:31px;object-fit:contain}
@media(max-width:900px){.header-mb-link{max-width:43px}.header-mb-link img{width:42px;height:32px}.phase-symbols img{width:25px;height:27px}}

/* Rev49: MB logo left of XIL, more visible; preserve responsive nav. */
.site-header .header-mb-link{order:0;margin-left:0;max-width:none;width:76px;justify-content:flex-start}
.site-header .header-mb-link img{width:74px;height:52px;object-fit:contain}
.site-header .brand{order:1}
.site-header .nav-toggle,.site-header .nav{order:2}
@media(max-width:900px){.site-header .header-mb-link{width:58px;max-width:none}.site-header .header-mb-link img{width:56px;height:43px}}
@media(max-width:390px){.site-header .header-mb-link{width:48px}.site-header .header-mb-link img{width:46px;height:38px}.site-header .brand img{width:60px}}
/* Rev49: tighter story opening; focus artwork of the original card illustrations, not card lettering. */
body:has(.story) .page-hero{padding-top:clamp(90px,11vw,145px);padding-bottom:clamp(30px,4vw,50px)}
body:has(.story) .page-hero img.page-hero-bg{object-position:center 25%}
body:has(.story) .story{padding-top:clamp(24px,3.5vw,48px)}

/* Rev50: keep both logos as one compact unit on desktop and mobile. */
.site-header .header-logo-pair{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;min-width:0;margin-right:auto}
.site-header .header-logo-pair .header-mb-link,.site-header .header-logo-pair .brand{order:initial;margin:0;flex:none}
.site-header .header-logo-pair .header-mb-link{width:62px;max-width:62px;justify-content:center}
.site-header .header-logo-pair .header-mb-link img{width:62px;height:52px;object-fit:contain}
.site-header .header-logo-pair .brand img{width:74px;height:auto}
.site-header .nav-toggle{margin-left:auto}
@media(max-width:900px){.site-header .header-logo-pair{gap:5px}.site-header .header-logo-pair .header-mb-link{width:53px;max-width:53px}.site-header .header-logo-pair .header-mb-link img{width:53px;height:45px}.site-header .header-logo-pair .brand img{width:72px}.site-header .wrap{gap:12px}}
@media(max-width:390px){.site-header .header-logo-pair{gap:2px}.site-header .header-logo-pair .header-mb-link{width:48px;max-width:48px}.site-header .header-logo-pair .header-mb-link img{width:48px;height:41px}.site-header .header-logo-pair .brand img{width:65px}}
/* Rev50: crop original strength icon transparent margins for better optical scale. */
.phase-symbols img[src$="phase-staerke.png"]{height:34px;width:31px;object-fit:contain}
@media(max-width:900px){.phase-symbols img[src$="phase-staerke.png"]{height:30px;width:28px}}

/* Rev51: slightly larger MB mark while preserving paired header layout */
.site-header .header-logo-pair .header-mb-link{width:70px;max-width:70px}
.site-header .header-logo-pair .header-mb-link img{width:70px;height:58px}
@media(max-width:900px){.site-header .header-logo-pair .header-mb-link{width:59px;max-width:59px}.site-header .header-logo-pair .header-mb-link img{width:59px;height:49px}}
@media(max-width:390px){.site-header .header-logo-pair .header-mb-link{width:54px;max-width:54px}.site-header .header-logo-pair .header-mb-link img{width:54px;height:45px}}


/* REV56: centered phase blocks, slightly larger movement icon, tighter/higher CTA */
#ablauf .phases li{text-align:center;}
#ablauf .phase-num{margin-left:auto;margin-right:auto;}
#ablauf .phase-heading{justify-content:center;text-align:center;}
#ablauf .phases p{text-align:center;max-width:20ch;margin-left:auto;margin-right:auto;}
#ablauf .phase-symbols{justify-content:center;}
#ablauf .phase-symbols img[src$="phase-bewegung.png"]{width:34px;height:36px;}
@media(max-width:900px){#ablauf .phase-symbols img[src$="phase-bewegung.png"]{width:29px;height:31px;}}

#kaufen{padding-top:clamp(66px,9.2vw,118px);padding-bottom:clamp(88px,12vw,155px);}
#kaufen .wrap{transform:translateY(-16px);}
#kaufen h2{margin-bottom:.02em;}
#kaufen .xil-heading-strike{margin:-4px auto 8px!important;height:58px!important;}
#kaufen p{margin-top:0;max-width:38ch;}
#kaufen .btn-row{margin-top:22px;}
@media(max-width:820px){
  #kaufen .wrap{transform:translateY(-10px);}
  #kaufen .xil-heading-strike{margin:-2px auto 6px!important;height:52px!important;}
}


/* REV57: full-bleed story hero art and matching paired logos on archive story pages */
body:has(.story) .page-hero{background:#101116;}
body:has(.story) .page-hero img.page-hero-bg{object-position:center center;transform:scale(1.01);}
body:has(.story) .page-hero .wrap{position:relative;z-index:1;}


/* Rev58: phase symbols below text */
#ablauf .phase-grid li{display:flex;flex-direction:column;align-items:center;text-align:center;}
#ablauf .phase-num{display:block;text-align:center;}
#ablauf .phase-heading{justify-content:center;text-align:center;width:100%;}
#ablauf .phase-grid li p{margin-left:auto;margin-right:auto;}
#ablauf .phase-symbols-below{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:12px;min-height:36px;}
#ablauf .phase-symbols-below img{display:block;object-fit:contain;}
#ablauf .phase-symbols-below img[src$="phase-bewegung.png"]{width:36px;height:38px;}
#ablauf .phase-symbols-below img[src$="phase-geschick.png"]{width:29px;height:31px;}
#ablauf .phase-symbols-below img[src$="phase-staerke.png"]{width:34px;height:37px;}
#ablauf .phase-symbols-below img[src$="phase-leben.png"]{width:29px;height:31px;}
@media(max-width:900px){
  #ablauf .phase-symbols-below{margin-top:10px;gap:7px;min-height:32px;}
  #ablauf .phase-symbols-below img[src$="phase-bewegung.png"]{width:31px;height:33px;}
  #ablauf .phase-symbols-below img[src$="phase-geschick.png"]{width:25px;height:27px;}
  #ablauf .phase-symbols-below img[src$="phase-staerke.png"]{width:30px;height:33px;}
  #ablauf .phase-symbols-below img[src$="phase-leben.png"]{width:25px;height:27px;}
}
