:root {
  --bg: #060a24;
  --panel: rgba(12, 20, 48, 0.92);
  --panel-2: rgba(20, 32, 72, 0.9);
  --line: rgba(90, 170, 255, 0.22);
  --cyan: #33e0ff;
  --cyan-2: #1a8cff;
  --pink: #ff3d8b;
  --gold: #ffd84d;
  --text: #eaf3ff;
  --muted: #8ea3cc;
  /* Sichere Ränder (Notch, Statusleiste, Gestenleiste). Android-App mit Edge-to-Edge (ab Android 15 Pflicht):
     Capacitor 8 (SystemBars, capacitor.config.json) zeichnet bei WebView 140+ unter die Leisten und setzt
     zusätzlich --safe-area-inset-*; bei älteren WebViews rückt es die ganze Seite selbst ein (Werte dann 0). */
  --safe-t: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-b: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --safe-l: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
  --safe-r: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ui-zoom: 1;        /* Skalierung der gesamten Oberfläche auf großen Bildschirmen */
  --wrap: 680px;       /* Inhaltsbreite der Panel-Screens */
}

/* Große Bildschirme (Tablet, Laptop, PC, 4K): Oberfläche proportional vergrößern,
   damit Buttons & Texte nicht winzig im leeren Raum stehen. Basis = Handy-Layout. */
@media (min-width: 700px) and (min-height: 700px) { :root { --ui-zoom: 1.12; } }
@media (min-width: 1100px) and (min-height: 860px) { :root { --ui-zoom: 1.25; } }
@media (min-width: 1500px) and (min-height: 1050px) { :root { --ui-zoom: 1.5; } }
@media (min-width: 2200px) and (min-height: 1400px) { :root { --ui-zoom: 1.9; } }
@media (min-width: 3000px) and (min-height: 1900px) { :root { --ui-zoom: 2.4; } }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--font);
  user-select: none; -webkit-user-select: none;
  touch-action: none; overscroll-behavior: none;
}

canvas#game { position: fixed; inset: 0; display: block; }

#ui { position: fixed; inset: 0; pointer-events: none; zoom: var(--ui-zoom); }
#ui > * { pointer-events: auto; }
#ui > #hud, #ui > #tutorial { pointer-events: none; }
#hud button { pointer-events: auto; }

.hidden { display: none !important; }

button {
  font-family: inherit; color: inherit; border: 0; background: none; cursor: pointer;
  touch-action: manipulation;
}
button:active { transform: scale(0.97); }

/* ---------- Shard Icon ---------- */
.shard-ico {
  display: inline-block; width: 0.8em; height: 1.05em; vertical-align: -0.12em;
  background: linear-gradient(135deg, #ffffff 0%, #8ff8ff 45%, #2bb8ff 100%);
  clip-path: polygon(50% 0, 100% 38%, 50% 100%, 0 38%);
  filter: drop-shadow(0 0 4px rgba(80, 230, 255, 0.8));
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(8, 14, 36, 0.75); border: 1px solid var(--line);
  font-weight: 800; font-size: 15px;
}
.pill.big { font-size: 18px; padding: 8px 14px; }

/* ---------- HUD ---------- */
#hud {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(10px + var(--safe-t)) calc(14px + var(--safe-r)) 0 calc(14px + var(--safe-l));
}
.hud-dist { font-size: 34px; font-weight: 900; line-height: 1; text-shadow: 0 0 12px rgba(51, 224, 255, 0.6), 0 2px 0 rgba(0,0,0,.5); }
.hud-dist small { font-size: 16px; margin-left: 3px; color: var(--cyan); }
.hud-sub { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 3px; letter-spacing: 0.06em; }
.hud-right { display: flex; gap: 8px; align-items: center; }
.hud-combo {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px 6px; position: relative;
  border-radius: 10px; background: rgba(40, 8, 40, 0.7); border: 1px solid rgba(255, 106, 213, 0.5);
  color: #ff6ad5; font-weight: 900; text-shadow: 0 0 10px rgba(255, 106, 213, 0.7);
}
.hud-combo b { font-size: 22px; line-height: 1; }
.hud-combo span { font-size: 11px; letter-spacing: 0.1em; }
@media (max-width: 420px) { .hud-combo span { display: none; } .hud-combo b { font-size: 18px; } }
.hud-combo i { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden; }
.hud-combo em { display: block; height: 100%; width: 100%; background: #ff6ad5; transform-origin: left center; will-change: transform; }
.bump { animation: bump .22s ease-out; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(8, 14, 36, 0.75); border: 1px solid var(--line);
}
.icon-btn svg { width: 20px; height: 20px; fill: var(--text); }
.tag { background: var(--gold); color: #1a1200; border-radius: 4px; padding: 1px 5px; margin-right: 6px; font-weight: 900; }

#tutorial {
  position: absolute; left: 0; right: 0; bottom: calc(14% + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px;
  animation: fadeIn .4s ease;
}
.tut-text { font-weight: 900; font-size: 20px; letter-spacing: 0.05em; text-shadow: 0 0 14px var(--cyan); }
.tut-sub { color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 700; }
.tut-hand {
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 10px;
  border: 3px solid var(--cyan); box-shadow: 0 0 20px var(--cyan);
  animation: tap 1s ease-in-out infinite;
}
@keyframes tap { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.7); opacity: 0.6; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Screens ---------- */
.screen {
  position: absolute; inset: 0;
  padding: calc(12px + var(--safe-t)) calc(16px + var(--safe-r)) calc(12px + var(--safe-b)) calc(16px + var(--safe-l));
  animation: fadeIn .25s ease;
}

#menu {
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% 40%, rgba(6, 10, 36, 0.15), rgba(6, 10, 36, 0.75) 75%);
}
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.profile { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; max-width: 380px; text-align: left; flex-wrap: wrap; }
.profile .premium-badge { flex: none; }
.lvl-hex {
  width: 54px; height: 60px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1f3a7a, #0b1638);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  position: relative;
}
.lvl-hex::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
}
.lvl-hex.can-prestige { background: linear-gradient(160deg, #b8860b, #4a3200); animation: prestigeReady 1.6s ease-in-out infinite; }
.lvl-hex.can-prestige small { color: var(--gold); }
@keyframes prestigeReady { 0%, 100% { filter: brightness(1); transform: scale(1); } 50% { filter: brightness(1.35); transform: scale(1.06); } }
.lvl-hex small { font-size: 9px; font-weight: 800; color: var(--cyan); letter-spacing: 0.08em; }
.lvl-hex b { font-size: 22px; font-weight: 900; line-height: 1; }
.lvl-hex.sm { width: 44px; height: 50px; }
.lvl-hex.sm b { font-size: 18px; }
.xp { flex: 1; min-width: 0; }
.xp-bar { height: 12px; border-radius: 99px; background: rgba(8, 14, 36, 0.85); border: 1px solid var(--line); overflow: hidden; }
.xp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); box-shadow: 0 0 10px var(--cyan); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.xp span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.prestige { color: var(--gold); font-weight: 900; font-size: 14px; text-shadow: 0 0 8px rgba(255, 216, 77, 0.6); }

.menu-main {
  flex: 1; display: flex; flex-direction: column; justify-content: center; justify-content: safe center; align-items: center;
  gap: 18px; min-height: 0; padding: 10px 8px; margin: 0 -8px;   /* seitlich Luft: Abzeichen (z. B. „8“ am Season Pass) ragen über die Ecke */
  /* Notfall: wenn der Bildschirm zu niedrig ist, scrollen statt überlappen */
  overflow-y: auto; overflow-x: hidden; touch-action: pan-y; scrollbar-width: none;
}
.menu-main::-webkit-scrollbar { display: none; }
.logo-wrap { text-align: center; }
.logo {
  margin: 0; display: flex; flex-direction: column; line-height: 0.88;
  font-weight: 900; font-style: italic; letter-spacing: 0.02em;
  font-size: clamp(38px, min(14vw, 9vh), 84px);
  background: linear-gradient(180deg, #ffffff 0%, #bfefff 45%, #33e0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(51, 224, 255, 0.55)) drop-shadow(0 4px 0 #0a2a6a);
}
.logo span:last-child { margin-left: 0.6em; }
.tagline { margin: 10px 0 0; font-weight: 800; letter-spacing: 0.12em; font-size: 13px; color: var(--cyan); text-transform: uppercase; }

.menu-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: min(340px, 100%); }
.btn-play {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 20px 14px; border-radius: 18px;
  background: linear-gradient(180deg, #5ff0ff, #18a8ff 60%, #1272e6);
  box-shadow: 0 0 0 2px rgba(255,255,255,.25) inset, 0 6px 0 #0a3f8f, 0 0 30px rgba(51, 224, 255, 0.5);
  color: #04122e;
}
.btn-play::after { box-shadow: 0 0 44px rgba(51, 224, 255, 0.75); animation: glowPulse 2.2s ease-in-out infinite; }
.btn-play.small { padding: 12px 18px; }
.btn-play.small::after, .btn-play.ev-play::after { animation: none; }
.play-title { font-size: 26px; font-weight: 900; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 6px; }
.btn-play.small .play-title { font-size: 20px; }
.play-sub { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
/* Pulsierende Glows: Der Schein liegt fest auf ::after, animiert wird nur dessen opacity.
   So blendet die GPU nur über, statt den weichgezeichneten Schatten jeden Frame neu zu malen
   (ein animiertes box-shadow drückte das Menü auf älteren Handys wie dem Galaxy S7 auf ~12 FPS). */
.btn-play::after, .btn-event::after, .sp-tile.ready::after, .ld.today::after, .cr-push::after, .streak-chip.danger::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; will-change: opacity;
}
@keyframes glowPulse { 50% { opacity: 1; } }
@keyframes glowIn { to { opacity: 1; } }

.btn-secondary {
  display: flex; flex-direction: column; align-items: center; padding: 11px 16px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-weight: 900; letter-spacing: 0.08em; font-size: 16px;
}
.btn-secondary small { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; margin-top: 2px; }
.btn-secondary.small { font-size: 14px; padding: 9px 14px; display: inline-flex; }
.btn-secondary:disabled { opacity: 0.4; }
.btn-ghost { padding: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }
.btn-danger { padding: 9px 14px; border-radius: 12px; background: rgba(255, 61, 90, 0.15); border: 1px solid rgba(255, 61, 90, 0.5); color: #ff7a8f; font-weight: 900; letter-spacing: 0.06em; }
.best-line { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }
.best-line b { color: var(--gold); margin-left: 4px; }

.menu-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 600px; width: 100%; margin: 0 auto; }
.menu-nav button {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  padding: 10px 2px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  font-size: 11px; font-weight: 800; letter-spacing: 0.02em;
}
.menu-nav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge.num {
  width: auto; height: 18px; min-width: 18px; padding: 0 5px; top: 4px; right: 6px; border-radius: 99px;
  font-size: 11px; font-style: normal; font-weight: 900; line-height: 18px; color: #fff; text-align: center;
}
.menu-nav svg { width: 24px; height: 24px; fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 6px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); }

/* ---------- Panel-Screens ---------- */
.panel-screen { display: flex; flex-direction: column; background: rgba(5, 8, 26, 0.94); }
.panel-screen header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-screen header > div:nth-child(2) { flex: 1; min-width: 0; }
.panel-screen > header, .panel-screen > .tabs, .panel-screen > .rk-worlds, .panel-screen > .rk-me {
  width: 100%; max-width: var(--wrap); margin-left: auto; margin-right: auto;
}
.panel-screen.wide { --wrap: 1080px; }   /* Raster-Screens (Welten, Skins) dürfen breiter werden */
.panel-screen h2 { margin: 0; font-weight: 900; letter-spacing: 0.06em; font-size: 22px; }
.panel-screen header p { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.count { color: var(--cyan); font-size: 16px; white-space: nowrap; }
.back {
  width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 30px; line-height: 36px; font-weight: 700; color: var(--cyan);
}
.scroll { flex: 1; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px 10px; }

.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { flex: 1; padding: 9px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-weight: 900; letter-spacing: 0.08em; color: var(--muted); }
.tab.active { background: linear-gradient(180deg, #2bd2ff, #1a8cff); color: #04122e; border-color: transparent; }

.tab-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 8px var(--pink); margin-left: 4px; vertical-align: 1px; }

/* Missionen */
.mission-wrap { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.mission-timer { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.06em; }
.mission-list { display: flex; flex-direction: column; gap: 8px; }
.mission {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
}
.mission .mi {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: rgba(51, 224, 255, 0.1); border: 2px solid rgba(51, 224, 255, 0.35); font-size: 18px;
}
.mission .mi svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mission .mt { flex: 1; min-width: 0; }
.mission .mt b { display: block; font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.mbar { position: relative; height: 16px; border-radius: 99px; background: rgba(8, 14, 36, 0.85); border: 1px solid var(--line); overflow: hidden; }
.mbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); box-shadow: 0 0 8px var(--cyan); }
.mbar span { position: relative; display: block; text-align: center; font-size: 10px; font-weight: 900; line-height: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.mission .mr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.mreward { font-weight: 900; font-size: 15px; display: flex; flex-direction: column; align-items: flex-end; }
.mreward small { font-size: 10px; color: var(--muted); font-weight: 800; }
.mclaim {
  padding: 6px 12px; border-radius: 10px; font-weight: 900; font-size: 12px; letter-spacing: 0.06em; color: #042010;
  background: linear-gradient(180deg, #7dffa8, #22d36b); box-shadow: 0 0 14px rgba(61, 255, 122, 0.5);
  animation: claimPulse 1.2s ease-in-out infinite;
}
@keyframes claimPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.mclaimed { color: #3dff7a; font-weight: 900; font-size: 18px; }
.mission.done { border-color: rgba(61, 255, 122, 0.55); box-shadow: 0 0 14px rgba(61, 255, 122, 0.15); }
.mission.done .mbar i { background: linear-gradient(90deg, #22d36b, #7dffa8); box-shadow: 0 0 8px #3dff7a; }
.mission.claimed { opacity: 0.55; }
.mission.claimed .mbar i { background: #2a8a55; box-shadow: none; }
.mission-bonus {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 216, 77, 0.12), rgba(255, 216, 77, 0.04)); border: 1px dashed rgba(255, 216, 77, 0.45);
}
.mission-bonus b { display: block; color: var(--gold); font-weight: 900; letter-spacing: 0.08em; font-size: 14px; }
.mission-bonus > div > span { font-size: 12px; color: var(--muted); font-weight: 700; }
.mission-bonus.ready { border-style: solid; box-shadow: 0 0 18px rgba(255, 216, 77, 0.3); }
.mission-bonus.claimed { opacity: 0.55; }
.unlock.mission { background: rgba(61, 255, 122, 0.1); border-color: rgba(61, 255, 122, 0.4); color: #c4ffd8; }

/* Top-Bar rechts */
.top-right { display: flex; gap: 8px; align-items: center; flex: none; }
.shard-btn .plus {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; margin-left: 2px;
  background: linear-gradient(180deg, #5ff0ff, #18a8ff); color: #04122e; font-size: 16px; line-height: 1;
}
.icon-btn svg.stroke { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; }
.premium-badge {
  display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 900; letter-spacing: 0.1em;
  color: #2a1a00; background: linear-gradient(180deg, #fff0a8, #ffc21a); box-shadow: 0 0 12px rgba(255, 194, 26, 0.5);
}
.menu-nav .nav-shop { border-color: rgba(255, 194, 26, 0.55); }
.menu-nav .nav-shop svg { stroke: var(--gold); }

.grid-h { grid-column: 1 / -1; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; color: var(--cyan); margin: 8px 2px 0; }
.grid-h:first-child { margin-top: 0; }
.item .price.shop { background: linear-gradient(180deg, #fff0a8, #ffc21a); color: #2a1a00; font-size: 10px; }
.world-card .wc-sig { margin-top: 4px; font-size: 11px; font-weight: 900; color: var(--gold); letter-spacing: 0.04em; }

/* Konto-Chip im Menü */
.xp .acc-chip { margin-top: 2px; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.xp .acc-chip.in { color: var(--cyan); }

/* Profil */
.pf-wrap { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.pf-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
}
.pf-avatar { width: 96px; height: 96px; flex: none; border-radius: 50%; background: rgba(255,255,255,0.04); border: 2px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pf-avatar canvas { width: 96px; height: 96px; }
.pf-info { min-width: 0; }
.pf-info h3 { margin: 0 0 4px; font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-word; }
.pf-info p { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); word-break: break-all; }
/* Premium-Hervorhebung */
.pf-card.premium {
  border: 2px solid transparent;
  background:
    linear-gradient(150deg, rgba(60, 40, 0, 0.92), rgba(30, 14, 60, 0.95)) padding-box,
    linear-gradient(120deg, #fff0a8, #ffc21a 40%, #b57bff 70%, #ffd84d) border-box;
  box-shadow: 0 0 34px rgba(255, 194, 26, 0.35);
}
.pf-card.premium .pf-avatar { border-color: #ffd84d; box-shadow: 0 0 18px rgba(255, 216, 77, 0.6); }
.pf-card.premium h3 { color: #ffe9a8; text-shadow: 0 0 12px rgba(255, 194, 26, 0.6); }
.pf-ribbon {
  position: absolute; top: 14px; right: -34px; transform: rotate(35deg); padding: 3px 40px;
  background: linear-gradient(180deg, #fff0a8, #ffc21a); color: #2a1a00; font-size: 10px; font-weight: 900; letter-spacing: 0.15em;
}
.pf-premium { padding: 12px 16px; border-radius: 16px; background: linear-gradient(90deg, rgba(255, 194, 26, 0.16), rgba(12, 20, 48, 0.9)); border: 1px solid rgba(255, 194, 26, 0.5); }
.pf-premium-h { font-weight: 900; color: var(--gold); letter-spacing: 0.08em; font-size: 14px; }
.pf-premium-h small { color: #d9c9a0; font-weight: 700; letter-spacing: 0; margin-left: 4px; }
.pf-premium ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; font-weight: 700; line-height: 1.6; }
.pf-premium li::marker { color: var(--gold); }
.pf-upsell {
  display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 194, 26, 0.12), rgba(12, 20, 48, 0.9)); border: 1px dashed rgba(255, 194, 26, 0.6);
}
.pf-upsell b { color: var(--gold); font-weight: 900; font-size: 15px; }
.pf-upsell span { color: var(--muted); font-size: 12px; font-weight: 700; }
.pf-benefits { margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; font-weight: 700; line-height: 1.8; }
.pf-btns, .pf-manage { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-rank { margin: 10px 0 0 !important; color: var(--gold) !important; font-weight: 800 !important; }
.crown { font-style: normal; margin-right: 4px; }
.admin-a {
  display: inline-block; font-weight: 900; color: #8fb8ff;
  text-shadow: 0 0 4px #2a6aff, 0 0 9px #2a6aff, 0 0 16px rgba(42, 106, 255, 0.8);
  animation: adminGlow 2s ease-in-out infinite;
}
@keyframes adminGlow { 50% { text-shadow: 0 0 3px #2a6aff, 0 0 6px rgba(42, 106, 255, 0.6); } }

/* Anmelden / Formulare */
.auth-card { gap: 8px; }
.auth-tabs { margin-bottom: 2px; }
.auth-info { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.fld { display: flex; flex-direction: column; gap: 4px; text-align: left; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.fld input, .name-input { font-size: 16px; }
.fld input {
  width: 100%; padding: 11px 12px; border-radius: 12px; border: 2px solid var(--line); background: rgba(4, 8, 24, 0.9);
  color: var(--text); font: 700 16px var(--font); outline: none; user-select: text; -webkit-user-select: text; touch-action: manipulation;
}
.fld input:focus { border-color: var(--cyan); }
.check { display: flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--cyan-2); flex: none; }
.small-link { padding: 4px; font-size: 12px; letter-spacing: 0.02em; text-decoration: underline; }
.danger-btn { background: linear-gradient(180deg, #ff7a8f, #e0304f) !important; color: #fff !important; box-shadow: 0 6px 0 #7a1020 !important; }
.buy-btn.sm { padding: 6px 12px; font-size: 12px; box-shadow: 0 3px 0 #0a3f8f; }
button:disabled { opacity: 0.6; }

/* Ranking */
.rank-btn { border-color: rgba(255, 216, 77, 0.45); }
.rank-btn > span { color: var(--gold); }
.name-pill { cursor: pointer; font-size: 13px; max-width: 150px; overflow: hidden; white-space: nowrap; }
.rk-worlds { display: flex; gap: 6px; overflow-x: auto; touch-action: pan-x; margin: -4px 0 10px; padding-bottom: 2px; }
.chip { flex: none; padding: 6px 12px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-weight: 800; font-size: 12px; color: var(--muted); }
.chip.active { background: var(--cyan-2); color: #fff; border-color: transparent; }
.rk-wrap { max-width: var(--wrap); margin: 0 auto; }
.rk-list { display: flex; flex-direction: column; gap: 6px; }
.rk-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
}
.rk-row canvas { width: 34px; height: 34px; flex: none; }
.rk-rank { width: 30px; flex: none; text-align: center; font-weight: 900; font-size: 18px; color: var(--muted); }
.rk-name { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-name small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.rk-score { font-weight: 900; font-size: 16px; white-space: nowrap; }
.rk-row.m1 { border-color: rgba(255, 216, 77, 0.7); background: linear-gradient(90deg, rgba(255, 216, 77, 0.16), var(--panel)); }
.rk-row.m1 .rk-rank { color: var(--gold); font-size: 22px; }
.rk-row.m2 { border-color: rgba(200, 214, 235, 0.6); }
.rk-row.m2 .rk-rank { color: #d4def0; font-size: 21px; }
.rk-row.m3 { border-color: rgba(230, 150, 90, 0.6); }
.rk-row.m3 .rk-rank { color: #e8a06a; font-size: 20px; }
.rk-row.me { border-color: var(--cyan); box-shadow: 0 0 14px rgba(51, 224, 255, 0.3); }
.rk-row.me .rk-name { color: var(--cyan); }
.rk-empty { text-align: center; color: var(--muted); font-weight: 700; padding: 30px 10px; line-height: 1.6; }
.rk-me {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; padding: 10px 14px; border-radius: 14px;
  background: var(--panel-2); border: 1px solid var(--cyan); font-weight: 800; font-size: 13px; color: var(--muted);
}
.rk-me:empty { display: none; }
.rk-me b { color: var(--text); font-size: 20px; }
.name-input {
  box-sizing: border-box; width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: rgba(4, 8, 24, 0.9);
  color: var(--text); font: 800 18px var(--font); text-align: center; outline: none;
  user-select: text; -webkit-user-select: text; touch-action: manipulation;
}
.name-input:focus { border-color: var(--cyan); }
.name-error { margin: 0; min-height: 16px; color: #ff7a8f; font-size: 12px; font-weight: 700; }

/* Shop */
.shop-wrap { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.test-banner { padding: 8px 12px; border-radius: 10px; background: rgba(255, 138, 31, 0.15); border: 1px dashed #ff8a1f; color: #ffc48a; font-size: 12px; font-weight: 800; text-align: center; }
.shop-h { margin: 6px 2px 0; font-size: 13px; letter-spacing: 0.12em; color: var(--cyan); }
.info-btn { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 4px; padding: 0; vertical-align: 1px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; font: italic 900 11px/1 Georgia, serif; letter-spacing: 0; cursor: pointer; opacity: 0.75; }
.info-btn.on, .info-btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.info-pop { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(31, 13, 43, 0.9); border: 1px solid rgba(192, 123, 255, 0.35); font-size: 12px; font-weight: 600; line-height: 1.45; color: #e2d4f5; }
.buy-btn {
  padding: 9px 16px; border-radius: 12px; font-weight: 900; font-size: 15px; letter-spacing: 0.04em; color: #04122e;
  background: linear-gradient(180deg, #5ff0ff, #18a8ff); box-shadow: 0 4px 0 #0a3f8f; white-space: nowrap;
}
.buy-btn:disabled { opacity: 0.45; filter: grayscale(0.5); cursor: default; }
.owned-tag { padding: 8px 12px; border-radius: 12px; font-weight: 900; font-size: 13px; color: #3dff7a; background: rgba(61, 255, 122, 0.12); text-align: center; }
.premium-card {
  position: relative; padding: 16px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 194, 26, 0.18), rgba(120, 60, 255, 0.18) 60%, rgba(12, 20, 48, 0.95));
  border: 2px solid rgba(255, 194, 26, 0.6); box-shadow: 0 0 30px rgba(255, 194, 26, 0.2);
  display: flex; flex-direction: column; gap: 8px;
}
.premium-card h3 { margin: 6px 0 2px; font-size: 22px; font-weight: 900; }
.premium-card p { margin: 0; color: #d9c9a0; font-size: 13px; font-weight: 700; }
.premium-card ul { margin: 0; padding-left: 18px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.premium-card li::marker { color: var(--gold); }
.premium-card .buy-btn { background: linear-gradient(180deg, #fff0a8, #ffc21a); color: #2a1a00; box-shadow: 0 4px 0 #9a6a00; font-size: 18px; padding: 12px; }
.pc-skins, .pk-skins { display: flex; gap: 4px; }
.pc-skins canvas, .pk-skins canvas, .offer-card canvas { width: 64px; height: 64px; }
/* Ohne aspect-ratio (Chrome < 88, z. B. Galaxy S7) nähme height: auto die Pixelhöhe des Canvas → feste Höhe,
   object-fit hält die Figur beim Schrumpfen unverzerrt */
.pk-skins canvas { min-width: 0; flex: 0 1 64px; height: 64px; object-fit: contain; }
@supports (aspect-ratio: 1) { .pk-skins canvas { height: auto; aspect-ratio: 1; } }
.offer-card {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 138, 46, 0.18), rgba(12, 20, 48, 0.95)); border: 1px solid rgba(255, 138, 46, 0.55);
}
.offer-card > div { flex: 1; min-width: 0; }
.offer-card b, .pack-card b, .shard-card b { display: block; font-size: 16px; font-weight: 900; }
.offer-card span, .pack-card span, .shard-card span { font-size: 12px; color: var(--muted); font-weight: 700; }
.shop-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pack-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.pack-card .buy-btn, .pack-card .owned-tag { margin-top: auto; }
.shop-shards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.shard-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.shard-card .sc-ico { font-size: 34px; height: 44px; display: grid; place-items: center; }
.shard-card .buy-btn { width: 100%; margin-top: 4px; }
.shard-card .tag2 { position: absolute; top: -8px; right: 8px; padding: 2px 7px; border-radius: 6px; font-style: normal; font-size: 10px; font-weight: 900; background: var(--pink); color: #fff; }
.premium-card.owned, .pack-card.owned { opacity: 0.8; }
/* Premium-Abo: Monats- und Jahrestarif */
.pc-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.pc-plan { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px 10px; border-radius: 14px; background: rgba(8, 14, 36, 0.7); border: 1px solid rgba(255, 194, 26, 0.35); text-align: center; min-width: 0; }
.pc-plan.best { border: 2px solid var(--gold); box-shadow: 0 0 16px rgba(255, 216, 77, 0.3); }
.pc-plan.on { border-color: #3dff7a; }
.pc-plan b { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; color: var(--gold); }
.pc-plan span { font-size: 17px; font-weight: 900; }
.pc-plan small { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.pc-plan .buy-btn, .pc-plan .owned-tag { margin-top: auto; font-size: 15px; padding: 10px 6px; }
.pc-plan .tag2 { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 900; background: var(--pink); color: #fff; white-space: nowrap; }
.premium-card .pc-fine { font-size: 11px; color: var(--muted); text-align: center; }
/* Battlepass (Shop) */
.bp-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px;
  background: linear-gradient(150deg, rgba(181, 123, 255, 0.22), rgba(255, 79, 216, 0.12) 55%, rgba(12, 20, 48, 0.95));
  border: 2px solid rgba(181, 123, 255, 0.65); box-shadow: 0 0 26px rgba(181, 123, 255, 0.2);
}
.bp-card.owned { opacity: 0.85; }
.bp-card h3 { margin: 6px 0 2px; font-size: 22px; font-weight: 900; }
.bp-card p { margin: 0; color: #d6c8f5; font-size: 13px; font-weight: 700; }
.bp-card ul { margin: 0; padding-left: 18px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.bp-card li::marker { color: #c98bff; }
.bp-card .buy-btn { background: linear-gradient(180deg, #e3c8ff, #a35cff); color: #1a0533; box-shadow: 0 4px 0 #5a1fa8; font-size: 18px; padding: 12px; }
.bp-badge { display: inline-block; padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; background: linear-gradient(90deg, #c98bff, #ff4fd8); color: #1a0533; }
.restore { align-self: center; }
.shop-legal { margin: 0; text-align: center; font-size: 11px; color: #5d6c92; font-weight: 600; }
.buy-desc { margin: 0; color: var(--muted); font-weight: 700; font-size: 14px; }
.buy-price { font-size: 30px; font-weight: 900; color: var(--gold); }
.buy-note { margin: 0; font-size: 12px; color: #ffc48a; font-weight: 700; }
.over-note { font-size: 12px; font-weight: 800; color: #ffc48a; }
.mreroll { width: 30px; height: 30px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); color: var(--cyan); font-size: 18px; font-weight: 900; line-height: 1; }

/* Welten */
.world-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.world-card {
  position: relative; text-align: left; border-radius: 16px; overflow: hidden; border: 2px solid var(--line);
  min-height: 130px; padding: 0; display: flex; flex-direction: column; justify-content: flex-end;
}
.world-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-card .wc-info { position: relative; padding: 10px 12px; background: linear-gradient(180deg, transparent, rgba(4, 6, 20, 0.92) 40%); }
.world-card h3 { margin: 0; font-size: 17px; font-weight: 900; letter-spacing: 0.04em; }
.world-card p { margin: 2px 0 0; font-size: 12px; color: #c0cde8; font-weight: 600; }
.world-card .wc-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; font-weight: 800; color: var(--cyan); letter-spacing: 0.04em; }
.world-card.selected { border-color: var(--cyan); box-shadow: 0 0 18px rgba(51, 224, 255, 0.5); }
.world-card.locked .wc-info, .world-card.locked canvas { filter: grayscale(0.85) brightness(0.55); }
.world-card .lock {
  position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 9px; border-radius: 99px;
  background: rgba(0, 0, 0, 0.7); font-size: 11px; font-weight: 900; color: var(--gold); letter-spacing: 0.04em;
}
.world-card .sel { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 9px; border-radius: 99px; background: var(--cyan); color: #04122e; font-size: 11px; font-weight: 900; }

/* Skins */
.item-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.item {
  display: flex; flex-direction: column; align-items: center; padding: 8px 6px 8px; border-radius: 14px;
  background: var(--panel); border: 2px solid var(--line);
}
.item canvas { width: 84px; height: 84px; }
.item .trail-prev { width: 84px; height: 84px; display: grid; place-items: center; }
.item .trail-prev i { display: block; width: 76px; height: 14px; border-radius: 99px; }
.item .name { font-weight: 900; font-size: 13px; margin-top: 2px; letter-spacing: 0.03em; }
.item .price { margin-top: 6px; width: 100%; padding: 5px 0; border-radius: 8px; font-size: 12px; font-weight: 900; text-align: center; background: rgba(255,255,255,0.06); color: var(--muted); }
.item .price.buy { background: linear-gradient(180deg, #5ff0ff, #18a8ff); color: #04122e; }
.item .price.buy.poor { background: rgba(255,255,255,0.08); color: #ff8fa3; }
.item .price.equipped { background: rgba(61, 255, 122, 0.15); color: #3dff7a; }
.item.equipped { border-color: #3dff7a; box-shadow: 0 0 14px rgba(61, 255, 122, 0.3); }
.item.locked canvas, .item.locked .trail-prev { opacity: 0.35; filter: grayscale(1); }
.item .excl { font-size: 9px; font-weight: 900; color: var(--gold); letter-spacing: 0.08em; }

/* Trophäen */
.trophy-list { display: flex; flex-direction: column; gap: 8px; max-width: var(--wrap); margin: 0 auto; }
.trophy { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.trophy .ti {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.12);
}
.trophy .ti svg { width: 22px; height: 22px; fill: none; stroke: #5a6a90; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trophy.done .ti { background: radial-gradient(circle, #ffe680, #c99410); border-color: #fff2b0; box-shadow: 0 0 12px rgba(255, 216, 77, 0.5); }
.trophy.done .ti svg { stroke: #3a2600; }
.trophy .tt { flex: 1; min-width: 0; }
.trophy b { display: block; font-size: 15px; font-weight: 900; }
.trophy span { font-size: 12px; color: var(--muted); font-weight: 600; }
.trophy .tr { font-weight: 900; font-size: 13px; white-space: nowrap; }
.trophy:not(.done) b { color: #b4c2e0; }

/* Optionen */
.set-list { display: flex; flex-direction: column; gap: 10px; max-width: var(--wrap); margin: 0 auto; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-weight: 800; }
.set-row input { display: none; }
.lang-pick { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.switch { width: 48px; height: 28px; border-radius: 99px; background: #26304f; position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.set-row input:checked + .switch { background: var(--cyan-2); }
.set-row input:checked + .switch::after { transform: translateX(20px); }
.set-card { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.set-card h3 { margin: 0 0 6px; font-size: 14px; letter-spacing: 0.08em; color: var(--cyan); }
.set-card.danger h3 { color: #ff7a8f; }
.set-card p { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.4; }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.stat-list b { color: var(--text); float: right; }
.version { text-align: center; color: #4c5b80; font-size: 12px; font-weight: 700; }

/* Freunde & Duelle */
.social-btn { position: relative; border-color: rgba(181, 123, 255, 0.5); }
.social-btn > span { color: #c9a8ff; }
.social-btn .badge.num { top: -7px; right: -7px; }
.tag.duel { background: #b57bff; color: #1a0633; }
.so-wrap { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.so-new {
  margin-bottom: 4px; color: #1a0633;
  background: linear-gradient(180deg, #e2c8ff, #a46bff 60%, #7f45f0);
  box-shadow: 0 0 0 2px rgba(255,255,255,.25) inset, 0 6px 0 #3e1a8f, 0 0 26px rgba(181, 123, 255, 0.45);
}
.duel-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.duel-card.open { border-color: rgba(181, 123, 255, 0.75); box-shadow: 0 0 18px rgba(181, 123, 255, 0.25); }
.dc-head b { display: block; font-size: 15px; font-weight: 900; }
.dc-head span { font-size: 12px; font-weight: 700; color: var(--muted); }
.dc-list { display: flex; flex-direction: column; gap: 3px; }
.dc-row, .fr-row, .pick-row { display: flex; align-items: center; gap: 8px; border-radius: 10px; border: 1px solid transparent; }
.dc-row { padding: 2px 10px; background: rgba(255, 255, 255, 0.03); }
.dc-row canvas, .fr-row canvas, .pick-row canvas { width: 30px; height: 30px; flex: none; }
.dc-row .rk-rank { width: 20px; font-size: 15px; }
.dc-row .rk-name { font-size: 14px; }
.dc-row b { font-weight: 900; font-size: 14px; white-space: nowrap; }
.dc-row b.dc-wait { color: var(--muted); font-size: 12px; font-weight: 800; }
.dc-row.me { border-color: rgba(51, 224, 255, 0.6); }
.dc-row.me .rk-name { color: var(--cyan); }
.dc-row.lead .rk-rank { color: var(--gold); }
.ghost-ico { font-style: normal; margin-right: 4px; }
.dc-play { margin-top: 4px; color: #1a0633; background: linear-gradient(180deg, #e2c8ff, #a46bff); box-shadow: 0 4px 0 #3e1a8f; }
.dc-play.armed { background: linear-gradient(180deg, #fff0a8, #ffc21a); box-shadow: 0 4px 0 #9a6a00; color: #2a1a00; }
.dc-note { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.dc-wait-note { margin-top: 2px; padding: 7px 10px; border-radius: 10px; text-align: center; font-size: 12px; font-weight: 800; color: #c9a8ff; background: rgba(181, 123, 255, 0.08); }
.dc-wait-note.win { color: var(--gold); background: rgba(255, 216, 77, 0.1); }
.duel-card.over { opacity: 0.85; }
.so-add { display: flex; gap: 8px; }
.so-add .name-input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 16px; text-align: left; }
.so-add .buy-btn { padding: 9px 12px; font-size: 13px; }
.so-wrap .name-error:empty { display: none; }
.fr-row { padding: 6px 8px 6px 10px; background: var(--panel); border-color: var(--line); border-radius: 12px; }
.fr-btn {
  width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--muted); font-size: 16px; font-weight: 900;
}
.fr-btn.ok { color: #3dff7a; border-color: rgba(61, 255, 122, 0.5); }
.fr-btn.duel { color: #c9a8ff; border-color: rgba(181, 123, 255, 0.6); }
.fr-btn.armed { width: auto; padding: 0 8px; font-size: 11px; color: #ff7a8f; border-color: #ff7a8f; }
.pick-card { width: min(380px, 100%); }
/* Spielerprofil anderer Spieler (Klick auf einen Namen) */
[data-player] { cursor: pointer; }
[data-player]:hover .rk-name { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
#playerModal .player-card { width: min(380px, 100%); text-align: left; gap: 0; padding: 0 0 12px; overflow-x: hidden; }
#playerBody { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 4px; }
.player-card #btnPlayerClose { margin: 0 16px; }
.pl-head {
  display: flex; align-items: center; gap: 14px; margin: 0 -16px; padding: 18px 16px 14px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(51, 224, 255, 0.18), transparent 60%), linear-gradient(180deg, rgba(20, 32, 72, 0.9), transparent);
  border-bottom: 1px solid var(--line);
}
.pl-head.premium { background: radial-gradient(120% 90% at 0% 0%, rgba(255, 194, 26, 0.24), transparent 60%), linear-gradient(180deg, rgba(48, 36, 10, 0.75), transparent); border-bottom-color: rgba(255, 194, 26, 0.4); }
.pl-avatar { width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(51, 224, 255, 0.55); box-shadow: 0 0 16px rgba(51, 224, 255, 0.25); }
.pl-avatar canvas { width: 76px; height: 76px; }
.pl-head.premium .pl-avatar { border-color: #ffd84d; box-shadow: 0 0 18px rgba(255, 194, 26, 0.5); }
.pl-id { min-width: 0; text-align: left; }
.pl-id h3 { margin: 0; font-size: 22px; font-weight: 900; line-height: 1.15; word-break: break-word; }
.pl-id h3 .premium-badge { vertical-align: 4px; margin-left: 4px; }
.pl-head.premium .pl-id h3 { color: #ffe9a8; }
.pl-id p { margin: 3px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.pl-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pl-chips .lg-chip { font-size: 10px; padding: 2px 7px; margin: 0; }
.pl-crew { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 1px 8px 1px 2px; border-radius: 6px; font-size: 12px; font-weight: 800; color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-crew b { padding: 1px 5px; border-radius: 4px; font-size: 10px; letter-spacing: 0.06em; color: #04121e; background: var(--cyan); }
.pl-bio { margin: 0; padding: 10px 12px; border-left: 3px solid var(--cyan); border-radius: 4px 12px 12px 4px; background: rgba(51, 224, 255, 0.06); font-size: 14px; font-weight: 600; line-height: 1.45; font-style: italic; color: var(--text); overflow-wrap: anywhere; }
.pl-premium {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: 14px;
  background: linear-gradient(90deg, rgba(255, 194, 26, 0.22), rgba(255, 194, 26, 0.04)); border: 1px solid rgba(255, 194, 26, 0.55);
  box-shadow: 0 0 14px rgba(255, 194, 26, 0.18);
}
.pl-premium b { color: var(--gold); font-weight: 900; letter-spacing: 0.08em; font-size: 13px; }
.pl-premium span { margin-left: auto; font-size: 12px; font-weight: 700; color: #d9c9a0; }
.pl-admin {
  background: linear-gradient(90deg, rgba(42, 106, 255, 0.28), rgba(42, 106, 255, 0.05)); border-color: rgba(77, 140, 255, 0.65);
  box-shadow: 0 0 14px rgba(42, 106, 255, 0.25);
}
.pl-admin b { color: #6fa4ff; }
.pf-bio .pl-bio { margin-bottom: 10px; }
.pl-bio.empty { font-size: 12px; color: var(--muted); border-left-color: var(--line); background: rgba(255, 255, 255, 0.03); }
.pl-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pl-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); text-align: center; min-width: 0; }
.pl-tile b { font-size: 18px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.pl-tile b small { font-size: 12px; color: var(--muted); font-weight: 800; }
.pl-tile span { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pl-tile.hi b { color: var(--cyan); }
.pl-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pl-sec h4 .lg-chip { font-size: 10px; padding: 1px 7px; letter-spacing: 0.04em; }
.pl-worlds { display: flex; flex-direction: column; gap: 5px; }
.pl-world { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.03); border-left: 3px solid var(--wc); font-size: 13px; font-weight: 800; }
.pl-world span, .pl-world b { position: relative; z-index: 1; }
.pl-world span small { color: var(--muted); font-weight: 700; margin-left: 4px; }
.pl-world i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--wc) 22%, transparent), transparent); }
.pl-world.none { color: var(--muted); border-left-color: rgba(255, 255, 255, 0.12); }
.pl-world.none b { font-weight: 700; }
.pl-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding-top: 2px; }
/* Melden & Blockieren (unauffällig unter dem Profil) */
.pl-mod { display: flex; justify-content: center; gap: 18px; margin-top: -4px; }
.pl-mod button { padding: 6px 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.pl-mod button.armed { color: #ff7a8f; }
.pl-blocked { padding: 8px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #ff9aa9; background: rgba(255, 90, 120, 0.08); border: 1px solid rgba(255, 90, 120, 0.35); }
.report-card { width: min(380px, 100%); }
.report-reasons { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.report-reasons .chip.active { background: #ff5a78; color: #fff; }
.report-note { font-size: 14px; font-weight: 600; text-align: left; resize: none; }
.blk-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.blk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-weight: 800; font-size: 14px; }
.blk-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-loading { padding: 40px 0; text-align: center; color: var(--muted); font-weight: 700; }
.pick-rounds { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pick-rounds span { font-size: 12px; font-weight: 900; letter-spacing: 0.1em; color: var(--muted); margin-right: 4px; }
.pick-rounds .chip { min-width: 46px; font-size: 16px; font-weight: 900; }
.pick-rounds .chip.active { background: #a46bff; color: #1a0633; }
.pick-tools { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 900; color: #c9a8ff; }
.pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 44vh; overflow-y: auto; touch-action: pan-y; text-align: left; }
.pick-row { padding: 4px 10px; background: rgba(255, 255, 255, 0.03); cursor: pointer; }
.pick-row input { display: none; }
.pick-box { position: relative; width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid var(--line); }
.pick-row.on { border-color: rgba(181, 123, 255, 0.7); background: rgba(181, 123, 255, 0.12); }
.pick-row.on .pick-box { background: #a46bff; border-color: #e2c8ff; }
.pick-row.on .pick-box::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 900; color: #1a0633; }
.unlock.duel { background: rgba(181, 123, 255, 0.12); border-color: rgba(181, 123, 255, 0.45); color: #e6d6ff; }
.unlock.duel.win { background: rgba(255, 216, 77, 0.14); border-color: rgba(255, 216, 77, 0.5); color: #ffe9a8; }
.over-btns .social-btn { padding: 8px 14px; font-size: 14px; }
@media (orientation: landscape) and (max-height: 560px) {
  .menu-actions .btn-secondary { padding: 6px 12px; font-size: 14px; }
  .menu-actions .btn-secondary small { font-size: 10px; margin-top: 0; }
}

/* ---------- Modals ---------- */
#authModal, #formModal, #pickModal, #playerModal, #loginModal, #installModal { z-index: 5; }
/* öffnet sich aus dem Spielerprofil heraus → muss darüber liegen */
#reportModal { z-index: 6; }
.modal { display: flex; align-items: center; justify-content: center; background: rgba(3, 5, 18, 0.62); }
.card {
  width: min(340px, 100%); max-height: 100%; overflow-y: auto; touch-action: pan-y;
  display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center;
  padding: 20px 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(51, 224, 255, 0.12);
}
.card.wide { width: min(400px, 100%); padding: 16px 18px; gap: 8px; }
.card h2 { margin: 0 0 4px; font-weight: 900; letter-spacing: 0.1em; }

.ring { position: relative; width: 110px; height: 110px; margin: 4px auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: rgba(255,255,255,0.1); }
.ring-fg { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px var(--cyan)); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 900; }

.over-head { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 900; letter-spacing: 0.12em; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.newbest { color: #1a1200; background: var(--gold); padding: 3px 8px; border-radius: 6px; letter-spacing: 0.06em; animation: pop .5s ease; box-shadow: 0 0 16px rgba(255, 216, 77, 0.6); }
@keyframes pop { 0% { transform: scale(0.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
/* Neuer Rekord: goldene Karte, pulsierendes Badge, Konfetti */
#over.record .card { border-color: rgba(255, 216, 77, 0.7); animation: recordGlow 1.6s ease-in-out infinite alternate; }
#over.record .newbest { animation: pop .5s ease, recordBadge 1.2s ease-in-out .5s infinite alternate; }
#over.record .over-dist b { color: #fff3c4; text-shadow: 0 0 22px rgba(255, 216, 77, 0.8); }
#over.record .over-dist { animation: pop .6s ease; }
.record-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
@keyframes recordGlow { from { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 216, 77, 0.25); } to { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 48px rgba(255, 216, 77, 0.6); } }
@keyframes recordBadge { from { transform: scale(1); } to { transform: scale(1.08); box-shadow: 0 0 26px rgba(255, 216, 77, 0.9); } }
@media (prefers-reduced-motion: reduce) { #over.record .card, #over.record .newbest, #over.record .over-dist { animation: none; } }
.over-dist { font-size: 64px; font-weight: 900; line-height: 1; text-shadow: 0 0 20px rgba(51, 224, 255, 0.6); }
.over-dist small { font-size: 24px; color: var(--cyan); margin-left: 4px; }
.over-best { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: 0.1em; }
.over-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.over-stats > div { padding: 8px 4px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.over-stats b { font-size: 20px; font-weight: 900; }
.over-stats small { font-size: 9px; white-space: nowrap; font-weight: 800; color: var(--muted); letter-spacing: 0.04em; }
.over-stats .shard-ico { font-size: 14px; }
.over-xp { display: flex; align-items: center; gap: 10px; text-align: left; }
.unlocks { display: flex; flex-direction: column; gap: 6px; }
.unlock { padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 800; text-align: left; background: rgba(255, 216, 77, 0.1); border: 1px solid rgba(255, 216, 77, 0.35); color: #ffe9a8; animation: fadeIn .4s ease both; }
.unlock.world { background: rgba(51, 224, 255, 0.1); border-color: rgba(51, 224, 255, 0.4); color: #bff6ff; }
.over-btns { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }

@media (orientation: landscape) and (max-height: 560px) {
  .card.wide { width: min(620px, 100%); display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-items: center; }
  .card.wide > .over-head, .card.wide > .over-dist, .card.wide > .over-best { grid-column: 1; }
  .card.wide > .over-stats, .card.wide > .over-xp, .card.wide > .unlocks, .card.wide > .over-btns { grid-column: 2; }
  .card.wide > .over-head { grid-row: 1; } .card.wide > .over-dist { grid-row: 2 / 4; } .card.wide > .over-best { grid-row: 4; }
  .over-dist { font-size: 56px; }
}

/* ---------- Toast ---------- */
.toast {
  position: absolute; left: 50%; top: calc(64px + var(--safe-t)); transform: translateX(-50%);
  padding: 10px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--cyan);
  font-weight: 800; font-size: 14px; box-shadow: 0 0 20px rgba(51, 224, 255, 0.35); pointer-events: none;
  animation: fadeIn .25s ease; max-width: 90%; text-align: center;
  z-index: 60;   /* Rückmeldungen immer sichtbar, auch über offenen Fenstern */
}

/* ---------- Testschalter (versteckt) ---------- */
.version { user-select: none; -webkit-user-select: none; }
.test-card { width: min(400px, 100%); max-height: 100%; overflow-y: auto; }
.test-now { margin: 0; font-size: 12px; font-weight: 700; color: var(--cyan); }
.test-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.test-card .login-h { margin: 6px 0 0; }
.test-card .name-input { font-size: 15px; }
.test-badge {
  position: absolute; left: 50%; top: calc(2px + var(--safe-t)); transform: translateX(-50%); z-index: 50;
  padding: 1px 8px; border-radius: 6px; background: #ff5a78; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0.15em;
  pointer-events: none; opacity: 0.85;
}

/* ---------- Event (Geisternacht) ---------- */
.btn-event {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 6px; border-radius: 16px; text-align: left;
  background: linear-gradient(110deg, #3a0f52 0%, #5a1a2e 55%, #8a3a08 100%);
  border: 1px solid rgba(255, 138, 26, 0.7); box-shadow: 0 0 22px rgba(255, 138, 26, 0.35), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.btn-event::after { box-shadow: 0 0 30px rgba(192, 123, 255, 0.55); animation: glowPulse 2.6s ease-in-out infinite; }
.btn-event canvas { width: 44px; height: 44px; flex: none; }
.btn-event .ev-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.btn-event b { font-size: 16px; font-weight: 900; letter-spacing: 0.08em; color: #ffb35c; text-shadow: 0 0 10px rgba(255, 138, 26, 0.6); }
.btn-event small { font-size: 11px; font-weight: 700; color: #e9d3ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-event .ev-timer { flex: none; font-size: 11px; font-weight: 900; letter-spacing: 0.04em; color: #1a0800; background: #ff8a1a; border-radius: 8px; padding: 3px 7px; }
.btn-event .badge.num { top: -7px; right: -7px; }

.tag.event { background: #ff8a1a; color: #1a0800; }
.tab.ev-tab { color: #ffb35c; }
.tab.ev-tab.active { background: linear-gradient(180deg, #ffb35c, #ff7a1a); color: #1a0800; }
.unlock.event { background: rgba(255, 138, 26, 0.12); border-color: rgba(255, 138, 26, 0.5); color: #ffd9b0; }
.unlock.event.dim { opacity: 0.75; font-weight: 700; }

.ev-screen { background: radial-gradient(120% 60% at 80% 0%, rgba(90, 26, 120, 0.55), transparent 60%), rgba(7, 2, 15, 0.96); }
.ev-screen h2 { color: #ffb35c; text-shadow: 0 0 14px rgba(255, 138, 26, 0.5); }
.ev-wrap { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.ev-hero { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 138, 26, 0.5); min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; }
.ev-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-hero-info { position: relative; padding: 10px 12px; background: linear-gradient(180deg, transparent, rgba(7, 2, 15, 0.94) 35%); }
.ev-hero-info p { margin: 6px 0 8px; font-size: 13px; font-weight: 600; color: #e2d4f5; line-height: 1.4; }
.ev-chip { display: inline-block; font-size: 10px; font-weight: 900; letter-spacing: 0.1em; padding: 2px 8px; border-radius: 6px; background: #8dff5a; color: #0b1a04; }
.ev-chip.soon { background: #c07bff; color: #1a0633; }
.ev-chip.over { background: #8ea3cc; color: #0b1020; }
.ev-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ev-stats div { background: rgba(31, 13, 43, 0.85); border: 1px solid rgba(192, 123, 255, 0.3); border-radius: 10px; padding: 5px 8px; text-align: center; }
.ev-stats small { display: block; font-size: 9px; font-weight: 900; letter-spacing: 0.08em; color: #b9a3d6; }
.ev-stats b { font-size: 15px; font-weight: 900; white-space: nowrap; }
.btn-play.ev-play { background: linear-gradient(180deg, #ffc46b, #ff8a1a 60%, #d4560a); box-shadow: 0 0 0 2px rgba(255,255,255,.25) inset, 0 6px 0 #7a2a04, 0 0 30px rgba(255, 138, 26, 0.5); color: #1a0800; animation: none; }
.btn-play.ev-play:disabled { filter: grayscale(0.8) brightness(0.6); }
.ev-track { display: flex; flex-direction: column; gap: 6px; }
.ev-ms { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: rgba(31, 13, 43, 0.85); border: 1px solid rgba(192, 123, 255, 0.25); }
.ev-ms.got { border-color: rgba(141, 255, 90, 0.55); background: linear-gradient(90deg, rgba(141, 255, 90, 0.1), rgba(31, 13, 43, 0.85)); }
.ev-ico { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; }
.ev-ico canvas { width: 40px; height: 40px; }
.ev-ico .shard-ico { transform: scale(1.4); }
.ev-trail { display: block; width: 36px; height: 8px; border-radius: 99px; }
.ev-mt { flex: 1; min-width: 0; }
.ev-mt b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.ev-ms .mbar i { background: linear-gradient(90deg, #c4560a, #ff8a1a); box-shadow: 0 0 8px #ff8a1a; }
.ev-ms.got .mbar i { background: linear-gradient(90deg, #4aa82a, #8dff5a); box-shadow: 0 0 8px #8dff5a; }
.ev-state { flex: none; font-size: 12px; font-weight: 900; color: #b9a3d6; min-width: 48px; text-align: right; }
.ev-ms.got .ev-state { color: #8dff5a; font-size: 18px; }
.ev-rr { display: flex; flex-direction: column; gap: 4px; }
.ev-rr-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; border-radius: 10px; background: rgba(31, 13, 43, 0.85); border: 1px solid rgba(255, 216, 77, 0.25); font-weight: 800; font-size: 13px; }
.ev-rr-row b { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); }
.ev-rr-row small { font-size: 9px; letter-spacing: 0.08em; color: #8dff5a; }
.ev-rr-row.all { border-color: rgba(141, 255, 90, 0.35); }
.ev-rr-row.all b { color: #d9ffc4; }
.ev-rr-row.me { border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 216, 77, 0.35); }
.ev-result { padding: 10px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; text-align: center; background: rgba(192, 123, 255, 0.12); border: 1px solid rgba(192, 123, 255, 0.45); color: #e6d6ff; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.ev-result.win { background: rgba(255, 216, 77, 0.14); border-color: rgba(255, 216, 77, 0.6); color: #ffe9a8; }
.ev-me { border-color: #ff8a1a; }

/* ---------- Season Pass ---------- */
.btn-season {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: 16px; text-align: left;
  background: linear-gradient(110deg, #10204f 0%, #2a1458 60%, #4a2a08 100%);
  border: 1px solid rgba(255, 216, 77, 0.6); box-shadow: 0 0 18px rgba(255, 216, 77, 0.22), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.sp-tier { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(180deg, #ffe58a, #ffb81a); color: #1a1200; box-shadow: 0 0 12px rgba(255, 216, 77, 0.5); }
.sp-tier small { font-size: 8px; font-weight: 900; letter-spacing: 0.08em; }
.sp-tier b { font-size: 19px; font-weight: 900; line-height: 1; }
.sp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp-txt b { font-size: 14px; font-weight: 900; letter-spacing: 0.08em; color: var(--gold); text-shadow: 0 0 10px rgba(255, 216, 77, 0.45); }
.sp-txt b em { font-style: normal; font-size: 10px; color: #1a1200; background: var(--gold); border-radius: 5px; padding: 0 5px; margin-left: 4px; vertical-align: 2px; text-shadow: none; }
.sp-bar { display: block; height: 6px; border-radius: 99px; background: rgba(8, 14, 36, 0.85); overflow: hidden; }
.sp-bar em { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb81a, #ffe58a); box-shadow: 0 0 8px var(--gold); transition: width .6s ease; }
.sp-txt small { font-size: 10px; font-weight: 700; color: #e6dcff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-timer { flex: none; font-size: 11px; font-weight: 900; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; color: #1a1200; background: var(--gold); border-radius: 8px; padding: 3px 7px; }

.sp-screen { background: radial-gradient(120% 60% at 80% 0%, rgba(90, 60, 10, 0.45), transparent 60%), rgba(6, 10, 36, 0.96); }
.sp-screen h2 { color: var(--gold); text-shadow: 0 0 14px rgba(255, 216, 77, 0.4); }
.sp-wrap { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.sp-hero { padding: 12px; border-radius: 16px; background: linear-gradient(140deg, rgba(16, 32, 79, 0.95), rgba(42, 20, 88, 0.95)); border: 1px solid rgba(255, 216, 77, 0.45); display: flex; flex-direction: column; gap: 10px; }
.sp-hero-top { display: flex; align-items: center; gap: 12px; }
.sp-hero-xp { flex: 1; min-width: 0; }
.sp-hero-xp span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.sp-hero .xp-bar i { background: linear-gradient(90deg, #ffb81a, #ffe58a); box-shadow: 0 0 10px var(--gold); }
.sp-countdown { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 6px; border-radius: 10px; background: rgba(8, 14, 36, 0.7); }
.sp-countdown small { font-size: 10px; font-weight: 900; letter-spacing: 0.1em; color: var(--muted); }
.sp-countdown b { font-size: 22px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(255, 216, 77, 0.5); }
.sp-info { margin: 0; font-size: 12px; font-weight: 600; color: #cfd8f5; line-height: 1.4; }
.sp-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.sp-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 4px 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); min-width: 0; opacity: 0.8; }
.sp-tile.item { background: rgba(42, 20, 88, 0.75); border-color: rgba(181, 123, 255, 0.4); }
.sp-tile.big { border-color: rgba(255, 216, 77, 0.55); box-shadow: 0 0 12px rgba(255, 216, 77, 0.18); }
.sp-tile.excl { background: linear-gradient(160deg, rgba(90, 60, 10, 0.8), rgba(42, 20, 88, 0.8)); }
.sp-tile.got { opacity: 1; border-color: rgba(61, 255, 122, 0.55); background: linear-gradient(180deg, rgba(61, 255, 122, 0.12), rgba(12, 20, 48, 0.92)); }
.sp-tile.next { opacity: 1; border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 216, 77, 0.45); }
.sp-n { position: absolute; top: 3px; left: 6px; font-size: 10px; font-weight: 900; color: var(--muted); }
.sp-tile.got .sp-n, .sp-tile.next .sp-n { color: var(--gold); }
.sp-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.sp-ico canvas { width: 44px; height: 44px; }
.sp-ico .shard-ico { transform: scale(1.3); }
.sp-lbl { max-width: 100%; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-st { position: absolute; top: 2px; right: 6px; font-size: 12px; font-weight: 900; color: #3dff7a; }
.sp-st.dupe { position: static; font-size: 9px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.sp-st.dupe .shard-ico { transform: scale(0.7); }
/* Battlepass-Reihe unter jeder Stufe + Status/Angebot im Kopf */
.sp-bp { display: inline-flex; align-items: center; gap: 2px; margin-top: 3px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 900; color: #e3c8ff; background: rgba(163, 92, 255, 0.28); border: 1px solid rgba(181, 123, 255, 0.5); white-space: nowrap; }
.sp-bp .shard-ico { transform: scale(0.7); }
.sp-bp.locked { opacity: 0.45; filter: grayscale(0.6); }
.sp-bp.got { color: #3dff7a; border-color: rgba(61, 255, 122, 0.5); background: rgba(61, 255, 122, 0.1); }
.sp-bp.item { color: #fff2b0; background: rgba(255, 184, 26, 0.22); border-color: rgba(255, 210, 61, 0.6); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Saison-Themen (SEASON_THEMES): Dezember mit Schnee, November mit warmem Herbstlicht – statische Muster, keine Animation (alte Handys) */
#season.look-winter { background:
  radial-gradient(circle at 12% 18%, rgba(255,255,255,0.55) 0 1.5px, transparent 2.5px) 0 0 / 90px 90px,
  radial-gradient(circle at 62% 64%, rgba(255,255,255,0.4) 0 1px, transparent 2px) 0 0 / 60px 60px,
  radial-gradient(circle at 40% 40%, rgba(200,230,255,0.35) 0 2px, transparent 3px) 0 0 / 140px 140px,
  radial-gradient(120% 60% at 80% 0%, rgba(60, 120, 200, 0.45), transparent 60%), rgba(6, 12, 40, 0.96); }
#season.look-winter h2 { color: #e6f6ff; text-shadow: 0 0 14px rgba(159, 232, 255, 0.6); }
#season.look-autumn { background: radial-gradient(120% 60% at 80% 0%, rgba(200, 80, 20, 0.45), transparent 60%), rgba(20, 10, 18, 0.96); }
#season.look-autumn h2 { color: #ffb84d; }
.sp-pass { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(90deg, rgba(163, 92, 255, 0.3), rgba(8, 14, 36, 0.7)); border: 1px solid rgba(181, 123, 255, 0.55); }
.sp-pass > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-pass.on { flex-direction: column; align-items: flex-start; gap: 2px; }
.sp-pass b { font-size: 13px; font-weight: 900; letter-spacing: 0.08em; color: #e3c8ff; }
.sp-pass span { font-size: 11px; font-weight: 700; color: #d6c8f5; }
.sp-pass .buy-btn { flex: none; background: linear-gradient(180deg, #e3c8ff, #a35cff); color: #1a0533; box-shadow: 0 3px 0 #5a1fa8; }
.sp-mini { display: block; width: 100%; height: 4px; border-radius: 99px; background: rgba(8, 14, 36, 0.85); overflow: hidden; margin-top: 2px; }
.sp-mini em { display: block; height: 100%; background: var(--gold); }
.unlock.season { background: rgba(255, 216, 77, 0.14); border-color: rgba(255, 216, 77, 0.55); color: #fff1b8; }
@media (orientation: landscape) and (max-height: 560px) {
  .btn-season { padding: 4px 8px 4px 4px; }
  .sp-tier { width: 34px; height: 34px; }
  .sp-tier b { font-size: 15px; }
  .sp-txt small { display: none; }
}
.ev-note { margin: -4px 0 2px; font-size: 12px; font-weight: 700; color: #b9a3d6; text-align: center; }
.ev-note:empty { display: none; }
.ev-me { flex-wrap: wrap; }
.ev-pending { flex-basis: 100%; text-align: center; font-size: 11px; font-weight: 800; color: #ffb35c; }
.btn-season .badge.num { top: -7px; right: -7px; }
.sp-bank { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.sp-bank small { font-size: 10px; font-weight: 900; letter-spacing: 0.1em; color: var(--muted); }
.sp-bank b { font-size: 20px; font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(255, 216, 77, 0.45); }
.btn-play.sp-claim { background: linear-gradient(180deg, #ffe58a, #ffc21a 60%, #d18a00); box-shadow: 0 0 0 2px rgba(255,255,255,.25) inset, 0 5px 0 #7a4a00, 0 0 24px rgba(255, 216, 77, 0.45); color: #1a1200; }
.btn-play.sp-claim:disabled { filter: grayscale(0.85) brightness(0.55); box-shadow: none; }
.btn-play.sp-claim:disabled .play-title { font-size: 14px; }
.sp-tile.ready { opacity: 1; cursor: pointer; border-color: var(--gold); background: linear-gradient(180deg, rgba(255, 216, 77, 0.2), rgba(12, 20, 48, 0.92)); box-shadow: 0 0 8px rgba(255, 216, 77, 0.3); }
.sp-tile.ready::after { box-shadow: 0 0 18px rgba(255, 216, 77, 0.7); animation: glowPulse 1.6s ease-in-out infinite; }
.sp-tile.ready .sp-n { color: var(--gold); }
.sp-get { margin-top: 2px; font-size: 9px; font-weight: 900; letter-spacing: 0.06em; color: #1a1200; background: var(--gold); border-radius: 6px; padding: 1px 6px; }

/* ---------- Tägliche Login-Belohnung ---------- */
.gift-btn { position: relative; }
.gift-btn .badge { top: -3px; right: -3px; }
.login-card { width: min(380px, 100%); }
.login-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ld {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 74px; padding: 6px 2px; border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
}
.ld small { font-size: 10px; font-weight: 900; letter-spacing: 0.08em; color: var(--muted); }
.ld b { font-size: 16px; font-weight: 900; display: flex; align-items: center; gap: 3px; }
.ld em { font-size: 10px; font-style: normal; font-weight: 800; color: var(--cyan); }
.ld.got { opacity: 0.75; border-color: rgba(61, 255, 122, 0.4); }
.ld .ld-ok {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #042010; background: #3dff7a; box-shadow: 0 0 8px rgba(61, 255, 122, 0.7);
}
.ld.today { border-color: var(--gold); background: rgba(255, 216, 77, 0.1); box-shadow: 0 0 8px rgba(255, 216, 77, 0.3); }
.ld.today::after { box-shadow: 0 0 18px rgba(255, 216, 77, 0.7); animation: glowPulse 1.4s ease-in-out infinite; }
.ld.today small { color: var(--gold); }
.ld.jackpot { grid-column: span 2; background: linear-gradient(135deg, rgba(255, 216, 77, 0.2), rgba(255, 61, 139, 0.15)); border-color: rgba(255, 216, 77, 0.55); }
.ld.jackpot small { color: var(--gold); }
.ld.jackpot b { font-size: 22px; color: var(--gold); text-shadow: 0 0 12px rgba(255, 216, 77, 0.6); }
.ld.pop { animation: pop .5s ease; }
.login-note { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.login-h { margin: 6px 0 0; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; color: var(--muted); text-align: left; }
.login-hist { display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow-y: auto; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: rgba(90, 170, 255, 0.35) transparent; }
.lh {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); font-size: 12px; font-weight: 800; text-align: left;
}
.lh-date { color: var(--muted); }
.lh-day { color: var(--gold); letter-spacing: 0.06em; }
.lh-rw { display: flex; align-items: center; gap: 4px; min-width: 92px; justify-content: flex-end; }
.lh-rw em { font-style: normal; color: var(--cyan); font-size: 11px; }
.lh.missed { opacity: 0.5; }
.lh.missed .lh-day { color: var(--pink); }
.lh.open { border-style: dashed; border-color: rgba(255, 216, 77, 0.5); }

/* ================= Responsive Anpassungen (am Ende, damit sie alle Basisregeln überschreiben) ================= */
/* Hochformat, niedriger Bildschirm (kleine Handys, Browserleisten): Menü verdichten */
@media (orientation: portrait) and (max-height: 760px) {
  .menu-main { gap: 12px; }
  .tagline { margin-top: 6px; font-size: 12px; }
  .menu-actions { gap: 8px; }
  .btn-play { padding: 11px 16px 10px; }
  .play-title { font-size: 23px; }
  .btn-secondary { padding: 8px 14px; font-size: 15px; }
  .btn-event { padding: 5px 10px 5px 4px; }
  .btn-event canvas { width: 38px; height: 38px; }
  .btn-season { padding: 5px 8px 5px 5px; }
  .sp-tier { width: 38px; height: 38px; }
  .sp-tier b { font-size: 16px; }
  .menu-nav button { padding: 8px 2px; }
}
@media (orientation: portrait) and (max-height: 640px) {
  .tagline { display: none; }
  .menu-actions .btn-secondary small { display: none; }
  .lvl-hex { width: 46px; height: 52px; }
  .lvl-hex b { font-size: 19px; }
}

/* Sehr schmale Handys (≤ 360 px) */
@media (max-width: 360px) {
  .screen { padding-left: calc(10px + var(--safe-l)); padding-right: calc(10px + var(--safe-r)); }
  .topbar { gap: 6px; }
  .top-right { gap: 5px; }
  .icon-btn { width: 38px; height: 38px; }
  .pill.big { font-size: 16px; padding: 6px 10px; }
  .profile { gap: 7px; }
  .menu-nav { gap: 4px; }
  .menu-nav button { font-size: 10px; border-radius: 12px; }
  .panel-screen h2 { font-size: 19px; }
  .panel-screen header { gap: 8px; }
  .over-dist { font-size: 54px; }
}
/* Schmale Handys (≤ 400 px, z. B. Galaxy S7): Platz für XP-Leiste und Namen in der Kopfzeile.
   Webseite gibt es weiterhin in den Einstellungen. */
@media (max-width: 400px) {
  .top-right [data-website] { display: none; }
  .top-right { gap: 4px; }
  .top-right .icon-btn { width: 36px; height: 36px; }
  .top-right .pill.big { font-size: 15px; padding: 5px 7px 5px 9px; gap: 5px; }
  .shard-btn .plus { width: 18px; height: 18px; font-size: 14px; }
  .profile { gap: 6px; }
  .profile .lvl-hex { width: 42px; height: 48px; }
  .profile .lvl-hex b { font-size: 17px; }
  .xp span { font-size: 11px; }
}

/* Breite Bildschirme (Tablet quer, Laptop, PC): zweispaltiges Menü – Logo links, Aktionen rechts */
@media (orientation: landscape) and (min-aspect-ratio: 5/4) and (min-width: 700px) {
  .menu-main { flex-direction: row; justify-content: center; gap: clamp(32px, 7vw, 120px); }
  /* auto-Ränder statt align-items: center – sonst ragen hohe Spalten oben aus dem Scrollbereich (Event-Button unerreichbar) */
  .menu-main > * { margin-block: auto; }
  .logo { font-size: clamp(56px, min(8.5vw, 15vh), 112px); }
  .tagline { font-size: 14px; }
  .menu-actions { width: min(360px, 46%); }
  .menu-nav { max-width: 680px; }
}

/* Querformat (Handy quer): zweispaltiges, kompaktes Menü */
@media (orientation: landscape) and (max-height: 560px) {
  .menu-main { flex-direction: row; justify-content: space-evenly; gap: 24px; padding: 6px 0; }
  .menu-main > * { margin-block: auto; }
  .logo { font-size: clamp(40px, 9vh + 2vw, 72px); }
  .menu-actions { width: min(300px, 45%); gap: 6px; }
  .btn-play { padding: 8px 16px; }
  .play-title { font-size: 21px; }
  .menu-nav { max-width: 620px; }
  .menu-nav button { flex-direction: row; justify-content: center; padding: 7px 4px; }
  .menu-nav svg { width: 18px; height: 18px; }
  .lvl-hex { width: 44px; height: 50px; }
  .lvl-hex b { font-size: 18px; }
  .btn-event { padding: 3px 10px 3px 4px; }
  .btn-event canvas { width: 32px; height: 32px; }
  .btn-event b { font-size: 14px; }
}
@media (orientation: landscape) and (max-height: 430px) {
  .menu-actions .btn-secondary small, .btn-event small { display: none; }
  .tagline { font-size: 11px; }
}


/* Titel in Event-/Season-Button und Konto-Chip nie umbrechen – lieber kürzen */
.btn-event b, .sp-txt b, .xp .acc-chip, .xp > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Zum Startbildschirm hinzufügen ---------- */
.install-card { width: min(360px, 100%); }
.ins-logo { width: 64px; height: 64px; margin: 0 auto; border-radius: 16px; box-shadow: 0 0 24px rgba(51, 224, 255, 0.35); }
.ins-or { margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.ins-steps { list-style: none; counter-reset: ins; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ins-steps li {
  counter-increment: ins; position: relative; padding: 10px 12px 10px 44px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.45;
}
.ins-steps li::before {
  content: counter(ins); position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: #04121a; background: var(--cyan); box-shadow: 0 0 10px rgba(51, 224, 255, 0.6);
}
.ins-steps b { color: var(--cyan); font-weight: 800; }
.ins-ico {
  display: inline-grid; place-items: center; width: 24px; height: 24px; margin: 0 2px; vertical-align: -6px;
  border-radius: 6px; background: rgba(51, 224, 255, 0.14); border: 1px solid rgba(51, 224, 255, 0.4);
  font-style: normal; font-weight: 900; font-size: 16px; color: var(--cyan);
}
.ins-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Run-Extras: Power-ups, Fever, Sektor-Banner ---------- */
.hud-powers { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.hp {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 6px; border-radius: 9px;
  background: rgba(8, 14, 36, 0.78); border: 1px solid var(--c); color: var(--c); font-weight: 900;
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 45%, transparent); animation: pop .3s ease;
}
.hp b { font-size: 15px; line-height: 1; }
.hp small { font-size: 10px; letter-spacing: 0.1em; }
.hp i { position: absolute; left: 6px; right: 6px; bottom: 2px; height: 2px; background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden; }
.hp em { display: block; height: 100%; width: 100%; background: var(--c); transform-origin: left center; will-change: transform; }
.hp-shield i, .hp-lives i { display: none; }
.hp-fever { animation: pop .3s ease, feverHue 1s linear infinite; }
@keyframes feverHue { to { filter: hue-rotate(360deg); } }
.pulse100 { animation: pulse100 .45s ease-out; }
@keyframes pulse100 { 0% { transform: scale(1); } 35% { transform: scale(1.28); color: #fff6c4; } 100% { transform: scale(1); } }
.hud-dist { transform-origin: left center; }
body.fever .hud-dist { animation: feverHue 1s linear infinite; }
/* HUD-Gruppen als eigene GPU-Ebenen: Zahlenwechsel malen nur diese kleinen Flächen neu */
.hud-left, .hud-right { will-change: transform; }

/* Sparmodus für schwache Geräte (setzt Perf in game.js automatisch, z. B. Galaxy S7):
   keine weichgezeichneten Glows/Filter, die bei jeder Änderung bzw. jedem Animationsschritt neu gerastert werden */
.lowfx .shard-ico { filter: none; }
.lowfx .hud-dist, .lowfx .hud-combo, .lowfx .banner b { text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.lowfx .hp { box-shadow: none; }
.lowfx .hp-fever, .lowfx body.fever .hud-dist { animation: none; }
.lowfx .lvl-hex.can-prestige, .lowfx #over.record .card, .lowfx .over-goal.close { animation: none; }

.banner {
  position: absolute; left: 0; right: 0; top: 30%; pointer-events: none; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0;
}
.banner.show { animation: banner 1.7s ease forwards; }
.banner b { font-size: clamp(34px, 9vw, 64px); font-weight: 900; letter-spacing: 0.08em; color: #fff; text-shadow: 0 0 24px rgba(51, 224, 255, 0.8), 0 3px 0 rgba(0,0,0,.5); }
.banner small { font-size: 14px; font-weight: 900; letter-spacing: 0.25em; color: var(--cyan); text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.banner.fever b { color: #ffb347; text-shadow: 0 0 28px rgba(255, 138, 26, 0.9), 0 3px 0 rgba(0,0,0,.5); animation: feverHue .8s linear infinite; }
.banner.fever small { color: #ffd23d; }
@keyframes banner {
  0% { opacity: 0; transform: scale(1.6); } 12% { opacity: 1; transform: scale(1); }
  75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.92) translateY(-12px); }
}

/* ---------- Game Over: nächstes Ziel, Kiste, Sofort-Neustart ---------- */
.over-goal {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: 12px; text-align: left;
  background: rgba(51, 224, 255, 0.08); border: 1px solid rgba(51, 224, 255, 0.35); animation: fadeIn .4s ease both;
}
.over-goal b { font-size: 11px; letter-spacing: 0.14em; color: var(--cyan); }
.over-goal span { font-size: 14px; font-weight: 800; }
.over-goal i { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
.over-goal em { display: block; height: 100%; width: 0; background: var(--cyan); border-radius: 4px; transition: width 1s cubic-bezier(.2,.8,.2,1) .2s; }
.over-goal.close { background: rgba(255, 106, 213, 0.12); border-color: rgba(255, 106, 213, 0.6); animation: fadeIn .4s ease both, closeGlow 1.2s ease-in-out .4s infinite alternate; }
.over-goal.close b { color: #ff6ad5; font-size: 13px; }
.over-goal.close em { background: linear-gradient(90deg, #ff6ad5, #ffd84d); }
@keyframes closeGlow { from { box-shadow: 0 0 0 rgba(255,106,213,0); } to { box-shadow: 0 0 18px rgba(255,106,213,0.45); } }

.over-chest {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; text-align: left;
  background: rgba(255, 216, 77, 0.1); border: 1px solid rgba(255, 216, 77, 0.45); animation: chestIn .7s cubic-bezier(.2,1.4,.4,1) .35s both;
}
.over-chest .chest-ico { font-size: 30px; animation: chestShake .5s ease .35s; }
.over-chest b { display: block; font-size: 13px; letter-spacing: 0.08em; color: #ffe9a8; }
.over-chest small { font-size: 15px; font-weight: 900; }
.over-chest.tier-rare { background: rgba(51, 224, 255, 0.1); border-color: rgba(51, 224, 255, 0.5); }
.over-chest.tier-rare b { color: #bff6ff; }
.over-chest.tier-epic, .over-chest.tier-item { background: rgba(181, 123, 255, 0.14); border-color: rgba(181, 123, 255, 0.6); box-shadow: 0 0 16px rgba(181, 123, 255, 0.35); }
.over-chest.tier-epic b, .over-chest.tier-item b { color: #e6d6ff; }
.over-chest.tier-legend { background: rgba(255, 138, 26, 0.16); border-color: #ffb347; box-shadow: 0 0 22px rgba(255, 138, 26, 0.55); }
.over-chest.tier-legend b { color: #ffb347; }
@keyframes chestIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes chestShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(12deg) scale(1.2); } 75% { transform: rotate(-6deg); } }
.over-hint { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; margin: 0; opacity: 0.8; }
@media (orientation: landscape) and (max-height: 560px) {
  .card.wide > .over-goal, .card.wide > .over-chest, .card.wide > .over-hint { grid-column: 1; }
}

/* ---------- Tages-Serie ---------- */
.streak-chip {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); padding: 0 5px; border-radius: 8px;
  font-size: 10px; font-weight: 900; line-height: 15px; white-space: nowrap; background: #2a1206; border: 1px solid #ff8a1a; color: #ffb347;
}
.streak-chip.danger::after { box-shadow: 0 0 10px rgba(255, 138, 26, 0.9); animation: glowIn 1s ease-in-out infinite alternate; }
.streak-box {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-align: left;
  background: rgba(255, 138, 26, 0.1); border: 1px solid rgba(255, 138, 26, 0.45);
}
.sk-flame { position: relative; font-size: 34px; line-height: 1; }
.sk-flame b { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-size: 15px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px #000; }
.sk-flame.off { filter: grayscale(1); opacity: 0.5; }
.sk-txt { display: flex; flex-direction: column; gap: 2px; }
.sk-txt b { font-size: 15px; font-weight: 900; color: #ffb347; }
.sk-txt small { font-size: 12px; font-weight: 700; color: var(--muted); }
.sk-freeze { color: #9fe8ff !important; }
.sk-freeze.used { opacity: 0.6; }
.sk-warn { color: #ff6ad5 !important; font-weight: 900 !important; }
.legal-links a, .pc-fine a, a.legal-links-inline { color: #7fd6ff; text-decoration: underline; }
