/* kk-living.css — Living Home (v6.4) für index.html
 * Comic/Ben-Day-Design: cx-ambient + cx-mast + cx-streak + cx-doors + cx-ticker
 * Konsumiert Tokens aus kk-tokens.css (--paper, --ink, --yellow, --red, --font-boom, etc.)
 */

/* === BODY-RESET für Comic-Home === */
body:has(.cx-content) {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Paper-Textur: dezente Multiply-Dots über dem gesamten Viewport */
body:has(.cx-content)::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(10,10,10,.1) 1px, transparent 1.4px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: .25;
  pointer-events: none;
  z-index: 1;
}

/* === VIEW-Shell (bestehende Struktur) === */
.view.is-active { display: block; }

/* Verstecke die alten st-* Elemente in #start wenn wir das Comic-Home nutzen */
.cx-content ~ .st-shell,
.cx-content ~ .st-tabbar { display: none !important; }

/* === CONTENT-Container
 * position: fixed; inset: 0 — direkt viewport-relativ.
 * Kein JS-Timing, keine Abhängigkeit von window.innerHeight oder Eltern-Höhe.
 * Einzige zuverlässige Methode gegen iOS-PWA-Höhenschwankungen bei Navigation. */
.cx-content {
  position: fixed;
  inset: 0;
  z-index: 2;
  padding: calc(env(safe-area-inset-top, 0) + 14px) 14px calc(env(safe-area-inset-bottom, 0) + 12px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

/* === AMBIENT: floatende Bursts + Speedlines
 * Liegt ÜBER den Doors (z-index 10), bleibt pointer-events: none,
 * damit die Buttons tappbar sind. Vorher versteckten die Doors die
 * Bursts komplett. */
.cx-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}
.cx-content > *:not(.cx-ambient) { position: relative; z-index: 1; }
/* Floats brauchen auch einzeln pointer-events: none (safety) */
.cx-ambient .float,
.cx-ambient .speedline { pointer-events: none; }

.cx-ambient .float {
  position: absolute;
  font-family: var(--font-boom);
  text-transform: uppercase;
  -webkit-text-stroke: 3px #0a0a0a;
  text-shadow: 4px 4px 0 #0a0a0a;
  opacity: 0;
  white-space: nowrap;
  will-change: transform, opacity;
  letter-spacing: 0.02em;
}
/* Farben so gewählt, dass jede Float gegen den Door-Hintergrund darunter
 * kontrastiert: f1/f2 über Daily (rot) → gelb/paper, f3/f4 über Solo (blau)
 * → paper/gelb, f5 über Mehrspieler (grün) → gelb. */
.cx-ambient .float.f1 { top: 36%; left: 4%;  color: #ffd833; font-size: 28px; transform: rotate(-12deg); animation: floatPop 50s ease-in-out 5s  infinite; }
.cx-ambient .float.f2 { top: 48%; right: 2%; color: #fff8e0; font-size: 30px; transform: rotate(10deg);  animation: floatPop 50s ease-in-out 15s infinite; }
.cx-ambient .float.f3 { top: 56%; left: 2%;  color: #ffd833; font-size: 24px; transform: rotate(-6deg);  animation: floatPop 50s ease-in-out 25s infinite; }
.cx-ambient .float.f4 { top: 68%; right: 6%; color: #fff8e0; font-size: 26px; transform: rotate(-14deg); animation: floatPop 50s ease-in-out 35s infinite; }
.cx-ambient .float.f5 { top: 80%; left: 8%;  color: #ffd833; font-size: 28px; transform: rotate(8deg);   animation: floatPop 50s ease-in-out 45s infinite; }
@keyframes floatPop {
  0%, 100% { opacity: 0; transform: translate(0, 10px) scale(.6); }
  1%       { opacity: .95; transform: translate(0, 0) scale(1.1); }
  5%       { opacity: .95; transform: translate(0, -2px) scale(1); }
  8%       { opacity: 0;   transform: translate(0, -20px) scale(.9); }
}

.cx-ambient .speedline {
  position: absolute;
  width: 46px; height: 2px;
  background: var(--ink);
  opacity: 0;
  animation: speedlineSlide 2.4s ease-out infinite;
}
.cx-ambient .speedline.s1 { top: 20%; right: 0; animation-delay: 0.3s; --dir: -80px; }
.cx-ambient .speedline.s2 { top: 23%; right: 0; animation-delay: 0.7s; width: 32px; --dir: -80px; }
.cx-ambient .speedline.s3 { top: 70%; left: 0;  animation-delay: 1.4s; --dir:  80px; }
.cx-ambient .speedline.s4 { top: 74%; left: 0;  animation-delay: 1.9s; width: 28px; --dir: 80px; }
@keyframes speedlineSlide {
  0%   { opacity: 0; transform: translateX(0); }
  10%  { opacity: .7; }
  60%  { opacity: 0; transform: translateX(var(--dir, -60px)); }
  100% { opacity: 0; transform: translateX(var(--dir, -60px)); }
}

/* === SOUND-Button (oben links) === */
.cx-content .cx-sound,
button.cx-sound {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0) + 12px);
  left: 14px;
  padding: 5px 10px 5px 8px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 0;
  font-family: var(--font-head);
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 6;
  display: inline-flex;
  width: auto;
  min-width: 0;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 120ms var(--spring), box-shadow 120ms var(--spring), background 120ms;
}
.cx-sound.is-on { background: var(--yellow); }
.cx-sound.is-pressed { transform: rotate(-4deg) translate(2px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.cx-sound .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .2; border: 2px solid var(--ink); box-sizing: border-box; }
.cx-sound.is-on .dot { background: var(--red); opacity: 1; }

/* === ISSUE-Stempel (oben rechts: Datum) === */
.cx-content a.cx-issue,
a.cx-issue {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0) + 12px);
  right: 14px;
  padding: 2px 10px 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-trikot);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.02em;
  border: 2.5px solid var(--ink);
  border-radius: 0;
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--ink);
  z-index: 6;
  cursor: pointer;
  display: inline-flex;
  width: auto;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  margin: 0;
  animation: issueWobble 5s ease-in-out infinite;
}
.cx-content a.cx-issue .lbl,
a.cx-issue .lbl {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@keyframes issueWobble {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(-6deg) scale(1.03); }
}

/* === MASTHEAD === */
/* Größeres Logo braucht etwas mehr Luft nach oben, damit's unter den
 * Sound/Issue-Stempeln atmet, und etwas mehr nach unten zum Section-
 * Header. */
.cx-content .cx-mast,
.cx-mast {
  margin: 62px 0 10px !important;
  padding: 0 !important;
  text-align: center !important;
  display: block !important;
}
.cx-content .cx-mast h1,
.cx-mast h1 {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 4px !important;
  font-family: var(--font-boom) !important;
  font-weight: 400 !important;
  font-size: 1em !important;
  text-transform: uppercase !important;
  line-height: 0.9 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ink) !important;
  letter-spacing: 0.02em !important;
}
.cx-content .cx-mast h1 > span,
.cx-mast h1 > span {
  display: inline-block !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
.cx-content .cx-mast .top,
.cx-mast .top {
  font-size: 44px !important;
  -webkit-text-stroke: 2.5px #0a0a0a !important;
  text-shadow: 4px 4px 0 #0a0a0a !important;
  color: #ffd833 !important;
  animation: letterWobbleA 4.2s ease-in-out infinite;
  transform-origin: center;
}
.cx-content .cx-mast .amp,
.cx-mast .amp {
  font-size: 30px !important;
  -webkit-text-stroke: 2px #0a0a0a !important;
  text-shadow: 3px 3px 0 #0a0a0a !important;
  margin: 0 4px !important;
  color: #d7191c !important;
  animation: letterWobbleB 3.6s ease-in-out infinite;
}
/* KÖPFCHEN: creme-Fill mit dunklem Stroke + Schatten (Comic-Logo-Stil) */
.cx-content .cx-mast .bot,
.cx-mast .bot {
  font-size: 44px !important;
  -webkit-text-stroke: 2.5px #0a0a0a !important;
  text-shadow: 4px 4px 0 #0a0a0a !important;
  color: #fff8e0 !important;
  -webkit-text-fill-color: #fff8e0 !important;
  animation: letterWobbleC 4.6s ease-in-out infinite;
}

@keyframes letterWobbleA { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-2px); } }
@keyframes letterWobbleB { 0%,100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(-2deg) scale(1.12); } }
@keyframes letterWobbleC { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-2px); } }

/* === STREAK-Chip === */
.cx-streak {
  display: inline-block;
  margin: 2px auto 0;
  padding: 3px 10px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font: 400 11px/1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
  align-self: center;
  animation: streakBreath 2.6s ease-in-out infinite;
}
@keyframes streakBreath {
  0%, 100% { transform: rotate(-2deg) scale(1); box-shadow: 2px 2px 0 var(--ink); }
  50%      { transform: rotate(-1deg) scale(1.035); box-shadow: 3px 3px 0 var(--ink); }
}

/* === SECTION-Header === */
.cx-content .cx-sect,
.cx-sect {
  margin: 10px 2px 8px !important;
  font-family: var(--font-head) !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
}
.cx-content .cx-sect .ball,
.cx-sect .ball {
  width: 14px !important;
  height: 14px !important;
  display: inline-block !important;
  background: radial-gradient(circle at 35% 35%, #fff 0 4px, transparent 4.5px), #0a0a0a !important;
  border-radius: 50% !important;
  border: 2px solid #0a0a0a !important;
  animation: ballRoll 3.4s linear infinite;
  transform-origin: center;
  flex: 0 0 auto !important;
  opacity: 1 !important;
}
.cx-content .cx-sect::after,
.cx-sect::after {
  content: "" !important;
  flex: 1 !important;
  height: 3px !important;
  background: #0a0a0a !important;
  transform: skew(-12deg);
  margin-left: 4px !important;
  opacity: 1 !important;
}
@keyframes ballRoll { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* === DOORS: Daily / Solo / Multi — nehmen den verfügbaren Rest ein === */
.cx-content .cx-doors,
.cx-doors {
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
.cx-door {
  position: relative;
  padding: 10px 12px;
  min-height: 0;
  flex: 1 1 0;
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, box-shadow;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  column-gap: 12px;
  row-gap: 4px;
  color: var(--paper);
  text-decoration: none;
  transition: box-shadow 140ms var(--ease-standard);
}
.cx-door > .scene {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.cx-door > .scene svg { width: 100%; height: 100%; display: block; opacity: .95; }
.cx-door > .kicker {
  grid-column: 1; grid-row: 1;
  z-index: 3;
  font: 400 10px/1 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--ink);
  color: var(--paper);
  justify-self: start;
  align-self: start;
  transform: rotate(-2deg);
}
.cx-door > .label {
  grid-column: 1; grid-row: 2;
  z-index: 3;
  font: 400 32px/.95 var(--font-boom);
  letter-spacing: 0.01em;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 3px 3px 0 var(--ink);
  text-transform: uppercase;
  align-self: center;
  margin: 0;
  animation: labelPulse 3s ease-in-out infinite;
}
@keyframes labelPulse {
  0%, 100% { text-shadow: 3px 3px 0 var(--ink); }
  50%      { text-shadow: 4px 4px 0 var(--ink); }
}
.cx-door > .arrow {
  grid-column: 2; grid-row: 1 / span 3;
  z-index: 3;
  align-self: center;
  width: 32px; height: 32px;
  animation: arrowNudge 1.8s ease-in-out infinite;
}
.cx-door > .arrow svg { width: 100%; height: 100%; }
@keyframes arrowNudge {
  0%, 100% { transform: translateX(0) scale(1); }
  50%      { transform: translateX(3px) scale(1.06); }
}
.cx-door > .meta {
  grid-column: 1 / -1; grid-row: 3;
  z-index: 3;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-self: end;
  margin-top: 4px;
}
.cx-door > .meta .chip {
  padding: 2px 6px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 400 10px/1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 1.5px 1.5px 0 var(--ink);
}
.cx-door > .meta .chip.red    { background: var(--red); color: var(--paper); }
.cx-door > .meta .chip.yellow { background: var(--yellow); color: var(--ink); }
.cx-door > .meta .chip.live {
  background: var(--yellow); color: var(--ink);
  position: relative; padding-left: 14px;
  animation: liveBeat 1.2s ease-in-out infinite;
}
.cx-door > .meta .chip.live::before {
  content: "";
  position: absolute; left: 5px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 1.5px var(--ink);
  animation: liveDotBlink 1.2s ease-in-out infinite;
}
@keyframes liveBeat {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.04); }
  50%      { transform: scale(1); }
}
@keyframes liveDotBlink {
  0%, 60%, 100% { opacity: 1; }
  30%           { opacity: .3; }
}

/* Door-Farben */
.cx-door.d1 {
  background-image: radial-gradient(#8a0f12 1.2px, transparent 1.6px), linear-gradient(var(--comic-red), var(--comic-red));
  background-size: 5px 5px, 100% 100%;
}
.cx-door.d2 {
  background-image: radial-gradient(#0c4a99 1.2px, transparent 1.6px), linear-gradient(var(--comic-blue), var(--comic-blue));
  background-size: 5px 5px, 100% 100%;
}
.cx-door.d3 {
  background-image:
    radial-gradient(rgba(10,10,10,.22) 1px, transparent 1.4px),
    repeating-linear-gradient(90deg, #0e6b31 0 24px, #0a5e2b 24px 48px);
  background-size: 5px 5px, 100% 100%;
}

/* Door-Atem-Rhythmen */
.cx-door.d1 { animation: doorBreath1 3.8s ease-in-out infinite; }
.cx-door.d2 { animation: doorBreath2 4.4s ease-in-out infinite; }
.cx-door.d3 { animation: doorBreath3 4.1s ease-in-out infinite; }
@keyframes doorBreath1 {
  0%, 100% { transform: rotate(-0.8deg) translateY(0); box-shadow: 5px 5px 0 var(--ink); }
  50%      { transform: rotate(-0.4deg) translateY(-2px); box-shadow: 6px 7px 0 var(--ink); }
}
@keyframes doorBreath2 {
  0%, 100% { transform: rotate(0.6deg) translateY(0); box-shadow: 5px 5px 0 var(--ink); }
  50%      { transform: rotate(1deg) translateY(-2px); box-shadow: 6px 7px 0 var(--ink); }
}
@keyframes doorBreath3 {
  0%, 100% { transform: rotate(-0.5deg) translateY(0); box-shadow: 5px 5px 0 var(--ink); }
  50%      { transform: rotate(-0.9deg) translateY(-2px); box-shadow: 6px 7px 0 var(--ink); }
}

.cx-door.is-pressed {
  animation: none;
  transform: translate(2px, 3px) scale(.99);
  box-shadow: 3px 3px 0 var(--ink);
  filter: brightness(.93);
  transition: none;
}

/* === TICKER === */
.cx-content .cx-ticker,
.cx-ticker {
  margin-top: 10px !important;
  margin-bottom: 4px !important;
  padding: 7px 12px !important;
  background: #f3ecd4 !important;
  background-color: #f3ecd4 !important;
  border: 2.5px solid #0a0a0a !important;
  box-shadow: 3px 3px 0 #0a0a0a !important;
  transform: rotate(-0.3deg);
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  font-family: var(--font-head) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a !important;
  flex: 0 0 auto !important;
  min-height: 32px !important;
  transition: transform 120ms var(--spring), box-shadow 120ms var(--spring);
}
.cx-ticker.is-pressed { transform: rotate(-0.3deg) translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.cx-content .cx-ticker .cell,
.cx-ticker .cell {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  color: #0a0a0a !important;
}
.cx-content .cx-ticker .n,
.cx-ticker .n {
  font-family: var(--font-trikot) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em !important;
  animation: tickerPulse 2.8s ease-in-out infinite;
  display: inline-block !important;
}
.cx-ticker .cell:nth-child(1) .n { animation-delay: 0s; }
.cx-ticker .cell:nth-child(3) .n { animation-delay: 0.9s; }
.cx-ticker .cell:nth-child(5) .n { animation-delay: 1.8s; }
.cx-ticker .cell.hl .n { color: var(--red); }
.cx-ticker .sep { opacity: .35; }
@keyframes tickerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); color: var(--red); }
}

/* === POW burst overlay === */
.pow {
  position: fixed;
  z-index: 100;
  font: 400 46px/1 var(--font-boom);
  text-transform: uppercase;
  color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-12deg) scale(.3);
  opacity: 0;
  animation: powpop 720ms var(--spring) forwards;
  white-space: nowrap;
}
.pow.red  { color: var(--red); }
.pow.yellow { color: var(--yellow); }
@keyframes powpop {
  0%   { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(.3); }
  25%  { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1.2); }
  55%  { transform: translate(-50%, -50%) rotate(-10deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(1.35); }
}

/* === TABBAR unten — WEG. Fühlte sich webseite-mäßig an.
 * Tabelle wird über den Spieltag-Stempel oben rechts erreicht
 * (der href="liga.html" trägt bereits). */
#start > .cx-content > .st-tabbar,
.cx-content .st-tabbar,
nav.st-tabbar,
.st-tabbar {
  display: none !important;
}

/* === REJOIN Banner — position:fixed, kein Layout-Shift der Doors === */
.rejoin {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 50 !important;
  margin: 0 !important;
  /* Layout: Text links, Buttons rechts — alles in einer Zeile */
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
  /* Comic-Stil: Ink-Hintergrund, gelber Schatten nach oben */
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-top: 2.5px solid #0a0a0a !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: 0 -4px 0 var(--yellow) !important;
  font: 400 12px/1.3 var(--font-head) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}
/* Text-Block: nimmt den verfügbaren Platz */
.rejoin > div {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}
.rejoin > div b {
  font-weight: 400 !important;
  font-size: 13px !important;
  color: var(--paper) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.rejoin > div span {
  font-size: 11px !important;
  color: rgba(244,240,230,.55) !important;
  white-space: nowrap !important;
}
/* Zurück-Button: Comic Yellow */
.rejoin .btn-primary,
.rejoin .btn {
  flex-shrink: 0 !important;
  background: var(--yellow) !important;
  color: #0a0a0a !important;
  border: 2px solid #0a0a0a !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 0 rgba(10,10,10,.5) !important;
  font: 700 13px/1 var(--font-head) !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 8px 14px !important;
  min-height: 36px !important;
  cursor: pointer !important;
}
/* Verwerfen-Link */
.rejoin .btn-link {
  flex-shrink: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(244,240,230,.55) !important;
  font: 400 11px/1 var(--font-head) !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: underline !important;
  padding: 4px 0 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

/* === SPLASH SCREEN === */
#splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  background-color: #f3ecd4;
  background-image: radial-gradient(rgba(10,10,10,.07) 1px, transparent 1.4px);
  background-size: 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity;
}
#splash.sp-out  { opacity: 0; transition: opacity 300ms ease; }
#splash.sp-done { display: none; }

/* === PAGE VEIL (Seiten-Transition) === */
#page-veil {
  position: fixed;
  inset: 0;
  z-index: 490;
  background: #f3ecd4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
#page-veil.pv-active {
  opacity: 1;
  pointer-events: all;
}

.sp-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.sp-logo {
  font-family: var(--font-boom);
  line-height: 0.9;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: spPulse 1.6s ease-in-out infinite;
}
.sp-top { font-size: 48px; text-transform: uppercase; color: #ffd833; -webkit-text-stroke: 2.5px #0a0a0a; text-shadow: 4px 4px 0 #0a0a0a; }
.sp-amp { font-size: 32px; color: #d7191c; -webkit-text-stroke: 2px #0a0a0a; text-shadow: 3px 3px 0 #0a0a0a; }
.sp-bot { font-size: 48px; text-transform: uppercase; color: #fff8e0; -webkit-text-stroke: 2.5px #0a0a0a; text-shadow: 4px 4px 0 #0a0a0a; }
.sp-sub {
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0a0a;
  opacity: .7;
  margin: 4px 0 0;
}
.sp-cta {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 36px);
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a0a0a;
  opacity: 0;
  transition: opacity 500ms ease;
  animation: none;
}
#splash.sp-ready .sp-cta {
  opacity: 0.55;
  animation: ctaPulse 1.8s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.25; }
}
@keyframes spPulse {
  0%, 100% { transform: rotate(-1.5deg) scale(1); }
  50%       { transform: rotate(-2.5deg) scale(1.03); }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  #splash.sp-out { animation: none; opacity: 0; transition: opacity 200ms; }
  #splash.sp-ready .sp-cta { animation: none; opacity: 0.55; }
  .cx-ambient .float, .cx-ambient .speedline,
  .cx-mast .top, .cx-mast .amp, .cx-mast .bot,
  .cx-streak, .cx-sect .ball,
  .cx-door, .cx-door > .arrow, .cx-door > .label,
  .cx-door > .meta .chip.live, .cx-door > .meta .chip.live::before,
  .cx-ticker .n, .cx-issue, .pow {
    animation: none !important;
  }
}
