:root {
  --bg-dark: #050614;
  --panel-bg: rgba(9, 13, 28, 0.88);
  --cyan: #00f0ff;
  --pink: #ff007f;
  --gold: #ffca28;
  --chrome: #d6e4f5;
  --text-main: #eef5ff;
  --text-muted: #8a9bb8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

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

.hidden {
  display: none !important;
}

/* ================= HUD ================= */
#hud {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
  z-index: 20;
}

.hud-box {
  background: rgba(8, 12, 26, 0.82);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 10px;
  padding: 6px 11px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.12);
  display: flex;
  flex-direction: column;
}

.hud-score-box { min-width: 96px; }

.hud-world-box {
  align-items: center;
  text-align: center;
  border-color: rgba(255, 0, 127, 0.4);
}

.hud-balls-box {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hud-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  font-weight: 700;
}

.hud-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
  line-height: 1.1;
}

.hud-world-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffba08;
}

.hud-level {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
}

.hud-balls {
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 15px;
  cursor: pointer;
}

/* ================= WORLD BANNER ================= */
#world-banner {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 30;
}

.banner-card {
  background: rgba(7, 10, 24, 0.92);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.35), inset 0 0 20px rgba(255, 0, 127, 0.2);
  padding: 18px 28px;
  text-align: center;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.banner-kicker {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--pink);
  font-weight: 800;
  margin-bottom: 4px;
}

.banner-card h2 {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 14px var(--cyan);
}

.banner-card p {
  font-size: 13px;
  color: var(--chrome);
  margin-top: 4px;
}

/* ================= TOUCH CONTROLS ================= */
#touch-controls {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.touch-zone {
  position: fixed;
  top: 72px;
  bottom: 0;
  width: 50%;
  pointer-events: auto;
}

#touch-left { left: 0; }
#touch-right { right: 0; }

#plunger-pad {
  position: fixed;
  right: 14px;
  bottom: 20px;
  width: 66px;
  height: 156px;
  border-radius: 34px;
  background: rgba(8, 12, 28, 0.72);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35), inset 0 0 12px rgba(255, 0, 127, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 12px;
  pointer-events: auto;
  touch-action: none;
  z-index: 25;
}

.plunger-handle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7a00, #ff0055);
  box-shadow: 0 0 16px rgba(255, 0, 85, 0.75);
  transition: transform 0.05s linear;
}

.plunger-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--cyan);
}

/* ================= CYBERPUNK OVERLAY & LOBBY ================= */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 240, 255, 0.14), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(255, 0, 127, 0.16), transparent 45%),
    rgba(4, 6, 16, 0.78);
  backdrop-filter: blur(7px);
  overflow-y: auto;
}

.cyber-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  z-index: 0;
}

.lobby-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel-bg);
  border: 1px solid rgba(0, 240, 255, 0.42);
  padding: 0;
  box-shadow:
    0 0 35px rgba(0, 240, 255, 0.18),
    0 0 60px rgba(255, 0, 127, 0.12),
    inset 0 0 24px rgba(0, 240, 255, 0.06);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.lobby-card-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px 14px;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.corner-accent {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 10;
}
.corner-accent.tl { top: 0; left: 0; border-top: 3px solid var(--cyan); border-left: 3px solid var(--cyan); }
.corner-accent.tr { top: 0; right: 0; border-top: 3px solid var(--pink); border-right: 3px solid var(--pink); }
.corner-accent.bl { bottom: 0; left: 0; border-bottom: 3px solid var(--pink); border-left: 3px solid var(--pink); }
.corner-accent.br { bottom: 0; right: 0; border-bottom: 3px solid var(--cyan); border-right: 3px solid var(--cyan); }

/* Logo */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.cyber-logo {
  width: 86px;
  height: 86px;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.45));
  animation: logoFloat 3.6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.cyber-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
}

.cyber-badge.danger {
  color: var(--pink);
  background: rgba(255, 0, 127, 0.12);
  border-color: rgba(255, 0, 127, 0.45);
}

.cyber-badge.gold-badge {
  color: var(--gold);
  background: rgba(255, 202, 40, 0.12);
  border-color: rgba(255, 202, 40, 0.5);
}

.cyber-title {
  text-align: center;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: 2.5px;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 10%, #b5cbe4 55%, #6d84a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.35));
}

.cyber-title span {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cyber-subtitle {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin: 4px 0 12px;
}

/* Auth & Wallet */
.auth-box {
  background: rgba(4, 8, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.account-info-text {
  font-size: 12px;
  color: var(--chrome);
  text-align: center;
  margin-bottom: 10px;
}

.user-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.user-actions {
  display: flex;
  gap: 6px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #00ff9d;
  box-shadow: 0 0 8px #00ff9d;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.btn-ghost.danger {
  border-color: rgba(255, 77, 109, 0.4);
  color: #ff4d6d;
  padding: 4px 8px;
}

/* Silber- & Gold-Pinball Leiste */
.wallet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(10, 16, 34, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.wallet-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
}

.pinball-orb {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pinball-orb.lg {
  width: 30px;
  height: 30px;
}

.pinball-orb.silver {
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #d4e2f2 35%, #6a7d99 72%, #232d42 100%);
  box-shadow: 0 0 10px rgba(214, 228, 245, 0.55);
  border: 1px solid #ffffff;
}

.pinball-orb.gold {
  background: radial-gradient(circle at 32% 28%, #fff8c4 0%, #ffd54f 35%, #d48806 72%, #5c3300 100%);
  box-shadow: 0 0 12px rgba(255, 202, 40, 0.65);
  border: 1px solid #ffe885;
}

.wallet-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.wallet-count {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}

.wallet-count.gold-text {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(255, 202, 40, 0.45);
}

.wallet-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.btn-shop-plus {
  background: linear-gradient(135deg, #ffca28, #ff8f00);
  color: #140c00;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 202, 40, 0.4);
}

/* Forms & Buttons */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form input {
  width: 100%;
  background: rgba(12, 18, 36, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.btn-row {
  display: flex;
  gap: 8px;
}

.btn-cyber-primary {
  width: 100%;
  border: none;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.8px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ff007f, #9d4edd, #00b4d8);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.45);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 0.1s ease, filter 0.15s ease;
}

.btn-cyber-primary:active {
  transform: scale(0.98);
  filter: brightness(1.15);
}

.btn-cyber-secondary {
  width: 100%;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.auth-error {
  color: #ff4d6d;
  font-size: 12px;
  margin-top: 6px;
  min-height: 14px;
  text-align: center;
}

/* ================= SHOP ================= */
.shop-card {
  text-align: center;
}

.shop-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 6px 0;
}

.shop-title span {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255, 202, 40, 0.5);
}

.shop-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.shop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.shop-pack {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(12, 18, 36, 0.9);
  border: 1px solid rgba(255, 202, 40, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.shop-pack.featured {
  border-color: var(--gold);
  background: linear-gradient(90deg, rgba(255, 202, 40, 0.14), rgba(12, 18, 36, 0.95));
  box-shadow: 0 0 16px rgba(255, 202, 40, 0.22);
}

.shop-pack:active {
  transform: scale(0.98);
}

.pack-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pack-name {
  font-size: 15px;
  font-weight: 800;
}

.pack-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.pack-price {
  font-size: 14px;
  font-weight: 900;
  color: #140c00;
  background: linear-gradient(135deg, #ffe066, #ff9800);
  padding: 6px 12px;
  border-radius: 6px;
}

.shop-status {
  font-size: 12px;
  color: #00ff9d;
  min-height: 18px;
  margin-bottom: 10px;
}

/* ================= HALL OF FAME ================= */
.leaderboard-box {
  background: rgba(4, 8, 20, 0.72);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 10px;
  padding: 10px 12px;
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.leaderboard-header h3 {
  font-size: 12px;
  letter-spacing: 1.6px;
  color: #fff;
}

.leaderboard-header h3 span { color: var(--cyan); }

.status-pill {
  font-size: 10px;
  font-weight: 800;
  color: #00ff9d;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.table-wrap {
  max-height: 165px;
  overflow-y: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.leaderboard-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-table th:last-child,
.leaderboard-table td:last-child { text-align: right; }

.leaderboard-table td {
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.leaderboard-table td:last-child {
  font-weight: 800;
  color: var(--cyan);
}

.muted {
  text-align: center;
  color: var(--text-muted);
  padding: 12px 0;
}

.controls-hint {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

/* ================= GAME OVER ================= */
.gameover-card { text-align: center; }

.gameover-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 3px;
  margin: 8px 0 4px;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 127, 0.7);
}

.final-score {
  font-size: 40px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.65);
  margin: 4px 0;
}

.final-world {
  font-size: 13px;
  color: var(--chrome);
  margin-bottom: 8px;
}

.saved-msg {
  font-size: 12px;
  color: #00ff9d;
  margin-bottom: 16px;
}

/* ================= GOOGLE 1-KLICK LOGIN ================= */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
  transition: transform 0.1s ease, filter 0.15s ease;
}

.btn-google:active {
  transform: scale(0.98);
  filter: brightness(0.94);
}

.google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* ================= KOMPAKTES TOP-BANNER ================= */
#world-banner {
  position: fixed;
  top: 66px;
  left: 12px;
  right: 12px;
  bottom: auto;
  inset: auto;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 30;
}

.banner-card {
  background: rgba(7, 10, 24, 0.88);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
  padding: 7px 16px;
  text-align: center;
  border-radius: 10px;
  clip-path: none;
  max-width: 340px;
}

.banner-kicker {
  display: none;
}

.banner-card h2 {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 8px var(--cyan);
}

.banner-card p {
  font-size: 11px;
  color: var(--chrome);
  margin-top: 2px;
}


/* Lobby-Button Klick-Glow (sanftes Ein- & Ausfaden in Button-Farbe) */
@keyframes lobbyBtnGlowFade {
  0% {
    box-shadow: 0 0 0 0 transparent, inset 0 0 0 0 transparent;
    filter: brightness(1);
  }
  28% {
    box-shadow:
      0 0 22px 4px var(--btn-glow-color, rgba(0, 240, 255, 0.85)),
      0 0 38px 6px var(--btn-glow-color-2, var(--btn-glow-color, rgba(0, 240, 255, 0.45))),
      inset 0 0 14px 2px var(--btn-glow-color, rgba(0, 240, 255, 0.55));
    filter: brightness(1.22);
  }
  100% {
    box-shadow: 0 0 0 0 transparent, inset 0 0 0 0 transparent;
    filter: brightness(1);
  }
}

.btn-glow-flash {
  animation: lobbyBtnGlowFade 480ms ease-out forwards !important;
}


/* Automaten-Karussell auf der Startseite (v83) */
.table-carousel-wrap {
  width: 100%;
  margin: 4px 0 8px 0;
  text-align: left;
}
.table-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding: 0 2px;
}
.table-carousel-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px 2px;
  scrollbar-width: none;
}
.table-carousel-track::-webkit-scrollbar {
  display: none;
}
.table-card {
  position: relative;
  flex: 0 0 154px;
  scroll-snap-align: start;
  border-radius: 11px;
  padding: 9px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.table-card.selected {
  transform: translateY(-1px);
}
.table-card.locked {
  opacity: 0.52;
  filter: grayscale(0.75);
  cursor: not-allowed;
}

.table-card { flex: 0 0 162px !important; padding: 0 !important; display: flex; flex-direction: column; }
.table-card-thumb { position: relative; width: 100%; height: 78px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.12); background: #020617; }
.table-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.table-card-body { padding: 7px 9px 8px 9px; }

/* === SMOOTH LOBBY SCROLL (v117) === */
.overlay, #lobby-overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 240, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(255, 0, 127, 0.14), transparent 45%),
    rgba(4, 6, 16, 0.94) !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  will-change: scroll-position;
  transform: translateZ(0);
}
#lobby-overlay .cyber-panel,
#lobby-overlay .lobby-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  contain: layout style;
}

/* === HUD REDESIGN (v128) === */
#hud {
  position: fixed;
  top: max(8px, env(safe-area-inset-top, 8px));
  left: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 25;
}

.hud-top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(6, 10, 24, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 240, 255, 0.12);
  pointer-events: auto;
}

.hud-score-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hud-score-wrap .hud-value {
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
}

.hud-right-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hud-balls-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hud-balls-wrap .hud-balls {
  font-size: 13px;
  letter-spacing: 3px;
  line-height: 1.1;
}

.hud-audio-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(148, 163, 184, 0.25);
}

.hud-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.38);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0 !important;
}

.hud-world-bar {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(10, 14, 30, 0.86);
  border: 1px solid rgba(255, 0, 127, 0.42);
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.16);
}

.hud-world-bar .hud-world-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #ffba08;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-world-sep {
  color: rgba(255, 0, 127, 0.75);
  font-size: 10px;
  flex-shrink: 0;
}

.hud-world-bar .hud-level {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #f1f5f9;
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-power-btn {
  position: static !important;
  transform: none !important;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid #ffca28;
  background: linear-gradient(135deg, rgba(255, 202, 40, 0.94), rgba(255, 111, 0, 0.94));
  color: #020617;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 202, 40, 0.5);
  pointer-events: auto;
}

/* === HUD ORB-POWER & HEADER-TIMER (v161) === */
#hud {
  gap: 5px !important;
}

.hud-center-timers {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.hud-mini-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}

.hud-mini-timer.outlane {
  background: rgba(153, 27, 27, 0.92);
  border: 1px solid #ff3b30;
  color: #fecaca;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.55);
  animation: hudOrbPulse 1s ease-in-out infinite;
}

.hud-mini-timer.power {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(124, 58, 237, 0.9));
  border: 1px solid #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.hud-power-orb {
  position: relative;
  align-self: flex-start;
  margin: 2px 0 0 2px;
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 999px;
  border: 2.5px solid #ffca28;
  background: radial-gradient(circle, rgba(255, 202, 40, 0.35) 0%, rgba(15, 23, 42, 0.92) 72%);
  box-shadow: 0 0 16px rgba(255, 202, 40, 0.65), inset 0 0 10px rgba(255, 202, 40, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  animation: hudOrbPulse 1.5s ease-in-out infinite;
}

.hud-power-orb img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.hud-power-orb-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffca28, #ff6f00);
  color: #020617;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #020617;
  box-shadow: 0 0 8px rgba(255, 202, 40, 0.8);
}

.hud-power-orb.active {
  border-color: #00f0ff;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, rgba(15, 23, 42, 0.92) 72%);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.75);
  animation: none;
  opacity: 0.9;
}

@keyframes hudOrbPulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.22); transform: scale(1.06); }
}

.hud-power-orb::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), var(--orb-tint, #a21caf) 68%);
  mix-blend-mode: screen;
  opacity: 0.72;
  pointer-events: none;
}

/* === 3D PLUNGER TEXTURE (v163) === */
#plunger-pad {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 2px,
      rgba(0, 0, 0, 0.22) 2px,
      rgba(0, 0, 0, 0.22) 6px
    ),
    linear-gradient(90deg, #0b1120 0%, #1e293b 22%, #334155 50%, #1e293b 78%, #090d16 100%) !important;
  border: 2.5px solid #64748b !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.75),
    0 0 18px rgba(0, 240, 255, 0.32),
    inset 0 2px 3px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.85),
    inset 0 0 14px rgba(0, 240, 255, 0.18) !important;
  overflow: visible !important;
}

/* Eingelassene 3D-Führungsnut in der Mitte */
#plunger-pad::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 34px;
  left: 50%;
  width: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 240, 255, 0.28) 0px,
      rgba(0, 240, 255, 0.28) 2px,
      transparent 2px,
      transparent 10px
    ),
    linear-gradient(90deg, #02040a 0%, #0f172a 50%, #02040a 100%);
  box-shadow:
    inset 0 3px 6px rgba(0, 0, 0, 0.95),
    0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
  z-index: 0;
}

/* 3D-Zugknauf mit geriffeltem Chrom-Kragen & Glaskuppel */
.plunger-handle {
  position: relative;
  z-index: 2;
  width: 50px !important;
  height: 50px !important;
  border: 3px solid #cbd5e1 !important;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.15) 22%, transparent 42%),
    radial-gradient(circle at 50% 55%, #ff8c00 0%, #ff2a55 48%, #880e2f 82%, #2b0510 100%) !important;
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.78),
    0 0 18px rgba(255, 42, 85, 0.65),
    inset 0 3px 5px rgba(255, 255, 255, 0.55),
    inset 0 -5px 8px rgba(0, 0, 0, 0.65) !important;
}

/* Geriffelter Metall-Ring auf dem Knauf */
.plunger-handle::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 235, 200, 0.35);
  box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.plunger-label {
  position: relative;
  z-index: 2;
  font-size: 9.5px !important;
  font-weight: 900 !important;
  letter-spacing: 1.4px !important;
  color: #e0f2fe !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(0, 240, 255, 0.85) !important;
}


/* === E-MAIL POSTFACH REDESIGN (v195) === */
.mail-modal-card {
  max-width: 520px !important;
  width: 95% !important;
  max-height: 90vh !important;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #0b1224 0%, #050914 100%) !important;
  border: 1px solid rgba(0, 240, 255, 0.42) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 32px rgba(0, 240, 255, 0.18), 0 18px 42px rgba(0, 0, 0, 0.72) !important;
}

.mail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 10px;
  background: rgba(8, 14, 30, 0.96);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.mail-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mail-title-wrap h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 0.9px;
}

.mail-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mail-icon-action {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.mail-icon-action.admin {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.25), rgba(124, 58, 237, 0.3));
  border-color: rgba(255, 0, 127, 0.6);
  color: #ff66b2;
}

.mail-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 8px 10px;
  background: rgba(6, 10, 22, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mail-tab-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mail-tab-btn .tab-ico {
  font-size: 15px;
  line-height: 1;
}

.mail-tab-btn.active {
  background: linear-gradient(160deg, rgba(0, 240, 255, 0.22), rgba(15, 23, 42, 0.95));
  border-color: rgba(0, 240, 255, 0.65);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.mail-tab-btn.active[data-tab="support"] {
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.24), rgba(15, 23, 42, 0.95));
  border-color: rgba(249, 115, 22, 0.7);
  color: #fb923c;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.22);
}

.mail-tab-btn.active[data-tab="trash"] {
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.24), rgba(15, 23, 42, 0.95));
  border-color: rgba(239, 68, 68, 0.65);
  color: #f87171;
}

.mail-tab-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff0055;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #060a16;
}

.mail-body-scroll {
  flex: 1;
  min-height: 260px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 10px 12px 12px;
  -webkit-overflow-scrolling: touch;
}

.mail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #94a3b8;
}

.mail-toolbar.trash-bar {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.mail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
  text-align: left;
}

.mail-row:hover {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(0, 240, 255, 0.35);
}

.mail-row.unread {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(15, 23, 42, 0.92));
  border-color: rgba(0, 240, 255, 0.45);
}

.mail-row.support {
  border-left: 3px solid #f97316;
}

.mail-row.has-gift {
  border-left: 3px solid #ffca28;
}

.mail-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mail-unread-dot {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
}

.mail-row-main {
  flex: 1;
  min-width: 0;
}

.mail-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.mail-sender {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-row.unread .mail-sender,
.mail-row.unread .mail-subject {
  color: #ffffff;
  font-weight: 900;
}

.mail-date {
  font-size: 10px;
  color: #64748b;
  flex-shrink: 0;
}

.mail-subject {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.mail-preview {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-row-quick-del {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: 7px;
  width: 28px;
  height: 28px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mail-detail-card {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 12px;
  padding: 13px;
}

.mail-detail-meta {
  font-size: 11px;
  color: #94a3b8;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mail-detail-body {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 14px;
}

.mail-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mail-footer {
  padding: 9px 14px;
  background: rgba(6, 10, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}


/* === POSTFACH SUCHE (v196) === */
.mail-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 9px;
}

.mail-search-wrap input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 32px 8px 30px;
  border-radius: 9px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(2, 6, 23, 0.85);
  color: #f8fafc;
  font-size: 12px;
  outline: none;
}

.mail-search-wrap input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.22);
}

.mail-search-ico {
  position: absolute;
  left: 10px;
  font-size: 12px;
  color: #64748b;
  pointer-events: none;
}

.mail-search-clear {
  position: absolute;
  right: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* === FULLSCREEN POSTFACH & SMILEY-SYSTEM (v197) === */
#inbox-overlay {
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: center !important;
}

.mail-modal-card {
  width: 100% !important;
  max-width: 680px !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
}

.mail-header {
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 10px !important;
  flex-wrap: nowrap !important;
}

.mail-title-wrap h2 {
  font-size: 16px !important;
  white-space: nowrap !important;
}

.mail-icon-action {
  padding: 6px 8px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

.mail-body-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 12px 12px 16px !important;
}

.mail-footer {
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Smiley-Button & Picker */
.emoji-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.42);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s ease, background 0.15s ease;
}

.emoji-trigger-btn:active {
  transform: scale(0.94);
  background: rgba(0, 240, 255, 0.24);
}

#cyber-emoji-picker {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(360px, 94vw);
  z-index: 99500;
  background: linear-gradient(180deg, #0d162d 0%, #050914 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.55);
  border-radius: 14px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.85), 0 0 22px rgba(0, 240, 255, 0.22);
  overflow: hidden;
}

.emoji-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 7px 8px;
  background: rgba(8, 14, 30, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.emoji-cat-tabs {
  display: flex;
  gap: 4px;
}

.emoji-cat-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 4px 8px;
  font-size: 15px;
  cursor: pointer;
}

.emoji-cat-btn.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: rgba(0, 240, 255, 0.6);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 9px;
  max-height: 205px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.emoji-item-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 8px;
  height: 36px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.emoji-item-btn:active {
  transform: scale(1.16);
  background: rgba(0, 240, 255, 0.22);
  border-color: rgba(0, 240, 255, 0.5);
}


/* === FULLSCREEN MISSIONEN, TEAM & FREUNDE (v198) === */
#missions-overlay,
#clan-overlay,
#friends-overlay {
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: center !important;
}

#missions-overlay > .card,
#clan-overlay > .card,
#friends-overlay > .card {
  width: 100% !important;
  max-width: 680px !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: none !important;
  background: linear-gradient(180deg, #0b1224 0%, #050914 100%) !important;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* Team-Chat nutzt den zusätzlichen vertikalen Platz im Vollbild */
#clan-chat-messages {
  height: clamp(280px, 46dvh, 520px) !important;
}


/* === FULLSCREEN PROFIL, SKINS & ADMIN (v199) === */
#profile-overlay,
#shop-overlay,
#admin-overlay {
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: center !important;
}

#profile-overlay > .card,
#admin-overlay > .card {
  width: 100% !important;
  max-width: 680px !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: none !important;
  background: linear-gradient(180deg, #0b1224 0%, #050914 100%) !important;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

#shop-overlay > .shop-card {
  width: 100% !important;
  max-width: 680px !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: none !important;
  clip-path: none !important;
  background: linear-gradient(180deg, #0b1224 0%, #050914 100%) !important;
}

#shop-overlay > .shop-card > .lobby-card-scroll {
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Admin-Listen nutzen die zusätzliche Höhe im Vollbild */
#admin-users-list {
  max-height: clamp(320px, 52dvh, 600px) !important;
}

#admin-events-list,
#admin-tx-list {
  max-height: clamp(260px, 42dvh, 500px) !important;
}


/* === TEAM MITGLIEDER WOCHEN-TOPLISTE (v200) === */
.clan-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 11px;
  padding: 9px 11px;
  color: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.clan-lb-row:hover {
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(15, 23, 42, 0.95);
}

.clan-lb-row.rank-1 {
  border-color: rgba(255, 202, 40, 0.65);
  background: linear-gradient(90deg, rgba(255, 202, 40, 0.14), rgba(15, 23, 42, 0.9));
}

.clan-lb-row.rank-2 {
  border-color: rgba(203, 213, 225, 0.45);
}

.clan-lb-row.rank-3 {
  border-color: rgba(217, 119, 6, 0.45);
}

.clan-lb-rank {
  width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: #94a3b8;
  flex-shrink: 0;
}

.clan-lb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clan-lb-name {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.clan-lb-lvl {
  display: inline-block;
  align-self: flex-start;
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 800;
}

.clan-lb-score {
  text-align: right;
  flex-shrink: 0;
}

.clan-lb-pts {
  font-size: 13px;
  font-weight: 900;
  color: #ffca28;
  font-variant-numeric: tabular-nums;
}

.clan-lb-pts-sub {
  font-size: 9px;
  color: #64748b;
  letter-spacing: 0.4px;
}


/* === SKIN SHOP REDESIGN (v203) === */
.skin-equipped-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(0, 240, 255, 0.45);
  text-align: left;
}

.skin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.skin-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.skin-tab-btn.active[data-skin-tab="special"] {
  background: linear-gradient(135deg, rgba(255, 202, 40, 0.25), rgba(255, 111, 0, 0.22));
  border-color: #ffca28;
  color: #ffca28;
  box-shadow: 0 0 14px rgba(255, 202, 40, 0.24);
}

.skin-tab-btn.active[data-skin-tab="standard"] {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(99, 102, 241, 0.22));
  border-color: #00f0ff;
  color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.22);
}

.skin-special-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.skin-special-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(8, 12, 26, 0.96));
  border: 1.5px solid rgba(255, 202, 40, 0.32);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
}

.skin-special-card.equipped {
  border-color: #4ade80;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.2);
}

.skin-ability-pill {
  display: inline-block;
  background: rgba(255, 202, 40, 0.16);
  border: 1px solid rgba(255, 202, 40, 0.5);
  color: #ffca28;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
}


/* === SKIN INFO MODAL (v204) === */
.skin-info-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 202, 40, 0.75);
  background: rgba(255, 202, 40, 0.14);
  color: #ffca28;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(255, 202, 40, 0.22);
  transition: transform 0.12s ease, background 0.15s ease;
}

.skin-info-btn:active {
  transform: scale(0.92);
  background: rgba(255, 202, 40, 0.28);
}

#skin-info-modal {
  position: fixed;
  inset: 0;
  z-index: 97000;
  background: rgba(2, 6, 23, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.skin-info-card {
  width: 100%;
  max-width: 390px;
  background: linear-gradient(180deg, #0d162d 0%, #050914 100%);
  border: 1.5px solid rgba(255, 202, 40, 0.65);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 0 28px rgba(255, 202, 40, 0.22), 0 18px 40px rgba(0, 0, 0, 0.8);
  text-align: left;
}


/* === FULLSCREEN TEAMSEITE REDESIGN (v205) === */
#team-page-overlay {
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: center !important;
}

#team-page-overlay > .card {
  width: 100% !important;
  max-width: 680px !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  border: none !important;
  background: linear-gradient(180deg, #0b1224 0%, #050914 100%) !important;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.tp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.tp-kpi-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 10px;
  padding: 9px 6px;
  text-align: center;
}

.tp-kpi-val {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2px;
}

.tp-kpi-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.4px;
}

.tp-cond-box {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 11px;
  padding: 11px 12px;
  margin-bottom: 12px;
}

.tp-cond-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-cond-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* MISSIONS_REDESIGN_V240_START */
#missions-overlay {
  padding: 10px 8px;
  align-items: center;
  justify-content: center;
}

#missions-overlay .missions-shell {
  position: relative;
  width: min(96vw, 470px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 240, 255, 0.16), transparent 44%),
    radial-gradient(circle at 92% 100%, rgba(255, 0, 127, 0.15), transparent 46%),
    linear-gradient(180deg, #0b132b 0%, #060a18 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.48);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.82),
    0 0 28px rgba(0, 240, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  text-align: left;
  padding: 0;
}

#missions-overlay .missions-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.12));
  z-index: 0;
}

.missions-hero {
  position: relative;
  z-index: 2;
  padding: 14px 16px 12px 16px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.14), rgba(99, 102, 241, 0.12) 55%, rgba(255, 0, 127, 0.10));
  border-bottom: 1px solid rgba(0, 240, 255, 0.24);
  flex-shrink: 0;
}

.missions-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.missions-title-group {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.missions-emblem {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: radial-gradient(circle at 30% 25%, rgba(0, 240, 255, 0.26), rgba(9, 14, 32, 0.95));
  border: 1.5px solid rgba(0, 240, 255, 0.65);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35), inset 0 0 10px rgba(255, 0, 127, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.missions-kicker {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ff4da6;
  text-transform: uppercase;
  line-height: 1.1;
}

.missions-heading {
  margin: 2px 0 0 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #f8fafc;
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
  line-height: 1.1;
}

.missions-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(255, 0, 127, 0.55);
  background: linear-gradient(145deg, rgba(255, 0, 127, 0.22), rgba(15, 23, 42, 0.92));
  color: #fda4af;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.22);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.missions-close-btn:active {
  transform: scale(0.92);
}

.missions-hud-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.missions-hud-tile {
  background: rgba(6, 11, 26, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.missions-hud-tile.highlight {
  border-color: rgba(255, 202, 40, 0.65);
  background: linear-gradient(145deg, rgba(255, 202, 40, 0.16), rgba(6, 11, 26, 0.92));
  box-shadow: 0 0 14px rgba(255, 202, 40, 0.18);
}

.missions-hud-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.missions-hud-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.missions-hud-val {
  font-size: 13.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
  white-space: nowrap;
}

.missions-hud-val.gold { color: #ffca28; text-shadow: 0 0 8px rgba(255, 202, 40, 0.4); }
.missions-hud-val.cyan { color: #00f0ff; text-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }
.missions-hud-val.purple { color: #c084fc; text-shadow: 0 0 8px rgba(192, 132, 252, 0.4); }

.missions-scroll-body {
  position: relative;
  z-index: 2;
  padding: 12px 14px 18px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

#missions-status {
  margin: 0 0 10px 0;
  min-height: 0;
  font-size: 12px;
  font-weight: 800;
  color: #ffca28;
  text-align: center;
}

#missions-status:not(:empty) {
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 202, 40, 0.16), rgba(0, 240, 255, 0.12));
  border: 1px solid rgba(255, 202, 40, 0.55);
  box-shadow: 0 0 14px rgba(255, 202, 40, 0.2);
}

.missions-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 9px 0;
}

.missions-sec-head.milestone-head {
  margin-top: 18px;
}

.missions-sec-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: #e2e8f0;
  text-transform: uppercase;
}

.missions-sec-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #67e8f9;
  white-space: nowrap;
}

.missions-sec-pill.gold {
  background: rgba(255, 202, 40, 0.12);
  border-color: rgba(255, 202, 40, 0.4);
  color: #fde047;
}

.missions-list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mission-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 25, 48, 0.94), rgba(8, 13, 28, 0.96));
  border: 1px solid rgba(0, 240, 255, 0.24);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mission-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #00f0ff, #6366f1);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.mission-card.is-milestone::before {
  background: linear-gradient(180deg, #ffca28, #ff007f);
  box-shadow: 0 0 10px rgba(255, 202, 40, 0.7);
}

.mission-card.is-ready {
  border-color: rgba(255, 202, 40, 0.82);
  background: linear-gradient(135deg, rgba(255, 202, 40, 0.15), rgba(17, 24, 48, 0.96) 58%, rgba(255, 111, 0, 0.12));
  box-shadow: 0 0 22px rgba(255, 202, 40, 0.24), inset 0 1px 0 rgba(255, 230, 150, 0.25);
}

.mission-card.is-ready::before {
  background: linear-gradient(180deg, #fff099, #ff9f1c);
  box-shadow: 0 0 14px rgba(255, 202, 40, 0.95);
}

.mission-card.is-ready::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 230, 128, 0.16) 50%, transparent 75%);
  background-size: 220% 100%;
  animation: missionShimmer 2.6s linear infinite;
}

@keyframes missionShimmer {
  0% { background-position: 140% 0; }
  100% { background-position: -140% 0; }
}

.mission-card.is-claimed {
  border-color: rgba(74, 222, 128, 0.42);
  background: linear-gradient(145deg, rgba(16, 46, 36, 0.55), rgba(8, 15, 28, 0.92));
}

.mission-card.is-claimed::before {
  background: linear-gradient(180deg, #4ade80, #10b981);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
}

.mission-icon-badge {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: radial-gradient(circle at 30% 25%, rgba(0, 240, 255, 0.18), rgba(6, 10, 24, 0.96));
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.12);
}

.mission-card.is-milestone .mission-icon-badge {
  background: radial-gradient(circle at 30% 25%, rgba(255, 202, 40, 0.2), rgba(14, 10, 28, 0.96));
  border-color: rgba(255, 202, 40, 0.42);
}

.mission-card.is-ready .mission-icon-badge {
  border-color: #ffca28;
  box-shadow: 0 0 16px rgba(255, 202, 40, 0.45), inset 0 0 10px rgba(255, 202, 40, 0.25);
}

.mission-card.is-claimed .mission-icon-badge {
  border-color: rgba(74, 222, 128, 0.55);
  background: radial-gradient(circle at 30% 25%, rgba(74, 222, 128, 0.22), rgba(6, 16, 18, 0.95));
}

.mission-card-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.mission-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.mission-title-wrap {
  min-width: 0;
}

.mission-card-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mission-card-sub {
  font-size: 10px;
  font-weight: 700;
  color: #7dd3fc;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.mission-card.is-milestone .mission-card-sub {
  color: #e9d5ff;
}

.mission-card.is-claimed .mission-card-sub {
  color: #86efac;
}

.mission-reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 202, 40, 0.14);
  border: 1px solid rgba(255, 202, 40, 0.45);
  color: #fde047;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.mission-claimed-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.55);
  color: #4ade80;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.mission-claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid #fff3b0;
  background: linear-gradient(135deg, #ffe066 0%, #ffbe0b 48%, #ff6f00 100%);
  color: #090d16;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255, 190, 11, 0.55), 0 4px 10px rgba(0, 0, 0, 0.35);
  animation: missionClaimPulse 1.8s ease-in-out infinite;
}

.mission-claim-btn:active {
  transform: scale(0.94);
}

@keyframes missionClaimPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 190, 11, 0.45), 0 4px 10px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 24px rgba(255, 224, 102, 0.85), 0 4px 12px rgba(0, 0, 0, 0.4); }
}

.mission-bar-track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.65);
}

.mission-bar-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7, #00f0ff);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.65);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mission-card.is-milestone .mission-bar-fill {
  background: linear-gradient(90deg, #a855f7, #00f0ff);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.65);
}

.mission-card.is-ready .mission-bar-fill {
  background: linear-gradient(90deg, #ff6f00, #ffca28, #fff3b0);
  box-shadow: 0 0 14px rgba(255, 202, 40, 0.85);
}

.mission-card.is-claimed .mission-bar-fill {
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.65);
}

.mission-bar-meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
}

.mission-pct-tag {
  font-weight: 900;
  color: #cbd5e1;
}

.mission-card.is-ready .mission-pct-tag { color: #fde047; }
.mission-card.is-claimed .mission-pct-tag { color: #4ade80; }
/* MISSIONS_REDESIGN_V240_END */

/* === DESKTOP_RESPONSIVE_REDESIGN_V245_START === */
@media (min-width: 720px) and (max-width: 959px) {
  #lobby-overlay { padding: 16px !important; }
  #lobby-overlay .lobby-card { max-width: min(780px, 94vw) !important; max-height: 92vh !important; }
  #lobby-overlay .lobby-card-scroll { padding: 16px 20px 20px !important; }
  #lobby-table-carousel.table-carousel-track {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow-x: visible !important;
    max-height: 300px;
    overflow-y: auto;
    padding: 4px 4px 8px 2px !important;
  }
  #lobby-table-carousel .table-card { flex: none !important; width: 100% !important; }
  #shop-skins-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
}

@media (min-width: 960px) {
  .lobby-card-scroll, .table-carousel-track, .table-wrap, .mail-body-scroll,
  .missions-scroll-body, #clan-overlay > .card, #friends-overlay > .card,
  #profile-overlay > .card, #admin-overlay > .card, #team-page-overlay > .card,
  #clan-chat-messages, #admin-users-list, #admin-events-list, #admin-tx-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.42) rgba(6, 10, 24, 0.55);
  }
  .lobby-card-scroll::-webkit-scrollbar, .table-carousel-track::-webkit-scrollbar,
  .table-wrap::-webkit-scrollbar, .mail-body-scroll::-webkit-scrollbar,
  .missions-scroll-body::-webkit-scrollbar, #clan-overlay > .card::-webkit-scrollbar,
  #friends-overlay > .card::-webkit-scrollbar, #profile-overlay > .card::-webkit-scrollbar,
  #admin-overlay > .card::-webkit-scrollbar, #team-page-overlay > .card::-webkit-scrollbar,
  #clan-chat-messages::-webkit-scrollbar, #admin-users-list::-webkit-scrollbar,
  #admin-events-list::-webkit-scrollbar, #admin-tx-list::-webkit-scrollbar { width: 7px; height: 7px; }
  .lobby-card-scroll::-webkit-scrollbar-track, .table-carousel-track::-webkit-scrollbar-track,
  .table-wrap::-webkit-scrollbar-track, .mail-body-scroll::-webkit-scrollbar-track,
  .missions-scroll-body::-webkit-scrollbar-track, #clan-overlay > .card::-webkit-scrollbar-track,
  #friends-overlay > .card::-webkit-scrollbar-track, #profile-overlay > .card::-webkit-scrollbar-track,
  #admin-overlay > .card::-webkit-scrollbar-track, #team-page-overlay > .card::-webkit-scrollbar-track,
  #clan-chat-messages::-webkit-scrollbar-track, #admin-users-list::-webkit-scrollbar-track,
  #admin-events-list::-webkit-scrollbar-track, #admin-tx-list::-webkit-scrollbar-track {
    background: rgba(6, 10, 24, 0.55); border-radius: 999px;
  }
  .lobby-card-scroll::-webkit-scrollbar-thumb, .table-carousel-track::-webkit-scrollbar-thumb,
  .table-wrap::-webkit-scrollbar-thumb, .mail-body-scroll::-webkit-scrollbar-thumb,
  .missions-scroll-body::-webkit-scrollbar-thumb, #clan-overlay > .card::-webkit-scrollbar-thumb,
  #friends-overlay > .card::-webkit-scrollbar-thumb, #profile-overlay > .card::-webkit-scrollbar-thumb,
  #admin-overlay > .card::-webkit-scrollbar-thumb, #team-page-overlay > .card::-webkit-scrollbar-thumb,
  #clan-chat-messages::-webkit-scrollbar-thumb, #admin-users-list::-webkit-scrollbar-thumb,
  #admin-events-list::-webkit-scrollbar-thumb, #admin-tx-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.55), rgba(255, 0, 127, 0.45));
    border-radius: 999px;
  }

  /* 1. LOBBY WIDESCREEN */
  #lobby-overlay { padding: 18px 24px !important; align-items: center !important; justify-content: center !important; }
  #lobby-overlay .lobby-card {
    width: 100% !important;
    max-width: min(1440px, 96vw) !important;
    max-height: 94vh !important;
    border-color: rgba(0, 240, 255, 0.5) !important;
    box-shadow: 0 0 45px rgba(0, 240, 255, 0.2), 0 0 80px rgba(255, 0, 127, 0.14), inset 0 0 32px rgba(0, 240, 255, 0.06) !important;
  }
  #lobby-overlay .lobby-card-scroll {
    display: grid !important;
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.9fr) !important;
    grid-auto-rows: min-content;
    column-gap: 22px !important;
    row-gap: 10px !important;
    padding: 16px 26px 20px !important;
    align-content: start;
  }
  #lobby-overlay .logo-wrap {
    grid-column: 1 / -1; grid-row: 1;
    display: flex; align-items: center; justify-content: center;
    min-height: 76px; margin-bottom: 0; padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.16);
  }
  #lobby-overlay .logo-wrap img { max-width: 118px !important; filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.35)); }
  #lobby-overlay #btn-lobby-help { top: 12px !important; right: 4px !important; padding: 7px 14px !important; font-size: 12px !important; }
  #lobby-overlay .badge-row { grid-column: 1 / -1; grid-row: 2; margin-bottom: 0; }
  #lobby-overlay .cyber-subtitle { grid-column: 1 / -1; grid-row: 3; margin: 0 0 6px 0; font-size: 13px; }
  #lobby-overlay #user-logged-in:not(.hidden) {
    grid-column: 1 / 2; grid-row: 4 / 6;
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 12px 14px; align-content: start;
    padding: 16px 18px; margin-bottom: 0; border-radius: 14px;
    border: 1px solid rgba(0, 240, 255, 0.24); background: rgba(5, 10, 24, 0.8);
  }
  #lobby-overlay #user-logged-out:not(.hidden) {
    grid-column: 1 / 2; grid-row: 4 / 6;
    padding: 22px 28px; margin-bottom: 0; border-radius: 14px;
    border: 1px solid rgba(0, 240, 255, 0.24); background: rgba(5, 10, 24, 0.8);
    display: flex; flex-direction: column; justify-content: center;
  }
  #lobby-overlay #user-logged-in .user-bar {
    grid-column: 1 / 2; margin-bottom: 0;
    background: rgba(10, 16, 34, 0.92); border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 10px; padding: 8px 12px;
  }
  #lobby-overlay #user-logged-in .wallet-bar { grid-column: 2 / 3; margin-bottom: 0; border-radius: 10px; padding: 8px 12px; }
  #lobby-overlay #user-logged-in > div:has(#btn-open-missions) { grid-column: 1 / -1; margin: 2px 0 !important; gap: 10px !important; }
  #lobby-overlay #btn-open-missions, #lobby-overlay #btn-open-inbox,
  #lobby-overlay #btn-open-clan, #lobby-overlay #btn-open-friends {
    flex-direction: row !important; gap: 8px !important; padding: 11px 10px !important; border-radius: 12px !important;
    transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.15s ease;
  }
  #lobby-overlay #btn-open-missions:hover, #lobby-overlay #btn-open-inbox:hover,
  #lobby-overlay #btn-open-clan:hover, #lobby-overlay #btn-open-friends:hover { transform: translateY(-2px); filter: brightness(1.14); }
  #lobby-overlay #btn-open-missions span:nth-child(2), #lobby-overlay #btn-open-inbox span:nth-child(2),
  #lobby-overlay #btn-open-clan span:nth-child(2), #lobby-overlay #btn-open-friends span:nth-child(2) {
    font-size: 12px !important; letter-spacing: 0.4px !important;
  }
  #lobby-overlay #lobby-table-carousel-wrap { grid-column: 1 / -1; margin: 0 !important; }
  #lobby-overlay .table-carousel-header span { font-size: 11.5px !important; }
  #lobby-overlay #lobby-table-carousel.table-carousel-track {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)) !important;
    gap: 10px !important; overflow-x: visible !important; overflow-y: auto !important;
    max-height: 295px; scroll-snap-type: none !important;
    padding: 4px 6px 8px 2px !important; scrollbar-width: thin !important;
  }
  #lobby-overlay #lobby-table-carousel.table-carousel-track::-webkit-scrollbar { display: block !important; width: 7px; }
  #lobby-overlay #lobby-table-carousel .table-card { flex: none !important; width: 100% !important; min-width: 0 !important; }
  #lobby-overlay #lobby-table-carousel .table-card:not(.locked):hover {
    transform: translateY(-2px); border-color: rgba(0, 240, 255, 0.72); box-shadow: 0 6px 18px rgba(0, 240, 255, 0.2);
  }
  #lobby-overlay #lobby-table-carousel .table-card-thumb { height: 92px !important; }
  #lobby-overlay #btn-start-game { grid-column: 1 / -1; padding: 15px 22px; font-size: 15.5px; letter-spacing: 2.2px; }
  #lobby-overlay #btn-start-game:hover { filter: brightness(1.12); box-shadow: 0 0 28px rgba(255, 0, 127, 0.62); }
  #lobby-overlay #lobby-banners { grid-column: 1 / -1; margin-top: 0 !important; gap: 8px !important; }
  #lobby-overlay #lobby-custom-events { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; gap: 10px !important; }
  #lobby-overlay #lobby-highlight-banner, #lobby-overlay #btn-open-admin { padding: 10px 14px !important; transition: transform 0.15s ease, filter 0.15s ease; }
  #lobby-overlay #lobby-highlight-banner:hover, #lobby-overlay #btn-open-admin:hover { transform: translateY(-1px); filter: brightness(1.12); }
  #lobby-overlay .leaderboard-box {
    grid-column: 2 / 3; grid-row: 4 / 5; display: flex; flex-direction: column;
    padding: 16px 18px; border-radius: 14px; background: rgba(5, 10, 24, 0.84);
    border: 1px solid rgba(0, 240, 255, 0.28); height: 100%;
  }
  #lobby-overlay .leaderboard-header h3 { font-size: 13.5px; }
  #lobby-overlay .leaderboard-box .table-wrap { max-height: 500px !important; flex: 1; }
  #lobby-overlay .leaderboard-table { font-size: 13px; }
  #lobby-overlay .leaderboard-table td { padding: 8px 6px !important; }
  #lobby-overlay .controls-hint {
    grid-column: 2 / 3; grid-row: 5 / 6; align-self: start; margin-top: 0;
    padding: 11px 14px; border-radius: 11px; background: rgba(10, 16, 34, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.09); text-align: left; font-size: 12px; gap: 5px;
  }
  #lobby-overlay .lobby-card-scroll > div:last-child { grid-column: 1 / -1; grid-row: 6; margin-top: 2px !important; }

  /* 2. MISSIONEN */
  #missions-overlay { padding: 20px 24px !important; align-items: center !important; justify-content: center !important; }
  #missions-overlay > .card.missions-shell {
    width: 100% !important; max-width: min(1240px, 94vw) !important;
    height: min(88vh, 840px) !important; max-height: 90vh !important;
    border-radius: 20px !important; border: 1.5px solid rgba(0, 240, 255, 0.5) !important; padding: 0 !important;
  }
  #missions-overlay .missions-hero { padding: 18px 24px 16px !important; }
  #missions-overlay .missions-hud-strip { gap: 14px !important; margin-top: 14px !important; }
  #missions-overlay .missions-hud-tile { padding: 10px 14px !important; }
  #missions-overlay .missions-scroll-body { padding: 18px 24px 24px !important; }
  #missions-overlay .missions-list-stack { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; }
  #missions-overlay .mission-card { padding: 14px 15px !important; }

  /* 3. POSTFACH */
  #inbox-overlay { padding: 20px 24px !important; align-items: center !important; justify-content: center !important; }
  #inbox-overlay .mail-modal-card {
    width: 100% !important; max-width: min(1240px, 94vw) !important;
    height: min(88vh, 840px) !important; max-height: 90vh !important;
    border-radius: 18px !important; border: 1.5px solid rgba(0, 240, 255, 0.48) !important;
  }
  #inbox-overlay .mail-header { padding: 16px 22px 14px !important; }
  #inbox-overlay .mail-title-wrap h2 { font-size: 19px !important; }
  #inbox-overlay .mail-tabs { grid-template-columns: repeat(4, minmax(0, 200px)) !important; justify-content: start; gap: 10px !important; padding: 10px 22px !important; }
  #inbox-overlay .mail-tab-btn { flex-direction: row !important; gap: 8px !important; padding: 9px 14px !important; font-size: 12px !important; }
  #inbox-overlay .mail-body-scroll { padding: 16px 22px 20px !important; }
  #inbox-overlay .mail-row { padding: 12px 15px !important; }
  #inbox-overlay .mail-detail-card { padding: 18px 22px !important; }
  #inbox-overlay .mail-footer { padding: 11px 22px !important; }

  /* 4. TEAM & EVENTS */
  #clan-overlay { padding: 20px 24px !important; align-items: center !important; justify-content: center !important; }
  #clan-overlay > .card {
    width: 100% !important; max-width: min(1240px, 94vw) !important;
    height: min(88vh, 840px) !important; max-height: 90vh !important;
    border-radius: 18px !important; border: 1.5px solid rgba(168, 85, 247, 0.52) !important; padding: 20px 26px 24px !important;
  }
  #clan-no-team:not(.hidden) { display: grid !important; grid-template-columns: 380px minmax(0, 1fr); column-gap: 22px; align-items: start; }
  #clan-no-team > div:first-child { grid-column: 1 / 2; grid-row: 1 / 3; }
  #clan-no-team > div:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
  #clan-browse-list { grid-column: 2 / 3; grid-row: 2 / 3; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 10px !important; }
  #clan-logo-grid { grid-template-columns: repeat(10, 1fr) !important; gap: 8px !important; }
  #clan-members-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important; gap: 10px !important; }
  #clan-chat-messages { height: clamp(320px, 46vh, 520px) !important; padding: 12px !important; }

  /* 5. FREUNDE */
  #friends-overlay { padding: 20px 24px !important; align-items: center !important; justify-content: center !important; }
  #friends-overlay > .card {
    width: 100% !important; max-width: min(1200px, 94vw) !important;
    height: min(88vh, 840px) !important; max-height: 90vh !important;
    border-radius: 18px !important; border: 1.5px solid rgba(56, 189, 248, 0.48) !important; padding: 20px 26px 24px !important;
  }
  #friends-incoming-list, #friends-list, #friends-outgoing-list, #friends-search-results {
    display: grid !important; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)) !important; gap: 10px !important;
  }

  /* 6. 3D-KUGEL-SKINS */
  #shop-overlay { padding: 20px 24px !important; align-items: center !important; justify-content: center !important; }
  #shop-overlay > .shop-card {
    width: 100% !important; max-width: min(1260px, 94vw) !important;
    height: min(88vh, 860px) !important; max-height: 90vh !important;
    border-radius: 18px !important; border: 1.5px solid rgba(255, 202, 40, 0.5) !important;
  }
  #shop-overlay > .shop-card > .lobby-card-scroll { padding: 20px 28px 24px !important; }
  #shop-overlay #btn-close-shop { max-width: 260px; margin: 0 auto 8px auto; display: block; }
  #shop-skins-grid { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)) !important; gap: 12px !important; }
  .skin-equipped-bar, .skin-tabs { grid-column: 1 / -1; }
  .skin-special-list { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)) !important; gap: 12px !important; }

  /* 7. PROFIL */
  #profile-overlay { padding: 20px 24px !important; align-items: center !important; justify-content: center !important; }
  #profile-overlay > .card {
    width: 100% !important; max-width: min(920px, 92vw) !important;
    height: auto !important; max-height: 90vh !important;
    border-radius: 18px !important; border: 1.5px solid rgba(0, 240, 255, 0.48) !important; padding: 22px 28px 26px !important;
  }

  /* 8. ADMIN-DASHBOARD (INKL. 3D-AUTOMATEN-SCREENSHOTS) */
  #admin-overlay { padding: 20px 24px !important; align-items: center !important; justify-content: center !important; }
  #admin-overlay > .card {
    width: 100% !important; max-width: min(1320px, 95vw) !important;
    height: min(90vh, 880px) !important; max-height: 92vh !important;
    border-radius: 18px !important; border: 1.5px solid rgba(255, 0, 127, 0.55) !important; padding: 20px 26px 24px !important;
  }
  #admin-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important; }
  #admin-sku-list, #admin-tx-list, #admin-users-list {
    display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; gap: 10px !important;
  }
  #admin-tx-list { max-height: 36vh !important; }
  #admin-users-list { max-height: 50vh !important; }
  #admin-panel-events:not(.hidden) { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: 20px; align-items: start; }
  #admin-panel-events > div:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
  #admin-panel-events > div:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
  #admin-events-list { grid-column: 2 / 3; grid-row: 2 / 3; max-height: 62vh !important; }
  #admin-panel-system:not(.hidden) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
  #admin-panel-system > div { margin-bottom: 0 !important; display: flex; flex-direction: column; justify-content: space-between; }

  /* 9. TEAMSEITE & MODALS */
  #team-page-overlay { padding: 20px 24px !important; align-items: center !important; justify-content: center !important; }
  #team-page-overlay > .card {
    width: 100% !important; max-width: min(1020px, 92vw) !important;
    height: min(86vh, 800px) !important; max-height: 90vh !important;
    border-radius: 18px !important; border: 1.5px solid rgba(168, 85, 247, 0.5) !important; padding: 20px 26px 24px !important;
  }
  #player-profile-overlay > .card, #event-detail-overlay > .card, #legal-overlay > .card { max-width: min(740px, 90vw) !important; padding: 20px 24px !important; border-radius: 16px !important; }
  #dm-compose-overlay > .card { max-width: min(600px, 90vw) !important; padding: 20px 24px !important; border-radius: 16px !important; }
  #gameover-overlay .gameover-card { max-width: 520px !important; }

  /* 10. HILFE & FAQ */
  #help-faq-modal > div { max-width: min(1080px, 92vw) !important; margin: 24px auto !important; }
  #help-faq-modal > div > div:last-child { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; padding: 20px 24px 24px !important; }
  #help-faq-modal > div > div:last-child > div:first-child,
  #help-faq-modal #btn-close-help-faq-bottom,
  #help-faq-modal section:nth-of-type(4) { grid-column: 1 / -1; }
  #help-faq-modal section:nth-of-type(4) ul { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px 18px !important; }

  /* 11. GAMEPLAY HUD */
  #hud { left: 50% !important; right: auto !important; transform: translateX(-50%); width: min(1140px, calc(100vw - 32px)); }
  #hud .hud-top-row { padding: 8px 16px; }
  #hud .hud-score-wrap .hud-value { font-size: 24px; }
}

@media (min-width: 1360px) {
  #lobby-overlay #lobby-table-carousel.table-carousel-track { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; max-height: 330px; }
  #lobby-overlay .lobby-card-scroll { grid-template-columns: minmax(0, 1.75fr) minmax(360px, 0.88fr) !important; }
}
/* === DESKTOP_RESPONSIVE_REDESIGN_V245_END === */

/* === ANTI_CONTEXTMENU_POPUP_V246_START === */
html, body {
  -webkit-touch-callout: none;
}

img, svg, canvas, video {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Klicks & langes Druecken auf Bildern in Buttons, Karten, Bannern & HUD direkt ans Elternelement durchreichen */
button img,
a img,
.table-card img,
#lobby-custom-events img,
.hud-power-orb img,
.skin-special-card img,
#shop-skins-grid img,
#lobby-overlay .logo-wrap img {
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

/* Textauswahl & Einfuegen in Eingabefeldern weiterhin erlauben */
input, textarea, [contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}
/* === ANTI_CONTEXTMENU_POPUP_V246_END === */

/* === EVENT_LEADERBOARDS_V247_START === */
#player-profile-overlay { z-index: 81 !important; }
#team-page-overlay { z-index: 82 !important; }
#dm-compose-overlay { z-index: 84 !important; }

.ev-lb-box {
  background: rgba(10, 16, 34, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 11px 12px;
  margin-top: 10px;
}
.ev-lb-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.ev-lb-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #ffca28;
  letter-spacing: 0.8px;
}
.ev-lb-formula {
  font-size: 10px;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 999px;
  padding: 2px 8px;
}
.ev-lb-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 9px;
}
.ev-lb-tab {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  border-radius: 9px;
  padding: 8px 6px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ev-lb-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.24), rgba(168, 85, 247, 0.24));
  border-color: rgba(0, 240, 255, 0.72);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}
.ev-lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 290px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.ev-lb-row.is-self {
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: inset 0 0 14px rgba(0, 240, 255, 0.14);
}
.ev-lb-self-pill {
  display: inline-block;
  margin-left: 4px;
  background: rgba(0, 240, 255, 0.18);
  border: 1px solid rgba(0, 240, 255, 0.55);
  color: #00f0ff;
  border-radius: 999px;
  padding: 0 5px;
  font-size: 8.5px;
  font-weight: 900;
  vertical-align: middle;
}
.ev-lb-sub {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev-lb-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 16px 8px;
}
.ev-lb-note {
  margin-top: 8px;
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.4;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 6px 9px;
}
@media (min-width: 960px) {
  #event-detail-overlay > .card { max-width: min(860px, 92vw) !important; }
  .ev-lb-list {
    max-height: 360px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.42) rgba(6, 10, 24, 0.55);
  }
  .ev-lb-list::-webkit-scrollbar { width: 7px; }
  .ev-lb-list::-webkit-scrollbar-track { background: rgba(6, 10, 24, 0.55); border-radius: 999px; }
  .ev-lb-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(0, 240, 255, 0.55), rgba(255, 0, 127, 0.45)); border-radius: 999px; }
}
/* === EVENT_LEADERBOARDS_V247_END === */

/* === ROLES_AND_SUPPORT_QUEUE_V249_START === */
.role-badge { display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; padding: 1px 7px; font-size: 9px; font-weight: 900; letter-spacing: 0.4px; margin-left: 4px; vertical-align: middle; }
.role-badge.system { background: rgba(255, 0, 127, 0.22); border: 1px solid rgba(255, 0, 127, 0.7); color: #ff66b2; }
.role-badge.support { background: rgba(249, 115, 22, 0.22); border: 1px solid rgba(249, 115, 22, 0.7); color: #fb923c; }
.admin-roles-summary { background: linear-gradient(135deg, rgba(255, 0, 127, 0.12), rgba(0, 240, 255, 0.08)); border: 1px solid rgba(255, 0, 127, 0.4); border-radius: 10px; padding: 9px 11px; margin-bottom: 10px; }
.admin-roles-summary-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 11px; font-weight: 800; color: #f8fafc; }
.admin-roles-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-role-chip-btn { display: inline-flex; align-items: center; gap: 4px; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(255, 255, 255, 0.16); color: #e2e8f0; border-radius: 999px; padding: 3px 9px; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.admin-role-chip-btn.system { border-color: rgba(255, 0, 127, 0.55); color: #fda4af; }
.admin-role-chip-btn.support { border-color: rgba(249, 115, 22, 0.55); color: #fdba74; }
.sup-queue-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 9px; padding: 8px 10px; border-radius: 10px; background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(249, 115, 22, 0.38); font-size: 11px; color: #cbd5e1; }
.sup-queue-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.sup-filter-btn { background: rgba(30, 41, 59, 0.9); border: 1px solid rgba(255, 255, 255, 0.15); color: #cbd5e1; border-radius: 7px; padding: 4px 8px; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.sup-filter-btn.active { background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(255, 0, 127, 0.25)); border-color: #fb923c; color: #fff; }
.sup-chip { display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; padding: 2px 8px; font-size: 9.5px; font-weight: 900; letter-spacing: 0.3px; white-space: nowrap; }
.sup-chip.open { background: rgba(255, 202, 40, 0.18); border: 1px solid rgba(255, 202, 40, 0.65); color: #fde047; }
.sup-chip.claimed { background: rgba(0, 240, 255, 0.16); border: 1px solid rgba(0, 240, 255, 0.55); color: #67e8f9; }
.sup-chip.escalated { background: rgba(255, 0, 127, 0.22); border: 1px solid rgba(255, 0, 127, 0.72); color: #ff66b2; box-shadow: 0 0 10px rgba(255, 0, 127, 0.25); }
.sup-chip.closed { background: rgba(34, 197, 94, 0.16); border: 1px solid rgba(74, 222, 128, 0.55); color: #4ade80; }
.sup-status-banner { border-radius: 10px; padding: 9px 11px; margin-bottom: 11px; font-size: 11.5px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; }
.sup-status-banner.open { background: rgba(255, 202, 40, 0.12); border: 1px solid rgba(255, 202, 40, 0.5); color: #fef08a; }
.sup-status-banner.claimed { background: rgba(0, 240, 255, 0.10); border: 1px solid rgba(0, 240, 255, 0.45); color: #cffafe; }
.sup-status-banner.escalated { background: rgba(255, 0, 127, 0.14); border: 1px solid rgba(255, 0, 127, 0.58); color: #fbcfe8; }
.sup-status-banner.closed { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(74, 222, 128, 0.45); color: #bbf7d0; }
.sup-forward-box { margin-top: 10px; padding: 10px 11px; border-radius: 10px; background: rgba(2, 6, 23, 0.88); border: 1px solid rgba(255, 0, 127, 0.5); display: flex; flex-direction: column; gap: 7px; }
.sup-forward-box select, .sup-forward-box textarea { width: 100%; box-sizing: border-box; padding: 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: #0f172a; color: #fff; font-size: 12px; }
/* === ROLES_AND_SUPPORT_QUEUE_V249_END === */

/* === ADMIN_BACKUP_RESET_V250_START === */
.admin-backup-box { background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(0, 240, 255, 0.4); border-radius: 12px; padding: 13px; margin-bottom: 12px; }
.admin-backup-box.restore { border-color: rgba(255, 202, 40, 0.48); background: linear-gradient(155deg, rgba(255, 202, 40, 0.08), rgba(15, 23, 42, 0.94)); }
.admin-backup-preview { margin: 10px 0; padding: 10px 11px; border-radius: 9px; background: rgba(2, 6, 23, 0.88); border: 1px solid rgba(255, 202, 40, 0.42); font-size: 11px; color: #e2e8f0; line-height: 1.5; }
.admin-backup-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; margin-top: 6px; }
.admin-factory-danger { background: linear-gradient(155deg, rgba(153, 27, 27, 0.28), rgba(15, 23, 42, 0.95)); border: 1.5px solid rgba(239, 68, 68, 0.72); border-radius: 10px; padding: 12px; margin-bottom: 12px; box-shadow: 0 0 18px rgba(239, 68, 68, 0.16); }
@media (min-width: 960px) {
  #admin-panel-backup:not(.hidden) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  #admin-panel-backup > .admin-backup-box { margin-bottom: 0 !important; }
  #admin-panel-system > .admin-factory-danger { grid-column: 1 / -1; }
}
/* === ADMIN_BACKUP_RESET_V250_END === */


/* === AUDIT_RESPONSIVE_POLISH_V291_START === */
@media (min-width: 720px) and (max-width: 959px) {
  #shop-skins-grid {
    display: block !important;
  }
  #shop-skins-grid .skin-special-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .skin-equipped-bar,
  .skin-tabs {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 375px) {
  #hud .hud-top-row {
    padding: 5px 7px;
    gap: 6px;
  }
  #hud .hud-score-wrap .hud-value {
    font-size: 17px;
  }
  #hud .hud-right-wrap {
    gap: 6px;
  }
  #hud .hud-audio-wrap {
    gap: 4px;
    padding-left: 6px;
  }
  #hud .hud-icon-btn {
    width: 27px;
    height: 27px;
    font-size: 12.5px;
  }
  #hud .hud-world-bar {
    padding: 3px 9px;
    gap: 4px;
  }
  #hud .hud-world-bar .hud-world-tag,
  #hud .hud-world-bar .hud-level {
    font-size: 9.5px;
  }
}

@media (min-width: 960px) {
  #table-mastery-overlay .tm-head,
  #daily-season-overlay .ds-head,
  #duels-overlay .dl-head {
    padding-top: 16px !important;
  }
}
/* === AUDIT_RESPONSIVE_POLISH_V291_END === */


/* === SHOP_CLOSE_TOP_BTN_V293 === */
#shop-overlay > .shop-card {
  overflow: hidden !important;
}
.shop-close-top-btn {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 25;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 127, 0.55);
  background: rgba(15, 23, 42, 0.92);
  color: #ff66b2;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.25);
  transition: transform 0.12s ease, background 0.15s ease;
}
.shop-close-top-btn:active {
  transform: scale(0.92);
  background: rgba(255, 0, 127, 0.22);
}
@media (min-width: 960px) {
  .shop-close-top-btn {
    top: 14px;
    right: 16px;
  }
}


/* === SHOP_FIXED_HEADER_MOBILE_V294 === */
@media (max-width: 959px) {
  #shop-overlay > .shop-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  #shop-overlay > .shop-card > .lobby-card-scroll {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 0 !important;
  }

  #shop-overlay .badge-row,
  #shop-overlay #shop-title,
  #shop-overlay #shop-subtitle,
  #shop-overlay #shop-packs-list,
  #shop-overlay #shop-status {
    flex-shrink: 0 !important;
  }

  #shop-overlay #shop-title {
    margin: 4px 0 2px !important;
    font-size: 24px !important;
  }

  #shop-overlay #shop-subtitle {
    margin-bottom: 8px !important;
  }

  #shop-overlay #shop-status:empty {
    display: none !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  /* Redundanten unteren Zurück-Button mobil ausblenden, da [✕] oben rechts fest sitzt */
  #shop-overlay #btn-close-shop {
    display: none !important;
  }

  #shop-overlay #shop-skins-section {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
  }

  #shop-overlay #shop-skins-section > div:first-child {
    flex-shrink: 0 !important;
  }

  #shop-overlay #shop-skins-grid {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  #shop-overlay #shop-skins-grid > .skin-equipped-bar {
    flex-shrink: 0 !important;
    margin-bottom: 9px !important;
  }

  #shop-overlay #shop-skins-grid > .skin-tabs {
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.24);
  }

  #shop-overlay #shop-skins-grid > .skin-scroll-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding: 10px 2px calc(22px + env(safe-area-inset-bottom, 0px)) 0;
  }
}
