/* =========================================================
   PACKAGE RUSH – UI Styles
   ========================================================= */
:root {
  --bg: #0b1020;
  --panel: rgba(14, 20, 44, 0.82);
  --panel-border: rgba(255, 255, 255, 0.12);
  --orange: #ff7a1a;
  --yellow: #ffd23f;
  --cyan: #4dd8ff;
  --green: #29d17d;
  --red: #ff4d5e;
  --text: #f4f6ff;
  --muted: rgba(244, 246, 255, 0.62);
  --font: "Segoe UI", "Helvetica Neue", Roboto, Arial, system-ui, sans-serif;
}

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

html, body {
  margin: 0;
  width: 100%;
  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;
}

#safeProbe {
  position: fixed;
  top: 0; left: 0;
  padding-top: env(safe-area-inset-top);
  visibility: hidden;
  pointer-events: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #0b1020;
}

.hidden { display: none !important; }

/* ---------- Pause-Button ---------- */
#pauseBtn {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  right: 10px;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(12, 18, 40, 0.62);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
  z-index: 5;
}
#pauseBtn span { width: 5px; height: 16px; background: #fff; border-radius: 2px; }

/* ---------- Screens ---------- */
#screens { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

.screen {
  position: absolute;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  pointer-events: auto;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 35%, rgba(8, 12, 30, 0.25), rgba(6, 9, 24, 0.86) 75%);
}
.screen.active { display: flex; animation: screenIn 0.28s ease-out; }
#screen-gameover, #screen-pause { align-items: center; background: rgba(6, 9, 24, 0.72); }

@keyframes screenIn {
  from { opacity: 0; transform: scale(1.03); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 16px;
  color: var(--text);
  padding: 13px 20px;
  border-radius: 16px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(40, 52, 96, 0.9), rgba(22, 30, 62, 0.92));
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.08s ease;
}
.btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn.primary {
  color: #2a1300;
  border-color: rgba(255, 230, 160, 0.6);
  background: linear-gradient(180deg, #ffc53d 0%, #ff8a1a 55%, #ff6a00 100%);
  box-shadow: 0 5px 0 #a8410a, 0 10px 30px rgba(255, 122, 26, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.45);
}
.btn.primary:active { box-shadow: 0 1px 0 #a8410a; }
.btn.big { font-size: 22px; padding: 17px 24px; }
.btn.small { font-size: 13px; padding: 9px 14px; border-radius: 12px; }
.btn.red { background: linear-gradient(180deg, #ff5d6c, #d8263a); }
.btn.green { background: linear-gradient(180deg, #3ee08f, #16a35e); color: #03210f; }
.btn:disabled { opacity: 0.5; cursor: default; filter: grayscale(0.4); }

/* ---------- Coins ---------- */
.coin {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c4, #ffd23f 45%, #e09a00 100%);
  box-shadow: inset 0 0 0 2px rgba(160, 100, 0, 0.6);
  vertical-align: middle;
  position: relative;
}
.coin::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(150, 90, 0, 0.55);
  border-radius: 2px;
}
.coin-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  font-weight: 900;
  font-size: 16px;
}

/* ---------- Hauptmenü ---------- */
.menu-wrap {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.topbar { display: flex; justify-content: flex-end; }

.logo {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 6px 0 2px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
}
.logo-box {
  width: 74px; height: 74px;
  border-radius: 10px;
  background: linear-gradient(145deg, #e4a462, #b8763c);
  position: relative;
  transform: rotate(-8deg);
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.18), 0 6px 0 #7a4a1f;
  animation: boxBob 2.2s ease-in-out infinite;
}
.logo-tape { position: absolute; left: 30px; top: 0; bottom: 0; width: 14px; background: rgba(255, 230, 180, 0.75); }
.logo-bolt {
  position: absolute; left: 18px; top: 14px; width: 40px; height: 46px;
  background: var(--orange);
  clip-path: polygon(55% 0, 10% 55%, 45% 55%, 30% 100%, 90% 40%, 55% 40%, 75% 0);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}
@keyframes boxBob { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-6px); } }

.logo-text { display: flex; flex-direction: column; line-height: 0.86; }
.logo-small { font-size: 30px; font-weight: 900; letter-spacing: 0.22em; color: #fff; font-style: italic; }
.logo-big {
  font-size: 78px; font-weight: 900; font-style: italic; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffe066 0%, #ffb11a 50%, #ff6a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(120, 40, 0, 0.35);
}

.best-line { display: flex; gap: 10px; }
.best-line > div {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex; flex-direction: column;
}
.best-line small, .go-stat small { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); }
.best-line b { font-size: 20px; font-weight: 900; }

.menu-buttons { display: flex; flex-direction: column; gap: 10px; }
.menu-buttons .btn:not(.big) { padding: 12px 18px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.panel-title { font-weight: 900; letter-spacing: 0.1em; font-size: 14px; margin-bottom: 10px; color: var(--yellow); display: flex; justify-content: space-between; }
.panel-title small { color: var(--muted); font-weight: 700; letter-spacing: 0.04em; }

.challenge { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.challenge:first-child { border-top: 0; padding-top: 0; }
.challenge .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.challenge .reward { display: inline-flex; align-items: center; gap: 5px; font-weight: 900; color: var(--yellow); white-space: nowrap; }
.challenge.done .row span:first-child { color: var(--green); }

.bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); margin-top: 6px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.done .bar > i, .unlocked .bar > i { background: linear-gradient(90deg, #16a35e, var(--green)); }

.hint { text-align: center; font-size: 12px; color: var(--muted); }
.mobile-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* ---------- Unterseiten ---------- */
.sub-wrap { width: 100%; max-width: 860px; display: flex; flex-direction: column; gap: 14px; }
.sub-wrap.narrow { max-width: 520px; }
.sub-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.sub-head > :last-child { justify-self: end; }
.sub-head > :first-child { justify-self: start; }
.sub-head h2 { margin: 0; font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: 0.06em; }
.sub-info { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }

.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.skin-card {
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: 18px;
  padding: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.skin-card.selected { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.18), 0 10px 30px rgba(0, 0, 0, 0.35); }
.skin-card.locked canvas { filter: brightness(0.55) saturate(0.6); }
.skin-card canvas { width: 130px; height: 160px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.2)); }
.skin-card .name { font-weight: 900; font-size: 14px; letter-spacing: 0.06em; text-align: center; }
.skin-card .btn { width: 100%; }
.skin-card.shake { animation: shake 0.35s; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.record-item { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px; padding: 14px; }
.record-item small { display: block; color: var(--muted); font-weight: 800; letter-spacing: 0.1em; font-size: 11px; }
.record-item b { font-size: 26px; font-weight: 900; }

.ach-count { font-weight: 900; color: var(--yellow); }
.ach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ach { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.ach .medal {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px;
  background: rgba(255, 255, 255, 0.08); color: var(--muted);
}
.ach.unlocked .medal { background: radial-gradient(circle at 35% 35%, #fff2b0, #ffc93c 50%, #d98a00); color: #4a2a00; box-shadow: 0 0 18px rgba(255, 201, 60, 0.45); }
.ach .info { flex: 1; min-width: 0; }
.ach .title { font-weight: 900; letter-spacing: 0.05em; }
.ach .desc { font-size: 13px; color: var(--muted); }
.ach .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }

.settings { display: flex; flex-direction: column; gap: 4px; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; font-weight: 700; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.set-row:first-child { border-top: 0; }
.toggle {
  width: 58px; height: 32px; border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.12);
  position: relative; cursor: pointer;
  transition: background 0.2s;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; transition: transform 0.2s;
}
.toggle.on { background: var(--green); }
.toggle.on::after { transform: translateX(26px); }

/* ---------- Game Over ---------- */
.go-wrap {
  width: 100%; max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: popIn 0.35s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes popIn { from { transform: scale(0.85); opacity: 0; } to { transform: none; opacity: 1; } }
.go-title {
  text-align: center; font-size: 34px; font-weight: 900; font-style: italic; letter-spacing: 0.05em;
  background: linear-gradient(180deg, #ffe066, #ff7a1a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.go-record {
  text-align: center; font-size: 26px; font-weight: 900; color: var(--yellow);
  text-shadow: 0 0 18px rgba(255, 210, 63, 0.7);
  animation: pulse 0.9s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.go-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.go-stat { background: rgba(255, 255, 255, 0.05); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.go-stat b { font-size: 24px; font-weight: 900; }
.go-stat.wide { grid-column: span 2; align-items: center; }
.go-stat.wide b { font-size: 40px; color: var(--yellow); }
.go-stat.best b { color: var(--yellow); }
.go-hint { text-align: center; font-weight: 900; color: var(--cyan); font-size: 15px; letter-spacing: 0.03em; min-height: 1em; }
.go-coins { text-align: center; font-weight: 900; display: flex; justify-content: center; align-items: center; gap: 6px; }
.go-extra { display: flex; flex-direction: column; gap: 4px; }
.go-extra div { text-align: center; font-size: 13px; font-weight: 800; color: var(--green); }
.go-buttons { display: flex; flex-direction: column; gap: 10px; }

/* ---------- DOM Toast (Menü) ---------- */
#domToast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(30px);
  padding: 10px 18px; border-radius: 999px;
  background: rgba(14, 20, 44, 0.95);
  border: 1px solid var(--panel-border);
  font-weight: 800; z-index: 30; opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
#domToast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 420px) {
  .logo-big { font-size: 62px; }
  .logo-small { font-size: 24px; }
  .logo-box { width: 60px; height: 60px; }
  .logo-tape { left: 24px; width: 12px; }
  .logo-bolt { left: 12px; top: 8px; }
  .btn.big { font-size: 20px; }
  .skin-grid { grid-template-columns: repeat(2, 1fr); }
  .skin-card canvas { width: 110px; height: 136px; }
  .sub-head h2 { font-size: 20px; }
}
@media (max-height: 640px) and (min-width: 700px) {
  .logo-big { font-size: 58px; }
  .menu-wrap { gap: 10px; }
}

/* ---------- Version 1.1: Map-Auswahl, Update-Hinweis, Version ---------- */
.play-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.play-btn small { font-size: 11px; letter-spacing: 0.14em; opacity: 0.75; font-weight: 800; }
.version { text-align: center; font-size: 11px; color: var(--muted); letter-spacing: 0.12em; opacity: 0.7; }

.narrow-map { max-width: 760px; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.map-card {
  font-family: var(--font);
  color: var(--text);
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: 18px;
  padding: 10px 10px 14px;
  display: flex; flex-direction: column; gap: 6px; align-items: stretch;
  cursor: pointer; text-align: left;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.map-card:hover { transform: translateY(-2px); }
.map-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.map-card canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; display: block; max-width: 100%; }
.map-card.selected { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.18), 0 12px 30px rgba(0, 0, 0, 0.35); }
.map-name { font-weight: 900; font-size: 18px; letter-spacing: 0.06em; padding: 0 4px; }
.map-sub { font-size: 13px; color: var(--muted); padding: 0 4px; }

.update-wrap { text-align: center; align-items: center; }
.update-tag { font-weight: 900; letter-spacing: 0.2em; color: var(--cyan); }
.update-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.update-list div { background: rgba(255, 255, 255, 0.05); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; }
.update-list small { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); font-weight: 800; }
.update-list b { font-size: 22px; font-weight: 900; }
.update-wrap .btn { width: 100%; }

/* ---------- Version 1.2: Map-Rekorde, Lautstärke, Skin-Shop, Portal ---------- */
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px; }
.map-tier { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--muted); }
.map-tier.hard { background: rgba(140, 255, 74, 0.18); color: #8cff4a; }
.map-best { font-size: 13px; color: var(--muted); padding: 0 4px; }
.map-best b { color: var(--yellow); font-weight: 900; }
.portal-card { border-color: rgba(140, 255, 74, 0.35); }
.portal-card.selected { border-color: #8cff4a; box-shadow: 0 0 0 3px rgba(140, 255, 74, 0.2), 0 0 30px rgba(140, 255, 74, 0.25); }
.narrow-map { max-width: 980px; }

.slider-row { gap: 12px; flex-wrap: wrap; }
.vol { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px; justify-content: flex-end; }
.vol span { font-size: 11px; color: var(--muted); font-weight: 800; }
.vol b { min-width: 46px; text-align: right; font-weight: 900; color: var(--yellow); }
.vol input[type=range] { flex: 1; max-width: 220px; accent-color: var(--orange); height: 28px; cursor: pointer; }

.rarity { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; padding: 3px 9px; border-radius: 999px; }
.rarity.COMMON { background: rgba(255, 255, 255, 0.1); color: #c9cfdd; }
.rarity.RARE { background: rgba(77, 168, 255, 0.18); color: #6fb8ff; }
.rarity.EPIC { background: rgba(176, 98, 255, 0.2); color: #c79bff; }
.rarity.LEGENDARY { background: linear-gradient(90deg, rgba(255, 201, 60, 0.25), rgba(255, 90, 60, 0.25)); color: #ffd23f; }
.skin-card.legendary { border-color: rgba(255, 201, 60, 0.35); }
.skin-card .price { display: flex; align-items: center; gap: 6px; font-weight: 900; color: var(--yellow); }

.portal-update .update-tag { color: #8cff4a; }
.update-list .legendary b { color: var(--yellow); }

/* ---------- Creator-Branding: LucaOptimal ---------- */
#devIntro {
  position: fixed; inset: 0; z-index: 60;
  background: #07080d;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #f4f6ff; font-family: var(--font);
  transition: opacity 0.35s ease;
}
#devIntro.done { opacity: 0; pointer-events: none; }
#devIntro.gone { display: none; }
.intro-line {
  position: absolute; left: 50%; top: 50%; width: min(60vw, 420px); height: 1px; margin-left: calc(min(60vw, 420px) / -2);
  background: linear-gradient(90deg, transparent, rgba(244, 246, 255, 0.9), transparent);
  transform: scaleX(0); opacity: 0;
  animation: introLine 0.7s ease-out 0.05s forwards;
}
@keyframes introLine { 0% { transform: scaleX(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.intro-by { font-size: 11px; font-weight: 700; letter-spacing: 0.5em; color: rgba(244, 246, 255, 0.55); opacity: 0; animation: introFade 0.5s ease-out 0.3s forwards; }
.intro-mark { width: 76px; height: 76px; }
.intro-mark .draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: introDraw 0.65s cubic-bezier(.6, 0, .2, 1) 0.3s forwards; }
.intro-mark .dot { opacity: 0; animation: introFade 0.25s ease-out 0.9s forwards; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
.intro-name {
  font-size: 22px; font-weight: 800; letter-spacing: 0.42em; padding-left: 0.42em;
  /* Lichtreflex läuft über die Buchstaben selbst */
  color: transparent;
  background: linear-gradient(100deg, #d6dae4 0%, #d6dae4 42%, #ffffff 50%, #d6dae4 58%, #d6dae4 100%);
  background-size: 300% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  opacity: 0; animation: introName 0.55s ease-out 0.85s forwards, introSheen 0.6s ease-in-out 1.25s forwards;
}
@keyframes introName { from { opacity: 0; letter-spacing: 0.7em; } to { opacity: 1; letter-spacing: 0.42em; } }
@keyframes introFade { to { opacity: 1; } }
@keyframes introSheen { to { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) {
  .intro-line { display: none; }
  .intro-by, .intro-name, .intro-mark .dot { animation-duration: 0.01s; animation-delay: 0s; }
  .intro-mark .draw { animation-duration: 0.01s; animation-delay: 0s; }
}

.by-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.24em; }
.lo-small { width: 18px; height: 18px; color: var(--text); opacity: 0.85; }
.credits-btn { align-self: center; padding: 8px 18px; opacity: 0.85; }

.credits-wrap { align-items: center; text-align: center; position: relative; }
.credits-wrap .sub-head { width: 100%; }
.credits-mark { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--text); border-radius: 14px; }
.credits-mark svg { width: 84px; height: 84px; display: block; transition: transform 0.15s ease; }
.credits-mark:active svg { transform: scale(0.94); }
.credits-mark:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.credits-block { display: flex; flex-direction: column; gap: 2px; }
.credits-block small { font-size: 11px; letter-spacing: 0.3em; color: var(--muted); font-weight: 800; }
.credits-block b { font-size: 22px; letter-spacing: 0.24em; font-weight: 800; }
.credits-version { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.stay-optimal {
  position: absolute; inset: 0; border-radius: inherit;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7, 8, 13, 0.94);
  font-size: 30px; font-weight: 800; letter-spacing: 0.3em; padding-left: 0.3em;
  color: #fff; pointer-events: none; opacity: 0;
}
.stay-optimal.show { animation: stayOptimal 2.2s ease forwards; }
@keyframes stayOptimal {
  0% { opacity: 0; letter-spacing: 0.7em; transform: translateY(8px); }
  20% { opacity: 1; letter-spacing: 0.3em; transform: none; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* ---------- Version 1.3: Patch Notes, Roadster ---------- */
.menu-small-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.map-tier.fast { background: rgba(95, 242, 255, 0.16); color: #5ff2ff; }
.roadster-card.selected { border-color: #5ff2ff; box-shadow: 0 0 0 3px rgba(95, 242, 255, 0.18), 0 12px 30px rgba(0, 0, 0, 0.35); }
.patch { display: flex; flex-direction: column; gap: 8px; }
.patch-title { font-weight: 900; letter-spacing: 0.08em; color: var(--yellow); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.patch-title span { font-size: 11px; letter-spacing: 0.14em; padding: 3px 8px; border-radius: 999px; background: rgba(95, 242, 255, 0.16); color: #5ff2ff; }
.patch ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-weight: 600; }

/* ---------- Patch-Notes-Popup beim Start ---------- */
.patch-popup {
  position: fixed; inset: 0; z-index: 40;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(6, 9, 24, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.patch-popup.open { display: flex; animation: screenIn 0.3s ease-out; }
.patch-popup-card {
  width: 100%; max-width: 420px;
  background: var(--panel); border: 1px solid rgba(95, 242, 255, 0.35); border-radius: 22px;
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.patch-popup-tag { font-size: 11px; font-weight: 900; letter-spacing: 0.2em; color: #5ff2ff; }
.patch-popup-card h2 { margin: 0; font-size: 24px; font-weight: 900; font-style: italic; letter-spacing: 0.03em; color: var(--yellow); text-wrap: balance; }
.patch-popup-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.patch-popup-card .btn { margin-top: 6px; }

/* ---------- Version 1.4: Moon Ride ---------- */
.map-tier.extreme { background: rgba(255, 59, 92, 0.18); color: #ff6b84; }
.moon-card { border-color: rgba(177, 140, 255, 0.35); }
.moon-card.selected { border-color: #b18cff; box-shadow: 0 0 0 3px rgba(177, 140, 255, 0.2), 0 0 30px rgba(125, 249, 255, 0.18); }
.ghost-toggle { align-self: center; opacity: 0.75; }
.ghost-toggle.on { opacity: 1; border-color: rgba(159, 216, 255, 0.5); color: #cfeaff; }

/* ---------- Version 2.0: Progression & Events ---------- */
:root { --glass: rgba(16, 22, 46, 0.66); --glass-border: rgba(255, 255, 255, 0.1); --xp: linear-gradient(90deg, #4dd8ff, #b18cff); }
.panel, .go-wrap, .patch-popup-card { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Level-Karte im Menü */
.level-card {
  font-family: var(--font); color: var(--text); text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: transform 0.12s ease, border-color 0.15s ease;
}
.level-card:hover { transform: translateY(-1px); border-color: rgba(177, 140, 255, 0.4); }
.lvl-badge { flex: 0 0 56px; height: 56px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: linear-gradient(160deg, rgba(77, 216, 255, 0.22), rgba(177, 140, 255, 0.28)); border: 1px solid rgba(177, 140, 255, 0.35); }
.lvl-badge small { font-size: 9px; letter-spacing: 0.18em; color: var(--muted); font-weight: 800; }
.lvl-badge b { font-size: 24px; font-weight: 900; }
.lvl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.lvl-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); }
.lvl-row b { color: var(--text); font-size: 15px; }
.lvl-season { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #ff8be3; opacity: 0.85; }
.xp-bar { display: block; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.xp-bar > i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--xp); box-shadow: 0 0 12px rgba(125, 200, 255, 0.45); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.xp-bar.big { height: 12px; }
.xp-bar.season > i { background: linear-gradient(90deg, #ff2bd6, #7df9ff); }

/* Menü-Kacheln */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn.tile { position: relative; display: flex; align-items: center; gap: 8px; justify-content: flex-start; font-size: 13px; padding: 12px 12px; min-height: 48px; }
.btn.tile .ti { font-size: 17px; line-height: 1; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; display: none; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 900; color: #2a1300; background: var(--yellow); box-shadow: 0 0 0 2px #0b1020; }
.badge.show { display: inline-flex; }
.badge.dot { min-width: 12px; width: 12px; height: 12px; top: -3px; right: -3px; background: #ff4d5e; animation: pulse 1.4s ease-in-out infinite; }
.link-btn { background: none; border: 0; color: var(--cyan); font: 800 11px var(--font); letter-spacing: 0.08em; cursor: pointer; padding: 0; }
.mini-mission { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.mini-mission:first-child { border-top: 0; padding-top: 0; }
.mini-mission .row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mini-mission .row span { color: var(--muted); font-weight: 800; white-space: nowrap; }
.mini-mission.done .row span { color: var(--yellow); }
.mm-info { flex: 1; min-width: 0; }
.mm-info .bar { margin-top: 4px; height: 6px; }
.m-icon { flex: 0 0 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: rgba(255, 255, 255, 0.07); }

/* Tabs */
.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); }
.tabs.scroll { overflow-x: auto; scrollbar-width: none; }
.tab { flex: 1; font: 900 12px var(--font); letter-spacing: 0.1em; color: var(--muted); background: none; border: 0; border-radius: 10px; padding: 10px 12px; cursor: pointer; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.sub-wrap.narrow2 { max-width: 640px; }

/* Missionen */
.mission-list { display: flex; flex-direction: column; gap: 8px; }
.m-section { font-size: 11px; font-weight: 900; letter-spacing: 0.16em; color: var(--muted); margin: 4px 2px 0; }
.mission { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); transition: border-color 0.2s; }
.mission .m-icon { flex-basis: 42px; height: 42px; font-size: 20px; }
.mission.done { border-color: rgba(255, 210, 63, 0.45); }
.mission.claimed { opacity: 0.6; }
.m-info { flex: 1; min-width: 0; }
.m-title { font-weight: 900; letter-spacing: 0.04em; }
.m-desc { font-size: 12px; color: var(--muted); }
.m-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.m-act { flex: 0 0 auto; }
.m-claimed { color: var(--green); font-weight: 900; font-size: 18px; }
.season-head { display: flex; flex-direction: column; gap: 8px; border-color: rgba(255, 43, 214, 0.3); background: linear-gradient(160deg, rgba(60, 20, 90, 0.55), rgba(14, 20, 44, 0.75)); }
.season-name { font-weight: 900; font-style: italic; font-size: 20px; letter-spacing: 0.04em; color: #ff8be3; }
.season-theme { font-size: 12px; color: var(--muted); }
.season-track { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.s-reward { flex: 0 0 110px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 700; }
.s-reward small { font-weight: 900; letter-spacing: 0.1em; color: var(--muted); }
.s-reward.got { border-color: rgba(41, 209, 125, 0.45); background: rgba(41, 209, 125, 0.08); }
.s-reward.got small::after { content: " ✔"; color: var(--green); }

/* Daily Rewards */
.login-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.login-tile { position: relative; padding: 12px 8px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-height: 118px; }
.login-tile small { font-size: 10px; font-weight: 900; letter-spacing: 0.16em; color: var(--muted); }
.login-tile .lt-icon { font-size: 26px; line-height: 1.2; }
.login-tile span { font-size: 11px; font-weight: 800; }
.login-tile.got { opacity: 0.55; }
.login-tile.got .lt-icon { color: var(--green); }
.login-tile.today { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.16), 0 8px 24px rgba(255, 170, 40, 0.18); animation: tileGlow 1.6s ease-in-out infinite; }
.login-tile.exclusive { grid-column: span 2; background: linear-gradient(160deg, rgba(90, 60, 160, 0.5), rgba(14, 20, 44, 0.75)); border-color: rgba(200, 182, 255, 0.4); }
.login-tile.pop { animation: tilePop 0.6s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes tileGlow { 50% { box-shadow: 0 0 0 5px rgba(255, 210, 63, 0.12), 0 8px 30px rgba(255, 170, 40, 0.28); } }
@keyframes tilePop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Mystery Boxes */
.box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.box-card { padding: 14px 10px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.box-card .btn { width: 100%; }
.box-name { font-weight: 900; letter-spacing: 0.1em; font-size: 13px; }
.box-count { font-weight: 900; font-size: 22px; color: var(--yellow); }
.box-desc { font-size: 11px; color: var(--muted); min-height: 2.6em; }
.box-visual { position: relative; width: 64px; height: 60px; filter: drop-shadow(0 0 14px var(--bg)); }
.mini-body { position: absolute; left: 6px; right: 6px; bottom: 0; height: 40px; border-radius: 8px; background: linear-gradient(160deg, var(--bc), #1c1f2c); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 20px; color: #fff; }
.mini-lid { position: absolute; left: 2px; right: 2px; top: 6px; height: 14px; border-radius: 6px; background: linear-gradient(180deg, #fff3, var(--bc)); }

.box-overlay { position: fixed; inset: 0; z-index: 45; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px;
  background: radial-gradient(circle at 50% 42%, rgba(30, 24, 60, 0.75), rgba(4, 6, 16, 0.92)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.box-overlay.open { display: flex; animation: screenIn 0.25s ease-out; }
.box-stage { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.mbox { position: relative; width: 140px; height: 130px; }
.mbox-glow { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, var(--bg), transparent 65%); opacity: 0.6; transition: opacity 0.3s, transform 0.4s; }
.mbox-body { position: absolute; left: 10px; right: 10px; bottom: 0; height: 92px; border-radius: 14px; background: linear-gradient(160deg, var(--bc), #151824 85%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 14px 30px rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; }
.mbox-body span { font-size: 46px; font-weight: 900; color: #fff; text-shadow: 0 0 18px var(--bg); }
.mbox-lid { position: absolute; left: 2px; right: 2px; top: 10px; height: 30px; border-radius: 10px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), var(--bc)); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35); transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), opacity 0.45s; transform-origin: 20% 100%; }
.mbox { animation: boxFloat 2.4s ease-in-out infinite; }
.mbox.shaking { animation: boxShake 0.65s linear; }
.mbox.opened { animation: none; }
.mbox.opened .mbox-lid { transform: translate(-30px, -90px) rotate(-35deg); opacity: 0; }
.mbox.opened .mbox-glow { opacity: 1; transform: scale(1.4); }
.mbox.opened .mbox-body { transform: scale(0.92); transition: transform 0.3s; }
@keyframes boxFloat { 50% { transform: translateY(-8px); } }
@keyframes boxShake { 0%, 100% { transform: none; } 15% { transform: rotate(-6deg); } 30% { transform: rotate(6deg); } 45% { transform: rotate(-8deg) scale(1.03); } 60% { transform: rotate(8deg) scale(1.05); } 80% { transform: rotate(-4deg) scale(1.08); } }
.box-reward { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -10%) scale(0.6); opacity: 0; min-width: 220px; padding: 14px 18px; border-radius: 16px; text-align: center;
  background: rgba(14, 20, 44, 0.95); border: 1px solid var(--bc); box-shadow: 0 0 30px var(--bg); display: flex; flex-direction: column; gap: 4px; pointer-events: none; transition: transform 0.45s cubic-bezier(.2, 1.5, .4, 1), opacity 0.3s; }
.box-reward.show { opacity: 1; transform: translate(-50%, -95%) scale(1); }
.box-reward small { font-size: 11px; letter-spacing: 0.16em; font-weight: 900; color: var(--muted); }
.box-reward b { font-size: 18px; font-weight: 900; }
.box-overlay .box-name { color: var(--bc); font-size: 15px; }
.box-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 320px; }

/* Level-Up */
.levelup-pop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; }
.levelup-pop.show { pointer-events: auto; animation: luIn 2.8s ease forwards; }
.lu-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 38px; border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(177, 140, 255, 0.4), rgba(14, 20, 44, 0.95) 70%); border: 1px solid rgba(177, 140, 255, 0.5); box-shadow: 0 0 60px rgba(125, 200, 255, 0.35); }
.lu-card small { font-size: 14px; font-weight: 900; letter-spacing: 0.3em; color: #cfe0ff; }
.lu-card b { font-size: 72px; font-weight: 900; font-style: italic; line-height: 1; background: linear-gradient(180deg, #fff, #9fd8ff 55%, #b18cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lu-card span { font-size: 13px; font-weight: 800; color: var(--yellow); }
@keyframes luIn { 0% { opacity: 0; transform: scale(0.7); } 12% { opacity: 1; transform: scale(1.05); } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

/* Garage */
.garage-stage { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.garage-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 960 / 460; touch-action: none; cursor: grab; }
.garage-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.45); pointer-events: none; }
.garage-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.g-item { padding: 12px 10px; border-radius: 16px; background: var(--glass); border: 1.5px solid var(--glass-border); display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; transition: transform 0.12s ease, border-color 0.15s; }
.g-item:hover { transform: translateY(-2px); }
.g-item.equipped { border-color: var(--green); }
.g-item.preview { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(77, 216, 255, 0.15); }
.g-item.locked .sw { filter: saturate(0.6) brightness(0.8); }
.g-item .btn { width: 100%; font-size: 12px; }
.g-name { font-weight: 900; font-size: 13px; letter-spacing: 0.05em; }
.sw { display: block; width: 54px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.15); }
.sw.neon { border-radius: 999px; height: 14px; margin: 10px 0; }
.sw.rim { width: 38px; height: 38px; border-radius: 50%; border: 3px solid; }
.sw.spoiler { font-style: normal; font-size: 24px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.06); }

/* Profil */
.profile-hero { display: flex; align-items: center; gap: 16px; }
.p-ring { --p: 0; flex: 0 0 92px; height: 92px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(#7df9ff calc(var(--p) * 1%), rgba(255, 255, 255, 0.1) 0); }
.p-ring span { width: 76px; height: 76px; border-radius: 50%; background: #10162e; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.p-ring small { font-size: 9px; letter-spacing: 0.2em; color: var(--muted); font-weight: 800; }
.p-ring b { font-size: 30px; font-weight: 900; }
.p-name { font-weight: 900; font-size: 20px; font-style: italic; letter-spacing: 0.05em; }
.p-xp { font-size: 12px; color: var(--muted); font-weight: 700; }
.p-season { font-size: 12px; color: #ff8be3; font-weight: 800; margin-top: 4px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-stat { padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 2px; }
.p-stat small { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }
.p-stat b { font-size: 18px; font-weight: 900; }
.p-maps { display: flex; flex-direction: column; }
.p-map { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.p-map:first-child { border-top: 0; }
.p-map span { font-weight: 800; font-size: 13px; }
.p-map b { font-weight: 900; color: var(--yellow); text-align: right; }
.p-map small { grid-column: span 2; font-size: 11px; color: var(--muted); }

/* Run-End-Screen */
.run-end { max-width: 480px; }
.run-end .go-stats { grid-template-columns: repeat(3, 1fr); }
.run-end .go-stat.wide { grid-column: span 3; }
.run-end .go-stat b { font-size: 20px; }
.run-end .go-stat.wide-small { grid-column: span 3; flex-direction: row; justify-content: space-between; align-items: center; }
.run-end .go-stat.wide-small b { font-size: 14px; }
.go-stat.xp b { background: var(--xp); -webkit-background-clip: text; background-clip: text; color: transparent; }
.moon-only { display: none !important; }
.run-end.is-moon .moon-only { display: flex !important; }
.re-level { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.re-level .lvl-row.lvlup b { color: var(--yellow); animation: pulse 0.8s ease-in-out 3; }
.re-xp-break { font-size: 11px; color: var(--muted); font-weight: 700; text-align: center; }
.re-missions { display: flex; flex-direction: column; gap: 6px; }
.re-mission { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.re-mission .row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.re-mission .row small { font-size: 9px; letter-spacing: 0.12em; color: var(--muted); margin-left: 4px; }
.re-mission .row span { color: var(--muted); font-weight: 800; }
.re-mission.complete { border: 1px solid rgba(255, 210, 63, 0.45); animation: missionDone 0.7s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i, 0) * 0.06s + 0.4s); }
.re-mission.complete .row b::after { content: " · MISSION COMPLETE"; color: var(--yellow); font-size: 9px; letter-spacing: 0.12em; }
@keyframes missionDone { 0% { transform: scale(0.94); box-shadow: 0 0 0 rgba(255, 210, 63, 0); } 50% { transform: scale(1.03); box-shadow: 0 0 24px rgba(255, 210, 63, 0.4); } 100% { transform: none; } }
.re-box { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: linear-gradient(120deg, rgba(176, 98, 255, 0.22), rgba(255, 255, 255, 0.04)); border: 1px solid rgba(177, 140, 255, 0.45); }
.re-box-icon { font-size: 30px; animation: boxFloat 1.8s ease-in-out infinite; }
.re-box .mm-info { display: flex; flex-direction: column; }
.re-box small { font-size: 11px; color: var(--muted); font-weight: 700; }
.reveal { animation: revealIn 0.4s ease-out both; animation-delay: calc(var(--i, 0) * 0.07s); }
@keyframes revealIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Patch Notes 2.0 */
ul.two-col { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px 18px !important; }
.patch-popup-card { max-height: calc(100vh - 32px); overflow-y: auto; max-width: 520px; }
.patch-popup-card ul.two-col { font-size: 14px; }

@media (max-width: 520px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .login-grid { grid-template-columns: repeat(3, 1fr); }
  .login-tile.exclusive { grid-column: span 3; }
  .box-grid { grid-template-columns: 1fr; }
  .box-card { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  ul.two-col { grid-template-columns: 1fr; }
  .run-end .go-stats { grid-template-columns: repeat(2, 1fr); }
  .run-end .go-stat.wide, .run-end .go-stat.wide-small { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .re-mission.complete, .mbox, .login-tile.today { animation: none !important; }
}

/* ---------- Version 2.1: Visual Overdrive – modernes, cleanes UI ---------- */
html, body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.screen { background: radial-gradient(ellipse at 50% 30%, rgba(10, 14, 34, 0.35), rgba(5, 7, 20, 0.9) 78%); }
.screen.active { animation: screenIn21 0.32s cubic-bezier(.2, .8, .2, 1); }
@keyframes screenIn21 { from { opacity: 0; transform: translateY(10px) scale(0.99); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Buttons: Glas statt Plastik, feine Kante, Micro-Animation */
.btn:not(.primary):not(.green):not(.red) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn { transition: transform 0.14s cubic-bezier(.2, .8, .2, 1), box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:not(.primary):hover { border-color: rgba(255, 255, 255, 0.24); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn.primary { box-shadow: 0 4px 0 #a8410a, 0 14px 34px rgba(255, 122, 26, 0.32), inset 0 2px 0 rgba(255, 255, 255, 0.45); position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: skewX(-18deg); animation: btnSheen 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes btnSheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn.tile .ti { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); transition: transform 0.2s cubic-bezier(.2, 1.4, .4, 1); }
.btn.tile:hover .ti { transform: scale(1.15) rotate(-4deg); }

/* Panels & Typografie */
.panel, .go-wrap, .patch-popup-card, .level-card, .mission, .g-item, .box-card, .login-tile, .p-stat {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sub-head h2, .go-title { letter-spacing: 0.08em; }
.panel-title { letter-spacing: 0.14em; font-size: 12px; }

/* Fortschrittsbalken: animierter Glanz */
.bar > i, .xp-bar > i { position: relative; overflow: hidden; transition: width 0.8s cubic-bezier(.2, .8, .2, 1); }
.bar > i::after, .xp-bar > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transform: translateX(-100%); animation: barShine 2.8s ease-in-out infinite; }
@keyframes barShine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Map-Auswahl: Vorschau zoomt sanft, Schwierigkeit + Spezial-Mechanik */
.map-card { overflow: hidden; position: relative; }
.map-card canvas { transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), filter 0.3s; }
.map-card:hover canvas { transform: scale(1.035); }
.map-card:not(.selected) canvas { filter: saturate(0.85) brightness(0.9); }
.map-card.selected::after { content: "✔ GEWÄHLT"; position: absolute; top: 18px; right: 18px; font: 900 10px var(--font); letter-spacing: 0.14em; padding: 4px 8px; border-radius: 999px; background: rgba(10, 15, 36, 0.8); border: 1px solid rgba(255, 255, 255, 0.25); }
.map-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px; }
.map-diff { display: inline-flex; gap: 3px; }
.map-diff i { width: 14px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.map-diff i.on { background: linear-gradient(90deg, #ffd23f, #ff7a1a); }
.moon-card .map-diff i.on { background: linear-gradient(90deg, #ff6b84, #b18cff); }
.map-special { font-size: 10px; font-weight: 900; letter-spacing: 0.12em; color: var(--cyan); padding: 3px 8px; border-radius: 999px; background: rgba(77, 216, 255, 0.1); white-space: nowrap; }
.moon-card .map-special { color: #b18cff; background: rgba(177, 140, 255, 0.14); }

/* Rekord / Level-Up / Game-Over: kurze, hochwertige Akzente */
.go-record { background: linear-gradient(100deg, #ffd23f 20%, #fff7d1 40%, #ffd23f 60%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; animation: recordSheen 1.6s linear infinite, pulse 0.9s ease-in-out infinite; }
@keyframes recordSheen { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.lu-card { position: relative; }
.lu-card::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; border: 2px solid rgba(159, 216, 255, 0.5); animation: luRing 0.9s ease-out forwards; pointer-events: none; }
@keyframes luRing { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.level-card .lvl-badge { transition: transform 0.25s cubic-bezier(.2, 1.4, .4, 1); }
.level-card:hover .lvl-badge { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .btn.primary::after, .bar > i::after, .xp-bar > i::after, .go-record { animation: none !important; }
}
.map-meta { flex-wrap: wrap; row-gap: 4px; }

/* ---------- Steuerung ---------- */
.tile-controls { border-color: rgba(255, 210, 63, 0.35) !important; }
.hint-btn { align-self: center; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; color: var(--text); font: 800 12px var(--font); letter-spacing: 0.04em; padding: 9px 16px; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.hint-btn:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.ctrl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ctrl-card { display: flex; flex-direction: column; gap: 8px; opacity: 0.75; transition: opacity 0.2s, border-color 0.2s; }
.ctrl-card.active-dev { opacity: 1; border-color: rgba(255, 210, 63, 0.45); }
.ctrl-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ctrl-row b { font-weight: 700; color: rgba(244, 246, 255, 0.9); }
.keys { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; min-width: 104px; }
.keys small { color: var(--muted); font-size: 10px; }
.keys.swipe { font-size: 18px; min-width: 52px; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 7px; font: 900 12px var(--font); color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
kbd.wide { min-width: 52px; }
.ctrl-maps { display: flex; flex-direction: column; gap: 8px; }
.ctrl-map p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: rgba(244, 246, 255, 0.85); }
.cm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm-head span { font-size: 10px; font-weight: 900; letter-spacing: 0.12em; padding: 3px 8px; border-radius: 999px; background: rgba(77, 216, 255, 0.12); color: var(--cyan); }
.ctrl-map.moon .cm-head span { background: rgba(177, 140, 255, 0.16); color: #b18cff; }
.ctrl-map.current { border-color: rgba(255, 210, 63, 0.5); }
.ctrl-map.current .cm-head b::after { content: "  · AKTUELLE MAP"; color: var(--yellow); font-size: 10px; letter-spacing: 0.1em; }
.ctrl-tips p { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(244, 246, 255, 0.85); }
.pause-controls { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.pc-title { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; color: var(--yellow); }
.pc-row { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.pc-row kbd { min-width: 120px; height: auto; padding: 5px 8px; font-size: 11px; }
.pause-controls .link-btn { align-self: flex-start; margin-top: 2px; }
@media (max-width: 520px) { .ctrl-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Version 2.2 – FUTURE SHIFT
   Clean Future-Arcade: Glas, feine Kanten, dezentes Glow, klare Hierarchie
   (PLAY → Map/Charakter/Fahrzeug → Missionen/Progress → Statistiken → Settings/Patch Notes)
   ========================================================= */
:root {
  --q-cyan: #7df9ff; --q-violet: #b18cff; --q-glass: rgba(14, 20, 40, 0.58); --q-line: rgba(255, 255, 255, 0.1);
  --q-line2: rgba(125, 249, 255, 0.28); --q-shadow: 0 14px 38px rgba(0, 0, 0, 0.38);
}
.screen { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }

/* ---------- Hauptmenü ---------- */
.m22 { max-width: 560px; gap: 12px; }
.m-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-brand { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); font: 800 11px var(--font); letter-spacing: 0.24em; cursor: pointer; padding: 6px 4px; }
.m-brand:hover { color: var(--text); }
.m-top-right { display: flex; align-items: center; gap: 8px; }
.coin-pill.sm { padding: 6px 12px; font-size: 14px; gap: 6px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--q-line); background: var(--q-glass); color: var(--text); font-size: 19px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform 0.15s cubic-bezier(.2, 1.4, .4, 1), border-color 0.2s; }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--q-line2); }
.icon-btn:active { transform: scale(0.94); }
.m22 .logo { margin: 2px 0 0; }
.m22 .logo-big { font-size: 70px; }
.level-card.compact { padding: 8px 12px; gap: 10px; }
.level-card.compact .lvl-badge { flex-basis: 44px; height: 44px; border-radius: 12px; }
.level-card.compact .lvl-badge b { font-size: 20px; }
.level-card.compact .lvl-row { font-size: 11px; }
.level-card.compact #menuSeason { color: #ff8be3; }
.m22 .play-btn { font-size: 30px; padding: 20px 24px 16px; letter-spacing: 0.14em; border-radius: 20px; }
.m22 .play-btn small { font-size: 11px; letter-spacing: 0.12em; opacity: 0.8; margin-top: 4px; white-space: normal; text-align: center; }
.loadout { display: grid; grid-template-columns: 1.25fr 0.85fr 1.25fr; gap: 8px; }
.lo-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--q-line); background: var(--q-glass);
  color: var(--text); cursor: pointer; text-align: left; font-family: var(--font); box-shadow: var(--q-shadow); transition: transform 0.15s cubic-bezier(.2, .8, .2, 1), border-color 0.2s; }
.lo-card:hover { transform: translateY(-2px); border-color: var(--q-line2); }
.lo-card canvas { width: 100%; height: 82px; object-fit: cover; display: block; background: radial-gradient(circle at 50% 70%, rgba(125, 200, 255, 0.12), rgba(0, 0, 0, 0.25)); }
.lo-txt { display: flex; flex-direction: column; padding: 6px 10px 8px; gap: 1px; min-width: 0; }
.lo-txt small { font-size: 9px; font-weight: 800; letter-spacing: 0.18em; color: var(--muted); }
.lo-txt b { font-size: 12px; font-weight: 900; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.m-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 8px 4px; border-radius: 14px;
  border: 1px solid var(--q-line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); color: var(--text);
  font: 900 10px var(--font); letter-spacing: 0.12em; cursor: pointer; transition: transform 0.15s cubic-bezier(.2, 1.4, .4, 1), border-color 0.2s, background 0.2s; }
.m-nav button:hover { transform: translateY(-2px); border-color: var(--q-line2); background: linear-gradient(180deg, rgba(125, 249, 255, 0.1), rgba(255, 255, 255, 0.02)); }
.m-nav .ni { font-size: 18px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.m-foot { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; opacity: 0.85; }
.chip-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--q-line); border-radius: 999px; color: var(--muted); font: 800 11px var(--font); letter-spacing: 0.08em; padding: 8px 14px; cursor: pointer; min-height: 34px; }
.chip-btn:hover { color: var(--text); border-color: var(--q-line2); }
.chip-btn.whatsnew { color: var(--q-cyan); border-color: rgba(125, 249, 255, 0.3); }

/* ---------- Collection-Tabs ---------- */
.coll-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; }
.coll-tabs::-webkit-scrollbar { display: none; }
.ct { position: relative; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 14px; border-radius: 12px;
  border: 1px solid var(--q-line); background: rgba(255, 255, 255, 0.04); color: var(--muted); font: 900 11px var(--font); letter-spacing: 0.1em; cursor: pointer; white-space: nowrap; transition: all 0.18s; }
.ct:hover { color: var(--text); }
.ct.active { color: var(--text); border-color: rgba(125, 249, 255, 0.45); background: linear-gradient(180deg, rgba(125, 249, 255, 0.14), rgba(125, 249, 255, 0.03)); box-shadow: 0 0 0 3px rgba(125, 249, 255, 0.08); }
.ct .ct-i { font-size: 14px; }

/* ---------- Skin-Auswahl ---------- */
.skin-stage { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(20, 30, 60, 0.6), rgba(8, 12, 28, 0.7)); border: 1px solid var(--q-line); box-shadow: var(--q-shadow); }
.skin-hero { position: relative; border-radius: 18px; background: radial-gradient(circle at 50% 60%, rgba(125, 200, 255, 0.12), rgba(0, 0, 0, 0.25)); border: 1px solid var(--q-line); overflow: hidden; }
.skin-hero.r-LEGENDARY { border-color: rgba(255, 201, 60, 0.45); box-shadow: inset 0 0 40px rgba(255, 190, 60, 0.12); }
.skin-hero.r-EPIC { border-color: rgba(177, 140, 255, 0.4); }
.skin-hero canvas { display: block; width: 100%; height: auto; aspect-ratio: 360 / 420; }
.skin-hero.shake { animation: shake 0.35s; }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--q-line); background: rgba(8, 12, 28, 0.7); color: var(--muted); font-size: 20px; cursor: pointer; }
.fav-btn.on { color: var(--yellow); border-color: rgba(255, 210, 63, 0.5); }
.skin-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.si-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.si-cat { font-size: 11px; font-weight: 900; letter-spacing: 0.16em; color: var(--q-cyan); padding: 3px 9px; border-radius: 999px; background: rgba(125, 249, 255, 0.1); }
.skin-info h3 { margin: 0; font-size: 30px; font-weight: 900; font-style: italic; letter-spacing: 0.04em; line-height: 1.05; }
.si-tags { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.si-status { font-size: 12px; font-weight: 900; letter-spacing: 0.08em; color: var(--yellow); }
.skin-info .btn.big { font-size: 18px; }
.si-note { margin: 0; font-size: 11px; color: var(--muted); }
.filter-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--q-line); background: rgba(255, 255, 255, 0.04); color: var(--muted);
  font: 900 11px var(--font); letter-spacing: 0.1em; cursor: pointer; transition: all 0.15s; }
.chip small { opacity: 0.6; margin-left: 3px; font-weight: 800; }
.chip.active { color: #06121a; background: linear-gradient(180deg, #bffbff, #7df9ff); border-color: transparent; }
.skin-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.skin-rail .skin-card { position: relative; padding: 8px 8px 10px; gap: 4px; border-radius: 16px; border: 1.5px solid var(--q-line); background: var(--q-glass); cursor: pointer; color: var(--text); font-family: var(--font); }
.skin-rail .skin-card:hover { transform: translateY(-2px); }
.skin-rail .skin-card canvas { width: 100%; height: auto; aspect-ratio: 150 / 180; border-radius: 12px; }
.skin-rail .skin-card.picked { border-color: var(--q-cyan); box-shadow: 0 0 0 3px rgba(125, 249, 255, 0.14); }
.skin-rail .skin-card.selected .sc-meta { color: var(--green); }
.skin-rail .skin-card.r-LEGENDARY { border-color: rgba(255, 201, 60, 0.35); }
.skin-rail .skin-card.r-LEGENDARY.picked { border-color: var(--yellow); }
.sc-name { font-weight: 900; font-size: 11px; letter-spacing: 0.05em; text-align: center; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; }
.sc-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 900; color: var(--muted); letter-spacing: 0.06em; }
.sc-fav { position: absolute; top: 8px; right: 10px; color: var(--yellow); font-size: 13px; }
.rdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #c9cfdd; }
.rdot.RARE { background: #6fb8ff; } .rdot.EPIC { background: #c79bff; } .rdot.LEGENDARY { background: #ffd23f; box-shadow: 0 0 8px rgba(255, 210, 63, 0.7); }

/* ---------- Fahrzeuge / Garage ---------- */
.veh-info { padding: 12px 14px; border-radius: 16px; background: var(--q-glass); border: 1px solid var(--q-line); display: flex; flex-direction: column; gap: 4px; }
.veh-info:empty { display: none; }
.veh-info p { margin: 0; font-size: 13px; color: rgba(244, 246, 255, 0.85); }
.vi-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vi-main b { font-size: 20px; font-weight: 900; font-style: italic; letter-spacing: 0.05em; }
.vi-cls { font-size: 10px; font-weight: 900; letter-spacing: 0.16em; color: var(--muted); }
.vi-badge { font-size: 10px; font-weight: 900; letter-spacing: 0.16em; color: #ffb36b; padding: 3px 9px; border-radius: 999px; background: rgba(255, 122, 26, 0.14); border: 1px solid rgba(255, 122, 26, 0.35); }
.vi-status { font-size: 11px; font-weight: 800; color: var(--q-cyan); letter-spacing: 0.04em; }
.g-item.veh canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 10px; background: radial-gradient(circle at 50% 75%, rgba(160, 200, 255, 0.12), rgba(0, 0, 0, 0.2)); }
.g-item.veh.locked canvas { filter: saturate(0.4) brightness(0.65); }
.g-cls { font-size: 9px; font-weight: 900; letter-spacing: 0.14em; color: var(--muted); }
.g-status { font-size: 10px; font-weight: 800; color: var(--q-cyan); letter-spacing: 0.04em; min-height: 1.2em; }
.garage-items { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }

/* ---------- Map-Auswahl ---------- */
.map-grid { grid-template-columns: repeat(3, 1fr); }
.map-card { padding: 8px 8px 12px; border-radius: 20px; background: linear-gradient(170deg, rgba(22, 30, 58, 0.7), rgba(8, 12, 28, 0.78)); }
.map-card canvas { border-radius: 14px; }
.map-tier.insane { background: linear-gradient(90deg, rgba(125, 249, 255, 0.2), rgba(177, 140, 255, 0.24)); color: #bffbff; }
.quantum-card { border-color: rgba(125, 249, 255, 0.35); }
.quantum-card.selected { border-color: var(--q-cyan); box-shadow: 0 0 0 3px rgba(125, 249, 255, 0.2), 0 0 34px rgba(177, 140, 255, 0.22); }
.quantum-card .map-diff i.on { background: linear-gradient(90deg, #7df9ff, #b18cff); }
.quantum-card .map-special { color: #bffbff; background: rgba(177, 140, 255, 0.16); }
.map-best { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; }
.ctrl-map.quantum .cm-head span { background: rgba(177, 140, 255, 0.16); color: #c8b6ff; }

/* ---------- Rewards / Daily / Profil / Run-Ende / Einstellungen ---------- */
.daily-teaser { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255, 210, 63, 0.3);
  background: linear-gradient(120deg, rgba(255, 190, 60, 0.12), rgba(255, 255, 255, 0.03)); color: var(--text); text-align: left; cursor: pointer; font-family: var(--font); }
.daily-teaser > span:first-child { font-size: 26px; }
.daily-teaser b { display: block; font-size: 13px; letter-spacing: 0.1em; }
.daily-teaser small { font-size: 12px; color: var(--muted); font-weight: 700; }
.p-ach { display: flex; flex-direction: column; gap: 8px; }
.pa-row { display: flex; align-items: center; gap: 12px; }
.pa-row b { font-size: 18px; font-weight: 900; white-space: nowrap; }
.pa-row .bar { flex: 1; margin: 0; }
.pa-latest { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-latest span { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(255, 210, 63, 0.1); color: var(--yellow); }
.p-details summary, .classic-daily summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.p-details summary::-webkit-details-marker, .classic-daily summary::-webkit-details-marker { display: none; }
.p-details summary::after, .classic-daily summary::after { content: "▾"; color: var(--muted); }
.p-details[open] summary, .classic-daily[open] summary { margin-bottom: 10px; }
.records.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.records.compact .record-item { padding: 10px 12px; border-radius: 12px; }
.records.compact .record-item b { font-size: 17px; }
.go-map { text-align: center; margin-top: -8px; font-size: 11px; font-weight: 900; letter-spacing: 0.2em; color: var(--muted); }
.quantum-only { display: none !important; }
.run-end.is-quantum .quantum-only { display: flex !important; }
.set-row > span { display: flex; flex-direction: column; gap: 2px; }
.set-sub { font-size: 11px; font-weight: 700; color: var(--muted); }
.patch-22 { border-color: rgba(125, 249, 255, 0.35); background: linear-gradient(160deg, rgba(30, 60, 90, 0.55), rgba(14, 20, 44, 0.8)); }
.patch-22 .patch-title { color: var(--q-cyan); }
.patch-popup-card { border-color: rgba(125, 249, 255, 0.4); }

/* ---------- Mobile: eigenes Layout statt verkleinerter Desktop-Version ---------- */
@media (max-width: 640px) {
  #screen-menu { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .m22 { min-height: calc(100% - 8px); justify-content: flex-start; gap: 14px; }
  .m22 .logo { margin-top: 8px; }
  .m22 .logo-big { font-size: 58px; }
  .m22 .logo-small { font-size: 22px; }
  .m22 .logo-box { width: 56px; height: 56px; }
  .m22 .play-btn { margin-top: auto; font-size: 34px; padding: 26px 20px 20px; }
  .loadout { display: none; }
  .m-foot { margin-bottom: auto; }
  .m-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(8, 11, 26, 0.88); border-top: 1px solid var(--q-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .m-nav button { min-height: 56px; border: 0; background: none; border-radius: 12px; font-size: 9.5px; }
  .m-nav button:hover { transform: none; background: rgba(255, 255, 255, 0.05); }
  .m-nav .ni { font-size: 20px; }
  .m-nav .nav-settings { display: none; }
  .m-nav .badge { top: 4px; right: calc(50% - 22px); }
  /* Map-Auswahl: horizontal swipebare, große Karten */
  .map-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 4px 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .map-grid::-webkit-scrollbar { display: none; }
  .map-card { flex: 0 0 84%; scroll-snap-align: center; }
  /* Skins: große Vorschau oben, swipebare Karten darunter */
  .skin-stage { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .skin-hero { max-width: 210px; justify-self: center; width: 100%; }
  .skin-info { gap: 6px; }
  .si-note { display: none; }
  .map-grid, .skin-rail { position: relative; }
  .skin-info { align-items: center; text-align: center; }
  .skin-info h3 { font-size: 24px; }
  .skin-info .btn.big { width: 100%; }
  .skin-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
  .skin-rail::-webkit-scrollbar { display: none; }
  .skin-rail .skin-card { flex: 0 0 38%; scroll-snap-align: start; }
  .garage-items { grid-template-columns: repeat(2, 1fr); }
  .ct b { font-size: 10px; }
  .sub-head h2 { font-size: 19px; }
  .sub-head .coin-pill { padding: 5px 10px; font-size: 13px; gap: 5px; }
  .sub-head .btn.small { padding: 9px 11px; }
  .ct { padding: 8px 10px; }
  .records.compact { grid-template-columns: repeat(2, 1fr); }
  .btn.small { min-height: 40px; }
}
@media (max-width: 380px) {
  .skin-rail .skin-card { flex-basis: 44%; }
  .m22 .play-btn { font-size: 30px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .map-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-height: 700px) and (min-width: 641px) {
  .m22 .logo-big { font-size: 54px; }
  .lo-card canvas { height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .lo-card, .m-nav button, .icon-btn { transition: none; }
}
/* lange Inhalte: oben beginnen statt abgeschnitten zentrieren */
#screen-gameover, #screen-pause { align-items: flex-start; }
#screen-gameover > .go-wrap, #screen-pause > .go-wrap { margin-top: auto; margin-bottom: auto; }
.go-more { text-align: center; }
.go-more summary { cursor: pointer; font-size: 12px; font-weight: 800; color: var(--cyan); list-style: none; padding: 4px; }
.go-more summary::-webkit-details-marker { display: none; }
.go-more > div { margin-top: 3px; }

/* =========================================================
   LUKRAVA Publishing Update 1.5
   Studio-Branding nur für Intro, Ladebildschirm, Credits, Footer und Fehlerseite –
   die Art Direction von PACKAGE RUSH bleibt unverändert.
   ========================================================= */
:root { --lk-green: #315A49; --lk-ink: #17221C; --lk-ivory: #F5F3EC; --lk-sage: #A9B6A4; }
html, body { -webkit-touch-callout: none; }

/* Safe Areas (Notch, Dynamic Island, Home Indicator, Kamera-Ausschnitte im Querformat) */
#safeProbe { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.screen { padding-left: calc(16px + env(safe-area-inset-left)); padding-right: calc(16px + env(safe-area-inset-right)); }
#pauseBtn { right: calc(10px + env(safe-area-inset-right)); }

/* Ladebildschirm + Studio-Intro */
#devIntro.studio-intro { background: var(--lk-ink); color: var(--lk-ivory); gap: 0; }
.studio-intro .si-load { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity 0.3s ease; }
.si-load-brand { font-size: 11px; font-weight: 700; letter-spacing: 0.42em; padding-left: 0.42em; color: var(--lk-sage); text-transform: uppercase; }
.si-load-game { font-size: 15px; font-weight: 800; letter-spacing: 0.28em; padding-left: 0.28em; }
.si-bar { width: 120px; height: 2px; background: rgba(245, 243, 236, 0.12); overflow: hidden; border-radius: 2px; margin-top: 6px; }
.si-bar i { display: block; width: 40%; height: 100%; background: var(--lk-sage); animation: siLoad 1.1s ease-in-out infinite; }
@keyframes siLoad { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.studio-intro .si-main { display: flex; flex-direction: column; align-items: center; opacity: 0; }
.studio-intro.ready .si-load { opacity: 0; pointer-events: none; }
.studio-intro.ready .si-main { opacity: 1; }
.si-word { font-size: clamp(34px, 9vw, 56px); font-weight: 700; letter-spacing: 0.34em; padding-left: 0.34em; line-height: 1; opacity: 0; transform: translateY(6px); }
.si-sub { margin-top: 10px; font-size: clamp(12px, 3vw, 15px); font-weight: 600; letter-spacing: 0.62em; padding-left: 0.62em; color: var(--lk-sage); opacity: 0; }
.si-rule { width: 44px; height: 2px; background: var(--lk-green); margin: 22px 0 18px; transform: scaleX(0); }
.si-prod { font-size: 10px; font-weight: 600; letter-spacing: 0.32em; padding-left: 0.32em; color: rgba(245, 243, 236, 0.72); opacity: 0; text-align: center; }
.si-orig { margin-top: 12px; font-size: 11px; letter-spacing: 0.08em; color: rgba(169, 182, 164, 0.8); opacity: 0; }
.si-skip { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); font-size: 10px; letter-spacing: 0.2em; color: rgba(245, 243, 236, 0.32); text-transform: uppercase; opacity: 0; }
.studio-intro.ready .si-word { animation: siIn 0.7s cubic-bezier(.2, .8, .2, 1) 0.05s forwards; }
.studio-intro.ready .si-sub { animation: siFade 0.6s ease-out 0.35s forwards; }
.studio-intro.ready .si-rule { animation: siRule 0.6s cubic-bezier(.6, 0, .2, 1) 0.6s forwards; }
.studio-intro.ready .si-prod { animation: siFade 0.6s ease-out 0.95s forwards; }
.studio-intro.ready .si-orig { animation: siFade 0.5s ease-out 1.35s forwards; }
.studio-intro.ready .si-skip { animation: siFade 0.4s ease-out 1s forwards; }
@keyframes siIn { to { opacity: 1; transform: none; } }
@keyframes siFade { to { opacity: 1; } }
@keyframes siRule { to { transform: scaleX(1); } }
#devIntro.studio-intro.done { opacity: 0; transition: opacity 0.4s ease; }
@media (prefers-reduced-motion: reduce) {
  .studio-intro.ready .si-word, .studio-intro.ready .si-sub, .studio-intro.ready .si-prod, .studio-intro.ready .si-orig, .studio-intro.ready .si-rule, .studio-intro.ready .si-skip { animation-duration: 0.01s; animation-delay: 0s; }
  .si-bar i { animation: none; width: 100%; opacity: 0.5; }
}

/* Fehlerseite (statt roher JavaScript-Fehler) */
.boot-error { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px; background: var(--lk-ink); color: var(--lk-ivory); }
.boot-error.open { display: flex; }
.be-card { max-width: 420px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.be-card small { font-size: 11px; letter-spacing: 0.4em; color: var(--lk-sage); text-transform: uppercase; }
.be-card b { font-size: 24px; letter-spacing: 0.2em; }
.be-card p { margin: 4px 0 10px; line-height: 1.5; color: rgba(245, 243, 236, 0.8); }

/* Studio-Footer im Hauptmenü (dezent) */
.studio-foot { display: flex; justify-content: center; align-items: center; gap: 10px 14px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.06em; color: rgba(245, 243, 236, 0.5); margin-top: 2px; }
.studio-foot b { color: rgba(245, 243, 236, 0.78); font-weight: 700; }
.studio-link { color: var(--lk-sage); text-decoration: none; font-weight: 700; letter-spacing: 0.08em; padding: 6px 2px; }
.studio-link:hover { color: var(--lk-ivory); }
.embed-only, .fs-only, .share-only { display: none !important; }
html.embedded .embed-only { display: inline-flex !important; }
html.embedded .standalone-only { display: none !important; }
html.can-fullscreen .fs-only { display: revert !important; }
html.can-fullscreen .icon-btn.fs-only { display: inline-flex !important; }
html.can-fullscreen .set-row.fs-only { display: flex !important; }
html.can-share .share-only { display: inline-flex !important; }

/* Credits – LUKRAVA Editorial */
.credits15 { background: var(--lk-ink); border-color: rgba(169, 182, 164, 0.22); color: var(--lk-ivory); gap: 14px; }
.credits15 .cr-game { font-size: 30px; font-weight: 800; letter-spacing: 0.2em; padding-left: 0.2em; }
.credits15 .credits-version { color: var(--lk-sage); font-size: 10px; letter-spacing: 0.18em; }
.cr-rule { width: 44px; height: 2px; background: var(--lk-green); }
.credits15 .credits-block { align-items: center; gap: 4px; }
.credits15 .credits-block small { color: var(--lk-sage); font-size: 10px; letter-spacing: 0.32em; }
.credits15 .credits-block b { font-size: 19px; letter-spacing: 0.12em; font-weight: 700; }
.credits15 .credits-mark { color: var(--lk-ivory); padding: 2px; }
.credits15 .credits-mark svg { width: 44px; height: 44px; }
.cr-link { color: var(--lk-ivory); font-size: 17px; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; border-bottom: 1px solid var(--lk-green); padding-bottom: 2px; }
.cr-copy { font-size: 11px; color: rgba(245, 243, 236, 0.5); letter-spacing: 0.04em; }
.credits15 .chip-btn { border-color: rgba(169, 182, 164, 0.3); color: var(--lk-sage); }
.credits15 .btn.small { color: var(--lk-ivory); }

/* Patch Notes: Publishing-Abschnitt + Start-Popup-Hinweis */
.patch-15 { border-color: rgba(169, 182, 164, 0.35); background: linear-gradient(160deg, rgba(49, 90, 73, 0.35), rgba(23, 34, 28, 0.85)); }
.patch-15 .patch-title { color: var(--lk-ivory); }
.patch-15 .patch-title span { background: rgba(169, 182, 164, 0.18); color: var(--lk-sage); }
.patch-note { margin: 0; font-size: 12px; color: rgba(245, 243, 236, 0.7); }
.patch-popup-pub { font-size: 12px; letter-spacing: 0.04em; color: var(--lk-sage); margin-top: -6px; }
.patch-popup-pub b { color: var(--lk-ivory); }

/* Einstellungen: Spielstand sichern */
.save-row { gap: 10px; flex-wrap: wrap; }
.save-btns { display: flex; gap: 8px; flex-direction: row !important; }

/* Querformat auf Smartphones: kompakteres Menü */
@media (max-height: 500px) and (orientation: landscape) {
  .m22 { max-width: 640px; gap: 8px; }
  .m22 .logo { display: none; }
  .loadout { display: none; }
  .m22 .play-btn { font-size: 24px; padding: 12px 20px 10px; }
  .m-nav button { min-height: 48px; }
  .level-card.compact { padding: 6px 10px; }
}
@media (max-width: 640px) {
  .studio-foot { margin-bottom: 4px; }
}

/* LUKRAVA-Wortmarke (Logo-Lockup): LUKRAVA | GAMES / TECHNOLOGIES – Größe über font-size, Farbe über color */
.lk { display: inline-flex; align-items: center; gap: 0.62em; vertical-align: middle; line-height: 1; white-space: nowrap; letter-spacing: 0; padding: 0; }
.lk-w { display: block; height: 0.78em; width: 3.95em; flex: none; }
.lk-sep { display: block; width: 1px; height: 1.15em; background: currentColor; opacity: 0.28; flex: none; }
.lk-d { font-size: 0.4em; font-weight: 500; letter-spacing: 0.34em; opacity: 0.72; text-transform: uppercase; }
/* Intro & Ladebildschirm */
.studio-intro .si-word { font-size: clamp(34px, 8.5vw, 64px); letter-spacing: 0; padding-left: 0; color: var(--lk-ivory); }
.studio-intro .si-word .lk-d { color: var(--lk-sage); opacity: 1; }
.studio-intro .si-load-brand { font-size: 20px; letter-spacing: 0; padding-left: 0; color: var(--lk-ivory); }
.studio-intro .si-prod { display: inline-flex; align-items: center; gap: 0.7em; font-size: 10px; }
.studio-intro .si-prod .lk { font-size: 22px; color: var(--lk-ivory); }
.studio-intro .si-prod .lk-d { font-size: 9px; letter-spacing: 0.32em; }
.be-card small { font-size: 18px; letter-spacing: 0; color: var(--lk-ivory); }
/* Hauptmenü */
.m-brand .lk { font-size: 17px; color: var(--text); }
.m-brand .lk-d { font-size: 8px; }
.studio-foot .sf-title { display: inline-flex; align-items: center; gap: 0.6em; }
.studio-foot .lk { font-size: 15px; color: rgba(245, 243, 236, 0.85); }
.studio-foot .lk-d { font-size: 7px; }
/* Credits */
.credits15 .credits-block b .lk { font-size: 26px; color: var(--lk-ivory); }
.credits15 .credits-block b .lk-d { font-size: 10px; color: var(--lk-sage); opacity: 1; }
.cr-copy { display: inline-flex; align-items: center; gap: 0.45em; flex-wrap: wrap; justify-content: center; }
.cr-copy .lk { font-size: 13px; color: rgba(245, 243, 236, 0.75); }
.cr-copy .lk-d { font-size: 6px; }
/* Patch Notes & Start-Popup */
.patch-15 .patch-title .lk { font-size: 20px; color: var(--lk-ivory); }
.patch-15 .patch-title .lk-d { font-size: 10px; }
.patch-popup-card h2 .lk { font-size: 26px; color: var(--lk-ivory); }
.patch-popup-card h2 .lk-d { font-size: 11px; color: var(--yellow); opacity: 1; letter-spacing: 0.24em; font-weight: 700; font-style: normal; }
.patch-popup-pub { display: flex; align-items: center; gap: 0.55em; flex-wrap: wrap; }
.patch-popup-pub .lk { font-size: 15px; color: var(--lk-ivory); }
.patch-popup-pub .lk-d { font-size: 7px; }
@media (max-width: 420px) {
  .patch-popup-card h2 .lk { font-size: 20px; }
  .patch-popup-card h2 .lk-d { font-size: 9px; letter-spacing: 0.16em; }
}
