/* =========================================================
   playle.io – Die Spielhalle
   ========================================================= */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: dark;
  --night0: #05020d;
  --night1: #0b0518;
  --night2: #1c0b33;
  --wall: #2a1240;
  --gold: #ffcf4a;
  --gold-l: #fff4b8;
  --gold-d: #9a6a12;
  --pink: #ff3d9a;
  --cyan: #44f0ff;
  --violet: #8b5cff;
  --green: #6bff8f;
  --ink: #f6efff;
  --dim: #c3b7de;
  --mute: #8e80b0;
  --panel: #110622;
  --panel2: #1a0a33;
  --line: rgba(255, 255, 255, .09);
  --pixel: 'Press Start 2P', ui-monospace, monospace;
  --vt: 'VT323', ui-monospace, monospace;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night1); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.5;
  background:
    radial-gradient(1100px 700px at 90% 110vh, rgba(255, 61, 154, .10), transparent 60%),
    radial-gradient(900px 700px at -10% 160vh, rgba(68, 240, 255, .07), transparent 60%),
    var(--night1);
  overflow-x: hidden;
  overflow-x: clip;
}
/* CRT-Scanlines über allem */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 200;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: .32;
}
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--pink); color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--gold); color: #1c0b33; padding: 10px 14px; border-radius: 10px;
  font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Topbar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--gutter);
  padding-top: max(12px, env(safe-area-inset-top));
  transition: background .35s, box-shadow .35s, backdrop-filter .35s, transform .35s var(--ease);
}
.top.scrolled {
  background: rgba(11, 5, 24, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 14px 40px -20px rgba(0, 0, 0, .9);
}
.brand {
  font-family: var(--pixel); font-size: 15px; letter-spacing: 1px; text-decoration: none;
  background: linear-gradient(180deg, var(--gold-l), var(--gold) 45%, #ff8156 72%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 2px 0 #4a0d44);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .35s, transform .35s var(--ease);
}
.top.scrolled .brand, .no-js .brand { opacity: 1; transform: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a, .nav-random {
  font-family: var(--vt); font-size: 23px; line-height: 1; color: var(--dim);
  text-decoration: none; padding: 8px 10px; border-radius: 10px; background: none; border: 0; cursor: pointer;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav-random:hover { color: var(--gold); background: rgba(255, 207, 74, .08); }
.tgl {
  width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 10px; color: var(--ink);
  background: rgba(255, 255, 255, .05); border: 1.5px solid var(--line); border-radius: 11px; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.tgl:hover { border-color: rgba(255, 207, 74, .5); color: var(--gold); }
#sndBtn { font-family: var(--body); font-size: 19px; font-weight: 900; position: relative; }
#sndBtn[aria-pressed="false"]::after {
  content: ''; position: absolute; width: 22px; height: 2px; background: var(--pink);
  transform: rotate(-45deg); border-radius: 2px; box-shadow: 0 0 0 1.5px var(--night1);
}
#sndBtn[aria-pressed="true"] { color: var(--gold); border-color: rgba(255, 207, 74, .6); box-shadow: 0 0 18px -4px rgba(255, 207, 74, .7); }
@media (max-width: 560px) {
  .nav a, .nav-random { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--night0);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 22%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(11, 5, 24, .55) 55%, var(--night1));
}
.hero-content {
  width: min(1020px, 100% - 2 * var(--gutter));
  padding: 96px 0 130px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(12px, 2.2vh, 24px);
}
.kicker {
  margin: 0;
  font-family: var(--pixel); font-size: clamp(8px, 1.15vw, 11px); line-height: 1.8; letter-spacing: .18em;
  color: var(--cyan); text-transform: uppercase;
  text-shadow: 0 0 14px rgba(68, 240, 255, .75);
}
.js .kicker { animation: rise .9s var(--ease) .15s both; }
.logo {
  width: 100%; aspect-ratio: 36.6 / 9.6;
  cursor: pointer; touch-action: manipulation;
  filter: drop-shadow(0 0 22px rgba(255, 61, 154, .5)) drop-shadow(0 0 3px rgba(255, 207, 74, .45));
  -webkit-tap-highlight-color: transparent;
}
.no-js .logo { display: none; }
.no-js .sr-only#hero-title {
  position: static !important; width: auto; height: auto; margin: 0; clip: auto; overflow: visible;
  font-family: var(--pixel); font-size: clamp(40px, 10vw, 110px); color: var(--gold);
}
.typer {
  margin: 0; min-height: 1.25em;
  font-family: var(--vt); font-size: clamp(22px, 3vw, 33px); line-height: 1.2; color: var(--ink);
  text-shadow: 0 2px 0 #1c0b33, 0 0 14px rgba(11, 5, 24, .9), 0 0 24px rgba(255, 255, 255, .2);
}
.typer .prompt { color: var(--pink); }
.typer a { text-decoration: none; color: inherit; }
.typer a:hover { color: var(--gold); }
.caret { color: var(--gold); animation: blink 1s steps(2, jump-none) infinite; }
.js .typer { animation: rise .9s var(--ease) .5s both; }

.die-stage { position: relative; display: grid; justify-items: center; margin: clamp(8px, 2vh, 22px) 0 2px; }
.js .die-stage { animation: dropIn 1.1s cubic-bezier(.3, 1.4, .5, 1) .7s both; }
.hero-die {
  --s: clamp(62px, 8.4vw, 104px);
  position: relative; width: var(--s); height: var(--s);
  perspective: calc(var(--s) * 5);
  background: none; border: 0; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero-die:focus-visible { outline-offset: 14px; border-radius: 12px; }
.hero-die.hop { animation: hop 1.5s cubic-bezier(.3, .7, .35, 1); }
.die-shadow {
  width: calc(var(--s, 90px) * 1.2); height: 14px; margin-top: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 61, 154, .7), rgba(255, 61, 154, 0));
  animation: shadowBreath 3s ease-in-out infinite;
}
.hero-die.hop + .die-shadow { animation: shadowHop 1.5s cubic-bezier(.3, .7, .35, 1); }
.die-stage { --s: clamp(62px, 8.4vw, 104px); }

.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.js .cta { animation: rise .9s var(--ease) .85s both; }
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--pixel); font-size: clamp(10px, 1.1vw, 12px); letter-spacing: .06em; line-height: 1;
  padding: 16px 20px 15px; border-radius: 12px; text-decoration: none; cursor: pointer;
  border: 0; text-transform: uppercase;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn--gold {
  color: #1c0b33;
  background: linear-gradient(180deg, var(--gold-l), var(--gold) 55%, #f5b52e);
  box-shadow: 0 5px 0 var(--gold-d), 0 0 0 3px #1c0b33, 0 10px 40px -6px rgba(255, 207, 74, .6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--gold-d), 0 0 0 3px #1c0b33, 0 14px 50px -6px rgba(255, 207, 74, .8); }
.btn--gold:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-d), 0 0 0 3px #1c0b33; }
.btn--ghost {
  color: var(--cyan); background: rgba(10, 4, 22, .55);
  box-shadow: inset 0 0 0 2px var(--cyan), 0 0 24px -6px rgba(68, 240, 255, .7), inset 0 0 18px -8px rgba(68, 240, 255, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { color: #fff; background: rgba(68, 240, 255, .14); transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(2px); }
.btn--ghost span[aria-hidden] { font-size: 1.35em; line-height: 0; }

.scroll-hint {
  position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .45);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--gold); animation: scrollDot 1.6s var(--ease) infinite;
}

/* ---------- Würfel (Hero + Dicele-Karte) ---------- */
.cube { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.face {
  position: absolute; inset: 0;
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  padding: calc(var(--s) * .12);
  background: linear-gradient(145deg, #ef3048, #d61f35 55%, #b3142a);
  border: calc(var(--s) * .055) solid #7a0d1c;
  border-radius: calc(var(--s) * .12);
  box-shadow: inset 0 0 0 calc(var(--s) * .035) rgba(255, 120, 135, .55), inset 0 calc(var(--s) * -.08) calc(var(--s) * .12) rgba(0, 0, 0, .25);
  backface-visibility: hidden;
}
.face b {
  width: 74%; height: 74%; place-self: center;
  background: #fff; border-radius: 12%;
  box-shadow: 0 calc(var(--s) * .025) 0 rgba(0, 0, 0, .3);
}
.f1 { transform: translateZ(calc(var(--s) / 2)); }
.f6 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.f2 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f5 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.f3 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.f4 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.face .tl { grid-area: 1 / 1; } .face .tr { grid-area: 1 / 3; }
.face .ml { grid-area: 2 / 1; } .face .mr { grid-area: 2 / 3; }
.face .bl { grid-area: 3 / 1; } .face .br { grid-area: 3 / 3; }
.face .c { grid-area: 2 / 2; }
.cube.idle { animation: tumble 10s linear infinite; }

/* ---------- Laufband ---------- */
.mq-wrap {
  --pad: calc(2.2vw + 8px);
  position: relative; z-index: 3; overflow: hidden;
  padding: var(--pad) 0;
  margin: calc(-46px - var(--pad)) 0 calc(-1 * var(--pad));
  pointer-events: none;
}
.marquee {
  position: relative; pointer-events: auto;
  width: 106%; margin: 0 0 0 -3%;
  transform: rotate(-2.2deg);
  background: #07030f;
  border-block: 3px solid var(--gold);
  box-shadow: 0 0 0 3px #07030f, 0 0 50px rgba(255, 207, 74, .22), 0 30px 60px -30px #000;
  overflow: hidden;
}
.marquee::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, transparent 52%, rgba(0, 0, 0, .55) 56%) 0 0 / 4px 4px;
}
.mq-row { display: flex; width: max-content; animation: mq 46s linear infinite; }
.mq-row--rev { animation-direction: reverse; animation-duration: 64s; border-top: 1px dashed rgba(255, 207, 74, .25); }
.marquee:hover .mq-row { animation-play-state: paused; }
.mq-item {
  display: flex; align-items: center; gap: 14px; padding: 7px 22px 6px; white-space: nowrap;
  font-family: var(--vt); font-size: clamp(26px, 3.2vw, 38px); line-height: 1; letter-spacing: .04em;
  color: var(--gold); text-shadow: 0 0 10px rgba(255, 207, 74, .85);
  text-transform: uppercase; text-decoration: none;
}
.mq-item svg { width: .8em; height: .8em; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(255, 207, 74, .5)); }
.mq-item .star { color: var(--pink); text-shadow: 0 0 10px var(--pink); }
.mq-row--rev .mq-item { color: var(--cyan); text-shadow: 0 0 10px rgba(68, 240, 255, .85); font-size: clamp(20px, 2.4vw, 28px); text-transform: none; }

/* ---------- Sektionen ---------- */
.section { width: min(1260px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0 0; }
.sh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.sh h2 {
  margin: 0; font-family: var(--pixel); font-weight: 400;
  font-size: clamp(17px, 2.8vw, 30px); line-height: 1.35; letter-spacing: .02em;
  text-shadow: 3px 3px 0 var(--pink), 6px 6px 0 rgba(68, 240, 255, .35);
}
.sh h2::before { content: '▸ '; color: var(--gold); text-shadow: 0 0 12px rgba(255, 207, 74, .8); }
.sh p { margin: 10px 0 0; font-family: var(--vt); font-size: clamp(20px, 2vw, 25px); line-height: 1.15; color: var(--dim); }
.sh .count { margin: 0; font-family: var(--pixel); font-size: 10px; color: var(--mute); letter-spacing: .1em; }

/* ---------- Heute ---------- */
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.day {
  --ac: var(--gold);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
  padding: 18px 20px; border-radius: var(--r); text-decoration: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 14%, var(--panel2)), var(--panel));
  border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.day::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%) -200% 0 / 200% 100% no-repeat;
  transition: background-position .9s var(--ease);
}
.day:hover { transform: translateY(-4px); border-color: var(--ac); box-shadow: 0 20px 50px -24px var(--ac); }
.day:hover::before { background-position: 200% 0; }
.day-ico {
  grid-row: span 3; width: 58px; height: 58px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .35); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line);
}
.day-ico svg { width: 34px; height: 34px; image-rendering: pixelated; }
.day:hover .day-ico svg { animation: wiggle .5s ease-in-out; }
.day-name { font-family: var(--pixel); font-size: 12px; line-height: 1.4; color: var(--ac); letter-spacing: .05em; }
.day-name b { color: var(--ink); font-weight: 400; }
.day-label { font-size: 15px; color: var(--dim); line-height: 1.3; }
.day-cd { font-family: var(--vt); font-size: 22px; line-height: 1; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.day-cd small { font-size: 18px; color: var(--mute); }
.day-cd time { color: var(--gold); text-shadow: 0 0 10px rgba(255, 207, 74, .6); font-variant-numeric: tabular-nums; letter-spacing: .06em; }

/* ---------- Filter ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 4px 14px; margin: 0 -4px 10px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent);
  mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--vt); font-size: 23px; line-height: 1; color: var(--dim);
  background: var(--panel); border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 15px 9px; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.chip b { font-family: var(--pixel); font-weight: 400; font-size: 8px; opacity: .65; }
.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, .25); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] {
  color: #1c0b33; background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 207, 74, .16), 0 8px 26px -8px rgba(255, 207, 74, .8);
}

/* ---------- Karten ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--r);
  perspective: 1100px;
}
.card[hidden] { display: none !important; }
.js .card {
  opacity: 0;
  transform: translateY(80px) rotateX(-22deg) scale(.92);
  transform-origin: 50% 0;
  transition: opacity .7s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--k, 0) * 85ms);
}
.js .card.in { opacity: 1; transform: none; }
.js .card.instant { transition: none; }
.card-link { display: block; height: 100%; color: inherit; text-decoration: none; border-radius: inherit; -webkit-tap-highlight-color: transparent; }
.card-link:focus-visible { outline: none; }
.card-inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  border-radius: inherit; overflow: hidden;
  background: linear-gradient(180deg, var(--panel2), var(--panel) 60%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 24px 50px -30px rgba(0, 0, 0, .9);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease), box-shadow .4s, border-color .4s;
  will-change: transform;
}
.card.hover .card-inner { transition: transform .12s linear, box-shadow .4s, border-color .4s; }
.card:hover .card-inner, .card-link:focus-visible .card-inner {
  border-color: color-mix(in srgb, var(--ac) 75%, transparent);
  box-shadow: 0 0 0 1px var(--ac), 0 34px 80px -26px color-mix(in srgb, var(--ac) 60%, transparent), 0 0 140px -50px var(--ac);
}
.card-link:focus-visible .card-inner { outline: 3px solid var(--gold); outline-offset: 3px; }

.stage {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  container-type: inline-size;
}
.stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 4;
  box-shadow: inset 0 -50px 60px -40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.stage-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stage > .em {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: transform .7s var(--ease);
}
.card:hover .stage > .em { transform: scale(1.07) translateY(-1.5%); }
.spot {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .3), transparent 46%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .35s;
}
.card:hover .spot { opacity: 1; }
.no {
  position: absolute; left: 12px; top: 12px; z-index: 5;
  font-family: var(--pixel); font-size: 8px; letter-spacing: .1em; color: #fff;
  background: rgba(8, 3, 18, .62); padding: 6px 8px 5px; border-radius: 7px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.badges { position: absolute; right: 10px; top: 10px; z-index: 5; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 70%; }
.badge {
  font-family: var(--pixel); font-size: 7.5px; letter-spacing: .08em; line-height: 1;
  padding: 6px 7px 5px; border-radius: 7px; color: #1c0b33; background: #fff; text-transform: uppercase;
}
.badge--gold { background: linear-gradient(180deg, var(--gold-l), var(--gold)); box-shadow: 0 0 16px rgba(255, 207, 74, .65); }
.badge--new { background: var(--pink); color: #fff; box-shadow: 0 0 16px rgba(255, 61, 154, .8); animation: newPulse 1.4s ease-in-out infinite; }
.badge--daily { background: var(--cyan); }

.holo {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(115deg,
    #ff3d9a 0%, #ffcf4a 5%, #6bff8f 10%, #44f0ff 15%, #8b5cff 20%, #ff3d9a 25%);
  background-size: 400% 400%;
  background-position: var(--mx) var(--my);
  mix-blend-mode: color-dodge;
  opacity: 0; transition: opacity .45s;
  -webkit-mask: radial-gradient(circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .45) 35%, transparent 72%);
  mask: radial-gradient(circle at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .45) 35%, transparent 72%);
}
.card:hover .holo { opacity: .3; }
.glare {
  position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: inherit;
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 48%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .35s;
}
.card:hover .glare { opacity: 1; }

.body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--vt); font-size: 19px; line-height: 1; color: var(--mute); }
.lang { font-family: var(--pixel); font-size: 7.5px; letter-spacing: .1em; color: var(--ink); border: 1.5px solid var(--line); padding: 5px 6px 4px; border-radius: 6px; }
.title {
  margin: 4px 0 0;
  font-size: calc(clamp(1.75rem, 2.9vw, 2.2rem) * var(--ts, 1));
  font-weight: var(--fw, 400);
  line-height: 1.12; letter-spacing: .01em;
  color: var(--ac);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .55), 0 0 28px color-mix(in srgb, var(--ac) 45%, transparent);
}
.title.upper { text-transform: uppercase; }
.tagline { margin: 0; font-family: var(--vt); font-size: 23px; line-height: 1.05; color: var(--ink); }
.desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--dim); }
.foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--vt); font-size: 18px; line-height: 1; color: var(--dim); padding: 3px 9px 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.play {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pixel); font-size: 9.5px; letter-spacing: .06em; line-height: 1; text-transform: uppercase;
  color: #120624; background: var(--ac); padding: 11px 12px 10px; border-radius: 9px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--ac) 45%, #000);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.card:hover .play { transform: translateY(-2px); box-shadow: 0 6px 0 color-mix(in srgb, var(--ac) 45%, #000), 0 0 26px color-mix(in srgb, var(--ac) 70%, transparent); }
.card:hover .play .arr { animation: nudge .55s ease-in-out infinite alternate; }

@media (min-width: 720px) {
  .card--featured { grid-column: span 2; }
  .card--featured .card-inner { display: grid; grid-template-columns: 1.2fr 1fr; }
  .card--featured .stage { aspect-ratio: auto; min-height: 100%; }
  .card--featured .body { padding: 26px 28px; justify-content: center; }
  .card--featured .title { font-size: calc(clamp(2rem, 3.6vw, 2.9rem) * var(--ts, 1)); }
  .card--featured .desc { font-size: 16px; }
}

/* Vom Würfel gewählt */
.card.chosen .card-inner { animation: chosen 1s ease-in-out 4; border-color: var(--gold); }
.ribbon {
  position: absolute; left: 50%; bottom: 12px; z-index: 8; translate: -50% 0;
  font-family: var(--pixel); font-size: 10px; letter-spacing: .08em; white-space: nowrap;
  color: #1c0b33; background: linear-gradient(180deg, var(--gold-l), var(--gold));
  padding: 9px 12px 8px; border-radius: 9px; box-shadow: 0 6px 0 var(--gold-d), 0 0 30px rgba(255, 207, 74, .8);
  animation: ribbonIn .6s cubic-bezier(.3, 1.6, .5, 1) both;
}

/* ---------- Bühnen-Hintergründe ---------- */
.stage--dicele .stage-bg {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff 60%, transparent), radial-gradient(1px 1px at 32% 8%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 72% 14%, #ffe9a0 60%, transparent), radial-gradient(1px 1px at 88% 30%, #fff 60%, transparent),
    radial-gradient(1px 1px at 54% 24%, #fff 60%, transparent), radial-gradient(1px 1px at 22% 36%, #fff 60%, transparent);
}
.stage--dicele .stage-bg::after {
  content: ''; position: absolute; left: -50%; right: -50%; top: 62%; bottom: -40%;
  background:
    linear-gradient(90deg, rgba(255, 61, 154, .55) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(rgba(255, 61, 154, .55) 1px, transparent 1px) 0 0 / 26px 26px;
  transform: perspective(160px) rotateX(58deg); transform-origin: 50% 0;
  -webkit-mask: linear-gradient(transparent, #000 45%); mask: linear-gradient(transparent, #000 45%);
  animation: gridRun 1.4s linear infinite;
}
.stage--bagle .stage-bg {
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0 34px, rgba(0, 0, 0, .28) 34px 37px),
              repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 9px);
}
.stage--bookle .stage-bg { background: radial-gradient(circle, rgba(232, 80, 91, .16) 2px, transparent 2.6px) 0 0 / 18px 18px; }
.stage--cookle .stage-bg {
  background:
    linear-gradient(90deg, rgba(168, 112, 63, .13) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(168, 112, 63, .13) 1px, transparent 1px) 0 0 / 22px 22px;
}
.stage--dragonle .stage-bg,
.stage--meowle .stage-bg {
  background:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff 60%, transparent), radial-gradient(1px 1px at 28% 12%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 84% 16%, #ffe9a0 60%, transparent), radial-gradient(1px 1px at 66% 28%, #fff 60%, transparent),
    radial-gradient(1px 1px at 92% 44%, #fff 60%, transparent), radial-gradient(1px 1px at 6% 52%, #fff 60%, transparent),
    radial-gradient(1.5px 1.5px at 46% 8%, #c48bff 60%, transparent);
  animation: twinkleBg 4s ease-in-out infinite alternate;
}
.stage--mathle .stage-bg {
  background:
    linear-gradient(90deg, rgba(124, 92, 255, .14) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(rgba(124, 92, 255, .14) 1px, transparent 1px) 0 0 / 16px 16px;
  -webkit-mask: radial-gradient(circle at 50% 50%, #000, transparent 75%); mask: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.stage--minele .stage-bg { background: radial-gradient(circle, rgba(255, 255, 255, .04) 1.5px, transparent 2px) 0 0 / 12px 12px; }
.stage--mysterle .stage-bg {
  background: radial-gradient(circle at 50% 50%, rgba(176, 123, 255, .35), transparent 55%);
  animation: pulseBg 3s ease-in-out infinite;
}
.stage--stample .stage-bg {
  inset: -60%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .0) 0 7.5deg, rgba(255, 140, 50, .16) 7.5deg 15deg);
  animation: spin 50s linear infinite;
}
.stage--trainle .stage-bg {
  background:
    radial-gradient(18px 8px at 20% 18%, #fff 70%, transparent 72%),
    radial-gradient(14px 7px at 26% 14%, #fff 70%, transparent 72%),
    radial-gradient(22px 9px at 70% 12%, #fff 70%, transparent 72%),
    radial-gradient(16px 7px at 77% 9%, #fff 70%, transparent 72%);
  animation: clouds 18s linear infinite;
}
.stage--keyle .stage-bg {
  background:
    repeating-linear-gradient(45deg, rgba(232, 184, 90, .07) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(-45deg, rgba(232, 184, 90, .07) 0 1px, transparent 1px 16px);
}
.stage--pharmle .stage-bg { background: radial-gradient(circle, rgba(17, 155, 90, .13) 1.6px, transparent 2px) 0 0 / 14px 14px; }

/* ---------- Embleme: allgemein ---------- */
.em .spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.em .heart { transform-box: fill-box; transform-origin: center; opacity: 0; }

/* Dicele */
.em-dicele { --s: clamp(46px, 21cqw, 140px); display: grid; place-items: center; }
.dc-wheel {
  position: absolute; left: 50%; top: 47%; width: calc(var(--s) * 2.4); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #ffcf4a 0 15deg, #ff3d9a 15deg 30deg, #8b5cff 30deg 45deg, #44f0ff 45deg 60deg);
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56% 68%, transparent 69% 72%, #000 73% 75%, transparent 76%);
  mask: radial-gradient(circle, transparent 55%, #000 56% 68%, transparent 69% 72%, #000 73% 75%, transparent 76%);
  opacity: .85; animation: spin 16s linear infinite;
}
.dc-die { position: relative; width: var(--s); height: var(--s); perspective: calc(var(--s) * 5); margin-top: -5%; }
.dc-shadow {
  position: absolute; left: 50%; top: calc(47% + var(--s) * .8); translate: -50% 0;
  width: calc(var(--s) * 1.2); height: calc(var(--s) * .2); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 61, 154, .75), transparent);
}
.dc-chip {
  position: absolute; top: -12px; left: var(--x); width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4b8, #ffcf4a 45%, #9a6a12);
  box-shadow: 0 0 8px rgba(255, 207, 74, .7);
  animation: chipFall 4.4s linear infinite; animation-delay: var(--d);
}

/* Bagle */
.em-bagle .sack { transform-box: fill-box; transform-origin: 50% 100%; animation: bagSquash 2.6s ease-in-out infinite; }
.em-bagle .coin { transform-box: fill-box; transform-origin: center; opacity: 0; animation: coinPop 2.6s cubic-bezier(.25, .7, .4, 1) infinite; }

/* Bookle */
.em-bookle .hop { transform-box: fill-box; transform-origin: 50% 100%; animation: bookHop 3.6s cubic-bezier(.45, 0, .3, 1) infinite; }
.em-bookle .b-eyes { transform-box: fill-box; transform-origin: center; animation: blinkEye 3.6s infinite; }
.em-bookle .heart { animation: heartUp 3.6s ease-out infinite; }

/* Cookle */
.em-cookle .tomato { transform-box: fill-box; transform-origin: 50% 100%; animation: toss 2.8s cubic-bezier(.4, 0, .3, 1) infinite; }
.em-cookle .t-eyes { transform-box: fill-box; transform-origin: center; animation: blinkEye 4s infinite; }
.em-cookle .st { fill: none; stroke: #d9b892; stroke-width: 3; stroke-linecap: round; opacity: 0; animation: steam 2.4s ease-out infinite; }
.em-cookle .heart { animation: heartUp 2.8s ease-out infinite; animation-delay: -.6s; }

/* Dragonle */
.em-dragonle { shape-rendering: crispEdges; }
.em-dragonle .egg { transform-box: fill-box; transform-origin: 50% 100%; animation: eggWobble 3.4s ease-in-out infinite; }
.em-dragonle .crack { stroke-dasharray: 1; stroke-dashoffset: 1; animation: crack 3.4s ease-out infinite; }
.em-dragonle .crack-glow { opacity: 0; animation: crackGlow 3.4s ease-out infinite; }
.em-dragonle .ember { transform-box: fill-box; opacity: 0; animation: ember 3.6s ease-out infinite; }

/* Mathle */
.em-mathle { display: grid; place-items: center; font-family: var(--body); }
.mt-tile {
  position: relative; z-index: 5;
  width: 24cqw; aspect-ratio: 1; display: grid; place-items: center; border-radius: 26%;
  background: linear-gradient(145deg, #9a80ff, #7c5cff 50%, #5b3df5);
  box-shadow: 0 0 0 .6cqw rgba(255, 255, 255, .12), 0 2cqw 6cqw rgba(0, 0, 0, .5), 0 0 10cqw rgba(124, 92, 255, .8);
  animation: tilePulse 3s ease-in-out infinite;
}
.mt-tile span { font-weight: 900; font-size: 15cqw; line-height: 1; color: #fff; text-shadow: 0 .6cqw 0 rgba(0, 0, 0, .25); }
.em-mathle .orb { position: absolute; left: 50%; top: 48%; z-index: 1; animation: orbY 3s ease-in-out infinite alternate; animation-delay: calc(var(--d) - 1.5s); }
.em-mathle .orb span {
  display: block; font-weight: 900; font-size: 8cqw; line-height: 1; color: #e7e0ff;
  text-shadow: 0 0 3cqw rgba(171, 149, 255, .9);
  animation: orbX 3s ease-in-out infinite alternate; animation-delay: var(--d);
}
.mt-formula {
  position: absolute; bottom: 7%; left: 0; right: 0; text-align: center;
  font-family: var(--vt); font-size: 6cqw; color: rgba(231, 224, 255, .45); letter-spacing: .1em;
}
.mt-formula sup { font-size: .6em; }

/* Meowle */
.em-meowle { shape-rendering: crispEdges; }
.em-meowle .dna { transform-box: fill-box; animation: helix 1.7s ease-in-out infinite alternate; }
.em-meowle .tail { transform-box: fill-box; transform-origin: 0% 100%; animation: tail 1.6s ease-in-out infinite alternate; }
.em-meowle .m-eyes { transform-box: fill-box; transform-origin: center; animation: blinkEye 4.2s infinite; }
.em-meowle .m-pupils { animation: look 6s ease-in-out infinite; }
.em-meowle .cat { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3s ease-in-out infinite; }

/* Minele */
.em-minele { shape-rendering: crispEdges; }
.em-minele .pick { transform-box: view-box; transform-origin: 52px 82px; animation: swing 1.5s cubic-bezier(.55, 0, .25, 1) infinite; shape-rendering: geometricPrecision; }
.em-minele .rock { transform-box: fill-box; transform-origin: 50% 100%; animation: rockHit 1.5s linear infinite; }
.em-minele .mspark { transform-box: fill-box; opacity: 0; animation: mspark 1.5s ease-out infinite; }
.em-minele .mscore { opacity: 0; animation: mscore 1.5s ease-out infinite; }
.em-minele .lamp { animation: flicker 2.2s steps(1) infinite; }

/* Mysterle */
.em-mysterle .rays { transform-box: view-box; transform-origin: 80px 50px; animation: spin 40s linear infinite; }
.em-mysterle .eye { transform-box: fill-box; transform-origin: center; animation: blinkBig 5.5s infinite; }
.em-mysterle .iris { transition: transform .25s ease-out; animation: wander 7s ease-in-out infinite; }
.em-mysterle .iris.tracking { animation: none; }
.em-mysterle .pupil { transform-box: fill-box; transform-origin: center; transition: transform .4s var(--ease); }
.card:hover .em-mysterle .pupil { transform: scale(1.45); }
.em-mysterle .ghost { opacity: 0; mix-blend-mode: screen; animation: glitch 3.3s steps(1) infinite; }
.em-mysterle .ghost.g2 { animation-delay: -.12s; }
.em-mysterle .qm { font-family: var(--vt); fill: #b07bff; opacity: .0; animation: qm 4.5s ease-in-out infinite; }

/* Stample */
.em-stample .stamp { transform-box: fill-box; transform-origin: center; animation: floatStamp 5s ease-in-out infinite; }
.em-stample .waves { animation: waves 2.4s linear infinite; }
.em-stample .sun { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.em-stample .postmark { transform-box: fill-box; transform-origin: 30% 50%; opacity: 0; animation: postmark 5s cubic-bezier(.3, 1.5, .5, 1) infinite; }
.em-stample .peel { transform-box: fill-box; transform-origin: 100% 100%; transform: scale(0); transition: transform .5s var(--ease); }
.card:hover .em-stample .peel { transform: scale(1); }

/* Trainle */
.em-trainle .train { animation: trainRun 7.5s linear infinite; }
.em-trainle .bob { animation: bob .5s ease-in-out infinite alternate; }
.em-trainle .heart { animation: heartUp 7.5s ease-out infinite; animation-delay: -4.4s; }
.em-trainle .hh, .em-trainle .mm { transform-box: view-box; transform-origin: 26px 22px; }
.em-trainle .ss { transform-box: view-box; transform-origin: 26px 22px; animation: swissSec 60s linear infinite; }

/* Keyle */
.em-keyle .key { transform-box: view-box; animation: keySwing 2.2s ease-in-out infinite alternate; }
.em-keyle .key.k1 { animation-duration: 2.9s; animation-name: keySwingS; }
.em-keyle .key.k3 { animation-duration: 3.3s; animation-name: keySwingS; animation-delay: -1s; }
.em-keyle .bell { transform-box: fill-box; transform-origin: 50% 100%; animation: bell 3s ease-out infinite; }
.em-keyle .ding { opacity: 0; animation: ding 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.em-keyle .tw { animation: twinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* Pharmle */
.em-pharmle .led { fill: #3cff9a; animation: led 2s ease-in-out infinite; }
.em-pharmle .pill { transform-box: fill-box; transform-origin: center; animation: pill 4.5s ease-in-out infinite; }
.em-pharmle .plus { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }

/* Animationen ausserhalb des Bildschirms anhalten */
.card:not(.live) .stage *, .card:not(.live) .stage *::after { animation-play-state: paused !important; }

.nojs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 18px; }
.nojs-list a { color: var(--gold); }

/* ---------- Highscore ---------- */
.score { padding-bottom: 20px; }
.board {
  position: relative; overflow: hidden;
  max-width: 760px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) clamp(18px, 5vw, 56px);
  text-align: center; border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, #1d0a38, #07030f 70%);
  border: 3px solid #2a1240;
  box-shadow: 0 0 0 6px #07030f, 0 0 0 8px rgba(255, 61, 154, .5), 0 0 80px -20px rgba(255, 61, 154, .6), inset 0 0 60px rgba(0, 0, 0, .8);
}
.board::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px);
}
.board-h {
  margin: 0 0 24px; font-family: var(--pixel); font-weight: 400; font-size: clamp(18px, 3.6vw, 30px);
  color: var(--pink); letter-spacing: .1em;
  text-shadow: 0 0 18px rgba(255, 61, 154, .8), 3px 3px 0 #4a0d44;
  animation: hueShift 6s linear infinite;
}
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.8vw, 16px); }
.board-list li {
  display: grid; grid-template-columns: 4.2em 1fr auto; align-items: baseline; gap: 10px;
  font-family: var(--pixel); font-size: clamp(10px, 1.7vw, 15px); line-height: 1.4; text-align: left;
  color: var(--c, var(--gold)); text-shadow: 0 0 12px color-mix(in srgb, var(--c, var(--gold)) 70%, transparent);
}
.board-list .lbl { overflow: hidden; white-space: nowrap; }
.board-list .lbl::after { content: ' ....................................................'; opacity: .45; }
.board-list .val { font-variant-numeric: tabular-nums; }
.insert {
  margin: 28px 0 0; font-family: var(--pixel); font-size: clamp(10px, 1.5vw, 13px); letter-spacing: .14em; color: var(--ink);
  animation: blink 1.1s steps(2, jump-none) infinite;
}

/* ---------- Footer ---------- */
.foot-main {
  width: min(1260px, 100% - 2 * var(--gutter)); margin: clamp(64px, 9vw, 110px) auto 0;
  padding: 30px 0 calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px;
  color: var(--mute); font-size: 14px;
}
.foot-brand { font-family: var(--pixel); font-size: 13px; color: var(--gold); text-decoration: none; text-shadow: 2px 2px 0 #4a0d44; }
.foot-main p { margin: 4px 0 0; }
.foot-links { display: flex; gap: 6px 18px; flex-wrap: wrap; font-family: var(--vt); font-size: 21px; }
.foot-links a { color: var(--dim); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.secret { font-family: var(--vt); font-size: 18px; color: #5a4c80; letter-spacing: .08em; }

/* ---------- Warp-Übergang ---------- */
.warp {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at var(--wx, 50%) var(--wy, 50%), var(--w1, #2a1240), var(--w2, #0b0518) 70%);
  color: var(--wink, #fff);
  clip-path: circle(0 at var(--wx, 50%) var(--wy, 50%));
  visibility: hidden; pointer-events: none;
}
.warp.on {
  visibility: visible; pointer-events: all;
  clip-path: circle(150vmax at var(--wx, 50%) var(--wy, 50%));
  transition: clip-path .75s cubic-bezier(.7, 0, .2, 1);
}
.w-speed {
  position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, color-mix(in srgb, var(--wa, #fff) 45%, transparent) 0 .8deg, transparent .8deg 7deg);
  -webkit-mask: radial-gradient(circle, transparent 12%, #000 55%); mask: radial-gradient(circle, transparent 12%, #000 55%);
  opacity: .6;
}
.warp.on .w-speed { animation: spin 2.4s linear infinite, warpZoom .9s cubic-bezier(.5, 0, .2, 1) both; }
.w-core { position: relative; display: grid; justify-items: center; gap: 18px; text-align: center; padding: 20px; }
.w-icon { width: 76px; height: 76px; }
.w-icon svg { width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .4)); }
.w-title { font-size: clamp(2.4rem, 9vw, 6rem); line-height: 1; color: var(--wa, #fff); text-shadow: 0 4px 0 rgba(0, 0, 0, .25), 0 0 40px color-mix(in srgb, var(--wa, #fff) 50%, transparent); }
.w-bar { width: min(300px, 70vw); height: 18px; padding: 3px; border: 3px solid currentColor; border-radius: 6px; }
.w-bar i { display: block; height: 100%; width: 0; background: currentColor; border-radius: 2px; }
.warp.on .w-icon { animation: warpPop .7s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
.warp.on .w-title { animation: warpPop .7s cubic-bezier(.3, 1.6, .5, 1) .22s both; }
.warp.on .w-bar i { animation: load .7s steps(10) .2s forwards; }
.w-sub { font-family: var(--pixel); font-size: 10px; letter-spacing: .14em; opacity: .85; text-transform: uppercase; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 160;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px;
  font-family: var(--vt); font-size: 22px; line-height: 1.1;
  background: #12062a; border: 2px solid var(--gold); border-radius: 16px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8), 0 0 50px -10px rgba(255, 207, 74, .5);
  transform: translate(-50%, calc(100% + 40px));
  transition: transform .55s cubic-bezier(.2, 1.4, .4, 1);
}
.toast.show { transform: translate(-50%, 0); }
.toast b { color: var(--gold); font-weight: 400; }
.toast svg { width: 30px; height: 30px; flex: none; image-rendering: pixelated; }
.toast .btn { padding: 11px 12px 10px; font-size: 9px; box-shadow: 0 3px 0 var(--gold-d); }

/* ---------- Effekt-Leinwand ---------- */
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 140; pointer-events: none; }

/* ---------- Legendär-Modus (Konami) ---------- */
.legendary .card-inner::before {
  content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--ang), #ffcf4a, #ff3d9a, #8b5cff, #44f0ff, #6bff8f, #ffcf4a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinAng 2.6s linear infinite;
}
.legendary .holo { opacity: .2; }
.legendary .title {
  background: linear-gradient(90deg, #fff4b8, #ffcf4a, #ff3d9a, #44f0ff, #6bff8f, #fff4b8) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmerText 3s linear infinite;
}
.legendary .board { box-shadow: 0 0 0 6px #07030f, 0 0 0 8px var(--gold), 0 0 120px -10px rgba(255, 207, 74, .8); }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-120px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinAng { to { --ang: 360deg; } }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes tumble { from { transform: rotateX(-20deg) rotateY(0) rotateZ(0); } to { transform: rotateX(340deg) rotateY(720deg) rotateZ(360deg); } }
@keyframes hop {
  0% { transform: translateY(0); }
  20% { transform: translateY(-95%); }
  46% { transform: translateY(0) scale(1.08, .9); }
  58% { transform: translateY(-24%) scale(1); }
  72% { transform: translateY(0); }
  84% { transform: translateY(-6%); }
  100% { transform: translateY(0); }
}
@keyframes shadowHop {
  0% { transform: scale(1); opacity: 1; } 20% { transform: scale(.45); opacity: .4; } 46% { transform: scale(1.1); opacity: 1; }
  58% { transform: scale(.8); } 72% { transform: scale(1); } 100% { transform: scale(1); }
}
@keyframes shadowBreath { 50% { transform: scale(.85); opacity: .75; } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes wiggle { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes newPulse { 50% { transform: scale(1.1); box-shadow: 0 0 26px rgba(255, 61, 154, 1); } }
@keyframes nudge { to { transform: translateX(4px); } }
@keyframes chosen { 50% { box-shadow: 0 0 0 4px var(--gold), 0 0 90px rgba(255, 207, 74, .75); } }
@keyframes ribbonIn { from { opacity: 0; transform: translateY(20px) scale(.6); } }
@keyframes twinkle { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes twinkleBg { from { opacity: .5; } to { opacity: 1; } }
@keyframes pulseBg { 50% { opacity: .5; transform: scale(1.15); } }
@keyframes gridRun { to { background-position: 0 26px, 0 26px; } }
@keyframes clouds { from { transform: translateX(-30%); } to { transform: translateX(40%); } }
@keyframes hueShift { to { filter: hue-rotate(360deg); } }
@keyframes shimmerText { to { background-position: 200% 0; } }
@keyframes warpZoom { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: .6; } }
@keyframes warpPop { from { opacity: 0; transform: scale(.4) translateY(30px); } }
@keyframes load { to { width: 100%; } }
@keyframes blinkEye { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
@keyframes heartUp {
  0%, 58% { opacity: 0; transform: translateY(8px) scale(.3); }
  64% { opacity: 1; transform: translateY(0) scale(1.15); }
  88% { opacity: 0; transform: translateY(-16px) scale(1); }
  100% { opacity: 0; }
}

/* Dicele */
@keyframes chipFall {
  0% { transform: translateY(0) rotateY(0); opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(70cqw) rotateY(var(--r, 360deg)); opacity: 0; }
}
/* Bagle */
@keyframes bagSquash {
  0%, 58%, 100% { transform: scale(1, 1); }
  64% { transform: scale(1.12, .86); }
  72% { transform: scale(.93, 1.1) translateY(-5px); }
  80% { transform: scale(1.04, .96); }
  88% { transform: scale(1); }
}
@keyframes coinPop {
  0%, 64% { opacity: 0; transform: translate(0, 10px) scale(.3); }
  68% { opacity: 1; }
  84% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(1) rotate(200deg); }
  100% { opacity: 0; transform: translate(calc(var(--dx) * 1.25), calc(var(--dy) * .3)) scale(.8) rotate(320deg); }
}
/* Bookle */
@keyframes bookHop {
  0% { transform: translate(60px, -46px) rotate(30deg); opacity: 0; }
  8% { opacity: 1; }
  30% { transform: translate(34px, -62px) rotate(-14deg); }
  52% { transform: translate(0, -4px) rotate(0deg); }
  56% { transform: translate(0, 0) scale(1.14, .86); }
  62% { transform: scale(.95, 1.06); }
  68% { transform: scale(1); }
  92% { transform: scale(1); opacity: 1; }
  100% { transform: translateY(-3px) scale(1); opacity: 0; }
}
/* Cookle */
@keyframes toss {
  0% { transform: translateY(0) rotate(0deg) scale(1.1, .9); }
  8% { transform: translateY(0) rotate(0deg) scale(1); }
  32% { transform: translateY(-34px) rotate(180deg) scale(1); }
  54% { transform: translateY(0) rotate(360deg) scale(1.12, .88); }
  62% { transform: translateY(0) rotate(360deg) scale(.96, 1.05); }
  70%, 92% { transform: translateY(0) rotate(360deg) scale(1); }
  100% { transform: translateY(0) rotate(360deg) scale(1.1, .9); }
}
@keyframes steam {
  0% { opacity: 0; transform: translateY(8px); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-14px); }
}
/* Dragonle */
@keyframes eggWobble {
  0%, 38%, 100% { transform: rotate(0); }
  44% { transform: rotate(-9deg); }
  50% { transform: rotate(8deg); }
  56% { transform: rotate(-6deg); }
  62% { transform: rotate(4deg); }
  68% { transform: rotate(0); }
}
@keyframes crack { 0%, 60% { stroke-dashoffset: 1; opacity: 1; } 72% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes crackGlow { 0%, 66% { opacity: 0; } 76% { opacity: 1; } 84% { opacity: .5; } 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx, 0), -60px); } }
/* Mathle */
@keyframes orbX { from { transform: translate(-50%, -50%) translateX(-34cqw); } to { transform: translate(-50%, -50%) translateX(34cqw); } }
@keyframes orbY { from { transform: translateY(-11cqw) scale(.62); opacity: .45; z-index: 1; } to { transform: translateY(11cqw) scale(1.12); opacity: 1; z-index: 9; } }
@keyframes tilePulse { 50% { transform: scale(1.05) rotate(-3deg); box-shadow: 0 0 0 .6cqw rgba(255, 255, 255, .18), 0 2cqw 6cqw rgba(0, 0, 0, .5), 0 0 16cqw rgba(124, 92, 255, 1); } }
/* Meowle */
@keyframes helix { from { transform: translateY(-20px); } to { transform: translateY(20px); } }
@keyframes tail { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
@keyframes look { 0%, 20% { transform: translateX(0); } 30%, 48% { transform: translateX(.6px); } 58%, 76% { transform: translateX(-.6px); } 86%, 100% { transform: translateX(0); } }
@keyframes breathe { 50% { transform: scale(1.02, .985); } }
/* Minele */
@keyframes swing {
  0% { transform: rotate(-58deg); }
  42% { transform: rotate(-68deg); }
  54% { transform: rotate(3deg); }
  59% { transform: rotate(-4deg); }
  64% { transform: rotate(0deg); }
  100% { transform: rotate(-58deg); }
}
@keyframes rockHit {
  0%, 52%, 100% { transform: none; }
  12% { transform: rotate(1.6deg); } 24% { transform: rotate(-1.6deg); } 36% { transform: rotate(1.2deg); } 48% { transform: rotate(-1deg); }
  55% { transform: translateX(2.5px) rotate(4deg); }
  59% { transform: translateX(-2px) rotate(-3deg); }
  63% { transform: rotate(1.5deg); }
  67% { transform: none; }
}
@keyframes mspark { 0%, 53% { opacity: 0; transform: translate(0, 0); } 55% { opacity: 1; } 82% { opacity: 0; transform: translate(var(--dx), var(--dy)); } 100% { opacity: 0; } }
@keyframes mscore { 0%, 54% { opacity: 0; transform: translateY(4px); } 60% { opacity: 1; } 92% { opacity: 0; transform: translateY(-12px); } 100% { opacity: 0; } }
@keyframes flicker { 0% { opacity: 1; } 31% { opacity: .75; } 33% { opacity: 1; } 62% { opacity: .85; } 64% { opacity: 1; } 88% { opacity: .7; } 90% { opacity: 1; } }
/* Mysterle */
@keyframes blinkBig { 0%, 44%, 52%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.05); } }
@keyframes wander { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-12px, -4px); } 40% { transform: translate(10px, 5px); } 60% { transform: translate(14px, -6px); } 80% { transform: translate(-6px, 7px); } }
@keyframes glitch {
  0%, 68%, 100% { opacity: 0; transform: none; }
  70% { opacity: .9; transform: translate(-4px, 1px); }
  72% { opacity: .9; transform: translate(5px, -2px); }
  74% { opacity: .6; transform: translate(-2px, 0); }
  76% { opacity: 0; }
}
@keyframes qm { 0%, 100% { opacity: 0; transform: translateY(6px); } 40%, 60% { opacity: .75; transform: translateY(0); } }
/* Stample */
@keyframes floatStamp { 50% { transform: translateY(-4px) rotate(1.5deg); } }
@keyframes waves { to { transform: translateX(-20px); } }
@keyframes postmark {
  0%, 18% { opacity: 0; transform: scale(2.4) rotate(-20deg); }
  24% { opacity: .9; transform: scale(1) rotate(-8deg); }
  27% { transform: scale(1.06) rotate(-8deg); }
  30%, 86% { opacity: .9; transform: scale(1) rotate(-8deg); }
  96%, 100% { opacity: 0; transform: scale(1) rotate(-8deg); }
}
/* Trainle */
@keyframes trainRun {
  0% { transform: translateX(-72px); animation-timing-function: cubic-bezier(.2, .6, .35, 1); }
  42% { transform: translateX(50px); }
  66% { transform: translateX(50px); animation-timing-function: cubic-bezier(.6, 0, .9, .5); }
  100% { transform: translateX(176px); }
}
@keyframes bob { to { transform: translateY(-.8px); } }
@keyframes swissSec { 0% { transform: rotate(0deg); } 97.5%, 100% { transform: rotate(360deg); } }
/* Keyle */
@keyframes keySwing { from { transform: rotate(-13deg); } to { transform: rotate(13deg); } }
@keyframes keySwingS { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes bell { 0%, 100% { transform: none; } 4% { transform: scale(1.08, .86); } 9% { transform: scale(.96, 1.06) translateY(-2px); } 14% { transform: none; } }
@keyframes ding { 0%, 3% { opacity: 0; transform: scale(.6); } 8% { opacity: 1; } 40% { opacity: 0; transform: scale(1.4); } 100% { opacity: 0; } }
/* Pharmle */
@keyframes led { 0%, 100% { opacity: .22; } 40% { opacity: 1; } }
@keyframes pill { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(180deg); } }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .card { opacity: 1; transform: none; }
  .mq-row { animation: none !important; flex-wrap: wrap; width: auto; }
  .mq-row--rev { display: none; }
  .em .heart, .em-minele .mspark, .em-minele .mscore, .em-dragonle .ember, .em-mysterle .ghost, .em-mysterle .qm, .em-keyle .ding, .em-bagle .coin { opacity: 0 !important; }
  .em-stample .postmark { opacity: .9 !important; transform: rotate(-8deg) !important; }
  .em-bookle .hop { opacity: 1 !important; transform: none !important; }
}
