/* ============================================================================
   Minecraft CCG & RPG-Hybrid — AAA Mobile Card-Game Design System (v2)
   Tiefes Mitternachtsblau/Schiefergrau, Glas-Panels, disziplinierte Akzente
   ============================================================================ */
:root {
  --bg-outer: #050811;
  --bg-shell: #0b1120;
  --bg-panel: rgba(13, 20, 36, 0.88);
  --bg-elevated: rgba(23, 33, 54, 0.92);
  --bg-card: #131c2e;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-bright: rgba(255, 255, 255, 0.11);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --emerald: #10b981;
  --diamond: #38bdf8;
  --netherite: #cbd5e1;
  --xp-green: #84cc16;
  --gold: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --radius: 14px;
  --font-ui: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 18%, #131d33 0%, #050811 100%);
  color: var(--text-main);
  font-family: var(--font-ui);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* ==================== SQUARE / MOBILE-FIRST VIEWPORT ==================== */
#square-shell {
  width: min(96vmin, 780px);
  height: min(96vmin, 780px);
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-shell);
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.78),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  display: flex;
  flex-direction: column;
}

.scene-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.battle-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #070a14;
  background-image: var(--bg-desktop);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.battle-bg-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(6, 9, 20, 0.44) 0%, rgba(6, 9, 20, 0.34) 55%, rgba(4, 6, 14, 0.72) 100%),
    linear-gradient(180deg, rgba(6, 9, 20, 0.64) 0%, rgba(6, 9, 20, 0.32) 45%, rgba(6, 9, 20, 0.76) 100%);
}

.subview-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #070a14;
  background-image: var(--bg-desktop);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

@media (orientation: portrait), (max-width: 768px) {
  .battle-bg-photo,
  .subview-bg-photo {
    background-image: var(--bg-mobile, var(--bg-desktop));
  }
}

.subview-bg-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(7, 11, 22, 0.64) 0%, rgba(7, 11, 22, 0.48) 58%, rgba(5, 8, 16, 0.78) 100%),
    linear-gradient(180deg, rgba(7, 11, 22, 0.72) 0%, rgba(7, 11, 22, 0.48) 50%, rgba(5, 8, 16, 0.8) 100%);
}

.subview-bg-photo ~ .subview-header,
.subview-bg-photo ~ .subview-tabs,
.subview-bg-photo ~ .subview-body,
.subview-bg-photo ~ .aaa-bottom-nav {
  position: relative;
  z-index: 1;
}

.hub-scene-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hub-scene-layer.is-theme-switching {
  animation: hubThemeFadeIn 0.38s ease-out;
}

@keyframes hubThemeFadeIn {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}

.hub-bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background 0.35s ease;
  background:
    radial-gradient(ellipse 75% 42% at 50% 44%, rgba(34, 211, 238, 0.08) 0%, transparent 72%),
    linear-gradient(
      180deg,
      rgba(5, 8, 17, 0.56) 0%,
      rgba(8, 12, 22, 0.14) 24%,
      rgba(8, 12, 22, 0.16) 54%,
      rgba(5, 8, 16, 0.78) 100%
    );
}

.hub-bg-scrim.is-day {
  background:
    radial-gradient(ellipse 75% 40% at 50% 42%, rgba(254, 243, 199, 0.1) 0%, transparent 72%),
    linear-gradient(
      180deg,
      rgba(8, 15, 28, 0.38) 0%,
      rgba(10, 18, 32, 0.06) 24%,
      rgba(8, 14, 26, 0.16) 54%,
      rgba(5, 9, 18, 0.74) 100%
    );
}

/* Sanfte GPU-Hintergrundanimationen für Midnight-Fantasy-Kulisse & Runen-Wasserfall */
.hub-landscape-svg {
  opacity: 1;
}

.hub-aurora {
}

.hub-aurora-1 {
  animation: hubAuroraDriftA 18s ease-in-out infinite alternate;
}

.hub-aurora-2 {
  animation: hubAuroraDriftB 24s ease-in-out infinite alternate;
}

@keyframes hubAuroraDriftA {
  0% { transform: translate3d(-18px, 0, 0); opacity: 0.75; }
  100% { transform: translate3d(24px, -6px, 0); opacity: 1; }
}

@keyframes hubAuroraDriftB {
  0% { transform: translate3d(20px, -4px, 0); opacity: 0.65; }
  100% { transform: translate3d(-22px, 5px, 0); opacity: 0.96; }
}

.hub-star-1 { animation: hubStarTwinkle 3.8s ease-in-out infinite alternate; }
.hub-star-2 { animation: hubStarTwinkle 5.1s ease-in-out 1.2s infinite alternate; }
.hub-star-3 { animation: hubStarTwinkle 4.4s ease-in-out 2.3s infinite alternate; }

@keyframes hubStarTwinkle {
  0% { opacity: 0.28; }
  100% { opacity: 0.95; }
}

.hub-ground-fog-1 {
  animation: hubFogDriftA 16s ease-in-out infinite alternate;
}

.hub-ground-fog-2 {
  animation: hubFogDriftB 21s ease-in-out infinite alternate;
}

@keyframes hubFogDriftA {
  0% { transform: translate3d(-18px, 0, 0); opacity: 0.05; }
  100% { transform: translate3d(22px, -3px, 0); opacity: 0.1; }
}

@keyframes hubFogDriftB {
  0% { transform: translate3d(20px, 0, 0); opacity: 0.06; }
  100% { transform: translate3d(-24px, -4px, 0); opacity: 0.11; }
}

.hub-firefly {
}

.hub-firefly-a { animation: hubFireflyFloat 5.6s ease-in-out infinite; }
.hub-firefly-b { animation: hubFireflyFloat 6.8s ease-in-out infinite; }
.hub-firefly-c { animation: hubFireflyFloat 7.4s ease-in-out infinite; }

@keyframes hubFireflyFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.24; }
  35% { transform: translate3d(7px, -16px, 0); opacity: 0.92; }
  70% { transform: translate3d(-6px, -28px, 0); opacity: 0.56; }
}

.hub-waterfall-flow {
  animation: hubWaterfallGlide 2.9s linear infinite;
}

@keyframes hubWaterfallGlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 196px, 0); }
}

.hub-water-foam {
  transform-origin: 497px 486px;
  animation: hubFoamPulse 2.6s ease-in-out infinite;
}

@keyframes hubFoamPulse {
  0%, 100% { transform: scale3d(0.95, 0.92, 1); opacity: 0.72; }
  50% { transform: scale3d(1.07, 1.09, 1); opacity: 0.98; }
}

.hub-splash-ring-1 {
  transform-origin: 497px 488px;
  animation: hubSplashRipple 2.8s ease-out infinite;
}

.hub-splash-ring-2 {
  transform-origin: 497px 489px;
  animation: hubSplashRipple 2.8s ease-out 1.4s infinite;
}

@keyframes hubSplashRipple {
  0% { transform: scale3d(0.68, 0.68, 1); opacity: 0.82; }
  75% { transform: scale3d(1.22, 1.18, 1); opacity: 0.28; }
  100% { transform: scale3d(1.36, 1.28, 1); opacity: 0; }
}

.hub-lake-glint {
  animation: hubLakeShimmer 3.8s ease-in-out infinite alternate;
}

@keyframes hubLakeShimmer {
  0% { opacity: 0.45; transform: translate3d(-3px, 0, 0); }
  100% { opacity: 0.92; transform: translate3d(4px, 0, 0); }
}

.hero-weapon-shimmer {
  animation: heroBladeGlint 3.6s ease-in-out infinite;
}

@keyframes heroBladeGlint {
  0%, 58% { transform: translate3d(0, 32px, 0) rotate(-24deg); opacity: 0; }
  72% { opacity: 0.72; }
  92% { transform: translate3d(0, -28px, 0) rotate(-24deg); opacity: 0.65; }
  100% { transform: translate3d(0, -34px, 0) rotate(-24deg); opacity: 0; }
}

.hub-water-mist {
  animation: hubMistRise 3.2s ease-in-out infinite;
}

.hub-crest-spray {
  animation: hubCrestSpray 2.4s ease-in-out infinite;
}

@keyframes hubCrestSpray {
  0%, 100% { transform: translate3d(0, 2px, 0); opacity: 0.38; }
  50% { transform: translate3d(0, -4px, 0); opacity: 0.85; }
}

.hub-arcane-mote {
}

.hub-arcane-mote-a { animation: hubArcaneRiseA 3.8s ease-in-out infinite; }
.hub-arcane-mote-b { animation: hubArcaneRiseB 4.9s ease-in-out infinite; }
.hub-arcane-mote-c { animation: hubArcaneRiseC 5.8s ease-in-out infinite; }

@keyframes hubArcaneRiseA {
  0% { transform: translate3d(0, 6px, 0) scale(0.75); opacity: 0; }
  20% { opacity: 0.92; }
  72% { transform: translate3d(5px, -36px, 0) scale(1.05); opacity: 0.72; }
  100% { transform: translate3d(-2px, -54px, 0) scale(0.6); opacity: 0; }
}

@keyframes hubArcaneRiseB {
  0% { transform: translate3d(0, 8px, 0) scale(0.7); opacity: 0; }
  22% { opacity: 0.88; }
  70% { transform: translate3d(-6px, -42px, 0) scale(1.1); opacity: 0.65; }
  100% { transform: translate3d(3px, -62px, 0) scale(0.55); opacity: 0; }
}

@keyframes hubArcaneRiseC {
  0% { transform: translate3d(0, 4px, 0) scale(0.8); opacity: 0; }
  25% { opacity: 0.95; }
  75% { transform: translate3d(4px, -30px, 0) scale(1); opacity: 0.6; }
  100% { transform: translate3d(-4px, -48px, 0) scale(0.5); opacity: 0; }
}

@keyframes hubMistRise {
  0% { transform: translate3d(0, 4px, 0); opacity: 0.14; }
  50% { transform: translate3d(0, -5px, 0); opacity: 0.52; }
  100% { transform: translate3d(0, -13px, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-aurora-1,
  .hub-aurora-2,
  .hub-star-1,
  .hub-star-2,
  .hub-star-3,
  .hub-ground-fog-1,
  .hub-ground-fog-2,
  .hub-firefly-a,
  .hub-firefly-b,
  .hub-firefly-c,
  .hub-waterfall-flow,
  .hub-water-foam,
  .hub-splash-ring-1,
  .hub-splash-ring-2,
  .hub-lake-glint,
  .hub-water-mist,
  .hub-crest-spray,
  .hub-arcane-mote-a,
  .hub-arcane-mote-b,
  .hub-arcane-mote-c,
  .hero-weapon-shimmer,
  .hub-pedestal-aura,
  .hub-broken-sparks,
  .hub-daily-btn.is-ready,
  .hub-daily-ping,
  .play-cta-sheen,
  .hub-scene-layer {
    animation: none !important;
  }
}

.view-root {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ==================== SHARED UI CONTROLS (POLISHED AAA BUTTONS) ==================== */
.mc-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(30, 42, 66, 0.94), rgba(17, 25, 42, 0.98));
  color: var(--text-main);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.36), 0 1px 0 rgba(255, 255, 255, 0.09) inset;
}

.mc-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  border-color: rgba(203, 213, 225, 0.38);
  filter: brightness(1.08);
}

.mc-btn:active:not(:disabled) {
  transform: translateY(0px) scale(0.97);
}

.mc-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Smaragdgrün — exklusiv für Haupt-PLAY & positive Bestätigungen */
.mc-btn-emerald {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  border-color: rgba(134, 239, 172, 0.65);
  color: #f0fdf4;
  text-shadow: 0 1px 2px rgba(5, 46, 22, 0.55);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.34), 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* Kühles Saphirblau — sekundäre Aktionen */
.mc-btn-diamond {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  border-color: rgba(147, 197, 253, 0.5);
  color: #eff6ff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
}

/* Edles Gold / Amber — Premium, Quests & Upgrades */
.mc-btn-gold {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  border-color: rgba(253, 230, 138, 0.6);
  color: #fffbeb;
  text-shadow: 0 1px 2px rgba(69, 26, 3, 0.55);
}

/* Tiefes Königs-Violett — Verzauberung / Magie */
.mc-btn-purple {
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
  border-color: rgba(221, 214, 254, 0.45);
  color: #f5f3ff;
}

/* Karmesinrot — Warnungen / Abbrechen / Händler-Smaragde */
.mc-btn-danger {
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border-color: rgba(252, 165, 165, 0.5);
  color: #fef2f2;
}

.mc-btn-sm {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 10px;
}

/* ==================== UNIFIED TOP BAR (ALL SUBVIEWS) ==================== */
.subview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: rgba(9, 14, 26, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  gap: 10px;
  flex-shrink: 0;
  z-index: 5;
}

.subview-title {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.25px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f8fafc;
}

.currency-bar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.currency-pill {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  padding: 4.5px 8.5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border-subtle);
  font-size: 12.2px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.currency-pill.emerald { color: #fca5a5; border-color: rgba(248, 113, 113, 0.34); background: rgba(69, 10, 10, 0.42); }
.currency-pill.diamond { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.3); background: rgba(12, 74, 110, 0.32); }
.currency-pill.netherite { color: #e2e8f0; border-color: rgba(203, 213, 225, 0.32); background: rgba(15, 23, 42, 0.85); }

.emerald-gem-svg {
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
}

.blackstar-svg {
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(226, 232, 240, 0.4));
}

/* Einheitliche Segmented-Control-Tabs */
.subview-tabs {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  background: rgba(11, 17, 32, 0.86);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(23, 33, 54, 0.65);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
  position: relative;
}

.tab-btn:hover {
  color: #e2e8f0;
  background: rgba(30, 44, 72, 0.8);
}

.tab-btn.active {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.16));
  border-color: rgba(96, 165, 250, 0.55);
  color: #f8fafc;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.22);
}

.subview-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 13px 14px 16px;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

/* ==================== PERSISTENT AAA BOTTOM NAVIGATION BAR ==================== */
.aaa-bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 6px 8px calc(7px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 13, 25, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  z-index: 12;
}

.bnav-item {
  appearance: none;
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  border-radius: 12px;
  padding: 6px 2px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
}

.bnav-item:hover {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.52);
}

.bnav-item:active {
  transform: scale(0.95);
}

.bnav-item.is-active {
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(30, 41, 59, 0.72));
  border-color: rgba(96, 165, 250, 0.35);
}

.bnav-item.is-active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24%;
  right: 24%;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.bnav-item.is-home.is-active {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.8));
  border-color: rgba(52, 211, 153, 0.4);
}

.bnav-item.is-home.is-active::before {
  background: linear-gradient(90deg, #34d399, #10b981);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.75);
}

.bnav-icon {
  font-size: 18px;
  line-height: 1;
}

.bnav-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.bnav-badge {
  position: absolute;
  top: 2px;
  right: 12%;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #080d19;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.55);
}

.bnav-badge.is-gold {
  background: #f59e0b;
  color: #451a03;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.55);
}

/* ==================== HUB (AAA CLEAN STARTMENÜ) ==================== */
.hub-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hub-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(9, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.hub-player-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.hub-rank-emblem {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.25), rgba(180, 83, 9, 0.35));
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.hub-rank-emblem span {
  font-size: 8px;
  font-weight: 800;
  color: #fde68a;
  line-height: 1;
  letter-spacing: 0.3px;
}

.hub-rank-emblem b {
  font-size: 13px;
  font-weight: 900;
  color: #fffbeb;
  line-height: 1.05;
}

.hub-player-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hub-brand {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  margin-left: 4px;
}

.hub-player-sub {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
}

.hub-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hub-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hub-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 11px;
  font-size: 16px;
  flex-shrink: 0;
}

.hub-theme-btn.is-night {
  background: linear-gradient(150deg, rgba(49, 46, 129, 0.55), rgba(15, 23, 42, 0.88));
  border-color: rgba(165, 180, 252, 0.42);
}

.hub-theme-btn.is-day {
  background: linear-gradient(150deg, rgba(180, 83, 9, 0.42), rgba(15, 23, 42, 0.86));
  border-color: rgba(251, 191, 36, 0.58);
}

/* Hub Content: Freie Bergkulisse, volle obere Status-Zeile, 2.5D-Podest + dunkles Altar-Glas-Dock & AAA PLAY */
.hub-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 11px;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: none;
}

.hub-main::-webkit-scrollbar {
  display: none;
}

.hub-floating-badges {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.hub-badges-left,
.hub-badges-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hub-badges-right {
  margin-left: auto;
  justify-content: flex-end;
  flex-shrink: 0;
}

.hub-dot-sep {
  opacity: 0.45;
  font-weight: 700;
}

.hub-floating-record {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: linear-gradient(160deg, rgba(13, 19, 36, 0.82), rgba(9, 13, 26, 0.88));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

/* Griffbereiter Daily-Reward-Button oben rechts */
.hub-daily-btn {
  position: relative;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.16s ease;
}

.hub-daily-btn.is-ready {
  color: #fef9c3;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.88), rgba(168, 85, 247, 0.72));
  border: 1px solid rgba(253, 224, 71, 0.75);
  box-shadow:
    0 0 16px rgba(251, 191, 36, 0.42),
    0 4px 12px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  animation: hubDailyPulse 2.4s ease-in-out infinite;
}

.hub-daily-btn.is-ready:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.hub-daily-btn.is-cooldown {
  color: #94a3b8;
  background: rgba(11, 17, 32, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.hub-daily-btn.is-cooldown:hover {
  color: #e2e8f0;
  border-color: rgba(56, 189, 248, 0.45);
}

.hub-daily-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fde047;
  box-shadow: 0 0 8px #facc15;
  animation: hubDailyDot 1.6s ease-in-out infinite;
}

@keyframes hubDailyPulse {
  0%, 100% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.035); opacity: 1; }
}

@keyframes hubDailyDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.32); opacity: 0.65; }
}

/* Helden-Podest & größere, gestochen scharfe Charakter-Inszenierung */
.hub-open-hero {
  position: relative;
  flex: 1;
  min-height: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 4px;
  margin-bottom: -6px;
  width: 100%;
  pointer-events: none;
}

.hub-hero-pedestal-wrap {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 244px;
  height: 82px;
  z-index: 1;
  pointer-events: none;
}

.hub-pedestal-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hub-pedestal-aura {
  animation: hubPedestalGlow 3.6s ease-in-out infinite alternate;
}

@keyframes hubPedestalGlow {
  0% { opacity: 0.72; }
  100% { opacity: 1; }
}

.hub-broken-sparks {
  animation: hubBrokenSparkFlash 1.8s ease-in-out infinite;
}

@keyframes hubBrokenSparkFlash {
  0%, 100% { opacity: 0.35; }
  45% { opacity: 1; }
  65% { opacity: 0.5; }
}

.hub-hero-figure {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 24px;
}

.hub-open-hero .steve-svg {
  position: relative;
  z-index: 2;
  width: 186px;
  height: 186px;
  animation: steveGroundedBreathe 3.4s ease-in-out infinite;
  transform-origin: center bottom;
  filter: drop-shadow(0 10px 18px rgba(2, 6, 16, 0.72));
}

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

.hub-open-hero .hero-eyes-blink {
  transform-box: fill-box;
  transform-origin: 50% 62%;
  animation: heroSubtleBlink 11.5s ease-in-out infinite;
}

@keyframes heroSubtleBlink {
  0%, 36%, 38.2%, 84%, 86.2%, 100% {
    transform: scaleY(1);
  }
  37%, 85% {
    transform: scaleY(0.08);
  }
}

.hub-hero-warn-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.88);
  border: 1px solid rgba(248, 113, 113, 0.82);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.55);
}

.hub-hero-ground-shadow {
  position: absolute;
  bottom: 0;
  width: 112px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(6, 12, 24, 0.65) 0%, transparent 72%);
  z-index: 1;
}

.hub-lower-stack {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

/* Loadout-Box im dunklen AAA-Glassmorphism-Look wie der Verzauberungs-Altar */
.hub-glass-dock {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.14), transparent 58%),
    linear-gradient(168deg, rgba(13, 19, 36, 0.9), rgba(15, 11, 30, 0.94));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(192, 132, 252, 0.28);
  border-radius: 18px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow:
    0 14px 36px rgba(2, 6, 16, 0.64),
    0 0 24px rgba(139, 92, 246, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hub-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(10, 26, 28, 0.84), rgba(8, 16, 26, 0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(52, 211, 153, 0.48);
  color: #a7f3d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.hub-status-pill.is-warn {
  background: linear-gradient(160deg, rgba(48, 30, 10, 0.88), rgba(24, 16, 8, 0.92));
  border-color: rgba(251, 191, 36, 0.62);
  color: #fef08a;
  cursor: pointer;
  transition: filter 0.14s ease, transform 0.12s ease;
}

.hub-status-pill.is-warn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.hub-status-pill.is-danger {
  background: linear-gradient(160deg, rgba(96, 16, 22, 0.9), rgba(48, 8, 14, 0.94));
  border-color: rgba(248, 113, 113, 0.78);
  color: #fecaca;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.32), 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: filter 0.14s ease, transform 0.12s ease;
}

.hub-status-pill.is-danger:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.steve-svg {
  animation: steveFloat 3.4s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
}

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

.vanilla-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.vstat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 54px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.86), rgba(9, 13, 26, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.vstat-box.is-hp { border-color: rgba(74, 222, 128, 0.24); }
.vstat-box.is-atk { border-color: rgba(248, 113, 113, 0.24); }
.vstat-box.is-def {
  border-color: rgba(56, 189, 248, 0.28);
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.12s ease;
}
.vstat-box.is-def:hover {
  border-color: rgba(125, 211, 252, 0.62);
  background: linear-gradient(165deg, rgba(19, 32, 58, 0.92), rgba(11, 18, 36, 0.95));
  transform: translateY(-1px);
}

.vstat-box .v-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.vstat-box .v-pair-dot {
  color: rgba(148, 163, 184, 0.55);
  font-size: 0.85rem;
}

.vstat-box .v-lbl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  color: #94a3b8;
  margin-top: 0;
}

.gear-slots-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.gear-slot-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.86), rgba(8, 12, 24, 0.94));
  border: 1.5px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 6px 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5px;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 9.5px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 0.15s ease, transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.gear-slot-btn.tier-wood,
.gear-slot-btn.tier-leather {
  border-color: rgba(180, 130, 82, 0.42);
}

.gear-slot-btn.tier-stone,
.gear-slot-btn.tier-copper {
  border-color: rgba(217, 119, 6, 0.46);
}

.gear-slot-btn.tier-iron {
  border-color: rgba(148, 163, 184, 0.52);
}

.gear-slot-btn.tier-diamond {
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.2), 0 0 10px rgba(56, 189, 248, 0.14);
}

.gear-slot-btn.tier-netherite {
  border-color: rgba(251, 191, 36, 0.62);
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.22), 0 0 12px rgba(245, 158, 11, 0.18);
}

.gear-slot-btn:hover {
  border-color: rgba(125, 211, 252, 0.75);
  background: linear-gradient(165deg, rgba(24, 36, 62, 0.92), rgba(12, 18, 34, 0.96));
  transform: translateY(-2px);
}

.gear-slot-btn.broken {
  border-color: rgba(248, 113, 113, 0.92) !important;
  background: linear-gradient(165deg, rgba(127, 29, 29, 0.58), rgba(45, 10, 16, 0.9)) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.28), inset 0 0 8px rgba(248, 113, 113, 0.2) !important;
}

.gear-broken-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.94);
  border: 1px solid rgba(254, 202, 202, 0.72);
}

.gear-slot-plus {
  font-size: 16px;
  opacity: 0.35;
}

.gear-slot-empty-lbl {
  font-size: 8.5px;
  color: #64748b;
}

.durability-bar {
  width: 84%;
  height: 4px;
  background: rgba(2, 6, 16, 0.72);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.durability-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

.durability-fill.low { background: linear-gradient(90deg, #dc2626, #f87171); }
.durability-fill.mid { background: linear-gradient(90deg, #d97706, #fbbf24); }

/* Integrierte Deck-Schnellleiste im dunklen Altar-Dock (führt direkt in die Sammlung) */
.hub-deck-bar {
  width: 100%;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.42), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(129, 140, 248, 0.42);
  color: #f8fafc;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 6, 16, 0.42), inset 0 1px 0 rgba(165, 180, 252, 0.2);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.hub-deck-bar:hover {
  border-color: rgba(165, 180, 252, 0.78);
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.5), rgba(19, 28, 50, 0.94));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(49, 46, 129, 0.34), inset 0 1px 0 rgba(199, 210, 254, 0.28);
}

.hub-deck-bar:active {
  transform: scale(0.985);
}

.hub-deck-bar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15px;
  white-space: nowrap;
}

.hub-deck-bar-right {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #bae6fd;
  white-space: nowrap;
}

.hub-deck-chev {
  font-size: 16px;
  line-height: 1;
  color: #c7d2fe;
  margin-left: 2px;
}

/* Epischer mehrschichtiger AAA PLAY / MATCHES Action-Button */
.hub-play-zone {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.play-cta-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 14px 22px 13px;
  border-radius: 18px;
  flex-direction: column;
  gap: 2px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.9px;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(167, 243, 208, 0.34), transparent 65%),
    linear-gradient(180deg, #10b981 0%, #059669 48%, #047857 86%, #065f46 100%);
  border: 1.5px solid rgba(110, 231, 183, 0.78);
  color: #ecfdf5;
  text-shadow: 0 2px 4px rgba(2, 44, 34, 0.75);
  box-shadow:
    0 12px 30px rgba(5, 150, 105, 0.42),
    0 4px 12px rgba(2, 6, 16, 0.65),
    inset 0 2px 0 rgba(209, 250, 229, 0.68),
    inset 0 -3px 0 rgba(2, 44, 34, 0.65);
  transition: transform 0.14s ease, filter 0.15s ease, box-shadow 0.16s ease;
}

.play-cta-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1.5px);
  box-shadow:
    0 16px 36px rgba(16, 185, 129, 0.52),
    0 6px 16px rgba(2, 6, 16, 0.7),
    inset 0 2px 0 rgba(236, 253, 245, 0.8),
    inset 0 -3px 0 rgba(2, 44, 34, 0.68);
}

.play-cta-btn:active {
  transform: translateY(1px) scale(0.99);
}

.play-cta-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 24%,
    rgba(209, 250, 229, 0.12) 40%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(209, 250, 229, 0.12) 60%,
    transparent 76%
  );
  transform: translate3d(-135%, 0, 0);
  pointer-events: none;
  animation: playCtaWave 4.4s ease-in-out infinite;
}

@keyframes playCtaWave {
  0%, 58% { transform: translate3d(-135%, 0, 0); opacity: 0; }
  66% { opacity: 1; }
  94% { transform: translate3d(135%, 0, 0); opacity: 0.9; }
  100% { transform: translate3d(135%, 0, 0); opacity: 0; }
}

.play-cta-btn .btn-ico-row {
  position: relative;
  z-index: 1;
}

.play-cta-btn small {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  color: #d1fae5;
  opacity: 0.92;
  letter-spacing: 0.3px;
}

.mc-range {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.mc-text-input {
  flex: 1;
  background: rgba(11, 17, 32, 0.94);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  border-radius: 11px;
  padding: 8px 11px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.mc-text-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.22);
}

.notif-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0b1120;
}

.deck-modal-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
}

.deck-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

/* ==================== 3D COLLECTIBLE CARD ==================== */
.mc-card {
  --rx: 0deg;
  --ry: 0deg;
  --rarity-color: #4ade80;
  --rarity-border: #22c55e;
  perspective: 600px;
  cursor: pointer;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.mc-card-inner {
  background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--rarity-border);
  border-radius: 13px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.14s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 12px color-mix(in srgb, var(--rarity-color) 28%, transparent);
  position: relative;
  overflow: hidden;
}

.mc-card:hover .mc-card-inner {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.55), 0 0 18px color-mix(in srgb, var(--rarity-color) 52%, transparent);
}

.mc-card.is-selected .mc-card-inner {
  box-shadow: 0 0 0 2px #fff, 0 0 22px var(--rarity-color);
  transform: translateY(-6px) scale(1.03);
}

.mc-card.is-disabled {
  opacity: 0.5;
  filter: grayscale(0.45);
}

.card-holo .mc-card-inner::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 45%, rgba(255, 255, 255, 0.07) 50%, transparent 55%);
  transform: translateX(-60%) rotate(15deg);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.card-holo:hover .mc-card-inner::after {
  transform: translateX(65%) rotate(15deg);
}

/* ==================== 3D CARD FLIP (ON-DEMAND FÜR MAXIMALE MOBILE-FPS) ==================== */
.mc-card.is-flippable {
  perspective: none;
}

.mc-card.is-flippable.is-3d-ready,
.mc-card.is-flippable.is-flipped,
.mc-card.is-flippable:hover {
  perspective: 900px;
}

.mc-card-tilt-wrap {
  width: 100%;
  height: 100%;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.14s ease;
  transform-style: flat;
}

.mc-card.is-flippable.is-3d-ready .mc-card-tilt-wrap,
.mc-card.is-flippable.is-flipped .mc-card-tilt-wrap,
.mc-card.is-flippable:hover .mc-card-tilt-wrap {
  transform-style: preserve-3d;
}

.mc-card.is-flippable .mc-card-front {
  transform: none;
  height: 100%;
}

.mc-card.is-flippable.is-3d-ready .mc-card-front,
.mc-card.is-flippable.is-flipped .mc-card-front {
  transform: rotateY(0deg) translateZ(0.5px);
}

.mc-card.is-flippable.is-selected .mc-card-front {
  transform: none;
}

.mc-card.is-flippable.is-3d-ready.is-selected .mc-card-front,
.mc-card.is-flippable.is-flipped.is-selected .mc-card-front {
  transform: rotateY(0deg) translateZ(0.5px);
}

.mc-card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: flat;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.mc-card.is-flippable.is-3d-ready .mc-card-flipper,
.mc-card.is-flippable.is-flipped .mc-card-flipper {
  transform-style: preserve-3d;
}

.mc-card.is-flipped .mc-card-flipper {
  transform: rotateY(180deg);
}

.mc-card-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  width: 100%;
}

.mc-card-front {
  position: relative;
  z-index: 2;
}

.mc-card.is-flippable .mc-card-back,
.mc-card.is-flippable.is-selected .mc-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg) translateZ(0.5px);
  background: linear-gradient(165deg, #0f172a 0%, #172033 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px;
  gap: 4px;
  overflow: hidden;
}

.flip-hint-icon {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 11px;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.72);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, color 0.15s ease;
}

.mc-card.is-flippable:hover .flip-hint-icon {
  color: #38bdf8;
  transform: rotate(90deg);
}

.back-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  padding-bottom: 3px;
}

.back-title {
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.back-rarity {
  font-size: 9.5px;
  font-weight: 900;
  flex-shrink: 0;
}

.back-scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.back-compact-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 4px;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  padding: 2.5px 5px;
  font-size: 8.8px;
  font-weight: 700;
  color: #e2e8f0;
  flex-shrink: 0;
}

.back-compact-stats span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.back-compact-stats b {
  font-weight: 900;
}

.back-ability-box {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(192, 132, 252, 0.34);
  border-radius: 8px;
  padding: 4px 6px;
  text-align: left;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.back-ability-box.is-locked {
  border-color: rgba(148, 163, 184, 0.28);
}

.back-ability-box.is-potion {
  border-color: rgba(244, 114, 182, 0.38);
}

.back-ability-box.is-block {
  border-color: rgba(148, 163, 184, 0.32);
}

.back-ability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 900;
  color: #e9d5ff;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.back-status-pill {
  font-size: 7.8px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.back-status-pill.is-on {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #86efac;
}

.back-status-pill.is-off {
  background: rgba(100, 116, 139, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.back-unlock-sub {
  font-size: 7.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 2px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.back-ability-desc {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 8.4px;
  line-height: 1.24;
  color: #e2e8f0;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}

.back-ability-desc::-webkit-scrollbar {
  display: none;
}

.back-ability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5px;
}

.back-ability-item {
  position: relative;
  padding-left: 7px;
  word-break: break-word;
}

.back-ability-item::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #94a3b8;
  font-weight: 900;
}

.ab-trigger {
  font-weight: 800;
  color: #bae6fd;
}

.ab-val {
  font-weight: 900;
  color: #fde68a;
}

.back-ability-note {
  font-size: 8.2px;
  font-weight: 700;
  color: #f5d0fe;
  margin-top: 4px;
}

.back-footer-hint {
  font-size: 8.2px;
  text-align: center;
  color: #7dd3fc;
  font-weight: 700;
  opacity: 0.85;
  flex-shrink: 0;
  padding-top: 1px;
}

.mc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.dim-badge {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.xp-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.2);
  border: 1px solid #84cc16;
  color: #bef264;
}

.xp-badge.block-badge {
  font-size: 8.5px;
  letter-spacing: 0.25px;
  padding: 2px 5px;
  white-space: nowrap;
  background: rgba(148, 163, 184, 0.2);
  border-color: #94a3b8;
  color: #e2e8f0;
}

.mc-card-art {
  height: 76px;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--rarity-color) 24%, #0b1120), #0b1120);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mc-card-compact .mc-card-art {
  height: 46px;
  aspect-ratio: 5 / 3;
}

.art-svg {
  width: 68px;
  height: 68px;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.art-svg-img {
  object-fit: contain;
  pointer-events: none;
}

.list-row .art-svg {
  width: 100%;
  height: 100%;
}

.mc-card-compact .art-svg {
  width: 42px;
  height: 42px;
}

.card-count-badge {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 6px;
}

.dim-bonus-tag {
  position: absolute;
  top: 3px;
  left: 4px;
  background: rgba(34, 197, 94, 0.9);
  color: #052e16;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 5px;
}

.mc-card-name {
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-card-compact .mc-card-name {
  font-size: 10px;
}

.card-ability-pill {
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  padding: 2px 5px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-ability-pill.unlocked {
  background: rgba(168, 85, 247, 0.22);
  color: #e9d5ff;
  border: 1px solid rgba(192, 132, 252, 0.45);
}

.card-ability-pill.locked {
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
}

.card-ability-pill.block-pill {
  background: rgba(100, 116, 139, 0.25);
  color: #cbd5e1;
}

.card-ability-pill.potion-pill {
  background: rgba(244, 63, 94, 0.2);
  color: #fecdd3;
}

.card-stats-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  flex-wrap: nowrap;
}

.stat-chip {
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  white-space: nowrap;
}

.mc-card-compact .card-stats-row {
  gap: 3px;
  font-size: 9.5px;
}

.mc-card-compact .stat-chip {
  padding: 1px 3.5px;
}

.stat-dmg { color: #fca5a5; }
.stat-hp { color: #86efac; }
.stat-arm { color: #93c5fd; }
.stat-magic { color: #f0abfc; }
.stat-xp { color: #bef264; }

.block-stats {
  font-size: 10px;
  color: #94a3b8;
}

/* ==================== GRIDS & CARDS IN SUBVIEWS ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  align-items: center;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.collection-search-input {
  padding: 6px 10px;
  font-size: 12px;
}

.filter-drawer {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 11px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.filter-drawer-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-drawer-label {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.filter-drawer-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.mc-select {
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(148, 163, 184, 0.32);
  border-radius: 10px;
  padding: 6px 8px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.mc-select:focus {
  border-color: #38bdf8;
}

.panel-box {
  background: linear-gradient(170deg, rgba(21, 31, 51, 0.86), rgba(13, 20, 36, 0.92));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 13px;
  margin-bottom: 11px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* ==================== DEDICATED REPAIR MENU ==================== */
.repair-item-card {
  background: rgba(15, 23, 42, 0.86);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.repair-item-card.is-damaged {
  border-color: rgba(250, 204, 21, 0.45);
}

.repair-item-card.is-broken {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(69, 10, 10, 0.35);
}

.repair-item-card.is-full {
  opacity: 0.78;
}

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

.repair-gear-badge {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.repair-equipped-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
}

.repair-broken-tag {
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #fecaca;
}

.repair-dur-row {
  font-size: 11.5px;
  color: #cbd5e1;
  margin: 2px 0 4px;
}

.repair-dur-bar {
  width: 170px;
  height: 6px;
}

.repair-cost-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 7px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.repair-cost-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
}

.repair-cost-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  border: 1px solid var(--border-subtle);
  background: rgba(30, 41, 59, 0.72);
}

.repair-cost-chip.is-ok {
  border-color: rgba(74, 222, 128, 0.45);
  color: #dcfce7;
}

.repair-cost-chip.is-missing {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.25);
}

.repair-cost-chip small {
  opacity: 0.8;
}

.repair-mini-art {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.repair-mini-art .art-svg {
  width: 18px;
  height: 18px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 7px;
}

/* ==================== BATTLE ARENA (3x5 LANE BOARD) ==================== */
.battle-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 10px;
  gap: 6px;
}

.battle-top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 12px;
  gap: 8px;
}

.battle-board-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.battle-grid {
  width: 100%;
  height: 100%;
  max-width: 620px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 4px;
  position: relative;
}

.targeting-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.board-tile.can-target {
  border: 2px dashed #ef4444;
  background: rgba(239, 68, 68, 0.25);
  cursor: crosshair;
  animation: pulseTarget 1s ease-in-out infinite;
}

@keyframes pulseTarget {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45); }
  50% { box-shadow: 0 0 14px 3px rgba(239, 68, 68, 0.72); }
}

.tile-token.is-targeted {
  box-shadow: 0 0 0 2px #f87171, 0 0 14px rgba(239, 68, 68, 0.65);
}

.target-lock-pill {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: 11px;
  z-index: 3;
}

.tile-hit-shake {
  animation: tileShake 0.34s ease-in-out;
}

@keyframes tileShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 2px); }
  50% { transform: translate(4px, -2px); }
  75% { transform: translate(-3px, 1px); }
}

.board-micro-shake {
  animation: boardShake 0.36s ease-in-out;
}

@keyframes boardShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5px, 3px); }
  45% { transform: translate(5px, -4px); }
  70% { transform: translate(-3px, 2px); }
}

.board-tile {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.board-tile.row-enemy-base { background: rgba(127, 29, 29, 0.32); border-color: rgba(248, 113, 113, 0.28); }
.board-tile.row-player-base { background: rgba(20, 83, 45, 0.34); border-color: rgba(74, 222, 128, 0.28); }

.board-tile.can-place {
  border: 2px dashed #4ade80;
  background: rgba(34, 197, 94, 0.22);
  cursor: pointer;
  animation: pulseTile 1.2s ease-in-out infinite;
}

.board-tile.can-potion {
  border: 2px dashed #e879f9;
  background: rgba(192, 38, 211, 0.2);
  cursor: pointer;
}

.board-tile.can-move {
  border: 2px dashed #38bdf8;
  background: rgba(56, 189, 248, 0.24);
  cursor: pointer;
  animation: pulseMove 1.1s ease-in-out infinite;
}

.board-tile.can-reposition,
.floor-tile.can-reposition {
  border: 2px dashed #a3e635;
  background: rgba(132, 204, 22, 0.24);
  cursor: pointer;
  animation: pulseTile 1.15s ease-in-out infinite;
}

.board-tile.can-swap,
.floor-tile.can-swap {
  border: 2px dashed #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  cursor: pointer;
}

.tile-token.is-swap-target {
  box-shadow: 0 0 0 2px #fbbf24, 0 0 14px rgba(251, 191, 36, 0.6);
}

.is-reposition-hint {
  font-size: 9.5px;
  font-weight: 900;
  color: #d9f99d;
  text-shadow: 0 1px 2px #000;
}

@keyframes pulseMove {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35); }
  50% { box-shadow: 0 0 14px 2px rgba(56, 189, 248, 0.6); }
}

.tile-token.is-clickable {
  cursor: pointer;
}

.tile-token.is-clickable:hover {
  filter: brightness(1.12);
}

.tile-token.is-board-selected {
  box-shadow: 0 0 0 2.5px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.75);
  transform: scale(1.04);
}

.tile-token.is-move-ghost {
  background: rgba(14, 165, 233, 0.22);
  border: 2px dashed #38bdf8;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

@keyframes pulseTile {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35); }
  50% { box-shadow: 0 0 14px 2px rgba(74, 222, 128, 0.55); }
}

.tile-token {
  width: 94%;
  height: 92%;
  border-radius: 8px;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-size: 10px;
  font-weight: 800;
}

.tile-token.side-player {
  background: linear-gradient(160deg, rgba(22, 101, 52, 0.92), rgba(15, 23, 42, 0.95));
  border: 2px solid #4ade80;
}

.tile-token.side-enemy {
  background: linear-gradient(160deg, rgba(153, 27, 27, 0.92), rgba(15, 23, 42, 0.95));
  border: 2px solid #f87171;
}

.tile-token.is-steve {
  border-width: 2.5px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.tile-token.is-planned {
  border-style: dashed;
  opacity: 0.92;
}

.tile-token.is-hidden-enemy {
  background: linear-gradient(135deg, #3b0764, #1e1b4b);
  border: 2px solid #c084fc;
  justify-content: center;
  gap: 2px;
  color: #e9d5ff;
}

.tile-token-art {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-token-art svg {
  width: 26px;
  height: 26px;
}

.tile-token-stats {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
}

.status-icons {
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: 10px;
  z-index: 4;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

/* ==================== MINECRAFT XP BAR ==================== */
.mc-xp-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mc-xp-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
}

.mc-xp-level-num {
  color: #a3e635;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(132, 204, 22, 0.8), 1px 1px 0 #1a2e05;
}

.mc-xp-bar {
  height: 10px;
  background: #111827;
  border: 1.5px solid #365314;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(0, 0, 0, 0.45) 18px,
    rgba(0, 0, 0, 0.45) 20px
  );
}

.mc-xp-fill {
  height: 100%;
  background: linear-gradient(180deg, #bef264, #65a30d);
  transition: width 0.25s ease;
}

/* Battle Bottom Controls & Hand (sauber getrennt -> kein Überlappen von Button & Karten!) */
.battle-bottom {
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.battle-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  position: relative;
  z-index: 2;
}

.battle-hand {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 2px 2px;
  position: relative;
  z-index: 1;
}

.battle-hand .mc-card:not(.is-disabled) {
  touch-action: none;
  cursor: grab;
}

.battle-hand .mc-card.is-selected .mc-card-inner {
  transform: translateY(-4px) scale(1.02);
}

.battle-hand .mc-card.is-drag-origin {
  opacity: 0.25;
  transform: scale(0.95);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.drag-card-ghost {
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.72));
  transition: transform 0.04s linear;
}

.drag-card-ghost .mc-card-inner {
  box-shadow: 0 0 0 2px #fff, 0 0 26px var(--rarity-color, #38bdf8);
}

.drag-card-ghost.is-snapping-back {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.board-tile.is-drag-hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 2.5px #ffffff, 0 0 22px rgba(74, 222, 128, 0.85) !important;
  background: rgba(74, 222, 128, 0.36) !important;
  z-index: 10;
}

.board-tile.can-potion.is-drag-hover {
  box-shadow: 0 0 0 2.5px #ffffff, 0 0 22px rgba(232, 121, 249, 0.85) !important;
  background: rgba(192, 38, 211, 0.38) !important;
}

/* ==================== BATTLE FX LAYER ==================== */
.fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
}

.fx-potion {
  position: absolute;
  font-size: 26px;
  transform: translate(-50%, -50%);
  animation: flyPotion calc(0.46s * var(--spd, 1)) cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  filter: drop-shadow(0 0 10px #c084fc);
}

@keyframes flyPotion {
  0% { left: var(--sx); top: var(--sy); transform: translate(-50%, -50%) scale(0.8) rotate(0deg); opacity: 1; }
  50% { transform: translate(-50%, -120%) scale(1.35) rotate(180deg); opacity: 1; }
  100% { left: var(--ex); top: var(--ey); transform: translate(-50%, -50%) scale(1.6) rotate(360deg); opacity: 0; }
}

.fx-slash {
  position: absolute;
  left: var(--ex);
  top: var(--ey);
  font-size: 30px;
  transform: translate(-50%, -50%);
  animation: slashPop calc(0.48s * var(--spd, 1)) ease-out forwards;
}

@keyframes slashPop {
  0% { transform: translate(-50%, -50%) scale(0.4) rotate(-35deg); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.35) rotate(15deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6) rotate(25deg); opacity: 0; }
}

.fx-projectile {
  position: absolute;
  font-size: 22px;
  transform: translate(-50%, -50%);
  animation: flyProjectile calc(0.38s * var(--spd, 1)) linear forwards;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.fx-proj-fire { filter: drop-shadow(0 0 12px #f97316); }
.fx-proj-void { filter: drop-shadow(0 0 12px #c084fc); }

@keyframes flyProjectile {
  0% { left: var(--sx); top: var(--sy); transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  85% { left: var(--ex); top: var(--ey); transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
  100% { left: var(--ex); top: var(--ey); transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.fx-melee-strike {
  position: absolute;
  left: var(--ex);
  top: var(--ey);
  font-size: 26px;
  transform: translate(-50%, -50%);
  animation: meleePop calc(0.38s * var(--spd, 1)) ease-out forwards;
}

@keyframes meleePop {
  0% { left: var(--sx); top: var(--sy); transform: translate(-50%, -50%) scale(0.5); opacity: 0.9; }
  50% { left: var(--ex); top: var(--ey); transform: translate(-50%, -50%) scale(1.35); opacity: 1; }
  100% { left: var(--ex); top: var(--ey); transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.fx-splash {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  animation: splashExpand 0.52s ease-out forwards;
}

.fx-splash-poison { background: radial-gradient(circle, rgba(132, 204, 22, 0.75), transparent 72%); box-shadow: 0 0 20px #84cc16; }
.fx-splash-heal { background: radial-gradient(circle, rgba(251, 113, 133, 0.75), transparent 72%); box-shadow: 0 0 20px #fb7185; }
.fx-splash-damage { background: radial-gradient(circle, rgba(239, 68, 68, 0.75), transparent 72%); box-shadow: 0 0 20px #ef4444; }
.fx-splash-buff_steve { background: radial-gradient(circle, rgba(249, 115, 22, 0.75), transparent 72%); box-shadow: 0 0 20px #f97316; }

@keyframes splashExpand {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.85); opacity: 0; }
}

.fx-special-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  color: #fff;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.65);
  white-space: nowrap;
  animation: floatSpecial calc(0.92s * var(--spd, 1)) ease-out forwards;
  z-index: 25;
}

.fx-spec-explosion { border-color: #f97316; color: #fed7aa; }
.fx-spec-poison_splash { border-color: #84cc16; color: #d9f99d; }
.fx-spec-heal { border-color: #4ade80; color: #bbf7d0; }
.fx-spec-burn { border-color: #ef4444; color: #fecaca; }
.fx-spec-shield { border-color: #38bdf8; color: #bae6fd; }
.fx-spec-arrow_power { border-color: #fbbf24; color: #fef3c7; box-shadow: 0 0 12px rgba(251, 191, 36, 0.6); }
.fx-spec-gold_fury { border-color: #facc15; color: #fef08a; background: linear-gradient(135deg, rgba(113, 63, 18, 0.94), rgba(161, 98, 7, 0.94)); box-shadow: 0 0 12px rgba(250, 204, 21, 0.65); }
.fx-spec-leap { border-color: #fb7185; color: #ffe4e6; box-shadow: 0 0 12px rgba(244, 63, 94, 0.6); }
.fx-spec-levitate { border-color: #c084fc; color: #f3e8ff; box-shadow: 0 0 12px rgba(192, 132, 252, 0.65); }
.fx-spec-teleport { border-color: #a855f7; color: #e9d5ff; box-shadow: 0 0 14px rgba(168, 85, 247, 0.72); }
.fx-spec-void { border-color: #9333ea; color: #e9d5ff; background: linear-gradient(135deg, rgba(59, 7, 100, 0.94), rgba(88, 28, 135, 0.94)); box-shadow: 0 0 14px rgba(147, 51, 234, 0.7); }
.fx-spec-wither { border-color: #7c3aed; color: #ddd6fe; background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(76, 29, 149, 0.92)); box-shadow: 0 0 12px rgba(124, 58, 237, 0.65); }

@keyframes floatSpecial {
  0% { transform: translate(-50%, -20%) scale(0.7); opacity: 0; }
  20% { transform: translate(-50%, -80%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -180%) scale(1); opacity: 0; }
}

.fx-explosion-ring {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 4px solid #f97316;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.7), rgba(239, 68, 68, 0.35), transparent 72%);
  transform: translate(-50%, -50%);
  animation: splashExpand calc(0.6s * var(--spd, 1)) ease-out forwards;
}

.fx-teleport-ring {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 3px solid #c084fc;
  box-shadow: 0 0 22px #a855f7;
  transform: translate(-50%, -50%);
  animation: splashExpand calc(0.58s * var(--spd, 1)) ease-out forwards;
}

.fx-death-puff {
  position: absolute;
  font-size: 22px;
  transform: translate(-50%, -50%);
  animation: floatDmg 0.65s ease-out forwards;
}

.fx-dmg {
  position: absolute;
  left: var(--ex);
  top: var(--ey);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #ff4d4f;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.92),
    -1.5px -1.5px 0 rgba(0, 0, 0, 0.85),
    1.5px -1.5px 0 rgba(0, 0, 0, 0.85),
    -1.5px 1.5px 0 rgba(0, 0, 0, 0.85),
    1.5px 1.5px 0 rgba(0, 0, 0, 0.85),
    0 0 12px rgba(239, 68, 68, 0.65);
  z-index: 30;
  pointer-events: none;
  animation: floatDmg calc(0.86s * var(--spd, 1)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fx-dmg-melee { color: #ff4d4f; text-shadow: 0 2px 0 #000, 0 0 12px rgba(239, 68, 68, 0.75); }
.fx-dmg-poison { color: #bef264; text-shadow: 0 2px 0 #000, 0 0 12px rgba(132, 204, 22, 0.75); }
.fx-dmg-fire { color: #fb923c; text-shadow: 0 2px 0 #000, 0 0 12px rgba(249, 115, 22, 0.75); }
.fx-dmg-wither { color: #d8b4fe; text-shadow: 0 2px 0 #000, 0 0 12px rgba(168, 85, 247, 0.75); }
.fx-dmg-magic { color: #f472b6; text-shadow: 0 2px 0 #000, 0 0 12px rgba(236, 72, 153, 0.75); }
.fx-dmg-heal { color: #4ade80; text-shadow: 0 2px 0 #000, 0 0 12px rgba(34, 197, 94, 0.75); }

@keyframes floatDmg {
  0% { transform: translate3d(-50%, -25%, 0) scale(0.65); opacity: 0; }
  18% { transform: translate3d(-50%, -75%, 0) scale(1.25); opacity: 1; }
  65% { transform: translate3d(-50%, -140%, 0) scale(1.06); opacity: 1; }
  100% { transform: translate3d(-50%, -205%, 0) scale(0.95); opacity: 0; }
}

/* ==================== SEQUENZIELLES KAMPF-PACING, ANGREIFER-LUNGE, HIT-FLASH & K.O. ==================== */
/* 1x / 2x Kampfgeschwindigkeits-Toggle im Kampf-Header */
.combat-speed-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  border-radius: 9px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.1s ease;
}

.combat-speed-btn:hover {
  border-color: rgba(125, 211, 252, 0.65);
  color: #f8fafc;
}

.combat-speed-btn:active {
  transform: scale(0.95);
}

.combat-speed-btn.is-fast {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.36), rgba(30, 58, 138, 0.55));
  border-color: rgba(56, 189, 248, 0.75);
  color: #e0f2fe;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

/* Synchrones Kampf-Banner mit Live-Highlight */
.battle-log-strip.is-live-action {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 58, 138, 0.55), rgba(15, 23, 42, 0.94));
  color: #f0f9ff;
}

.battle-log-strip.is-ko-banner {
  border-color: rgba(248, 113, 113, 0.72);
  background: linear-gradient(90deg, rgba(69, 10, 10, 0.9), rgba(153, 27, 27, 0.65), rgba(69, 10, 10, 0.9));
  color: #fef2f2;
}

.battle-log-strip.is-heal-banner {
  border-color: rgba(74, 222, 128, 0.65);
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.88), rgba(21, 128, 61, 0.55), rgba(6, 78, 59, 0.88));
  color: #f0fdf4;
}

.battle-log-strip.is-banner-pop {
  animation: bannerPop calc(0.24s * var(--spd, 1)) ease-out;
}

@keyframes bannerPop {
  0% { transform: scale(0.985); opacity: 0.78; }
  100% { transform: scale(1); opacity: 1; }
}

/* Angreifer-Highlight & Vorwärts-Zucken Richtung Ziel */
.tile-token.is-attacking {
  z-index: 12;
  box-shadow:
    0 0 0 2.5px #fde047,
    0 0 22px rgba(250, 204, 21, 0.85) !important;
  animation: attackerLunge calc(0.38s * var(--spd, 1)) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes attackerLunge {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(var(--lunge-x, 0px), var(--lunge-y, -10px), 0) scale(1.1); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Treffer-Aufblitzen (Rot) & leichtes Wackeln auf getroffener Karte */
.tile-token.is-hit-flash {
  animation: tokenHitShake calc(0.34s * var(--spd, 1)) ease-in-out;
}

.tile-token.is-hit-flash::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(239, 68, 68, 0.55);
  box-shadow: inset 0 0 14px rgba(254, 202, 202, 0.85);
  pointer-events: none;
  z-index: 8;
  animation: hitRedTint calc(0.34s * var(--spd, 1)) ease-out forwards;
}

@keyframes tokenHitShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-4px, 0, 0) rotate(-2deg); }
  45% { transform: translate3d(4px, 0, 0) rotate(2deg); }
  70% { transform: translate3d(-2.5px, 0, 0); }
}

@keyframes hitRedTint {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* HP-Countdown Highlight */
.hp-val {
  display: inline-block;
  transition: transform 0.14s ease, color 0.14s ease;
}

.hp-val.is-hp-drop {
  color: #ff6b6b !important;
  transform: scale(1.24);
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
}

.hp-val.is-hp-heal {
  color: #4ade80 !important;
  transform: scale(1.24);
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.85);
}

.hp-val.is-hp-zero {
  color: #ef4444 !important;
  font-weight: 900;
}

/* Saubere K.O.-Todessequenz (0 HP -> Rotes Aufblitzen + K.O.-Overlay -> Schrumpfen & Auflösen) */
.tile-token.is-dying {
  z-index: 14;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px #f87171, 0 0 22px rgba(239, 68, 68, 0.85) !important;
  animation: tokenDeathFlash calc(0.28s * var(--spd, 1)) ease-in-out;
}

.tile-token.is-dying .tile-token-art {
  animation: none !important;
  filter: grayscale(0.55) brightness(0.8);
}

.ko-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.82), rgba(127, 29, 29, 0.88));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  z-index: 15;
  pointer-events: none;
  animation: koStampIn calc(0.26s * var(--spd, 1)) cubic-bezier(0.18, 1.35, 0.36, 1) forwards;
}

.ko-overlay span {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
}

.ko-overlay b {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fef2f2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

@keyframes tokenDeathFlash {
  0% { transform: scale(1); }
  30% { transform: translate3d(-4px, 0, 0) scale(1.06); }
  65% { transform: translate3d(4px, 0, 0) scale(1.03); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes koStampIn {
  0% { opacity: 0; transform: scale(1.45); }
  100% { opacity: 1; transform: scale(1); }
}

.tile-token.is-dissolving {
  animation: mobDeathDissolve calc(0.46s * var(--spd, 1)) cubic-bezier(0.4, 0, 0.85, 0.3) forwards;
}

@keyframes mobDeathDissolve {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.28) rotate(-10deg) translate3d(0, 6px, 0);
  }
}

.fx-ko-burst-wrap {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 28;
}

.fx-ko-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #fca5a5;
  box-shadow: 0 0 8px #ef4444;
  transform: translate(-50%, -50%);
  animation: koParticleBurst calc(0.52s * var(--spd, 1)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes koParticleBurst {
  0% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1.2) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--dx)), calc(-50% + var(--dy)), 0) scale(0.2) rotate(130deg);
  }
}

/* ==================== BATTLE DRAW, DROP & IDLE ANIMATIONEN (GPU transform/opacity) ==================== */
/* 1. Karten ziehen (weiches Hineingleiten vom Deck in die Hand) */
.battle-hand .mc-card.is-card-drawing .mc-card-inner {
  animation: cardDrawGlide 0.42s cubic-bezier(0.22, 1.12, 0.36, 1) var(--draw-delay, 0ms) both;
}

@keyframes cardDrawGlide {
  0% {
    opacity: 0;
    transform: translate3d(38px, 16px, 0) scale(0.76) rotate(7deg);
  }
  65% {
    opacity: 1;
    transform: translate3d(-2px, -2px, 0) scale(1.03) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
}

/* 2. Mobs platzieren (Drop von oben + Squash-and-Stretch Lande-Bounce) */
.board-tile.is-dropping-tile {
  overflow: visible;
  z-index: 8;
}

.tile-token.is-mob-dropping {
  animation: mobDropBounce 0.44s cubic-bezier(0.22, 0.9, 0.32, 1) both;
  transform-origin: 50% 85%;
}

@keyframes mobDropBounce {
  0% {
    opacity: 0;
    transform: translate3d(0, -34px, 0) scale3d(0.82, 1.14, 1);
  }
  52% {
    opacity: 1;
    transform: translate3d(0, 3px, 0) scale3d(1.13, 0.86, 1);
  }
  74% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) scale3d(0.96, 1.05, 1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}

/* Aufprall-Lichtring & kleine Welt-Partikel (Overworld / Infernalworld / Dragonworld) */
.fx-drop-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2.5px solid #86efac;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.65);
  transform: translate(-50%, -50%);
  animation: dropRingExpand 0.46s ease-out forwards;
}

.fx-drop-ring.fx-drop-nether {
  border-color: #fb923c;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.72);
}

.fx-drop-ring.fx-drop-end {
  border-color: #e879f9;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.72);
}

@keyframes dropRingExpand {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.35);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.85);
  }
}

.fx-drop-dust-wrap {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.fx-drop-mote {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #bbf7d0;
  box-shadow: 0 0 6px #4ade80;
  transform: translate(-50%, -50%);
  animation: dropMoteBurst 0.46s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fx-drop-mote.fx-drop-nether {
  background: #fde047;
  box-shadow: 0 0 7px #f97316;
}

.fx-drop-mote.fx-drop-end {
  background: #f5d0fe;
  box-shadow: 0 0 7px #c084fc;
}

@keyframes dropMoteBurst {
  0% {
    opacity: 0.95;
    transform: translate3d(-50%, -50%, 0) scale(1.1);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--dx)), calc(-50% + var(--dy)), 0) scale(0.2);
  }
}

/* 3. Lebendige Idle-Animationen auf dem Feld (nur .tile-token-art -> 0 Layout-Sprung!) */
.tile-token-art.idle-breathe {
  animation: mobIdleBreathe 2.6s ease-in-out infinite;
  transform-origin: 50% 85%;
}

@keyframes mobIdleBreathe {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
  50% {
    transform: translate3d(0, -1.8px, 0) scale3d(1.03, 0.975, 1);
  }
}

.tile-token-art.idle-float {
  animation: mobIdleFloat 2.4s ease-in-out infinite;
  transform-origin: 50% 50%;
}

@keyframes mobIdleFloat {
  0%, 100% {
    transform: translate3d(0, 0.8px, 0) scale3d(1, 1, 1);
  }
  50% {
    transform: translate3d(0, -3.5px, 0) scale3d(1.035, 1.035, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile-token-art.idle-breathe,
  .tile-token-art.idle-float,
  .tile-token.is-mob-dropping,
  .battle-hand .mc-card.is-card-drawing .mc-card-inner,
  .gear-hero-icon-wrap,
  .gear-hero-pedestal.is-enchanted::after,
  .zoom-art-svg-wrap {
    animation: none !important;
  }
}

/* ==================== LONG-PRESS CARD ZOOM & ANIMATED GEAR DETAIL MODALS ==================== */
.card-zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.18s ease-out forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card-zoom-card {
  width: 100%;
  max-width: 356px;
  max-height: 90dvh;
  overflow-y: auto;
  scrollbar-width: none;
  background: linear-gradient(168deg, rgba(22, 33, 56, 0.96) 0%, rgba(10, 16, 30, 0.98) 100%);
  border: 2px solid var(--rarity-border, #38bdf8);
  border-radius: 22px;
  padding: 14px 15px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.8),
    0 0 32px color-mix(in srgb, var(--rarity-color, #38bdf8) 34%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  animation: detailPopIn 0.24s cubic-bezier(0.2, 1.18, 0.35, 1) forwards;
}

.card-zoom-card::-webkit-scrollbar {
  display: none;
}

@keyframes detailPopIn {
  0% { opacity: 0; transform: scale(0.88) translate3d(0, 12px, 0); }
  100% { opacity: 1; transform: scale(1) translate3d(0, 0, 0); }
}

.zoom-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zoom-badges-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.zoom-rarity-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.8);
}

.zoom-close-btn {
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.55);
  color: #fee2e2;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.12s ease, background 0.14s ease;
}

.zoom-close-btn:hover {
  background: rgba(220, 38, 38, 0.75);
  transform: scale(1.06);
}

.zoom-art-stage {
  position: relative;
  height: 128px;
  border-radius: 15px;
  background: radial-gradient(circle at 50% 54%, color-mix(in srgb, var(--rarity-color, #38bdf8) 28%, #0b1222), #070c17);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.zoom-art-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--rarity-color, #38bdf8) 38%, transparent), transparent 68%);
  pointer-events: none;
}

.zoom-art-svg-wrap {
  position: relative;
  z-index: 2;
  width: 108px;
  height: 108px;
  animation: gearFloatIdle 3s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6));
}

.zoom-art-svg-wrap .art-svg {
  width: 108px;
  height: 108px;
}

.zoom-dim-bonus {
  position: absolute;
  bottom: 7px;
  right: 8px;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.9);
  color: #052e16;
}

.zoom-card-title {
  font-size: 19px;
  font-weight: 900;
  text-align: center;
  color: #f8fafc;
  letter-spacing: 0.2px;
}

.zoom-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.zoom-stat-tile,
.gear-stat-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
  animation: statTileSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--stagger-i, 0) * 55ms) both;
}

@keyframes statTileSlideIn {
  0% { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.97); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.zoom-stat-icon,
.gear-stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-svg-icon {
  display: block;
  flex-shrink: 0;
}

.zoom-stat-info,
.gear-stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zoom-stat-info span,
.gear-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.15;
}

.zoom-stat-info b {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.zoom-ability-panel {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(192, 132, 252, 0.4);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zoom-ability-panel.is-locked {
  border-color: rgba(148, 163, 184, 0.32);
}

.zoom-ability-panel.is-potion {
  border-color: rgba(244, 114, 182, 0.44);
}

.zoom-ability-panel.is-block {
  border-color: rgba(148, 163, 184, 0.35);
}

.zoom-ability-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 900;
  color: #e9d5ff;
}

.zoom-ability-body .back-ability-list {
  gap: 5px;
}

.zoom-ability-body .back-ability-item {
  font-size: 12.2px;
  line-height: 1.4;
  color: #f1f5f9;
  padding-left: 11px;
}

.zoom-flavor-text {
  font-size: 11px;
  font-style: italic;
  color: #94a3b8;
  text-align: center;
  line-height: 1.35;
}

.zoom-footer-tip {
  font-size: 10px;
  font-weight: 700;
  color: #7dd3fc;
  text-align: center;
  opacity: 0.82;
}

/* ==================== ANIMATED GEAR DETAIL SHOWCASE & EQUIP MODAL ==================== */
.gear-detail-showcase {
  background: linear-gradient(160deg, rgba(22, 33, 56, 0.82), rgba(11, 17, 32, 0.92));
  border: 1.5px solid color-mix(in srgb, var(--tier-border, #64748b) 65%, rgba(255, 255, 255, 0.14));
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 22px color-mix(in srgb, var(--tier-color, #38bdf8) 14%, transparent);
}

.gear-showcase-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gear-hero-pedestal {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 45%, var(--tier-bg, rgba(56, 189, 248, 0.22)), rgba(9, 14, 26, 0.92));
  border: 1.5px solid var(--tier-border, rgba(148, 163, 184, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.gear-hero-pedestal.is-enchanted::after {
  content: '';
  position: absolute;
  inset: -45%;
  background: linear-gradient(115deg, transparent 36%, rgba(233, 213, 255, 0.28) 50%, transparent 64%);
  animation: gearGleamSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gearGleamSweep {
  0% { transform: translateX(-65%) rotate(15deg); }
  55%, 100% { transform: translateX(75%) rotate(15deg); }
}

.gear-hero-aura {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--tier-color, #38bdf8) 42%, transparent), transparent 70%);
  pointer-events: none;
}

.gear-hero-icon-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gearFloatIdle 2.9s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.55));
}

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

.gear-showcase-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gear-badge-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.gear-tier-pill,
.gear-slot-pill,
.gear-eq-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.8);
  color: #cbd5e1;
}

.gear-eq-pill {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(20, 83, 45, 0.45);
  color: #86efac;
}

.gear-showcase-name {
  font-size: 17px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.gear-compare-note {
  font-size: 11px;
  color: #94a3b8;
}

.gear-compare-note b {
  color: #e2e8f0;
}

.gear-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.gear-stat-tile.is-wide {
  grid-column: 1 / -1;
}

.gear-stat-tile.is-enchant-tile {
  border-color: rgba(192, 132, 252, 0.45);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.28), rgba(15, 23, 42, 0.78));
}

.gear-stat-tile.is-obsidian-ward-tile {
  border-color: rgba(147, 51, 234, 0.72);
  background: linear-gradient(135deg, rgba(59, 7, 100, 0.62), rgba(24, 18, 43, 0.92));
  box-shadow: inset 0 1px 0 rgba(192, 132, 252, 0.22), 0 0 14px rgba(147, 51, 234, 0.22);
}

.gear-stat-tile.is-obsidian-ward-tile .gear-stat-lbl {
  color: #c084fc;
}

.gear-obsidian-ward-desc {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.38;
  color: #f3e8ff;
}

.equip-mini-chip.is-obsidian,
.wb-stat-pill.is-obsidian,
.repair-obsidian-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #e9d5ff;
  border: 1px solid rgba(147, 51, 234, 0.68);
  background: linear-gradient(135deg, rgba(59, 7, 100, 0.78), rgba(24, 18, 43, 0.9));
  white-space: nowrap;
}

.wb-obsidian-effect-bar {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(147, 51, 234, 0.56);
  background: linear-gradient(135deg, rgba(59, 7, 100, 0.44), rgba(24, 18, 43, 0.85));
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.32;
  color: #e9d5ff;
}

.wb-obsidian-effect-bar svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #c084fc;
}

.gear-stat-tile.is-blackstar-set-tile {
  border-color: rgba(245, 158, 11, 0.68);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.44), rgba(30, 18, 52, 0.92));
  box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.24), 0 0 14px rgba(168, 85, 247, 0.22);
}

.gear-stat-tile.is-blackstar-set-tile .gear-stat-lbl {
  color: #fbbf24;
}

.gear-blackstar-set-desc {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.38;
  color: #fef3c7;
}

.equip-mini-chip.is-blackstar,
.repair-blackstar-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.65);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.62), rgba(30, 18, 52, 0.9));
  white-space: nowrap;
}

.forge-set-bonus-bar {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 6px 0 4px;
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.52);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.36), rgba(30, 18, 52, 0.86));
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.32;
  color: #fef3c7;
}

.forge-set-bonus-bar svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #fbbf24;
}

.gear-stat-val-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.gear-stat-val-row b {
  font-size: 14.5px;
  font-weight: 900;
}

.gear-sub-bonus {
  font-size: 10px;
  font-weight: 700;
  color: #c4b5fd;
}

.gear-delta-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 6px;
  line-height: 1.25;
}

.gear-delta-badge.is-pos {
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.55);
  color: #86efac;
}

.gear-delta-badge.is-neg {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #fca5a5;
}

.gear-dur-panel {
  background: rgba(11, 17, 32, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 11px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: statTileSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--stagger-i, 2) * 55ms) both;
}

.gear-dur-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}

.gear-dur-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 800;
  color: #cbd5e1;
}

.gear-dur-nums {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-weight: 700;
}

.gear-dur-nums b {
  color: #f8fafc;
}

.gear-dur-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gear-dur-fill-anim {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  transform-origin: left center;
  animation: durBarFill 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.gear-dur-fill-anim.is-high {
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.45);
}

.gear-dur-fill-anim.is-mid {
  background: linear-gradient(90deg, #d97706, #fbbf24);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
}

.gear-dur-fill-anim.is-low {
  background: linear-gradient(90deg, #b91c1c, #f87171);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

@keyframes durBarFill {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(var(--dur-scale, 1)); }
}

.gear-recipe-cost-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gear-recipe-cost-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #cbd5e1;
}

.gear-recipe-cost-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Verbesserte Equip-Auswahlliste im Hauptmenü */
.equip-list-label {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.equip-items-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.equip-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.74);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.equip-item-card:hover {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(23, 35, 58, 0.88);
}

.equip-item-card.is-selected-preview {
  border-color: rgba(56, 189, 248, 0.78);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
}

.equip-item-card.is-equipped-row {
  border-color: rgba(74, 222, 128, 0.45);
}

.equip-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.equip-item-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.equip-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.equip-item-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.equip-item-name {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.gear-tier-mini {
  font-size: 9.5px;
  font-weight: 800;
  opacity: 0.9;
}

.equip-ench-spark {
  font-size: 11px;
}

.equip-mini-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.equip-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #e2e8f0;
  background: rgba(11, 17, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  padding: 1.5px 6px;
}

.equip-mini-dur {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.equip-inline-bar {
  width: 42px !important;
  height: 5px !important;
}

/* Anklickbare Werkbank- & Schmiede-Zeilen */
.workshop-inspectable {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: 10px;
  transition: background 0.14s ease, transform 0.12s ease;
}

.workshop-inspectable:hover {
  background: rgba(56, 189, 248, 0.12);
}

.workshop-inspectable:active {
  transform: scale(0.99);
}

.inspect-info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #7dd3fc;
  opacity: 0.85;
  flex-shrink: 0;
}

.mc-ico {
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
}

.ico-inline,
.btn-ico-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bnav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.vstat-box .v-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.vstat-btn {
  appearance: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.vstat-btn:hover {
  border-color: rgba(103, 232, 249, 0.55);
  background: rgba(20, 35, 60, 0.72);
}

.v-val-dual {
  gap: 5px !important;
}

.v-pair {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.gear-slot-lbl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.gear-stat-explain {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(14, 116, 144, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.28);
  font-size: 10.8px;
  line-height: 1.3;
  color: #cffafe;
}

.gear-stat-explain b {
  color: #67e8f9;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-input-ico {
  position: absolute;
  left: 10px;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  opacity: 0.85;
}

.search-input-wrap .collection-search-input {
  width: 100%;
  padding-left: 30px;
}

.tile-token-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 8.5px;
  line-height: 1.15;
  width: 100%;
  max-width: 100%;
  padding: 0 2px;
  overflow: hidden;
}

.tile-token-name > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-token-name.is-name-long {
  font-size: 7.3px;
  letter-spacing: -0.2px;
}

.tile-token-name.is-name-xlong {
  font-size: 6.6px;
  letter-spacing: -0.25px;
}

.tile-token-stats .atk-val,
.tile-token-stats .hp-val {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
}

.battle-log-strip {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fx-special-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.toast-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.card-ability-pill,
.stat-chip,
.xp-badge,
.dim-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.combat-speed-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-card {
  animation: detailPopIn 0.22s cubic-bezier(0.2, 1.12, 0.35, 1) both;
}

/* ==================== MODALS & TOAST ==================== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

/* Pack-Modal: Satte dunkle Vignette ohne Vollbild-Backdrop-Blur (flüssige 3D-Flips & Partikel auf Android) */
.modal-backdrop.is-pack-backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: radial-gradient(circle at 50% 42%, rgba(15, 23, 42, 0.88) 0%, rgba(3, 6, 14, 0.96) 100%);
}

.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(170deg, #162035, #0b1120);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}

.modal-footer {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.toast-msg {
  position: absolute;
  top: auto;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1400;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #4ade80;
  color: #f8fafc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  max-width: calc(100% - 28px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.58);
  animation: toastIn 0.2s ease-out;
  white-space: nowrap;
  pointer-events: none;
}

.toast-msg.error {
  border-color: #ef4444;
  color: #fecaca;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==================== SWIPEABLE PACK & CARD CAROUSEL ==================== */
.swipe-carousel-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.swipe-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  cursor: grab;
  touch-action: pan-y;
  position: relative;
}

.swipe-viewport.is-dragging {
  cursor: grabbing;
}

.swipe-track {
  display: flex;
  width: 100%;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.swipe-viewport.is-dragging .swipe-track {
  transition: none;
}

.swipe-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 6px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.swipe-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, background 0.14s ease;
}

.swipe-nav-btn:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.swipe-nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.swipe-nav-prev { left: 4px; }
.swipe-nav-next { right: 4px; }

.swipe-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.swipe-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(148, 163, 184, 0.38);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.swipe-dot.active {
  width: 24px;
  background: #38bdf8;
}

.pack-showcase-card {
  width: 100%;
  max-width: 390px;
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  border: 2px solid var(--pack-color, #4ade80);
  border-radius: 20px;
  padding: 18px 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.55),
    0 0 28px color-mix(in srgb, var(--pack-color, #4ade80) 24%, transparent);
}

.pack-foil-visual {
  width: 118px;
  height: 148px;
  border-radius: 16px;
  border: 2.5px solid var(--pack-color, #4ade80);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.24), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--pack-color, #4ade80) 35%, #1e293b), #0b1120);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 18px color-mix(in srgb, var(--pack-color, #4ade80) 35%, transparent);
  overflow: hidden;
}

.pack-foil-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 6px, transparent 6px 12px);
}

.pack-foil-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 6px, transparent 6px 12px);
}

.pack-foil-sheen {
  position: absolute;
  inset: -35%;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(255, 255, 255, 0.08) 44%,
    rgba(255, 255, 255, 0.36) 50%,
    rgba(255, 255, 255, 0.08) 56%,
    transparent 66%
  );
  transform: translate3d(-120%, 0, 0) skewX(-16deg);
  pointer-events: none;
  z-index: 3;
  animation: packSheenGlide 5.6s ease-in-out infinite;
}

.pack-tier-epic .pack-foil-sheen {
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(192, 132, 252, 0.14) 42%,
    rgba(245, 208, 254, 0.48) 50%,
    rgba(192, 132, 252, 0.14) 58%,
    transparent 70%
  );
  animation-duration: 4.2s;
  animation-delay: 0.7s;
}

.pack-tier-legendary .pack-foil-sheen {
  background: linear-gradient(
    115deg,
    transparent 28%,
    rgba(251, 191, 36, 0.18) 40%,
    rgba(254, 249, 195, 0.62) 50%,
    rgba(251, 191, 36, 0.18) 60%,
    transparent 72%
  );
  animation-duration: 3.4s;
  animation-delay: 1.3s;
}

.pack-grid-card.pack-tier-legendary {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 22px rgba(251, 191, 36, 0.24);
}

.pack-grid-card.pack-tier-epic {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48), 0 0 20px rgba(192, 132, 252, 0.22);
}

@keyframes packSheenGlide {
  0%, 56% { transform: translate3d(-135%, 0, 0) skewX(-16deg); opacity: 0; }
  64% { opacity: 1; }
  88% { transform: translate3d(135%, 0, 0) skewX(-16deg); opacity: 0.95; }
  100% { transform: translate3d(135%, 0, 0) skewX(-16deg); opacity: 0; }
}

.pack-grid-card {
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.98));
  border: 2px solid var(--pack-color, #4ade80);
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 18px color-mix(in srgb, var(--pack-color, #4ade80) 18%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pack-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55), 0 0 26px color-mix(in srgb, var(--pack-color, #4ade80) 38%, transparent);
}

.pack-foil-sm {
  width: 92px;
  height: 112px;
}

.pack-grid-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pack-grid-title {
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.2;
}

.pack-grid-sub {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.3;
}

.pack-grid-meta {
  font-size: 10.5px;
  font-weight: 800;
  color: #e2e8f0;
  margin-top: 2px;
}

.pack-grid-bonus {
  font-size: 9.8px;
  color: #86efac;
}

/* ==================== AAA PACK OPENING, RIP-OPEN & 3D CARD FLIP ==================== */
.pack-modal-shell {
  position: relative;
  padding-top: 2px;
}

.pack-modal-heading {
  margin: 0 0 6px;
  padding: 0 92px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
}

.pack-skip-btn {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.pack-skip-btn:hover {
  border-color: rgba(56, 189, 248, 0.7);
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.95);
}

.pack-skip-btn:active {
  transform: scale(0.95);
}

.pack-open-intro {
  text-align: center;
  padding: 12px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.pack-tear-stage {
  position: relative;
  width: 260px;
  height: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-tear-aura {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--pack-color) 42%, transparent) 0%, transparent 72%);
  opacity: 0.65;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.pack-open-intro.is-ripping .pack-tear-aura {
  background: radial-gradient(circle, color-mix(in srgb, var(--teaser-color) 65%, transparent) 0%, transparent 72%);
  transform: scale(1.45);
  opacity: 1;
}

.pack-tear-burst {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0%, var(--teaser-color) 48%, transparent 100%);
  box-shadow: 0 0 60px var(--teaser-color);
  opacity: 0;
  pointer-events: none;
}

.pack-open-intro.is-ripping .pack-tear-burst {
  animation: packBurstLight 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes packBurstLight {
  0% { transform: scale(0.18); opacity: 0; }
  45% { transform: scale(1.1); opacity: 0.75; }
  76% { transform: scale(2.55); opacity: 1; }
  100% { transform: scale(3.3); opacity: 0; }
}

.pack-rip-particle {
  position: absolute;
  width: var(--sz, 8px);
  height: var(--sz, 8px);
  border-radius: 3px;
  background: var(--teaser-color);
  box-shadow: 0 0 10px var(--teaser-color);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.pack-open-intro.is-ripping .pack-rip-particle {
  animation: packRipParticleFly 0.72s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s) forwards;
}

@keyframes packRipParticleFly {
  0% { transform: translate3d(0, 0, 0) scale(0.3) rotate(0deg); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate3d(var(--px, 80px), var(--py, -60px), 0) scale(1.1) rotate(var(--rot, 120deg)); opacity: 0; }
}

.pack-tear-body {
  position: relative;
  width: 142px;
  height: 178px;
  border-radius: 18px;
  border: 2.5px solid var(--pack-color);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(145deg, color-mix(in srgb, var(--pack-color) 38%, #1e293b), #0b1120);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 26px color-mix(in srgb, var(--pack-color) 42%, transparent);
  overflow: hidden;
}

.pack-open-intro.is-ready .pack-tear-body {
  animation: packReadyFloat 1.5s ease-in-out infinite;
}

@keyframes packReadyFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

.pack-open-intro.is-ripping .pack-tear-body {
  overflow: visible;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 38px color-mix(in srgb, var(--teaser-color) 75%, transparent);
  animation: packShake 0.8s ease-in-out forwards;
}

.pack-tear-flap {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 30px;
  border-radius: 16px 16px 4px 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pack-color) 65%, #334155), color-mix(in srgb, var(--pack-color) 30%, #1e293b));
  border: 2px solid var(--pack-color);
  z-index: 3;
}

.pack-open-intro.is-ripping .pack-tear-flap {
  animation: packTearTop 0.78s cubic-bezier(0.55, 0.05, 0.75, 0.25) forwards;
}

.pack-tear-seam {
  position: absolute;
  top: 26px;
  left: 6px;
  right: 6px;
  height: 4px;
  border-radius: 999px;
  background: var(--teaser-color);
  box-shadow: 0 0 16px var(--teaser-color);
  opacity: 0;
  z-index: 4;
}

.pack-open-intro.is-ripping .pack-tear-seam {
  animation: packSeamGlow 0.76s ease-in forwards;
}

.pack-intro-caption {
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.26);
}

@keyframes packShake {
  0% { transform: scale(1) rotate(0deg); }
  14% { transform: scale(1.04) rotate(-5deg); }
  28% { transform: scale(1.06) rotate(5deg); }
  44% { transform: scale(1.1) rotate(-6deg); }
  58% { transform: scale(1.14) rotate(6deg); }
  74% { transform: scale(1.2) rotate(0deg); opacity: 1; }
  100% { transform: scale(1.38) translateY(14px); opacity: 0; }
}

@keyframes packTearTop {
  0%, 42% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(68px, -54px, 0) rotate(36deg); opacity: 0; }
}

@keyframes packSeamGlow {
  0%, 24% { opacity: 0; transform: scaleX(0.3); }
  72% { opacity: 1; transform: scaleX(1.15); }
  100% { opacity: 1; transform: scaleX(1.55); }
}

/* ==================== 3D FLIP STAGE & RARITY ESCALATION ==================== */
.reveal-flip-scene {
  perspective: 1100px;
  width: 210px;
  min-height: 236px;
  position: relative;
  z-index: 3;
}

.reveal-flip-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transform: rotateY(180deg) scale(0.92);
  transition: transform 0.44s cubic-bezier(0.22, 1.18, 0.36, 1);
}

.reveal-flip-scene.is-tier-epic .reveal-flip-inner {
  transition-duration: 0.54s;
}

.reveal-flip-scene.is-tier-mythic .reveal-flip-inner {
  transition-duration: 0.62s;
}

.reveal-flip-scene.is-flipped .reveal-flip-inner {
  transform: rotateY(0deg) scale(1);
}

.pack-tap-stage.is-charging.is-tier-epic .reveal-flip-scene {
  animation: chargeGlowPulse 0.24s ease-in-out infinite;
}

.pack-tap-stage.is-charging.is-tier-mythic .reveal-flip-scene,
.pack-tap-stage.is-charging.is-tier-legendary .reveal-flip-scene {
  animation: chargeTremor 0.14s linear infinite;
}

@keyframes chargeGlowPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes chargeTremor {
  0% { transform: translate3d(-2px, 1px, 0) rotate(-1.5deg); }
  50% { transform: translate3d(2px, -1px, 0) rotate(1.5deg); }
  100% { transform: translate3d(-2px, 1px, 0) rotate(-1.5deg); }
}

.reveal-flip-back,
.reveal-flip-front {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  width: 100%;
}

.reveal-flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  border-radius: 15px;
  border: 2.5px solid var(--fx-color, #4ade80);
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--fx-color, #4ade80) 34%, transparent), transparent 65%),
    linear-gradient(155deg, #1e293b, #090d16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 22px color-mix(in srgb, var(--fx-color, #4ade80) 45%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reveal-back-ring {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--fx-color, #4ade80) 55%, transparent);
  pointer-events: none;
}

.reveal-back-emblem {
  display: inline-flex;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--fx-color, #4ade80) 75%, transparent));
}

.reveal-back-brand {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  color: color-mix(in srgb, var(--fx-color, #4ade80) 80%, #ffffff);
  opacity: 0.9;
}

.reveal-flip-front {
  position: relative;
  transform: rotateY(0deg);
}

.reveal-flip-scene.is-flipped .reveal-single-card {
  box-shadow: 0 0 22px color-mix(in srgb, var(--fx-color, #4ade80) 42%, transparent);
  border-radius: 14px;
  overflow: hidden;
}

.reveal-flip-scene.is-flipped.is-tier-legendary .reveal-single-card {
  box-shadow: 0 0 34px rgba(251, 191, 36, 0.78), 0 12px 30px rgba(0, 0, 0, 0.65);
}

.reveal-flip-scene.is-flipped.is-tier-mythic .reveal-single-card {
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.72), 0 12px 28px rgba(0, 0, 0, 0.6);
}

/* Goldener Lichtstrahl von oben/hinten für Legendär */
.pull-fx-godray {
  position: absolute;
  top: -85px;
  left: 50%;
  width: 150px;
  height: 360px;
  transform: translateX(-50%) scaleX(0.4);
  background: linear-gradient(
    180deg,
    rgba(254, 240, 138, 0.82) 0%,
    rgba(251, 191, 36, 0.42) 45%,
    rgba(251, 191, 36, 0.08) 80%,
    transparent 100%
  );
  clip-path: polygon(28% 0%, 72% 0%, 100% 100%, 0% 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.pack-tap-stage.is-revealed .pull-fx-godray {
  animation: godrayDescend 1.3s ease-out forwards;
}

@keyframes godrayDescend {
  0% { opacity: 0; transform: translateX(-50%) scaleX(0.35) translateY(-30px); }
  30% { opacity: 0.95; transform: translateX(-50%) scaleX(1.15) translateY(0); }
  100% { opacity: 0.42; transform: translateX(-50%) scaleX(1.05) translateY(0); }
}

/* Aufsteigende Funken (Episch & Legendär) */
.pull-fx-rise-spark {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--fx-color);
  box-shadow: 0 0 10px var(--fx-color);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.pack-tap-stage.is-revealed .pull-fx-rise-spark {
  animation: riseSparkFloat 0.95s ease-out var(--rd, 0.08s) forwards;
}

@keyframes riseSparkFloat {
  0% { transform: translate3d(var(--rx, 0px), 12px, 0) scale(0.4); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate3d(var(--rx, 0px), var(--ry, -150px), 0) scale(1.1); opacity: 0; }
}

/* Dauerhafter, edler Gold-Schimmer über Legendären Karten */
.legendary-card-shimmer {
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(251, 191, 36, 0.16) 44%,
    rgba(254, 249, 195, 0.52) 50%,
    rgba(251, 191, 36, 0.16) 56%,
    transparent 66%
  );
  transform: translate3d(-135%, 0, 0) skewX(-18deg);
  pointer-events: none;
  z-index: 6;
  animation: legendaryShimmerSweep 2.9s ease-in-out infinite;
}

.grid-leg-card {
  position: relative;
  overflow: hidden;
}

@keyframes legendaryShimmerSweep {
  0%, 35% { transform: translate3d(-135%, 0, 0) skewX(-18deg); opacity: 0; }
  48% { opacity: 1; }
  82% { transform: translate3d(135%, 0, 0) skewX(-18deg); opacity: 0.9; }
  100% { transform: translate3d(135%, 0, 0) skewX(-18deg); opacity: 0; }
}

/* Screen-Shake am Modal für Mythisch & Legendär */
.pack-screen-shake-mythic {
  animation: packModalShakeMythic 0.38s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.pack-screen-shake-legendary {
  animation: packModalShakeLeg 0.56s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes packModalShakeMythic {
  0%, 100% { transform: translate3d(0, 0, 0); }
  22% { transform: translate3d(-5px, 2px, 0); }
  48% { transform: translate3d(5px, -3px, 0); }
  74% { transform: translate3d(-3px, 1px, 0); }
}

@keyframes packModalShakeLeg {
  0%, 100% { transform: translate3d(0, 0, 0); }
  15% { transform: translate3d(-7px, 4px, 0); }
  30% { transform: translate3d(7px, -4px, 0); }
  46% { transform: translate3d(-6px, -3px, 0); }
  64% { transform: translate3d(5px, 3px, 0); }
  82% { transform: translate3d(-3px, 1px, 0); }
}

/* Smaragd-Bonus Pop-up & fliegende Smaragd-Icons */
.emerald-bonus-popup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  z-index: 9;
}

.emerald-popup-pill {
  margin-top: -10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  border: 1.5px solid #fecaca;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.8);
  opacity: 0;
}

.pack-tap-stage.is-revealed .emerald-popup-pill {
  animation: emeraldPopBounce 1.25s cubic-bezier(0.22, 1.3, 0.36, 1) forwards;
}

@keyframes emeraldPopBounce {
  0% { transform: translateY(14px) scale(0.5); opacity: 0; }
  22% { transform: translateY(-4px) scale(1.08); opacity: 1; }
  78% { transform: translateY(-10px) scale(1); opacity: 1; }
  100% { transform: translateY(-18px) scale(0.95); opacity: 0.92; }
}

.emerald-fly-ico {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.9));
}

.pack-tap-stage.is-revealed .emerald-fly-ico {
  animation: emeraldFlyUp 1.05s cubic-bezier(0.16, 1, 0.3, 1) var(--ed, 0s) forwards;
}

@keyframes emeraldFlyUp {
  0% { transform: translate3d(-50%, -50%, 0) scale(0.4) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate3d(calc(-50% + var(--ex, 0px)), calc(-50% + var(--ey, -130px)), 0) scale(1.15) rotate(var(--er, 15deg)); opacity: 0; }
}

.emerald-grid-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #fecaca;
  font-weight: 800;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.28);
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.pull-fx-aura.is-subtle {
  width: 190px;
  height: 190px;
  opacity: 0.42;
  background: radial-gradient(circle, color-mix(in srgb, var(--fx-color) 30%, transparent) 0%, transparent 72%);
}

/* ==================== TAP-TO-REVEAL PACK STACK & HIGH-RARITY FX ==================== */
.pack-tap-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 6px;
  border-radius: 18px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease;
}

.pack-tap-stage:active .reveal-single-card {
  transform: scale(0.96);
}

.rarity-fx-spacer {
  height: 24px;
  margin-bottom: 4px;
}

.reveal-stack-shadow {
  position: relative;
  z-index: 3;
}

.reveal-stack-shadow.stack-one::before,
.reveal-stack-shadow.stack-deep::before {
  content: '';
  position: absolute;
  inset: 4px -7px -5px 7px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1e293b, #0b1120);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  transform: rotate(3.2deg);
  z-index: 1;
  pointer-events: none;
}

.reveal-stack-shadow.stack-deep::after {
  content: '';
  position: absolute;
  inset: 7px -13px -9px 13px;
  border-radius: 14px;
  background: linear-gradient(160deg, #172033, #090d16);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  transform: rotate(6.4deg);
  z-index: 0;
  pointer-events: none;
}

.pack-card-enter .reveal-single-card {
  animation: tapCardDeal 0.34s cubic-bezier(0.22, 1.15, 0.36, 1);
}

@keyframes tapCardDeal {
  0% { transform: translateY(22px) scale(0.84) rotate(-4deg); opacity: 0; }
  100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}

.pack-tap-hint {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: #bae6fd;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.pack-rem-pill {
  background: rgba(56, 189, 248, 0.22);
  color: #e0f2fe;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
}

.pull-fx-flash {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0%, var(--fx-color) 42%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.slide-high-rarity.fx-replay .pull-fx-flash {
  animation: pullFlashBurst 0.55s ease-out forwards;
}

@keyframes pullFlashBurst {
  0% { transform: scale(0.25); opacity: 0.95; }
  100% { transform: scale(1.65); opacity: 0; }
}

.pull-fx-ring-2 {
  animation-delay: 0.14s !important;
  border-width: 2.5px;
}

.slide-high-rarity.fx-replay.rarity-fx-mythic,
.slide-high-rarity.fx-replay.rarity-fx-legendary {
  animation: highRarityShake 0.42s ease-out;
}

@keyframes highRarityShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 2px); }
  45% { transform: translate(4px, -2px); }
  70% { transform: translate(-2px, 1px); }
}

.reveal-card-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  width: 100%;
}

.rarity-fx-banner {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  color: #fff;
  background: color-mix(in srgb, var(--fx-color) 28%, #0f172a);
  border: 1.5px solid var(--fx-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--fx-color) 55%, transparent);
  animation: bannerPop 0.36s cubic-bezier(0.22, 1.3, 0.36, 1);
}

@keyframes bannerPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.pull-fx-aura {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--fx-color) 46%, transparent) 0%, transparent 72%);
  animation: auraPulse 1.6s ease-in-out infinite;
  pointer-events: none;
}

.pull-fx-ring {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 3.5px solid var(--fx-color);
  box-shadow: 0 0 26px var(--fx-color);
  opacity: 0;
  pointer-events: none;
}

.slide-high-rarity.fx-replay .pull-fx-ring {
  animation: upgradeShockwave 0.78s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pull-fx-sunburst {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(251, 191, 36, 0.28) 0deg 14deg,
    transparent 14deg 30deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
  mask-image: radial-gradient(circle, #000 35%, transparent 72%);
  animation: spinSunburst 10s linear infinite;
  pointer-events: none;
}

@keyframes spinSunburst {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pull-fx-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--fx-color);
  box-shadow: 0 0 10px var(--fx-color);
  opacity: 0;
  pointer-events: none;
}

.slide-high-rarity.fx-replay .pull-fx-spark {
  animation: sparkBurst 0.75s ease-out forwards;
}

.slide-high-rarity.fx-replay .reveal-single-card {
  animation: highRarityPop 0.48s cubic-bezier(0.22, 1.25, 0.36, 1);
}

@keyframes highRarityPop {
  0% { transform: scale(0.75); }
  65% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.grid-high-rarity {
  border-radius: 14px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--fx-color) 55%, transparent);
}

.reveal-single-card {
  position: relative;
  z-index: 3;
  width: 210px;
}

.reveal-single-card .mc-card-art {
  height: 108px;
}

.reveal-single-card .art-svg {
  width: 92px;
  height: 92px;
}

/* ==================== 10:1 UPGRADER COMPRESSION & REVEAL FX ==================== */
.upgrade-fx-modal {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upgrade-fx-header {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.upgrade-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0 6px;
}

.compress-arena {
  position: relative;
  width: 280px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compress-core {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 0%, var(--new-color) 55%, transparent 100%);
  box-shadow: 0 0 36px var(--new-color);
  animation: coreCharge 0.9s ease-in forwards;
}

@keyframes coreCharge {
  0% { transform: scale(0.35); opacity: 0.3; }
  65% { transform: scale(1.4); opacity: 0.95; }
  100% { transform: scale(2.8); opacity: 1; }
}

.compress-mini-card {
  position: absolute;
  width: 48px;
  height: 60px;
  border-radius: 9px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 2px solid var(--old-border);
  box-shadow: 0 0 12px color-mix(in srgb, var(--old-color) 50%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  animation: cardCompress 0.85s cubic-bezier(0.55, 0.05, 0.75, 0.25) var(--delay) forwards;
}

.compress-mini-card svg {
  width: 34px;
  height: 34px;
}

@keyframes cardCompress {
  0% {
    transform: translate(var(--dx), var(--dy)) scale(1) rotate(0deg);
    opacity: 1;
  }
  70% {
    transform: translate(calc(var(--dx) * 0.28), calc(var(--dy) * 0.28)) scale(0.85) rotate(140deg);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) scale(0.15) rotate(260deg);
    opacity: 0;
  }
}

.upgrade-phase-caption {
  font-size: 12.5px;
  font-weight: 800;
  color: #cbd5e1;
}

.upgrade-reveal-wrap {
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upgrade-burst-area {
  position: relative;
  width: 100%;
  min-height: 225px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-shockwave {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  border: 4px solid var(--new-color);
  box-shadow: 0 0 28px var(--new-color), 0 0 18px var(--new-color) inset;
  animation: upgradeShockwave 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes upgradeShockwave {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(3.1); opacity: 0; }
}

.upgrade-glow-aura {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--new-color) 42%, transparent) 0%, transparent 72%);
  animation: auraPulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auraPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.75; }
  50% { transform: scale(1.1); opacity: 1; }
}

.upgrade-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--new-color);
  box-shadow: 0 0 10px var(--new-color);
  animation: sparkBurst 0.7s ease-out forwards;
  pointer-events: none;
}

@keyframes sparkBurst {
  0% { transform: translate(0, 0) scale(1.2); opacity: 1; }
  100% { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; }
}

.upgrade-revealed-card {
  position: relative;
  z-index: 3;
  width: 178px;
  animation: upgradeRevealPop 0.52s cubic-bezier(0.22, 1.25, 0.36, 1) forwards;
}

@keyframes upgradeRevealPop {
  0% { transform: scale(0.25) rotateY(-180deg); opacity: 0; }
  100% { transform: scale(1) rotateY(0deg); opacity: 1; }
}

.upgrade-stats-box {
  width: 100%;
  background: rgba(15, 23, 42, 0.88);
  border: 1.5px solid var(--new-border);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--new-color) 20%, transparent);
}

.upgrade-diff-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.upgrade-diff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  background: rgba(30, 41, 59, 0.65);
  border-radius: 8px;
}

.diff-plus {
  font-style: normal;
  color: #4ade80;
  font-weight: 900;
  margin-left: 5px;
  background: rgba(34, 197, 94, 0.18);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 11.5px;
}

.upgrade-ability-banner {
  margin-top: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.24);
  border: 1px solid #c084fc;
  color: #f3e8ff;
  font-size: 11px;
  font-weight: 900;
}

.pack-pull-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}

.pack-pull-grid .mc-card {
  width: 150px;
  flex: 0 0 150px;
}

.quest-bar {
  height: 7px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
}

.quest-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
}

.battle-log-strip {
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.65);
  border-radius: 8px;
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
   MOBILE & TOUCH RESPONSIVE LAYOUT (Smartphones <= 680px)
   Füllt den gesamten Handy-Bildschirm (100dvh) statt kleinem 1:1 Quadrat
   ============================================================================ */
@media (max-width: 680px) {
  html, body {
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
  }

  #square-shell {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    aspect-ratio: auto;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Touch-Hover-Artefakte vermeiden */
  .mc-btn:hover:not(:disabled) {
    transform: none;
    filter: none;
  }

  .mc-btn {
    min-height: 36px;
  }

  .mc-btn-sm {
    min-height: 32px;
    padding: 6px 10px;
  }

  /* ==================== HUB (MOBILE — 1 SCREEN OHNE SCROLLEN!) ==================== */
  .hub-topbar {
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .hub-rank-emblem {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .hub-rank-emblem b {
    font-size: 12px;
  }

  .hub-brand {
    font-size: 13.5px;
  }

  .hub-player-sub {
    font-size: 9.8px;
  }

  .hub-topbar-right {
    margin-left: auto;
    gap: 5px;
  }

  .currency-bar {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .currency-pill {
    font-size: 11.8px;
    padding: 3.5px 7px;
    gap: 3px;
  }

  .hub-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .hub-main {
    padding: 7px 10px 9px;
    gap: 6px;
    justify-content: space-between;
  }

  .hub-floating-badges {
    max-width: none;
    gap: 5px;
    flex-wrap: wrap;
  }

  .hub-status-pill,
  .hub-floating-record,
  .hub-daily-btn {
    font-size: 9.8px;
    padding: 4px 8px;
  }

  .hub-open-hero {
    min-height: 172px;
    padding-bottom: 2px;
    margin-bottom: -6px;
  }

  .hub-hero-pedestal-wrap {
    width: 214px;
    height: 72px;
    bottom: -3px;
  }

  .hub-hero-figure {
    margin-bottom: 20px;
  }

  .hub-open-hero .steve-svg {
    width: 168px;
    height: 168px;
  }

  .hub-lower-stack {
    max-width: 100%;
    gap: 7px;
  }

  .hub-glass-dock {
    padding: 9px 9px;
    gap: 7px;
    border-radius: 16px;
  }

  .vanilla-stats-grid {
    gap: 5px;
  }

  .vstat-box {
    min-height: 50px;
    padding: 7px 4px;
    gap: 3px;
  }

  .vstat-box .v-val {
    font-size: 1.02rem;
  }

  .vstat-box .v-lbl {
    font-size: 0.66rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gear-slots-strip {
    gap: 4px;
  }

  .gear-slot-btn {
    padding: 5px 2px 4px;
    font-size: 9px;
    border-radius: 10px;
  }

  .gear-slot-btn svg {
    width: 22px;
    height: 22px;
  }

  .hub-deck-bar {
    padding: 8px 10px;
    border-radius: 12px;
  }

  .hub-deck-bar-left {
    font-size: 12px;
  }

  .hub-deck-bar-right {
    font-size: 10.6px;
    gap: 4px;
  }

  .hub-play-zone {
    max-width: 100%;
  }

  .play-cta-btn {
    padding: 12px 16px 11px;
    font-size: 15.5px;
    border-radius: 16px;
  }

  .play-cta-btn small {
    font-size: 10.2px;
  }

  .aaa-bottom-nav {
    padding: 5px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    gap: 3px;
  }

  .bnav-item {
    padding: 5px 2px 4px;
    border-radius: 11px;
  }

  .bnav-icon {
    font-size: 17px;
  }

  .bnav-label {
    font-size: 9.5px;
  }

  /* ==================== SUBVIEWS (HEADER, TABS, BODY) ==================== */
  .subview-header {
    padding: 9px 10px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .subview-title {
    font-size: 14px;
    gap: 5px;
    min-width: 0;
  }

  .subview-tabs {
    padding: 6px 6px;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subview-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex: 1 0 auto;
    white-space: nowrap;
    font-size: 10.5px;
    padding: 7px 5px;
  }

  .subview-body {
    padding: 10px 10px 18px;
    -webkit-overflow-scrolling: touch;
  }

  .panel-box {
    padding: 10px;
    border-radius: 12px;
  }

  .list-row {
    flex-wrap: wrap;
    padding: 9px 10px;
    gap: 8px;
  }

  .list-row > button,
  .list-row > .mc-btn {
    margin-left: auto;
  }

  /* ==================== SAMMLUNG & DECK ==================== */
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .collection-toolbar {
    flex-wrap: wrap;
    gap: 6px;
  }

  .collection-search-input {
    min-width: 160px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .filter-drawer-selects {
    grid-template-columns: 1fr;
  }

  .mc-select {
    padding: 8px 10px;
    font-size: 13px;
  }

  /* ==================== SHOP & PACKS ==================== */
  .pack-store-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pack-grid-card {
    padding: 12px;
    gap: 8px;
  }

  .pack-grid-card:hover {
    transform: none;
  }

  /* ==================== REPARIEREN & WERKSTATT ==================== */
  .repair-item-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .repair-item-top .mc-btn {
    width: 100%;
    min-width: 0 !important;
    padding: 8px 10px;
  }

  .repair-dur-bar {
    width: 100%;
    max-width: 210px;
  }

  /* ==================== PLAY / ARENA-WAHL ==================== */
  .arena-picker-row {
    flex-wrap: wrap;
  }

  .arena-picker-row .mc-btn {
    min-width: calc(33% - 5px);
    font-size: 11.5px;
    padding: 8px 4px !important;
  }

  /* ==================== 5x5 KAMPF-ARENA (MOBILE) ==================== */
  .battle-layout {
    padding: 6px 6px 8px;
    gap: 5px;
  }

  .battle-top-hud {
    padding: 5px 7px;
    font-size: 10.5px;
    gap: 5px;
    flex-wrap: wrap;
    border-radius: 10px;
  }

  .battle-top-hud .dim-badge,
  .battle-top-hud .xp-badge {
    font-size: 9px;
    padding: 2px 5px;
  }

  .battle-log-strip {
    font-size: 10px;
    padding: 3px 7px;
  }

  .battle-board-wrap {
    flex: 1;
    min-height: 195px;
    width: 100%;
  }

  .battle-grid {
    width: 100%;
    max-width: 100%;
    height: 100%;
    gap: 3px;
  }

  .board-tile {
    border-radius: 7px;
  }

  .tile-token {
    width: 96%;
    height: 94%;
    border-radius: 6px;
    padding: 2px 2px;
    font-size: 8.5px;
  }

  .tile-token-art {
    width: 22px;
    height: 22px;
  }

  .tile-token-art svg {
    width: 22px;
    height: 22px;
  }

  .tile-token-stats {
    font-size: 8.5px;
    justify-content: space-around;
  }

  .status-icons {
    top: 1px;
    right: 1px;
    font-size: 8.5px;
  }

  .target-lock-pill {
    top: 0;
    left: 1px;
    font-size: 9px;
  }

  .combat-speed-btn {
    padding: 3px 6px;
    font-size: 10px;
    border-radius: 7px;
  }

  .ko-overlay span {
    font-size: 15px;
  }

  .ko-overlay b {
    font-size: 9.5px;
  }

  .fx-dmg {
    font-size: 17px;
  }

  .battle-bottom {
    padding: 7px 7px 8px;
    gap: 7px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .mc-xp-label {
    font-size: 9.8px;
    gap: 6px;
  }

  .mc-xp-label > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mc-xp-level-num {
    font-size: 13px;
    flex-shrink: 0;
  }

  .battle-actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-bottom: 6px;
  }

  .battle-actions-row > div {
    justify-content: space-between;
  }

  #btn-resolve-round {
    width: 100%;
    padding: 9px 14px !important;
    font-size: 13px !important;
  }

  /* Alle 5 Handkarten sauber nebeneinander im Handy-Hochformat — sofort per Drag & Drop ziehbar! */
  .battle-hand {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px 1px 2px;
    overflow: visible;
  }

  .battle-hand .mc-card {
    width: 100%;
    min-width: 0;
  }

  .battle-hand .mc-card-inner {
    padding: 4px 3px;
    gap: 2.5px;
    border-radius: 9px;
  }

  .battle-hand .mc-card-compact .mc-card-art {
    height: 36px;
  }

  .battle-hand .mc-card-compact .art-svg {
    width: 32px;
    height: 32px;
  }

  .battle-hand .dim-badge,
  .battle-hand .xp-badge {
    font-size: 7.5px;
    padding: 1px 3px;
  }

  .battle-hand .mc-card-compact .mc-card-name {
    font-size: 8.5px;
  }

  .battle-hand .mc-card-compact .card-stats-row {
    font-size: 8px;
    gap: 2px;
  }

  .battle-hand .mc-card-compact .stat-chip {
    padding: 1px 2px;
  }

  .battle-hand .mc-card.is-selected .mc-card-inner {
    transform: translateY(-4px) scale(1.02);
  }

  /* ==================== MODALS & TOAST (MOBILE) ==================== */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-card {
    max-width: 100%;
    max-height: 92dvh;
    padding: 13px 11px;
    border-radius: 16px;
  }

  .card-zoom-card {
    max-width: 100%;
    padding: 12px 12px 11px;
    border-radius: 18px;
    gap: 8px;
  }

  .zoom-art-stage {
    height: 112px;
  }

  .zoom-art-svg-wrap,
  .zoom-art-svg-wrap .art-svg {
    width: 94px;
    height: 94px;
  }

  .gear-hero-pedestal {
    width: 68px;
    height: 68px;
    border-radius: 13px;
  }

  .gear-hero-icon-wrap svg {
    width: 54px;
    height: 54px;
  }

  .gear-showcase-name {
    font-size: 15px;
  }

  .gear-stat-tile,
  .zoom-stat-tile {
    padding: 7px 8px;
    gap: 7px;
  }

  .equip-item-card {
    padding: 7px 8px;
  }

  .deck-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .pack-pull-grid .mc-card {
    width: 134px;
    flex: 0 0 134px;
  }

  .swipe-slide {
    padding: 4px 26px;
  }

  .reveal-flip-scene,
  .reveal-single-card {
    width: 186px;
  }

  .pack-modal-heading {
    font-size: 14px;
    padding: 0 84px 0 4px;
  }

  .toast-msg {
    top: auto;
    bottom: 72px;
    max-width: calc(100vw - 24px);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    padding: 6px 12px;
    font-size: 11px;
  }

  .tile-token-name.is-name-long {
    font-size: 6.9px;
  }

  .tile-token-name.is-name-xlong {
    font-size: 6.2px;
  }
}

/* Sehr schmale Smartphones (<= 360px Breite) */
@media (max-width: 360px) {
  .hub-bottom-left-actions {
    grid-template-columns: 1fr;
  }

  .tile-token-art,
  .tile-token-art svg {
    width: 18px;
    height: 18px;
  }

  .tile-token-stats {
    font-size: 7.5px;
  }

  .battle-hand {
    gap: 3px;
  }

  .battle-hand .mc-card-compact .mc-card-art {
    height: 32px;
  }
}


/* =====================================================================
   AAA SETTINGS & PROFILE MENU, TOGGLE SWITCHES, LEGAL & REDUCED EFFECTS
   ===================================================================== */
.modal-x-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.modal-x-btn:hover {
  background: rgba(239, 68, 68, 0.24);
  border-color: rgba(248, 113, 113, 0.55);
  transform: scale(1.05);
}

.settings-modal-card {
  width: min(500px, 95vw);
  max-width: 500px;
  height: min(86dvh, 660px);
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
}

.settings-modal-card .set-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
}

.quests-modal-card {
  width: min(520px, 95vw);
  max-width: 520px;
  height: min(88dvh, 720px);
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
}

.quests-modal-card .modal-scroll-body {
  flex: 1 1 auto;
  min-height: 0;
}

.set-modal-header {
  position: relative;
  gap: 8px;
}

.set-modal-header h3 {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 15.5px;
  line-height: 1.18;
}

.set-saved-pill {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #86efac;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(74, 222, 128, 0.65);
  border-radius: 999px;
  padding: 3px 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.set-saved-pill.is-visible {
  opacity: 1;
}

.set-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.24);
}

.set-lang-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #e2e8f0;
}

.set-lang-pills {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.set-lang-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.set-lang-btn.is-active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.set-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 10px;
}

.set-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.65);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.set-tab-btn:hover {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.42);
}

.set-tab-btn.is-active {
  color: #f0f9ff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(37, 99, 235, 0.28));
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
}

.set-scroll-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.set-card {
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 13px;
  padding: 12px;
}

.set-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 900;
  color: #f8fafc;
  margin-bottom: 10px;
}

.set-tag-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  margin-bottom: 9px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.set-tag-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.set-tag-sub {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 700;
}

.set-tag-val {
  font-size: 15.5px;
  font-weight: 900;
  color: #f8fafc;
}

.set-name-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.set-name-row .mc-text-input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.set-name-row .mc-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  white-space: nowrap;
}

.set-helper-text {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.35;
}

.set-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.set-stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 6px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
  text-align: center;
}

.set-stat-ico {
  display: inline-flex;
  margin-bottom: 1px;
}

.set-stat-num {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
}

.set-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

.set-audio-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.set-audio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.set-audio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
}

.set-audio-pct {
  font-size: 12px;
  font-weight: 900;
  color: #7dd3fc;
}

.set-audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.set-mute-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.set-mute-btn.is-muted {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.45);
}

.set-range {
  flex: 1;
  min-width: 0;
}

.set-test-btn {
  flex-shrink: 0;
  padding: 5px 9px;
  font-size: 11.5px;
}

.set-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.14);
  margin: 10px 0;
}

.set-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.set-toggle-info {
  flex: 1;
  min-width: 0;
}

.set-toggle-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.set-toggle-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.35;
}

.set-note-warn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #fde68a;
  margin-top: 5px;
}

.mc-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.9);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.mc-switch.is-on {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(134, 239, 172, 0.7);
}

.mc-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f8fafc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.mc-switch.is-on .mc-switch-thumb {
  transform: translateX(20px);
}

.set-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.set-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.55);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.set-seg-btn.is-active {
  color: #f0f9ff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(37, 99, 235, 0.32));
  border-color: rgba(56, 189, 248, 0.7);
}

.set-save-card {
  border-color: rgba(74, 222, 128, 0.35);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.28), rgba(15, 23, 42, 0.72));
}

.set-save-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.set-save-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(20, 83, 45, 0.55);
  border: 1px solid rgba(74, 222, 128, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.set-save-title {
  font-size: 13px;
  font-weight: 900;
  color: #bbf7d0;
}

.set-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.set-link-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.48);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.set-link-row:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(56, 189, 248, 0.45);
}

.set-link-chev {
  font-size: 16px;
  color: #64748b;
  font-weight: 900;
}

.set-danger-zone {
  border-color: rgba(239, 68, 68, 0.48);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.34), rgba(15, 23, 42, 0.78));
}

.set-dev-card {
  border-color: rgba(56, 189, 248, 0.36);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.2), rgba(15, 23, 42, 0.8));
}

.set-dev-card.is-unlocked {
  border-color: rgba(74, 222, 128, 0.5);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.28), rgba(15, 23, 42, 0.84));
}

.dev-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.dev-pin-input {
  width: 150px;
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 8px;
  padding: 10px 12px;
}

.dev-pin-input.is-pin-shake {
  border-color: #f87171;
  animation: devPinShake 0.26s ease-in-out;
}

@keyframes devPinShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.dev-pin-err {
  min-height: 18px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #fca5a5;
}

.set-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.set-legal-body p {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 10px;
}

.set-legal-body code {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1px 5px;
  border-radius: 5px;
  color: #7dd3fc;
  font-size: 11.5px;
}

.set-support-id-box {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 11px;
  padding: 10px 12px;
  margin-top: 6px;
}

.set-support-id-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #e0f2fe;
  word-break: break-all;
  margin-top: 3px;
}

.set-reset-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.35);
  font-size: 12px;
  color: #fecaca;
  cursor: pointer;
}

.set-reset-check-row input {
  margin-top: 2px;
  accent-color: #ef4444;
}

/* =====================================================================
   REDUCED EFFECTS / POWER SAVER MODE (body.reduced-effects)
   ===================================================================== */
body.reduced-effects .hub-landscape-svg *,
body.reduced-effects .hub-pedestal-svg *,
body.reduced-effects .arena-scene-svg *,
body.reduced-effects .idle-breathe,
body.reduced-effects .idle-float,
body.reduced-effects .hub-open-hero .steve-svg,
body.reduced-effects .hub-open-hero .hero-eyes-blink,
body.reduced-effects .hero-weapon-shimmer,
body.reduced-effects .hub-daily-btn.is-ready,
body.reduced-effects .hub-daily-ping,
body.reduced-effects .play-cta-sheen,
body.reduced-effects .gear-hero-pedestal::after,
body.reduced-effects .gear-hero-aura,
body.reduced-effects .card-holo::after,
body.reduced-effects .pull-fx-sunburst,
body.reduced-effects .pull-fx-aura,
body.reduced-effects .pack-foil-sheen,
body.reduced-effects .legendary-card-shimmer,
body.reduced-effects .pull-fx-godray,
body.reduced-effects .pack-screen-shake-mythic,
body.reduced-effects .pack-screen-shake-legendary,
body.reduced-effects .pack-open-intro.is-ready .pack-tear-body {
  animation: none !important;
}

body.reduced-effects .pack-foil-sheen,
body.reduced-effects .legendary-card-shimmer,
body.reduced-effects .pull-fx-godray,
body.reduced-effects .play-cta-sheen,
body.reduced-effects .hub-fireflies,
body.reduced-effects .hub-pedestal-arcane-particles,
body.reduced-effects .hub-crest-spray {
  display: none !important;
}

body.reduced-effects .reveal-flip-inner {
  transition-duration: 0.14s !important;
}

body.reduced-effects .hub-glass-dock,
body.reduced-effects .hub-status-pill,
body.reduced-effects .hub-floating-record,
body.reduced-effects .hub-daily-btn.is-cooldown,
body.reduced-effects .modal-backdrop,
body.reduced-effects .card-zoom-backdrop,
body.reduced-effects .aaa-bottom-nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 440px) {
  .set-tab-btn {
    flex-direction: column;
    gap: 2px;
    font-size: 10.5px;
    padding: 6px 4px;
  }
  .set-lang-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .set-lang-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =====================================================================
   3-MODE PLAY HUB, INTERACTIVE BIOME CAMPAIGN MAP & BOSS BATTLE FX
   ===================================================================== */
.play-hub-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode-hero-card {
  position: relative;
  border-radius: 16px;
  padding: 15px 16px;
  background: linear-gradient(145deg, rgba(16, 48, 40, 0.88), rgba(15, 23, 42, 0.94));
  border: 1.5px solid rgba(74, 222, 128, 0.5);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mode-hero-card:hover {
  transform: translateY(-2px);
  border-color: rgba(134, 239, 172, 0.8);
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.24);
}

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

.mode-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mode-main-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.65);
  border: 1px solid rgba(74, 222, 128, 0.5);
  padding: 3px 8px;
  border-radius: 999px;
}

.mode-hero-icon {
  display: inline-flex;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.35));
}

.mode-hero-title {
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
  margin-bottom: 3px;
}

.mode-hero-sub {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.mode-progress-box {
  margin: 11px 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.mode-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.mode-progress-head b {
  color: #86efac;
  font-weight: 900;
}

.mode-progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.mode-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #86efac, #fde047);
  transition: width 0.3s ease;
}

.mode-cta-btn {
  width: 100%;
  padding: 11px;
  font-size: 14px;
}

.mode-card {
  border-radius: 15px;
  padding: 13px 14px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.mode-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.mode-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 900;
  color: #f8fafc;
}

.mode-card-sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.35;
}

.pve-reward-preview {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  color: #cbd5e1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  flex-shrink: 0;
}

.pve-picker-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  margin: 8px 0 5px;
}

.pve-chip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pve-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.55);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.pve-chip-btn.is-active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.34), rgba(37, 99, 235, 0.3));
  border-color: rgba(56, 189, 248, 0.72);
  color: #f0f9ff;
}

.pve-chip-btn.is-active-diff {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(21, 128, 61, 0.32));
  border-color: rgba(74, 222, 128, 0.7);
  color: #ecfdf5;
}

.pve-chip-btn.is-locked {
  opacity: 0.52;
}

.mode-pvp-disabled {
  background: rgba(15, 23, 42, 0.48);
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.22);
  opacity: 0.76;
  cursor: not-allowed;
}

.mode-pvp-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mode-pvp-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mode-pvp-meta {
  flex: 1;
  min-width: 0;
}

.mode-pvp-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pvp-soon-badge {
  font-size: 10px;
  font-weight: 900;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.3px;
}

/* ==================== INTERACTIVE CAMPAIGN MAP ==================== */
.camp-dim-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 10px;
  background: rgba(9, 13, 22, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  flex-shrink: 0;
}

.camp-dim-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 5px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.camp-dim-tab small {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.camp-dim-tab.is-active {
  border-color: var(--dim-color, #4ade80);
  background: rgba(30, 41, 59, 0.95);
  color: #ffffff;
  box-shadow: 0 0 12px color-mix(in srgb, var(--dim-color, #4ade80) 35%, transparent);
}

.camp-dim-tab.is-active small {
  color: var(--dim-color, #4ade80);
}

.camp-dim-tab.is-locked {
  opacity: 0.52;
}

.camp-map-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) rgba(2, 6, 23, 0.35);
}

.camp-map-scroll::-webkit-scrollbar {
  width: 6px;
}

.camp-map-scroll::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.35);
}

.camp-map-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.camp-map-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.58);
}

.camp-map-stage {
  position: relative;
  width: 100%;
  height: 1440px;
  overflow: hidden;
}

.camp-map-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.camp-map-banner {
  position: sticky;
  top: 8px;
  z-index: 8;
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.camp-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.camp-path-outer {
  fill: none;
  stroke: rgba(2, 6, 23, 0.65);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.camp-path-inner {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 10 10;
}

.camp-path-progress {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.camp-theme-overworld .camp-path-inner { stroke: #64748b; }
.camp-theme-overworld .camp-path-progress { stroke: #4ade80; filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.6)); }

.camp-theme-nether .camp-path-inner { stroke: #7c2d12; }
.camp-theme-nether .camp-path-progress { stroke: #f97316; filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.65)); }

.camp-theme-end .camp-path-inner { stroke: #4c1d95; }
.camp-theme-end .camp-path-progress { stroke: #c084fc; filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7)); }

.camp-node-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.camp-node-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2.5px solid #475569;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.camp-node-btn:hover {
  transform: scale(1.08);
}

.camp-node-num {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-size: 16px;
  font-weight: 900;
}

.camp-node-wrap.is-miniboss-node .camp-node-btn {
  width: 64px;
  height: 64px;
  border-color: #fbbf24;
  background: linear-gradient(145deg, #422006, #1e1b4b);
}

.camp-node-wrap.is-gatekeeper-node .camp-node-btn {
  width: 60px;
  height: 60px;
  border-color: #fb7185;
}

.camp-node-wrap.is-boss-node .camp-node-btn {
  width: 82px;
  height: 82px;
  border-width: 3px;
  border-color: #fbbf24;
  background: radial-gradient(circle at 50% 40%, rgba(88, 28, 135, 0.65), rgba(15, 23, 42, 0.96));
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.42), 0 8px 22px rgba(0, 0, 0, 0.65);
}

.camp-boss-mini-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.camp-boss-crown {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  border: 1.5px solid #fbbf24;
  border-radius: 999px;
  padding: 2px 5px;
  display: inline-flex;
}

.camp-node-wrap.is-completed .camp-node-btn {
  border-color: #4ade80;
  background: linear-gradient(145deg, #14532d, #0f172a);
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.38), 0 6px 14px rgba(0, 0, 0, 0.5);
}

.camp-node-wrap.is-current .camp-node-btn {
  border-color: #38bdf8;
  background: linear-gradient(145deg, #0369a1, #1e3a8a);
  animation: campNodePulse 1.8s ease-in-out infinite;
}

@keyframes campNodePulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.055); opacity: 1; }
}

.camp-node-wrap.is-locked .camp-node-btn {
  opacity: 0.55;
  border-color: #334155;
  background: rgba(15, 23, 42, 0.85);
}

.camp-done-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #14532d;
  border: 1.5px solid #4ade80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.camp-current-tag {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #f0f9ff;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 1px solid #7dd3fc;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.45);
}

.camp-node-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #e2e8f0;
  background: rgba(9, 13, 22, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  padding: 2px 8px;
  text-align: center;
  line-height: 1.25;
  max-width: 185px;
  white-space: normal;
}

.camp-node-label.is-boss-lbl {
  font-size: 12px;
  color: #fef08a;
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(15, 23, 42, 0.92);
  padding: 3px 10px;
}

/* ==================== 3-STERNE-SYSTEM & MEILENSTEIN-TRUHEN (AAA REDESIGN) ==================== */
.camp-star-milestone-bar {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin: 0 8px 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.86));
  border: 1px solid color-mix(in srgb, var(--dim-color, #fbbf24) 38%, rgba(251, 191, 36, 0.35));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.camp-star-counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.camp-star-counter-orb {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.32), rgba(120, 53, 15, 0.55));
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.25);
  flex-shrink: 0;
}

.camp-star-counter-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.camp-star-counter-txt b {
  font-size: 13.5px;
  font-weight: 900;
  color: #fef08a;
  letter-spacing: 0.2px;
}

.camp-star-counter-txt b span {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 800;
}

.camp-star-counter-txt small {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
}

.camp-star-track-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.camp-star-track {
  flex: 1;
  min-width: 28px;
  height: 8px;
  border-radius: 999px;
  background: rgba(9, 13, 24, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.camp-star-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #fde047);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.55);
  transition: width 0.28s ease;
}

.camp-star-chests {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.camp-star-chest-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.32);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.camp-star-chest-btn:active {
  transform: scale(0.95);
}

.camp-star-chest-btn.is-tier-silver {
  border-color: rgba(203, 213, 225, 0.4);
}

.camp-star-chest-btn.is-tier-gold {
  border-color: rgba(251, 191, 36, 0.45);
}

.camp-star-chest-btn.is-tier-epic {
  border-color: rgba(192, 132, 252, 0.5);
}

.camp-star-chest-btn.is-tier-mythic-secret {
  border-color: rgba(251, 113, 133, 0.78);
  background: linear-gradient(145deg, rgba(136, 19, 55, 0.85), rgba(30, 15, 45, 0.95));
  color: #fecdd3;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4), inset 0 1px 0 rgba(255, 228, 230, 0.18);
}

.camp-star-chest-btn.is-locked {
  opacity: 0.76;
}

.camp-star-chest-btn.is-tier-mythic-secret.is-locked {
  opacity: 0.92;
}

.camp-star-chest-btn.is-claimable {
  border-color: #fbbf24;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.85), rgba(30, 41, 59, 0.95));
  color: #fef08a;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.62);
  animation: campStarChestPulse 1.7s ease-in-out infinite;
}

.camp-star-chest-btn.is-tier-mythic-secret.is-claimable {
  border-color: #fb7185;
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.9), rgba(88, 28, 135, 0.92));
  color: #fff1f2;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.75);
}

.camp-star-chest-btn.is-claimed {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(20, 83, 45, 0.48);
  color: #86efac;
  box-shadow: none;
}

.camp-star-chest-ico {
  display: inline-flex;
  align-items: center;
}

.camp-star-chest-done {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #14532d;
  border: 1px solid #4ade80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.camp-star-chest-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 6px #fbbf24;
}

.camp-star-chest-btn.is-tier-mythic-secret .camp-star-chest-dot {
  background: #fb7185;
  box-shadow: 0 0 8px #f43f5e;
}

@keyframes campStarChestPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

body.modal-open .camp-star-chest-btn.is-claimable,
body.app-paused .camp-star-chest-btn.is-claimable {
  animation-play-state: paused;
}

/* ==================== AAA STERNEN-TRUHEN MODAL & ÖFFNUNGS-ANIMATION ==================== */
.sc-modal-body {
  text-align: center;
  padding-top: 6px;
}

.sc-modal-stage {
  position: relative;
  height: 132px;
  margin: 2px 0 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: radial-gradient(circle at 50% 58%, rgba(251, 191, 36, 0.22), rgba(15, 23, 42, 0.94) 72%);
}

.sc-modal-stage.is-silver {
  border-color: rgba(203, 213, 225, 0.3);
  background: radial-gradient(circle at 50% 58%, rgba(203, 213, 225, 0.2), rgba(15, 23, 42, 0.94) 72%);
}

.sc-modal-stage.is-epic {
  border-color: rgba(192, 132, 252, 0.38);
  background: radial-gradient(circle at 50% 58%, rgba(168, 85, 247, 0.28), rgba(15, 23, 42, 0.95) 72%);
}

.sc-modal-stage.is-mythic-secret {
  border-color: rgba(251, 113, 133, 0.55);
  background: radial-gradient(circle at 50% 58%, rgba(225, 29, 72, 0.36), rgba(30, 11, 36, 0.96) 72%);
  box-shadow: inset 0 0 24px rgba(244, 63, 94, 0.24);
}

.sc-stage-rays {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  opacity: 0.24;
  background: repeating-conic-gradient(from 0deg, rgba(254, 240, 138, 0.45) 0deg 12deg, transparent 12deg 30deg);
  pointer-events: none;
}

.sc-modal-stage.is-mythic-secret .sc-stage-rays {
  background: repeating-conic-gradient(from 0deg, rgba(251, 113, 133, 0.52) 0deg 12deg, transparent 12deg 30deg);
}

.sc-modal-stage.is-opened .sc-stage-rays {
  opacity: 0.55;
  animation: scRaysSpin 9s linear infinite;
}

.sc-burst-ring {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #fde047;
  opacity: 0;
  pointer-events: none;
}

.sc-modal-stage.is-mythic-secret .sc-burst-ring {
  border-color: #fb7185;
}

.sc-modal-stage.is-opened .sc-burst-ring {
  animation: scBurstRing 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sc-chest-wrap {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}

.sc-modal-stage.is-charging .sc-chest-wrap {
  will-change: transform;
  animation: scChestShake 0.58s ease-in-out infinite;
}

.sc-modal-stage.is-opened .sc-chest-wrap {
  animation: scChestPop 0.52s cubic-bezier(0.22, 1.35, 0.36, 1) forwards;
}

.sc-chest-secret-seal {
  position: absolute;
  right: -8px;
  bottom: -6px;
  display: inline-flex;
  filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.85));
}

.sc-reveal-banner {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #451a03;
  background: linear-gradient(90deg, #f59e0b, #fde047);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.45);
  white-space: nowrap;
  animation: scBannerIn 0.38s cubic-bezier(0.22, 1.25, 0.36, 1) forwards;
}

.sc-modal-stage.is-mythic-secret .sc-reveal-banner {
  color: #fff1f2;
  background: linear-gradient(90deg, #be123c, #fb7185);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.55);
}

.sc-reveal-banner.is-hidden {
  display: none;
}

.sc-modal-title {
  margin: 0 0 5px;
  font-size: 16.5px;
  font-weight: 900;
  color: #fef08a;
}

.sc-modal-body.is-mythic-secret .sc-modal-title {
  color: #fda4af;
}

.sc-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.32);
  margin-bottom: 12px;
}

.sc-reward-panel {
  padding: 12px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  text-align: left;
}

.sc-rew-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.sc-rew-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.sc-rew-pill.is-dia { border-color: rgba(56, 189, 248, 0.5); }
.sc-rew-pill.is-em { border-color: rgba(74, 222, 128, 0.5); }
.sc-rew-pill.is-bs {
  border-color: rgba(251, 191, 36, 0.65);
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.55), rgba(15, 23, 42, 0.95));
  color: #fef08a;
}
.sc-rew-pill.is-pack {
  border-color: rgba(192, 132, 252, 0.62);
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.52), rgba(15, 23, 42, 0.95));
}
.sc-rew-pill.is-mat {
  border-color: color-mix(in srgb, var(--mat-col, #94a3b8) 55%, transparent);
}

.sc-rew-pill.is-reveal-pop {
  opacity: 0;
  animation: scRewPop 0.4s cubic-bezier(0.22, 1.3, 0.36, 1) forwards;
  animation-delay: calc(var(--sc-idx, 0) * 90ms);
}

.sc-pack-hint {
  margin-top: 9px;
  justify-content: center;
}

.sc-secret-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
}

.sc-secret-emblem {
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.65));
}

.sc-secret-txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sc-secret-tag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #fff1f2;
  background: linear-gradient(90deg, #be123c, #f43f5e);
}

.sc-secret-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #fecdd3;
}

.sc-claim-btn,
.sc-footer-btn {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.sc-claim-btn.is-mythic {
  background: linear-gradient(135deg, #be123c, #e11d48 52%, #9f1239);
  border-color: #fda4af;
  color: #fff1f2;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
}

.sc-footer-btn.is-locked {
  opacity: 0.78;
}

@keyframes scChestShake {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  20% { transform: translate3d(-4px, -2px, 0) rotate(-6deg) scale(1.06); }
  40% { transform: translate3d(4px, -3px, 0) rotate(6deg) scale(1.1); }
  60% { transform: translate3d(-4px, -2px, 0) rotate(-5deg) scale(1.08); }
  80% { transform: translate3d(3px, 0, 0) rotate(4deg) scale(1.04); }
}

@keyframes scChestPop {
  0% { transform: scale(0.92); }
  45% { transform: scale(1.24) translateY(-6px); }
  100% { transform: scale(1.06) translateY(-2px); }
}

@keyframes scBurstRing {
  0% { transform: scale(0.6); opacity: 0.95; }
  100% { transform: scale(3.4); opacity: 0; }
}

@keyframes scRaysSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scBannerIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.88); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes scRewPop {
  from { opacity: 0; transform: translateY(10px) scale(0.86); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.perf-mode .sc-stage-rays,
body.perf-mode .sc-burst-ring {
  display: none;
}

.camp-node-stars-row {
  position: relative;
  z-index: 3;
  margin-top: -11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.camp-done-badge-inline {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #14532d;
  border: 1.5px solid #4ade80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.camp-node-stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(9, 13, 22, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.camp-star-ic {
  display: inline-flex;
  align-items: center;
}

.camp-star-ic.is-earned {
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.65));
}

.camp-node-wrap.is-locked .camp-node-stars {
  opacity: 0.48;
}

.stage-head-stars-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stage-stars-info-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: rgba(15, 23, 42, 0.85);
  color: #7dd3fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.stage-stars-info-btn:hover,
.stage-stars-info-btn.is-active {
  border-color: #fbbf24;
  background: rgba(120, 53, 15, 0.52);
  color: #fef08a;
}

.stage-stars-info-btn:active {
  transform: scale(0.92);
}

.stage-stars-popover {
  margin: 0 0 8px;
  padding: 9px 11px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.stage-stars-box {
  border-color: rgba(251, 191, 36, 0.28);
}

.stage-stars-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.stage-stars-tally {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #fef08a;
}

.stage-star-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stage-star-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.3;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.stage-star-row.is-done {
  color: #dcfce7;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(20, 83, 45, 0.24);
}

.stage-star-status {
  display: inline-flex;
  flex-shrink: 0;
}

.victory-stars-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.victory-stars-box {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.78));
  border: 1px solid rgba(251, 191, 36, 0.34);
  text-align: left;
}

.victory-stars-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 900;
  color: #fef08a;
  margin-bottom: 6px;
}

.victory-stars-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.victory-stars-score {
  font-size: 12px;
  color: #fde047;
}

.victory-stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 9px;
}

.victory-star-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.victory-star-slot.is-earned {
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.65));
}

.victory-star-slot.is-new {
  animation: victoryStarGoldPop 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--star-delay, 0ms) both;
}

@keyframes victoryStarGoldPop {
  0% { transform: scale(0.55); filter: drop-shadow(0 0 0 rgba(251, 191, 36, 0)); }
  55% { transform: scale(1.26); filter: drop-shadow(0 0 14px rgba(253, 224, 71, 0.95)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.65)); }
}

.victory-star-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.victory-star-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #94a3b8;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.52);
}

.victory-star-line.is-done {
  color: #e2e8f0;
  background: rgba(20, 83, 45, 0.25);
}

.victory-star-line.is-new {
  color: #fef9c3;
  background: rgba(120, 53, 15, 0.34);
  border: 1px solid rgba(251, 191, 36, 0.38);
}

.victory-star-line-ico {
  display: inline-flex;
  flex-shrink: 0;
}

.victory-star-line-txt {
  flex: 1;
}

.victory-star-new-pill {
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fde047);
  color: #451a03;
  letter-spacing: 0.4px;
}

@media (max-width: 480px) {
  .camp-star-milestone-bar {
    gap: 6px;
    padding: 6px 8px;
    margin: 0 6px 6px;
  }
  .camp-star-counter-orb {
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }
  .camp-star-counter-txt b {
    font-size: 12px;
  }
  .camp-star-counter-txt small {
    display: none;
  }
  .camp-star-chests {
    gap: 4px;
  }
  .camp-star-chest-btn {
    padding: 4px 5px;
    font-size: 10px;
    gap: 2px;
  }
}

/* ==================== STAGE PREVIEW MODAL ==================== */
.stage-type-pill {
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stage-type-pill.is-boss {
  background: rgba(120, 53, 15, 0.55);
  border-color: #fbbf24;
  color: #fef08a;
}

.stage-type-pill.is-miniboss {
  background: rgba(161, 98, 7, 0.4);
  border-color: #facc15;
  color: #fde68a;
}

.stage-type-pill.is-gatekeeper {
  background: rgba(159, 18, 57, 0.45);
  border-color: #fb7185;
  color: #fecdd3;
}

.stage-preview-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), color-mix(in srgb, var(--stage-accent, #38bdf8) 14%, #0f172a));
  border: 1px solid color-mix(in srgb, var(--stage-accent, #38bdf8) 42%, transparent);
  margin-bottom: 10px;
}

.stage-preview-boss-art,
.stage-preview-mob-art {
  width: 78px;
  height: 78px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}

.stage-preview-meta {
  flex: 1;
  min-width: 0;
}

.stage-preview-title {
  font-size: 16.5px;
  font-weight: 900;
  color: #f8fafc;
}

.stage-preview-foe {
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stage-preview-desc {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 5px;
  line-height: 1.4;
}

.stage-mod-box {
  padding: 10px 11px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--mod-color, #38bdf8) 13%, rgba(15, 23, 42, 0.85));
  border: 1px solid color-mix(in srgb, var(--mod-color, #38bdf8) 50%, transparent);
  margin-bottom: 10px;
}

.stage-mod-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #f8fafc;
}

.stage-mod-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 3px;
  line-height: 1.38;
}

.stage-boss-stats-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 11.5px;
  color: #e2e8f0;
}

.stage-boss-stats-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stage-section-box {
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: 9px;
}

.stage-section-lbl {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 7px;
}

.stage-mobs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-mob-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 4px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.stage-mob-mini {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stage-reward-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stage-rew-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 12px;
  color: #e2e8f0;
}

.stage-rew-pill.is-bs {
  border-color: rgba(251, 191, 36, 0.55);
  color: #fef08a;
}

.stage-rew-pill.is-blocks {
  border-color: rgba(74, 222, 128, 0.42);
  color: #bbf7d0;
}

.stage-pack-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  margin-top: 7px;
}

/* ==================== CAMPAIGN REWARD PACK & SUMMARY ==================== */
.camp-pack-victory-head {
  text-align: center;
  padding: 2px 86px 4px 6px;
}

.camp-victory-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #dcfce7;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.55), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(74, 222, 128, 0.55);
}

.camp-victory-pill.is-boss {
  color: #fef08a;
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.6), rgba(88, 28, 135, 0.65));
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.35);
}

.camp-pack-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 900;
}

.pack-open-intro.is-boss-pack .pack-tear-body {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.65), 0 0 36px rgba(251, 191, 36, 0.6);
}

.camp-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.camp-sum-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  text-align: left;
  min-width: 0;
}

.camp-sum-chip > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.camp-sum-chip b {
  font-size: 12.5px;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.camp-sum-chip span {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
}

.camp-sum-chip.is-em {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.3), rgba(15, 23, 42, 0.9));
}

.camp-sum-chip.is-dia {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(7, 89, 133, 0.3), rgba(15, 23, 42, 0.9));
}

.camp-sum-chip.is-bs {
  grid-column: 1 / -1;
  justify-content: center;
  border-color: rgba(251, 191, 36, 0.72);
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.38), rgba(88, 28, 135, 0.34));
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.24);
}

.camp-sum-chip.is-bs b {
  color: #fef08a;
  font-size: 13.5px;
}

.camp-sum-chip.is-block {
  border-color: color-mix(in srgb, var(--blk-color, #4ade80) 48%, transparent);
}

.camp-sum-block-art {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.camp-sum-block-art svg {
  width: 28px;
  height: 28px;
}

/* Mini-Goldgolem: 2x Golem-Konter Treffer-Funken, goldener Schild-Block & Pop-ups */
.fx-spec-golem_breaker,
.fx-spec-golem_block {
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.94), rgba(234, 179, 8, 0.92)) !important;
  border: 1.5px solid #fef08a !important;
  color: #ffffff !important;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.85) !important;
  text-shadow: 0 1px 3px rgba(66, 32, 6, 0.85);
}

.fx-spec-golem_block {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.95), rgba(217, 119, 6, 0.94)) !important;
}

.fx-gold-spark-ring {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.35);
  border: 3px solid #fef08a;
  background: radial-gradient(circle, rgba(254, 249, 195, 0.85) 0%, rgba(250, 204, 21, 0.45) 45%, transparent 72%);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.9);
  pointer-events: none;
  z-index: 12;
  animation: goldSparkBurst 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fx-gold-shield-ring {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  transform: translate(-50%, -50%) scale(0.65);
  border: 2.5px solid #fde047;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.42) 0%, rgba(245, 158, 11, 0.25) 55%, transparent 80%);
  box-shadow: 0 0 22px rgba(250, 204, 21, 0.8), inset 0 0 12px rgba(254, 249, 195, 0.65);
  pointer-events: none;
  z-index: 12;
  animation: goldShieldFlash 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes goldShieldFlash {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.95; }
  45% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(1.32); opacity: 0; }
}

@keyframes goldSparkBurst {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.95; }
  55% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(1.65); opacity: 0; }
}

/* ==================== BOSS BATTLE HUD, AURA, INTRO & SPECIAL FX ==================== */
.battle-mod-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  color: #f8fafc;
  background: color-mix(in srgb, var(--mod-color, #38bdf8) 25%, rgba(15, 23, 42, 0.85));
  border: 1px solid var(--mod-color, #38bdf8);
}

.boss-hud-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  margin: 0 8px 4px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), color-mix(in srgb, var(--boss-accent, #c084fc) 22%, #0f172a));
  border: 1.5px solid color-mix(in srgb, var(--boss-accent, #c084fc) 68%, transparent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  z-index: 6;
}

.boss-hud-avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.boss-hud-info {
  flex: 1;
  min-width: 0;
}

.boss-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.boss-hud-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #fef08a;
}

.boss-hud-cd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  padding: 1px 7px;
}

.boss-hud-cd.is-ready {
  color: #fef08a;
  border-color: #f59e0b;
  background: rgba(180, 83, 9, 0.42);
}

.boss-hp-track {
  position: relative;
  height: 15px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.boss-hp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b91c1c, #ef4444, #f97316);
  transition: width 0.28s ease;
}

.boss-hp-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.tile-token.is-boss-token {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
}

.boss-token-aura {
  position: absolute;
  inset: -4px;
  border-radius: 10px;
  border: 1.5px solid var(--boss-accent, #c084fc);
  opacity: 0.65;
  pointer-events: none;
  animation: bossAuraPulse 2s ease-in-out infinite;
}

@keyframes bossAuraPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.98); }
  50% { opacity: 0.9; transform: scale(1.03); }
}

.boss-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  cursor: pointer;
  animation: bossIntroFade 0.28s ease-out;
}

@keyframes bossIntroFade {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.boss-intro-card {
  max-width: 360px;
  width: 100%;
  text-align: center;
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.96), color-mix(in srgb, var(--boss-accent, #c084fc) 26%, #090d16));
  border: 2px solid var(--boss-accent, #c084fc);
  box-shadow: 0 0 42px color-mix(in srgb, var(--boss-accent, #c084fc) 45%, transparent);
}

.boss-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #fef08a;
  margin-bottom: 6px;
}

.boss-intro-art {
  display: flex;
  justify-content: center;
  margin: 6px 0;
}

.boss-intro-name {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.boss-intro-spec {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.4;
}

.board-boss-shake {
  animation: boardBossShake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes boardBossShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  15% { transform: translate3d(-6px, 3px, 0); }
  30% { transform: translate3d(6px, -4px, 0); }
  45% { transform: translate3d(-5px, -2px, 0); }
  65% { transform: translate3d(4px, 3px, 0); }
  80% { transform: translate3d(-2px, 1px, 0); }
}

.fx-boss-shockwave-row {
  position: absolute;
  left: 2%;
  width: 96%;
  height: 18%;
  transform: translateY(-50%);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.72), rgba(254, 240, 138, 0.85), rgba(56, 189, 248, 0.1));
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.85);
  pointer-events: none;
  animation: shockwaveSweep 0.65s ease-out forwards;
}

@keyframes shockwaveSweep {
  0% { opacity: 0; transform: translateY(-50%) scaleX(0.2); }
  30% { opacity: 1; transform: translateY(-50%) scaleX(1.02); }
  100% { opacity: 0; transform: translateY(-50%) scaleX(1.06) scaleY(1.3); }
}

.fx-boss-meteor {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 0 14px #f97316);
  animation: bossMeteorDrop 0.66s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bossMeteorDrop {
  0% { opacity: 0; transform: translate(-50%, -180%) scale(1.4); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); }
}

.fx-boss-void-beam {
  position: absolute;
  top: 4%;
  height: 92%;
  width: 16%;
  transform: translateX(-50%);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(240, 171, 252, 0.95), rgba(168, 85, 247, 0.82), rgba(88, 28, 135, 0.45));
  box-shadow: 0 0 26px rgba(192, 132, 252, 0.95);
  pointer-events: none;
  animation: voidBeamBlast 0.7s ease-out forwards;
}

@keyframes voidBeamBlast {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0.1); transform-origin: top center; }
  28% { opacity: 1; transform: translateX(-50%) scaleY(1); transform-origin: top center; }
  100% { opacity: 0; transform: translateX(-50%) scaleX(1.5) scaleY(1); transform-origin: top center; }
}

.boss-unlock-banner {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), color-mix(in srgb, var(--unlock-color, #fbbf24) 24%, #0f172a));
  border: 1.5px solid var(--unlock-color, #fbbf24);
  box-shadow: 0 0 20px color-mix(in srgb, var(--unlock-color, #fbbf24) 35%, transparent);
}

.boss-unlock-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 900;
  color: #fef08a;
  margin-bottom: 3px;
}

.boss-unlock-sub {
  font-size: 12px;
  color: #e2e8f0;
}

body.reduced-effects .camp-node-wrap.is-current .camp-node-btn,
body.reduced-effects .boss-token-aura,
body.reduced-effects .boss-aura-pulse,
body.reduced-effects .camp-bg-sparks,
body.reduced-effects .camp-bg-void-dust,
body.reduced-effects .camp-bg-crystals {
  animation: none !important;
}

.camp-bg-sparks {
  animation: campSparkFloat 5.5s ease-in-out infinite alternate;
}

@keyframes campSparkFloat {
  0% { transform: translate3d(0, 8px, 0); opacity: 0.55; }
  100% { transform: translate3d(0, -14px, 0); opacity: 0.95; }
}

.camp-bg-crystals {
  animation: campCrystalHover 6.4s ease-in-out infinite alternate;
}

@keyframes campCrystalHover {
  0% { transform: translate3d(0, -4px, 0); }
  100% { transform: translate3d(0, 6px, 0); }
}

.camp-bg-void-dust {
  animation: campVoidDrift 7.2s ease-in-out infinite alternate;
}

@keyframes campVoidDrift {
  0% { transform: translate3d(-4px, 5px, 0); opacity: 0.45; }
  100% { transform: translate3d(5px, -8px, 0); opacity: 0.85; }
}

/* ==================== QUEST SORTING & ZERO-EMERALD REPLAY STYLING ==================== */
.quest-group-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 6px 10px;
  margin: 8px 0 6px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.quest-group-hdr.is-collapsible {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: filter 0.14s ease, transform 0.12s ease;
}

.quest-group-hdr.is-collapsible:active {
  transform: scale(0.99);
  filter: brightness(1.12);
}

.quest-group-title {
  min-width: 0;
  flex: 1 1 auto;
}

.quest-group-chevron {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.quest-section-block.is-collapsed .quest-group-chevron {
  transform: rotate(-90deg);
}

.quest-section-block.is-collapsed .quest-section-list {
  display: none;
}

.quest-claimed-details:not([open]) .quest-group-chevron {
  transform: rotate(-90deg);
}

.quest-claimed-details > summary.quest-group-hdr {
  list-style: none;
}

.quest-claimed-details > summary.quest-group-hdr::-webkit-details-marker {
  display: none;
}

.quest-group-hdr:first-child {
  margin-top: 0;
}

.quest-group-hdr.is-ready {
  color: #fef08a;
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.34), rgba(15, 23, 42, 0.85));
}

.quest-group-hdr.is-claimed {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.28);
  opacity: 0.82;
}

.quest-group-cnt {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quest-row.is-claimable {
  border-color: rgba(251, 191, 36, 0.6) !important;
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.16), rgba(15, 23, 42, 0.88)) !important;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.16);
}

.quest-row.is-claimed {
  opacity: 0.58;
  border-color: rgba(74, 222, 128, 0.2) !important;
}

.quest-row.is-daily-quest {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.22), rgba(15, 23, 42, 0.88));
}

.quest-daily-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.42);
  border: 1px solid rgba(56, 189, 248, 0.55);
}

/* Übersichtliche Quest-Sektionen & Seltenheits-Farben (Meilenstein = Legendär, Zwischenschritte = Episch/Selten) */
.quest-section-block {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.quest-section-block:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 2px;
}

.quest-section-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quest-group-hdr.is-daily {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.28), rgba(15, 23, 42, 0.72));
}

.quest-group-hdr.is-chains {
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.42);
  background: linear-gradient(90deg, rgba(107, 33, 168, 0.28), rgba(15, 23, 42, 0.72));
}

.quest-group-hdr.is-standard {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
  background: linear-gradient(90deg, rgba(51, 65, 85, 0.35), rgba(15, 23, 42, 0.72));
}

.quest-claimed-details {
  margin-top: 8px;
}

.quest-claimed-details > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.quest-claimed-details > summary::-webkit-details-marker {
  display: none;
}

.quest-row.is-tier-rare {
  border-left: 3px solid #38bdf8;
  border-color: rgba(56, 189, 248, 0.36);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.16), rgba(15, 23, 42, 0.88));
}

.quest-row.is-tier-epic {
  border-left: 3px solid #c084fc;
  border-color: rgba(192, 132, 252, 0.44);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.22), rgba(15, 23, 42, 0.9));
}

.quest-row.is-tier-legendary {
  border-left: 3px solid #fbbf24;
  border-color: rgba(251, 191, 36, 0.56);
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.24), rgba(15, 23, 42, 0.92));
}

.quest-row.is-claimed {
  border-left-width: 1px !important;
  background: rgba(15, 23, 42, 0.62) !important;
}

.quest-bar-fill.is-tier-rare {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.quest-bar-fill.is-tier-epic {
  background: linear-gradient(90deg, #9333ea, #c084fc);
}

.quest-bar-fill.is-tier-legendary {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.quest-chain-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.quest-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.quest-tier-pill.is-legendary {
  color: #fef08a;
  background: rgba(180, 83, 9, 0.48);
  border: 1px solid rgba(251, 191, 36, 0.72);
}

.quest-tier-pill.is-epic {
  color: #f3e8ff;
  background: rgba(107, 33, 168, 0.46);
  border: 1px solid rgba(192, 132, 252, 0.65);
}

/* ==================== 3 SPEICHERBARE DECKS (SAMMLUNG & MATCH-AUSWAHL) ==================== */
.col-mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 10px;
  background: rgba(8, 13, 24, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.col-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  background: rgba(30, 41, 59, 0.52);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.col-mode-btn.is-active {
  border-color: rgba(56, 189, 248, 0.78);
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.56), rgba(15, 23, 42, 0.92));
  color: #f0f9ff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.22);
}

.col-mode-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  color: #86efac;
}

.deck-selected-section {
  padding: 10px;
  border-radius: 14px;
  border: 1.5px solid rgba(52, 211, 153, 0.48);
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.26), rgba(12, 18, 32, 0.88));
  box-shadow: inset 0 1px 0 rgba(167, 243, 208, 0.12), 0 8px 20px rgba(2, 6, 16, 0.35);
}

.deck-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(52, 211, 153, 0.24);
}

.deck-section-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 900;
  color: #a7f3d0;
}

.deck-section-counts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #cbd5e1;
}

.deck-selected-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.55);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.deck-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
}

.deck-section-divider::before,
.deck-section-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.42), transparent);
}

.deck-section-divider span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.85);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.col-deck-slots-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(10, 15, 28, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  flex-wrap: nowrap;
}

.col-deck-slot-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.col-deck-slot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 6px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.58);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.col-deck-slot-btn.is-active {
  border-color: rgba(52, 211, 153, 0.78);
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.64), rgba(15, 23, 42, 0.9));
  color: #ecfdf5;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.col-deck-slot-btn.is-empty:not(.is-active) {
  opacity: 0.72;
}

.col-deck-slot-cnt {
  font-size: 10px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  color: #86efac;
}

.col-deck-slot-btn.is-empty .col-deck-slot-cnt {
  color: #94a3b8;
}

.col-save-deck-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 6px 10px !important;
  font-size: 11.5px !important;
  white-space: nowrap;
}

.col-save-deck-btn.is-dirty-pulse {
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
}

.hub-active-deck-pill {
  font-size: 10px;
  font-weight: 900;
  padding: 1.5px 6px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(6, 95, 70, 0.52);
  border: 1px solid rgba(52, 211, 153, 0.48);
}

.prematch-deck-picker {
  margin-top: 10px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(9, 14, 26, 0.72);
}

.prematch-deck-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 900;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.prematch-deck-hdr > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.prematch-deck-warn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fca5a5;
}

.deck-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.deck-pick-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 7px;
  border-radius: 10px;
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.88));
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.deck-pick-card.is-active {
  border-color: rgba(52, 211, 153, 0.86);
  background: linear-gradient(160deg, rgba(6, 95, 70, 0.54), rgba(15, 23, 42, 0.94));
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.26);
}

.deck-pick-card.is-empty {
  opacity: 0.56;
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.34);
  filter: grayscale(0.45);
}

.deck-pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  width: 100%;
}

.deck-pick-title {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.deck-pick-cnt {
  font-size: 9.5px;
  font-weight: 900;
  color: #86efac;
}

.deck-pick-card.is-empty .deck-pick-cnt {
  color: #94a3b8;
}

.deck-pick-mobs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
  min-height: 20px;
}

.deck-pick-mob-mini {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deck-pick-mob-mini svg {
  width: 100%;
  height: 100%;
}

.deck-pick-empty-lbl {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  min-height: 20px;
}

@media (max-width: 420px) {
  .col-deck-slots-bar {
    flex-wrap: wrap;
    padding: 6px 8px;
  }
  .col-save-deck-btn {
    width: 100%;
    justify-content: center;
  }
  .deck-pick-mob-mini {
    width: 16px;
    height: 16px;
  }
}

.stage-claimed-note,
.pve-claimed-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 3px 8px;
  margin-bottom: 7px;
}

.pve-claimed-note {
  margin-top: 6px;
  margin-bottom: 2px;
}

.stage-rew-pill.is-zero,
.pve-reward-preview .is-zero {
  opacity: 0.5;
  color: #94a3b8;
}

/* ==================== AAA VERZAUBERUNGSHÄNDLER (TRADER TAB) ==================== */
.trader-hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(46, 16, 101, 0.52), rgba(15, 23, 42, 0.94));
  border: 1.5px solid rgba(192, 132, 252, 0.42);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.trader-hero-glow {
  position: absolute;
  top: -36px;
  left: -24px;
  width: 190px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.42) 0%, rgba(56, 189, 248, 0.14) 55%, transparent 75%);
  pointer-events: none;
}

.trader-hero-icon-box {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, rgba(168, 85, 247, 0.34), rgba(9, 13, 22, 0.85));
  border: 1.5px solid rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trader-hero-meta {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.trader-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #e9d5ff;
  background: rgba(126, 34, 206, 0.38);
  border: 1px solid rgba(192, 132, 252, 0.42);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 3px;
}

.trader-hero-title {
  font-size: 16px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.trader-hero-sub {
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.3;
}

.trader-hero-wallet {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 12px;
  background: rgba(9, 13, 22, 0.78);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  font-size: 14px;
  flex-shrink: 0;
}

.is-em-tick {
  color: #fde047;
  transition: color 0.2s ease;
}

.trader-filter-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.trader-filter-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 11px;
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.trader-filter-pill:hover {
  border-color: rgba(192, 132, 252, 0.55);
  color: #f8fafc;
}

.trader-filter-pill.is-active {
  border-color: #c084fc;
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.42), rgba(30, 27, 75, 0.92));
  color: #f5d0fe;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.26);
}

.trader-filter-cnt {
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.65);
  color: #cbd5e1;
}

.trader-filter-pill.is-active .trader-filter-cnt {
  background: rgba(192, 132, 252, 0.28);
  color: #ffffff;
}

.trader-book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 16px;
}

.trader-book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  padding: 11px;
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(22, 31, 50, 0.94), rgba(11, 16, 30, 0.98));
  border: 1.5px solid color-mix(in srgb, var(--book-accent, #c084fc) 44%, rgba(148, 163, 184, 0.2));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.trader-book-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--book-accent, #c084fc) 78%, transparent);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), 0 0 18px color-mix(in srgb, var(--book-accent, #c084fc) 26%, transparent);
}

.trader-book-card.is-just-bought {
  animation: traderBuyFlash 0.68s ease-out;
}

@keyframes traderBuyFlash {
  0% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.9), 0 0 32px rgba(192, 132, 252, 0.85); border-color: #f0abfc; transform: scale(1.025); }
  55% { box-shadow: 0 0 0 8px rgba(192, 132, 252, 0), 0 0 22px rgba(192, 132, 252, 0.5); border-color: #c084fc; transform: scale(1); }
  100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }
}

.trader-float-plus {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #7e22ce, #c084fc);
  border: 1px solid #f5d0fe;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.75);
  pointer-events: none;
  animation: traderFloatPlus 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes traderFloatPlus {
  0% { opacity: 0; transform: translateY(10px) scale(0.75); }
  22% { opacity: 1; transform: translateY(-4px) scale(1.06); }
  75% { opacity: 1; transform: translateY(-16px) scale(1); }
  100% { opacity: 0; transform: translateY(-28px) scale(0.95); }
}

.trader-book-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trader-book-stage {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--book-accent, #c084fc) 30%, transparent), rgba(9, 13, 22, 0.88));
  border: 1.5px solid color-mix(in srgb, var(--book-accent, #c084fc) 55%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--book-accent, #c084fc) 26%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.trader-book-shimmer {
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(245, 208, 254, 0.45) 50%,
    rgba(255, 255, 255, 0.1) 55%,
    transparent 65%
  );
  transform: translate3d(-135%, 0, 0) skewX(-18deg);
  pointer-events: none;
  animation: traderBookSheen 4.8s ease-in-out infinite;
}

@keyframes traderBookSheen {
  0%, 58% { transform: translate3d(-135%, 0, 0) skewX(-18deg); opacity: 0; }
  68% { opacity: 1; }
  90% { transform: translate3d(135%, 0, 0) skewX(-18deg); opacity: 0.9; }
  100% { transform: translate3d(135%, 0, 0) skewX(-18deg); opacity: 0; }
}

.enchant-book-svg {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}

.trader-tier-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 4;
  min-width: 19px;
  height: 17px;
  padding: 0 4px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border: 1.5px solid var(--book-accent, #c084fc);
  color: #fef08a;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.trader-book-head {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.trader-book-title {
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.trader-tag-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.trader-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #e2e8f0;
  background: color-mix(in srgb, var(--book-accent, #c084fc) 20%, rgba(15, 23, 42, 0.85));
  border: 1px solid color-mix(in srgb, var(--book-accent, #c084fc) 45%, transparent);
  border-radius: 7px;
  padding: 2px 6px;
}

.trader-owned-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 7px;
  padding: 2px 6px;
}

.trader-owned-pill.has-owned {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(20, 83, 45, 0.32);
}

.trader-book-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.38;
  min-height: 32px;
}

.trader-buy-btn {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px !important;
  font-size: 12.5px !important;
  border-radius: 11px !important;
}

.trader-buy-btn.is-ready {
  background: linear-gradient(135deg, #991b1b, #dc2626) !important;
  border-color: rgba(252, 165, 165, 0.55) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.32);
}

.trader-buy-btn.is-ready:hover {
  filter: brightness(1.1);
}

.trader-buy-btn.is-disabled {
  background: rgba(30, 41, 59, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #64748b !important;
  opacity: 0.65;
  cursor: not-allowed;
}

.trader-price-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.45);
  font-size: 12.5px;
}

body.reduced-effects .trader-book-shimmer {
  display: none !important;
  animation: none !important;
}

body.reduced-effects .trader-book-card.is-just-bought {
  animation: none !important;
}

@media (max-width: 520px) {
  .trader-book-grid {
    grid-template-columns: 1fr;
  }
  .trader-hero-banner {
    padding: 10px 11px;
    gap: 9px;
  }
  .trader-hero-icon-box {
    width: 48px;
    height: 48px;
  }
  .trader-hero-title {
    font-size: 14.5px;
  }
  .trader-book-desc {
    min-height: 0;
  }
}

/* ==================== AAA PACK-STORE (SHOP PACKS TAB) ==================== */
.pack-store-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.42), rgba(15, 23, 42, 0.94) 58%, rgba(88, 28, 135, 0.28));
  border: 1.5px solid rgba(56, 189, 248, 0.42);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 11px;
}

.pack-hero-glow {
  position: absolute;
  top: -38px;
  left: -22px;
  width: 210px;
  height: 145px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.36) 0%, rgba(168, 85, 247, 0.16) 52%, transparent 74%);
  pointer-events: none;
}

.pack-hero-icon-box {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.32), rgba(9, 13, 22, 0.86));
  border: 1.5px solid rgba(125, 211, 252, 0.55);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pack-hero-meta {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.pack-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #bae6fd;
  background: rgba(3, 105, 161, 0.42);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 3px;
}

.pack-hero-title {
  font-size: 16px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.pack-hero-sub {
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.3;
}

.pack-hero-wallet {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 12px;
  background: rgba(9, 13, 22, 0.8);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  color: #bae6fd;
  font-size: 14px;
  flex-shrink: 0;
}

.is-dia-tick {
  color: #fde047 !important;
  transition: color 0.18s ease;
}

.pack-aaa-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 10px 10px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--pack-color, #4ade80) 15%, transparent), transparent 62%),
    linear-gradient(160deg, rgba(22, 31, 50, 0.96), rgba(9, 13, 24, 0.98));
  border: 1.5px solid color-mix(in srgb, var(--pack-color, #4ade80) 48%, rgba(148, 163, 184, 0.22));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.48),
    0 0 18px color-mix(in srgb, var(--pack-glow, #22c55e) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: visible;
}

.pack-aaa-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pack-color, #4ade80) 85%, transparent);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.56),
    0 0 26px color-mix(in srgb, var(--pack-glow, #22c55e) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pack-aaa-card.pack-tier-epic {
  border-color: rgba(192, 132, 252, 0.56);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(168, 85, 247, 0.22),
    inset 0 1px 0 rgba(245, 208, 254, 0.1);
}

.pack-aaa-card.pack-tier-legendary {
  border-color: rgba(251, 191, 36, 0.64);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.54),
    0 0 26px rgba(245, 158, 11, 0.28),
    inset 0 1px 0 rgba(254, 240, 138, 0.14);
}

.pack-aaa-card.pack-tier-material {
  background:
    radial-gradient(circle at 50% 18%, rgba(16, 185, 129, 0.18), transparent 60%),
    radial-gradient(circle at 82% 88%, rgba(245, 158, 11, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(16, 34, 34, 0.96), rgba(9, 13, 24, 0.98));
  border-color: rgba(52, 211, 153, 0.56);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(16, 185, 129, 0.22),
    inset 0 1px 0 rgba(253, 230, 138, 0.14);
}

.pack-aaa-card.pack-tier-alchemy {
  background:
    radial-gradient(circle at 50% 18%, rgba(217, 70, 239, 0.2), transparent 60%),
    radial-gradient(circle at 82% 88%, rgba(45, 212, 191, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(36, 16, 48, 0.96), rgba(11, 13, 26, 0.98));
  border-color: rgba(232, 121, 249, 0.58);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(217, 70, 239, 0.24),
    inset 0 1px 0 rgba(94, 234, 212, 0.16);
}

.pack-aaa-card.is-just-bought {
  animation: packBuyFlash 0.62s ease-out;
}

@keyframes packBuyFlash {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--pack-color, #4ade80) 92%, transparent), 0 0 36px var(--pack-color, #4ade80);
    border-color: #ffffff;
    transform: scale(1.03);
  }
  55% {
    box-shadow: 0 0 0 10px transparent, 0 0 26px color-mix(in srgb, var(--pack-color, #4ade80) 60%, transparent);
    border-color: var(--pack-color, #4ade80);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48);
  }
}

.pack-float-plus {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pack-glow, #22c55e) 82%, #0f172a), var(--pack-color, #4ade80));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--pack-glow, #22c55e) 80%, transparent);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  animation: packFloatPlus 0.86s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes packFloatPlus {
  0% { opacity: 0; transform: translateY(10px) scale(0.74); }
  22% { opacity: 1; transform: translateY(-4px) scale(1.08); }
  72% { opacity: 1; transform: translateY(-18px) scale(1); }
  100% { opacity: 0; transform: translateY(-32px) scale(0.94); }
}

.pack-aaa-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.pack-visual-stage {
  position: relative;
  width: 100%;
  padding: 18px 8px 6px;
  border-radius: 13px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--pack-color, #4ade80) 20%, transparent), rgba(7, 11, 20, 0.76) 76%);
  border: 1px solid color-mix(in srgb, var(--pack-color, #4ade80) 28%, rgba(148, 163, 184, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pack-stage-aura {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pack-glow, #22c55e) 42%, transparent) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.pack-count-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.55px;
  color: #f8fafc;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(9, 13, 24, 0.96));
  border: 1px solid color-mix(in srgb, var(--pack-color, #4ade80) 68%, transparent);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.pack-3d-wrap {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  transform: perspective(560px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.24s cubic-bezier(0.22, 1.18, 0.36, 1);
}

.pack-aaa-card:hover .pack-3d-wrap {
  transform: perspective(560px) rotateY(4deg) rotateX(0deg) translateY(-2px) scale(1.04);
}

.pack-3d-svg {
  display: block;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.58));
}

.pack-aaa-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  min-width: 0;
}

.pack-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.pack-bonus-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.pack-bonus-pill.is-emerald-bonus {
  color: #fecdd3;
  background: linear-gradient(135deg, rgba(159, 18, 57, 0.55), rgba(30, 27, 75, 0.85));
  border: 1px solid rgba(251, 113, 133, 0.65);
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.28);
}

.pack-bonus-pill.is-core-bonus {
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.42);
  border: 1px solid rgba(74, 222, 128, 0.42);
}

.pack-bonus-pill.is-material-bonus {
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(6, 95, 70, 0.68), rgba(146, 64, 14, 0.48));
  border: 1px solid rgba(251, 191, 36, 0.58);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.22);
}

.pack-bonus-pill.is-alchemy-bonus {
  color: #fae8ff;
  background: linear-gradient(135deg, rgba(134, 25, 143, 0.72), rgba(15, 118, 110, 0.52));
  border: 1px solid rgba(232, 121, 249, 0.62);
  box-shadow: 0 0 12px rgba(217, 70, 239, 0.24);
}

.pack-daily-limit-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  color: #a5f3fc;
  background: rgba(14, 116, 144, 0.34);
  border: 1px solid rgba(56, 189, 248, 0.45);
  margin-left: 4px;
}

.pack-daily-limit-pill.is-exhausted {
  color: #fecaca;
  background: rgba(153, 27, 27, 0.42);
  border-color: rgba(248, 113, 113, 0.55);
}

.pack-aaa-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--pack-color, #4ade80);
  text-shadow: 0 0 14px color-mix(in srgb, var(--pack-glow, #22c55e) 48%, transparent);
}

.pack-includes-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

.pack-odds-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3.5px;
  margin-top: 1px;
}

.pack-odd-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5.5px;
  border-radius: 6px;
  background: rgba(9, 13, 24, 0.76);
  border: 1px solid color-mix(in srgb, var(--odd-col, #94a3b8) 32%, rgba(148, 163, 184, 0.14));
  font-size: 9.2px;
  line-height: 1.2;
  color: #cbd5e1;
  white-space: nowrap;
}

.pack-odd-chip.is-em {
  border-color: rgba(251, 113, 133, 0.48);
  background: rgba(136, 19, 55, 0.24);
}

.pack-odd-chip.is-gold {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(120, 53, 15, 0.3);
}

.pack-odd-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: var(--odd-col, #94a3b8);
  box-shadow: 0 0 6px var(--odd-col, #94a3b8);
  flex-shrink: 0;
}

.pack-odd-lbl {
  color: #cbd5e1;
  font-weight: 700;
}

.pack-odd-val {
  color: color-mix(in srgb, var(--odd-col, #f8fafc) 72%, #ffffff);
  font-weight: 900;
}

/* Premium Theme-Matched CTA Buttons */
.pack-cta-btn {
  position: relative;
  width: 100%;
  padding: 9px 10px !important;
  border-radius: 12px !important;
  overflow: hidden;
  border-width: 1.5px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.2px;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.18s ease !important;
}

.pack-cta-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pack-cta-price {
  font-size: 14px;
  font-weight: 900;
}

.pack-cta-sheen {
  position: absolute;
  inset: -25%;
  background: linear-gradient(
    112deg,
    transparent 34%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 66%
  );
  transform: translate3d(-135%, 0, 0) skewX(-18deg);
  pointer-events: none;
  z-index: 1;
}

.pack-cta-btn.is-standard {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 52%, #15803d 100%) !important;
  border-color: rgba(134, 239, 172, 0.72) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(5, 46, 22, 0.75);
  box-shadow: 0 5px 16px rgba(34, 197, 94, 0.34), inset 0 1px 0 rgba(220, 252, 231, 0.45);
  animation: packBtnPulseGreen 2.8s ease-in-out infinite;
}

.pack-cta-btn.is-epic {
  background: linear-gradient(180deg, #a855f7 0%, #7e22ce 54%, #581c87 100%) !important;
  border-color: rgba(233, 213, 255, 0.72) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(46, 16, 101, 0.85);
  box-shadow: 0 5px 18px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(245, 208, 254, 0.45);
  animation: packBtnPulseEpic 2.6s ease-in-out infinite;
}

.pack-cta-btn.is-epic .pack-cta-sheen {
  animation: packBtnSheenSweep 4.2s ease-in-out infinite;
}

.pack-cta-btn.is-legendary {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 48%, #c2410c 100%) !important;
  border-color: rgba(254, 240, 138, 0.88) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(69, 26, 3, 0.9);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.48), inset 0 1px 0 rgba(254, 249, 195, 0.65);
  animation: packBtnPulseGold 2.3s ease-in-out infinite;
}

.pack-cta-btn.is-legendary .pack-cta-sheen {
  animation: packBtnSheenSweep 3.2s ease-in-out infinite;
}

.pack-cta-btn.is-material {
  background: linear-gradient(180deg, #10b981 0%, #059669 52%, #065f46 100%) !important;
  border-color: rgba(253, 230, 138, 0.72) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(2, 44, 34, 0.85);
  box-shadow: 0 5px 18px rgba(16, 185, 129, 0.36), inset 0 1px 0 rgba(254, 243, 199, 0.48);
  animation: packBtnPulseGreen 2.8s ease-in-out infinite;
}

.pack-cta-btn.is-material .pack-cta-sheen {
  animation: packBtnSheenSweep 4.6s ease-in-out infinite;
}

.pack-cta-btn.is-alchemy {
  background: linear-gradient(180deg, #c026d3 0%, #9333ea 52%, #581c87 100%) !important;
  border-color: rgba(94, 234, 212, 0.72) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(30, 10, 48, 0.85);
  box-shadow: 0 5px 18px rgba(192, 38, 211, 0.36), inset 0 1px 0 rgba(245, 208, 254, 0.48);
}

.pack-cta-btn.is-alchemy .pack-cta-sheen {
  animation: packBtnSheenSweep 4.2s ease-in-out infinite;
}

body.perf-mode .pack-cta-btn.is-alchemy .pack-cta-sheen {
  animation: none !important;
}

.pack-cta-btn:not(.is-disabled):hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.pack-cta-btn:not(.is-disabled):active {
  transform: scale(0.97);
}

.pack-cta-btn.is-disabled {
  background: rgba(30, 41, 59, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: #64748b !important;
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none !important;
  animation: none !important;
}

.pack-cta-btn.is-disabled .pack-cta-sheen {
  display: none;
}

@keyframes packBtnPulseGreen {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.022); opacity: 1; }
}

@keyframes packBtnPulseEpic {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.024); opacity: 1; }
}

@keyframes packBtnPulseGold {
  0%, 100% { transform: scale(1); opacity: 0.96; }
  50% { transform: scale(1.028); opacity: 1; }
}

@keyframes packBtnSheenSweep {
  0%, 58% { transform: translate3d(-135%, 0, 0) skewX(-18deg); opacity: 0; }
  68% { opacity: 1; }
  90% { transform: translate3d(135%, 0, 0) skewX(-18deg); opacity: 0.9; }
  100% { transform: translate3d(135%, 0, 0) skewX(-18deg); opacity: 0; }
}

body.reduced-effects .pack-cta-btn,
body.reduced-effects .pack-cta-sheen,
body.reduced-effects .pack-aaa-card.is-just-bought {
  animation: none !important;
}

body.reduced-effects .pack-cta-sheen,
body.reduced-effects .pack-3d-wrap .pack-foil-sheen {
  display: none !important;
}

/* Mobile Pack-Store: kompakte horizontale Karten ohne Abschneiden */
@media (max-width: 620px) {
  .pack-store-hero {
    padding: 10px 11px;
    gap: 9px;
    margin-bottom: 10px;
  }

  .pack-hero-icon-box {
    width: 46px;
    height: 46px;
  }

  .pack-hero-title {
    font-size: 14.5px;
  }

  .pack-hero-sub {
    font-size: 11px;
  }

  .pack-store-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 20px;
  }

  .pack-aaa-card {
    padding: 10px;
    gap: 9px;
  }

  .pack-aaa-top {
    flex-direction: row;
    align-items: center;
    gap: 11px;
  }

  .pack-visual-stage {
    width: 102px;
    flex-shrink: 0;
    padding: 20px 6px 6px;
  }

  .pack-3d-svg {
    width: 78px;
    height: auto;
  }

  .pack-count-badge {
    font-size: 8.5px;
    padding: 2px 6px;
  }

  .pack-aaa-body {
    align-items: flex-start;
    text-align: left;
    flex: 1;
    gap: 4px;
  }

  .pack-badge-row {
    justify-content: flex-start;
  }

  .pack-aaa-title {
    font-size: 14.5px;
  }

  .pack-odds-grid {
    justify-content: flex-start;
    gap: 4px;
  }

  .pack-odd-chip {
    font-size: 9.5px;
    padding: 2px 6px;
  }

  .pack-cta-btn {
    padding: 9px 12px !important;
    font-size: 13.5px !important;
  }
}

/* ==================== LILA VERZAUBERUNGS-GLANZ (ENCHANTMENT GLINT) ==================== */
.gear-slot-ico {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gear-slot-lbl {
  position: relative;
  z-index: 2;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.gear-slot-btn {
  position: relative;
  overflow: hidden;
}

.gear-slot-btn .durability-bar {
  position: relative;
  z-index: 2;
}

.ws-gear-icon-box {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.equip-item-icon-box,
.repair-gear-badge {
  position: relative;
  overflow: hidden;
}

/* Einheitlicher violetter Verzauberungs-Rahmen-Glow & gleitender Licht-Schimmer */
.is-enchanted-glint {
  position: relative;
  overflow: hidden;
  border-color: rgba(192, 132, 252, 0.78) !important;
  background-image: linear-gradient(155deg, rgba(126, 34, 206, 0.26), rgba(30, 27, 75, 0.35));
  box-shadow:
    0 0 14px rgba(168, 85, 247, 0.36),
    inset 0 0 10px rgba(192, 132, 252, 0.24) !important;
}

.gear-slot-btn.is-enchanted-glint:hover {
  border-color: rgba(216, 180, 254, 0.95) !important;
  box-shadow:
    0 0 18px rgba(168, 85, 247, 0.52),
    inset 0 0 12px rgba(216, 180, 254, 0.3) !important;
}

/* Kaputtes & zugleich verzaubertes Item: Roter Warn-Rahmen + klar erkennbarer lila Glanz */
.gear-slot-btn.broken.is-enchanted-glint {
  border-color: rgba(248, 113, 113, 0.88) !important;
  background: linear-gradient(155deg, rgba(127, 29, 29, 0.58), rgba(88, 28, 135, 0.42)) !important;
  box-shadow:
    0 0 0 1px rgba(192, 132, 252, 0.55),
    0 0 14px rgba(168, 85, 247, 0.44),
    inset 0 0 11px rgba(192, 132, 252, 0.32) !important;
}

.gear-hero-pedestal.is-enchanted-glint {
  border-color: rgba(192, 132, 252, 0.85) !important;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.48),
    0 0 22px rgba(168, 85, 247, 0.45),
    inset 0 0 16px rgba(192, 132, 252, 0.28) !important;
}

.gear-detail-showcase.is-enchanted-showcase {
  border-color: rgba(192, 132, 252, 0.62);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), 0 0 24px rgba(168, 85, 247, 0.22);
}

.equip-item-card.is-enchanted-row,
.repair-item-card.is-enchanted-row {
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.22), 0 4px 16px rgba(88, 28, 135, 0.14);
}

.is-enchanted-glint::after {
  content: '';
  position: absolute;
  inset: -48%;
  background: linear-gradient(
    118deg,
    transparent 33%,
    rgba(168, 85, 247, 0.22) 42%,
    rgba(245, 208, 254, 0.62) 50%,
    rgba(168, 85, 247, 0.22) 58%,
    transparent 67%
  );
  transform: translate3d(-145%, 0, 0) skewX(-16deg);
  pointer-events: none;
  z-index: 4;
  animation: enchantGlintSweep 3.8s ease-in-out infinite;
}

/* Sanfter zeitlicher Versatz über die 5 Ausrüstungs-Slots im Hauptmenü */
.gear-slots-strip .gear-slot-btn.is-enchanted-glint:nth-child(2)::after { animation-delay: 0.45s; }
.gear-slots-strip .gear-slot-btn.is-enchanted-glint:nth-child(3)::after { animation-delay: 0.9s; }
.gear-slots-strip .gear-slot-btn.is-enchanted-glint:nth-child(4)::after { animation-delay: 1.35s; }
.gear-slots-strip .gear-slot-btn.is-enchanted-glint:nth-child(5)::after { animation-delay: 1.8s; }

@keyframes enchantGlintSweep {
  0%, 54% {
    transform: translate3d(-145%, 0, 0) skewX(-16deg);
    opacity: 0;
  }
  62% {
    opacity: 1;
  }
  88% {
    transform: translate3d(145%, 0, 0) skewX(-16deg);
    opacity: 0.92;
  }
  100% {
    transform: translate3d(145%, 0, 0) skewX(-16deg);
    opacity: 0;
  }
}

/* Dezenter lila Glanz direkt über verzauberten Rüstungsteilen & Waffe des Helden */
.hero-ench-glint {
  pointer-events: none;
  animation: heroArmorGlint 4.2s ease-in-out infinite;
}

.hero-ench-glint-d1 { animation-delay: 0.65s; }
.hero-ench-glint-d2 { animation-delay: 1.3s; }
.hero-ench-glint-d3 { animation-delay: 1.95s; }

@keyframes heroArmorGlint {
  0%, 62% {
    transform: translate3d(-24px, 0, 0) skewX(-22deg);
    opacity: 0;
  }
  74% {
    opacity: 0.28;
  }
  92% {
    transform: translate3d(68px, 0, 0) skewX(-22deg);
    opacity: 0.2;
  }
  100% {
    transform: translate3d(68px, 0, 0) skewX(-22deg);
    opacity: 0;
  }
}

/* Energiesparmodus / Reduzierte Effekte: Animation pausieren, statischen lila Rahmen-Glow behalten */
body.reduced-effects .is-enchanted-glint::after,
body.reduced-effects .hero-ench-glint,
body.reduced-effects .hero-weapon-shimmer.is-ench-weapon {
  display: none !important;
  animation: none !important;
}

/* ==================== GEGNER-KI KARTEN-ZÄHLER & TRANK-CALLOUT ==================== */
.enemy-deck-pill {
  border-color: rgba(248, 113, 113, 0.55) !important;
  color: #fecaca !important;
  background: rgba(127, 29, 29, 0.36) !important;
  font-weight: 800;
}

.enemy-deck-pill.is-empty {
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #94a3b8 !important;
  background: rgba(15, 23, 42, 0.55) !important;
  opacity: 0.72;
}

.fx-potion.is-enemy-potion {
  filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.9));
}

.fx-enemy-potion-pill {
  position: absolute;
  transform: translate(-50%, -150%);
  z-index: 16;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.94), rgba(15, 23, 42, 0.94));
  border: 1.5px solid #fb7185;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.6);
  pointer-events: none;
  animation: enemyPotionCallout 0.94s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fx-enemy-potion-pill.is-eff-heal {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.94), rgba(15, 23, 42, 0.94));
  border-color: #4ade80;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.55);
}

.fx-enemy-potion-pill.is-eff-buff_steve {
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.94), rgba(15, 23, 42, 0.94));
  border-color: #fbbf24;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.55);
}

.fx-enemy-potion-pill.is-eff-poison {
  background: linear-gradient(135deg, rgba(77, 124, 15, 0.94), rgba(15, 23, 42, 0.94));
  border-color: #a3e635;
  box-shadow: 0 4px 16px rgba(132, 204, 22, 0.55);
}

@keyframes enemyPotionCallout {
  0% { opacity: 0; transform: translate(-50%, -105%) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, -155%) scale(1.04); }
  78% { opacity: 1; transform: translate(-50%, -175%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -205%) scale(0.94); }
}

/* ==================== SPIELER-LEVEL-BADGE, MEILENSTEIN-MENÜ, GRATIS-PACKS & DAILY ==================== */
.hub-level-badge {
  position: relative;
  min-width: 42px;
  padding: 4px 6px 5px;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--lvl-bg, rgba(20, 83, 45, 0.6)), rgba(9, 13, 24, 0.94));
  border: 1.5px solid var(--lvl-border, #22c55e);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.42), 0 0 10px var(--lvl-glow, rgba(74, 222, 128, 0.28));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  color: #f8fafc;
  flex-shrink: 0;
  overflow: visible;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.16s ease;
}

.hub-level-badge:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.1);
}

.hub-level-badge.is-gold-shimmer {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.65), inset 0 1px 0 rgba(254, 249, 195, 0.5);
  animation: lvlGoldPulse 2.6s ease-in-out infinite;
}

@keyframes lvlGoldPulse {
  0%, 100% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.045); opacity: 1; }
}

.hub-level-lbl {
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: var(--lvl-color, #4ade80);
  line-height: 1;
}

.hub-level-num {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.hub-level-xpbar {
  width: 100%;
  height: 3.5px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.75);
  overflow: hidden;
}

.hub-level-xpfill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--lvl-color, #4ade80);
  box-shadow: 0 0 6px var(--lvl-color, #4ade80);
}

.hub-level-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border: 1.5px solid #fef08a;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.75);
  animation: lvlDotBounce 1.8s ease-in-out infinite;
}

@keyframes lvlDotBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

/* Dezentes +X XP Floating Feedback außerhalb von Kämpfen */
.xp-float-pill {
  position: fixed;
  top: 66px;
  left: 16px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.94), rgba(15, 23, 42, 0.94));
  border: 1.5px solid #84cc16;
  color: #ecfccb;
  font-size: 12px;
  box-shadow: 0 6px 20px rgba(132, 204, 22, 0.45);
  pointer-events: none;
  animation: xpFloatRise 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes xpFloatRise {
  0% { opacity: 0; transform: translateY(10px) scale(0.84); }
  18% { opacity: 1; transform: translateY(0) scale(1.04); }
  75% { opacity: 1; transform: translateY(-10px) scale(1); }
  100% { opacity: 0; transform: translateY(-24px) scale(0.95); }
}

/* Battle XP Box im Sieges-/Niederlagen-Screen & Kampagnen-Pack */
.battle-xp-box {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(9, 13, 24, 0.78);
  border: 1px solid color-mix(in srgb, var(--lvl-color, #4ade80) 44%, rgba(148, 163, 184, 0.2));
  text-align: left;
}

.battle-xp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #e2e8f0;
}

.battle-xp-total {
  color: #bef264;
  font-size: 13px;
}

.battle-xp-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.bxp-part {
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 1.5px 7px;
}

.bxp-anti-note {
  margin-top: 4px;
  font-size: 10.5px;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.battle-xp-bar-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
}

.battle-xp-lv {
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.battle-xp-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.85);
  overflow: hidden;
}

.battle-xp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lvl-color, #4ade80), #bef264);
}

.battle-xp-nums {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  white-space: nowrap;
}

/* Gratis-Pack CTA im Pack-Store */
.pack-bonus-pill.is-free-bonus {
  color: #fef9c3;
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.72), rgba(161, 98, 7, 0.75));
  border: 1px solid #fde047;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.42);
}

.pack-aaa-card.has-free-pack {
  border-color: rgba(250, 204, 21, 0.78) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 24px rgba(74, 222, 128, 0.32), inset 0 1px 0 rgba(254, 249, 195, 0.16);
}

.pack-cta-btn.is-free-pack {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 48%, #ca8a04 100%) !important;
  border-color: #fef08a !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(5, 46, 22, 0.9);
  box-shadow: 0 6px 22px rgba(74, 222, 128, 0.48), 0 0 16px rgba(250, 204, 21, 0.35), inset 0 1px 0 rgba(254, 249, 195, 0.7);
  animation: packBtnPulseGold 2.2s ease-in-out infinite;
}

.pack-cta-btn.is-free-pack .pack-cta-sheen {
  animation: packBtnSheenSweep 3s ease-in-out infinite;
}

/* AAA Level-Fortschritts- & Meilenstein-Modal */
.lvl-progress-modal {
  max-width: 520px;
}

.lvl-menu-hero {
  padding: 11px 12px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--lvl-bg, rgba(20, 83, 45, 0.42)), rgba(11, 16, 30, 0.96));
  border: 1.5px solid var(--lvl-border, #22c55e);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), 0 0 18px color-mix(in srgb, var(--lvl-glow, #4ade80) 45%, transparent);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.lvl-hero-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.lvl-hero-crest {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--lvl-color, #4ade80) 34%, transparent), rgba(9, 13, 24, 0.92));
  border: 2px solid var(--lvl-color, #4ade80);
  box-shadow: 0 0 16px var(--lvl-glow, rgba(74, 222, 128, 0.45));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lvl-hero-crest span {
  font-size: 9px;
  font-weight: 900;
  color: var(--lvl-color, #4ade80);
  letter-spacing: 0.8px;
}

.lvl-hero-crest b {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.lvl-hero-meta {
  flex: 1;
  min-width: 0;
}

.lvl-hero-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 16px;
}

.lvl-hero-tier-tag {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: color-mix(in srgb, var(--lvl-color, #4ade80) 28%, rgba(15, 23, 42, 0.88));
  border: 1px solid var(--lvl-color, #4ade80);
}

.lvl-hero-xp-txt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 3px;
}

.lvl-hero-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 6px;
}

.lvl-hero-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lvl-color, #4ade80), #fef08a);
  box-shadow: 0 0 10px var(--lvl-glow, rgba(74, 222, 128, 0.5));
}

.lvl-hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.lvl-info-btn {
  background: rgba(15, 23, 42, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.34) !important;
  color: #cbd5e1 !important;
}

.lvl-xp-guide {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.35;
}

.lvl-xp-guide > div {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.lvl-endgame-card {
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.36), rgba(88, 28, 135, 0.38));
  border: 1.5px solid rgba(251, 191, 36, 0.65);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lvl-endgame-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
  color: #fef08a;
}

.lvl-endgame-sub {
  font-size: 10.5px;
  color: #e2e8f0;
}

.lvl-path-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 8px;
}

.lvl-node-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.lvl-node-row.is-major {
  background: linear-gradient(135deg, color-mix(in srgb, var(--node-col, #fbbf24) 18%, rgba(15, 23, 42, 0.94)), rgba(9, 13, 24, 0.96));
  border: 1.5px solid color-mix(in srgb, var(--node-col, #fbbf24) 60%, transparent);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--node-col, #fbbf24) 18%, transparent);
}

.lvl-node-row.is-claimable {
  border-color: rgba(251, 191, 36, 0.78);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.22);
}

.lvl-node-row.is-claimed {
  opacity: 0.66;
}

.lvl-node-row.is-locked {
  opacity: 0.78;
}

.lvl-node-row.is-current {
  border-color: var(--node-col, #4ade80);
  box-shadow: 0 0 16px color-mix(in srgb, var(--node-col, #4ade80) 32%, transparent);
}

.lvl-node-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--node-bg, rgba(20, 83, 45, 0.55));
  border: 1.5px solid var(--node-col, #4ade80);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lvl-node-body {
  flex: 1;
  min-width: 0;
}

.lvl-node-head {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.lvl-cur-chip {
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--node-col, #4ade80);
  color: #090d16;
}

.lvl-tier-change-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  color: var(--tc, #38bdf8);
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid var(--tc, #38bdf8);
}

.lvl-node-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.lvl-rew-chip {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.lvl-rew-chip.is-pack {
  border-color: color-mix(in srgb, var(--chip-col, #4ade80) 65%, transparent);
  color: var(--chip-col, #4ade80);
}

.lvl-rew-chip.is-dia { border-color: rgba(56, 189, 248, 0.45); color: #bae6fd; }
.lvl-rew-chip.is-em { border-color: rgba(248, 113, 113, 0.45); color: #fecaca; }
.lvl-rew-chip.is-bs { border-color: rgba(251, 191, 36, 0.65); color: #fef08a; }

.lvl-start-note {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 700;
}

.lvl-node-action {
  flex-shrink: 0;
}

.lvl-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
}

.lvl-status-pill.is-claimed,
.lvl-status-pill.is-start {
  color: #86efac;
  background: rgba(20, 83, 45, 0.4);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.lvl-status-pill.is-locked {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

/* Level-Up Celebrations-Modal */
.lvlup-modal-card {
  max-width: 390px;
  text-align: center;
}

.lvlup-modal-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 2px;
}

.lvlup-aura {
  position: absolute;
  top: -18px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lvl-glow, rgba(74, 222, 128, 0.5)) 0%, transparent 70%);
  pointer-events: none;
}

.lvlup-crest {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  border-radius: 20px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--lvl-color, #4ade80) 45%, #0f172a), #090d16);
  border: 2.5px solid var(--lvl-color, #4ade80);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 28px var(--lvl-glow, rgba(74, 222, 128, 0.6));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: lvlUpPop 0.45s cubic-bezier(0.22, 1.3, 0.36, 1);
}

@keyframes lvlUpPop {
  0% { transform: scale(0.45) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.lvlup-crest-lbl {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--lvl-color, #4ade80);
}

.lvlup-crest-num {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.lvlup-tier-pill {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 999px;
  color: var(--lvl-color, #4ade80);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--lvl-color, #4ade80);
}

.lvlup-title {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 18px var(--lvl-glow, rgba(74, 222, 128, 0.6));
}

.lvlup-sub {
  margin: 0;
  font-size: 13px;
  color: #e2e8f0;
}

.lvlup-tier-banner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 900;
  color: #ffffff;
  background: color-mix(in srgb, var(--lvl-color, #38bdf8) 26%, rgba(15, 23, 42, 0.92));
  border: 1px solid var(--lvl-color, #38bdf8);
}

.lvlup-actions {
  width: 100%;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* Fixierte Tägliche Gratis-Belohnung oben im Quests-Menü */
.daily-reward-pinned {
  margin-bottom: 10px;
  flex-shrink: 0;
}

.daily-reward-card.is-cooldown {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.96));
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.daily-reward-card.is-just-claimed {
  animation: dailyClaimFlash 0.65s ease-out;
}

@keyframes dailyClaimFlash {
  0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.9), 0 0 32px rgba(56, 189, 248, 0.85); border-color: #e0f2fe; transform: scale(1.02); }
  100% { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); transform: scale(1); }
}

.daily-float-plus {
  position: absolute;
  top: 6px;
  right: 12px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: 1px solid #e0f2fe;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.75);
  pointer-events: none;
  animation: packFloatPlus 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.daily-reward-icon-box {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, rgba(56, 189, 248, 0.36), rgba(9, 13, 24, 0.9));
  border: 1.5px solid rgba(125, 211, 252, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.daily-reward-card.is-cooldown .daily-reward-icon-box {
  opacity: 0.7;
  border-color: rgba(148, 163, 184, 0.35);
}

.daily-reward-glow {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
  pointer-events: none;
}

.daily-reward-card.is-cooldown .daily-reward-glow {
  display: none;
}

.daily-reward-meta {
  flex: 1;
  min-width: 0;
}

.daily-reward-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #f8fafc;
}

.daily-reward-sub {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.3;
}

.daily-claim-btn {
  flex-shrink: 0;
  padding: 8px 11px !important;
  font-size: 11.5px !important;
  border-radius: 10px !important;
  white-space: nowrap;
}

.daily-claim-btn.is-ready {
  background: linear-gradient(135deg, #16a34a, #0284c7) !important;
  border-color: #7dd3fc !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.45);
  animation: packBtnPulseGreen 2.4s ease-in-out infinite;
}

.daily-claim-btn.is-cooldown {
  background: rgba(30, 41, 59, 0.78) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #94a3b8 !important;
  font-size: 10.5px !important;
  cursor: not-allowed;
}

.quest-xp-chip {
  color: #bef264;
  font-weight: 800;
}

body.reduced-effects .hub-level-badge.is-gold-shimmer,
body.reduced-effects .hub-level-dot,
body.reduced-effects .daily-claim-btn.is-ready,
body.reduced-effects .pack-cta-btn.is-free-pack {
  animation: none !important;
}

@media (max-width: 520px) {
  .daily-reward-card {
    flex-wrap: wrap;
    padding: 9px 10px;
  }
  .daily-claim-btn {
    width: 100%;
  }
  .hub-level-badge {
    min-width: 36px;
    padding: 3px 5px 4px;
  }
  .hub-level-num {
    font-size: 12.5px;
  }
}

/* ==================== AAA VERZAUBERUNGS-ALTAR (SCHMIEDE -> UPGRADER) ==================== */
.altar-shell {
  position: relative;
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 18%, rgba(168, 85, 247, 0.16), transparent 62%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.94), rgba(17, 12, 34, 0.96));
  border: 1.5px solid rgba(192, 132, 252, 0.38);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.altar-hero-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(59, 7, 100, 0.62), rgba(15, 23, 42, 0.84));
  border: 1px solid rgba(192, 132, 252, 0.36);
  margin-bottom: 11px;
  overflow: hidden;
}

.altar-hero-glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.32), transparent 70%);
  pointer-events: none;
}

.altar-hero-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.34), rgba(15, 23, 42, 0.9));
  border: 1.5px solid rgba(192, 132, 252, 0.55);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.32);
  flex-shrink: 0;
}

.altar-hero-meta {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.altar-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.24);
  border: 1px solid rgba(192, 132, 252, 0.42);
  border-radius: 999px;
  padding: 2px 7px;
  margin-bottom: 3px;
}

.altar-hero-title {
  font-size: 14.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.altar-hero-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.25;
}

.altar-hero-count {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(192, 132, 252, 0.42);
  color: #e9d5ff;
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.altar-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.altar-step-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #d8b4fe;
}

.altar-step-count,
.altar-compat-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(192, 132, 252, 0.34);
  color: #e9d5ff;
}

/* 1. Kompakter Horizontal-Slider für Ausrüstung */
.altar-gear-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 9px;
  margin-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 132, 252, 0.45) rgba(15, 23, 42, 0.5);
}

.altar-gear-slider::-webkit-scrollbar {
  height: 5px;
}

.altar-gear-slider::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
}

.altar-gear-slider::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.45);
  border-radius: 999px;
}

.altar-gear-tile {
  position: relative;
  flex: 0 0 112px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 7px 8px;
  border-radius: 13px;
  background:
    linear-gradient(165deg, var(--mat-tint, rgba(30, 41, 59, 0.55)), rgba(15, 23, 42, 0.92));
  border: 1.5px solid color-mix(in srgb, var(--mat-accent, #94a3b8) 38%, rgba(148, 163, 184, 0.2));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.altar-gear-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--mat-accent, #c084fc) 72%, #fff);
}

.altar-gear-tile.is-enchanted-tile {
  border-color: rgba(192, 132, 252, 0.58);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.22), inset 0 1px 0 rgba(233, 213, 255, 0.16);
}

.altar-gear-tile.is-selected {
  border-color: #e879f9;
  background:
    radial-gradient(circle at 50% 25%, rgba(192, 132, 252, 0.32), transparent 72%),
    linear-gradient(165deg, rgba(88, 28, 135, 0.68), rgba(15, 23, 42, 0.96));
  box-shadow: 0 0 0 1.5px rgba(245, 208, 254, 0.55), 0 8px 20px rgba(168, 85, 247, 0.38);
  transform: translateY(-2px);
}

.altar-tile-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}

.altar-eq-pill {
  font-size: 9px;
  font-weight: 900;
  color: #dcfce7;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.85), rgba(16, 185, 129, 0.78));
  border: 1px solid rgba(134, 239, 172, 0.7);
  border-radius: 999px;
  padding: 1px 6px;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.altar-slot-mini {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  padding: 1px 4px;
}

.altar-tile-info-btn {
  width: 19px;
  height: 19px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.6);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.altar-tile-info-btn:hover {
  border-color: #c084fc;
  color: #f8fafc;
}

.altar-tile-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(2, 6, 23, 0.68));
  border: 1px solid color-mix(in srgb, var(--mat-accent, #94a3b8) 42%, transparent);
  overflow: hidden;
}

.altar-tile-name {
  font-size: 11px;
  font-weight: 800;
  color: #f8fafc;
  text-align: center;
  line-height: 1.15;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.altar-tile-ench {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 2px 6px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.altar-tile-ench.has-ench {
  color: #f3e8ff;
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.65), rgba(168, 85, 247, 0.45));
  border-color: rgba(216, 180, 254, 0.62);
}

/* 2. Zentrale Verzauberungs-Altar-Bühne */
.altar-stage-card {
  position: relative;
  border-radius: 15px;
  padding: 13px 11px 12px;
  background:
    radial-gradient(circle at 50% 35%, rgba(168, 85, 247, 0.24), transparent 64%),
    radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--book-accent, #c084fc) 18%, transparent), transparent 55%),
    linear-gradient(170deg, rgba(24, 14, 48, 0.94), rgba(9, 13, 28, 0.97));
  border: 1.5px solid rgba(192, 132, 252, 0.42);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), inset 0 0 28px rgba(139, 92, 246, 0.12);
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.altar-stage-card.is-ready {
  border-color: rgba(216, 180, 254, 0.72);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3), inset 0 0 32px rgba(168, 85, 247, 0.18);
}

.altar-rune-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.78;
}

.altar-rune-bg svg {
  width: 240px;
  height: 130px;
  animation: altarRuneDrift 18s linear infinite;
}

@keyframes altarRuneDrift {
  0% { transform: scale(1) rotate(0deg); opacity: 0.65; }
  50% { transform: scale(1.04) rotate(180deg); opacity: 0.95; }
  100% { transform: scale(1) rotate(360deg); opacity: 0.65; }
}

.altar-stage-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(108px, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.altar-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 9px 7px;
  border-radius: 13px;
  background: rgba(10, 15, 32, 0.76);
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  min-height: 134px;
  justify-content: center;
  gap: 4px;
}

.altar-slot-item {
  border-color: color-mix(in srgb, var(--mat-accent, #c084fc) 55%, rgba(192, 132, 252, 0.35));
  background: linear-gradient(170deg, var(--mat-tint, rgba(59, 7, 100, 0.32)), rgba(10, 15, 32, 0.88));
}

.altar-slot-book.is-filled {
  border-color: color-mix(in srgb, var(--book-accent, #c084fc) 72%, #fff);
  background: linear-gradient(170deg, color-mix(in srgb, var(--book-accent, #c084fc) 22%, rgba(24, 14, 48, 0.85)), rgba(10, 15, 32, 0.9));
  box-shadow: 0 0 18px color-mix(in srgb, var(--book-accent, #c084fc) 28%, transparent);
}

.altar-slot-book.is-empty-slot {
  border-style: dashed;
  border-color: rgba(192, 132, 252, 0.38);
  background: rgba(15, 23, 42, 0.45);
}

.altar-clear-book-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(2, 6, 23, 0.75);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.altar-clear-book-btn:hover {
  color: #fff;
  border-color: #f43f5e;
}

.altar-slot-orb {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(2, 6, 23, 0.82));
  border: 1.5px solid color-mix(in srgb, var(--mat-accent, #c084fc) 55%, rgba(192, 132, 252, 0.4));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  overflow: visible;
}

.altar-slot-orb.is-book-orb {
  border-color: color-mix(in srgb, var(--book-accent, #c084fc) 75%, #fff);
  background: radial-gradient(circle, color-mix(in srgb, var(--book-accent, #c084fc) 28%, transparent), rgba(2, 6, 23, 0.86));
  cursor: default;
}

.altar-slot-orb.is-empty {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.35);
  color: #64748b;
  opacity: 0.72;
  cursor: default;
}

.altar-book-tier-tag {
  position: absolute;
  bottom: -5px;
  right: -5px;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--book-accent, #c084fc), #7e22ce);
  border: 1.5px solid #faf5ff;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.altar-book-qty-tag {
  position: absolute;
  top: -5px;
  left: -5px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #fbbf24;
  color: #fef08a;
  font-size: 9.5px;
  font-weight: 900;
}

.altar-slot-title {
  font-size: 12px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.altar-slot-title.is-muted {
  color: #94a3b8;
}

.altar-slot-meta {
  font-size: 10px;
  color: #cbd5e1;
  line-height: 1.25;
}

.altar-slot-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: 2px;
}

.altar-ench-chip {
  font-size: 9.5px;
  font-weight: 800;
  color: #f3e8ff;
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.65), rgba(168, 85, 247, 0.45));
  border: 1px solid rgba(216, 180, 254, 0.62);
  border-radius: 999px;
  padding: 1.5px 6px;
}

.altar-ench-chip.is-empty {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.24);
}

/* Mitte: Magischer Verbinder & Live-Vorschau */
.altar-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}

.altar-conduit-line {
  position: relative;
  width: 100%;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.altar-conduit-line::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.65), rgba(251, 191, 36, 0.55), rgba(192, 132, 252, 0.65));
  opacity: 0.35;
}

.altar-connector.is-active .altar-conduit-line::before {
  opacity: 0.92;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.65);
}

.altar-conduit-node {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(126, 34, 206, 0.9), rgba(15, 23, 42, 0.96));
  border: 1.5px solid rgba(216, 180, 254, 0.65);
  color: #f5d0fe;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}

.altar-preview-hint {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.25;
}

.altar-preview-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 8px;
  line-height: 1.2;
  max-width: 100%;
}

.altar-preview-badge.is-add {
  color: #dcfce7;
  background: rgba(22, 163, 74, 0.25);
  border: 1px solid rgba(74, 222, 128, 0.55);
}

.altar-preview-badge.is-upgrade {
  color: #fef08a;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.42), rgba(217, 119, 6, 0.35));
  border: 1px solid rgba(251, 191, 36, 0.72);
}

.altar-preview-badge.is-replace {
  color: #fed7aa;
  background: rgba(234, 88, 12, 0.26);
  border: 1px solid rgba(251, 146, 60, 0.62);
}

.altar-preview-badge.is-warn {
  color: #fecaca;
  background: rgba(185, 28, 28, 0.32);
  border: 1px solid rgba(248, 113, 113, 0.62);
}

.altar-preview-stat {
  font-size: 11px;
  font-weight: 900;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(192, 132, 252, 0.42);
  border-radius: 8px;
  padding: 4px 7px;
  line-height: 1.25;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Epische violette Energie-Welle beim Auslösen */
.altar-energy-wave {
  position: absolute;
  top: 50%;
  right: 0;
  width: 34px;
  height: 14px;
  border-radius: 999px;
  transform: translate(0, -50%) scaleX(0.4);
  background: linear-gradient(90deg, #fef08a, #e879f9, #a855f7, transparent);
  box-shadow: 0 0 18px #e879f9, 0 0 28px #fbbf24;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.altar-orb-burst {
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  border: 2.5px solid #e879f9;
  box-shadow: 0 0 22px #c084fc, inset 0 0 16px #fbbf24;
  opacity: 0;
  transform: scale(0.75);
  pointer-events: none;
}

.altar-stage-card.is-enchanting .altar-energy-wave {
  animation: altarWaveSurge 0.56s cubic-bezier(0.22, 0.85, 0.36, 1) forwards;
}

.altar-stage-card.is-enchanting .altar-orb-burst {
  animation: altarItemBurst 0.58s ease-out 0.18s forwards;
}

.altar-stage-card.is-enchanting .altar-slot-book.is-filled {
  animation: altarBookPulse 0.42s ease-out;
}

.altar-slot-item.is-just-enchanted,
.altar-gear-tile.is-just-enchanted {
  animation: altarJustEnchanted 0.85s ease-out;
}

@keyframes altarWaveSurge {
  0% { right: -12px; opacity: 0; transform: translate(0, -50%) scaleX(0.5); }
  20% { opacity: 1; transform: translate(0, -50%) scaleX(1.35); }
  85% { right: calc(100% - 8px); opacity: 1; transform: translate(0, -50%) scaleX(1.6); }
  100% { right: calc(100% + 14px); opacity: 0; transform: translate(0, -50%) scaleX(0.6); }
}

@keyframes altarItemBurst {
  0% { opacity: 0; transform: scale(0.75); }
  35% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.42); }
}

@keyframes altarBookPulse {
  0% { transform: scale(1); }
  45% { transform: scale(0.92); filter: brightness(1.45); }
  100% { transform: scale(1); }
}

@keyframes altarJustEnchanted {
  0% { box-shadow: 0 0 0 2px #fef08a, 0 0 28px rgba(232, 121, 249, 0.9); }
  100% { box-shadow: 0 0 0 0 rgba(232, 121, 249, 0); }
}

/* Zentraler Aktions-Button: Violett-Goldener Gradient */
.altar-enchant-btn {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.3px;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.altar-enchant-btn.is-active {
  background: linear-gradient(110deg, #7e22ce 0%, #a855f7 46%, #d97706 86%, #f59e0b 100%) !important;
  border: 1.5px solid #fde68a !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(30, 10, 52, 0.72);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.5), 0 0 18px rgba(245, 158, 11, 0.3);
}

.altar-enchant-btn.is-active:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(168, 85, 247, 0.62), 0 0 24px rgba(251, 191, 36, 0.42);
}

.altar-enchant-btn.is-disabled {
  background: rgba(30, 41, 59, 0.72) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.24) !important;
  color: #64748b !important;
  cursor: not-allowed;
  box-shadow: none !important;
}

.altar-btn-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.altar-btn-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, 0.32) 48%, transparent 68%);
  transform: translateX(-120%);
  pointer-events: none;
}

.altar-enchant-btn.is-active .altar-btn-sheen {
  animation: altarBtnSweep 3.2s ease-in-out infinite;
}

@keyframes altarBtnSweep {
  0%, 62% { transform: translateX(-120%); }
  100% { transform: translateX(130%); }
}

/* 3. Gestapelte & intelligent gefilterte Verzauberungsbücher */
.altar-books-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.altar-book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 9px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--book-accent, #c084fc) 18%, transparent), transparent 64%),
    linear-gradient(165deg, rgba(22, 19, 44, 0.92), rgba(11, 16, 33, 0.96));
  border: 1.5px solid color-mix(in srgb, var(--book-accent, #c084fc) 42%, rgba(148, 163, 184, 0.2));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.36);
  color: #f8fafc;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.altar-book-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--book-accent, #c084fc) 82%, #fff);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--book-accent, #c084fc) 26%, rgba(0, 0, 0, 0.45));
}

.altar-book-card.is-selected {
  border-color: #fde68a;
  background:
    radial-gradient(circle at 50% 15%, rgba(232, 121, 249, 0.28), transparent 68%),
    linear-gradient(165deg, rgba(88, 28, 135, 0.65), rgba(15, 23, 42, 0.96));
  box-shadow: 0 0 0 1.5px rgba(232, 121, 249, 0.65), 0 8px 24px rgba(168, 85, 247, 0.42);
  transform: translateY(-2px);
}

.altar-book-card.is-maxed {
  opacity: 0.72;
}

.altar-book-card.is-incompatible {
  opacity: 0.44;
  filter: grayscale(0.55);
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.22);
}

.altar-stack-qty {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.34);
}

.altar-stack-qty.is-multi {
  color: #fef08a;
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.85), rgba(126, 34, 206, 0.72));
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.32);
}

.altar-book-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 26px;
}

.altar-book-stage {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--book-accent, #c084fc) 26%, transparent), rgba(2, 6, 23, 0.82));
  border: 1px solid color-mix(in srgb, var(--book-accent, #c084fc) 52%, transparent);
  flex-shrink: 0;
}

.altar-book-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.altar-book-title {
  font-size: 12px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.altar-book-desc {
  font-size: 10.5px;
  color: #cbd5e1;
  line-height: 1.3;
  flex: 1;
}

.altar-book-foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 2px;
}

.altar-book-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 900;
  padding: 2.5px 8px;
  border-radius: 999px;
}

.altar-book-status.is-ready {
  color: #e9d5ff;
  background: rgba(168, 85, 247, 0.22);
  border: 1px solid rgba(192, 132, 252, 0.42);
}

.altar-book-status.is-selected {
  color: #fef08a;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.65), rgba(217, 119, 6, 0.55));
  border: 1px solid #fde68a;
}

.altar-book-status.is-maxed {
  color: #fed7aa;
  background: rgba(217, 119, 6, 0.22);
  border: 1px solid rgba(251, 146, 60, 0.45);
}

.altar-book-status.is-incompat {
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.34);
}

.altar-books-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px dashed rgba(192, 132, 252, 0.35);
}

.altar-empty-ico {
  color: #c084fc;
  opacity: 0.85;
}

.altar-empty-text {
  font-size: 11.5px;
  color: #cbd5e1;
  max-width: 310px;
  line-height: 1.35;
}

.altar-empty-note {
  font-size: 12px;
  color: #94a3b8;
  padding: 8px 4px;
}

body.reduced-effects .altar-rune-bg svg,
body.reduced-effects .altar-btn-sheen,
body.reduced-effects .altar-energy-wave,
body.reduced-effects .altar-orb-burst {
  animation: none !important;
}

@media (max-width: 520px) {
  .altar-stage-grid {
    grid-template-columns: minmax(0, 1fr) minmax(88px, 0.95fr) minmax(0, 1fr);
    gap: 6px;
  }
  .altar-slot {
    padding: 8px 5px;
    min-height: 124px;
  }
  .altar-slot-orb {
    width: 52px;
    height: 52px;
  }
  .altar-books-grid {
    grid-template-columns: 1fr;
  }
  .altar-hero-header {
    flex-wrap: wrap;
  }
}

.pack-cta-plus {
  font-weight: 900;
  opacity: 0.85;
  margin: 0 1px;
}

.pack-wallet-sep {
  opacity: 0.45;
  margin: 0 2px;
}

/* ==================== PROGRESSION-LOCKS, FEATURE-UNLOCKS & AAA BLACKSTAR-SCHMIEDE ==================== */
.tab-btn.is-locked-tab {
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.22);
}

.tab-lock-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.45);
  color: #e9d5ff;
  margin-left: 2px;
}

/* Feature-Unlock-Badges im Level-Menü & Level-Up-Modal */
.lvl-unlock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  color: #fef08a;
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.65), rgba(180, 83, 9, 0.55));
  border: 1px solid rgba(251, 191, 36, 0.72);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.26);
}

.lvl-unlock-badge.is-bright {
  font-size: 11px;
  padding: 4px 10px;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.42);
}

.lvlup-unlock-card {
  width: 100%;
  margin: 4px 0 6px;
  padding: 9px 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.52), rgba(120, 53, 15, 0.36));
  border: 1.5px solid rgba(251, 191, 36, 0.68);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lvlup-unlock-head {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #fde68a;
}

.lvlup-unlock-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

/* AAA Vorschau-Sperre (Händler & Schmiedetisch) */
.aaa-lock-panel {
  position: relative;
  border-radius: 16px;
  padding: 20px 14px;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(168, 85, 247, 0.24), transparent 64%),
    linear-gradient(170deg, rgba(15, 23, 42, 0.94), rgba(14, 10, 30, 0.98));
  border: 1.5px solid rgba(192, 132, 252, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.aaa-lock-panel.is-forge {
  background:
    radial-gradient(circle at 50% 20%, rgba(168, 85, 247, 0.24), transparent 55%),
    radial-gradient(circle at 50% 92%, rgba(234, 88, 12, 0.28), transparent 58%),
    linear-gradient(170deg, rgba(24, 14, 34, 0.96), rgba(12, 10, 22, 0.98));
  border-color: rgba(251, 146, 60, 0.48);
}

.aaa-lock-bg-preview {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  filter: blur(4px);
  opacity: 0.28;
  pointer-events: none;
}

.aaa-lock-ghost-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
}

.aaa-lock-ghost-row span {
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.28), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.aaa-lock-bg-preview.is-forge .aaa-lock-ghost-row span {
  background: linear-gradient(145deg, rgba(234, 88, 12, 0.28), rgba(88, 28, 135, 0.35));
  border-color: rgba(251, 191, 36, 0.35);
}

/* Altar Glassmorphism-Lock-Overlay (Silhouetten schimmern durch) */
.altar-lock-host {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.altar-lock-backdrop {
  filter: blur(4.5px) saturate(0.65);
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
  max-height: 360px;
  overflow: hidden;
}

.aaa-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: radial-gradient(circle at 50% 35%, rgba(59, 7, 100, 0.56), rgba(9, 13, 28, 0.82));
  backdrop-filter: blur(3px);
}

.aaa-lock-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  padding: 18px 16px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(165deg, rgba(20, 18, 42, 0.92), rgba(9, 13, 28, 0.96));
  border: 1.5px solid rgba(192, 132, 252, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.58), 0 0 28px rgba(168, 85, 247, 0.24);
}

.aaa-lock-card.is-forge {
  border-color: rgba(251, 146, 60, 0.62);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.58), 0 0 30px rgba(234, 88, 12, 0.24), 0 0 22px rgba(168, 85, 247, 0.22);
}

.aaa-lock-emblem {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.36), rgba(15, 23, 42, 0.92));
  border: 1.5px solid rgba(216, 180, 254, 0.68);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.45);
}

.aaa-lock-emblem.is-forge {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.36), rgba(59, 7, 100, 0.85));
  border-color: rgba(253, 186, 116, 0.72);
  box-shadow: 0 0 26px rgba(249, 115, 22, 0.42), 0 0 16px rgba(192, 132, 252, 0.35);
}

.aaa-lock-req-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.35px;
  color: #f3e8ff;
  background: rgba(168, 85, 247, 0.26);
  border: 1px solid rgba(192, 132, 252, 0.55);
}

.aaa-lock-req-pill.is-forge {
  color: #fef08a;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.42), rgba(126, 34, 206, 0.42));
  border-color: rgba(251, 191, 36, 0.62);
}

.aaa-lock-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #f8fafc;
}

.aaa-lock-desc {
  margin: 0;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.aaa-lock-prog-box {
  width: 100%;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.aaa-lock-prog-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  margin-bottom: 5px;
}

.aaa-lock-prog-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.9);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.aaa-lock-prog-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9333ea, #c084fc, #fde68a);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.65);
}

.aaa-lock-prog-fill.is-forge {
  background: linear-gradient(90deg, #ea580c, #f59e0b, #c084fc);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.65);
}

.aaa-lock-rem {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
}

.aaa-lock-cta {
  width: 100%;
  margin-top: 2px;
}

/* Stufe-II-Buch Level-15 Sperre im Händler */
.trader-book-card.is-level-locked {
  border-color: rgba(148, 163, 184, 0.34);
  background:
    radial-gradient(circle at 20% 20%, rgba(100, 116, 139, 0.16), transparent 60%),
    linear-gradient(165deg, rgba(15, 23, 42, 0.9), rgba(10, 14, 28, 0.96));
}

.trader-book-card.is-level-locked .trader-book-stage {
  filter: saturate(0.55) brightness(0.82);
}

.trader-book-lock-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid #c084fc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.trader-buy-btn.is-level-locked {
  background: rgba(30, 41, 59, 0.85) !important;
  border: 1.5px solid rgba(192, 132, 252, 0.42) !important;
  color: #d8b4fe !important;
  cursor: pointer;
  gap: 6px;
}

/* ==================== AAA BLACKSTAR-SCHMIEDETISCH (AB LEVEL 20) ==================== */
.forge-shell {
  position: relative;
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.24), transparent 56%),
    radial-gradient(circle at 50% 100%, rgba(234, 88, 12, 0.24), transparent 58%),
    linear-gradient(170deg, rgba(22, 14, 34, 0.95), rgba(10, 11, 24, 0.98));
  border: 1.5px solid rgba(251, 146, 60, 0.44);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(253, 230, 138, 0.28),
    inset 0 0 26px rgba(168, 85, 247, 0.12);
  overflow: hidden;
}

.forge-sparks-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.forge-spark {
  position: absolute;
  bottom: -6px;
  left: var(--sx, 50%);
  width: 4px;
  height: 4px;
  border-radius: 999px;
  opacity: 0;
  animation: forgeSparkRise var(--sdur, 3.2s) ease-out var(--sdel, 0s) infinite;
}

.forge-spark.is-ember {
  background: #fb923c;
  box-shadow: 0 0 8px #f97316, 0 0 14px #fde047;
}

.forge-spark.is-cosmic {
  background: #e879f9;
  box-shadow: 0 0 8px #a855f7, 0 0 14px #fde68a;
}

@keyframes forgeSparkRise {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  18% { opacity: 0.85; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-210px) translateX(12px) scale(0.3); opacity: 0; }
}

.forge-hero-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(124, 45, 18, 0.52), rgba(59, 7, 100, 0.58));
  border: 1px solid rgba(251, 191, 36, 0.42);
  margin-bottom: 12px;
  overflow: hidden;
}

.forge-hero-glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.34), transparent 70%);
  pointer-events: none;
}

.forge-hero-icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.32), rgba(24, 14, 48, 0.92));
  border: 1.5px solid rgba(253, 186, 116, 0.62);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.34);
  flex-shrink: 0;
}

.forge-hero-meta {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.forge-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #fef08a;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.38), rgba(147, 51, 234, 0.4));
  border: 1px solid rgba(251, 191, 36, 0.52);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 3px;
}

.forge-hero-title {
  font-size: 15px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.forge-hero-sub {
  font-size: 11px;
  color: #e2e8f0;
  margin-top: 2px;
  line-height: 1.25;
}

.forge-wallet-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 900;
  flex-shrink: 0;
}

.forge-wallet-pill.has-bs {
  border-color: rgba(251, 191, 36, 0.72);
  color: #fef08a;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.25);
}

.forge-cards-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.forge-card {
  position: relative;
  border-radius: 15px;
  padding: 12px;
  background:
    radial-gradient(circle at 14% 25%, rgba(56, 189, 248, 0.14), transparent 52%),
    radial-gradient(circle at 86% 25%, rgba(168, 85, 247, 0.24), transparent 55%),
    linear-gradient(170deg, rgba(20, 18, 38, 0.94), rgba(9, 13, 28, 0.97));
  border: 1.5px solid rgba(251, 191, 36, 0.36);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forge-card:hover {
  border-color: rgba(251, 191, 36, 0.62);
}

.forge-card-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.forge-item-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 10px 7px 9px;
  border-radius: 13px;
}

.forge-item-box.is-diamond {
  background: linear-gradient(165deg, rgba(12, 74, 110, 0.46), rgba(10, 15, 32, 0.88));
  border: 1.5px solid rgba(56, 189, 248, 0.48);
}

.forge-item-box.is-blackstar {
  background: linear-gradient(165deg, rgba(88, 28, 135, 0.56), rgba(24, 12, 38, 0.92));
  border: 1.5px solid rgba(251, 191, 36, 0.68);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.28), inset 0 0 16px rgba(251, 191, 36, 0.1);
}

.forge-eq-tag {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 8.5px;
  font-weight: 900;
  color: #dcfce7;
  background: rgba(22, 163, 74, 0.85);
  border: 1px solid rgba(134, 239, 172, 0.7);
  border-radius: 999px;
  padding: 1px 5px;
}

.forge-info-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #cbd5e1;
  opacity: 0.85;
}

.forge-item-orb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.forge-item-orb.is-diamond {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.26), rgba(2, 6, 23, 0.82));
  border: 1.5px solid rgba(125, 211, 252, 0.62);
}

.forge-item-orb.is-blackstar {
  background: radial-gradient(circle, rgba(192, 132, 252, 0.34), rgba(15, 8, 32, 0.9));
  border: 1.5px solid rgba(253, 224, 71, 0.72);
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.42);
}

.forge-bs-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 25%, rgba(253, 224, 71, 0.34) 48%, rgba(232, 121, 249, 0.25) 56%, transparent 75%);
  transform: translateX(-130%);
  animation: altarBtnSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}

.forge-item-name {
  font-size: 11.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.forge-item-name.is-bs {
  color: #fef08a;
}

.forge-tier-tag {
  font-size: 9px;
  font-weight: 900;
  padding: 1.5px 7px;
  border-radius: 999px;
}

.forge-tier-tag.is-diamond {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.24);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.forge-tier-tag.is-blackstar {
  color: #fef08a;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.55), rgba(217, 119, 6, 0.45));
  border: 1px solid rgba(251, 191, 36, 0.65);
}

.forge-catalyst-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.forge-catalyst-orb {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.32), rgba(88, 28, 135, 0.82));
  border: 1.5px solid #fde68a;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.42), 0 0 14px rgba(192, 132, 252, 0.42);
}

.forge-catalyst-lbl {
  font-size: 9.5px;
  font-weight: 900;
  color: #fde68a;
  text-align: center;
  white-space: nowrap;
}

.forge-arrow-track {
  font-size: 15px;
  font-weight: 900;
  color: #fb923c;
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.75);
  line-height: 1;
}

.forge-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.forge-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 9px;
  font-size: 11px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.forge-stat-pill.is-atk {
  border-color: rgba(248, 113, 113, 0.52);
  color: #fecaca;
}

.forge-stat-pill.is-tough {
  border-color: rgba(34, 211, 238, 0.52);
  color: #cffafe;
}

.forge-stat-pill.is-dur {
  border-color: rgba(74, 222, 128, 0.48);
  color: #bbf7d0;
}

.forge-preserve-row {
  margin-bottom: 10px;
}

.forge-keep-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.52);
}

.forge-keep-pill.is-highlighted {
  color: #dcfce7;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.45), rgba(126, 34, 206, 0.38));
  border-color: rgba(134, 239, 172, 0.78);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.24);
}

.forge-upgrade-btn {
  position: relative;
  width: 100%;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  overflow: hidden;
}

.forge-upgrade-btn.is-ready {
  background: linear-gradient(110deg, #b45309 0%, #f59e0b 38%, #9333ea 82%, #7e22ce 100%) !important;
  border: 1.5px solid #fef08a !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(30, 10, 42, 0.78);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.38), 0 0 18px rgba(168, 85, 247, 0.34);
}

.forge-upgrade-btn.is-ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.5), 0 0 24px rgba(192, 132, 252, 0.45);
}

.forge-upgrade-btn.is-disabled {
  background: rgba(30, 41, 59, 0.75) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.25) !important;
  color: #64748b !important;
  cursor: not-allowed;
}

.forge-upgrade-btn.is-ready .altar-btn-sheen {
  animation: altarBtnSweep 3.2s ease-in-out infinite;
}

.forge-btn-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* Epische Schmiede-Animation (Glut-Blitz + kosmische Blackstar-Lichtwelle) */
.forge-flash-wave {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 15%, rgba(251, 146, 60, 0.65) 42%, rgba(253, 224, 71, 0.85) 52%, rgba(192, 132, 252, 0.75) 64%, transparent 85%);
  transform: translateX(-125%);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}

.forge-card.is-forging {
  border-color: #fef08a !important;
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.55), 0 0 28px rgba(192, 132, 252, 0.55) !important;
}

.forge-card.is-forging .forge-flash-wave {
  animation: forgeCosmicSweep 0.58s cubic-bezier(0.22, 0.85, 0.36, 1) forwards;
}

.forge-card.is-forging .forge-catalyst-orb {
  animation: altarBookPulse 0.48s ease-out;
}

@keyframes forgeCosmicSweep {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(125%); opacity: 0; }
}

.forge-empty-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
  padding: 22px 14px;
  border-radius: 14px;
  background: rgba(10, 15, 32, 0.68);
  border: 1.5px dashed rgba(251, 146, 60, 0.42);
}

.forge-empty-text {
  font-size: 12px;
  color: #cbd5e1;
  max-width: 320px;
  line-height: 1.4;
}

body.reduced-effects .forge-spark,
body.reduced-effects .forge-bs-shimmer,
body.reduced-effects .forge-flash-wave {
  animation: none !important;
}

@media (max-width: 520px) {
  .forge-card-stage {
    grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
    gap: 5px;
  }
  .forge-item-orb {
    width: 50px;
    height: 50px;
  }
  .forge-hero-header {
    flex-wrap: wrap;
  }
}

/* ==================== AAA 10:1 KARTEN-UPGRADER (FUSION) ==================== */
.fuse-shell {
  position: relative;
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(circle at 18% 0%, rgba(251, 191, 36, 0.16), transparent 54%),
    radial-gradient(circle at 86% 10%, rgba(56, 189, 248, 0.14), transparent 54%),
    linear-gradient(168deg, rgba(16, 22, 42, 0.95), rgba(10, 14, 28, 0.98));
  border: 1.5px solid rgba(251, 191, 36, 0.36);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(254, 240, 138, 0.2);
  overflow: hidden;
}

.fuse-hero-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.45), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(251, 191, 36, 0.36);
  margin-bottom: 10px;
  overflow: hidden;
}

.fuse-hero-glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 70%);
  pointer-events: none;
}

.fuse-hero-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28), rgba(15, 23, 42, 0.92));
  border: 1.5px solid rgba(253, 224, 71, 0.55);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.28);
  flex-shrink: 0;
}

.fuse-hero-meta {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.fuse-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #fef08a;
  background: rgba(217, 119, 6, 0.28);
  border: 1px solid rgba(251, 191, 36, 0.46);
  border-radius: 999px;
  padding: 2px 7px;
  margin-bottom: 3px;
}

.fuse-hero-title {
  font-size: 14.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.fuse-hero-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.25;
}

.fuse-ready-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.fuse-ready-pill.has-ready {
  border-color: rgba(74, 222, 128, 0.65);
  color: #bbf7d0;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}

.fuse-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 1px 1px 8px;
  margin-bottom: 6px;
  scrollbar-width: none;
}

.fuse-filter-bar::-webkit-scrollbar {
  display: none;
}

.fuse-filter-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.fuse-filter-pill.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--f-from, #fbbf24) 26%, rgba(15, 23, 42, 0.92)), color-mix(in srgb, var(--f-to, #fbbf24) 32%, rgba(15, 23, 42, 0.92)));
  border-color: color-mix(in srgb, var(--f-to, #fbbf24) 80%, #fff);
  box-shadow: 0 0 12px color-mix(in srgb, var(--f-to, #fbbf24) 32%, transparent);
}

.fuse-filter-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.fuse-filter-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}

.fuse-filter-cnt {
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.6);
  font-size: 10px;
  color: #e2e8f0;
}

.fuse-hint-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
  font-size: 11.5px;
  margin-bottom: 9px;
  line-height: 1.35;
}

.fuse-cards-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fuse-card {
  position: relative;
  border-radius: 14px;
  padding: 11px;
  background:
    radial-gradient(circle at 12% 30%, color-mix(in srgb, var(--from-col, #4ade80) 16%, transparent), transparent 50%),
    radial-gradient(circle at 88% 30%, color-mix(in srgb, var(--to-col, #38bdf8) 22%, transparent), transparent 55%),
    linear-gradient(168deg, rgba(18, 25, 46, 0.94), rgba(9, 13, 28, 0.97));
  border: 1.5px solid color-mix(in srgb, var(--to-col, #38bdf8) 42%, rgba(148, 163, 184, 0.2));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.fuse-card.is-ready {
  border-color: color-mix(in srgb, var(--to-col, #fbbf24) 72%, #fff);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--to-col, #fbbf24) 22%, rgba(0, 0, 0, 0.45));
}

.fuse-card-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.fuse-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 12px;
}

.fuse-side.is-from {
  background: linear-gradient(165deg, color-mix(in srgb, var(--from-col, #4ade80) 16%, rgba(15, 23, 42, 0.85)), rgba(9, 13, 28, 0.9));
  border: 1.5px solid color-mix(in srgb, var(--from-col, #4ade80) 52%, transparent);
}

.fuse-side.is-to {
  background: linear-gradient(165deg, color-mix(in srgb, var(--to-col, #38bdf8) 22%, rgba(15, 23, 42, 0.85)), rgba(9, 13, 28, 0.92));
  border: 1.5px solid color-mix(in srgb, var(--to-col, #38bdf8) 72%, #fff);
  box-shadow: 0 0 16px color-mix(in srgb, var(--to-col, #38bdf8) 24%, transparent);
}

.fuse-mob-orb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.8);
}

.fuse-mob-orb svg {
  width: 42px;
  height: 42px;
}

.fuse-mob-orb.is-from {
  border: 2px solid var(--from-col, #4ade80);
  box-shadow: 0 0 0 2px rgba(2, 6, 23, 0.7), 0 0 12px color-mix(in srgb, var(--from-col, #4ade80) 35%, transparent);
}

.fuse-mob-orb.is-to {
  border: 2px solid var(--to-col, #38bdf8);
  box-shadow: 0 0 0 2px rgba(2, 6, 23, 0.7), 0 0 16px color-mix(in srgb, var(--to-col, #38bdf8) 48%, transparent);
  overflow: hidden;
}

.fuse-to-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 25%, rgba(255, 255, 255, 0.35) 50%, transparent 74%);
  transform: translateX(-130%);
  animation: altarBtnSweep 3.6s ease-in-out infinite;
  pointer-events: none;
}

.fuse-qty-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid var(--from-col, #4ade80);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.fuse-qty-badge.is-ready {
  color: #fef08a;
  border-color: #fde047;
  background: linear-gradient(135deg, #b45309, #7e22ce);
}

.fuse-card-name {
  font-size: 11px;
  font-weight: 900;
  color: #f8fafc;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fuse-card-name.is-to {
  color: color-mix(in srgb, var(--to-col, #38bdf8) 45%, #ffffff);
}

.fuse-rar-pill {
  font-size: 9px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
}

.fuse-rar-pill.is-from {
  color: var(--from-col, #4ade80);
  background: color-mix(in srgb, var(--from-col, #4ade80) 18%, rgba(2, 6, 23, 0.8));
  border: 1px solid color-mix(in srgb, var(--from-col, #4ade80) 50%, transparent);
}

.fuse-rar-pill.is-to {
  color: #ffffff;
  background: color-mix(in srgb, var(--to-col, #38bdf8) 42%, rgba(2, 6, 23, 0.85));
  border: 1px solid var(--to-col, #38bdf8);
}

.fuse-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.fuse-arrow-orb {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--to-col, #fbbf24) 36%, rgba(15, 23, 42, 0.92)), rgba(2, 6, 23, 0.92));
  border: 1.5px solid var(--to-col, #fbbf24);
  box-shadow: 0 0 14px color-mix(in srgb, var(--to-col, #fbbf24) 40%, transparent);
}

.fuse-prog-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.fuse-prog-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #e2e8f0;
}

.fuse-prog-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.fuse-prog-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--from-col, #4ade80), var(--to-col, #38bdf8));
}

.fuse-prog-fill.is-ready {
  background: linear-gradient(90deg, #22c55e, var(--to-col, #fbbf24), #fef08a);
  box-shadow: 0 0 10px color-mix(in srgb, var(--to-col, #fbbf24) 65%, transparent);
}

.fuse-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 9px;
}

.fuse-boost-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 800;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.fuse-xp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  color: #bef264;
  background: rgba(77, 124, 15, 0.34);
  border: 1px solid rgba(163, 230, 53, 0.55);
}

.fuse-cta-btn {
  position: relative;
  width: 100%;
  padding: 10px 12px !important;
  border-radius: 11px !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  overflow: hidden;
}

.fuse-cta-btn.is-ready {
  background: linear-gradient(110deg, color-mix(in srgb, var(--to-col, #fbbf24) 76%, #0f172a) 0%, var(--to-col, #f59e0b) 55%, #d97706 100%) !important;
  border: 1.5px solid #fef08a !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(2, 6, 23, 0.78);
  box-shadow: 0 5px 18px color-mix(in srgb, var(--to-col, #f59e0b) 42%, transparent);
}

.fuse-cta-btn.is-ready .altar-btn-sheen {
  animation: altarBtnSweep 3.4s ease-in-out infinite;
}

.fuse-cta-btn.is-disabled {
  background: rgba(30, 41, 59, 0.72) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.22) !important;
  color: #64748b !important;
  cursor: not-allowed;
}

.fuse-btn-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fuse-wave-flash {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 15%, color-mix(in srgb, var(--from-col, #4ade80) 65%, transparent) 38%, #fef08a 52%, color-mix(in srgb, var(--to-col, #38bdf8) 78%, transparent) 66%, transparent 86%);
  transform: translateX(-125%);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}

.fuse-card.is-fusing .fuse-wave-flash {
  animation: forgeCosmicSweep 0.46s cubic-bezier(0.22, 0.85, 0.36, 1) forwards;
}

.fuse-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 14px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px dashed rgba(148, 163, 184, 0.34);
}

.fuse-empty-text {
  font-size: 12px;
  color: #cbd5e1;
  max-width: 320px;
  line-height: 1.4;
}

/* ==================== AAA WERKBANK & ALCHEMIE-BRAUSTATION ==================== */
.wb-shell {
  position: relative;
  border-radius: 16px;
  padding: 12px;
  background:
    radial-gradient(circle at 18% 0%, rgba(16, 185, 129, 0.16), transparent 52%),
    linear-gradient(170deg, rgba(15, 23, 42, 0.95), rgba(9, 14, 28, 0.98));
  border: 1.5px solid rgba(52, 211, 153, 0.34);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(167, 243, 208, 0.16);
}

.wb-hero-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.48), rgba(15, 23, 42, 0.86));
  border: 1px solid rgba(52, 211, 153, 0.36);
  margin-bottom: 10px;
  overflow: hidden;
}

.wb-hero-glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
  pointer-events: none;
}

.wb-hero-icon {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), rgba(15, 23, 42, 0.92));
  border: 1.5px solid rgba(110, 231, 183, 0.55);
  flex-shrink: 0;
}

.wb-hero-meta {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.wb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.24);
  border: 1px solid rgba(52, 211, 153, 0.44);
  border-radius: 999px;
  padding: 2px 7px;
  margin-bottom: 3px;
}

.wb-hero-title {
  font-size: 15px;
  font-weight: 900;
  color: #f8fafc;
}

.wb-hero-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.25;
}

.wb-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 11px;
}

.wb-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wb-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.wb-filter-pill.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.42), rgba(2, 132, 199, 0.34));
  border-color: #6ee7b7;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.26);
}

.wb-filter-cnt {
  font-size: 10px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
}

.wb-ready-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.wb-ready-toggle.is-on {
  color: #dcfce7;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.55), rgba(16, 185, 129, 0.45));
  border-color: #86efac;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.32);
}

.wb-ready-cnt {
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.65);
  font-size: 10px;
}

.wb-sub-divider {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 2px 7px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  margin-bottom: 9px;
}

.wb-sub-title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a7f3d0;
}

.wb-sub-hint {
  font-size: 10.5px;
  color: #94a3b8;
}

.wb-cards-grid,
.alchemy-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.wb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background:
    linear-gradient(165deg, var(--mat-tint, rgba(51, 65, 85, 0.42)), rgba(10, 15, 32, 0.96));
  border: 1.5px solid color-mix(in srgb, var(--mat-accent, #94a3b8) 42%, rgba(148, 163, 184, 0.2));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.18s ease;
}

.wb-card.is-craftable {
  border-color: color-mix(in srgb, var(--mat-accent, #4ade80) 68%, rgba(74, 222, 128, 0.5));
}

.wb-card:hover {
  transform: translateY(-1px);
}

.wb-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.wb-card-icon-orb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(2, 6, 23, 0.8));
  border: 1.5px solid color-mix(in srgb, var(--mat-accent, #94a3b8) 55%, transparent);
  flex-shrink: 0;
}

.wb-card-head {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Layout-Fix: Info-Icon (i) bleibt IMMER sauber rechts neben dem Titel */
.wb-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.wb-card-title {
  font-size: 12.5px;
  font-weight: 900;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.wb-card-info-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
}

.wb-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.wb-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 10px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.wb-stat-pill.is-atk {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.5);
}

.wb-stat-pill.is-arm {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.5);
}

.wb-own-pill {
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
}

.wb-own-pill.is-equipped {
  color: #dcfce7;
  background: rgba(22, 163, 74, 0.75);
  border: 1px solid rgba(134, 239, 172, 0.7);
}

.wb-own-pill.is-owned {
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.42);
}

.wb-ing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  align-content: flex-start;
}

.wb-ing-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px 3px 4px;
  border-radius: 8px;
  font-size: 10.5px;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.wb-ing-chip.is-ok {
  border-color: rgba(74, 222, 128, 0.55);
  color: #dcfce7;
}

.wb-ing-chip.is-missing {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.wb-ing-art {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wb-ing-art svg {
  width: 17px;
  height: 17px;
}

.wb-ing-txt {
  white-space: nowrap;
}

.wb-action-btn,
.alchemy-brew-btn {
  position: relative;
  width: 100%;
  padding: 9px 10px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  overflow: hidden;
}

.wb-action-btn.is-craft-ready {
  background: linear-gradient(115deg, #15803d 0%, #10b981 55%, #059669 100%) !important;
  border: 1.5px solid #86efac !important;
  color: #ffffff !important;
  box-shadow: 0 5px 16px rgba(16, 185, 129, 0.38);
}

.wb-action-btn.is-craft-ready .altar-btn-sheen,
.alchemy-brew-btn.is-ready .altar-btn-sheen {
  animation: altarBtnSweep 3.4s ease-in-out infinite;
}

.wb-action-btn.is-disabled,
.alchemy-brew-btn.is-disabled {
  background: rgba(30, 41, 59, 0.76) !important;
  border: 1.5px solid rgba(148, 163, 184, 0.24) !important;
  color: #64748b !important;
  cursor: not-allowed;
}

.wb-btn-content {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wb-xp-chip {
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  color: #fef08a;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(254, 240, 138, 0.45);
}

.wb-craft-flash {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 18%, rgba(134, 239, 172, 0.55) 46%, rgba(254, 240, 138, 0.75) 54%, transparent 82%);
  transform: translateX(-125%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.wb-card.is-crafting .wb-craft-flash {
  animation: forgeCosmicSweep 0.42s ease-out forwards;
}

/* Bereich B: Eigener abgegrenzter Alchemie- & Braustation-Container */
.alchemy-shell {
  position: relative;
  margin-top: 14px;
  padding: 12px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 212, 191, 0.2), transparent 56%),
    radial-gradient(circle at 85% 95%, rgba(139, 92, 246, 0.26), transparent 58%),
    linear-gradient(168deg, rgba(16, 28, 42, 0.94), rgba(20, 14, 44, 0.98));
  border: 1.5px solid rgba(45, 212, 191, 0.44);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(153, 246, 228, 0.28);
  overflow: hidden;
}

.alchemy-bubbles-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.alchemy-bubble {
  position: absolute;
  bottom: -10px;
  left: var(--bx, 50%);
  width: var(--bsz, 6px);
  height: var(--bsz, 6px);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, rgba(45, 212, 191, 0.72), rgba(168, 85, 247, 0.5));
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.55);
  opacity: 0;
  animation: alchemyBubbleRise var(--bdur, 3.6s) ease-in-out var(--bdel, 0s) infinite;
}

@keyframes alchemyBubbleRise {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  20% { opacity: 0.72; }
  80% { opacity: 0.45; }
  100% { transform: translateY(-200px) translateX(-8px) scale(1.1); opacity: 0; }
}

.alchemy-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.44), rgba(88, 28, 135, 0.48));
  border: 1px solid rgba(94, 234, 212, 0.38);
  margin-bottom: 10px;
}

.alchemy-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.32), rgba(30, 14, 58, 0.92));
  border: 1.5px solid rgba(153, 246, 228, 0.6);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.3);
  flex-shrink: 0;
}

.alchemy-header-meta {
  flex: 1;
  min-width: 0;
}

.alchemy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #99f6e4;
  background: rgba(20, 184, 166, 0.24);
  border: 1px solid rgba(94, 234, 212, 0.48);
  border-radius: 999px;
  padding: 2px 7px;
  margin-bottom: 3px;
}

.alchemy-title {
  font-size: 14.5px;
  font-weight: 900;
  color: #f8fafc;
}

.alchemy-sub {
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.25;
}

.alchemy-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 22%, var(--pot-tint, rgba(131, 24, 67, 0.35)), transparent 62%),
    linear-gradient(168deg, rgba(18, 22, 46, 0.92), rgba(10, 12, 30, 0.96));
  border: 1.5px solid color-mix(in srgb, var(--pot-col, #ec4899) 52%, rgba(148, 163, 184, 0.2));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42), 0 0 16px color-mix(in srgb, var(--pot-col, #ec4899) 18%, transparent);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.18s ease;
}

.alchemy-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--pot-col, #ec4899) 82%, #fff);
}

.alchemy-flask-orb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--pot-glow, rgba(236, 72, 153, 0.34)), rgba(2, 6, 23, 0.85));
  border: 1.5px solid color-mix(in srgb, var(--pot-col, #ec4899) 72%, #fff);
  box-shadow: 0 0 14px var(--pot-glow, rgba(236, 72, 153, 0.34));
  flex-shrink: 0;
}

.alchemy-flask-art {
  width: 38px;
  height: 38px;
}

.alchemy-flask-art svg {
  width: 38px;
  height: 38px;
}

.alchemy-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 10px;
  color: #ffffff;
  background: color-mix(in srgb, var(--pot-col, #ec4899) 28%, rgba(2, 6, 23, 0.82));
  border: 1px solid color-mix(in srgb, var(--pot-col, #ec4899) 64%, transparent);
}

.alchemy-owned-pill {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.alchemy-brew-btn.is-ready {
  background: linear-gradient(110deg, #0d9488 0%, #0891b2 42%, #7c3aed 88%, #9333ea 100%) !important;
  border: 1.5px solid #99f6e4 !important;
  color: #ffffff !important;
  box-shadow: 0 5px 18px rgba(20, 184, 166, 0.36), 0 0 14px rgba(139, 92, 246, 0.3);
}

.alchemy-brew-wave {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 16%, var(--pot-glow, rgba(236, 72, 153, 0.55)) 42%, color-mix(in srgb, var(--pot-col, #ec4899) 85%, #fff) 54%, rgba(45, 212, 191, 0.55) 68%, transparent 86%);
  transform: translateX(-125%);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.alchemy-card.is-brewing .alchemy-brew-wave {
  animation: forgeCosmicSweep 0.44s ease-out forwards;
}

body.reduced-effects .fuse-to-sheen,
body.reduced-effects .fuse-wave-flash,
body.reduced-effects .wb-craft-flash,
body.reduced-effects .alchemy-bubble,
body.reduced-effects .alchemy-brew-wave {
  animation: none !important;
}

@media (max-width: 520px) {
  .fuse-card-stage {
    grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr);
    gap: 5px;
  }
  .fuse-mob-orb {
    width: 44px;
    height: 44px;
  }
  .fuse-mob-orb svg {
    width: 34px;
    height: 34px;
  }
  .wb-cards-grid,
  .alchemy-cards-grid {
    grid-template-columns: 1fr;
  }
  .fuse-hero-header,
  .wb-hero-header {
    flex-wrap: wrap;
  }
}

/* ==================== AAA SEGMENTED SUB-TABS & HORIZONTAL SWIPE (SCHMIEDE) ==================== */
.ws-segmented-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-seg-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  border-radius: 14px;
  background: rgba(9, 13, 28, 0.88);
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.ws-seg-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.48), rgba(245, 158, 11, 0.36));
  border: 1px solid rgba(253, 224, 71, 0.62);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.28);
  transition: transform 0.26s cubic-bezier(0.22, 0.85, 0.36, 1), background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  pointer-events: none;
  z-index: 1;
}

.ws-segmented-shell.is-anvil-pair .ws-seg-thumb.is-right {
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.56), rgba(168, 85, 247, 0.44));
  border-color: rgba(216, 180, 254, 0.72);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.36);
}

.ws-segmented-shell.is-craft-pair .ws-seg-thumb {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.52), rgba(16, 185, 129, 0.38));
  border-color: rgba(110, 231, 183, 0.68);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.3);
}

.ws-segmented-shell.is-craft-pair .ws-seg-thumb.is-right {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.54), rgba(124, 58, 237, 0.46));
  border-color: rgba(153, 246, 228, 0.72);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.34);
}

.ws-seg-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 7px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  min-width: 0;
  transition: color 0.2s ease;
}

.ws-seg-btn.is-active {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.ws-seg-lbl {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-seg-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  flex-shrink: 0;
  line-height: 1.3;
}

.ws-seg-badge.is-green {
  color: #dcfce7;
  background: rgba(22, 163, 74, 0.78);
  border: 1px solid rgba(134, 239, 172, 0.75);
}

.ws-seg-badge.is-purple {
  color: #f3e8ff;
  background: rgba(126, 34, 206, 0.72);
  border: 1px solid rgba(216, 180, 254, 0.68);
}

.ws-seg-badge.is-teal {
  color: #ccfbf1;
  background: rgba(15, 118, 110, 0.8);
  border: 1px solid rgba(94, 234, 212, 0.72);
}

.ws-seg-badge.is-lock {
  color: #e9d5ff;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.52);
}

.ws-seg-badge.is-muted {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.ws-swipe-viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  border-radius: 16px;
}

/* Leichtgewichtige 60-FPS Tab-Slide-Animation (will-change nur dynamisch während Drag; KEIN contain:layout wegen 3D-Flip-Culling auf Android!) */
.tab-swipe-stage {
  will-change: auto;
}

/* Android-WebView Scroll-, Offscreen- & Repaint-Isolation (nur auf flachen 2D-Karten, NICHT auf 3D-Flip-Karten!) */
.fuse-card,
.wb-card,
.alchemy-card,
.repair-card,
.trader-book-card,
.item-trader-card,
.forge-card {
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 190px;
}

#collection-cards-grid-wrap .mc-card {
  content-visibility: visible;
}

/* Sofortige Tap-Reaktion ohne Double-Tap-Zoom-Verzögerung auf Android */
.mc-btn,
.tab-btn,
.nav-item,
.ws-seg-btn,
.camp-node-btn,
.camp-daily-btn,
.camp-portal-btn,
.daily-reward-card,
.deck-pick-card,
.mc-card {
  touch-action: manipulation;
}

.tab-slide-in-right {
  animation: tabSlideFromRight 0.16s cubic-bezier(0.22, 0.85, 0.36, 1) both;
}

.tab-slide-in-right.is-slide-alt {
  animation-name: tabSlideFromRightAlt;
}

.tab-slide-in-left {
  animation: tabSlideFromLeft 0.16s cubic-bezier(0.22, 0.85, 0.36, 1) both;
}

.tab-slide-in-left.is-slide-alt {
  animation-name: tabSlideFromLeftAlt;
}

@keyframes tabSlideFromRight {
  from { opacity: 0.62; transform: translate3d(22px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tabSlideFromRightAlt {
  from { opacity: 0.62; transform: translate3d(22px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tabSlideFromLeft {
  from { opacity: 0.62; transform: translate3d(-22px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes tabSlideFromLeftAlt {
  from { opacity: 0.62; transform: translate3d(-22px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

body.reduced-effects .tab-slide-in-right,
body.reduced-effects .tab-slide-in-left,
body.perf-mode .tab-slide-in-right,
body.perf-mode .tab-slide-in-left {
  animation: none !important;
}

.ws-swipe-track {
  display: flex;
  width: 200%;
  align-items: flex-start;
  transition: transform 0.28s cubic-bezier(0.22, 0.85, 0.36, 1);
}

.ws-swipe-track.is-dragging,
.ws-swipe-track.is-instant {
  transition: none !important;
}

.ws-swipe-pane {
  flex: 0 0 50%;
  width: 50%;
  min-width: 0;
  box-sizing: border-box;
}

.ws-swipe-track.is-3-panes {
  width: 300%;
}

.ws-swipe-track.is-3-panes > .ws-swipe-pane {
  flex: 0 0 33.333333%;
  width: 33.333333%;
}

.ws-swipe-track.is-4-panes {
  width: 400%;
}

.ws-swipe-track.is-4-panes > .ws-swipe-pane {
  flex: 0 0 25%;
  width: 25%;
}

.ws-swipe-pane.is-collapsed-pane {
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.alchemy-shell.is-standalone {
  margin-top: 0;
}

.alchemy-header {
  flex-wrap: wrap;
}

.wb-ready-toggle.is-alchemy-toggle {
  flex-shrink: 0;
  border-color: rgba(94, 234, 212, 0.38);
}

/* Einklappbarer „Noch nicht bereit“-Bereich in 10:1 Karten-Fusion */
.fuse-notready-accordion {
  margin-top: 10px;
  border-radius: 13px;
  background: rgba(10, 15, 32, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.24);
  overflow: hidden;
}

.fuse-notready-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.82));
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.fuse-notready-toggle:hover {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.72), rgba(15, 23, 42, 0.88));
}

.fuse-notready-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fuse-chevron-ico {
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.22s ease, color 0.18s ease;
}

.fuse-notready-accordion.is-open .fuse-chevron-ico {
  transform: rotate(180deg);
  color: #fde68a;
}

.fuse-notready-body {
  padding: 9px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

body.reduced-effects .ws-seg-thumb,
body.reduced-effects .ws-swipe-track {
  transition: none !important;
}

@media (max-width: 520px) {
  .ws-seg-btn {
    font-size: 11px;
    padding: 8px 4px;
    gap: 4px;
  }
  .ws-seg-badge {
    font-size: 8.5px;
    padding: 1px 5px;
  }
}

/* ==================== ANDROID / CAPACITOR SAFE-AREA & OFFLINE MOBILE POLISH ==================== */
html, body {
  overscroll-behavior: none;
  background-color: #0b0f19;
}

@media (max-width: 780px), (hover: none) and (pointer: coarse) {
  #square-shell {
    background-color: #0b0f19;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  .modal-backdrop {
    padding-top: max(12px, env(safe-area-inset-top, 12px));
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }
}


/* ==================== 5x5 LEBENDIGE ARENA-BIOME, MASSGESCHNEIDERTE VFX & GAME JUICE ==================== */

/* Scharfe Figuren-Abhebung & Fokus im Kampfzentrum */
.battle-layout .tile-token {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.battle-layout .tile-token-art svg {
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.72));
}

/* 1. OVERWORLD BIOM (Bemooste Erde, dunkles Gras, feine Bruchstein-Pfade) */
.arena-grid-overworld {
  padding: 5px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, rgba(20, 48, 34, 0.56), rgba(8, 22, 16, 0.84));
  border: 1.5px solid rgba(74, 222, 128, 0.28);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.68), inset 0 0 22px rgba(34, 197, 94, 0.14);
}
.arena-grid-overworld .board-tile.tile-main {
  background: linear-gradient(155deg, rgba(22, 54, 38, 0.72), rgba(14, 34, 26, 0.82));
  border-color: rgba(74, 222, 128, 0.22);
}
.arena-grid-overworld .board-tile.tile-alt {
  background: linear-gradient(155deg, rgba(35, 48, 44, 0.74), rgba(20, 31, 29, 0.84));
  border-color: rgba(148, 163, 184, 0.2);
}
.arena-grid-overworld .board-tile.row-enemy-base {
  background: linear-gradient(155deg, rgba(96, 26, 30, 0.58), rgba(48, 16, 20, 0.78));
  border-color: rgba(248, 113, 113, 0.34);
}
.arena-grid-overworld .board-tile.row-player-base {
  background: linear-gradient(155deg, rgba(20, 74, 44, 0.62), rgba(12, 46, 28, 0.8));
  border-color: rgba(74, 222, 128, 0.36);
}

/* 2. INFERNALWORLD BIOM (Dunkler Basalt & Obsidian mit glühenden Lavarissen zwischen Feldern) */
.arena-grid-nether {
  padding: 5px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, rgba(234, 88, 12, 0.32), rgba(28, 8, 10, 0.88));
  border: 1.5px solid rgba(249, 115, 22, 0.42);
  box-shadow: 0 0 32px rgba(234, 88, 12, 0.22), inset 0 0 24px rgba(249, 115, 22, 0.22);
  gap: 5px;
}
.arena-grid-nether .board-tile.tile-main {
  background: linear-gradient(155deg, rgba(38, 22, 24, 0.86), rgba(20, 11, 14, 0.92));
  border-color: rgba(249, 115, 22, 0.34);
  box-shadow: inset 0 0 10px rgba(234, 88, 12, 0.14);
}
.arena-grid-nether .board-tile.tile-alt {
  background: linear-gradient(155deg, rgba(28, 16, 20, 0.9), rgba(14, 7, 10, 0.94));
  border-color: rgba(251, 146, 60, 0.28);
}
.arena-grid-nether .board-tile.row-enemy-base {
  background: linear-gradient(155deg, rgba(112, 22, 22, 0.72), rgba(52, 10, 14, 0.88));
  border-color: rgba(248, 113, 113, 0.45);
}
.arena-grid-nether .board-tile.row-player-base {
  background: linear-gradient(155deg, rgba(32, 54, 38, 0.76), rgba(16, 28, 22, 0.88));
  border-color: rgba(74, 222, 128, 0.34);
}

/* 3. DRAGONWORLD BIOM (Schwebende zersplitterte Endstein- & Void-Platten mit kosmischem Linien-Glow) */
.arena-grid-end {
  padding: 5px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, rgba(88, 28, 135, 0.32), rgba(9, 4, 22, 0.88));
  border: 1.5px solid rgba(192, 132, 252, 0.38);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.24), inset 0 0 26px rgba(139, 92, 246, 0.2);
  gap: 5px;
}
.arena-grid-end .board-tile.tile-main {
  background: linear-gradient(155deg, rgba(36, 24, 62, 0.82), rgba(18, 11, 36, 0.9));
  border-color: rgba(192, 132, 252, 0.3);
  box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.14);
}
.arena-grid-end .board-tile.tile-alt {
  background: linear-gradient(155deg, rgba(24, 16, 46, 0.86), rgba(12, 7, 26, 0.92));
  border-color: rgba(167, 139, 250, 0.24);
}
.arena-grid-end .board-tile.row-enemy-base {
  background: linear-gradient(155deg, rgba(92, 22, 78, 0.72), rgba(44, 10, 42, 0.88));
  border-color: rgba(244, 114, 182, 0.42);
}
.arena-grid-end .board-tile.row-player-base {
  background: linear-gradient(155deg, rgba(24, 64, 58, 0.72), rgba(12, 34, 34, 0.88));
  border-color: rgba(74, 222, 128, 0.36);
}

/* Lebendige SVG-Hintergrund-Animationen */
.arena-sway-grass {
  transform-origin: center bottom;
  animation: arenaGrassSway 3.8s ease-in-out infinite;
}
@keyframes arenaGrassSway {
  0%, 100% { transform: skewX(0deg); }
  50% { transform: skewX(3.5deg); }
}
.arena-lava-pulse {
  animation: arenaLavaGlow 2.8s ease-in-out infinite;
}
@keyframes arenaLavaGlow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.88; }
}
.arena-edge-flame {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: arenaFlameFlicker 1.5s ease-in-out infinite;
}
@keyframes arenaFlameFlicker {
  0%, 100% { transform: scaleY(1) scaleX(1); opacity: 0.78; }
  50% { transform: scaleY(1.16) scaleX(0.92); opacity: 1; }
}
.arena-crystal-float {
  animation: arenaCrystalHover 4.2s ease-in-out infinite;
}
@keyframes arenaCrystalHover {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

/* Rand-Partikel-Ebenen (Blätter / Funken / Void-Kristalle) */
.arena-ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.arena-leaf {
  position: absolute;
  top: -14px;
  width: 7px;
  height: 7px;
  border-radius: 2px 5px 2px 5px;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.45);
  opacity: 0;
  animation: arenaLeafFall var(--amb-dur, 7.5s) linear var(--amb-delay, 0s) infinite;
}
.arena-leaf.is-gold-leaf {
  background: linear-gradient(135deg, #fde047, #ca8a04);
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.45);
}
@keyframes arenaLeafFall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.72; }
  50% { transform: translate3d(14px, 50vh, 0) rotate(140deg); opacity: 0.65; }
  88% { opacity: 0.48; }
  100% { transform: translate3d(-10px, 102vh, 0) rotate(280deg); opacity: 0; }
}

.arena-ember {
  position: absolute;
  bottom: -12px;
  width: 5px;
  height: 5px;
  border-radius: 1.5px;
  background: #fde047;
  box-shadow: 0 0 9px #f97316, 0 0 3px #fef08a;
  opacity: 0;
  animation: arenaEmberRise var(--amb-dur, 5s) ease-out var(--amb-delay, 0s) infinite;
}
.arena-ember.is-ash {
  width: 4px;
  height: 4px;
  background: #fb7185;
  box-shadow: 0 0 7px #dc2626;
}
@keyframes arenaEmberRise {
  0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  15% { opacity: 0.88; }
  55% { transform: translate3d(-12px, -50vh, 0) scale(1.1); opacity: 0.72; }
  100% { transform: translate3d(10px, -104vh, 0) scale(0.4); opacity: 0; }
}

.arena-void-mote {
  position: absolute;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #f5d0fe, #a855f7);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.78);
  opacity: 0;
  animation: arenaVoidDrift var(--amb-dur, 7s) ease-in-out var(--amb-delay, 0s) infinite;
}
.arena-void-mote.is-shard {
  transform: rotate(45deg);
  border-radius: 1px;
}
.arena-void-mote.is-wisp {
  border-radius: 999px;
  width: 5px;
  height: 5px;
  background: #e879f9;
}
@keyframes arenaVoidDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(45deg) scale(0.75); opacity: 0.15; }
  50% { transform: translate3d(10px, -22px, 0) rotate(135deg) scale(1.25); opacity: 0.82; }
}

/* ==================== MASSGESCHNEIDERTE ANGRIFFS-, PROJEKTIL- & KAMIKAZE-VFX ==================== */

/* Schwerer Screen-Shake bei Crits, Golem-Konter & Kamikaze-Explosion */
.board-heavy-shake {
  animation: boardHeavyShake calc(0.44s * var(--spd, 1)) cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes boardHeavyShake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  15% { transform: translate3d(-7px, 4px, 0) rotate(-0.6deg); }
  32% { transform: translate3d(7px, -5px, 0) rotate(0.6deg); }
  50% { transform: translate3d(-6px, -3px, 0) rotate(-0.4deg); }
  70% { transform: translate3d(5px, 3px, 0) rotate(0.3deg); }
  86% { transform: translate3d(-2px, 1px, 0); }
}

/* Nahkampf: Geschwungener weiß-silberner Klauen-/Slash-Bogen */
.fx-claw-slash {
  position: absolute;
  left: var(--ex);
  top: var(--ey);
  transform: translate(-50%, -50%);
  z-index: 26;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.85));
  animation: clawSlashPop calc(0.38s * var(--spd, 1)) ease-out forwards;
}
@keyframes clawSlashPop {
  0% { transform: translate(-50%, -50%) scale(0.45) rotate(-28deg); opacity: 0.95; }
  45% { transform: translate(-50%, -50%) scale(1.22) rotate(6deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.42) rotate(16deg); opacity: 0; }
}

/* Golem-Koloss Aufprall-Schockwelle */
.fx-golem-slam {
  position: absolute;
  left: var(--ex);
  top: var(--ey);
  transform: translate(-50%, -50%);
  z-index: 26;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(226, 232, 240, 0.85));
  animation: golemSlamBurst calc(0.46s * var(--spd, 1)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fx-golem-slam.is-gold-slam {
  filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.95));
}
@keyframes golemSlamBurst {
  0% { transform: translate(-50%, -50%) scale(0.32) rotate(-20deg); opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(1.26) rotate(12deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.62) rotate(26deg); opacity: 0; }
}

/* Sprengling / Infernalsprengling: Wildes Aufblähen vor Detonation */
.tile-token.is-priming-boom {
  z-index: 22;
  animation: creeperPrimePulse calc(0.19s * var(--spd, 1)) ease-in-out infinite;
}
.tile-token.is-creeper-prime {
  box-shadow: 0 0 22px 6px rgba(251, 146, 60, 0.92), inset 0 0 18px rgba(255, 255, 255, 0.85) !important;
}
.tile-token.is-infernal-prime {
  box-shadow: 0 0 24px 7px rgba(217, 70, 239, 0.92), inset 0 0 18px rgba(253, 224, 71, 0.85) !important;
}
@keyframes creeperPrimePulse {
  0%, 100% { transform: scale(1.02); filter: brightness(1.4); }
  50% { transform: scale(1.24); filter: brightness(2.3) contrast(1.2); }
}

/* Kamikaze Voxel-Detonation (Hitzering + Feuerkern + Rauch + 12 Funken) */
.fx-kamikaze-blast {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 28;
  pointer-events: none;
}
.fx-blast-core {
  position: absolute;
  left: 0;
  top: 0;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  background: radial-gradient(circle, #ffffff 0%, #fef08a 32%, #f97316 68%, rgba(220, 38, 38, 0) 100%);
  transform: translate(-50%, -50%);
  animation: blastCoreExpand calc(0.56s * var(--spd, 1)) ease-out forwards;
}
.fx-kamikaze-blast.is-infernal .fx-blast-core {
  background: radial-gradient(circle, #ffffff 0%, #f5d0fe 28%, #d946ef 56%, #ea580c 80%, rgba(126, 34, 206, 0) 100%);
}
@keyframes blastCoreExpand {
  0% { transform: translate(-50%, -50%) scale(0.35) rotate(0deg); opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(1.75) rotate(22deg); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(2.25) rotate(45deg); opacity: 0; }
}
.fx-blast-heat-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 4px solid #fb923c;
  box-shadow: 0 0 22px #f97316, inset 0 0 14px #fde047;
  transform: translate(-50%, -50%);
  animation: blastHeatRing calc(0.64s * var(--spd, 1)) ease-out forwards;
}
.fx-kamikaze-blast.is-infernal .fx-blast-heat-ring {
  border-color: #e879f9;
  box-shadow: 0 0 24px #c026d3, inset 0 0 16px #fb923c;
}
@keyframes blastHeatRing {
  0% { transform: translate(-50%, -50%) scale(0.35); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}
.fx-smoke-puff {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(100, 116, 139, 0.72);
  box-shadow: 0 0 10px rgba(30, 41, 59, 0.7);
  animation: smokePuffFly calc(0.68s * var(--spd, 1)) ease-out forwards;
}
@keyframes smokePuffFly {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.85; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.8); opacity: 0; }
}
.fx-blast-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: #fef08a;
  box-shadow: 0 0 8px #f97316;
  animation: sparkBlastFly calc(0.62s * var(--spd, 1)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fx-kamikaze-blast.is-infernal .fx-blast-spark {
  background: #f5d0fe;
  box-shadow: 0 0 8px #d946ef;
}
@keyframes sparkBlastFly {
  0% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.25); opacity: 0; }
}

/* Klassischer Fernkampf (Skelett): 3D-Voxel-Pfeil im ballistischen Parabel-Bogen! */
.fx-arrow-arc {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  z-index: 26;
  pointer-events: none;
  animation: flyArrowLinear calc(0.38s * var(--spd, 1)) linear forwards;
}
.fx-arrow-arc-inner {
  transform: translate(-50%, -50%) rotate(var(--arrow-rot, 0deg));
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.75));
  animation: flyArrowParabolicLift calc(0.38s * var(--spd, 1)) ease-in-out forwards;
}
@keyframes flyArrowLinear {
  0% { left: var(--sx); top: var(--sy); opacity: 0.95; }
  90% { left: var(--ex); top: var(--ey); opacity: 1; }
  100% { left: var(--ex); top: var(--ey); opacity: 0; }
}
@keyframes flyArrowParabolicLift {
  0% { transform: translate(-50%, -50%) translateY(0px) rotate(var(--arrow-rot, 0deg)) scale(0.92); }
  48% { transform: translate(-50%, -50%) translateY(-34px) rotate(var(--arrow-rot, 0deg)) scale(1.18); }
  100% { transform: translate(-50%, -50%) translateY(0px) rotate(var(--arrow-rot, 0deg)) scale(1.0); }
}

/* Alchemie / Tränke: Drehende Glasflasche + farbige Voxel-Gaswolke */
.fx-potion-flask {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.45));
}
.fx-gas-cloud {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 25;
  pointer-events: none;
}
.fx-gas-puff {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  animation: gasCloudBillow calc(0.64s * var(--spd, 1)) ease-out forwards;
}
.fx-gas-poison .fx-gas-puff { background: radial-gradient(circle, rgba(190, 242, 100, 0.88), rgba(101, 163, 13, 0.48)); box-shadow: 0 0 14px rgba(132, 204, 22, 0.72); }
.fx-gas-heal .fx-gas-puff { background: radial-gradient(circle, rgba(253, 164, 175, 0.88), rgba(225, 29, 72, 0.45)); box-shadow: 0 0 14px rgba(251, 113, 133, 0.72); }
.fx-gas-damage .fx-gas-puff { background: radial-gradient(circle, rgba(252, 165, 165, 0.9), rgba(185, 28, 28, 0.5)); box-shadow: 0 0 14px rgba(239, 68, 68, 0.75); }
.fx-gas-buff_steve .fx-gas-puff { background: radial-gradient(circle, rgba(254, 240, 138, 0.9), rgba(217, 119, 6, 0.5)); box-shadow: 0 0 14px rgba(245, 158, 11, 0.75); }
@keyframes gasCloudBillow {
  0% { transform: translate(-50%, -50%) scale(0.35); opacity: 0.95; }
  45% { transform: translate(calc(-50% + var(--ox)), calc(-50% + var(--oy))) scale(calc(1.25 * var(--sc, 1))); opacity: 0.82; }
  100% { transform: translate(calc(-50% + var(--ox) * 1.4), calc(-50% + var(--oy) * 1.4 - 12px)) scale(calc(1.65 * var(--sc, 1))); opacity: 0; }
}

/* Magie & Energie (Glutgeist, Voidkapsel, Voidläufer): Pulsierende Energiekugel + Funkenspur */
.fx-magic-orb {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  z-index: 26;
  pointer-events: none;
  animation: flyMagicOrb calc(0.38s * var(--spd, 1)) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.fx-magic-orb-fire {
  background: radial-gradient(circle, #ffffff 0%, #fde047 38%, #f97316 72%, #dc2626 100%);
  box-shadow: 0 0 16px #f97316, 0 0 28px rgba(239, 68, 68, 0.75);
}
.fx-magic-orb-void {
  background: radial-gradient(circle, #ffffff 0%, #f0abfc 36%, #9333ea 74%, #3b82f6 100%);
  box-shadow: 0 0 16px #c084fc, 0 0 28px rgba(99, 102, 241, 0.78);
}
@keyframes flyMagicOrb {
  0% { left: var(--sx); top: var(--sy); transform: translate(-50%, -50%) scale(0.65); opacity: 0.95; }
  50% { transform: translate(-50%, -50%) scale(1.28); opacity: 1; }
  90% { left: var(--ex); top: var(--ey); transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  100% { left: var(--ex); top: var(--ey); transform: translate(-50%, -50%) scale(1.65); opacity: 0; }
}
.fx-magic-trail {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 24;
  pointer-events: none;
  animation: magicTrailFade calc(0.36s * var(--spd, 1)) ease-out forwards;
}
.fx-magic-trail.is-fire { background: #fde047; box-shadow: 0 0 10px #f97316; }
.fx-magic-trail.is-void { background: #e879f9; box-shadow: 0 0 10px #8b5cf6; }
@keyframes magicTrailFade {
  0% { transform: translate(-50%, -50%) rotate(45deg) scale(1.15); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) rotate(135deg) scale(0.15); opacity: 0; }
}

/* Physische Treffer-Splitter (Blutrot / Giftgrün / Feuer / Void / Holz / Gold) */
.fx-splinter-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 27;
  pointer-events: none;
}
.fx-hit-splinter {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  animation: splinterFly calc(0.42s * var(--spd, 1)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fx-splinter-crimson { background: #f87171; box-shadow: 0 0 6px #dc2626; }
.fx-splinter-poison { background: #bef264; box-shadow: 0 0 6px #84cc16; }
.fx-splinter-fire { background: #fb923c; box-shadow: 0 0 6px #ea580c; }
.fx-splinter-void { background: #e879f9; box-shadow: 0 0 7px #9333ea; }
.fx-splinter-gold { background: #fde047; box-shadow: 0 0 8px #f59e0b; }
.fx-splinter-wood { width: 8px; height: 3.5px; background: #d97706; border: 0.5px solid #451a03; }
@keyframes splinterFly {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1.1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot, 120deg)) scale(0.25); opacity: 0; }
}

/* Todes-Animation: In den Boden sinken + weiße Knochensplitter für Skelette */
.tile-token.is-sinking-ko {
  animation: sinkIntoFloor calc(0.42s * var(--spd, 1)) ease-in forwards !important;
}
@keyframes sinkIntoFloor {
  0% { transform: translateY(0) scale(1); opacity: 1; filter: saturate(0.4); }
  100% { transform: translateY(18px) scale(0.72, 0.35); opacity: 0; filter: brightness(0.4); }
}
.fx-bone-splinter {
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 4px;
  border-radius: 2px;
  background: #f8fafc;
  border: 1px solid #94a3b8;
  box-shadow: 0 0 6px rgba(248, 250, 252, 0.75);
  animation: boneScatter calc(0.56s * var(--spd, 1)) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes boneScatter {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1.1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 10px)) rotate(var(--rot, 180deg)) scale(0.45); opacity: 0; }
}

/* Fette Voxel-Pop-Zahlen (BLOCK! & 2x GOLEM-KONTER!) */
.fx-dmg-block {
  font-size: 16px;
  color: #7dd3fc;
  letter-spacing: 0.6px;
  text-shadow:
    0 2px 0 #082f49,
    -1.5px -1.5px 0 #082f49,
    1.5px -1.5px 0 #082f49,
    -1.5px 1.5px 0 #082f49,
    1.5px 1.5px 0 #082f49,
    0 0 14px rgba(56, 189, 248, 0.9);
  margin-top: -18px;
}
.fx-dmg-gold-crit {
  font-size: 21px;
  color: #fef08a;
  letter-spacing: 0.4px;
  text-shadow:
    0 2.5px 0 #78350f,
    -1.8px -1.8px 0 #451a03,
    1.8px -1.8px 0 #451a03,
    -1.8px 1.8px 0 #451a03,
    1.8px 1.8px 0 #451a03,
    0 0 18px rgba(250, 204, 21, 0.95);
}

/* Barrierefreiheit / Performance: Reduzierte Effekte */
body.reduced-effects .arena-ambient-layer,
body.reduced-effects .fx-splinter-wrap,
body.reduced-effects .fx-magic-trail {
  display: none !important;
}
body.reduced-effects .arena-sway-grass,
body.reduced-effects .arena-lava-pulse,
body.reduced-effects .arena-edge-flame,
body.reduced-effects .arena-crystal-float,
body.reduced-effects .board-heavy-shake,
body.reduced-effects .board-micro-shake {
  animation: none !important;
}


/* ==================== 2.5D TABLETOP PERSPEKTIVEN-UPGRADE (AAA-BLOCKTIEFE, BILLBOARD-FIGUREN & EPISCHES HUD) ==================== */

/* 1. Isolierte 2.5D-Boden-Perspektive (Hintergrund-Layer z-index: 1 — kann Figuren/Klone NIEMALS im 3D-Z-Buffer schneiden!) */
.arena-perspective-wrap {
  padding: 4px 6px 16px;
  margin-bottom: 4px;
  overflow: visible !important;
  perspective: none !important;
}

.arena-floor-perspective {
  position: absolute;
  inset: 0;
  z-index: 1;
  isolation: isolate;
  pointer-events: none;
  perspective: 980px;
  perspective-origin: 50% 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px 16px;
  box-sizing: border-box;
  overflow: visible;
}

.arena-stage-3d {
  --arena-tilt: 14deg;
  width: 100%;
  height: calc(100% - 10px);
  max-height: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transform: rotateX(var(--arena-tilt)) translate3d(0, -3px, 0);
  transform-origin: center 46%;
}

.is-25d-arena .battle-grid {
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  transform-style: preserve-3d;
  border-radius: 14px;
  transition: transform 0.2s ease;
}

/* 3D-Block-Sockel (Plinth) pro Dimensions-Biom */
.arena-stage-overworld .battle-grid {
  border-bottom: 6px solid #2b1e14;
  box-shadow:
    0 6px 0 #1a120c,
    0 14px 26px rgba(0, 0, 0, 0.72),
    inset 0 0 18px rgba(34, 197, 94, 0.16);
}
.arena-stage-nether .battle-grid {
  border-bottom: 6px solid #3b0d0c;
  box-shadow:
    0 6px 0 #1f0608,
    0 0 22px rgba(234, 88, 12, 0.3),
    0 14px 28px rgba(0, 0, 0, 0.78),
    inset 0 0 22px rgba(249, 115, 22, 0.32);
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.38), rgba(185, 28, 28, 0.3));
}
.arena-stage-end .battle-grid {
  border-bottom: 6px solid #26104a;
  box-shadow:
    0 6px 0 #120626,
    0 0 24px rgba(168, 85, 247, 0.3),
    0 16px 30px rgba(0, 0, 0, 0.8),
    inset 0 0 22px rgba(139, 92, 246, 0.26);
  background: linear-gradient(180deg, rgba(126, 34, 206, 0.3), rgba(30, 11, 64, 0.58));
}

/* Strikte Einheitsgröße (overflow: hidden) & dauerhaft klar sichtbare 25 Kacheln */
.is-25d-arena .board-tile {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  transform-style: preserve-3d;
  border-width: 1.5px;
  border-bottom-width: 3.5px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 3px 5px rgba(0, 0, 0, 0.44);
}
.is-25d-arena .arena-grid-overworld .board-tile.tile-main {
  background: linear-gradient(155deg, rgba(24, 62, 42, 0.84), rgba(14, 38, 28, 0.9));
  border-color: rgba(74, 222, 128, 0.34);
  border-bottom-color: #3d2817;
}
.is-25d-arena .arena-grid-overworld .board-tile.tile-alt {
  background: linear-gradient(155deg, rgba(38, 54, 48, 0.86), rgba(22, 34, 32, 0.92));
  border-color: rgba(148, 163, 184, 0.32);
  border-bottom-color: #334155;
}
.is-25d-arena .arena-grid-nether .board-tile.tile-main {
  background: linear-gradient(155deg, rgba(46, 24, 26, 0.9), rgba(24, 12, 16, 0.95));
  border-color: rgba(251, 146, 60, 0.44);
  border-bottom-color: #451010;
  box-shadow:
    inset 0 1px 0 rgba(251, 146, 60, 0.24),
    0 3px 6px rgba(234, 88, 12, 0.22);
}
.is-25d-arena .arena-grid-nether .board-tile.tile-alt {
  background: linear-gradient(155deg, rgba(34, 18, 22, 0.92), rgba(18, 9, 13, 0.96));
  border-color: rgba(249, 115, 22, 0.38);
  border-bottom-color: #3b0d0c;
}
.is-25d-arena .arena-grid-end .board-tile.tile-main {
  background: linear-gradient(155deg, rgba(42, 26, 72, 0.88), rgba(22, 13, 42, 0.94));
  border-color: rgba(192, 132, 252, 0.42);
  border-bottom-color: #2e1065;
  box-shadow:
    inset 0 1px 0 rgba(216, 180, 254, 0.22),
    0 4px 8px rgba(139, 92, 246, 0.22);
}
.is-25d-arena .arena-grid-end .board-tile.tile-alt {
  background: linear-gradient(155deg, rgba(30, 18, 56, 0.9), rgba(15, 9, 32, 0.95));
  border-color: rgba(167, 139, 250, 0.36);
  border-bottom-color: #26104a;
}
.is-25d-arena .board-tile:has(.tile-token.is-clickable) {
  cursor: pointer;
}

/* 2. Aufrecht stehende 2.5D-Voxel-Figuren („Billboard-Technik“) & weicher Bodenschatten */
.unit-ground-shadow {
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 72%;
  height: 32%;
  transform: translate3d(-50%, 0, 1px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(2, 6, 18, 0.78) 0%, rgba(2, 6, 18, 0.32) 56%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}
.unit-ground-shadow.is-shadow-player {
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.22);
}
.unit-ground-shadow.is-shadow-enemy {
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.22);
}
.unit-ground-shadow.is-shadow-boss {
  width: 84%;
  height: 40%;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.42);
}

.is-25d-arena .tile-token {
  pointer-events: none; /* Touch-Schutz: Taps treffen immer exakt die 3D-Kachel am Boden! */
  position: relative;
  z-index: 4;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center bottom;
  transform: translate3d(0, -1%, 4px) rotateX(calc(-1 * var(--arena-tilt, 14deg)));
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* Blickrichtung: Eigene Einheiten nach vorne/oben, Gegner nach unten zum Spieler */
.is-25d-arena .tile-token.is-facing-up {
  border-top-color: rgba(134, 239, 172, 0.85);
  border-bottom-width: 2.5px;
}
.is-25d-arena .tile-token.is-facing-down {
  border-bottom-color: rgba(252, 165, 165, 0.88);
  border-top-width: 2.5px;
}
.is-25d-arena .tile-token.is-facing-down .tile-token-art svg {
  transform: scaleX(-1);
}

.is-25d-arena .tile-token.is-steve .tile-token-art,
.is-25d-arena .tile-token.is-steve .tile-token-art svg {
  width: 29px;
  height: 29px;
}

/* Feiner, dezenter violetter Kontur-Schimmer für verzauberte Helden-Ausrüstung (keine Überstrahlung!) */
.hero-enchant-aura {
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 0 7px rgba(192, 132, 252, 0.24), inset 0 0 4px rgba(192, 132, 252, 0.16);
  pointer-events: none;
  z-index: 0;
  animation: heroEnchPulse 3.6s ease-in-out infinite;
}
@keyframes heroEnchPulse {
  0%, 100% { opacity: 0.38; }
  50% { opacity: 0.62; }
}
.is-25d-arena .tile-token.is-weapon-enchanted .tile-token-art svg {
  filter: drop-shadow(0 0 2px rgba(192, 132, 252, 0.42)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.72));
}

/* Billboard-Auswahl, Angriff, Sprengling-Prime & K.O. behalten aufrechte 2.5D-Rotation! */
.is-25d-arena .tile-token.is-board-selected {
  transform: translate3d(0, -3%, 8px) rotateX(calc(-1 * var(--arena-tilt, 14deg))) scale(1.03);
}
.is-25d-arena .tile-token.is-attacking {
  animation: billboardLunge calc(0.42s * var(--spd, 1)) cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes billboardLunge {
  0%, 100% { transform: translate3d(0, -1%, 4px) rotateX(calc(-1 * var(--arena-tilt, 14deg))); }
  40% { transform: translate3d(var(--lunge-x, 0px), calc(-1% + var(--lunge-y, -8px)), 10px) rotateX(calc(-1 * var(--arena-tilt, 14deg))) scale(1.06); }
}
.is-25d-arena .tile-token.is-priming-boom {
  animation: billboardCreeperPrime calc(0.19s * var(--spd, 1)) ease-in-out infinite;
}
@keyframes billboardCreeperPrime {
  0%, 100% { transform: translate3d(0, -1%, 6px) rotateX(calc(-1 * var(--arena-tilt, 14deg))) scale(1.02); filter: brightness(1.3); }
  50% { transform: translate3d(0, -4%, 10px) rotateX(calc(-1 * var(--arena-tilt, 14deg))) scale(1.16); filter: brightness(2.0) contrast(1.15); }
}
.is-25d-arena .tile-token.is-sinking-ko {
  animation: billboardSinkKo calc(0.42s * var(--spd, 1)) ease-in forwards !important;
}
@keyframes billboardSinkKo {
  0% { transform: translate3d(0, -1%, 4px) rotateX(calc(-1 * var(--arena-tilt, 14deg))) scale(1); opacity: 1; }
  100% { transform: translate3d(0, 12px, 0px) rotateX(calc(-1 * var(--arena-tilt, 14deg))) scale(0.7, 0.32); opacity: 0; }
}

/* 3. Ballistische 2.5D-Partikelschweife & hochgeschleuderte Voxel-Brocken */
.fx-arc-trail {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
  z-index: 24;
  animation: arcTrailFade calc(0.38s * var(--spd, 1)) ease-out forwards;
}
.fx-arc-trail-arrow { background: #fef3c7; box-shadow: 0 0 8px rgba(251, 191, 36, 0.85); width: 6px; height: 6px; }
.fx-arc-trail-poison { background: #bef264; box-shadow: 0 0 9px #84cc16; }
.fx-arc-trail-heal { background: #fda4af; box-shadow: 0 0 9px #fb7185; }
.fx-arc-trail-damage { background: #fca5a5; box-shadow: 0 0 9px #ef4444; }
.fx-arc-trail-buff_steve { background: #fef08a; box-shadow: 0 0 9px #f59e0b; }
@keyframes arcTrailFade {
  0% { transform: translate(-50%, -50%) rotate(45deg) scale(1.1); opacity: 0.92; }
  100% { transform: translate(-50%, -50%) rotate(135deg) scale(0.15); opacity: 0; }
}

.fx-voxel-chunk {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 1.5px;
  background: linear-gradient(135deg, #fb923c, #7c2d12);
  border: 1px solid #451a03;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.65);
  animation: voxelChunkArc calc(0.74s * var(--spd, 1)) cubic-bezier(0.2, 0.75, 0.35, 1) forwards;
}
.fx-voxel-chunk.is-infernal-chunk {
  background: linear-gradient(135deg, #e879f9, #581c87);
  border-color: #2e1065;
}
@keyframes voxelChunkArc {
  0% { transform: translate3d(-50%, -50%, 0) rotate(0deg) scale(1.1); opacity: 1; }
  45% { transform: translate3d(calc(-50% + var(--dx) * 0.55), calc(-50% + var(--peak-y, -42px)), 0) rotate(calc(var(--rot, 180deg) * 0.5)) scale(1.18); opacity: 1; }
  100% { transform: translate3d(calc(-50% + var(--dx)), calc(-50% + 16px), 0) rotate(var(--rot, 180deg)) scale(0.45); opacity: 0; }
}

/* 4. Metallisches AAA-Top-HUD & Dual-Helden-HP-Leiste mit Segmenten */
.battle-top-hud.is-metallic-hud {
  background: linear-gradient(180deg, rgba(28, 38, 58, 0.94), rgba(11, 16, 28, 0.96));
  border: 1.5px solid rgba(148, 163, 184, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.52);
}

.battle-hero-hud-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(22, 30, 48, 0.92), rgba(10, 14, 24, 0.95));
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px rgba(0, 0, 0, 0.45);
}
.hero-hp-pod {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hero-hp-pod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #e2e8f0;
  white-space: nowrap;
  min-width: 0;
}
.hero-hp-pod-head .hero-pod-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hero-hp-pod-head .hero-pod-name > svg {
  flex-shrink: 0;
}
.hero-hp-pod-head .hero-pod-name-txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-hp-pod-head .hero-pod-hp {
  flex-shrink: 0;
  white-space: nowrap;
}
.hero-hp-pod.is-player-pod .hero-hp-pod-head b { color: #86efac; }
.hero-hp-pod.is-enemy-pod .hero-hp-pod-head b { color: #fca5a5; }
.hero-hp-seg-track {
  height: 8px;
  border-radius: 5px;
  background: #090d16;
  border: 1px solid rgba(148, 163, 184, 0.32);
  overflow: hidden;
  position: relative;
}
.hero-hp-seg-track::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 16px,
    rgba(2, 6, 18, 0.52) 16px,
    rgba(2, 6, 18, 0.52) 18px
  );
}
.hero-hp-seg-fill {
  height: 100%;
  transition: width 0.24s ease;
}
.hero-hp-seg-fill.is-player-fill {
  background: linear-gradient(180deg, #4ade80, #16a34a);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
}
.hero-hp-seg-fill.is-enemy-fill {
  background: linear-gradient(180deg, #f87171, #b91c1c);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.55);
}
.hero-vs-emblem {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #334155, #0f172a);
  border: 1.5px solid rgba(250, 204, 21, 0.55);
  color: #fde047;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.28);
}

/* Metallische XP-Leiste */
.mc-xp-wrap.is-metallic-xp {
  padding: 5px 8px 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 31, 48, 0.88), rgba(10, 15, 25, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.mc-xp-wrap.is-metallic-xp .mc-xp-bar {
  height: 11px;
  border: 1.5px solid rgba(132, 204, 22, 0.52);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
}
.mc-xp-wrap.is-metallic-xp .mc-xp-fill {
  box-shadow: 0 0 12px rgba(163, 230, 53, 0.65);
}

/* 5. Epische aufgefächerte Handkarten-Leiste, XP-Corner-Badge & spielbare Lichtstrahlen */
.battle-bottom.is-epic-dock {
  background: linear-gradient(180deg, rgba(19, 27, 44, 0.95), rgba(9, 13, 23, 0.98));
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 -8px 24px rgba(0, 0, 0, 0.58);
}

.battle-hand.battle-hand-fan {
  padding: 8px 4px 4px;
}
.battle-hand-fan .mc-card.is-battle-hand-card {
  position: relative;
  transform: translate3d(0, var(--fan-y, 0px), 0) rotate(var(--fan-rot, 0deg));
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), filter 0.18s ease;
}
.battle-hand-fan .mc-card.is-battle-hand-card:not(.is-disabled):hover,
.battle-hand-fan .mc-card.is-battle-hand-card.is-selected {
  transform: translate3d(0, -8px, 0) rotate(0deg) scale(1.04);
  z-index: 6;
}
.battle-hand-fan .mc-card.is-battle-hand-card .mc-card-inner {
  overflow: hidden;
  position: relative;
}
.battle-hand-fan .mc-card.is-battle-hand-card.card-holo .mc-card-inner::after {
  display: none;
}

/* Goldener / Violetter XP-Kosten-Badge oben links auf Handkarten */
.xp-corner-badge {
  position: absolute;
  top: -6px;
  left: -5px;
  z-index: 5;
  display: inline-flex;
  align-items: baseline;
  gap: 1.5px;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
.xp-corner-badge small {
  font-size: 7.5px;
  font-weight: 800;
  opacity: 0.9;
}
.xp-corner-badge.is-mob-xp {
  background: linear-gradient(145deg, #facc15, #b45309);
  border: 1.5px solid #fef08a;
  color: #1c1002;
}
.xp-corner-badge.is-potion-xp {
  background: linear-gradient(145deg, #d946ef, #6b21a8);
  border: 1.5px solid #f5d0fe;
  color: #ffffff;
}
.mc-card-top.is-hand-top {
  justify-content: flex-end;
  min-height: 14px;
}

/* Leuchtende Lichtstrahlen & Glow-Rand bei aktuell spielbaren Karten */
.mc-card.is-playable-card .mc-card-inner {
  box-shadow:
    0 0 0 1.5px var(--rarity-border, #4ade80),
    0 0 14px rgba(74, 222, 128, 0.28),
    0 6px 14px rgba(0, 0, 0, 0.55);
}
.mc-card.is-playable-card.is-potion-card .mc-card-inner {
  box-shadow:
    0 0 0 1.5px #d946ef,
    0 0 14px rgba(217, 70, 239, 0.36),
    0 6px 14px rgba(0, 0, 0, 0.55);
}
/* Dezenter schmaler Lichtreflex auf spielbaren Karten (max. 8 % Deckkraft, kein milchiger Schleier!) */
.card-playable-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.card-playable-sheen::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -80%;
  width: 24%;
  height: 145%;
  background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.08) 50%, transparent 85%);
  transform: skewX(-18deg);
  animation: playableCardSheen 6.4s ease-in-out infinite;
}
@keyframes playableCardSheen {
  0%, 76% { left: -85%; opacity: 0; }
  86% { opacity: 0.9; }
  100% { left: 135%; opacity: 0; }
}

/* Dezente grüne Hervorhebung geboosteter Dimensions-Bonus-Werte unten auf den Handkarten */
.stat-chip.is-dim-boosted {
  color: #4ade80 !important;
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.42);
}

/* Mobile-Optimierung (kleine Smartphone-Displays: kompaktere Neigung & sicherer Abstand zur XP-Leiste) */
@media (max-width: 560px) {
  .arena-perspective-wrap {
    perspective: 780px;
    padding: 3px 3px 14px;
    margin-bottom: 3px;
  }
  .arena-stage-3d {
    --arena-tilt: 11deg;
    height: calc(100% - 8px);
  }
  .battle-hero-hud-strip {
    padding: 4px 7px;
    gap: 6px;
  }
  .hero-hp-pod-head {
    font-size: 9.5px;
  }
  .xp-corner-badge {
    top: -5px;
    left: -4px;
    padding: 1.5px 4.5px;
    font-size: 9.5px;
  }
}

/* Energiesparmodus / Reduzierte Effekte (60 FPS Garantie auf älteren Android-Handys) */
body.reduced-effects .card-playable-sheen,
body.reduced-effects .hero-enchant-aura,
body.reduced-effects .fx-arc-trail,
body.reduced-effects .fx-voxel-chunk {
  display: none !important;
  animation: none !important;
}
body.reduced-effects .battle-hand-fan .mc-card.is-battle-hand-card {
  transform: none !important;
}


/* ==================== STRIKTES 10-KILL MOB-EFFEKT-SYSTEM & SELTENHEITS-BONUS-UI ==================== */
.back-ability-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 5px;
}

.back-status-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.back-tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.45);
}
.back-tier-pill.is-dim {
  color: #94a3b8;
  background: rgba(51, 65, 85, 0.45);
  border-color: rgba(148, 163, 184, 0.3);
}

.back-ability-box.is-locked-dimmed .back-ability-desc,
.zoom-ability-panel.is-locked-dimmed .zoom-ability-body {
  opacity: 0.56;
  filter: saturate(0.55);
}
.back-ability-box.is-locked-dimmed,
.zoom-ability-panel.is-locked-dimmed {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.65);
}
.back-ability-box.is-unlocked .back-status-pill.is-on,
.zoom-ability-panel.is-unlocked .back-status-pill.is-on {
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.42);
}

.zoom-rarity-bonus-row {
  margin: 4px 0 6px;
  display: flex;
  align-items: center;
}

.back-rarity-bonus-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.back-rarity-bonus-pill.is-rar-epic {
  color: #f3e8ff;
  background: rgba(168, 85, 247, 0.26);
  border: 1px solid rgba(192, 132, 252, 0.65);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.35);
}
.back-rarity-bonus-pill.is-rar-mythic {
  color: #ffe4e6;
  background: rgba(239, 68, 68, 0.26);
  border: 1px solid rgba(251, 113, 133, 0.68);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.35);
}
.back-rarity-bonus-pill.is-rar-legendary {
  color: #fef9c3;
  background: rgba(245, 158, 11, 0.28);
  border: 1px solid rgba(251, 191, 36, 0.78);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.42);
}

.ab-val.is-rarity-boosted {
  color: var(--ab-boost-color, #fde047);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.16);
}


/* ==================== GESTochen SCHARFE 2D-FIGUREN-EBENE ÜBER GEKIPPTEM 2.5D-BODENBRETT (0 BLUR!) ==================== */

/* Ebene 1: Gekipptes 2.5D-Bodenbrett (NUR Bodenkacheln + Blocktiefe + Bodenschatten erhalten rotateX!) */
.arena-stage-3d {
  pointer-events: none;
}

.arena-floor-grid {
  width: 100%;
  height: 100%;
  max-width: 600px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  position: relative;
}

.arena-stage-overworld .arena-floor-grid {
  background: radial-gradient(circle at 50% 50%, rgba(20, 48, 34, 0.56), rgba(8, 22, 16, 0.84));
  border: 1.5px solid rgba(74, 222, 128, 0.3);
  border-bottom: 6px solid #2b1e14;
  box-shadow: 0 6px 0 #1a120c, 0 14px 26px rgba(0, 0, 0, 0.72), inset 0 0 18px rgba(34, 197, 94, 0.16);
}
.arena-stage-nether .arena-floor-grid {
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.38), rgba(185, 28, 28, 0.3));
  border: 1.5px solid rgba(249, 115, 22, 0.44);
  border-bottom: 6px solid #3b0d0c;
  box-shadow: 0 6px 0 #1f0608, 0 0 22px rgba(234, 88, 12, 0.3), 0 14px 28px rgba(0, 0, 0, 0.78), inset 0 0 22px rgba(249, 115, 22, 0.32);
}
.arena-stage-end .arena-floor-grid {
  background: linear-gradient(180deg, rgba(126, 34, 206, 0.3), rgba(30, 11, 64, 0.58));
  border: 1.5px solid rgba(192, 132, 252, 0.4);
  border-bottom: 6px solid #26104a;
  box-shadow: 0 6px 0 #120626, 0 0 24px rgba(168, 85, 247, 0.3), 0 16px 30px rgba(0, 0, 0, 0.8), inset 0 0 22px rgba(139, 92, 246, 0.26);
}

.floor-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-bottom-width: 3.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 3px 5px rgba(0, 0, 0, 0.44);
  overflow: hidden;
}
.arena-grid-overworld .floor-tile.tile-main {
  background: linear-gradient(155deg, rgba(24, 62, 42, 0.88), rgba(14, 38, 28, 0.93));
  border-color: rgba(74, 222, 128, 0.34);
  border-bottom-color: #3d2817;
}
.arena-grid-overworld .floor-tile.tile-alt {
  background: linear-gradient(155deg, rgba(38, 54, 48, 0.88), rgba(22, 34, 32, 0.94));
  border-color: rgba(148, 163, 184, 0.32);
  border-bottom-color: #334155;
}
.arena-grid-overworld .floor-tile.row-enemy-base {
  background: linear-gradient(155deg, rgba(102, 28, 32, 0.72), rgba(52, 16, 20, 0.86));
  border-color: rgba(248, 113, 113, 0.38);
}
.arena-grid-overworld .floor-tile.row-player-base {
  background: linear-gradient(155deg, rgba(22, 82, 48, 0.74), rgba(13, 50, 30, 0.88));
  border-color: rgba(74, 222, 128, 0.4);
}
.arena-grid-nether .floor-tile.tile-main {
  background: linear-gradient(155deg, rgba(46, 24, 26, 0.92), rgba(24, 12, 16, 0.96));
  border-color: rgba(251, 146, 60, 0.44);
  border-bottom-color: #451010;
}
.arena-grid-nether .floor-tile.tile-alt {
  background: linear-gradient(155deg, rgba(34, 18, 22, 0.94), rgba(18, 9, 13, 0.97));
  border-color: rgba(249, 115, 22, 0.38);
  border-bottom-color: #3b0d0c;
}
.arena-grid-nether .floor-tile.row-enemy-base {
  background: linear-gradient(155deg, rgba(116, 24, 24, 0.78), rgba(54, 10, 14, 0.9));
  border-color: rgba(248, 113, 113, 0.48);
}
.arena-grid-nether .floor-tile.row-player-base {
  background: linear-gradient(155deg, rgba(32, 58, 40, 0.82), rgba(16, 30, 24, 0.92));
  border-color: rgba(74, 222, 128, 0.38);
}
.arena-grid-end .floor-tile.tile-main {
  background: linear-gradient(155deg, rgba(42, 26, 72, 0.9), rgba(22, 13, 42, 0.95));
  border-color: rgba(192, 132, 252, 0.42);
  border-bottom-color: #2e1065;
}
.arena-grid-end .floor-tile.tile-alt {
  background: linear-gradient(155deg, rgba(30, 18, 56, 0.92), rgba(15, 9, 32, 0.96));
  border-color: rgba(167, 139, 250, 0.36);
  border-bottom-color: #26104a;
}
.arena-grid-end .floor-tile.row-enemy-base {
  background: linear-gradient(155deg, rgba(96, 24, 82, 0.78), rgba(46, 10, 44, 0.9));
  border-color: rgba(244, 114, 182, 0.46);
}
.arena-grid-end .floor-tile.row-player-base {
  background: linear-gradient(155deg, rgba(24, 68, 60, 0.78), rgba(12, 36, 36, 0.9));
  border-color: rgba(74, 222, 128, 0.4);
}

/* Ebene 2: Gestochen scharfes 2D-Einheiten- & Interaktions-Overlay (KEIN rotateX, KEIN blur, reine 2D-Pixel!) */
.battle-grid.is-sharp-2d-overlay {
  position: absolute;
  inset: 0;
  z-index: 10 !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  transform: none !important;
  transform-style: flat !important;
}
.battle-grid.is-sharp-2d-overlay.is-pixel-synced {
  display: block;
}
.battle-grid.is-sharp-2d-overlay.is-pixel-synced .board-tile.is-sharp-cell {
  position: absolute;
}

.battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell {
  background: transparent !important;
  border-color: transparent !important;
  border-width: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
  transform: none !important;
  transform-style: flat !important;
}
.battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell.can-place {
  border: 2px dashed #4ade80 !important;
  background: rgba(34, 197, 94, 0.2) !important;
}
.battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell.can-move {
  border: 2px dashed #38bdf8 !important;
  background: rgba(56, 189, 248, 0.22) !important;
}
.battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell.can-potion {
  border: 2px dashed #e879f9 !important;
  background: rgba(192, 38, 211, 0.22) !important;
}

/* Scharfe 2D-Figuren & Texte: KEINE 3D-Gegenrotation, KEIN scale-Blur, maximale High-Res-Klarheit! */
.battle-grid.is-sharp-2d-overlay .tile-token {
  pointer-events: none;
  position: relative;
  z-index: 4;
  border-radius: 8px;
  transform: none !important;
  will-change: auto;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(8, 12, 22, 0.88));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
  -webkit-font-smoothing: antialiased;
}
.battle-grid.is-sharp-2d-overlay .tile-token.side-player {
  background: linear-gradient(180deg, rgba(16, 68, 40, 0.78), rgba(10, 18, 30, 0.9));
}
.battle-grid.is-sharp-2d-overlay .tile-token.side-enemy {
  background: linear-gradient(180deg, rgba(110, 22, 28, 0.78), rgba(12, 16, 28, 0.9));
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-board-selected {
  box-shadow: 0 0 0 2px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.72);
  transform: translateY(-3px) !important;
}

/* Maximale quadratische High-Res-Mob-Grafik (exaktes 1:1-Verhältnis ohne Stauchung) + scharfe dunkle Kontur */
.battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art,
.battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art {
  flex: 0 0 auto;
  height: calc(100% - 24px) !important;
  width: auto !important;
  aspect-ratio: 1 / 1;
  min-height: 28px;
  max-width: 46px;
  max-height: 46px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art svg,
.battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  shape-rendering: geometricPrecision;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.85));
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-weapon-enchanted .tile-token-art svg {
  filter: drop-shadow(0 0 2px rgba(192, 132, 252, 0.45)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.85));
}

/* Kontrastreicher dunkler Hintergrund-Kasten hinter Angriffs- & HP-Werten + scharfer Name */
.battle-grid.is-sharp-2d-overlay .tile-token-name {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95);
}
.battle-grid.is-sharp-2d-overlay .tile-token-stats {
  border-radius: 5px;
  background: rgba(5, 9, 18, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.battle-grid.is-sharp-2d-overlay .tile-token-stats.is-ready-pill {
  justify-content: center;
  color: #86efac;
  font-size: 8.5px;
}

/* Reine 2D-Idle-, Lunge-, Prime- & K.O.-Animationen ohne scale()-Stauchung & ohne 3D-Unschärfe */
.battle-grid.is-sharp-2d-overlay .tile-token-art.idle-breathe {
  animation: sharpIdleBob 2.6s ease-in-out infinite !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token-art.idle-float {
  animation: sharpIdleFloat 2.8s ease-in-out infinite !important;
}
@keyframes sharpIdleBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}
@keyframes sharpIdleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}
/* Schwebender Animations-Overlay-Layer (#arena-fx-layer) oberhalb aller Spielfeld-Kacheln (5×5 & 3×4, Handy & PC) */
.battle-layout.is-resolving-combat .arena-perspective-wrap {
  overflow: visible !important;
}

.arena-fx-layer {
  position: absolute;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  overflow: visible;
}

.arena-fx-move-clone {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  margin: 0 !important;
  transform-origin: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.72));
}

.arena-fx-move-clone svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.battle-grid.is-sharp-2d-overlay .tile-token.is-attacking {
  position: relative;
  z-index: 80 !important;
  pointer-events: none !important;
  animation: sharpLunge2d calc(0.38s * var(--spd, 1)) cubic-bezier(0.22, 1, 0.36, 1) !important;
}
@keyframes sharpLunge2d {
  0%, 100% { transform: translate3d(0, 0, 26px) scale(1); }
  42% { transform: translate3d(var(--lunge-x, 0px), var(--lunge-y, -10px), 40px) scale(1.08); }
}

.battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell.has-moving-unit,
.battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell:has(.tile-token.is-attacking) {
  overflow: visible !important;
  z-index: 80 !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-priming-boom {
  animation: sharpCreeperPrime2d calc(0.19s * var(--spd, 1)) ease-in-out infinite !important;
}
@keyframes sharpCreeperPrime2d {
  0%, 100% { filter: brightness(1.3); }
  50% { filter: brightness(2.0) contrast(1.15); }
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-sinking-ko {
  animation: sharpSinkKo2d calc(0.4s * var(--spd, 1)) ease-in forwards !important;
}
@keyframes sharpSinkKo2d {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

@media (max-width: 560px) {
  .battle-grid.is-sharp-2d-overlay .tile-token-art {
    max-width: 34px;
    max-height: 34px;
  }
  .battle-grid.is-sharp-2d-overlay .tile-token-name {
    font-size: 8px;
  }
  .battle-grid.is-sharp-2d-overlay .tile-token-stats {
    font-size: 8.5px;
    padding: 1px 3px;
  }
}


/* ==================== VERTIKALE HITBOX-ISOLATION & KLARE ZIEL-MARKIERUNG (OHNE FIGUREN-CLIPPING!) ==================== */
/* Alle inneren visuellen Elemente einer Kachel lassen Klicks/Taps 100% durch -> ausschließlich .board-tile empfängt Taps! */
.battle-grid .board-tile * {
  pointer-events: none !important;
}

.battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell {
  overflow: visible !important;
  z-index: calc(10 + var(--row, 0));
}

/* Gültige Angriffsziele (inkl. vertikal darüber/darunter) liegen immer ganz oben und zeigen klares rotes Ziel-Fadenkreuz! */
.battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell.can-target {
  z-index: 25 !important;
  cursor: crosshair;
  border: 2.5px solid #ef4444 !important;
  background: rgba(239, 68, 68, 0.28) !important;
  box-shadow: inset 0 0 14px rgba(239, 68, 68, 0.55), 0 0 16px rgba(239, 68, 68, 0.72) !important;
}

.target-aim-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.82);
  border: 2px solid #fecaca;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 14;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.92);
  animation: targetAimPulse 1s ease-in-out infinite;
}
@keyframes targetAimPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
body.reduced-effects .target-aim-badge {
  animation: none !important;
}

/* ==================== CONTENT EXPANSION 1: NATUR-AURA, EISPFEIL, EILE, SCHWÄCHE & QUEST-KRISTALLE ==================== */
.quest-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px 1px 3px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.36);
  color: #e0f2fe;
  font-weight: 800;
}
.quest-card-mini-art {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quest-card-mini-art svg {
  width: 100%;
  height: 100%;
}

/* Status-Auren & scharfe Dauer-Effekte auf dem Spielfeld (5×5 & 3×4) */
.battle-grid.is-sharp-2d-overlay .tile-token.is-poisoned-token {
  box-shadow: inset 0 0 11px rgba(132, 204, 22, 0.56), 0 0 11px rgba(132, 204, 22, 0.44), 0 4px 10px rgba(0, 0, 0, 0.65);
  border-color: #84cc16 !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-burning-token {
  box-shadow: inset 0 0 12px rgba(249, 115, 22, 0.62), 0 0 12px rgba(251, 146, 60, 0.48), 0 4px 10px rgba(0, 0, 0, 0.65);
  border-color: #f97316 !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-withered-token {
  box-shadow: inset 0 0 13px rgba(126, 34, 206, 0.68), inset 0 0 0 1px rgba(15, 23, 42, 0.85), 0 0 11px rgba(88, 28, 135, 0.55), 0 4px 10px rgba(0, 0, 0, 0.72);
  border-color: #9333ea !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-chilled-token {
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.58), 0 0 12px rgba(125, 211, 252, 0.45), 0 4px 10px rgba(0, 0, 0, 0.65);
  border-color: #7dd3fc !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-weakened-token {
  box-shadow: inset 0 0 12px rgba(147, 51, 234, 0.56), 0 0 10px rgba(168, 85, 247, 0.4), 0 4px 10px rgba(0, 0, 0, 0.65);
  border-color: #c084fc !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-shielded-token {
  box-shadow: inset 0 0 0 1.5px rgba(186, 230, 253, 0.78), inset 0 0 12px rgba(14, 165, 233, 0.56), 0 0 13px rgba(56, 189, 248, 0.52), 0 4px 10px rgba(0, 0, 0, 0.65);
  border-color: #38bdf8 !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-strength-token {
  box-shadow: inset 0 0 12px rgba(251, 191, 36, 0.54), 0 0 12px rgba(245, 158, 11, 0.48), 0 4px 10px rgba(0, 0, 0, 0.65);
  border-color: #fbbf24 !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-haste-token {
  box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.52), 0 0 14px rgba(250, 204, 21, 0.48), 0 4px 10px rgba(0, 0, 0, 0.65);
  border-color: #34d399 !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-rooted-token {
  box-shadow: inset 0 -8px 12px rgba(99, 102, 241, 0.62), inset 0 0 8px rgba(232, 121, 249, 0.34), 0 0 11px rgba(129, 140, 248, 0.48), 0 4px 10px rgba(0, 0, 0, 0.65);
  border-color: #818cf8 !important;
}
.battle-grid.is-sharp-2d-overlay .tile-token.is-stunned-token {
  box-shadow: inset 0 0 12px rgba(232, 121, 249, 0.58), 0 0 12px rgba(253, 224, 71, 0.44), 0 4px 10px rgba(0, 0, 0, 0.65);
  border-color: #e879f9 !important;
}

/* Scharfes, leichtes Partikel- & Barriere-Overlay direkt im Token */
.token-status-fx {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.token-status-fx .tsfx-p {
  position: absolute;
  display: block;
  pointer-events: none;
}

/* Gift: scharfe aufsteigende Gift-Bläschen */
.token-status-fx .tsfx-p.is-poison {
  bottom: 10%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ecfccb 0%, #84cc16 65%, #365314 100%);
  border: 1px solid rgba(20, 40, 8, 0.78);
  animation: tsfxRise 2.1s linear infinite;
}
.token-status-fx .tsfx-p.is-poison.p1 { left: 14%; animation-delay: 0s; }
.token-status-fx .tsfx-p.is-poison.p2 { left: 78%; width: 4px; height: 4px; animation-delay: -0.75s; animation-duration: 1.9s; }
.token-status-fx .tsfx-p.is-poison.p3 { left: 48%; width: 4px; height: 4px; animation-delay: -1.4s; animation-duration: 2.35s; }

/* Feuer: scharfe aufsteigende Glut-Rauten */
.token-status-fx .tsfx-p.is-burn {
  bottom: 8%;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: linear-gradient(135deg, #fef08a 0%, #f97316 58%, #b91c1c 100%);
  border: 1px solid rgba(124, 45, 18, 0.8);
  animation: tsfxRiseDiamond 1.55s ease-out infinite;
}
.token-status-fx .tsfx-p.is-burn.p1 { left: 16%; animation-delay: 0s; }
.token-status-fx .tsfx-p.is-burn.p2 { left: 74%; width: 4px; height: 4px; animation-delay: -0.55s; animation-duration: 1.35s; }
.token-status-fx .tsfx-p.is-burn.p3 { left: 46%; width: 4px; height: 4px; animation-delay: -1.05s; animation-duration: 1.75s; }

/* Verdorrung: scharfe dunkle Voxel-Asche-Quadrate */
.token-status-fx .tsfx-p.is-wither {
  bottom: 12%;
  width: 5px;
  height: 5px;
  background: #1e1b4b;
  border: 1px solid #c084fc;
  animation: tsfxRise 2.2s linear infinite;
}
.token-status-fx .tsfx-p.is-wither.p1 { left: 18%; animation-delay: 0s; }
.token-status-fx .tsfx-p.is-wither.p2 { left: 74%; width: 4px; height: 4px; animation-delay: -0.8s; animation-duration: 2s; }
.token-status-fx .tsfx-p.is-wither.p3 { left: 48%; width: 4px; height: 4px; animation-delay: -1.5s; }

/* Unterkühlt / Frost: scharfer Eissaum oben + schwebende Kristall-Rauten */
.token-status-fx .tsfx-frost-edge {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: repeating-linear-gradient(135deg, rgba(224, 242, 254, 0.92) 0 4px, rgba(56, 189, 248, 0.55) 4px 8px);
  border-bottom: 1px solid rgba(186, 230, 253, 0.9);
}
.token-status-fx .tsfx-p.is-frost {
  top: 24%;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #ffffff 0%, #7dd3fc 65%, #0284c7 100%);
  border: 1px solid rgba(12, 74, 110, 0.7);
  animation: tsfxFloatDiamond 2.4s ease-in-out infinite;
}
.token-status-fx .tsfx-p.is-frost.p1 { left: 10%; animation-delay: 0s; }
.token-status-fx .tsfx-p.is-frost.p2 { right: 10%; top: 44%; width: 4px; height: 4px; animation-delay: -1.2s; }

/* Schwäche: langsam sinkende violette Tropfen */
.token-status-fx .tsfx-p.is-weakness {
  top: 16%;
  width: 4px;
  height: 6px;
  border-radius: 1px 1px 50% 50%;
  background: linear-gradient(180deg, #f3e8ff 0%, #a855f7 65%, #581c87 100%);
  border: 1px solid rgba(46, 16, 101, 0.78);
  animation: tsfxFall 2.2s linear infinite;
}
.token-status-fx .tsfx-p.is-weakness.p1 { left: 12%; animation-delay: 0s; }
.token-status-fx .tsfx-p.is-weakness.p2 { right: 12%; animation-delay: -1.1s; }

/* Schildtrank: klarer pulsierender Schutz-Rahmen + scharfe Schutz-Funken */
.token-status-fx .tsfx-shield-rim {
  position: absolute;
  inset: 2px;
  border-radius: 6px;
  border: 1.5px solid rgba(186, 230, 253, 0.88);
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.42);
  animation: tsfxShieldPulse 2s ease-in-out infinite;
}
.token-status-fx .tsfx-p.is-shield {
  top: 28%;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #ffffff 0%, #bae6fd 55%, #0284c7 100%);
  border: 1px solid #0369a1;
  animation: tsfxFloatDiamond 1.85s ease-in-out infinite;
}
.token-status-fx .tsfx-p.is-shield.p1 { left: 8%; animation-delay: 0s; }
.token-status-fx .tsfx-p.is-shield.p2 { right: 8%; top: 50%; width: 4px; height: 4px; animation-delay: -0.9s; }

/* Stärke: scharfe goldene Power-Funken */
.token-status-fx .tsfx-p.is-strength {
  bottom: 14%;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #fef9c3 0%, #fbbf24 58%, #ea580c 100%);
  border: 1px solid rgba(120, 53, 15, 0.78);
  animation: tsfxRiseDiamond 1.7s ease-out infinite;
}
.token-status-fx .tsfx-p.is-strength.p1 { left: 11%; animation-delay: 0s; }
.token-status-fx .tsfx-p.is-strength.p2 { right: 11%; animation-delay: -0.85s; }

/* Eile: scharfe schnelle Tempo-Streifen */
.token-status-fx .tsfx-p.is-haste {
  bottom: 14%;
  width: 2px;
  height: 11px;
  border-radius: 2px;
  background: linear-gradient(180deg, #fef08a 0%, #34d399 65%, transparent 100%);
  animation: tsfxRise 1.15s linear infinite;
}
.token-status-fx .tsfx-p.is-haste.p1 { left: 9%; animation-delay: 0s; }
.token-status-fx .tsfx-p.is-haste.p2 { right: 9%; animation-delay: -0.58s; }

/* Festgehalten (Void-Fessel / Schwebestase): sichtbares Void-Fessel-Band über dem Boden + schwebende Stase-Kristalle */
.token-status-fx .tsfx-root-band {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 18px;
  height: 4px;
  border-radius: 2px;
  background: repeating-linear-gradient(125deg, #c7d2fe 0 4px, #4f46e5 4px 8px);
  border-top: 1px solid #f0abfc;
  box-shadow: 0 0 6px rgba(129, 140, 248, 0.85);
  animation: tsfxShieldPulse 1.8s ease-in-out infinite;
}
.token-status-fx .tsfx-p.is-rooted {
  bottom: 22%;
  width: 5px;
  height: 5px;
  background: linear-gradient(135deg, #f5d0fe 0%, #818cf8 60%, #312e81 100%);
  border: 1px solid rgba(49, 46, 129, 0.85);
  animation: tsfxFloatDiamond 2s ease-in-out infinite;
}
.token-status-fx .tsfx-p.is-rooted.p1 { left: 10%; animation-delay: 0s; }
.token-status-fx .tsfx-p.is-rooted.p2 { right: 10%; bottom: 42%; width: 4px; height: 4px; animation-delay: -1s; }

/* Betäubt (Void- / Gift-Stun): scharfe blinkende Stun-Sterne oben */
.token-status-fx .tsfx-p.is-stun {
  top: 16%;
  width: 5px;
  height: 5px;
  background: #fef08a;
  border: 1px solid #a21caf;
  animation: tsfxStunPulse 1.3s ease-in-out infinite;
}
.token-status-fx .tsfx-p.is-stun.p1 { left: 16%; animation-delay: 0s; }
.token-status-fx .tsfx-p.is-stun.p2 { right: 16%; animation-delay: -0.65s; }

@keyframes tsfxRise {
  0% { transform: translate3d(0, 2px, 0); opacity: 0; }
  18% { opacity: 0.95; }
  80% { opacity: 0.85; }
  100% { transform: translate3d(0, -34px, 0); opacity: 0; }
}
@keyframes tsfxRiseDiamond {
  0% { transform: translate3d(0, 2px, 0) rotate(45deg) scale(0.85); opacity: 0; }
  18% { opacity: 0.95; }
  80% { opacity: 0.82; }
  100% { transform: translate3d(0, -34px, 0) rotate(45deg) scale(1.05); opacity: 0; }
}
@keyframes tsfxFloatDiamond {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(45deg); opacity: 0.92; }
  50% { transform: translate3d(0, -6px, 0) rotate(45deg); opacity: 0.55; }
}
@keyframes tsfxFall {
  0% { transform: translate3d(0, -4px, 0); opacity: 0; }
  20% { opacity: 0.9; }
  82% { opacity: 0.78; }
  100% { transform: translate3d(0, 28px, 0); opacity: 0; }
}
@keyframes tsfxShieldPulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 0.42; }
}
@keyframes tsfxStunPulse {
  0%, 100% { transform: translate3d(-3px, 0, 0) rotate(45deg) scale(1); opacity: 0.96; }
  50% { transform: translate3d(3px, -3px, 0) rotate(45deg) scale(0.75); opacity: 0.45; }
}

body.modal-open .token-status-fx *,
body.app-paused .token-status-fx * {
  animation-play-state: paused !important;
}
body.perf-mode .token-status-fx .tsfx-p {
  display: none !important;
}
body.perf-mode .token-status-fx .tsfx-shield-rim,
body.perf-mode .token-status-fx .tsfx-root-band {
  animation: none !important;
}

/* Frost-Eispfeil, Frostkristall-Splitter & Frost-Bogen */
.fx-ice-arrow-svg {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.92)) drop-shadow(0 0 2px #ffffff);
}
.fx-arc-trail-frost {
  background: radial-gradient(circle, #ffffff 0%, #7dd3fc 52%, rgba(2, 132, 199, 0) 100%) !important;
  box-shadow: 0 0 9px rgba(56, 189, 248, 0.9);
}
.fx-arc-trail-haste {
  background: radial-gradient(circle, #fef08a 0%, #10b981 55%, rgba(16, 185, 129, 0) 100%) !important;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.92);
}
.fx-arc-trail-weakness {
  background: radial-gradient(circle, #e9d5ff 0%, #7e22ce 55%, rgba(59, 7, 100, 0) 100%) !important;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.88);
}
.fx-splinter-frost {
  background: linear-gradient(135deg, #ffffff, #38bdf8) !important;
  border: 1px solid #e0f2fe;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.95);
}
.fx-dmg-frost {
  color: #bae6fd !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.95), 0 2px 3px #082f49 !important;
}

/* Violette Schwäche-Alchemie-Rauchwolke & Smaragd-Eile-Wolke */
.fx-gas-weakness .fx-gas-puff {
  background: radial-gradient(circle, rgba(192, 132, 252, 0.86) 0%, rgba(107, 33, 168, 0.72) 55%, rgba(30, 16, 53, 0) 100%) !important;
  box-shadow: 0 0 14px rgba(147, 51, 234, 0.65);
}
.fx-gas-haste .fx-gas-puff {
  background: radial-gradient(circle, rgba(254, 240, 138, 0.82) 0%, rgba(16, 185, 129, 0.7) 56%, rgba(6, 78, 59, 0) 100%) !important;
  box-shadow: 0 0 14px rgba(20, 184, 166, 0.65);
}

/* Moos-Wächter: Sanft aufsteigende smaragdgrüne Heil-Partikel */
.fx-emerald-heal-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 25;
}
.fx-emerald-heal-ring {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  border: 2.5px solid #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.85), inset 0 0 10px rgba(52, 211, 153, 0.45);
  animation: fxNatureRing calc(0.65s * var(--spd, 1)) ease-out forwards;
}
.fx-emerald-mote {
  position: absolute;
  left: var(--mx, 50%);
  top: 68%;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: linear-gradient(135deg, #d1fae5, #10b981);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.95);
  animation: fxEmeraldRise calc(0.72s * var(--spd, 1)) ease-out var(--mdelay, 0ms) forwards;
}
@keyframes fxNatureRing {
  0% { transform: scale(0.55); opacity: 0.95; }
  100% { transform: scale(1.38); opacity: 0; }
}
@keyframes fxEmeraldRise {
  0% { transform: translate(-50%, 0) scale(0.65) rotate(0deg); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translate(-50%, -34px) scale(1.1) rotate(90deg); opacity: 0; }
}

/* Trank der Eile: Türkis-goldener Tempo-Schweif */
.fx-haste-trail-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  pointer-events: none;
  z-index: 26;
}
.fx-haste-ring {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 2.5px dashed #fde047;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.88), inset 0 0 12px rgba(250, 204, 21, 0.45);
  animation: fxHasteSpin calc(0.58s * var(--spd, 1)) cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
@keyframes fxHasteSpin {
  0% { transform: scale(0.5) rotate(0deg); opacity: 1; }
  100% { transform: scale(1.35) rotate(180deg); opacity: 0; }
}

.fx-spec-frost {
  background: linear-gradient(135deg, #0369a1, #38bdf8) !important;
  border-color: #bae6fd !important;
  color: #f0f9ff !important;
}
.fx-spec-haste {
  background: linear-gradient(135deg, #065f46, #10b981) !important;
  border-color: #fde047 !important;
  color: #fef9c3 !important;
}
.fx-spec-weakness {
  background: linear-gradient(135deg, #3b0764, #7e22ce) !important;
  border-color: #e9d5ff !important;
  color: #f5d0fe !important;
}
.fx-spec-nature {
  background: linear-gradient(135deg, #14532d, #10b981) !important;
  border-color: #a7f3d0 !important;
  color: #ecfdf5 !important;
}


/* =====================================================================
   DESKTOP / WIDESCREEN EDGE-TO-EDGE LAYOUT & FULLSCREEN TOGGLE
   Strikt gekapselt in @media (min-width: 960px) and (orientation: landscape)
   -> Smartphone- & Hochformat-Ansicht bleibt zu 100 % unverändert!
   ===================================================================== */
.desktop-fs-btn {
  display: none;
}

:fullscreen html,
:fullscreen body,
html:fullscreen,
html:fullscreen body,
:-webkit-full-screen,
:-webkit-full-screen body {
  width: 100vw !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

:fullscreen #square-shell,
html:fullscreen #square-shell,
:-webkit-full-screen #square-shell {
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

@media (min-width: 960px) and (orientation: landscape) {
  .desktop-fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.78));
    border: 1px solid rgba(125, 211, 252, 0.36);
  }

  .desktop-fs-btn:hover {
    border-color: rgba(125, 211, 252, 0.78);
    filter: brightness(1.12);
  }

  .desktop-fs-btn.is-fs-active {
    border-color: rgba(253, 224, 71, 0.68);
    background: linear-gradient(150deg, rgba(120, 53, 15, 0.45), rgba(15, 23, 42, 0.9));
  }

  .battle-fs-btn {
    padding: 4px 7px !important;
    min-width: 28px;
    height: 26px;
  }

  /* 1. Rand-zu-Rand Vollfläche ohne schwarzen Rahmen oder Rundung */
  html, body {
    display: block;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  #square-shell {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
  }

  /* 2. Ergonomische zentrierte Kopfzeile & Home-Screen (max-width 1440px, kurze Mauswege, kein PC-Overlay-Konflikt) */
  .hub-topbar,
  .subview-header {
    width: min(92vw, 1440px);
    max-width: 1440px;
    margin: 10px auto 0;
    padding: 10px 20px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 26px rgba(2, 6, 16, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .hub-main {
    padding: 10px 0 12px;
    overflow: hidden;
  }

  .hub-floating-badges {
    width: min(92vw, 1440px);
    max-width: 1440px;
    margin: 0 auto;
  }

  .hub-open-hero {
    min-height: 230px;
    flex: 1 1 auto;
    padding-bottom: 6px;
  }

  .hub-hero-pedestal-wrap {
    width: 306px;
    height: 102px;
    bottom: -4px;
  }

  .hub-hero-figure {
    margin-bottom: 30px;
  }

  .hub-open-hero .steve-svg {
    width: 232px;
    height: 232px;
  }

  .hub-lower-stack,
  .hub-play-zone {
    max-width: 680px;
    gap: 10px;
  }

  .hub-glass-dock {
    padding: 12px 14px;
    gap: 10px;
  }

  .play-cta-btn {
    padding: 16px 26px 15px;
    font-size: 18px;
  }

  /* 3. Kompakte, gut klickbare zentrierte Bottom-Dock-Leiste auf Desktop */
  .aaa-bottom-nav {
    width: min(820px, 92vw);
    max-width: 820px;
    margin: 0 auto 12px;
    padding: 8px 14px;
    gap: 8px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 32px rgba(2, 6, 16, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .aaa-bottom-nav .bnav-item {
    padding: 7px 8px 6px;
    gap: 3px;
  }

  .aaa-bottom-nav .bnav-icon svg {
    width: 22px;
    height: 22px;
  }

  .aaa-bottom-nav .bnav-label {
    font-size: 11.5px;
  }

  /* 4. Sammlung, Shop, Schmiede & Matches: Zentrierte 1440px-Arbeitsfläche */
  .subview-body {
    width: min(92vw, 1440px);
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 4px 20px;
  }

  /* Matches & Arenen: Kampagne & PvE nebeneinander (2 Spalten), PvP kompakt darunter */
  .subview-body.play-hub-body {
    width: min(92vw, 1240px);
    max-width: 1240px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-content: start;
    align-items: stretch;
  }

  .play-hub-body > .mode-campaign-card,
  .play-hub-body > .mode-pve-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .play-hub-body > .mode-pvp-disabled {
    grid-column: 1 / -1;
    margin: 0;
  }

  /* Sammlung: 6–7 gut lesbare, scharfe Karten pro Zeile */
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 14px;
  }

  /* Shop – Pack-Store: Zentriert in 1320px mit großen, präsenten Voxel-Pack-Artworks */
  .pack-store-hero,
  .pack-store-grid {
    max-width: 1320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .pack-store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .pack-visual-stage {
    padding: 28px 12px 12px;
    min-height: 196px;
  }

  .pack-stage-aura {
    width: 164px;
    height: 164px;
  }

  .pack-3d-svg {
    width: auto;
    height: 156px;
  }

  /* Schmiede – 10:1 Karten-Fusion, Schmiedetisch & Reparieren im ergonomischen 2-Spalten-Grid */
  .fuse-cards-list,
  .forge-cards-list,
  .repair-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
  }

  .repair-cards-grid .repair-item-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .trader-book-grid,
  .wb-cards-grid,
  .alchemy-cards-grid,
  .altar-books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .modal-card {
    max-width: min(820px, 90vw);
  }

  /* Kampagnen-Karte auf PC: Dimensions-Tabs in 1440px, Landschaftspfad im edlen 1160px AAA-Kartenrahmen */
  .camp-dim-bar {
    width: min(92vw, 1440px);
    max-width: 1440px;
    margin: 10px auto 0;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  .camp-map-scroll {
    width: min(92vw, 1160px);
    max-width: 1160px;
    margin: 12px auto 12px;
    border-radius: 18px;
    border: 1.5px solid rgba(148, 163, 184, 0.24);
    box-shadow:
      0 18px 48px rgba(2, 6, 16, 0.74),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .camp-map-stage {
    max-width: 100%;
    margin: 0 auto;
  }

  /* 5. 5x5 Kampf-Arena: PC-AAA-Layout (Zentrierte Top-HUD, unbeschnittenes 5x5-Brett, dezentes Log links, Bottom-Hand-Dock unten) */
  .battle-layout {
    width: min(96vw, 1520px);
    max-width: 1520px;
    height: 100dvh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 270px;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas:
      "hud-top  hud-top  hud-top"
      "hero-hud hero-hud hero-hud"
      "log      board    ."
      "dock     dock     dock";
    align-items: center;
    justify-items: center;
    gap: 6px 20px;
    padding: 12px 18px 12px;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* Zentrierte obere Match-Info-Leiste + breite Spieler-/Gegner-HP-Leiste (0 Text-Überlappung!) */
  .battle-layout > .battle-top-hud,
  .battle-layout > .battle-hero-hud-strip,
  .battle-layout > .boss-hud-bar {
    position: relative;
    margin: 0 auto;
    width: min(860px, 100%);
    max-width: 860px;
    min-width: 0;
    box-sizing: border-box;
  }

  .battle-layout > .battle-top-hud {
    grid-area: hud-top;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 12px;
  }

  .battle-layout > .battle-hero-hud-strip,
  .battle-layout > .boss-hud-bar {
    grid-area: hero-hud;
  }

  .battle-layout > .battle-hero-hud-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 16px;
    border-radius: 14px;
  }

  .battle-layout > .battle-hero-hud-strip .hero-hp-pod {
    flex: 1 1 0;
    min-width: 0;
  }

  .battle-layout > .battle-hero-hud-strip .hero-hp-pod-head {
    font-size: 13px;
    gap: 8px;
    margin-bottom: 4px;
    white-space: nowrap;
  }

  .battle-layout > .battle-hero-hud-strip .hero-hp-seg-track {
    height: 12px;
    border-radius: 7px;
  }

  .battle-layout > .battle-hero-hud-strip .hero-vs-emblem {
    display: inline-flex;
    flex-shrink: 0;
  }

  /* Dezentes kompaktes Kampf-Log links neben dem Spielfeld (270px) */
  .battle-layout > .battle-log-strip {
    grid-area: log;
    position: relative;
    margin: 0;
    width: 270px;
    min-width: 0;
    box-sizing: border-box;
    align-self: center;
    justify-self: end;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    white-space: normal;
    line-height: 1.48;
    padding: 12px 14px;
    border-radius: 14px;
    min-height: 120px;
    max-height: 280px;
    overflow-y: auto;
    font-size: 12.5px;
    background: rgba(11, 17, 32, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* Mittleres 5x5-Spielfeld: strikt quadratisch, overflow: visible damit untere 3D-Ecken nie abgeschnitten werden! */
  .battle-layout > .battle-board-wrap {
    grid-area: board;
    position: relative;
    height: 100%;
    width: auto;
    max-height: min(58dvh, 52vw, 660px);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    flex: none;
    flex-shrink: 0;
    margin: 0 auto;
    padding: 6px 26px 16px;
    box-sizing: border-box;
    overflow: visible;
    align-self: center;
    justify-self: center;
  }

  .battle-layout .arena-floor-perspective {
    padding: 6px 26px 16px;
    perspective: 980px;
  }

  .battle-layout .arena-stage-3d {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    --arena-tilt: 12deg;
  }

  .battle-layout .arena-floor-grid {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    gap: 5px;
    padding: 6px;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token {
    padding: 4px 5px;
    gap: 2px;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art,
  .battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art {
    flex: 1 1 auto;
    height: auto !important;
    width: auto !important;
    min-height: 44px;
    max-height: 68%;
    max-width: 88%;
    aspect-ratio: 1 / 1;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token-name {
    font-size: 11.5px;
    line-height: 1.12;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token-stats {
    font-size: 12px;
    padding: 2.5px 6px;
    border-radius: 6px;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token-stats svg {
    width: 13px;
    height: 13px;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token-stats.is-ready-pill {
    font-size: 10.5px;
  }

  /* Zentriertes Bottom-Hand-Dock (max-width: 920px) direkt unterhalb des Spielfelds */
  .battle-layout > .battle-bottom {
    grid-area: dock;
    position: relative;
    margin: 0 auto;
    width: min(920px, 94vw);
    max-width: 920px;
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "xp   actions"
      "hand hand";
    align-items: center;
    gap: 8px 14px;
    height: auto;
    padding: 10px 14px 12px;
    border-radius: 16px;
    overflow: visible;
  }

  .battle-layout > .battle-bottom .mc-xp-wrap {
    grid-area: xp;
    margin: 0;
  }

  .battle-layout > .battle-bottom .battle-actions-row {
    grid-area: actions;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
    margin: 0;
    border-top: none;
  }

  .battle-layout > .battle-bottom #btn-resolve-round {
    width: auto;
    flex-shrink: 0;
    padding: 9px 18px !important;
    font-size: 13.5px !important;
  }

  .battle-layout > .battle-bottom .battle-hand.battle-hand-fan {
    grid-area: hand;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 4px 2px 2px;
    overflow: visible;
    max-height: none;
  }

  .battle-layout > .battle-bottom .battle-hand-fan .mc-card.is-battle-hand-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-left: 0 !important;
    transform: none !important;
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease;
  }

  .battle-layout > .battle-bottom .battle-hand-fan .mc-card.is-battle-hand-card:not(.is-disabled):hover {
    transform: translateY(-8px) scale(1.04) !important;
    z-index: 8;
  }

  .battle-layout > .battle-bottom .battle-hand-fan .mc-card.is-battle-hand-card.is-selected {
    transform: translateY(-9px) scale(1.05) !important;
    z-index: 9;
  }
}

@media (min-width: 960px) and (max-width: 1220px) and (orientation: landscape) {
  .pack-store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .battle-layout {
    grid-template-columns: 220px minmax(0, 1fr) 80px;
  }

  .battle-layout > .battle-log-strip {
    width: 220px;
  }
}


/* =====================================================================
   VERFLUCHTE ZITADELLE (SOLO-DUNGEON) — PHASE 1: MOBILE-FIRST (360–430px+)
   & PHASE 2: PC/DESKTOP 3-SPALTEN-LAYOUT (@media min-width 960px landscape)
   ===================================================================== */
.mode-citadel-card {
  background:
    radial-gradient(circle at 82% 18%, rgba(168, 85, 247, 0.2), transparent 56%),
    radial-gradient(circle at 18% 90%, rgba(245, 158, 11, 0.12), transparent 52%),
    linear-gradient(160deg, rgba(22, 16, 40, 0.94), rgba(9, 13, 24, 0.97)) !important;
  border: 1.5px solid rgba(192, 132, 252, 0.44) !important;
  box-shadow: 0 12px 28px rgba(2, 6, 16, 0.56), inset 0 1px 0 rgba(233, 213, 255, 0.14);
}

.mode-citadel-card.is-citadel-locked {
  background: linear-gradient(160deg, rgba(19, 25, 38, 0.86), rgba(11, 16, 26, 0.94)) !important;
  border-color: rgba(100, 116, 139, 0.42) !important;
  filter: grayscale(0.75);
  opacity: 0.82;
  cursor: pointer;
}

.mode-citadel-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.48);
  color: #e2e8f0;
}

.mode-cta-btn.is-locked-cta {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.82), rgba(30, 41, 59, 0.92)) !important;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}

.mode-citadel-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #e9d5ff;
  background: rgba(126, 34, 206, 0.36);
  border: 1px solid rgba(192, 132, 252, 0.55);
}

.mode-citadel-cost-tag,
.mode-citadel-active-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: rgba(6, 78, 59, 0.55);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #a7f3d0;
}

.mode-citadel-active-tag {
  background: rgba(146, 64, 14, 0.55);
  border-color: rgba(251, 191, 36, 0.65);
  color: #fef08a;
}

.mode-citadel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.28), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(192, 132, 252, 0.45);
  flex-shrink: 0;
}

/* Trank-Gürtel-Vorbereitungsmodal */
.cit-prep-body,
.cit-exit-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cit-prep-body > *,
.cit-exit-body > * {
  flex-shrink: 0;
}

.cit-prep-sub {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #cbd5e1;
}

.cit-prep-belt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #e9d5ff;
}

.cit-prep-cost-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 11.5px;
  background: rgba(6, 95, 70, 0.55);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #a7f3d0;
}

.cit-prep-cost-pill.is-short {
  background: rgba(127, 29, 29, 0.65);
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

.cit-prep-belt-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.cit-prep-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: rgba(11, 17, 32, 0.85);
  border: 1.5px dashed rgba(148, 163, 184, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
  font-weight: 900;
  padding: 4px;
}

.cit-prep-slot.is-filled {
  border-style: solid;
  border-color: rgba(192, 132, 252, 0.72);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), rgba(11, 17, 32, 0.94));
  cursor: pointer;
}

.cit-prep-slot-art,
.cit-prep-potion-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cit-prep-slot-art svg,
.cit-prep-potion-art svg {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.cit-prep-slot-x {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #b91c1c;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0b1120;
}

.cit-prep-pool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding-bottom: 4px;
}

.cit-prep-potion-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #f1f5f9;
  cursor: pointer;
  text-align: left;
}

.cit-prep-potion-btn.is-picked {
  border-color: rgba(192, 132, 252, 0.65);
  background: rgba(59, 7, 100, 0.35);
}

.cit-prep-potion-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cit-prep-potion-art {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.cit-prep-potion-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.cit-prep-potion-meta b {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cit-prep-potion-meta small {
  font-size: 9.5px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.cit-prep-picked-cnt,
.cit-prep-add-plus {
  font-size: 11px;
  font-weight: 900;
  color: #e9d5ff;
  flex-shrink: 0;
}

.cit-prep-empty {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 11.5px;
  color: #cbd5e1;
}

.cit-prep-go-btn {
  width: 100%;
  padding: 12px !important;
  font-size: 14px !important;
}

/* Haupt-Screen der Verfluchten Zitadelle (Mobile-First) */
.citadel-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 24%, rgba(88, 28, 135, 0.24), transparent 60%),
    radial-gradient(circle at 50% 85%, rgba(180, 83, 9, 0.14), transparent 55%),
    linear-gradient(180deg, #070a14 0%, #0d1324 52%, #060912 100%);
  overflow: hidden;
}

.citadel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(9, 13, 24, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  flex-shrink: 0;
}

.citadel-top-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cit-floor-pill,
.cit-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f1f5f9;
  white-space: nowrap;
}

.cit-floor-pill {
  border-color: rgba(192, 132, 252, 0.45);
  color: #e9d5ff;
}

.cit-timer-pill {
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

.cit-timer-pill.is-alarm {
  background: rgba(120, 53, 15, 0.78);
  border-color: rgba(251, 191, 36, 0.85);
  color: #fef08a;
  animation: citAlarmPulse 1.4s ease-in-out infinite;
}

.cit-timer-pill.is-curse {
  background: rgba(127, 29, 29, 0.88);
  border-color: rgba(248, 113, 113, 0.9);
  color: #fecaca;
  animation: citAlarmPulse 0.9s ease-in-out infinite;
}

@keyframes citAlarmPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.24); }
}

.citadel-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 7px 8px 10px;
  overflow-y: auto;
  scrollbar-width: none;
}

.citadel-layout::-webkit-scrollbar {
  display: none;
}

.citadel-panel {
  width: 100%;
  max-width: 440px;
  background: rgba(13, 19, 34, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 8px 20px rgba(2, 6, 16, 0.45);
  flex-shrink: 0;
}

.cit-hero-hp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.cit-hp-num {
  color: #86efac;
  font-size: 12px;
}

.cit-hp-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(2, 6, 16, 0.8);
  border: 1px solid rgba(74, 222, 128, 0.28);
  overflow: hidden;
}

.cit-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  transition: width 0.22s ease;
}

.cit-side-lbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 4px;
}

.cit-gear-row,
.cit-belt-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.cit-gear-chip,
.cit-belt-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 3px;
  border-radius: 9px;
  background: rgba(8, 12, 24, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.cit-gear-chip.is-broken {
  border-color: rgba(248, 113, 113, 0.8);
  background: rgba(127, 29, 29, 0.4);
}

.cit-belt-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 3px;
}

.cit-belt-slot svg {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.cit-belt-slot.is-ready {
  border-color: rgba(192, 132, 252, 0.58);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2), rgba(8, 12, 24, 0.92));
}

.cit-belt-slot.is-used {
  opacity: 0.3;
  filter: grayscale(1);
}

.cit-belt-slot.is-map-heal {
  position: relative;
  cursor: pointer;
  border-color: rgba(74, 222, 128, 0.72);
  background: radial-gradient(circle, rgba(34, 197, 94, 0.24), rgba(8, 12, 24, 0.92));
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.cit-belt-slot.is-map-heal:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.38);
}

.cit-belt-heal-tag {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 0 4px;
  border-radius: 5px;
  background: rgba(21, 128, 61, 0.94);
  border: 1px solid rgba(134, 239, 172, 0.75);
  color: #dcfce7;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.25;
  pointer-events: none;
}

.cit-belt-origin-tag {
  position: absolute;
  left: 2px;
  top: 2px;
  padding: 0 3px;
  border-radius: 4px;
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.25;
  pointer-events: none;
  text-transform: uppercase;
}

.cit-belt-origin-tag.is-loot {
  background: rgba(180, 83, 9, 0.94);
  border: 1px solid rgba(253, 224, 71, 0.78);
  color: #fef08a;
}

.cit-belt-origin-tag.is-owned {
  background: rgba(30, 58, 138, 0.92);
  border: 1px solid rgba(147, 197, 253, 0.7);
  color: #dbeafe;
}

.cit-belt-origin-tag.is-spent {
  background: rgba(127, 29, 29, 0.94);
  border: 1px solid rgba(252, 165, 165, 0.72);
  color: #fee2e2;
}

.cit-tile.is-ambushing {
  box-shadow: inset 0 0 0 2px #f87171, 0 0 14px rgba(239, 68, 68, 0.78);
  animation: cit-ambush-pulse 0.24s ease-in-out infinite alternate;
}

@keyframes cit-ambush-pulse {
  from {
    transform: scale(1);
    filter: brightness(1.05);
  }
  to {
    transform: scale(1.06);
    filter: brightness(1.3);
  }
}

/* 12×12 Ritterburg-Labyrinth */
.citadel-center-stage {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cit-alarm-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
}

.cit-alarm-strip.is-hidden {
  display: none;
}

.cit-alarm-strip.is-alarm {
  background: rgba(120, 53, 15, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.75);
  color: #fef08a;
}

.cit-alarm-strip.is-curse {
  background: rgba(127, 29, 29, 0.82);
  border: 1px solid rgba(248, 113, 113, 0.85);
  color: #fecaca;
}

.citadel-board-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 5px;
  border-radius: 15px;
  background: linear-gradient(160deg, #1e293b, #090d16);
  border: 2px solid rgba(148, 163, 184, 0.34);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.72),
    inset 0 0 18px rgba(0, 0, 0, 0.7);
}

.citadel-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(0, 1fr));
  gap: 1.5px;
  background: #04060c;
  border-radius: 10px;
  overflow: hidden;
}

.cit-tile {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #060913;
}

.cit-tile.is-fog {
  background: #04060b;
  box-shadow: none;
}

.cit-tile.is-wall {
  z-index: 2;
  box-sizing: border-box;
  border-radius: 3px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 78%, #0f172a 100%);
  border-top: 2px solid #64748b;
  border-left: 1px solid #475569;
  border-right: 1px solid rgba(15, 23, 42, 0.85);
  box-shadow:
    inset 0 -4px 0 #060911,
    0 3px 6px rgba(0, 0, 0, 0.7);
}

.cit-tile.is-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, transparent 46%, rgba(6, 9, 17, 0.42) 46%, rgba(6, 9, 17, 0.42) 53%, rgba(148, 163, 184, 0.14) 53%, transparent 58%),
    linear-gradient(90deg, transparent 48%, rgba(6, 9, 17, 0.38) 48%, rgba(6, 9, 17, 0.38) 54%, transparent 54%);
  background-size: 100% 100%, 100% 50%;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
}

.cit-tile.is-wall.is-explored {
  background: linear-gradient(180deg, #2b384b 0%, #1e293b 80%, #0f172a 100%);
  border-top: 2px solid #475569;
  border-left: 1px solid #334155;
  opacity: 0.72;
  filter: none;
}

.cit-wall-torch {
  position: relative;
  z-index: 1;
  width: 44%;
  height: 44%;
  border-radius: 50%;
  background: radial-gradient(circle, #fef08a 0%, #f97316 55%, transparent 78%);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.85);
}

.cit-wall-grate {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  border: 1.5px solid rgba(148, 163, 184, 0.52);
  background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(148, 163, 184, 0.45) 3px 4.5px);
}

.cit-tile.is-floor {
  z-index: 1;
  box-sizing: border-box;
  background: #090d16;
  border: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
}

.cit-tile.is-floor.is-lit {
  background: #090d16;
  border: 1px solid rgba(148, 163, 184, 0.11);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
}

.cit-tile.is-floor.is-explored {
  background: #070a12;
  border: 1px solid rgba(148, 163, 184, 0.05);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.78);
  filter: none;
  opacity: 0.86;
}

.cit-tile.is-step-target {
  cursor: pointer;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.14), rgba(9, 13, 22, 0.94));
  border-color: rgba(16, 185, 129, 0.42);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35), inset 0 2px 6px rgba(0, 0, 0, 0.55);
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.cit-tile.is-step-target:hover,
.cit-tile.is-step-target:active {
  background: rgba(16, 185, 129, 0.24);
  border-color: rgba(52, 211, 153, 0.88);
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.35), 0 0 8px rgba(16, 185, 129, 0.24);
}

.cit-tile.is-hero-here {
  z-index: 3;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.24), #090d16 74%);
  box-shadow: inset 0 0 0 1.5px rgba(253, 224, 71, 0.68);
}

.cit-tile-hero,
.cit-tile-entity,
.cit-tile-ico {
  width: 92%;
  height: 92%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cit-tile-hero svg,
.cit-tile-entity svg,
.cit-tile-ico svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: none !important;
}

.cit-tile.has-enemy {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.34), #1f1726 78%);
}

.cit-tile.has-elite {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.48), #1b1130 78%);
  box-shadow: inset 0 0 0 1.5px rgba(251, 191, 36, 0.78);
}

.cit-elite-key-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 1px;
}

.cit-tile.has-chest-gold {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.34), #1f1a14 78%);
}

.cit-tile.has-chest-silver {
  background: radial-gradient(circle, rgba(148, 163, 184, 0.28), #1a2232 78%);
}

.cit-tile.has-anvil {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.26), #152524 78%);
}

.cit-tile.has-alchemy {
  background: radial-gradient(circle, rgba(192, 132, 252, 0.32), #1e1630 78%);
}

.cit-tile.has-exit-open {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.45), #0c261c 78%);
  box-shadow: inset 0 0 0 1.6px #4ade80;
}

.cit-tile.has-exit-locked {
  background: radial-gradient(circle, rgba(100, 116, 139, 0.32), #111827 78%);
}

.citadel-log-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(11, 17, 32, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 11.5px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.3;
}

/* Rechte Beute- & Schlüssel-Box */
.cit-key-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 900;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.cit-key-status.is-ready {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.52), rgba(20, 83, 45, 0.55));
  border-color: rgba(251, 191, 36, 0.78);
  color: #fef08a;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.24);
}

.cit-loot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cit-loot-item {
  flex: 1 1 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 9px;
  background: rgba(8, 12, 24, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 12px;
  color: #f8fafc;
}

.cit-pk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.cit-pk-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #fef08a;
  background: rgba(146, 64, 14, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.48);
}

.cit-legend-hint {
  font-size: 10.5px;
  color: #94a3b8;
  margin-bottom: 5px;
}

.cit-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.cit-legend-items > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Exit & Summary Modals */
.cit-exit-loot-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(9, 13, 26, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 13px;
}

.cit-exit-loot-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cit-exit-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cit-sum-stats-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
}

.cit-sum-packs-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(59, 7, 100, 0.36);
  border: 1px solid rgba(192, 132, 252, 0.5);
}

.cit-sum-packs-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #e9d5ff;
  margin-bottom: 6px;
}

.cit-sum-packs-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.cit-sum-pack-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  color: #fef08a;
  background: rgba(146, 64, 14, 0.52);
  border: 1px solid rgba(251, 191, 36, 0.65);
}

.cit-sum-mats {
  font-size: 11.5px;
  color: #bae6fd;
  font-weight: 700;
}

.cit-sum-penalty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 10px;
}

.cit-sum-pen-box {
  padding: 8px 10px;
  border-radius: 11px;
  font-size: 12px;
}

.cit-sum-pen-box.is-kept {
  background: rgba(20, 83, 45, 0.35);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #bbf7d0;
}

.cit-sum-pen-box.is-lost {
  background: rgba(127, 29, 29, 0.42);
  border: 1px solid rgba(248, 113, 113, 0.48);
  color: #fecaca;
}

/* Mobil <= 430px Feinschliff: Alles ohne Abschneiden & ohne horizontales Scrollen */
@media (max-width: 430px) {
  .citadel-topbar {
    padding: 6px 8px;
  }
  .cit-floor-pill,
  .cit-timer-pill {
    font-size: 10.5px;
    padding: 3.5px 7px;
  }
  .citadel-panel {
    padding: 7px 8px;
  }
  .cit-legend-box {
    display: none;
  }
  .cit-prep-pool {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   PHASE 2: PC / DESKTOP 3-SPALTEN-DUNGEON-LAYOUT (max-width: 1480px)
   ===================================================================== */
@media (min-width: 960px) and (orientation: landscape) {
  .play-hub-body > .mode-citadel-card {
    grid-column: 1 / -1;
    margin: 0;
  }

  .citadel-topbar {
    width: min(92vw, 1480px);
    max-width: 1480px;
    margin: 12px auto 0;
    padding: 10px 20px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 28px rgba(2, 6, 16, 0.55);
  }

  .cit-floor-pill,
  .cit-timer-pill {
    font-size: 13px;
    padding: 5px 13px;
  }

  .citadel-layout {
    width: min(94vw, 1480px);
    max-width: 1480px;
    margin: 0 auto;
    padding: 12px 0 16px;
    display: grid;
    grid-template-columns: minmax(270px, 310px) auto minmax(280px, 320px);
    justify-content: center;
    align-items: center;
    gap: 24px;
    overflow: hidden;
  }

  .citadel-panel {
    max-width: none;
    padding: 14px 15px;
    gap: 12px;
    border-radius: 16px;
  }

  .citadel-center-stage {
    max-width: none;
    width: auto;
    gap: 8px;
  }

  .citadel-board-frame {
    width: min(72dvh, 48vw, 660px);
    height: min(72dvh, 48vw, 660px);
    padding: 7px;
    border-radius: 18px;
  }

  .citadel-grid {
    gap: 2px;
  }

  .citadel-log-bar {
    max-width: min(72dvh, 48vw, 660px);
    padding: 9px 14px;
    font-size: 12.5px;
  }

  .cit-legend-box {
    display: block;
  }

  .cit-legend-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    font-size: 11.5px;
  }

  .cit-loot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cit-loot-item {
    padding: 8px 10px;
    font-size: 13.5px;
  }
}

body.reduced-effects .cit-timer-pill.is-alarm,
body.reduced-effects .cit-timer-pill.is-curse {
  animation: none !important;
}


/* =====================================================================
   AUSRÜSTUNGS-VERWERTUNG („VERWERTEN“ GEGEN DIAMANTEN)
   ===================================================================== */
.equip-row-actions,
.repair-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.salvage-gear-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #fde68a !important;
  background: linear-gradient(155deg, rgba(127, 29, 29, 0.56), rgba(120, 53, 15, 0.48)) !important;
  border: 1px solid rgba(251, 146, 60, 0.58) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(254, 240, 138, 0.16);
}

.salvage-gear-btn:hover {
  border-color: rgba(248, 113, 113, 0.88) !important;
  filter: brightness(1.14);
}

.salvage-val-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.72);
  color: #7dd3fc;
  font-size: 10.5px;
  font-weight: 900;
}

.salvage-confirm-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
}

.salvage-confirm-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2px;
}

.salvage-confirm-gear {
  position: relative;
  overflow: hidden;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(148, 163, 184, 0.35);
}

.salvage-confirm-arrow {
  font-size: 22px;
  font-weight: 900;
  color: #94a3b8;
}

.salvage-confirm-dia {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(14, 116, 144, 0.28);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  color: #bae6fd;
  font-size: 17px;
}

.salvage-confirm-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  color: #fecaca;
}

.salvage-confirm-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.salvage-ench-warn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(126, 34, 206, 0.28);
  border: 1px solid rgba(232, 121, 249, 0.55);
  color: #f5d0fe;
  font-size: 11.5px;
  font-weight: 800;
}

.salvage-confirm-actions {
  width: 100%;
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.salvage-confirm-actions > button {
  flex: 1;
  padding: 10px 12px;
}

/* ============================================================================
   MOBILE-ONLY FIXES (@media (max-width: 959px))
   PC-/Desktop-Layout (>= 960px landscape) bleibt 100 % unverändert!
   ============================================================================ */
@media (max-width: 959px) {
  /* 1. Home-Header Mobile: bündig oben, 1 nicht-umbrechende Zeile (Spieler links flexibel | Währungen + Icons rechts kompakt) */
  .hub-topbar {
    width: 100%;
    margin: 0;
    padding: max(6px, env(safe-area-inset-top)) 8px 6px;
    border-radius: 0 0 14px 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .hub-player-chip {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: visible;
  }

  .hub-player-meta {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .hub-brand {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 1.15;
  }

  .hub-player-sub {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 9.5px;
    line-height: 1.15;
  }

  .hub-topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .hub-topbar .currency-bar {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 3.5px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.24);
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .hub-topbar .currency-pill {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    gap: 2.5px;
    font-size: 12.2px;
    line-height: 1;
    white-space: nowrap;
  }

  .hub-topbar .currency-pill svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }

  .hub-top-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .hub-topbar .hub-icon-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .hub-topbar .hub-icon-btn svg {
    width: 14px;
    height: 14px;
  }

  .hub-topbar .desktop-fs-btn {
    display: none !important;
  }

  /* Status-, Rekord- & Daily-Leiste direkt unter dem Header immer auf exakt 1 bündigen Zeile */
  .hub-floating-badges {
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .hub-badges-left {
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
  }

  .hub-badges-right {
    flex-shrink: 0;
    gap: 4px;
  }

  .hub-status-pill {
    font-size: 9px;
    padding: 3.5px 7px;
    gap: 3px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
  }

  .hub-status-pill > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hub-floating-record,
  .hub-daily-btn {
    font-size: 9px;
    padding: 3.5px 6.5px;
    gap: 3px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* 2. Kampf-Arena Mobile (< 960px): Sanfte 3D-Neigung (9deg) & hohe Reihen für 5x5 + 3x4 */
  .battle-layout .arena-stage-3d {
    --arena-tilt: 9deg;
    height: 100%;
    width: 100%;
  }

  .battle-board-wrap:not(.is-citadel-3x4) {
    height: clamp(335px, 47dvh, 420px);
    min-height: 335px;
    flex: 0 0 auto;
  }

  .battle-board-wrap.is-citadel-3x4 {
    height: clamp(305px, 42dvh, 380px);
    min-height: 305px;
    flex: 0 0 auto;
  }

  .battle-layout:not(.is-citadel-3x4) .arena-floor-grid,
  .battle-layout:not(.is-citadel-3x4) .battle-grid {
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  /* 3. Kampf-Log-Zeile über dem Brett: sauberer 2-zeiliger Umbruch statt Abschneiden */
  .battle-log-strip {
    white-space: normal;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 4px 8px;
    flex-shrink: 0;
  }
}

/* ============================================================================
   REFERENZ-EINHEITENBOX (5×5 KAMPAGNE/PVE & 3×4 SOLO-DUNGEON — HANDY & PC)
   ============================================================================ */
.battle-grid .board-tile,
.battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2px;
  box-sizing: border-box;
}

.battle-grid.is-sharp-2d-overlay .tile-token {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 3px 4px;
  gap: 1px;
  box-sizing: border-box;
  overflow: visible !important;
}

/* Oben: Zentrierter Einheiten-Name in Fettschrift */
.battle-grid.is-sharp-2d-overlay .tile-token-name {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  font-size: clamp(9px, 2.3vw, 11px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mitte: Vollständiges quadratisches Voxel-Sprite (niemals 0px-Kollaps!) */
.battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art,
.battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  height: clamp(28px, 4.4dvh, 40px) !important;
  min-height: 0 !important;
  max-height: none !important;
  width: auto !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art svg,
.battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art svg {
  height: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain;
}

/* Unten: Zweigeteilte Stat-Leiste (Angriff links, Leben rechts) */
.battle-grid.is-sharp-2d-overlay .tile-token-stats {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1px 3px;
  font-size: clamp(9px, 2.3vw, 11px);
  font-weight: 700;
  line-height: 1.05;
  z-index: 3;
  box-sizing: border-box;
}

.battle-grid.is-sharp-2d-overlay .tile-token-stats svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

/* Solo-Dungeon 3×4 Raster & größere Sprites */
.arena-floor-grid.is-citadel-3x4,
.battle-grid.is-citadel-3x4 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px;
}

.battle-layout.is-citadel-3x4 .arena-floor-grid.is-citadel-3x4 {
  max-width: 480px;
}

.battle-layout.is-citadel-3x4 .battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art,
.battle-layout.is-citadel-3x4 .battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art {
  height: clamp(38px, 6.2dvh, 54px) !important;
}

/* PC / Desktop (>= 960px landscape): Großzügige Sprites für 5×5 und 3×4 */
@media (min-width: 960px) and (orientation: landscape) {
  .battle-layout:not(.is-citadel-3x4) .battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art,
  .battle-layout:not(.is-citadel-3x4) .battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art {
    height: clamp(46px, 7dvh, 68px) !important;
  }

  .battle-layout.is-citadel-3x4 > .battle-board-wrap {
    height: min(64dvh, 42vw);
    max-height: none;
    max-width: min(560px, 50vw);
  }

  .battle-layout.is-citadel-3x4 .battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art,
  .battle-layout.is-citadel-3x4 .battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art {
    height: clamp(54px, 8.5dvh, 78px) !important;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token-name {
    font-size: 11px;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token-stats {
    font-size: 11.5px;
    padding: 2px 5px;
  }
}

/* ============================================================================
   MOBILE-ONLY ARENA VIEWPORT-FIT & CONTAINER-QUERY KACHELN (@media (max-width: 959px))
   PC-/Desktop-Layout (>= 960px landscape) bleibt zu 100 % unverändert!
   ============================================================================ */
@media (max-width: 959px) {
  /* 1. Text-Banner über dem Spielfeld auf Mobile ausblenden (+50px mehr Platz fürs Brett) */
  .battle-log-strip {
    display: none !important;
  }

  /* 2. Strikter 100dvh-Fit + gewonnene Höhe fürs Spielfeld + flache 3deg-Perspektive */
  .battle-layout {
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  .battle-layout .arena-perspective-wrap {
    padding: 2px 6px 8px;
    margin-bottom: 0;
  }

  .battle-layout .arena-stage-3d {
    --arena-tilt: 3deg;
    height: 100%;
    width: 100%;
  }

  .battle-board-wrap:not(.is-citadel-3x4) {
    height: clamp(325px, 44dvh, 390px);
    min-height: 280px;
    flex: 0 1 auto;
  }

  .battle-board-wrap.is-citadel-3x4 {
    height: clamp(305px, 41dvh, 370px);
    min-height: 265px;
    flex: 0 1 auto;
  }

  .battle-bottom {
    padding: 6px 8px;
    gap: 5px;
    flex-shrink: 0;
  }

  .battle-actions-row {
    gap: 5px;
  }

  .battle-layout .arena-floor-perspective {
    perspective: 780px;
    padding: 2px 6px 8px;
  }

  /* 3. Einheiten-Namen auf Mobile ausblenden & maximale, UNBESCHNITTENE Voxel-Figuren über fixer 11px-Stat-Zeile */
  .battle-grid.is-sharp-2d-overlay .tile-token {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2px 3px;
    gap: 0;
    box-sizing: border-box;
    overflow: visible !important;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token-name {
    display: none !important;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art,
  .battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art {
    position: relative;
    z-index: 2;
    height: calc(var(--cell-h, 62px) - 14px) !important;
    min-height: 32px !important;
    max-height: 64px !important;
    width: auto !important;
    max-width: none !important;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    margin: auto 0;
    overflow: visible !important;
  }

  .battle-layout.is-citadel-3x4 .battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art,
  .battle-layout.is-citadel-3x4 .battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art {
    position: relative;
    z-index: 2;
    height: calc(var(--cell-h, 74px) - 15px) !important;
    min-height: 44px !important;
    max-height: 82px !important;
    width: auto !important;
    max-width: none !important;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    margin: auto 0;
    overflow: visible !important;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token .tile-token-art svg,
  .battle-grid.is-sharp-2d-overlay .tile-token.is-steve .tile-token-art svg {
    height: 100% !important;
    max-height: none !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
    overflow: visible;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token-stats {
    height: 11px;
    line-height: 11px;
    font-size: 9.5px;
    font-weight: 700;
    flex-shrink: 0 !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
    z-index: 3;
    box-sizing: border-box;
  }

  .battle-grid.is-sharp-2d-overlay .tile-token-stats svg {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
  }
}

/* ============================================================================
 * MOBILE & WEAK-WEBVIEW PERFORMANCE OPTIMIZATION LAYER
 * ============================================================================ */

/* 1. Verzögerungsfreies Tippen auf allen interaktiven Elementen (Mobile & PC) */
button,
.mc-btn,
.mc-card,
.board-tile,
.cit-tile,
.tab-btn,
.equip-slot-btn,
.deck-pick-card,
.col-deck-slot-btn,
.col-mode-btn,
.mode-card,
.mode-hero-card,
.hub-deck-bar,
.nav-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* 2. Shop-Scroll-Turbo: Off-Screen-2D-Karten nicht zeichnen (NICHT auf 3D-Flip .mc-card wegen Android-WebView-Culling!) */
#collection-cards-grid-wrap .mc-card,
.cards-grid > .mc-card {
  content-visibility: visible;
  contain: none;
}

.pack-aaa-card,
.trader-book-card,
.item-trader-card {
  content-visibility: auto;
  contain-intrinsic-size: 160px 220px;
  contain: layout style;
}

.pack-3d-svg,
.pack-art-wrap,
.trader-book-art {
  aspect-ratio: 92 / 114;
}

.mc-card-art img,
.pack-art-wrap img,
.trader-book-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* GPU-Compositing: Hover-Lift NUR auf Desktop-Maus & NIEMALS auf .mc-card-front/.mc-card-back (sonst überschreibt :hover rotateY(180deg) auf Android-Touch!) */
.mc-card:not(.is-flippable) .mc-card-inner,
.board-tile .tile-token {
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}

@media (hover: hover) and (pointer: fine) {
  .mc-card:not(.is-flippable):hover .mc-card-inner {
    transform: translate3d(0, -3px, 0) scale(1.015);
  }
}

/* 3. Mobile Performance: backdrop-filter durch performante halbtransparente dunkle Verläufe ersetzen */
@media (max-width: 959px) {
  .hub-topbar,
  .hero-glass-panel,
  .bottom-nav,
  .modal-box,
  .panel-box,
  .mode-card,
  .mode-hero-card,
  .subview-header,
  .battle-topbar,
  .battle-top-hud,
  .battle-hand-bar,
  .cit-hud-bar,
  .hub-currency-pill,
  .hub-floating-badge,
  .gear-detail-showcase {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-image: linear-gradient(180deg, rgba(16, 22, 36, 0.93), rgba(10, 14, 24, 0.97)) !important;
  }
}

/* 4. Performance-Modus (body.perf-mode): Null Blur (dunkle rgba-Verläufe), flache Schatten, Deko-Anims aus */
body.perf-mode .hub-topbar,
body.perf-mode .hero-glass-panel,
body.perf-mode .bottom-nav,
body.perf-mode .aaa-bottom-nav,
body.perf-mode .hub-glass-dock,
body.perf-mode .hub-status-pill,
body.perf-mode .hub-floating-record,
body.perf-mode .hub-daily-btn.is-cooldown,
body.perf-mode .hub-customize-fab,
body.perf-mode .modal-box,
body.perf-mode .modal-backdrop,
body.perf-mode .modal-backdrop.is-pack-backdrop,
body.perf-mode .card-zoom-backdrop,
body.perf-mode .panel-box,
body.perf-mode .mode-card,
body.perf-mode .mode-hero-card,
body.perf-mode .subview-header,
body.perf-mode .subview-tabs,
body.perf-mode .battle-topbar,
body.perf-mode .battle-top-hud,
body.perf-mode .battle-hand-bar,
body.perf-mode .battle-layout > .battle-log-strip,
body.perf-mode .cit-hud-bar,
body.perf-mode .hub-currency-pill,
body.perf-mode .hub-floating-badge,
body.perf-mode .gear-detail-showcase,
body.perf-mode .set-card,
body.perf-mode .prematch-deck-picker,
body.perf-mode .col-deck-slots-bar,
body.perf-mode .col-mode-switcher,
body.perf-mode .camp-star-milestone-bar,
body.perf-mode .camp-map-banner,
body.perf-mode .boss-intro-overlay,
body.perf-mode .aaa-lock-overlay,
body.perf-mode .oa-draw-overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.95), rgba(10, 14, 24, 0.98)) !important;
}

body.perf-mode .board-tile,
body.perf-mode .battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell,
body.reduced-effects .board-tile,
body.reduced-effects .battle-grid.is-sharp-2d-overlay .board-tile.is-sharp-cell,
body.reduced-effects .subview-header,
body.reduced-effects .hub-topbar,
body.reduced-effects .hub-customize-fab,
body.reduced-effects .modal-backdrop.is-pack-backdrop,
body.reduced-effects .camp-map-banner,
body.reduced-effects .boss-intro-overlay,
body.reduced-effects .aaa-lock-overlay,
body.reduced-effects .battle-layout > .battle-log-strip,
body.reduced-effects .oa-draw-overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.perf-mode .mc-btn,
body.perf-mode .mc-card,
body.perf-mode .battle-hand-fan .mc-card.is-battle-hand-card {
  transition: transform 0.14s ease, opacity 0.14s ease !important;
}

/* 5. Hintergrund-Pause (visibilitychange -> body.app-paused): Stoppt alle CSS-Animationen sofort */
body.app-paused,
body.app-paused *,
body.app-paused *::before,
body.app-paused *::after {
  animation-play-state: paused !important;
}

/* 6. Modal-, Profil-, Zoom- & Swipe-Pause: Friert Hintergrund-Animationen im #app-root ein (spart Akku & GPU) */
body.modal-open #app-root *,
body.modal-open #app-root *::before,
body.modal-open #app-root *::after,
body.prof-modal-open #app-root *,
body.prof-modal-open #app-root *::before,
body.prof-modal-open #app-root *::after,
body.zoom-open #app-root *,
body.zoom-open #app-root *::before,
body.zoom-open #app-root *::after,
body.is-swiping #app-root *,
body.is-swiping #app-root *::before,
body.is-swiping #app-root *::after {
  animation-play-state: paused !important;
}

body.perf-mode .camp-star-chest-btn.is-claimable,
body.perf-mode .victory-star-slot.is-new {
  animation: none !important;
}

body.perf-mode .camp-star-ic.is-earned,
body.perf-mode .victory-star-slot.is-earned {
  filter: none !important;
}

body.perf-mode .camp-star-fill,
body.perf-mode .camp-star-chest-btn.is-claimable,
body.perf-mode .stage-stars-popover {
  box-shadow: none !important;
}

/* Schatten & teure SVG-Drop-Shadows drastisch vereinfachen */
body.perf-mode .mc-card,
body.perf-mode .mode-card,
body.perf-mode .mode-hero-card,
body.perf-mode .panel-box,
body.perf-mode .board-tile,
body.perf-mode .tile-token,
body.perf-mode .wb-card,
body.perf-mode .forge-card,
body.perf-mode .repair-item-card,
body.perf-mode .equip-item-card,
body.perf-mode .deck-pick-card {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

body.perf-mode .tile-token-art,
body.perf-mode .tile-token-art svg,
body.perf-mode .art-svg,
body.perf-mode .steve-svg,
body.perf-mode .card-art-wrap svg,
body.perf-mode .cit-mob-svg svg {
  filter: none !important;
}

/* Reine Deko-Endlosanimationen pausieren (Kampf-, Bewegungs- & #arena-fx-layer-Anims bleiben aktiv!) */
body.perf-mode .hub-firefly,
body.perf-mode .hub-firefly-a,
body.perf-mode .hub-firefly-b,
body.perf-mode .hub-firefly-c,
body.perf-mode .hub-star,
body.perf-mode .hub-star-1,
body.perf-mode .hub-star-2,
body.perf-mode .hub-star-3,
body.perf-mode .hub-aurora,
body.perf-mode .hub-aurora-1,
body.perf-mode .hub-aurora-2,
body.perf-mode .hub-ground-fog-1,
body.perf-mode .hub-ground-fog-2,
body.perf-mode .hub-waterfall-flow,
body.perf-mode .hub-water-foam,
body.perf-mode .hub-splash-ring-1,
body.perf-mode .hub-splash-ring-2,
body.perf-mode .hub-lake-glint,
body.perf-mode .hub-water-mist,
body.perf-mode .hub-crest-spray,
body.perf-mode .hub-arcane-mote-a,
body.perf-mode .hub-arcane-mote-b,
body.perf-mode .hub-arcane-mote-c,
body.perf-mode .hub-cloud,
body.perf-mode .hub-daily-btn.is-ready,
body.perf-mode .hub-daily-ping,
body.perf-mode .hub-level-badge.is-gold-shimmer,
body.perf-mode .hub-level-dot,
body.perf-mode .hub-open-hero .steve-svg,
body.perf-mode .steve-svg,
body.perf-mode .pedestal-ring,
body.perf-mode .pedestal-glow,
body.perf-mode .play-cta-sheen,
body.perf-mode .altar-btn-sheen,
body.perf-mode .altar-rune-bg svg,
body.perf-mode .forge-bs-shimmer,
body.perf-mode .forge-spark,
body.perf-mode .forge-sparks-layer,
body.perf-mode .fuse-to-sheen,
body.perf-mode .alchemy-bubble,
body.perf-mode .trader-book-shimmer,
body.perf-mode .pack-foil-sheen,
body.perf-mode .pack-cta-btn,
body.perf-mode .pack-cta-btn .pack-cta-sheen,
body.perf-mode .camp-bg-sparks,
body.perf-mode .camp-bg-crystals,
body.perf-mode .camp-bg-void-dust,
body.perf-mode .camp-daily-btn.is-ready,
body.perf-mode .camp-portal-btn.is-blocked,
body.perf-mode .arena-sway-grass,
body.perf-mode .arena-lava-pulse,
body.perf-mode .arena-edge-flame,
body.perf-mode .arena-crystal-float,
body.perf-mode .arena-leaf,
body.perf-mode .arena-ember,
body.perf-mode .arena-void-mote,
body.perf-mode .card-playable-sheen::after,
body.perf-mode .hero-weapon-shimmer,
body.perf-mode .hero-ench-glint,
body.perf-mode .hub-open-hero .hero-eyes-blink,
body.perf-mode .card-holo::before,
body.perf-mode .card-holo::after,
body.perf-mode .is-enchanted-glint::after,
body.perf-mode .gear-hero-pedestal.is-enchanted::after,
body.perf-mode .gear-hero-icon-wrap,
body.perf-mode .zoom-art-svg-wrap,
body.perf-mode .gear-stat-tile,
body.perf-mode .gear-dur-panel,
body.perf-mode .gear-dur-fill-anim,
body.perf-mode .idle-float,
body.perf-mode .idle-breathe,
body.perf-mode .battle-grid.is-sharp-2d-overlay .tile-token-art.idle-breathe,
body.perf-mode .battle-grid.is-sharp-2d-overlay .tile-token-art.idle-float,
body.perf-mode .board-tile.can-place,
body.perf-mode .board-tile.can-move,
body.perf-mode .board-tile.can-reposition,
body.perf-mode .floor-tile.can-reposition,
body.reduced-effects .pack-cta-btn,
body.reduced-effects .pack-cta-btn .pack-cta-sheen,
body.reduced-effects .card-playable-sheen::after,
body.reduced-effects .battle-grid.is-sharp-2d-overlay .tile-token-art.idle-breathe,
body.reduced-effects .battle-grid.is-sharp-2d-overlay .tile-token-art.idle-float,
body.reduced-effects .gear-hero-icon-wrap,
body.reduced-effects .zoom-art-svg-wrap,
body.reduced-effects .gear-stat-tile,
body.reduced-effects .gear-dur-panel,
body.reduced-effects .gear-dur-fill-anim,
body.reduced-effects .token-status-fx .tsfx-p {
  animation: none !important;
}

body.perf-mode .forge-sparks-layer,
body.perf-mode .hub-firefly,
body.perf-mode .hub-fireflies,
body.perf-mode .hub-crest-spray,
body.perf-mode .play-cta-sheen,
body.perf-mode .altar-btn-sheen,
body.perf-mode .pack-cta-btn .pack-cta-sheen,
body.reduced-effects .pack-cta-btn .pack-cta-sheen,
body.reduced-effects .token-status-fx .tsfx-p {
  display: none !important;
}

/* ==================== SHOP SELTENHEITEN-INFO-BUTTON & MODAL ==================== */
.pack-hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.shop-rarity-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(14, 116, 144, 0.34);
  color: #bae6fd;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.shop-rarity-info-btn:hover {
  background: rgba(14, 116, 144, 0.54);
  border-color: rgba(125, 211, 252, 0.82);
}

.rarity-info-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rarity-info-row {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--rar-border, rgba(148, 163, 184, 0.4));
  background: linear-gradient(135deg, var(--rar-bg, rgba(30, 41, 59, 0.3)), rgba(15, 23, 42, 0.88));
}

.rarity-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.rarity-info-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--rar-col, #f8fafc);
}

.rarity-info-mult {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.rarity-info-drops {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.rarity-drop-chip {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
}

.rarity-drop-chip b {
  color: #f8fafc;
}

.rarity-upgrade-hint-box {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(192, 132, 252, 0.45);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.28), rgba(15, 23, 42, 0.88));
  font-size: 11px;
  font-weight: 700;
  line-height: 1.38;
  color: #e9d5ff;
}

.rarity-upgrade-hint-box svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.rarity-odds-info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.28), rgba(15, 23, 42, 0.9));
  color: #e0f2fe;
}

.rarity-odds-info-box svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #38bdf8;
}

.rarity-odds-info-title {
  font-size: 11.5px;
  font-weight: 900;
  color: #7dd3fc;
  margin-bottom: 3px;
  letter-spacing: 0.2px;
}

.rarity-odds-info-body {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #cbd5e1;
}


/* ==================== NEU-Badge & mysteriöse Platzhalter-Karten ==================== */
.card-new-badge {
  position: absolute;
  top: 37px;
  left: 11px;
  z-index: 6;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.9px;
  color: #04121a;
  background: linear-gradient(135deg, #fde68a 0%, #5eead4 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px color-mix(in srgb, var(--new-glow, #5eead4) 75%, transparent), 0 0 3px rgba(253, 230, 138, 0.9);
  pointer-events: none;
  animation: cardNewGlowPulse 1.6s ease-in-out infinite;
}

.mc-card-compact .card-new-badge {
  top: 30px;
  left: 8px;
  padding: 1px 6px;
  font-size: 8.5px;
}

@keyframes cardNewGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.06); opacity: 1; }
}

body.perf-mode .card-new-badge,
body.reduced-effects .card-new-badge {
  animation: none !important;
  box-shadow: 0 0 6px color-mix(in srgb, var(--new-glow, #5eead4) 70%, transparent) !important;
}

.mc-card-undiscovered {
  cursor: default;
  height: 100%;
}

.mc-card-undiscovered .undiscovered-spacer {
  visibility: hidden;
}

.mc-card-undiscovered .mc-card-inner {
  height: 100%;
  box-sizing: border-box;
  background: linear-gradient(160deg, #06080d 0%, #0d101b 100%);
  border: 2px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  align-items: stretch;
}

.mc-card-undiscovered:hover .mc-card-inner {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.undiscovered-art {
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(76, 29, 149, 0.22), #05070c 72%) !important;
  box-shadow: inset 0 0 26px rgba(139, 92, 246, 0.16);
}

.undiscovered-art svg {
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.45));
  animation: undiscoveredShimmer 2.8s ease-in-out infinite;
}

@keyframes undiscoveredShimmer {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

body.perf-mode .undiscovered-art svg {
  animation: none;
  filter: none;
}

.undiscovered-name {
  color: #cbd5e1;
  text-align: center;
}

.undiscovered-sub {
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  font-style: italic;
  text-align: center;
  color: rgba(167, 139, 250, 0.8) !important;
  background: rgba(76, 29, 149, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.18) !important;
  letter-spacing: 0.3px;
}

/* ==================== Auto-Angriff-Toggle (5×5 Kampagne/PvE) ==================== */
.battle-resolve-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.battle-resolve-group #btn-resolve-round {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 959px) {
  .battle-resolve-group {
    width: 100%;
  }
  .battle-resolve-group #btn-resolve-round {
    width: auto !important;
  }
}

.battle-autoatk-btn {
  flex: 0 0 auto;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 11px;
  padding: 6px 9px;
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.battle-autoatk-btn.is-aa-on {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(20, 184, 166, 0.22));
  border-color: rgba(45, 212, 191, 0.75);
  color: #ccfbf1;
}

.battle-autoatk-btn.is-aa-on b {
  color: #5eead4;
}

.battle-autoatk-btn.is-aa-off {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fcd34d;
}

.battle-autoatk-btn .aa-ico {
  position: relative;
  display: inline-flex;
}

.battle-autoatk-btn.is-aa-off .aa-ico {
  opacity: 0.55;
  filter: grayscale(0.8);
}

.battle-autoatk-btn.is-aa-off .aa-ico::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: #f59e0b;
  transform: rotate(-45deg);
}

.battle-autoatk-btn .aa-lbl-short {
  display: none;
}

@media (max-width: 480px) {
  .battle-autoatk-btn .aa-lbl {
    display: none;
  }
  .battle-autoatk-btn .aa-lbl-short {
    display: inline;
  }
  .battle-autoatk-btn {
    padding: 6px 7px;
  }
}

/* ==================== Großes Burg-Alarm-Overlay (Verfluchte Zitadelle) ==================== */
.cit-alarm-big-alert {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  pointer-events: auto;
  background: radial-gradient(circle at 50% 45%, rgba(185, 28, 28, 0.34), rgba(2, 6, 23, 0.56));
  animation: citAlarmPopIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cit-alarm-big-alert.is-fading {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.34s ease;
}

.cit-alarm-big-card {
  width: min(92vw, 380px);
  padding: 18px 20px;
  border-radius: 16px;
  text-align: center;
  border: 2px solid rgba(248, 113, 113, 0.9);
  background: linear-gradient(155deg, rgba(69, 10, 10, 0.95) 0%, rgba(15, 23, 42, 0.96) 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.72), 0 0 32px rgba(239, 68, 68, 0.52);
}

.cit-alarm-big-ico {
  display: inline-flex;
  margin-bottom: 6px;
}

.cit-alarm-big-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: #fecaca;
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.75);
}

.cit-alarm-big-sub {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fde68a;
}

@keyframes citAlarmPopIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

body.perf-mode .cit-alarm-big-card {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7) !important;
}

/* ==================== Glücksrad (Hub Edge Icon + Animiertes Modal) ==================== */
.hub-open-hero {
  position: relative;
}

.hub-daily-wheel-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.hub-daily-wheel-col .hub-daily-btn,
.hub-daily-wheel-col .hub-wheel-edge-btn {
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  height: 24px;
  padding: 0 7px;
  gap: 4px;
  justify-content: center;
  box-sizing: border-box;
  font-size: 10px;
  touch-action: manipulation;
}

.hub-daily-wheel-col .hub-wheel-edge-btn .hub-wheel-lbl {
  font-size: 9.2px;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-floating-badges,
.hub-badges-right {
  align-items: flex-start !important;
}

@media (max-width: 959px) {
  .hub-daily-wheel-col {
    gap: 4px;
  }
  .hub-daily-wheel-col .hub-daily-btn,
  .hub-daily-wheel-col .hub-wheel-edge-btn {
    width: 86px;
    min-width: 86px;
    max-width: 86px;
    height: 22px;
    padding: 0 6px;
    gap: 3px;
    font-size: 9.5px;
  }
  .hub-daily-wheel-col .hub-wheel-edge-btn .hub-wheel-lbl {
    font-size: 8.8px;
  }
}

.hub-wheel-edge-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4.5px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(250, 204, 21, 0.58);
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.94));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 158, 11, 0.28);
  color: #fef08a;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.hub-wheel-edge-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), 0 0 16px rgba(250, 204, 21, 0.5);
}

.hub-wheel-edge-btn.is-ready {
  border-color: rgba(74, 222, 128, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 14px rgba(74, 222, 128, 0.42);
}

.hub-wheel-ico {
  display: inline-flex;
  animation: lwIdleSpin 14s linear infinite;
}

@keyframes lwIdleSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hub-wheel-lbl {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fde68a;
}

.hub-wheel-edge-btn.is-ready .hub-wheel-lbl {
  color: #86efac;
}

.hub-wheel-ping {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  border: 1.5px solid #052e16;
  box-shadow: 0 0 8px #4ade80;
}

.modal-card.modal-lucky-wheel {
  max-width: 400px;
  width: min(94vw, 400px);
}

.lw-modal-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.lw-modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lw-modal-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  color: #fde68a;
}

.lw-hdr-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lw-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 8px;
}

.lw-pointer {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  transition: transform 0.07s ease-out;
  z-index: 6;
  transform-origin: 50% 6px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
}
body.perf-mode .lw-pointer {
  filter: none;
}

.lw-pointer.is-tick {
  animation: lwPointerKick 0.11s ease-out;
}

@keyframes lwPointerKick {
  0% { transform: translateX(-50%) rotate(0deg); }
  45% { transform: translateX(-50%) rotate(-18deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

.lw-wheel-outer {
  width: min(76vw, 276px);
  height: min(76vw, 276px);
  border-radius: 50%;
  contain: layout style paint;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 26px rgba(245, 158, 11, 0.35);
}

.lw-wheel-rotor {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lw-wheel-rotor.is-spinning .lw-wheel-svg {
  shape-rendering: optimizeSpeed;
  text-rendering: optimizeSpeed;
}

.lw-wheel-svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: geometricPrecision;
  text-rendering: geometricPrecision;
}

.lw-result-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
  border: 1.5px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
}

.lw-result-banner.is-hidden {
  display: none;
}

.lw-result-banner.is-tier-legendary,
.lw-result-banner.is-tier-gold {
  border-color: rgba(250, 204, 21, 0.9);
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.52), rgba(30, 41, 59, 0.92));
  color: #fef08a;
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.45);
}

.lw-result-banner.is-tier-mythic {
  border-color: rgba(239, 68, 68, 0.9);
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.54), rgba(30, 41, 59, 0.92));
  color: #fecaca;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.45);
}

.lw-result-banner.is-tier-epic,
.lw-result-banner.is-tier-purple {
  border-color: rgba(192, 132, 252, 0.85);
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.5), rgba(30, 41, 59, 0.92));
  color: #f3e8ff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.lw-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
}

.lw-spin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  touch-action: manipulation;
}

@media (max-width: 460px) {
  .lw-controls {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

.lw-bs-have {
  opacity: 0.85;
  font-size: 10.5px;
}

.lw-odds-panel {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.56);
}

.lw-odds-panel.is-collapsed {
  display: none;
}

.lw-odds-hdr {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.lw-odds-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lw-odds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.lw-odds-row.is-tier-legendary,
.lw-odds-row.is-tier-gold {
  border-color: rgba(250, 204, 21, 0.45);
  background: linear-gradient(90deg, rgba(161, 98, 7, 0.26), rgba(15, 23, 42, 0.78));
}

.lw-odds-row.is-tier-mythic {
  border-color: rgba(239, 68, 68, 0.52);
  background: linear-gradient(90deg, rgba(153, 27, 27, 0.28), rgba(15, 23, 42, 0.78));
}

.lw-odds-row.is-tier-epic,
.lw-odds-row.is-tier-purple {
  border-color: rgba(192, 132, 252, 0.42);
  background: linear-gradient(90deg, rgba(107, 33, 168, 0.24), rgba(15, 23, 42, 0.78));
}

.lw-odds-row.is-tier-rare {
  border-color: rgba(56, 189, 248, 0.42);
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.2), rgba(15, 23, 42, 0.78));
}

.lw-odds-row.is-tier-common {
  border-color: rgba(74, 222, 128, 0.4);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(15, 23, 42, 0.78));
}

.lw-odds-left,
.lw-odds-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lw-tier-pill {
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.lw-tier-pill.is-legendary,
.lw-tier-pill.is-gold {
  background: rgba(250, 204, 21, 0.22);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.55);
}

.lw-tier-pill.is-mythic {
  background: rgba(239, 68, 68, 0.22);
  color: #fda4af;
  border: 1px solid rgba(239, 68, 68, 0.6);
}

.lw-tier-pill.is-epic,
.lw-tier-pill.is-purple {
  background: rgba(192, 132, 252, 0.22);
  color: #e9d5ff;
  border: 1px solid rgba(192, 132, 252, 0.55);
}

.lw-tier-pill.is-rare {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.55);
}

.lw-tier-pill.is-common {
  background: rgba(74, 222, 128, 0.2);
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.55);
}

.lw-tier-pill.is-standard {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.lw-pct-val {
  min-width: 34px;
  text-align: right;
  color: #f8fafc;
}

body.perf-mode .hub-wheel-ico {
  animation: none !important;
}

body.perf-mode .lw-wheel-outer,
body.perf-mode .hub-wheel-edge-btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

/* Dynamisches GPU-Layer-Management: will-change nur während aktiver Animationen (0 VRAM-Overhead im Leerlauf) */
/* Einheitliches 5-Stufen-Seltenheitssystem (Tier 1–5) für Waffen & Rüstungen */
.gear-rarity-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.01em;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.82);
  white-space: nowrap;
}

.gear-rarity-pill.is-mini {
  font-size: 9px;
  padding: 1.5px 6px;
}

.gear-detail-showcase[class*="is-rarity-"] {
  background: linear-gradient(160deg, var(--tier-bg, rgba(22, 33, 56, 0.82)), rgba(11, 17, 32, 0.94));
  border-color: var(--tier-border, #64748b);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), 0 0 22px color-mix(in srgb, var(--tier-border, #38bdf8) 26%, transparent);
}

.equip-item-card[class*="is-rarity-"] {
  background: linear-gradient(155deg, var(--rar-bg, rgba(15, 23, 42, 0.74)), rgba(10, 15, 30, 0.94));
  border-color: color-mix(in srgb, var(--rar-border, #64748b) 65%, rgba(255, 255, 255, 0.1));
}

.equip-item-card[class*="is-rarity-"].is-selected-preview {
  border-color: var(--rar-border, #38bdf8);
  box-shadow: 0 0 14px color-mix(in srgb, var(--rar-border, #38bdf8) 32%, transparent);
}

.equip-item-card[class*="is-rarity-"].is-equipped-row:not(.is-selected-preview) {
  border-color: color-mix(in srgb, var(--rar-border, #22c55e) 82%, rgba(255, 255, 255, 0.12));
}

/* Home-Screen Ausrüstungs-Slots: Rahmenfarbe strikt nach Item-Rarity (Kaputt-Warnung hat immer Vorrang!) */
.gear-slot-btn.is-rarity-common:not(.broken) {
  border-color: rgba(34, 197, 94, 0.72);
  background: linear-gradient(165deg, rgba(34, 197, 94, 0.16), rgba(8, 12, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(134, 239, 172, 0.2), 0 0 10px rgba(34, 197, 94, 0.14);
}
.gear-slot-btn.is-rarity-rare:not(.broken) {
  border-color: rgba(14, 165, 233, 0.78);
  background: linear-gradient(165deg, rgba(14, 165, 233, 0.18), rgba(8, 12, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.22), 0 0 10px rgba(14, 165, 233, 0.18);
}
.gear-slot-btn.is-rarity-epic:not(.broken) {
  border-color: rgba(168, 85, 247, 0.82);
  background: linear-gradient(165deg, rgba(168, 85, 247, 0.2), rgba(8, 12, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(216, 180, 254, 0.24), 0 0 12px rgba(168, 85, 247, 0.22);
}
.gear-slot-btn.is-rarity-mythic:not(.broken) {
  border-color: rgba(239, 68, 68, 0.84);
  background: linear-gradient(165deg, rgba(239, 68, 68, 0.22), rgba(8, 12, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(252, 165, 165, 0.24), 0 0 12px rgba(239, 68, 68, 0.24);
}
.gear-slot-btn.is-rarity-legendary:not(.broken) {
  border-color: rgba(245, 158, 11, 0.88);
  background: linear-gradient(165deg, rgba(245, 158, 11, 0.24), rgba(8, 12, 24, 0.94));
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.26), 0 0 14px rgba(245, 158, 11, 0.26);
}

/* Schmiede: Reparieren & Herstellen mit Rarity-Rahmen & Farbverlauf */
.repair-item-card[class*="is-rarity-"]:not(.is-broken) {
  border-color: color-mix(in srgb, var(--rar-border, #64748b) 72%, rgba(255, 255, 255, 0.1));
  background: linear-gradient(160deg, var(--rar-bg, rgba(15, 23, 42, 0.86)), rgba(10, 15, 30, 0.95));
}

.wb-card[class*="is-rarity-"] {
  border-color: color-mix(in srgb, var(--rar-border, #64748b) 72%, rgba(255, 255, 255, 0.1));
  background: linear-gradient(165deg, var(--rar-bg, rgba(51, 65, 85, 0.42)), rgba(10, 15, 32, 0.96));
}

.wb-card[class*="is-rarity-"].is-craftable {
  border-color: var(--rar-border, #4ade80);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), 0 0 14px color-mix(in srgb, var(--rar-border, #4ade80) 24%, transparent);
}

body.perf-mode .gear-detail-showcase[class*="is-rarity-"],
body.perf-mode .equip-item-card[class*="is-rarity-"],
body.perf-mode .gear-slot-btn[class*="is-rarity-"]:not(.broken),
body.perf-mode .wb-card[class*="is-rarity-"],
body.perf-mode .repair-item-card[class*="is-rarity-"] {
  box-shadow: none !important;
}

/* ==================== STÜNDLICHER ITEM-HÄNDLER (9-SLOT GRID) ==================== */
.trader-hero-banner.is-item-trader {
  border-color: rgba(168, 85, 247, 0.42);
}

.item-trader-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.item-trader-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.38);
  white-space: nowrap;
}

.trader-hero-wallet.is-dia-wallet {
  border-color: rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
}

.item-trader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  contain: layout style;
}

@media (min-width: 720px) {
  .item-trader-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.item-trader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--rar-bg, rgba(15, 23, 42, 0.88)), rgba(10, 15, 30, 0.96));
  border: 1.5px solid color-mix(in srgb, var(--rar-border, #64748b) 72%, rgba(255, 255, 255, 0.1));
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.item-trader-card.is-sold-out {
  opacity: 0.62;
  filter: saturate(0.55);
}

.item-trader-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.item-trader-art-box {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.item-trader-art-box svg {
  width: 100%;
  height: 100%;
}

.item-trader-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.item-trader-name {
  font-size: 12.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.item-trader-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
}

.item-trader-stock-pill {
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 800;
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.item-trader-stock-pill.is-empty {
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.42);
  border-color: rgba(248, 113, 113, 0.35);
}

.item-trader-owned-lbl {
  color: #94a3b8;
  font-weight: 700;
}

.item-trader-buy-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  border-radius: 10px;
}

.item-trader-buy-btn.is-can-buy {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-color: rgba(216, 180, 254, 0.58);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.32);
}

.item-trader-buy-btn.is-no-funds {
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.72), rgba(127, 29, 29, 0.82));
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.item-trader-buy-btn.is-sold {
  justify-content: center;
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(148, 163, 184, 0.25);
  color: #94a3b8;
}

.item-trader-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
}

.item-trader-card.is-locked-slot {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 128px;
  cursor: pointer;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.76), rgba(8, 12, 24, 0.94));
  border: 1.5px dashed rgba(148, 163, 184, 0.28);
  color: #94a3b8;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.item-trader-card.is-locked-slot:hover {
  border-color: rgba(148, 163, 184, 0.55);
  transform: translateY(-1px);
}

.item-trader-lock-orb {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}

.item-trader-lock-title {
  font-size: 12.5px;
  font-weight: 900;
  color: #e2e8f0;
}

.item-trader-lock-sub {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

body.perf-mode .item-trader-card {
  box-shadow: none !important;
}

/* ==================== RUNDES OBSIDIAN-PORTAL AUF OVERWORLD-KARTE ==================== */
.camp-path-portal {
  fill: none;
  stroke: rgba(148, 163, 184, 0.32);
  stroke-width: 5;
  stroke-dasharray: 8 7;
  stroke-linecap: round;
}
.camp-path-portal.is-open {
  stroke: #c084fc;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7));
}
.camp-path-portal.is-blocked {
  stroke: #fb7185;
  filter: drop-shadow(0 0 7px rgba(244, 63, 94, 0.8));
}

.camp-portal-wrap {
  z-index: 8;
}

/* ==================== TÄGLICHE OVERWORLD-MISSION (ABZWEIGUNG NACH MINI-BOSS) ==================== */
.camp-path-daily-progress {
  fill: none;
  stroke: #fbbf24;
  stroke-width: 5.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.72));
}

.camp-path-daily-progress.is-done {
  stroke: #4ade80;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.65));
}

.camp-daily-wrap {
  z-index: 7;
}

.camp-daily-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  padding: 0;
  border: 2px solid rgba(251, 191, 36, 0.68);
  background: radial-gradient(circle at 32% 28%, rgba(245, 158, 11, 0.32), rgba(15, 23, 42, 0.94));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.camp-daily-btn:hover {
  transform: scale(1.07);
}

.camp-daily-btn.is-locked {
  opacity: 0.72;
  border-color: rgba(100, 116, 139, 0.55);
  background: radial-gradient(circle, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.96));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.camp-daily-btn.is-ready {
  animation: dailyNodePulse 2.1s ease-in-out infinite;
}

.camp-daily-btn.is-done {
  border-color: rgba(74, 222, 128, 0.65);
  background: radial-gradient(circle, rgba(22, 163, 74, 0.28), rgba(15, 23, 42, 0.94));
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.35);
}

@keyframes dailyNodePulse {
  0%, 100% { transform: scale(1); opacity: 0.94; }
  50% { transform: scale(1.05); opacity: 1; }
}

.camp-daily-tag {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  white-space: nowrap;
  color: #fffbeb;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border: 1px solid #fde68a;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.48);
}

.camp-daily-tag.is-done {
  color: #ecfdf5;
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: #86efac;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.38);
}

.camp-node-label.is-daily-lbl {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fef3c7;
}

.stage-type-pill.is-daily {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.3), rgba(245, 158, 11, 0.18));
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

.daily-modal-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(251, 191, 36, 0.35);
  margin-bottom: 12px;
}

.daily-modal-ico {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.daily-modal-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 900;
  color: #fef3c7;
}

.daily-modal-desc {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #cbd5e1;
}

.daily-modal-timer {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #fcd34d;
}

.daily-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.daily-reward-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 6px 9px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.92));
  border: 1.5px solid color-mix(in srgb, var(--dr-col, #38bdf8) 45%, transparent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), 0 0 18px rgba(56, 189, 248, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.daily-reward-card:hover:not(:disabled) {
  border-color: var(--dr-col, #38bdf8);
}

.daily-reward-card.is-selected {
  border-color: var(--dr-col, #38bdf8);
  background: linear-gradient(180deg, color-mix(in srgb, var(--dr-col, #38bdf8) 22%, #0f172a), rgba(15, 23, 42, 0.96));
  box-shadow: 0 0 0 1.5px var(--dr-col, #38bdf8), 0 8px 18px color-mix(in srgb, var(--dr-col, #38bdf8) 32%, transparent);
}

.daily-reward-card:disabled {
  opacity: 0.62;
  cursor: default;
}

.daily-rew-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #10b981;
  color: #022c22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.daily-rew-art {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.45);
}

.daily-rew-art.is-block svg {
  width: 40px;
  height: 40px;
}

.daily-rew-name {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
  color: #f1f5f9;
}

.daily-rew-tier {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(2, 6, 23, 0.55);
}

.daily-done-banner {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}

body.perf-mode .camp-daily-btn,
body.perf-mode .camp-daily-tag,
body.perf-mode .daily-reward-card.is-selected {
  box-shadow: none !important;
  animation: none !important;
}

.camp-portal-btn {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  padding: 0;
  border: 2px solid rgba(192, 132, 252, 0.55);
  background: radial-gradient(circle, rgba(88, 28, 135, 0.45), rgba(15, 23, 42, 0.92));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.camp-portal-btn:hover {
  transform: scale(1.07);
}

.camp-portal-btn.is-locked {
  opacity: 0.72;
  border-color: rgba(100, 116, 139, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.camp-portal-btn.is-blocked {
  border-color: #fb7185;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.72), 0 0 12px rgba(168, 85, 247, 0.55);
  animation: portalAlarmPulse 1.5s ease-in-out infinite;
}

@keyframes portalAlarmPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.camp-portal-lock-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.48);
  border-radius: 999px;
}

.camp-portal-alert-tag {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  white-space: nowrap;
  color: #fff1f2;
  background: linear-gradient(135deg, #be123c, #9333ea);
  border: 1px solid #fda4af;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.5);
}

.camp-node-label.is-portal-lbl {
  border-color: rgba(192, 132, 252, 0.55);
  color: #f3e8ff;
}

.camp-dim-tab.is-portal-blocked {
  border-color: rgba(244, 63, 94, 0.75) !important;
  color: #fecdd3 !important;
}

.portal-modal-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(136, 19, 55, 0.35), rgba(59, 7, 100, 0.48), rgba(15, 23, 42, 0.92));
  border: 1.5px solid rgba(251, 113, 133, 0.55);
  margin-bottom: 12px;
}

.portal-modal-art {
  flex-shrink: 0;
}

.portal-modal-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.portal-modal-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  color: #ffe4e6;
  background: rgba(190, 18, 60, 0.65);
  border: 1px solid rgba(253, 164, 175, 0.55);
}

.portal-modal-desc {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
}

.portal-modal-hint {
  margin: 0;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.35;
}

body.perf-mode .camp-portal-btn,
body.perf-mode .camp-portal-alert-tag {
  box-shadow: none !important;
  animation: none !important;
}

/* Wegklickbare Portal-Blockade Event-Nachricht oben links im Hauptmenü */
.hub-badges-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hub-portal-event-banner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 225px;
  padding: 5px 6px 5px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.88), rgba(76, 29, 149, 0.88));
  border: 1.5px solid rgba(251, 113, 133, 0.72);
  box-shadow: 0 6px 18px rgba(190, 18, 60, 0.36);
  pointer-events: auto;
}

.hub-portal-event-body {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: #fff1f2;
  text-align: left;
  cursor: pointer;
}

.hub-portal-event-ico {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(244, 63, 94, 0.28);
  color: #fda4af;
}

.hub-portal-event-txt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.hub-portal-event-txt b {
  font-size: 10.5px;
  font-weight: 900;
  color: #ffe4e6;
}

.hub-portal-event-txt small {
  font-size: 9.5px;
  font-weight: 700;
  color: #e9d5ff;
}

.hub-portal-event-close {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(2, 6, 23, 0.45);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}

.hub-portal-event-close:hover {
  background: rgba(244, 63, 94, 0.5);
}

body.perf-mode .hub-portal-event-banner {
  box-shadow: none !important;
}

.pack-open-intro.is-ripping .pack-tear-body { will-change: transform, opacity; }

/* ==================== 120-HZ TAB-WECHSEL & CSS-CONTAINMENT ==================== */
@keyframes tabViewEnter {
  from { opacity: 0.82; }
  to { opacity: 1; }
}

@keyframes tabViewEnterAlt {
  from { opacity: 0.82; }
  to { opacity: 1; }
}

#app-root.is-tab-entering,
#app-root.is-tab-entering-a {
  animation: tabViewEnter 0.11s ease-out both;
}

#app-root.is-tab-entering-b {
  animation: tabViewEnterAlt 0.11s ease-out both;
}

.hub-glass-dock,
.trader-book-grid {
  contain: layout style;
}

/* 3D-Flip-Karten in .cards-grid dürfen kein content-visibility:auto / contain:layout haben (Android-WebView-Bug) */
.cards-grid {
  contain: none;
}

.cards-grid > .mc-card {
  content-visibility: visible;
  contain: none;
}


/* ==================== TRAILER-STUDIO (15s) — CLASH-ROYALE-STIL (16:9 & 9:16) ==================== */
.tr-studio-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050814;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tr-studio-overlay.is-recording {
  padding: 0;
  background: #02040b;
}

.tr-studio-overlay.is-recording .tr-abort-btn {
  display: none !important;
}

.tr-studio-panel {
  width: min(440px, 94vw);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(9, 13, 28, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
  color: #f8fafc;
}

.tr-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.tr-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  color: #e0f2fe;
}

.tr-panel-sub {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}

.tr-panel-section {
  margin-bottom: 13px;
}

.tr-sec-lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  margin-bottom: 7px;
}

.tr-fmt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tr-fmt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  cursor: pointer;
}

.tr-fmt-btn b {
  font-size: 15px;
  font-weight: 900;
  color: #f8fafc;
}

.tr-fmt-btn span {
  font-size: 10.5px;
  color: #94a3b8;
}

.tr-fmt-btn.is-active {
  border-color: #38bdf8;
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.92));
  box-shadow: 0 0 0 1px #38bdf8, 0 6px 16px rgba(56, 189, 248, 0.24);
}

.tr-mode-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-mode-btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  justify-content: center;
}

.tr-panel-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  font-size: 11px;
  color: #bae6fd;
  line-height: 1.35;
}

.tr-stage-host {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-stage {
  position: relative;
  overflow: hidden;
  background: #070b18;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2), 0 24px 64px rgba(0, 0, 0, 0.8);
}

.tr-studio-overlay.is-recording .tr-stage {
  border-radius: 0;
  box-shadow: none;
}
.tr-studio-overlay.is-recording .tr-stage.is-9-16 {
  height: min(100vh, calc(100vw * 16 / 9));
  max-width: 100vw;
}
.tr-studio-overlay.is-recording .tr-stage.is-16-9 {
  width: min(100vw, calc(100vh * 16 / 9));
  max-height: 100vh;
}

.tr-stage.is-16-9 {
  aspect-ratio: 16 / 9;
  width: min(96vw, calc(96vh * 16 / 9));
  max-height: 96vh;
}

.tr-stage.is-9-16 {
  aspect-ratio: 9 / 16;
  height: min(96vh, calc(96vw * 16 / 9));
  max-width: 96vw;
}

.tr-abort-btn {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10005;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.5);
  background: rgba(15, 23, 42, 0.82);
  color: #fecaca;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.tr-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
}

.tr-bg-nebula {
  position: absolute;
  inset: -15%;
  pointer-events: none;
}

.tr-bg-nebula.is-gold {
  background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.26), transparent 55%),
              radial-gradient(circle at 75% 70%, rgba(239, 68, 68, 0.26), transparent 55%),
              linear-gradient(155deg, #0b1024, #140b24);
}

.tr-bg-nebula.is-legend {
  background: radial-gradient(circle at 50% 50%, rgba(250, 204, 21, 0.34), rgba(168, 85, 247, 0.16) 45%, #070b18 78%);
}

.tr-bg-nebula.is-dungeon {
  background: radial-gradient(circle at 50% 35%, rgba(168, 85, 247, 0.32), rgba(15, 23, 42, 0.92) 66%),
              linear-gradient(180deg, #160a28, #060913);
}

.tr-caption-bar {
  position: absolute;
  bottom: 5.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

.tr-caption-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: clamp(11px, 2.4cqmin, 20px);
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #fff;
  background: rgba(7, 11, 24, 0.86);
  border: 1.5px solid #fbbf24;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
  animation: trCapPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tr-caption-pill.is-fire { border-color: #fb923c; color: #ffedd5; }
.tr-caption-pill.is-purple { border-color: #c084fc; color: #f3e8ff; }
.tr-caption-pill.is-legend { border-color: #fde047; color: #fef9c3; }

@keyframes trCapPop {
  from { opacity: 0; transform: translateY(16px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- SZENE 1: KARTEN- & AUSRÜSTUNGS-ÜBERFLUG --- */
.tr-s1-cam {
  position: relative;
  z-index: 5;
  width: 88%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  animation: trCamPan 3.5s cubic-bezier(0.25, 0.85, 0.35, 1) both;
}

@keyframes trCamPan {
  0% { transform: perspective(900px) rotateX(16deg) rotateZ(-6deg) scale(1.22) translate3d(-5%, 4%, 0); }
  100% { transform: perspective(900px) rotateX(11deg) rotateZ(-2.5deg) scale(1.02) translate3d(4%, -3%, 0); }
}

.tr-s1-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2cqmin, 18px);
}

.tr-stage.is-9-16 .tr-s1-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tr-show-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(10px, 2.2cqmin, 18px) 8px;
  border-radius: 16px;
  contain: layout style;
  background: linear-gradient(170deg, rgba(24, 34, 62, 0.94), rgba(10, 14, 28, 0.96));
  border: 2px solid #fbbf24;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  animation: trCardFloat 0.45s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s) both;
}

.tr-show-card.is-tier-5 {
  border-color: #fde047;
  box-shadow: 0 0 26px rgba(250, 204, 21, 0.48), 0 12px 28px rgba(0, 0, 0, 0.65);
}

.tr-show-card.is-tier-4 {
  border-color: #f87171;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.46), 0 12px 28px rgba(0, 0, 0, 0.65);
}

@keyframes trCardFloat {
  from { opacity: 0; transform: translateY(24px) scale(0.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tr-tier-pill {
  font-size: clamp(8px, 1.5cqmin, 11px);
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.tr-tier-pill.is-t5 { background: linear-gradient(135deg, #f59e0b, #fde047); color: #1c1917; }
.tr-tier-pill.is-t4 { background: linear-gradient(135deg, #dc2626, #f87171); color: #fff1f2; }

.tr-show-art {
  width: clamp(54px, 13cqmin, 108px);
  height: clamp(54px, 13cqmin, 108px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-show-art svg {
  width: 100%;
  height: 100%;
}

.tr-show-name {
  font-size: clamp(10px, 1.9cqmin, 15px);
  font-weight: 900;
  color: #f8fafc;
  text-align: center;
}

/* --- SZENE 2: EPISCHES PACK-OPENING --- */
.tr-s2-rays {
  position: absolute;
  width: 150cqmin;
  height: 150cqmin;
  background: repeating-conic-gradient(from 0deg, rgba(253, 224, 71, 0.24) 0deg 12deg, transparent 12deg 24deg);
  opacity: 0;
  animation: trRaysSpin 3.5s linear both;
}

@keyframes trRaysSpin {
  0%, 30% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  40% { opacity: 0.95; transform: scale(1.1) rotate(32deg); }
  100% { opacity: 0.72; transform: scale(1.25) rotate(135deg); }
}

.tr-s2-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #ffffff, #fde047 55%, transparent 80%);
  opacity: 0;
  z-index: 14;
  animation: trPackFlash 3.5s ease-out both;
}

@keyframes trPackFlash {
  0%, 31% { opacity: 0; }
  36% { opacity: 1; }
  52% { opacity: 0; }
  100% { opacity: 0; }
}

.tr-s2-pack-wrap {
  position: relative;
  z-index: 8;
  animation: trPackCharge 3.5s ease-in-out both;
}

.tr-s2-pack-art svg {
  width: clamp(120px, 32cqmin, 240px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(250, 204, 21, 0.65));
}

@keyframes trPackCharge {
  0% { opacity: 0; transform: scale(0.5); }
  12% { opacity: 1; transform: scale(1.05); }
  18% { transform: scale(1.08) rotate(-4deg); }
  22% { transform: scale(1.12) rotate(5deg); }
  26% { transform: scale(1.18) rotate(-6deg); }
  31% { opacity: 1; transform: scale(1.32) rotate(4deg); }
  36%, 100% { opacity: 0; transform: scale(1.9); }
}

.tr-s2-reveal-wrap {
  position: absolute;
  z-index: 12;
  animation: trCardReveal 3.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes trCardReveal {
  0%, 34% { opacity: 0; transform: scale(0.25) rotateY(80deg); }
  46% { opacity: 1; transform: scale(1.08) rotateY(0deg); }
  56% { transform: scale(1); }
  100% { opacity: 1; transform: scale(1.04); }
}

.tr-s2-card {
  position: relative;
  width: clamp(160px, 36cqmin, 260px);
  padding: clamp(14px, 3cqmin, 24px) 16px;
  border-radius: 20px;
  background: linear-gradient(165deg, #2d1e07, #111827 65%, #1e1b4b);
  border: 3px solid #fde047;
  box-shadow: 0 0 42px rgba(250, 204, 21, 0.72), 0 18px 42px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tr-new-badge {
  position: absolute;
  top: -12px;
  right: -10px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: clamp(10px, 2cqmin, 14px);
  font-weight: 900;
  color: #1c1917;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  border: 2px solid #fef9c3;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.9);
}

.tr-s2-card-art {
  width: clamp(92px, 22cqmin, 155px);
  height: clamp(92px, 22cqmin, 155px);
}

.tr-s2-card-art svg { width: 100%; height: 100%; }

.tr-s2-card-name {
  font-size: clamp(14px, 2.8cqmin, 21px);
  font-weight: 900;
  color: #fef9c3;
  text-align: center;
}

.tr-s2-card-sub {
  font-size: clamp(10px, 1.9cqmin, 13px);
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- SZENE 3: 5×5 ARENA-KAMPF & BOSS-EFFEKT --- */
.tr-s3-bg {
  position: absolute;
  inset: 0;
  opacity: 0.58;
}

.tr-s3-bg svg { width: 100%; height: 100%; object-fit: cover; }

.tr-s3-shake-wrap {
  position: relative;
  z-index: 6;
  width: 86%;
  height: 82%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: trArenaShake 4.5s ease-in-out both;
}

@keyframes trArenaShake {
  0%, 44% { transform: translate(0, 0) scale(1); }
  47% { transform: translate(-8px, 6px) scale(1.03); }
  50% { transform: translate(9px, -6px) scale(1.04); }
  53% { transform: translate(-6px, -4px) scale(1.02); }
  56% { transform: translate(5px, 4px) scale(1.01); }
  60%, 100% { transform: translate(0, 0) scale(1.02); }
}

.tr-s3-board-persp {
  position: relative;
  width: clamp(240px, 62cqmin, 470px);
  aspect-ratio: 5 / 4.4;
}

.tr-s3-grid-5x5 {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 4px;
  transform: perspective(650px) rotateX(28deg);
}

.tr-grid-cell {
  border-radius: 6px;
  border: 1px solid rgba(251, 146, 60, 0.25);
  background: rgba(24, 15, 24, 0.72);
}

.tr-grid-cell.is-enemy-zone { background: rgba(127, 29, 29, 0.38); }
.tr-grid-cell.is-ally-zone { background: rgba(16, 185, 129, 0.22); }

.tr-unit {
  position: absolute;
  width: 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 8;
}

.tr-unit svg { width: 100%; height: auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.75)); }

.tr-hp-bar {
  width: 78%;
  height: 5px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.85);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tr-hp-bar span { display: block; height: 100%; }
.tr-hp-bar.is-enemy span { background: linear-gradient(90deg, #ef4444, #fb923c); }
.tr-hp-bar.is-ally span { background: linear-gradient(90deg, #10b981, #4ade80); }

.tr-u-boss { top: -2%; left: 39%; width: 28%; animation: trBossCast 4.5s ease-in-out both; }
.tr-u-enemy-sub { top: 14%; left: 12%; width: 20%; }

.tr-u-ally-1 { bottom: 6%; left: 39%; animation: trAllyCharge1 4.5s ease-out both; }
.tr-u-ally-2 { bottom: 10%; left: 15%; animation: trAllyCharge2 4.5s ease-out both; }
.tr-u-ally-3 { bottom: 12%; right: 14%; animation: trAllyCharge3 4.5s ease-out both; }

@keyframes trBossCast {
  0%, 32% { transform: scale(1); }
  42% { transform: scale(1.22) translateY(-8px); filter: drop-shadow(0 0 28px #f97316); }
  52% { transform: scale(1.06) translateY(6px); }
  100% { transform: scale(1); }
}

@keyframes trAllyCharge1 {
  0% { transform: translateY(24%) scale(0.92); }
  36% { transform: translateY(-28%) scale(1.08); }
  48% { transform: translateY(-16%) scale(0.96); }
  100% { transform: translateY(-34%) scale(1.06); }
}

@keyframes trAllyCharge2 {
  0% { transform: translateY(20%); }
  40% { transform: translateY(-24%); }
  100% { transform: translateY(-30%); }
}

@keyframes trAllyCharge3 {
  0% { transform: translateY(22%); }
  40% { transform: translateY(-22%); }
  100% { transform: translateY(-28%); }
}

.tr-s3-aoe-ring {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 6px solid #fb923c;
  box-shadow: 0 0 36px #f97316, inset 0 0 24px #fde047;
  transform: translate(-50%, -50%) scale(0.1);
  opacity: 0;
  z-index: 12;
  animation: trAoeBlast 4.5s ease-out both;
}

.tr-s3-aoe-core {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(254, 240, 138, 0.9), rgba(249, 115, 22, 0.55) 45%, transparent 72%);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  z-index: 11;
  animation: trAoeCore 4.5s ease-out both;
}

@keyframes trAoeBlast {
  0%, 42% { opacity: 0; transform: translate(-50%, -50%) scale(0.1); }
  48% { opacity: 1; transform: translate(-50%, -50%) scale(2.8); }
  64% { opacity: 0; transform: translate(-50%, -50%) scale(4.2); }
  100% { opacity: 0; }
}

@keyframes trAoeCore {
  0%, 42% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  47% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.3); }
  62% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
  100% { opacity: 0; }
}

.tr-dmg-pop {
  position: absolute;
  z-index: 16;
  font-size: clamp(16px, 3.8cqmin, 30px);
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 3px 0 #7f1d1d, 0 0 18px rgba(239, 68, 68, 0.9);
  opacity: 0;
}

.tr-dmg-1 { top: 28%; left: 42%; animation: trDmgFloat 4.5s ease-out 0.1s both; }
.tr-dmg-2 { top: 48%; left: 18%; color: #fca5a5; animation: trDmgFloat 4.5s ease-out 0.25s both; }
.tr-dmg-3 { top: 46%; right: 16%; color: #fdba74; animation: trDmgFloat 4.5s ease-out 0.35s both; }

@keyframes trDmgFloat {
  0%, 44% { opacity: 0; transform: translateY(14px) scale(0.5); }
  52% { opacity: 1; transform: translateY(-16px) scale(1.2); }
  74% { opacity: 1; transform: translateY(-34px) scale(1); }
  88%, 100% { opacity: 0; transform: translateY(-48px) scale(0.9); }
}

/* --- SZENE 4: SOLO-DUNGEON „VERFLUCHTE ZITADELLE“ & FINALE --- */
.tr-s4-dungeon-phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: trDngFadeOut 3.5s ease-in-out both;
}

@keyframes trDngFadeOut {
  0%, 66% { opacity: 1; transform: scale(1); }
  74%, 100% { opacity: 0; transform: scale(1.08); }
}

.tr-s4-board-3x4 {
  position: relative;
  width: clamp(210px, 50cqmin, 360px);
  aspect-ratio: 3 / 3.8;
}

.tr-dng-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 5px;
  transform: perspective(600px) rotateX(22deg);
}

.tr-dng-cell {
  border-radius: 7px;
  background: rgba(30, 20, 52, 0.78);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.tr-dng-cell.is-boss-row {
  background: rgba(126, 34, 206, 0.34);
  border-color: rgba(232, 121, 249, 0.5);
}

.tr-dng-enemy {
  position: absolute;
  top: 4%;
  left: 34%;
  width: 32%;
  z-index: 8;
  animation: trKeybearerFall 3.5s ease-in-out both;
}

.tr-dng-enemy svg { width: 100%; height: auto; }

.tr-dng-key-holder {
  position: absolute;
  top: -8px;
  right: -8px;
  filter: drop-shadow(0 0 10px #fde047);
}

@keyframes trKeybearerFall {
  0%, 28% { opacity: 1; transform: scale(1); }
  34% { opacity: 1; transform: translateX(10px) rotate(12deg) scale(1.06); filter: brightness(2); }
  44%, 100% { opacity: 0; transform: translateY(-20px) rotate(28deg) scale(0.4); }
}

.tr-dng-hero {
  position: absolute;
  bottom: 4%;
  left: 33%;
  width: 34%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: trHeroStrike 3.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tr-dng-hero svg { width: 100%; height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.8)); }

.tr-hero-tag {
  margin-top: -6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: clamp(9px, 1.8cqmin, 13px);
  font-weight: 900;
  color: #fef3c7;
  background: rgba(127, 29, 29, 0.92);
  border: 1px solid #f87171;
}

@keyframes trHeroStrike {
  0% { transform: translateY(18%) scale(0.95); }
  26% { transform: translateY(-62%) scale(1.12); }
  36% { transform: translateY(-48%) scale(1.04); }
  100% { transform: translateY(-38%) scale(1.02); }
}

.tr-dng-slash {
  position: absolute;
  top: 16%;
  left: 18%;
  width: 64%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fde047, #e879f9, transparent);
  box-shadow: 0 0 24px #facc15;
  transform: rotate(-28deg) scaleX(0);
  opacity: 0;
  z-index: 14;
  animation: trSlashFx 3.5s ease-out both;
}

@keyframes trSlashFx {
  0%, 24% { opacity: 0; transform: rotate(-28deg) scaleX(0); }
  30% { opacity: 1; transform: rotate(-28deg) scaleX(1.2); }
  40%, 100% { opacity: 0; transform: rotate(-28deg) scaleX(1.5); }
}

.tr-dng-crit {
  position: absolute;
  top: 8%;
  right: 8%;
  z-index: 15;
  font-size: clamp(16px, 3.6cqmin, 28px);
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 3px 0 #581c87, 0 0 18px #f59e0b;
  opacity: 0;
  animation: trDngCritPop 3.5s ease-out both;
}

@keyframes trDngCritPop {
  0%, 27% { opacity: 0; transform: translateY(10px) scale(0.5); }
  34% { opacity: 1; transform: translateY(-12px) scale(1.2); }
  54%, 100% { opacity: 0; transform: translateY(-28px) scale(0.9); }
}

.tr-dng-key-loot {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  z-index: 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: trKeyLootPop 3.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tr-key-orb {
  width: clamp(64px, 16cqmin, 96px);
  height: clamp(64px, 16cqmin, 96px);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.55), rgba(88, 28, 135, 0.85));
  border: 2.5px solid #fde047;
  box-shadow: 0 0 34px rgba(250, 204, 21, 0.85);
}

.tr-dng-key-loot span {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: clamp(10px, 2cqmin, 14px);
  font-weight: 900;
  white-space: nowrap;
  color: #fef9c3;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #fde047;
}

@keyframes trKeyLootPop {
  0%, 38% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  48% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  64% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  72%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.15); }
}

.tr-s4-outro {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5cqmin, 18px);
  background: radial-gradient(circle at 50% 45%, rgba(250, 204, 21, 0.22), rgba(15, 23, 42, 0.96) 62%, #040712);
  opacity: 0;
  animation: trOutroIn 3.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes trOutroIn {
  0%, 69% { opacity: 0; transform: scale(0.86); }
  79%, 100% { opacity: 1; transform: scale(1); }
}

.tr-outro-emblem {
  width: clamp(68px, 16cqmin, 108px);
  height: clamp(68px, 16cqmin, 108px);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.28), rgba(15, 23, 42, 0.94));
  border: 2.5px solid #fde047;
  box-shadow: 0 0 36px rgba(250, 204, 21, 0.6);
}

.tr-outro-title {
  text-align: center;
  font-size: clamp(22px, 6.2cqmin, 50px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0.05em;
  color: #f8fafc;
  text-shadow: 0 4px 0 #0f172a, 0 0 28px rgba(56, 189, 248, 0.55);
}

.tr-outro-title span {
  background: linear-gradient(135deg, #fde047, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tr-outro-cta {
  padding: clamp(9px, 2.2cqmin, 15px) clamp(24px, 6cqmin, 44px);
  border-radius: 999px;
  font-size: clamp(14px, 3.2cqmin, 24px);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #022c22;
  background: linear-gradient(135deg, #4ade80, #10b981);
  border: 2px solid #bbf7d0;
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.75);
}


/* --- NEUE SZENE: SCHMIEDE & VERZAUBERUNG (2.8s) --- */
.tr-bg-nebula.is-arcane {
  background: radial-gradient(circle at 50% 48%, rgba(168, 85, 247, 0.36), rgba(56, 189, 248, 0.16) 46%, #060916 78%);
}

.tr-fg-ring {
  position: absolute;
  width: 64cqmin;
  height: 64cqmin;
  border-radius: 999px;
  border: 4px dashed rgba(192, 132, 252, 0.72);
  box-shadow: 0 0 38px rgba(168, 85, 247, 0.55);
  animation: trForgeRing 2.8s ease-in-out both;
}

@keyframes trForgeRing {
  0% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  38% { opacity: 0.95; transform: scale(0.95) rotate(110deg); }
  52% { opacity: 1; transform: scale(1.25) rotate(160deg); }
  100% { opacity: 0.55; transform: scale(1.05) rotate(260deg); }
}

.tr-fg-flash {
  position: absolute;
  inset: 0;
  z-index: 14;
  background: radial-gradient(circle, #f5d0fe, #a855f7 48%, transparent 78%);
  opacity: 0;
  animation: trForgeFlash 2.8s ease-out both;
}

@keyframes trForgeFlash {
  0%, 40% { opacity: 0; }
  46% { opacity: 0.95; }
  62%, 100% { opacity: 0; }
}

.tr-fg-stage {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tr-fg-ingredients {
  display: flex;
  align-items: center;
  gap: clamp(14px, 4cqmin, 32px);
  animation: trForgeMerge 2.8s cubic-bezier(0.35, 0, 0.25, 1) both;
}

.tr-fg-slot {
  width: clamp(82px, 20cqmin, 140px);
  height: clamp(82px, 20cqmin, 140px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}

.tr-fg-slot.is-right {
  border-color: rgba(192, 132, 252, 0.78);
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.45);
}

.tr-fg-plus {
  font-size: clamp(22px, 5cqmin, 38px);
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 0 18px rgba(250, 204, 21, 0.8);
}

@keyframes trForgeMerge {
  0% { opacity: 0; transform: scale(0.75); gap: clamp(26px, 8cqmin, 64px); }
  16% { opacity: 1; transform: scale(1); }
  40% { opacity: 1; transform: scale(0.65); gap: 0; }
  46%, 100% { opacity: 0; transform: scale(0.2); }
}

.tr-fg-result {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(14px, 3cqmin, 24px) clamp(18px, 4cqmin, 30px);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(88, 28, 135, 0.65), rgba(15, 23, 42, 0.95));
  border: 2.5px solid #e879f9;
  box-shadow: 0 0 42px rgba(192, 132, 252, 0.78), 0 16px 38px rgba(0, 0, 0, 0.75);
  opacity: 0;
  animation: trForgeReveal 2.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tr-fg-result-name {
  font-size: clamp(13px, 2.6cqmin, 20px);
  font-weight: 900;
  color: #f5d0fe;
  text-align: center;
}

@keyframes trForgeReveal {
  0%, 44% { opacity: 0; transform: scale(0.25) rotate(-14deg); }
  58% { opacity: 1; transform: scale(1.1) rotate(2deg); }
  70% { transform: scale(1) rotate(0deg); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* ============================================================================
   ONLINE-ARENA (BETA), CHALLENGE-BANNER, DRAW-OVERLAY & BESTENLISTE
   ============================================================================ */
.mode-online-card {
  background: linear-gradient(155deg, rgba(14, 116, 144, 0.34), rgba(15, 23, 42, 0.92));
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.2);
  cursor: pointer;
  touch-action: manipulation;
}
.mode-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.5);
}
.mode-online-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.45));
}

.oa-header-tag {
  font-size: 11px;
  font-weight: 800;
  color: #7dd3fc;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 8px;
  border-radius: 8px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oa-tabs-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 10px 4px;
  background: rgba(9, 13, 22, 0.55);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.oa-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.oa-tab-btn.is-active {
  color: #e0f2fe;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.32), rgba(3, 105, 161, 0.42));
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.oa-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oa-deck-picker .deck-pick-card.oa-deck-mini {
  padding: 6px 8px;
  min-height: 36px;
}
.oa-card {
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 11px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}
.oa-card-async {
  border-color: rgba(52, 211, 153, 0.36);
  background: linear-gradient(160deg, rgba(6, 78, 59, 0.26), rgba(15, 23, 42, 0.9));
}
.oa-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.oa-card-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
  color: #e2e8f0;
}
.oa-card-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.35;
}
.oa-card-count {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.8);
  padding: 2px 7px;
  border-radius: 999px;
}

.oa-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.7);
}
.oa-live-pill.is-online {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(20, 83, 45, 0.45);
}
.oa-live-pill.is-offline {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.35);
}
.oa-beta-pill {
  font-size: 10px;
  font-weight: 900;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.45);
  padding: 2px 7px;
  border-radius: 999px;
}
.oa-dot, .oa-dot-sm, .oa-dot-xs {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
}
.oa-dot { width: 10px; height: 10px; }
.oa-dot-sm { width: 7px; height: 7px; background: currentColor; }
.oa-dot-xs { width: 7px; height: 7px; }
.oa-dot.is-ready, .oa-dot-xs.is-ready { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
.oa-dot.is-busy { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.65); }
.oa-dot-xs.is-offline { background: #475569; }

.oa-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 16px 10px;
  font-size: 12px;
  color: #94a3b8;
  background: rgba(9, 13, 22, 0.45);
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
}
.oa-empty-sub { font-size: 11px; color: #64748b; }

.oa-player-list, .oa-lb-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.oa-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
.oa-player-info {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.oa-player-meta { min-width: 0; }
.oa-player-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oa-tag { font-size: 11px; color: #7dd3fc; font-weight: 700; }
.oa-player-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 10.5px;
}
.oa-lvl-pill {
  color: #fde68a;
  font-weight: 800;
}
.oa-state-lbl.is-ready { color: #86efac; font-weight: 700; }
.oa-state-lbl.is-busy { color: #fbbf24; font-weight: 700; }
.oa-challenge-btn { flex-shrink: 0; touch-action: manipulation; }

.oa-room-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.oa-room-join-row {
  display: flex;
  gap: 6px;
}
.oa-room-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(9, 13, 22, 0.78);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
}
.oa-room-active {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(88, 28, 135, 0.28);
  border: 1px solid rgba(192, 132, 252, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.oa-room-code-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.oa-room-lbl { font-size: 10.5px; color: #e9d5ff; }
.oa-room-code { font-size: 20px; letter-spacing: 4px; color: #fde047; }
.oa-room-actions { display: flex; gap: 6px; }

.oa-my-rank-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.34), rgba(15, 23, 42, 0.92));
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  font-size: 13px;
  font-weight: 900;
  color: #fef08a;
}
.oa-my-rank-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.oa-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.oa-lb-row.is-self {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(15, 23, 42, 0.88));
  border-color: rgba(56, 189, 248, 0.65);
}
.oa-lb-row.is-top-1 { border-color: rgba(251, 191, 36, 0.55); }
.oa-lb-row.is-top-2 { border-color: rgba(203, 213, 225, 0.45); }
.oa-lb-row.is-top-3 { border-color: rgba(234, 88, 12, 0.45); }
.oa-lb-rank {
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.oa-lb-rank-num { font-size: 12px; font-weight: 900; color: #94a3b8; }
.oa-lb-player { flex: 1; min-width: 0; }
.oa-lb-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.oa-lb-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oa-you-pill {
  font-size: 9.5px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.25);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.5);
}
.oa-lb-sub { font-size: 10.5px; color: #94a3b8; margin-top: 1px; }
.oa-lb-wins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #fde047;
  flex-shrink: 0;
}

/* Globales Herausforderungs-Banner oben am Bildschirm */
#online-banner-root {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 950;
  pointer-events: none;
}
.oa-challenge-banner {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94));
  border: 1.5px solid rgba(56, 189, 248, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.32);
  touch-action: manipulation;
}
.oa-cb-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.oa-cb-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.oa-cb-text { flex: 1; min-width: 0; }
.oa-cb-msg { font-size: 12.5px; color: #f8fafc; line-height: 1.3; }
.oa-cb-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
  color: #fde047;
}
.oa-cb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.oa-cb-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(15, 23, 42, 0.8);
}
.oa-cb-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #38bdf8, #4ade80);
  transition: width 0.2s linear;
}

/* Online-Kampf HUD: 25s Zug-Timer, Disconnect-Leiste & 1.5s Auslosungs-Overlay */
.oa-turn-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 900;
  color: #bae6fd;
  background: rgba(14, 116, 144, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.55);
}
.oa-turn-timer-pill.is-urgent {
  color: #fecaca;
  background: rgba(185, 28, 28, 0.65);
  border-color: #f87171;
  animation: oaTimerPulse 0.7s ease-in-out infinite;
}
@keyframes oaTimerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.oa-disconnect-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 10px;
  margin: 0 8px 4px;
  border-radius: 9px;
  background: rgba(153, 27, 27, 0.88);
  border: 1px solid rgba(248, 113, 113, 0.7);
  color: #fee2e2;
  font-size: 11.5px;
  font-weight: 800;
}

.oa-draw-overlay {
  position: absolute;
  inset: 0;
  z-index: 820;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 13, 22, 0.68);
  backdrop-filter: blur(4px);
  transition: opacity 0.25s ease;
}
.oa-draw-overlay.is-fading { opacity: 0; pointer-events: none; }
.oa-draw-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96));
  border: 2px solid rgba(251, 191, 36, 0.75);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72), 0 0 28px rgba(251, 191, 36, 0.35);
  text-align: center;
  max-width: 86%;
}
.oa-draw-text {
  font-size: 15px;
  font-weight: 800;
  color: #fef9c3;
}

/* Missions-Modal: Trank-Warnung & leichtgewichtiges Aufklapp-Menü (Zero-Lag) */
.prematch-potion-wrap {
  margin-top: 8px;
}
.pm-pot-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.pm-pot-toggle.is-warn {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(120, 53, 15, 0.34);
  color: #fde68a;
}
.pm-pot-toggle.is-full {
  border-color: rgba(74, 222, 128, 0.38);
  background: rgba(20, 83, 45, 0.24);
  color: #bbf7d0;
}
.pm-pot-toggle-left,
.pm-pot-toggle-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pm-pot-toggle-right {
  font-size: 11px;
  opacity: 0.92;
}
.pm-pot-drawer {
  margin-top: 6px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(9, 13, 24, 0.84);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pm-pot-slots-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pm-pot-slot {
  position: relative;
  height: 44px;
  border-radius: 8px;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-weight: 900;
  font-size: 15px;
}
.pm-pot-slot.is-filled {
  border-style: solid;
  border-color: rgba(192, 132, 252, 0.55);
  background: rgba(30, 27, 64, 0.72);
  cursor: pointer;
  touch-action: manipulation;
  padding: 3px;
}
.pm-pot-slot-art {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pm-pot-slot-art svg {
  width: 100%;
  height: 100%;
}
.pm-pot-slot-x {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}
.pm-pot-pool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 154px;
  overflow-y: auto;
}
.pm-pot-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.76);
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.pm-pot-btn.is-picked {
  border-color: rgba(192, 132, 252, 0.52);
  background: rgba(46, 26, 78, 0.55);
}
.pm-pot-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.pm-pot-art {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pm-pot-art svg {
  width: 100%;
  height: 100%;
}
.pm-pot-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.pm-pot-meta b {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-pot-meta small {
  font-size: 9.5px;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pm-pot-act {
  font-size: 11px;
  font-weight: 900;
  color: #c084fc;
  flex-shrink: 0;
}
.pm-pot-empty {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  padding: 4px 2px;
}

/* Entwickler-Modus: Kampagnen-Steuerung */
.dev-campaign-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}
.dev-camp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.dev-camp-grid .mc-btn,
#btn-dev-camp-unlock-all {
  touch-action: manipulation;
  justify-content: center;
}

/* Entwickler-Modus: Supabase-Konfiguration */
.dev-supabase-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dev-supabase-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #7dd3fc;
  margin-bottom: 2px;
}
.dev-sb-lbl { font-size: 10.5px; font-weight: 700; color: #94a3b8; }
.dev-sb-input {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(9, 13, 22, 0.78);
  color: #e2e8f0;
  font-size: 11px;
  font-family: monospace;
}
.dev-sb-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr 0.85fr;
  gap: 6px;
  margin-top: 4px;
}
.dev-sb-status {
  min-height: 15px;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

/* Performance-Modus (body.perf-mode) */
body.perf-mode .mode-online-icon,
body.perf-mode .oa-tab-btn.is-active,
body.perf-mode .oa-challenge-banner,
body.perf-mode .oa-draw-card,
body.perf-mode .oa-dot.is-ready,
body.perf-mode .oa-dot.is-busy {
  box-shadow: none !important;
  filter: none !important;
}
body.perf-mode .oa-draw-overlay {
  backdrop-filter: none !important;
}
body.perf-mode .oa-turn-timer-pill.is-urgent {
  animation: none !important;
}

/* ============================================================================
   AAA ONLINE-ARENA: SCHNELLES 1v1, OFFLINE-BANNER, CLICK-BANNER & PRE-MATCH
   ============================================================================ */
.mode-online-card.is-offline {
  background: linear-gradient(155deg, rgba(51, 65, 85, 0.42), rgba(15, 23, 42, 0.92));
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: none;
}

.oa-offline-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(127, 29, 29, 0.36);
  border: 1px solid rgba(248, 113, 113, 0.48);
  color: #fecaca;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
}
.oa-offline-banner-compact {
  padding: 7px 9px;
  font-size: 11px;
}

.oa-hero-card {
  background: linear-gradient(155deg, rgba(6, 95, 70, 0.38), rgba(15, 23, 42, 0.94));
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  border-radius: 15px;
  padding: 13px 14px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.18);
}
.oa-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.oa-hero-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 900;
  color: #ecfdf5;
}
.oa-hero-sub {
  font-size: 11.5px;
  color: #cbd5e1;
  margin-top: 3px;
  line-height: 1.35;
}
.oa-quick-cta {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.4px;
  touch-action: manipulation;
}
.oa-searching-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(14, 116, 144, 0.32);
  border: 1px solid rgba(56, 189, 248, 0.55);
}
.oa-searching-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 800;
  color: #bae6fd;
}

.oa-challenge-banner.is-clickable {
  cursor: pointer;
}
.oa-challenge-banner.is-clickable:active {
  transform: scale(0.99);
}
.oa-cb-decline-compact {
  flex-shrink: 0;
  padding: 6px 9px;
  font-size: 11px;
}

/* PvP Pre-Match-Lobby */
.oa-pm-vs-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.94));
  border: 1.5px solid rgba(56, 189, 248, 0.45);
}
.oa-pm-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 9px 6px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  min-width: 0;
}
.oa-pm-fighter.is-ready {
  border-color: rgba(74, 222, 128, 0.72);
  background: rgba(20, 83, 45, 0.35);
}
.oa-pm-role {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #7dd3fc;
}
.oa-pm-name {
  font-size: 13px;
  font-weight: 900;
  color: #f8fafc;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oa-pm-sub {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 700;
}
.oa-pm-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.42);
  border: 1px solid rgba(251, 191, 36, 0.42);
}
.oa-pm-status.is-ready {
  color: #86efac;
  background: rgba(20, 83, 45, 0.65);
  border-color: rgba(74, 222, 128, 0.65);
}
.oa-pm-vs-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 900;
  color: #fde047;
}
.oa-pm-ready-btn {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 900;
  touch-action: manipulation;
}
.oa-pm-hint {
  text-align: center;
  font-size: 11.5px;
  color: #94a3b8;
}
.oa-pm-warn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fca5a5;
}

body.perf-mode .oa-hero-card,
body.perf-mode .oa-pm-vs-card {
  box-shadow: none !important;
}

/* ============================================================================
   KONTO & CLOUD-SPEICHER (EINSTELLUNGEN)
   ============================================================================ */
.set-cloud-card {
  border: 1.5px solid rgba(56, 189, 248, 0.36);
  background: linear-gradient(160deg, rgba(14, 116, 144, 0.2), rgba(15, 23, 42, 0.94));
}
.set-cloud-card.is-secured {
  border-color: rgba(74, 222, 128, 0.45);
}
.set-cloud-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cloud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
}
.cloud-status-badge.is-active {
  color: #86efac;
  background: rgba(20, 83, 45, 0.65);
  border: 1px solid rgba(74, 222, 128, 0.6);
}
.cloud-status-badge.is-warn {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.55);
}
.cloud-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: rgba(9, 13, 22, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.cloud-id-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cloud-id-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.cloud-id-val {
  font-size: 14px;
  font-weight: 900;
  color: #7dd3fc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cloud-last-sync {
  font-size: 10.5px;
  color: #86efac;
  font-weight: 700;
}
.cloud-form-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
}
.cloud-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}
.cloud-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(9, 13, 22, 0.82);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  touch-action: manipulation;
}
.cloud-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cloud-pw-wrap .cloud-input {
  padding-right: 40px;
}
.cloud-eye-btn {
  position: absolute;
  right: 6px;
  background: transparent;
  border: none;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}
.cloud-feedback {
  min-height: 15px;
  font-size: 11.5px;
  font-weight: 800;
  margin-top: 5px;
}
.cloud-confirm-msg {
  font-size: 13px;
  line-height: 1.45;
  color: #e2e8f0;
  margin: 4px 0;
}
.cloud-warn-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  margin-top: 8px;
  border-radius: 10px;
  background: rgba(120, 53, 15, 0.35);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fef08a;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
}
.cloud-warn-banner.is-danger {
  background: rgba(127, 29, 29, 0.42);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}
.cloud-recovery-box {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
}
.cloud-rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cloud-rec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cloud-rec-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.1px;
  color: #fde047;
  background: rgba(2, 6, 23, 0.72);
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.cloud-rec-code.is-big {
  font-size: 17px;
  letter-spacing: 1.8px;
  padding: 10px 14px;
  display: inline-block;
}
.cloud-rec-btns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.onb-modal-shell {
  text-align: center;
  padding: 4px 2px;
}
.onb-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.24), rgba(15, 23, 42, 0.92));
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}
.onb-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
  color: #f8fafc;
}
.onb-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}
.onb-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.onb-input {
  font-size: 14px;
  padding: 10px 12px;
}
.onb-rec-showcase {
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.32);
}
.cloud-conflict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cloud-conflict-card {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
  text-align: center;
}
.cloud-conflict-card.is-cloud {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(20, 83, 45, 0.28);
  color: #bbf7d0;
}
body.perf-mode .set-cloud-card,
body.perf-mode .onb-emblem {
  box-shadow: none !important;
}

/* ==================== HELD- & PODEST-CUSTOMIZATION ==================== */
.hub-customize-fab {
  position: absolute;
  top: -40px;
  right: 6px;
  left: auto;
  z-index: 6;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  color: #e2e8f0;
  background: linear-gradient(160deg, rgba(18, 25, 46, 0.86), rgba(14, 11, 28, 0.92));
  border: 1px solid rgba(192, 132, 252, 0.34);
  box-shadow:
    0 6px 16px rgba(2, 6, 16, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.hub-customize-fab:hover {
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow:
    0 8px 20px rgba(2, 6, 16, 0.62),
    0 0 14px rgba(168, 85, 247, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hub-customize-fab:active {
  transform: scale(0.94);
}

.modal-card.modal-card-customize {
  width: min(520px, 95vw);
  max-height: min(90dvh, 760px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cust-modal {
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 760px);
  min-height: 0;
}

.cust-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  flex-shrink: 0;
}

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

.cust-title-wrap h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-title-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(192, 132, 252, 0.35);
  flex-shrink: 0;
}

.cust-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cust-preview-stage {
  position: relative;
  height: 176px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(168, 85, 247, 0.18), transparent 64%),
    linear-gradient(180deg, rgba(10, 15, 30, 0.94), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.cust-preview-stage.is-day {
  background:
    radial-gradient(circle at 50% 32%, rgba(56, 189, 248, 0.2), transparent 64%),
    linear-gradient(180deg, rgba(22, 42, 74, 0.92), rgba(15, 23, 42, 0.94));
}

.cust-armor-toggle {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.28);
  cursor: pointer;
  touch-action: manipulation;
}

.cust-armor-toggle.is-hidden {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.36);
}

.cust-preview-pedestal {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 196px;
  height: 66px;
  z-index: 1;
  pointer-events: none;
}

.cust-preview-hero {
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.cust-preview-hero .steve-svg {
  width: 134px;
  height: 134px;
  filter: drop-shadow(0 8px 14px rgba(2, 6, 16, 0.65));
}

.cust-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(8, 12, 24, 0.56);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  flex-shrink: 0;
}

.cust-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 900;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.cust-tab-btn.is-active {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.42), rgba(37, 99, 235, 0.34));
  border-color: rgba(192, 132, 252, 0.58);
  box-shadow: 0 4px 12px rgba(126, 34, 206, 0.22);
}

.cust-tab-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cust-hero-groups {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cust-group {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cust-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cust-group-title {
  font-size: 12px;
  font-weight: 900;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cust-group-val {
  font-size: 11.5px;
  font-weight: 800;
  color: #c084fc;
}

.cust-options-row.is-face-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cust-face-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 6px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 800;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  cursor: pointer;
  touch-action: manipulation;
}

.cust-face-chip.is-selected {
  color: #ffffff;
  background: rgba(126, 34, 206, 0.34);
  border-color: #c084fc;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.28);
}

.cust-face-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cust-options-row.is-swatch-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.cust-swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px 5px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
  cursor: pointer;
  touch-action: manipulation;
  min-width: 0;
}

.cust-swatch-btn.is-selected {
  background: rgba(126, 34, 206, 0.28);
  border-color: #c084fc;
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.28);
}

.cust-swatch-orb {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.26), 0 2px 6px rgba(0, 0, 0, 0.45);
}

.cust-swatch-btn.is-selected .cust-swatch-orb {
  border-color: #ffffff;
  transform: scale(1.06);
}

.cust-swatch-lbl {
  font-size: 9.5px;
  font-weight: 800;
  color: #cbd5e1;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-footer-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.85), rgba(11, 16, 32, 0.98));
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin: 0 -14px -14px;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 4;
}

.cust-insufficient-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #fca5a5;
}

.cust-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cust-reset-btn {
  padding: 10px 12px;
  font-size: 12px;
  flex-shrink: 0;
}

.cust-apply-btn {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cust-apply-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

/* Podest-Reiter */
.cust-pedestal-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cust-ped-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.cust-ped-card.is-previewed {
  border-color: var(--ped-accent, #c084fc);
  background: rgba(24, 32, 58, 0.86);
}

.cust-ped-card.is-equipped {
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.15);
}

.cust-ped-card.is-locked {
  opacity: 0.8;
}

.cust-ped-thumb {
  position: relative;
  width: 92px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(8, 12, 24, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.cust-ped-thumb .hub-pedestal-svg {
  width: 86px;
  height: 36px;
}

.cust-ped-card.is-locked .cust-ped-thumb .hub-pedestal-svg {
  filter: grayscale(0.75) brightness(0.65);
}

.cust-ped-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 16, 0.42);
}

.cust-ped-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cust-ped-name {
  font-size: 13px;
  font-weight: 900;
  color: #f8fafc;
}

.cust-ped-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

.cust-ped-cta {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.cust-ped-action-btn {
  padding: 6px 11px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cust-ped-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.55);
  border: 1px solid rgba(74, 222, 128, 0.55);
}

.cust-ped-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.cust-ped-need-em {
  font-size: 10.5px;
  font-weight: 800;
  color: #fca5a5;
}

@media (max-width: 480px) {
  .hub-customize-fab {
    top: -38px;
    right: 4px;
    left: auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .cust-preview-stage {
    height: 158px;
  }
  .cust-preview-hero .steve-svg {
    width: 120px;
    height: 120px;
  }
  .cust-options-row.is-swatch-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.perf-mode .hub-customize-fab,
body.perf-mode .cust-tab-btn.is-active,
body.perf-mode .cust-face-chip.is-selected,
body.perf-mode .cust-swatch-btn.is-selected,
body.perf-mode .cust-ped-card.is-equipped {
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ==================== PROMO- / GESCHENK-CODE-KARTE ==================== */
.set-promo-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(74, 222, 128, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.78);
  border-color: rgba(74, 222, 128, 0.28);
}

.set-promo-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.set-promo-input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  font-size: 13px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(8, 12, 24, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}

.set-promo-input::placeholder {
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.set-promo-input:focus {
  outline: none;
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.16);
}

.set-promo-btn {
  flex-shrink: 0;
  padding: 9px 14px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  touch-action: manipulation;
}

.set-promo-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.set-promo-status {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.set-promo-status:empty {
  display: none;
}

.set-promo-status.is-info {
  color: #93c5fd;
}

.set-promo-status.is-error {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.34);
  border: 1px solid rgba(248, 113, 113, 0.42);
}

.set-promo-status.is-success {
  padding: 9px 10px;
  border-radius: 10px;
  color: #dcfce7;
  background: rgba(20, 83, 45, 0.34);
  border: 1px solid rgba(74, 222, 128, 0.45);
}

.set-promo-ok-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #86efac;
  font-weight: 900;
}

.set-promo-rewards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.set-promo-reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #f8fafc;
}

.set-promo-reward-pill.is-diamond {
  border-color: rgba(56, 189, 248, 0.55);
  color: #bae6fd;
}

.set-promo-reward-pill.is-emerald {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.set-promo-reward-pill.is-blackstar {
  border-color: rgba(203, 213, 225, 0.55);
  color: #f1f5f9;
}

.set-promo-reward-pill.is-pack.is-epic {
  border-color: rgba(192, 132, 252, 0.55);
  color: #e9d5ff;
}

.set-promo-reward-pill.is-pack.is-leg {
  border-color: rgba(251, 191, 36, 0.6);
  color: #fef08a;
}

.set-promo-packs-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #bbf7d0;
}

@media (max-width: 420px) {
  .set-promo-row {
    flex-direction: column;
  }
  .set-promo-btn {
    width: 100%;
  }
}

body.perf-mode .set-promo-card,
body.perf-mode .set-promo-input:focus {
  box-shadow: none !important;
}

.daily-modal-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.daily-modal-meta-row .daily-modal-timer {
  margin-top: 0;
}

.daily-modal-xp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #d9f99d;
  background: rgba(54, 83, 20, 0.55);
  border: 1px solid rgba(163, 230, 53, 0.5);
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.16);
}

body.perf-mode .daily-modal-xp-pill {
  box-shadow: none !important;
}

/* ==================== EINMALIGE UPDATE-RESET-MELDUNG ==================== */
.modal-card.modal-card-update-notice {
  width: min(460px, 94vw);
}

.upd-notice-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #e2e8f0;
}

.upd-comp-box {
  padding: 11px 12px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(74, 222, 128, 0.14), transparent 58%),
    rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(74, 222, 128, 0.36);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upd-comp-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 900;
  color: #86efac;
}

.upd-comp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.upd-comp-sub {
  font-size: 11.5px;
  line-height: 1.4;
  color: #cbd5e1;
}

.upd-notice-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.upd-notice-footer .mc-btn {
  flex: 1 1 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
}

/* ==================== AAA SPIELERPROFIL & FREUNDES-SYSTEM ==================== */
.hub-player-meta.is-profile-trigger {
  flex: 0 1 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 220px;
  min-height: 0;
  cursor: pointer;
  padding: 3px 6px 3px 9px;
  margin: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.48));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  touch-action: manipulation;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.12s ease;
}

.hub-player-meta.is-profile-trigger:hover {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(51, 65, 85, 0.62));
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hub-player-meta.is-profile-trigger:active {
  transform: scale(0.97);
}

.hub-profile-texts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.1;
}

.hub-profile-texts .hub-brand {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-profile-texts .hub-player-sub {
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-rank-lbl {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hub-prof-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.hub-player-meta.is-profile-trigger:hover .hub-prof-pill {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(125, 211, 252, 0.55);
}

.is-clickable-profile {
  cursor: pointer;
  touch-action: manipulation;
}

.is-clickable-profile:hover {
  filter: brightness(1.07);
}

#profile-modal-root {
  position: relative;
  z-index: 1200;
}

.prof-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(3, 7, 18, 0.78);
  -webkit-tap-highlight-color: transparent;
}

.prof-modal {
  width: min(540px, 96vw);
  height: min(88dvh, 740px);
  max-height: min(90dvh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background-color: #0b1020;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.16), transparent 52%),
    linear-gradient(170deg, rgba(13, 19, 36, 0.97), rgba(9, 12, 24, 0.99));
  border: 1px solid rgba(192, 132, 252, 0.36);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.76);
  -webkit-tap-highlight-color: transparent;
}

.prof-modal button {
  -webkit-tap-highlight-color: transparent;
}

.prof-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  flex-shrink: 0;
}

.prof-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 900;
  color: #f8fafc;
}

.prof-back-self-btn {
  padding: 4px 8px;
}

.prof-loading-body {
  padding: 36px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #94a3b8;
}

.prof-hero-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  background:
    radial-gradient(circle at 12% 45%, color-mix(in srgb, var(--tier-col, #a855f7) 22%, transparent), transparent 60%),
    rgba(15, 23, 42, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  flex-shrink: 0;
}

.prof-avatar-frame {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.96));
  border: 2px solid var(--tier-col, #a855f7);
  box-shadow: 0 0 18px color-mix(in srgb, var(--tier-col, #a855f7) 35%, transparent);
}

.prof-avatar-frame .steve-svg {
  width: 72px;
  height: 72px;
}

.prof-online-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #0b1120;
  background: #64748b;
}

.prof-online-dot.is-online {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.75);
}

.prof-identity {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prof-name-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.prof-player-name {
  font-size: 17px;
  font-weight: 900;
  color: #f8fafc;
}

.prof-player-tag {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
}

.prof-tier-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.prof-lvl-badge {
  font-size: 11px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid;
}

.prof-tier-lbl {
  font-size: 11.5px;
  font-weight: 900;
}

.prof-xp-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
  margin-top: 2px;
}

.prof-xp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #a3e635);
}

.prof-xp-meta {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
}

.prof-social-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.prof-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(8, 12, 24, 0.65);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  flex-shrink: 0;
}

.prof-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 900;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
  touch-action: manipulation;
}

.prof-tab-btn.is-active {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(126, 34, 206, 0.42), rgba(37, 99, 235, 0.34));
  border-color: rgba(192, 132, 252, 0.58);
}

.prof-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  color: #090d16;
  background: #fbbf24;
}

.prof-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.prof-scroll-body::-webkit-scrollbar,
.cust-tab-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cust-tab-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}

.prof-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prof-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prof-sec-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 900;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prof-sec-count {
  font-size: 11.5px;
  font-weight: 900;
  color: #94a3b8;
}

.prof-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid;
}

.prof-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  perspective: 700px;
}

.prof-stat-card {
  position: relative;
  padding: 9px 7px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.prof-stat-card.is-toggle-card {
  cursor: pointer;
  touch-action: manipulation;
  border-color: rgba(74, 222, 128, 0.42);
  background: linear-gradient(160deg, rgba(20, 83, 45, 0.34), rgba(15, 23, 42, 0.86));
  transition: border-color 0.14s ease, transform 0.12s ease;
}

.prof-stat-card.is-toggle-card.is-offline-mode {
  border-color: rgba(56, 189, 248, 0.48);
  background: linear-gradient(160deg, rgba(12, 74, 110, 0.36), rgba(15, 23, 42, 0.86));
}

.prof-stat-card.is-toggle-card:active {
  transform: scale(0.96);
}

.prof-stat-switch-badge {
  position: absolute;
  top: 5px;
  right: 6px;
  opacity: 0.75;
  display: inline-flex;
}

.prof-stat-subhint {
  font-size: 9px;
  font-weight: 800;
  color: #86efac;
  opacity: 0.85;
}

.prof-stat-card.is-toggle-card.is-offline-mode .prof-stat-subhint {
  color: #7dd3fc;
}

.prof-stat-card.is-matches-toggle {
  border-color: rgba(192, 132, 252, 0.45);
  background: linear-gradient(160deg, rgba(88, 28, 135, 0.34), rgba(15, 23, 42, 0.86));
}

.prof-stat-card.is-matches-toggle .prof-stat-subhint {
  color: #d8b4fe;
}

.prof-stat-card.is-matches-toggle.is-won-mode {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(160deg, rgba(120, 53, 15, 0.36), rgba(15, 23, 42, 0.86));
}

.prof-stat-card.is-matches-toggle.is-won-mode .prof-stat-subhint {
  color: #fde68a;
}

.prof-stat-card.is-streak-toggle {
  border-color: rgba(251, 146, 60, 0.48);
  background: linear-gradient(160deg, rgba(154, 52, 18, 0.34), rgba(15, 23, 42, 0.86));
}

.prof-stat-card.is-streak-toggle .prof-stat-subhint {
  color: #fdba74;
}

.prof-stat-card.is-streak-toggle.is-pve-mode {
  border-color: rgba(250, 204, 21, 0.5);
  background: linear-gradient(160deg, rgba(113, 63, 18, 0.36), rgba(15, 23, 42, 0.86));
}

.prof-stat-card.is-streak-toggle.is-pve-mode .prof-stat-subhint {
  color: #fef08a;
}

.prof-stat-card.is-toggle-card.is-flipping {
  animation: profStatCardFlip 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.prof-stat-card.is-toggle-card.is-flipping .prof-stat-switch-badge {
  animation: profSwitchIconSpin 0.34s ease both;
}

@keyframes profStatCardFlip {
  0% {
    transform: rotateY(-92deg) scale(0.94);
    opacity: 0.45;
  }
  65% {
    transform: rotateY(10deg) scale(1.03);
    opacity: 1;
  }
  100% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes profSwitchIconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(180deg); }
}

body.perf-mode .prof-stat-card.is-toggle-card.is-flipping,
body.reduced-effects .prof-stat-card.is-toggle-card.is-flipping {
  animation: none !important;
}

.prof-stat-val {
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
}

.prof-stat-val small {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
}

.prof-stat-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
}

/* Besiegte Bosse Galerie mit Mob-Bild & kleiner Stern-Anzahl */
.prof-boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.prof-boss-card {
  padding: 9px 7px 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.12s ease, border-color 0.14s ease;
}

.prof-boss-card:active {
  transform: scale(0.96);
}

.prof-boss-card.is-selected {
  border-color: var(--boss-accent, #c084fc) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--boss-accent, #c084fc) 35%, transparent);
}

.prof-boss-detail-box {
  padding: 9px 11px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--boss-accent, #c084fc) 18%, transparent), transparent 60%),
    rgba(15, 23, 42, 0.9);
  border: 1px solid color-mix(in srgb, var(--boss-accent, #c084fc) 55%, transparent);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.prof-boss-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.prof-boss-detail-name {
  font-size: 12.5px;
  font-weight: 900;
  color: #f8fafc;
}

.prof-boss-detail-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.prof-boss-detail-loc {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
}

.prof-boss-detail-desc {
  font-size: 11.5px;
  line-height: 1.42;
  color: #cbd5e1;
}

.prof-boss-card.is-defeated {
  border-color: color-mix(in srgb, var(--boss-accent, #c084fc) 62%, transparent);
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--boss-accent, #c084fc) 20%, transparent), transparent 68%),
    rgba(15, 23, 42, 0.88);
  box-shadow: 0 0 14px color-mix(in srgb, var(--boss-accent, #c084fc) 18%, transparent);
}

.prof-boss-card.is-locked {
  opacity: 0.72;
}

.prof-boss-art-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-boss-mob-art {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prof-boss-mob-art svg {
  width: 52px;
  height: 52px;
}

.prof-boss-card.is-locked .prof-boss-art-wrap svg {
  filter: brightness(0.16) contrast(1.1) grayscale(1);
}

.prof-boss-kills {
  position: absolute;
  top: -3px;
  right: -6px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--boss-accent, #c084fc);
}

.prof-boss-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
}

.prof-boss-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.prof-boss-star {
  display: inline-flex;
  opacity: 0.24;
  filter: grayscale(1);
}

.prof-boss-star.is-earned {
  opacity: 1;
  filter: none;
}

.prof-boss-name {
  font-size: 11px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.prof-boss-loc {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
}

.prof-boss-card.is-defeated .prof-boss-loc {
  color: #86efac;
}

/* Freunde-Tab */
.prof-search-row {
  display: flex;
  gap: 7px;
}

.prof-search-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 12.5px;
  border-radius: 10px;
  background: rgba(8, 12, 24, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}

.prof-friend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prof-friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.prof-friend-row.is-incoming {
  border-color: rgba(251, 191, 36, 0.45);
}

.prof-friend-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  touch-action: manipulation;
}

.prof-friend-meta {
  min-width: 0;
}

.prof-friend-name {
  font-size: 12.5px;
  font-weight: 900;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prof-friend-sub {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.prof-friend-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.prof-rel-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.prof-rel-pill.is-friend {
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.55);
  border: 1px solid rgba(74, 222, 128, 0.5);
}

.prof-rel-pill.is-pending {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.prof-empty-box {
  padding: 20px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.prof-empty-box.is-compact {
  padding: 14px 12px;
}

.prof-mini-hint {
  font-size: 11.5px;
  font-weight: 800;
  color: #94a3b8;
  text-align: center;
  padding: 4px 0;
}

@media (max-width: 480px) {
  .prof-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prof-boss-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prof-hero-banner {
    gap: 10px;
    padding: 11px 12px;
  }
  .prof-avatar-frame {
    width: 66px;
    height: 66px;
  }
  .prof-avatar-frame .steve-svg {
    width: 60px;
    height: 60px;
  }
}

body.perf-mode .prof-modal,
body.perf-mode .prof-avatar-frame,
body.perf-mode .prof-boss-card.is-defeated,
body.perf-mode .hub-player-meta.is-profile-trigger:hover {
  box-shadow: none !important;
}

/* ==================== AUTO-APK-UPDATE-MODAL ==================== */
.app-upd-ver-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.app-upd-ver-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 900;
}

.app-upd-ver-pill.is-old {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.app-upd-ver-pill.is-new {
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.55);
  border: 1px solid rgba(74, 222, 128, 0.6);
}

.app-upd-arrow {
  color: #4ade80;
  font-weight: 900;
  font-size: 15px;
}

.app-upd-changelog {
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.app-upd-cl-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 900;
  color: #7dd3fc;
}

.app-upd-cl-body {
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
}


/* ==================== MATCHES & ARENEN: MOBILE-FIRST 2x2 MODUS-GRID ==================== */
.play-hub-mobile-grid-wrap {
  padding: 10px 10px 14px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.play-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.play-mode-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 11px 11px;
  border-radius: 17px;
  background: linear-gradient(165deg, rgba(22, 33, 56, 0.96), rgba(10, 16, 30, 0.98));
  border: 1.5px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  min-height: 248px;
}

.play-mode-tile:active {
  transform: scale(0.98);
}

.play-mode-tile.is-campaign {
  border-color: rgba(52, 211, 153, 0.54);
  background:
    radial-gradient(circle at 86% 12%, rgba(16, 185, 129, 0.28) 0%, transparent 52%),
    radial-gradient(circle at 12% 92%, rgba(5, 150, 105, 0.16) 0%, transparent 48%),
    linear-gradient(165deg, rgba(13, 44, 38, 0.96), rgba(9, 17, 28, 0.99));
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(167, 243, 208, 0.16);
}

.play-mode-tile.is-online {
  border-color: rgba(56, 189, 248, 0.54);
  background:
    radial-gradient(circle at 86% 12%, rgba(14, 165, 233, 0.28) 0%, transparent 52%),
    radial-gradient(circle at 12% 92%, rgba(37, 99, 235, 0.18) 0%, transparent 48%),
    linear-gradient(165deg, rgba(12, 38, 66, 0.96), rgba(9, 16, 30, 0.99));
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.18), inset 0 1px 0 rgba(186, 230, 253, 0.16);
}

.play-mode-tile.is-pve {
  border-color: rgba(251, 191, 36, 0.48);
  background:
    radial-gradient(circle at 86% 12%, rgba(245, 158, 11, 0.26) 0%, transparent 52%),
    radial-gradient(circle at 12% 92%, rgba(217, 119, 6, 0.16) 0%, transparent 48%),
    linear-gradient(165deg, rgba(46, 31, 16, 0.95), rgba(12, 16, 28, 0.99));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(254, 240, 138, 0.15);
}

.play-mode-tile.is-citadel {
  border-color: rgba(192, 132, 252, 0.52);
  background:
    radial-gradient(circle at 86% 12%, rgba(168, 85, 247, 0.28) 0%, transparent 52%),
    radial-gradient(circle at 12% 92%, rgba(126, 34, 206, 0.18) 0%, transparent 48%),
    linear-gradient(165deg, rgba(40, 20, 66, 0.96), rgba(11, 14, 28, 0.99));
  box-shadow: 0 10px 24px rgba(168, 85, 247, 0.18), inset 0 1px 0 rgba(233, 213, 255, 0.16);
}

.play-mode-tile.is-citadel-locked,
.play-mode-tile.is-offline {
  opacity: 0.88;
  border-color: rgba(148, 163, 184, 0.24);
}

.pmt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pmt-top-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: wrap;
}

.pmt-pill {
  font-size: 9.5px !important;
  padding: 2.5px 7px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pmt-pve-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.52);
  border-radius: 999px;
}

.pmt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pmt-icon.is-campaign { color: #fbbf24; background: rgba(16, 185, 129, 0.18); border-color: rgba(52, 211, 153, 0.32); }
.pmt-icon.is-online { color: #38bdf8; background: rgba(14, 165, 233, 0.18); border-color: rgba(56, 189, 248, 0.32); }
.pmt-icon.is-pve { color: #fbbf24; background: rgba(245, 158, 11, 0.18); border-color: rgba(251, 191, 36, 0.34); }
.pmt-icon.is-citadel { color: #d8b4fe; background: rgba(168, 85, 247, 0.18); border-color: rgba(192, 132, 252, 0.32); }

.pmt-title {
  font-size: 15.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.18;
  letter-spacing: -0.2px;
}

.pmt-sub {
  font-size: 11.2px;
  color: #cbd5e1;
  line-height: 1.38;
}

.pmt-banner-slot {
  margin-top: auto;
  padding-top: 2px;
}

.pmt-meta-box {
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 6px 8px;
}

.pmt-meta-box.is-campaign-box {
  border-color: rgba(52, 211, 153, 0.28);
}

.pmt-meta-box.is-online-box {
  border-color: rgba(56, 189, 248, 0.28);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pmt-online-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.pmt-trophy-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 900;
  color: #fde68a;
  flex-shrink: 0;
}

.pmt-online-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #93c5fd;
}

.pmt-cta {
  width: 100%;
  margin-top: 2px;
  padding: 10px 8px !important;
  font-size: 12px !important;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.perf-mode .play-mode-tile,
body.reduced-effects .play-mode-tile {
  box-shadow: none !important;
  transition: none !important;
}

.pmt-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 10.5px;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.pmt-progress-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmt-progress-row b {
  color: #4ade80;
  flex-shrink: 0;
}

.pmt-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.pmt-chip {
  font-size: 10px;
  font-weight: 800;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 7px;
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pmt-rew-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: #e0f2fe;
}

@media (max-width: 390px) {
  .play-modes-grid {
    gap: 8px;
  }
  .play-mode-tile {
    padding: 11px 9px 10px;
    min-height: 236px;
  }
  .pmt-title {
    font-size: 14px;
  }
  .pmt-sub {
    font-size: 11px;
  }
  .pmt-cta {
    font-size: 11px !important;
    padding: 8px 6px !important;
  }
}


/* ==================== EINSTEIGER-TUTORIAL MODAL & TRAININGS-BANNER ==================== */
.tut-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--tut-accent, #38bdf8);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}

.tut-hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
}

.tut-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  margin-bottom: 8px;
}

.tut-hero-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  color: #f8fafc;
}

.tut-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.tut-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: width 0.18s ease, background 0.18s ease;
}

.tut-dot.is-active {
  width: 24px;
  background: #4ade80;
}

.tut-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tut-bullet-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.tut-bullet-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.tut-bullet-title {
  font-size: 13px;
  font-weight: 900;
  color: #f8fafc;
  margin-bottom: 2px;
}

.tut-bullet-desc {
  font-size: 11.8px;
  color: #cbd5e1;
  line-height: 1.38;
}

.tut-footer-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.tut-battle-tip-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  margin: 2px 6px 4px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.88), rgba(30, 64, 175, 0.88));
  border: 1px solid rgba(125, 211, 252, 0.55);
  color: #f0f9ff;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.22);
}


/* ==================== ONLINE TROPHÄEN-LIGEN, TROPHY ROAD & MATCH-DELTA ==================== */
.oa-league-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  margin: 0 10px 6px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(22, 33, 56, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.oa-league-strip-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.oa-league-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}

.oa-league-prog-wrap {
  flex: 1;
  min-width: 0;
}

.oa-league-prog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  color: #f8fafc;
  margin-bottom: 3px;
}

.oa-league-prog-head small {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
}

.oa-league-prog-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.oa-league-prog-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.oa-road-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.oa-lb-league-dot {
  font-weight: 800;
}

.oa-road-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oa-road-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.oa-road-row.is-claimable {
  border-color: rgba(251, 191, 36, 0.7);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.35), rgba(15, 23, 42, 0.9));
}

.oa-road-row.is-claimed {
  opacity: 0.65;
}

.oa-road-th {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 9px;
  border: 1px solid currentColor;
  background: rgba(2, 6, 23, 0.55);
  font-size: 12px;
  font-weight: 900;
  min-width: 68px;
  justify-content: center;
  flex-shrink: 0;
}

.oa-road-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.oa-road-rew {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  padding: 2px 6px;
}

.oa-road-done {
  color: #4ade80;
  display: inline-flex;
  align-items: center;
}

.oa-road-lock {
  color: #64748b;
  display: inline-flex;
  align-items: center;
}

.oa-trophy-result-box {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85));
  border: 1.5px solid var(--lg-color, #38bdf8);
}

.oa-trophy-result-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.oa-trophy-delta {
  font-size: 18px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.oa-trophy-total {
  font-size: 13.5px;
  color: #e2e8f0;
}

.oa-league-promo-msg {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #fde047;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}


/* ==================== iOS / iPHONE PWA SAFE-AREA, TOUCH & STANDALONE POLISH ==================== */
html,
body {
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
code,
.cloud-rec-code {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

#square-shell,
.view-root,
.subview-body,
.hub-shell {
  overscroll-behavior: none;
}

button,
.mc-btn,
.aaa-nav-btn,
.play-mode-tile,
.camp-node-btn,
.camp-portal-btn,
.camp-daily-btn,
.mc-card,
.tile-cell,
.hub-icon-btn,
.hub-level-badge,
.oa-tab-btn,
[role="button"] {
  touch-action: manipulation;
}

/* iPhone Notch / Dynamic Island & Home Indicator (adds 0px on devices without safe-area insets) */
@supports (padding-top: env(safe-area-inset-top)) {
  .hub-topbar {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .subview-header {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .battle-topbar {
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
  }

  .cit-hud-bar {
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
  }

  .aaa-bottom-nav {
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(6px + env(safe-area-inset-left, 0px));
    padding-right: calc(6px + env(safe-area-inset-right, 0px));
  }

  .battle-hand-bar {
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .toast-msg {
    top: auto;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .modal-backdrop {
    padding-top: max(12px, env(safe-area-inset-top, 12px));
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
    padding-left: max(10px, env(safe-area-inset-left, 10px));
    padding-right: max(10px, env(safe-area-inset-right, 10px));
  }
}

/* iPhone 390px-420px: kein Überlauf bei Deck-Leiste & 2x2-Modus-Buttons */
@media (max-width: 420px) {
  .hub-deck-bar {
    padding: 8px 9px !important;
    gap: 5px !important;
  }
  .hub-deck-bar-left {
    font-size: 11px !important;
    gap: 4px !important;
    min-width: 0;
  }
  .hub-deck-bar-right {
    font-size: 10.2px !important;
    gap: 3px !important;
    flex-shrink: 0;
  }
  .hub-active-deck-pill {
    font-size: 9.5px !important;
    padding: 1px 5px !important;
  }
  .pmt-cta {
    font-size: 10.8px !important;
    padding: 8px 5px !important;
    white-space: normal !important;
    text-align: center;
  }
}

/* ==================== SETTINGS COMPACT HEADER LANG & STATUS PILLS ==================== */
.set-header-lang {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
  gap: 2px;
}

.set-header-lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.14s ease, color 0.14s ease;
}

.set-header-lang-btn.is-active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(37, 99, 235, 0.45);
}

.set-done-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #86efac;
  background: rgba(22, 163, 74, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.38);
  vertical-align: middle;
}

.modal-card.is-modal-in-place {
  animation: none !important;
}

/* Ergänzungen Performance- & Energiesparmodus für neue Features (Podeste, Toast, Trophäen-Pfad, 2x2-Kacheln) */
body.perf-mode .toast-msg,
body.reduced-effects .toast-msg {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

body.perf-mode .hub-pedestal-arcane-particles,
body.perf-mode .hub-pedestal-runes,
body.perf-mode .hub-pedestal-aura {
  animation: none !important;
}

body.perf-mode .hub-pedestal-arcane-particles {
  display: none !important;
}

body.perf-mode .oa-road-row.is-claimable,
body.perf-mode .pmt-card,
body.perf-mode .hub-player-meta.is-profile-trigger {
  box-shadow: none !important;
}

body.reduced-effects .oa-road-badge,
body.perf-mode .oa-road-badge {
  animation: none !important;
}

/* ============================================================================
   WÖCHENTLICHE VERFLUCHTE ZITADELLE — BANNER, PLAY-STRIP & 3 WELTEN-THEMES
   ============================================================================ */

/* 1. Großes Wochen-Banner im Vorbereitungs-Modal */
.cit-weekly-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.cit-weekly-banner.is-overworld {
  background:
    radial-gradient(circle at 86% 24%, rgba(16, 185, 129, 0.32), transparent 56%),
    radial-gradient(circle at 12% 90%, rgba(56, 189, 248, 0.16), transparent 52%),
    linear-gradient(135deg, #071e19 0%, #0d2a22 52%, #0a1624 100%);
  border-color: rgba(52, 211, 153, 0.48);
}

.cit-weekly-banner.is-infernal {
  background:
    radial-gradient(circle at 86% 24%, rgba(249, 115, 22, 0.36), transparent 56%),
    radial-gradient(circle at 12% 90%, rgba(239, 68, 68, 0.2), transparent 52%),
    linear-gradient(135deg, #240c0a 0%, #32120d 52%, #170a10 100%);
  border-color: rgba(251, 146, 60, 0.52);
}

.cit-weekly-banner.is-dragon {
  background:
    radial-gradient(circle at 86% 24%, rgba(192, 132, 252, 0.36), transparent 56%),
    radial-gradient(circle at 12% 90%, rgba(232, 121, 249, 0.18), transparent 52%),
    linear-gradient(135deg, #160a26 0%, #24103c 52%, #0c091a 100%);
  border-color: rgba(192, 132, 252, 0.52);
}

.cit-wb-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.cit-wb-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cit-wb-tag,
.cit-wb-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cit-wb-tag {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.cit-weekly-banner.is-overworld .cit-wb-tag {
  border-color: rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
}

.cit-weekly-banner.is-infernal .cit-wb-tag {
  border-color: rgba(251, 146, 60, 0.55);
  color: #fed7aa;
}

.cit-weekly-banner.is-dragon .cit-wb-tag {
  border-color: rgba(192, 132, 252, 0.55);
  color: #e9d5ff;
}

.cit-wb-timer {
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  text-transform: none;
  letter-spacing: 0;
}

.cit-wb-world-title {
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.2;
  color: #f8fafc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.cit-wb-world-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.84);
  line-height: 1.25;
}

.cit-wb-bonus-chip {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.28);
  max-width: 100%;
}

.cit-wb-bonus-chip.is-bonus-diamonds {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(90deg, rgba(14, 116, 144, 0.34), rgba(2, 6, 23, 0.65));
}

.cit-wb-bonus-chip.is-bonus-emeralds {
  border-color: rgba(52, 211, 153, 0.52);
  background: linear-gradient(90deg, rgba(6, 95, 70, 0.38), rgba(2, 6, 23, 0.65));
}

.cit-wb-bonus-chip.is-bonus-xp {
  border-color: rgba(250, 204, 21, 0.52);
  background: linear-gradient(90deg, rgba(133, 77, 14, 0.38), rgba(2, 6, 23, 0.65));
}

.cit-wb-bonus-chip.is-bonus-blackstar {
  border-color: rgba(216, 180, 254, 0.58);
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.45), rgba(2, 6, 23, 0.72));
}

.cit-wb-bonus-ico {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cit-wb-bonus-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cit-wb-bonus-text b {
  font-size: 12px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.cit-wb-bonus-text span {
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
  line-height: 1.25;
}

.cit-wb-art {
  position: relative;
  flex: 0 0 92px;
  width: 92px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.cit-wb-mob {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.58);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cit-wb-mob svg,
.cit-wb-mob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cit-wb-mob.is-m0 {
  top: 2px;
  right: 2px;
  transform: rotate(5deg);
  z-index: 2;
}

.cit-wb-mob.is-m1 {
  bottom: 2px;
  left: 0;
  width: 54px;
  height: 54px;
  transform: rotate(-7deg);
  z-index: 1;
  opacity: 0.92;
}

.cit-wb-res-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
}

.cit-wb-res-badge.is-bonus-diamonds { border-color: #38bdf8; }
.cit-wb-res-badge.is-bonus-emeralds { border-color: #34d399; }
.cit-wb-res-badge.is-bonus-xp { border-color: #facc15; }
.cit-wb-res-badge.is-bonus-blackstar { border-color: #d8b4fe; }

@media (max-width: 440px) {
  .cit-weekly-banner {
    padding: 10px 10px;
    gap: 8px;
  }
  .cit-wb-art {
    flex: 0 0 74px;
    width: 74px;
    min-height: 78px;
  }
  .cit-wb-mob {
    width: 50px;
    height: 50px;
  }
  .cit-wb-mob.is-m1 {
    width: 44px;
    height: 44px;
  }
  .cit-wb-world-title {
    font-size: 14px;
  }
}

/* 2. Kompakter Wochen-Streifen auf der Zitadellen-Kachel im Spiel-Menü */
.pmt-cit-weekly-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  margin: 4px 0 2px;
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.pmt-cit-weekly-strip.is-overworld {
  border-color: rgba(52, 211, 153, 0.44);
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.45), rgba(2, 6, 23, 0.62));
}

.pmt-cit-weekly-strip.is-infernal {
  border-color: rgba(251, 146, 60, 0.46);
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.48), rgba(2, 6, 23, 0.62));
}

.pmt-cit-weekly-strip.is-dragon {
  border-color: rgba(192, 132, 252, 0.48);
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.48), rgba(2, 6, 23, 0.62));
}

.pmt-cit-wk-mobs {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.pmt-cit-wk-mob {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pmt-cit-wk-mob + .pmt-cit-wk-mob {
  margin-left: -6px;
}

.pmt-cit-wk-mob svg,
.pmt-cit-wk-mob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pmt-cit-wk-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.pmt-cit-wk-info b {
  font-size: 10.5px;
  font-weight: 900;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pmt-cit-wk-info small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. Wochen-HUD-Pill in der Zitadellen-Topbar & Bonus-Zeile im Beute-Modal */
.cit-weekly-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: #f8fafc;
  white-space: nowrap;
}

.cit-weekly-hud-pill.is-overworld {
  border-color: rgba(52, 211, 153, 0.55);
  color: #a7f3d0;
}

.cit-weekly-hud-pill.is-infernal {
  border-color: rgba(251, 146, 60, 0.58);
  color: #fed7aa;
}

.cit-weekly-hud-pill.is-dragon {
  border-color: rgba(192, 132, 252, 0.58);
  color: #e9d5ff;
}

@media (max-width: 440px) {
  .cit-weekly-hud-pill span {
    display: none;
  }
  .cit-weekly-hud-pill {
    padding: 4px 6px;
  }
}

.cit-sum-weekly-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  margin: 0 0 10px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(168, 85, 247, 0.18));
  border: 1px solid rgba(192, 132, 252, 0.45);
  font-size: 12px;
  color: #f8fafc;
}

.cit-sum-weekly-vals {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  color: #fde68a;
}

/* 4. Drei visuell eigenständige Dungeon-Themes für die Verfluchte Zitadelle */
/* 4a. OVERWORLD — Smaragd-Festung (moosiger Festungsstein, warmes Fackellicht, Smaragd-Akzente) */
.citadel-screen.cit-theme-overworld {
  --cit-bg-img: url('assets/bg/citadel-overworld.jpg');
  background:
    radial-gradient(circle at 50% 45%, rgba(6, 19, 16, 0.62) 0%, rgba(6, 19, 16, 0.42) 55%, rgba(4, 11, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(6, 19, 16, 0.66) 0%, rgba(11, 28, 25, 0.46) 50%, rgba(5, 12, 12, 0.74) 100%),
    var(--cit-bg-img) center / cover no-repeat,
    #050c0c;
}

.citadel-screen.cit-theme-overworld .cit-floor-pill {
  border-color: rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
}

.citadel-screen.cit-theme-overworld .cit-tile.is-wall {
  background: linear-gradient(180deg, #2b443c 0%, #1b2f2a 78%, #0e1a18 100%);
  border-top-color: #4d7c6d;
  border-left-color: #36594f;
}

.citadel-screen.cit-theme-overworld .cit-tile.is-wall.is-explored {
  background: linear-gradient(180deg, #223630 0%, #162622 80%, #0c1513 100%);
  border-top-color: #3b5f54;
}

.citadel-screen.cit-theme-overworld .cit-tile.is-floor {
  background: #091311;
  border-color: rgba(52, 211, 153, 0.1);
}

.citadel-screen.cit-theme-overworld .cit-tile.is-floor.is-explored {
  background: #060d0c;
  border-color: rgba(52, 211, 153, 0.05);
}

/* 4b. INFERNALWORLD — Basalt-Zitadelle (dunkler Basalt, glühende Lava-Fugen, feurige Fackeln) */
.citadel-screen.cit-theme-infernal {
  --cit-bg-img: url('assets/bg/citadel-infernal.jpg');
  background:
    radial-gradient(circle at 50% 45%, rgba(22, 7, 7, 0.6) 0%, rgba(22, 7, 7, 0.4) 55%, rgba(12, 4, 6, 0.72) 100%),
    linear-gradient(180deg, rgba(22, 7, 7, 0.64) 0%, rgba(36, 12, 11, 0.44) 50%, rgba(15, 6, 8, 0.74) 100%),
    var(--cit-bg-img) center / cover no-repeat,
    #0f0608;
}

.citadel-screen.cit-theme-infernal .cit-floor-pill {
  border-color: rgba(251, 146, 60, 0.55);
  color: #fed7aa;
}

.citadel-screen.cit-theme-infernal .cit-tile.is-wall {
  background: linear-gradient(180deg, #432320 0%, #2a1414 78%, #16090a 100%);
  border-top-color: #9a3412;
  border-left-color: #6b241c;
  box-shadow:
    inset 0 -4px 0 #0c0405,
    inset 0 0 6px rgba(249, 115, 22, 0.16),
    0 3px 6px rgba(0, 0, 0, 0.72);
}

.citadel-screen.cit-theme-infernal .cit-tile.is-wall.is-explored {
  background: linear-gradient(180deg, #331a18 0%, #211010 80%, #120708 100%);
  border-top-color: #7c2d12;
}

.citadel-screen.cit-theme-infernal .cit-wall-torch {
  background: radial-gradient(circle, #fef08a 0%, #ef4444 58%, transparent 80%);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
}

.citadel-screen.cit-theme-infernal .cit-tile.is-floor {
  background: #140a0a;
  border-color: rgba(249, 115, 22, 0.14);
}

.citadel-screen.cit-theme-infernal .cit-tile.is-floor.is-explored {
  background: #0e0708;
  border-color: rgba(249, 115, 22, 0.06);
}

/* 4c. DRAGONWORLD — Void-Bastion (Obsidian-Amethyst, violette Kristall-Fugen, End-Fackeln) */
.citadel-screen.cit-theme-dragon {
  --cit-bg-img: url('assets/bg/citadel-dragon.jpg');
  background:
    radial-gradient(circle at 50% 45%, rgba(10, 5, 22, 0.62) 0%, rgba(10, 5, 22, 0.42) 55%, rgba(6, 3, 14, 0.72) 100%),
    linear-gradient(180deg, rgba(13, 6, 24, 0.66) 0%, rgba(18, 9, 34, 0.46) 50%, rgba(8, 4, 18, 0.74) 100%),
    var(--cit-bg-img) center / cover no-repeat,
    #080412;
}

@media (orientation: portrait), (max-width: 768px) {
  .citadel-screen.cit-theme-overworld {
    --cit-bg-img: url('assets/bg/citadel-overworld-mobile.jpg');
  }
  .citadel-screen.cit-theme-infernal {
    --cit-bg-img: url('assets/bg/citadel-infernal-mobile.jpg');
  }
  .citadel-screen.cit-theme-dragon {
    --cit-bg-img: url('assets/bg/citadel-dragon-mobile.jpg');
  }
}

.citadel-screen.cit-theme-dragon .cit-floor-pill {
  border-color: rgba(192, 132, 252, 0.58);
  color: #e9d5ff;
}

.citadel-screen.cit-theme-dragon .cit-tile.is-wall {
  background: linear-gradient(180deg, #3b2656 0%, #241538 78%, #120a1f 100%);
  border-top-color: #9333ea;
  border-left-color: #6b21a8;
  box-shadow:
    inset 0 -4px 0 #090412,
    inset 0 0 6px rgba(192, 132, 252, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.72);
}

.citadel-screen.cit-theme-dragon .cit-tile.is-wall.is-explored {
  background: linear-gradient(180deg, #2c1d42 0%, #1b102b 80%, #0e0818 100%);
  border-top-color: #7e22ce;
}

.citadel-screen.cit-theme-dragon .cit-wall-torch {
  background: radial-gradient(circle, #f5d0fe 0%, #c026d3 56%, transparent 80%);
  box-shadow: 0 0 10px rgba(192, 38, 211, 0.9);
}

.citadel-screen.cit-theme-dragon .cit-tile.is-floor {
  background: #0e0819;
  border-color: rgba(192, 132, 252, 0.14);
}

.citadel-screen.cit-theme-dragon .cit-tile.is-floor.is-explored {
  background: #090512;
  border-color: rgba(192, 132, 252, 0.06);
}

/* Performance- & Energiesparmodus für Wochen-Banner & Themes */
body.perf-mode .cit-weekly-banner,
body.reduced-effects .cit-weekly-banner,
body.perf-mode .cit-wb-mob,
body.perf-mode .cit-wb-res-badge,
body.perf-mode .endless-mission-banner,
body.reduced-effects .endless-mission-banner,
body.perf-mode .endless-mb-mob {
  box-shadow: none !important;
}

/* ============================================================================
   ENDLOS-ARENA (Endless Arena) — MISSIONS-BANNER, MODIFIKATOR & ERGEBNIS-BOX
   ============================================================================ */
.pmt-cit-weekly-strip.is-nether {
  border-color: rgba(251, 146, 60, 0.46);
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.48), rgba(2, 6, 23, 0.62));
}

.pmt-cit-weekly-strip.is-end {
  border-color: rgba(192, 132, 252, 0.48);
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.48), rgba(2, 6, 23, 0.62));
}

.endless-mission-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.42);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 9px;
}

.endless-mission-banner.is-overworld {
  background:
    radial-gradient(circle at 86% 22%, rgba(16, 185, 129, 0.32), transparent 56%),
    radial-gradient(circle at 12% 90%, rgba(56, 189, 248, 0.18), transparent 52%),
    linear-gradient(135deg, #071d1b 0%, #0d2b24 52%, #091525 100%);
  border-color: rgba(52, 211, 153, 0.5);
}

.endless-mission-banner.is-nether {
  background:
    radial-gradient(circle at 86% 22%, rgba(249, 115, 22, 0.36), transparent 56%),
    radial-gradient(circle at 12% 90%, rgba(239, 68, 68, 0.22), transparent 52%),
    linear-gradient(135deg, #240c0a 0%, #34130e 52%, #180a10 100%);
  border-color: rgba(251, 146, 60, 0.55);
}

.endless-mission-banner.is-end {
  background:
    radial-gradient(circle at 86% 22%, rgba(192, 132, 252, 0.38), transparent 56%),
    radial-gradient(circle at 12% 90%, rgba(232, 121, 249, 0.2), transparent 52%),
    linear-gradient(135deg, #160a26 0%, #261040 52%, #0c091a 100%);
  border-color: rgba(192, 132, 252, 0.56);
}

.endless-mission-banner.is-milestone {
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.2), inset 0 1px 0 rgba(254, 240, 138, 0.18);
}

.endless-mb-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.endless-mb-top-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.endless-stage-pill,
.endless-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.endless-stage-pill {
  background: rgba(14, 116, 144, 0.52);
  border: 1px solid rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  text-transform: uppercase;
}

.endless-stage-pill.is-milestone {
  background: linear-gradient(90deg, rgba(202, 138, 4, 0.55), rgba(234, 88, 12, 0.45));
  border-color: rgba(253, 224, 71, 0.78);
  color: #fef08a;
}

.endless-stat-pill {
  background: rgba(2, 6, 23, 0.64);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}

.endless-arch-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  color: #f8fafc;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.endless-arch-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.25;
}

.endless-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.endless-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

.endless-mb-art {
  position: relative;
  flex: 0 0 92px;
  width: 92px;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.endless-mb-mob {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.62);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
}

.endless-mb-mob svg,
.endless-mb-mob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.endless-mb-mob.is-m0 {
  top: 2px;
  right: 2px;
  transform: rotate(5deg);
  z-index: 2;
}

.endless-mb-mob.is-m1 {
  bottom: 2px;
  left: 0;
  width: 54px;
  height: 54px;
  transform: rotate(-7deg);
  z-index: 1;
  opacity: 0.92;
}

.endless-mb-dim-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border: 2px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
}

.endless-mb-dim-badge.is-overworld { border-color: #34d399; }
.endless-mb-dim-badge.is-nether { border-color: #fb923c; }
.endless-mb-dim-badge.is-end { border-color: #c084fc; }

.endless-mod-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  margin-bottom: 9px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.endless-mod-card.is-active-mod {
  border-color: var(--mod-col, #fbbf24);
  background: linear-gradient(90deg, color-mix(in srgb, var(--mod-col, #fbbf24) 16%, #0f172a), rgba(15, 23, 42, 0.85));
}

.endless-mod-ico {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--mod-col, #cbd5e1);
}

.endless-mod-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.endless-mod-text b {
  font-size: 12px;
  font-weight: 900;
  color: #f8fafc;
}

.endless-mod-text span {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  line-height: 1.25;
}

.endless-reward-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.endless-rew-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.endless-rew-lbl {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.endless-rew-vals {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #f8fafc;
}

.endless-rew-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.endless-mile-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fde68a;
}

.endless-setback-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fca5a5;
}

.endless-result-box {
  padding: 9px 11px;
  margin: 0 0 10px;
  border-radius: 11px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.endless-result-box.is-win {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(14, 116, 144, 0.22));
  border-color: rgba(52, 211, 153, 0.5);
}

.endless-result-box.is-loss {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.18), rgba(15, 23, 42, 0.72));
  border-color: rgba(248, 113, 113, 0.5);
}

.endless-res-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.endless-res-stage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 900;
  color: #f8fafc;
}

.endless-res-streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
  color: #fdba74;
}

.endless-res-drop {
  font-size: 11px;
  font-weight: 900;
  color: #fca5a5;
}

.endless-res-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.endless-res-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.endless-res-pill.is-best {
  background: rgba(234, 179, 8, 0.24);
  border: 1px solid rgba(250, 204, 21, 0.6);
  color: #fef08a;
}

.endless-res-pill.is-mile {
  background: rgba(168, 85, 247, 0.24);
  border: 1px solid rgba(192, 132, 252, 0.6);
  color: #e9d5ff;
}

@media (max-width: 440px) {
  .endless-mission-banner {
    padding: 10px 10px;
    gap: 8px;
  }
  .endless-mb-art {
    flex: 0 0 74px;
    width: 74px;
    min-height: 78px;
  }
  .endless-mb-mob {
    width: 50px;
    height: 50px;
  }
  .endless-mb-mob.is-m1 {
    width: 44px;
    height: 44px;
  }
  .endless-arch-title {
    font-size: 14.5px;
  }
  .endless-reward-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .endless-rew-right {
    align-items: flex-start;
    text-align: left;
  }
}

/* ============================================================================
   RELIKT-SYSTEM (AMULETTE, RELIKT-SCHMIEDE, HELDEN-SLOT & LEGENDÄRE PARTIKEL)
   ============================================================================ */
@keyframes relicSparkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.22); }
}

.relic-leg-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: relicSparkle 1.8s ease-in-out infinite;
}
.relic-leg-spark.s2 { animation-delay: 0.45s; }
.relic-leg-spark.s3 { animation-delay: 0.9s; }
.relic-leg-spark.s4 { animation-delay: 1.35s; }

body.perf-mode .relic-leg-spark,
body.reduced-effects .relic-leg-spark {
  animation: none !important;
  opacity: 0.85;
}

.gear-slot-btn.is-amulet-slot {
  border-style: solid;
}

.gear-slot-relic-tag {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fde68a;
  background: rgba(2, 6, 23, 0.72);
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.ws-relics-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 2px 0 14px;
}

.ws-relic-hero-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.82));
  border: 1.5px solid rgba(148, 163, 184, 0.28);
}

.ws-relic-hero-card.is-rarity-rare { border-color: rgba(56, 189, 248, 0.55); }
.ws-relic-hero-card.is-rarity-epic { border-color: rgba(192, 132, 252, 0.58); }
.ws-relic-hero-card.is-rarity-mythic { border-color: rgba(251, 113, 133, 0.62); }
.ws-relic-hero-card.is-rarity-legendary {
  border-color: rgba(253, 224, 71, 0.78);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.34), rgba(15, 23, 42, 0.94));
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.18);
}

.ws-relic-hero-ico {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ws-relic-hero-ico.is-empty {
  opacity: 0.45;
}

.ws-relic-hero-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ws-relic-hero-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-relic-slot-pill,
.ws-relic-rar-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ws-relic-slot-pill {
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.48);
  color: #fde68a;
}

.ws-relic-rar-pill {
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.4);
  width: fit-content;
}

.ws-relic-hero-name {
  font-size: 14.5px;
  font-weight: 900;
  color: #f8fafc;
}

.ws-relic-hero-eff {
  font-size: 11.5px;
  font-weight: 700;
  color: #86efac;
  line-height: 1.3;
}

.ws-relic-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: #e2e8f0;
  padding: 4px 2px;
}

.ws-relic-section-head > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ws-relic-hint-pill {
  font-size: 10px;
  font-weight: 800;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 2px 8px;
}

.ws-relic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
}

.ws-relic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
  border: 1.5px solid rgba(148, 163, 184, 0.26);
}

.ws-relic-card.is-rarity-rare { border-color: rgba(56, 189, 248, 0.44); }
.ws-relic-card.is-rarity-epic { border-color: rgba(192, 132, 252, 0.48); }
.ws-relic-card.is-rarity-mythic { border-color: rgba(251, 113, 133, 0.54); }
.ws-relic-card.is-rarity-legendary {
  border-color: rgba(253, 224, 71, 0.72);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.28), rgba(15, 23, 42, 0.92));
}

.ws-relic-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ws-relic-card-ico {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ws-relic-card-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ws-relic-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  color: #f8fafc;
}

.ws-relic-qty {
  font-size: 11px;
  font-weight: 900;
  color: #fde68a;
  background: rgba(2, 6, 23, 0.75);
  padding: 1px 6px;
  border-radius: 999px;
}

.ws-relic-card-eff {
  font-size: 11px;
  font-weight: 700;
  color: #86efac;
}

.ws-relic-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-relic-card-actions .mc-btn {
  flex: 1 1 auto;
  justify-content: center;
  font-size: 11px;
  padding: 6px 8px;
}

.ws-relic-dex-details {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.ws-relic-dex-details > summary {
  list-style: none;
}

.ws-relic-dex-details > summary::-webkit-details-marker {
  display: none;
}

.ws-relic-dex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.ws-relic-dex-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.ws-relic-dex-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ws-relic-dex-meta b {
  font-size: 11.5px;
  color: #f8fafc;
}

.ws-relic-dex-meta small {
  font-size: 10.5px;
  color: #cbd5e1;
}

/* Pack-Opening Relikt-Drop-Karte */
.relic-drop-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 170px;
  min-height: 230px;
  padding: 12px 10px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--rc-col, #fbbf24) 24%, #0f172a), #070b16 85%);
  border: 2px solid var(--rc-col, #fbbf24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.relic-drop-card.is-compact {
  width: 100%;
  min-height: 148px;
  padding: 8px 6px;
  gap: 4px;
}

.relic-drop-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.relic-drop-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fde68a;
}

.relic-drop-name {
  font-size: 12.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.relic-drop-card.is-compact .relic-drop-name {
  font-size: 11px;
}

.relic-drop-eff {
  font-size: 10.5px;
  font-weight: 700;
  color: #86efac;
  line-height: 1.25;
}

/* ============================================================================
   PACK-SHOP IM KOMPAKTEN AAA-MOBILE-STIL (GROSSES PACK-BILD, KLEINE CHANCEN)
   ============================================================================ */
.pack-store-hero.is-compact-hero {
  padding: 8px 12px !important;
  min-height: 0 !important;
  margin-bottom: 10px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pack-hero-left-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pack-hero-icon-box.is-sm {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  flex-shrink: 0;
}

.pack-hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.pack-store-hero.is-compact-hero .pack-hero-title {
  font-size: 14.5px !important;
  margin: 0 !important;
  line-height: 1.15;
}

.pack-store-hero.is-compact-hero .pack-hero-wallet {
  padding: 4px 9px;
  font-size: 12px;
}

.pack-store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  padding-bottom: 18px;
}

@media (min-width: 760px) {
  .pack-store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pack-aaa-card.is-it-style {
  gap: 7px;
  padding: 8px;
  border-radius: 15px;
  overflow: hidden;
}

.pack-it-stage {
  position: relative;
  width: 100%;
  min-height: 104px;
  padding: 22px 6px 8px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 52%, color-mix(in srgb, var(--pack-color, #4ade80) 28%, transparent), rgba(7, 11, 20, 0.86) 76%);
  border: 1px solid color-mix(in srgb, var(--pack-color, #4ade80) 42%, rgba(148, 163, 184, 0.16));
}

.pack-it-stage-badges {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  z-index: 3;
}

.pack-it-stage-badges .pack-bonus-pill,
.pack-it-stage-badges .pack-daily-limit-pill {
  font-size: 8.5px;
  padding: 1.5px 5px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pack-it-art-hero {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.55));
}

body.perf-mode .pack-it-art-hero,
body.reduced-effects .pack-it-art-hero,
body.perf-mode .rf-altar-art,
body.reduced-effects .rf-altar-art {
  filter: none !important;
}

body.perf-mode .rf-altar-shell,
body.reduced-effects .rf-altar-shell,
body.perf-mode .pack-it-card,
body.reduced-effects .pack-it-card {
  box-shadow: none !important;
  transition: none !important;
}

.pack-it-art-hero svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pack-it-cnt-pill {
  position: absolute;
  bottom: 5px;
  right: 6px;
  z-index: 3;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid color-mix(in srgb, var(--pack-color, #4ade80) 65%, #ffffff);
}

.pack-it-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  flex: 1 1 auto;
}

.pack-it-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.18;
  color: #f8fafc;
}

.pack-it-includes {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  color: #94a3b8;
}

.pack-odds-scope {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.72);
  margin-top: 2px;
  line-height: 1.1;
}

.pack-relic-jackpot-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.36);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.34), rgba(15, 23, 42, 0.82));
  color: #fde68a;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.2px;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.14);
}

.pack-relic-jackpot-pill svg {
  flex-shrink: 0;
  color: #fbbf24;
}

body.perf-mode .pack-relic-jackpot-pill {
  box-shadow: none;
}

.pack-odds-grid.is-it-odds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: 2px;
}

.pack-odds-grid.is-it-odds .pack-odd-chip.is-aaa-mini {
  font-size: 9.5px;
  padding: 1.5px 5px;
  gap: 3px;
  border-radius: 999px;
}

.pack-odds-grid.is-it-odds .pack-odd-chip.is-aaa-mini .pack-odd-dot {
  width: 6px;
  height: 6px;
}

.pack-aaa-card.is-it-style .pack-cta-btn {
  padding: 8px 8px;
  font-size: 12.5px;
}

@media (max-width: 440px) {
  .pack-store-grid {
    gap: 8px !important;
  }
  .pack-it-stage {
    min-height: 94px;
    padding: 20px 4px 6px;
  }
  .pack-it-art-hero {
    width: 74px;
    height: 74px;
  }
  .pack-it-title {
    font-size: 12.5px;
  }
  .pack-odds-grid.is-it-odds .pack-odd-chip.is-aaa-mini {
    font-size: 9px;
    padding: 1px 4.5px;
  }
  .pack-odds-scope {
    font-size: 8px;
  }
  .pack-relic-jackpot-pill {
    font-size: 8.5px;
    padding: 1.5px 6px;
  }
}

/* ============================================================================
   RELIKT-SCHMIEDE IM AAA-ALTAR-STIL (WÄHLER-STRIP + 2-BOX FORGE-BÜHNE)
   ============================================================================ */
.rf-altar-shell {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 8%, rgba(245, 158, 11, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(22, 18, 38, 0.94), rgba(10, 14, 26, 0.98));
  border: 1.5px solid rgba(251, 191, 36, 0.34);
}

/* Einheitlicher AAA Hero-Banner für die Reparatur-Station */
.repair-hero-banner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 18%, rgba(16, 185, 129, 0.24) 0%, transparent 56%),
    linear-gradient(135deg, rgba(12, 42, 36, 0.94), rgba(11, 17, 32, 0.98));
  border: 1.5px solid rgba(52, 211, 153, 0.42);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(167, 243, 208, 0.14);
}

.repair-hero-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(52, 211, 153, 0.44);
}

.repair-hero-meta {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.repair-hero-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.repair-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a7f3d0;
  background: rgba(6, 95, 70, 0.55);
  border: 1px solid rgba(52, 211, 153, 0.52);
}

.repair-hero-title {
  font-size: 14.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.18;
}

.repair-hero-sub {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.3;
}

.repair-hero-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.repair-hero-status.is-damaged {
  color: #fde68a;
  background: rgba(120, 53, 15, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.55);
}

.repair-hero-status.is-ok {
  color: #86efac;
  background: rgba(20, 83, 45, 0.55);
  border: 1px solid rgba(74, 222, 128, 0.5);
}

body.perf-mode .repair-hero-banner,
body.reduced-effects .repair-hero-banner {
  box-shadow: none !important;
}

@media (max-width: 480px) {
  .repair-hero-banner {
    gap: 9px;
    padding: 9px 10px;
  }
  .repair-hero-status {
    padding: 2px 7px;
    font-size: 9.5px;
  }
  .alchemy-header {
    flex-wrap: wrap !important;
    gap: 9px !important;
  }
  .alchemy-header .wb-ready-toggle.is-alchemy-toggle {
    width: 100%;
    justify-content: center;
  }
}

.rf-hero-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.32), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(251, 191, 36, 0.38);
}

.rf-hero-ico {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.42);
}

.rf-hero-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fef08a;
  background: rgba(180, 83, 9, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.55);
}

.rf-hero-title {
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
}

.rf-hero-sub {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.25;
}

.rf-hero-cnt {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  color: #fde68a;
  background: rgba(2, 6, 23, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.rf-step-lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fde68a;
}

.rf-step-lbl > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rf-step-cnt {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.rf-empty-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-size: 12px;
}

.rf-empty-box p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.rf-picker-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  padding: 10px 8px 10px;
  margin: -8px -8px -2px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 191, 36, 0.35) transparent;
}

.rf-step-hint {
  margin-left: auto;
  margin-right: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
}

.rf-pick-card {
  position: relative;
  flex: 0 0 calc((100% - 14px) / 3);
  min-width: 92px;
  max-width: 132px;
  padding: 0;
  border-radius: 13px;
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
  perspective: 640px;
  background: linear-gradient(160deg, rgba(20, 28, 48, 0.94), rgba(9, 13, 24, 0.98));
  border: 1.5px solid color-mix(in srgb, var(--rf-col, #38bdf8) 45%, rgba(148, 163, 184, 0.2));
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.rf-pick-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 116px;
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.rf-pick-card.is-flipped .rf-pick-inner {
  transform: rotateY(180deg);
}

.rf-pick-face {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 5px 8px;
  border-radius: 11px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rf-pick-back {
  transform: rotateY(180deg);
  padding: 8px 6px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rf-col, #38bdf8) 18%, #0f172a), rgba(7, 11, 20, 0.98));
}

.rf-back-rar {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rf-back-eff {
  font-size: 10px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
}

.rf-back-next {
  font-size: 9px;
  font-weight: 800;
  color: #86efac;
  padding: 1.5px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.rf-flip-dot {
  position: absolute;
  bottom: 4px;
  right: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.28);
  opacity: 0.85;
}

body.perf-mode .rf-pick-inner,
body.reduced-effects .rf-pick-inner {
  transition: none !important;
  transform: none !important;
  transform-style: flat;
}

body.perf-mode .rf-pick-back,
body.reduced-effects .rf-pick-back {
  display: none;
  transform: none !important;
}

body.perf-mode .rf-pick-card.is-flipped .rf-pick-front,
body.reduced-effects .rf-pick-card.is-flipped .rf-pick-front {
  display: none;
}

body.perf-mode .rf-pick-card.is-flipped .rf-pick-back,
body.reduced-effects .rf-pick-card.is-flipped .rf-pick-back {
  display: flex;
}

/* Relic Zoom Overlay — Alle 4 Seltenheits-Stufen */
.zoom-relic-tiers-box {
  background: rgba(11, 17, 32, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zoom-relic-tiers-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fde68a;
}

.zoom-relic-tiers-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zoom-relic-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 11px;
}

.zoom-relic-tier-row.is-current {
  border-color: var(--rt-col, #fde047);
  background: color-mix(in srgb, var(--rt-col, #fde047) 14%, rgba(15, 23, 42, 0.92));
}

.zoom-rt-rar {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 10px;
  flex-shrink: 0;
}

.zoom-rt-val {
  color: #e2e8f0;
  font-weight: 700;
  text-align: right;
}

.rf-pick-card.is-selected {
  border-color: var(--rf-col, #fde047);
  box-shadow:
    0 0 8px color-mix(in srgb, var(--rf-col, #fde047) 50%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--rf-col, #fde047) 22%, transparent);
  transform: translateY(-2px);
}

.rf-eq-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 900;
  color: #052e16;
  background: #4ade80;
}

.rf-qty-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  color: #fde68a;
  background: rgba(2, 6, 23, 0.82);
}

.rf-pick-ico {
  width: 50px;
  height: 50px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-pick-name {
  font-size: 11px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.rf-pick-rar {
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.rf-forge-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 11px;
  border-radius: 14px;
  background: rgba(9, 13, 24, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.rf-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.rf-slot-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 10px 7px;
  border-radius: 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rf-col, #38bdf8) 14%, #0f172a), rgba(7, 11, 20, 0.94));
  border: 1.5px solid color-mix(in srgb, var(--rf-col, #38bdf8) 55%, rgba(148, 163, 184, 0.2));
}

.rf-slot-name {
  font-size: 11.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.rf-slot-rar {
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.rf-slot-eff {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  line-height: 1.2;
}

.rf-slot-eff.is-boost {
  color: #86efac;
  font-weight: 800;
}

.rf-stage-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 68px;
}

.rf-mid-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.88);
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  color: #94a3b8;
}

.rf-mid-orb.is-ready {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(245, 158, 11, 0.45));
  border-color: #fde047;
  color: #fef08a;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.32);
}

.rf-cost-line {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 900;
  padding: 1.5px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  white-space: nowrap;
}

.rf-cost-line.is-ok {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.4);
}

.rf-cost-line.is-short {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.4);
}

.rf-stage-actions {
  display: flex;
  gap: 8px;
}

.rf-stage-actions .mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  min-width: 0;
}

@media (max-width: 480px) {
  .rf-altar-shell {
    padding: 10px;
    gap: 10px;
  }
  .rf-hero-banner {
    padding: 9px 10px;
    gap: 9px;
  }
  .rf-stage-grid {
    gap: 6px;
  }
  .rf-stage-mid {
    min-width: 58px;
  }
  .rf-slot-box {
    padding: 8px 5px;
  }
  .rf-pick-name {
    font-size: 10.5px;
  }
}

/* Spezieller Relikt-Amulett-Slot links über „Leben“ (kompakt, überdeckt das Podest nicht) */
.hub-relic-fab {
  position: absolute;
  top: -42px;
  left: 6px;
  right: auto;
  z-index: 12;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  background: rgba(11, 17, 32, 0.88);
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

@media (max-width: 480px) {
  .hub-relic-fab {
    top: -38px;
    left: 4px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
}

.hub-relic-fab:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 191, 36, 0.85);
}

.hub-relic-fab.is-empty {
  border-color: rgba(148, 163, 184, 0.38);
  color: #cbd5e1;
}

.hub-relic-fab.is-rarity-rare {
  border-color: rgba(56, 189, 248, 0.72);
  color: #bae6fd;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
}

.hub-relic-fab.is-rarity-epic {
  border-color: rgba(192, 132, 252, 0.76);
  color: #e9d5ff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.28);
}

.hub-relic-fab.is-rarity-mythic {
  border-color: rgba(251, 113, 133, 0.8);
  color: #fecdd3;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
}

.hub-relic-fab.is-rarity-legendary {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.86), rgba(15, 23, 42, 0.94));
  border-color: rgba(253, 224, 71, 0.9);
  color: #fef08a;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.36);
}

.hub-relic-fab-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.hub-relic-fab-txt {
  white-space: nowrap;
  letter-spacing: 0.02em;
}


/* ============================================================================
   KRAGOR: RELIC DUEL — AAA START-LADEBILDSCHIRM (BOOT SPLASH)
   Zero-Lag GPU-Animationen, Glow-Effekte, Partikel & 3-Welten-Mob-Showcase
   ============================================================================ */
.boot-splash {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: max(28px, env(safe-area-inset-top, 28px)) 22px max(26px, env(safe-area-inset-bottom, 26px));
  background:
    radial-gradient(circle at 50% 28%, rgba(147, 51, 234, 0.34) 0%, transparent 56%),
    radial-gradient(circle at 50% 62%, rgba(245, 158, 11, 0.18) 0%, transparent 58%),
    linear-gradient(175deg, #090d1a 0%, #0d1328 52%, #050811 100%);
  overflow: hidden;
  will-change: opacity;
  transition: opacity 0.34s ease-out;
}

.boot-splash .boot-center,
.boot-splash .boot-footer {
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease-out;
}

.boot-splash.is-hiding {
  opacity: 0;
  pointer-events: none;
}

.boot-splash.is-hiding .boot-center {
  transform: scale(1.04);
  opacity: 0;
}

.boot-splash.is-hiding .boot-footer {
  transform: translateY(10px);
  opacity: 0;
}

.boot-bg-glows {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 22% 24%, rgba(56, 189, 248, 0.14), transparent 38%),
    radial-gradient(circle at 78% 30%, rgba(245, 158, 11, 0.16), transparent 40%),
    radial-gradient(circle at 50% 78%, rgba(168, 85, 247, 0.18), transparent 44%);
  pointer-events: none;
  animation: bootGlowPulse 3.6s ease-in-out infinite alternate;
}

@keyframes bootGlowPulse {
  0% { opacity: 0.72; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.boot-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.boot-p {
  position: absolute;
  bottom: -12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.85);
  opacity: 0;
  animation: bootSparkRise 2.8s ease-in infinite;
}

.boot-p.p1  { left: 10%; animation-delay: 0.0s; animation-duration: 2.5s; }
.boot-p.p2  { left: 20%; animation-delay: 0.6s; width: 4px; height: 4px; background: #e879f9; box-shadow: 0 0 10px rgba(232, 121, 249, 0.85); }
.boot-p.p3  { left: 32%; animation-delay: 1.1s; animation-duration: 3.1s; }
.boot-p.p4  { left: 44%; animation-delay: 0.3s; width: 6px; height: 6px; background: #38bdf8; box-shadow: 0 0 10px rgba(56, 189, 248, 0.85); }
.boot-p.p5  { left: 54%; animation-delay: 1.5s; animation-duration: 2.4s; }
.boot-p.p6  { left: 65%; animation-delay: 0.2s; width: 4px; height: 4px; background: #e879f9; box-shadow: 0 0 10px rgba(232, 121, 249, 0.85); }
.boot-p.p7  { left: 75%; animation-delay: 0.9s; animation-duration: 2.9s; }
.boot-p.p8  { left: 85%; animation-delay: 1.4s; width: 5px; height: 5px; background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, 0.85); }
.boot-p.p9  { left: 92%; animation-delay: 0.5s; animation-duration: 2.6s; }
.boot-p.p10 { left: 15%; animation-delay: 1.7s; width: 6px; height: 6px; }

@keyframes bootSparkRise {
  0%   { transform: translateY(0) scale(0.5); opacity: 0; }
  20%  { opacity: 0.95; }
  80%  { opacity: 0.65; }
  100% { transform: translateY(-420px) scale(1.1); opacity: 0; }
}

.boot-center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 360px;
}

.boot-crest-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bootCrestIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.boot-crest-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 191, 36, 0.38);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.45), inset 0 0 22px rgba(251, 191, 36, 0.2);
  animation: bootRingSpin 12s linear infinite;
}

/* Schwebende Blackstars im Orbit um das Kragor-Wappen */
.boot-bs-orbit {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.boot-bs-orbit.is-inner {
  inset: -14px;
  animation: bootRingSpin 10s linear infinite;
}

.boot-bs-orbit.is-outer {
  inset: -26px;
  animation: bootRingSpinReverse 15s linear infinite;
}

.boot-bs-star {
  position: absolute;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 0 7px rgba(251, 191, 36, 0.85)) drop-shadow(0 0 12px rgba(192, 132, 252, 0.65));
  animation: bootStarTwinkle 2.2s ease-in-out infinite alternate;
}

.boot-bs-star.is-s1 {
  width: 17px;
  height: 17px;
  top: -8px;
  left: 50%;
  margin-left: -8.5px;
}

.boot-bs-star.is-s2 {
  width: 15px;
  height: 15px;
  bottom: -7px;
  left: 50%;
  margin-left: -7.5px;
  animation-delay: 0.7s;
}

.boot-bs-star.is-s3 {
  width: 12px;
  height: 12px;
  top: 50%;
  left: -6px;
  margin-top: -6px;
  animation-delay: 0.35s;
}

.boot-bs-star.is-s4 {
  width: 11px;
  height: 11px;
  top: 50%;
  right: -5.5px;
  margin-top: -5.5px;
  animation-delay: 1.1s;
}

@keyframes bootRingSpinReverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

@keyframes bootStarTwinkle {
  0% { opacity: 0.72; transform: scale(0.86); }
  100% { opacity: 1; transform: scale(1.12); }
}

.boot-crest-svg {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.48)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.4));
}

@keyframes bootCrestIn {
  0% { opacity: 0; transform: scale(0.75) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes bootRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.boot-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  animation: bootCrestIn 0.6s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.boot-title {
  margin: 0;
  font-size: clamp(38px, 11vw, 52px);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1;
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 42%, #f59e0b 78%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(245, 158, 11, 0.55)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.42));
}

.boot-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.boot-sub-line {
  width: 34px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.85), transparent);
}

.boot-subtitle {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: #e9d5ff;
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.7);
}

/* 3-Welten Mob-Showcase unter dem Logo */
.boot-mobs-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  min-height: 92px;
}

.boot-mob-card {
  width: 76px;
  height: 82px;
  border-radius: 15px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(22, 33, 56, 0.94), rgba(9, 13, 24, 0.98));
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  animation: bootMobPop 0.48s calc(var(--bm-i, 0) * 0.09s) cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Keine schräge Rotation -> 100 % gestochen scharfe Pixel- & Vektor-Kanten auf allen Displays! */
.boot-mob-card.is-fire {
  border-color: rgba(251, 191, 36, 0.78);
  background: radial-gradient(circle at 50% 34%, rgba(245, 158, 11, 0.28), rgba(14, 16, 28, 0.96));
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.34);
}

.boot-mob-card.is-en {
  width: 90px;
  height: 96px;
  border-color: rgba(192, 132, 252, 0.88);
  background: radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.34), rgba(11, 15, 30, 0.96));
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.44), 0 0 16px rgba(251, 191, 36, 0.24);
  margin-bottom: 8px;
}

.boot-mob-card.is-ne {
  border-color: rgba(248, 113, 113, 0.68);
  background: radial-gradient(circle at 50% 34%, rgba(185, 28, 28, 0.24), rgba(14, 15, 26, 0.96));
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.28);
}

.boot-mob-art {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-mob-card.is-en .boot-mob-art {
  width: 76px;
  height: 76px;
}

.boot-mob-art svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: geometricPrecision;
}

@keyframes bootMobPop {
  0% { opacity: 0; transform: translateY(18px) scale(0.84); }
  100% { opacity: 1; }
}

/* Moderner AAA-Ladebalken unten */
.boot-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boot-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  color: #cbd5e1;
}

.boot-status-row b {
  color: #fde68a;
  font-variant-numeric: tabular-nums;
}

.boot-bar-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.35);
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
}

.boot-bar-fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #9333ea 0%, #c084fc 42%, #f59e0b 78%, #fef08a 100%);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.65);
  transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, filter 0.22s ease;
  overflow: hidden;
}

.boot-bar-fill.is-complete {
  box-shadow: 0 0 22px rgba(254, 240, 138, 0.95), 0 0 10px rgba(245, 158, 11, 0.85);
  filter: brightness(1.22);
}

.boot-bar-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.55) 50%, transparent 75%);
  animation: bootSheen 1.2s linear infinite;
}

@keyframes bootSheen {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.boot-tip {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.3;
  min-height: 16px;
}

.boot-ver {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  color: rgba(148, 163, 184, 0.65);
  letter-spacing: 0.08em;
}

body.perf-mode .boot-particles,
body.reduced-effects .boot-particles,
body.perf-mode .boot-bg-glows,
body.reduced-effects .boot-bg-glows {
  display: none !important;
}

body.perf-mode .boot-crest-ring,
body.reduced-effects .boot-crest-ring,
body.perf-mode .boot-bs-orbit,
body.reduced-effects .boot-bs-orbit,
body.perf-mode .boot-bs-star,
body.reduced-effects .boot-bs-star,
body.perf-mode .boot-bar-sheen,
body.reduced-effects .boot-bar-sheen {
  animation: none !important;
}

body.perf-mode .boot-splash,
body.reduced-effects .boot-splash {
  will-change: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  .boot-particles, .boot-bg-glows, .boot-crest-ring, .boot-bar-sheen {
    animation: none !important;
  }
}


/* ============================================================================
   KRAGOR AAA PACK REVEAL 2.0
   5-Stufen-Eskalation, Spoiler-freie Banner, Mythic-Inferno, Legendary
   Blackstar-Durchbruch & Rarity-Break (Fake-Out). Reines GPU-CSS.
   ============================================================================ */

/* ---------- Pack-Intro: Selbst aufreißen (Tippen / Wischen) ---------- */
.pack-open-intro.is-ready .pack-tear-body::after {
  content: '';
  position: absolute;
  top: 27px;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--pack-color) 80%, #ffffff), transparent);
  box-shadow: 0 0 10px var(--pack-color);
  z-index: 4;
  animation: packSeamHint 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes packSeamHint {
  0%, 100% { opacity: 0.25; transform: scaleX(0.55); }
  50% { opacity: 0.95; transform: scaleX(1); }
}

.pack-open-intro.is-ready {
  touch-action: pan-y;
}

.pack-open-intro.is-swiping .pack-tear-body {
  animation: none;
  transform: rotate(calc(var(--swipe-p, 0) * 6deg)) scale(calc(1 + var(--swipe-p, 0) * 0.05));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 calc(18px + var(--swipe-p, 0) * 30px) color-mix(in srgb, var(--pack-color) 70%, transparent);
}

.pack-open-intro.is-swiping .pack-tear-flap {
  transform: translate3d(calc(var(--swipe-p, 0) * 16px), calc(var(--swipe-p, 0) * -6px), 0) rotate(calc(var(--swipe-p, 0) * 8deg));
}

/* ---------- Spoiler-freie Banner & Seltenheits-Label ---------- */
.rarity-fx-banner.is-pending {
  visibility: hidden;
  animation: none;
}

.pack-tap-stage.is-revealed .rarity-fx-banner.is-pending {
  visibility: visible;
  animation: packBannerSlam 0.52s cubic-bezier(0.22, 1.4, 0.36, 1) both;
}

.pack-tap-stage.is-tier-legendary.is-revealed .rarity-fx-banner.is-pending {
  animation: packBannerSlam 0.62s cubic-bezier(0.22, 1.4, 0.36, 1) 0.18s both;
  background: linear-gradient(135deg, #78350f, #b45309 45%, #f59e0b 70%, #78350f);
  border-color: #fde68a;
  color: #fffbeb;
  text-shadow: 0 0 8px rgba(254, 240, 138, 0.9);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.85), 0 0 44px rgba(251, 191, 36, 0.35);
}

.pack-tap-stage.is-tier-mythic.is-revealed .rarity-fx-banner.is-pending {
  background: linear-gradient(135deg, #450a0a, #991b1b 50%, #450a0a);
  border-color: #fca5a5;
  color: #fff1f2;
  text-shadow: 0 0 8px rgba(248, 113, 113, 0.95);
  box-shadow: 0 0 22px rgba(220, 38, 38, 0.85);
}

@keyframes packBannerSlam {
  0% { transform: scale(2.1); opacity: 0; letter-spacing: 5px; filter: blur(3px); }
  55% { transform: scale(0.93); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); letter-spacing: 0.6px; }
}

.pack-sub-rar {
  display: inline-block;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease 0.08s, transform 0.25s ease 0.08s;
}

.pack-tap-stage.is-revealed .pack-sub-rar {
  opacity: 1;
  transform: translateY(0);
}

/* Sunburst niemals vor der Enthüllung zeigen (kein Gold-Spoiler beim Fake-Out) */
.pull-fx-sunburst {
  transition: opacity 0.6s ease;
}

.pack-tap-stage:not(.is-revealed) .pull-fx-sunburst {
  opacity: 0;
}

/* ---------- Kragor Kartenrückseite ---------- */
.reveal-back-brand.is-kragor {
  font-size: 11px;
  letter-spacing: 3.5px;
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 55%, #b45309 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.55));
}

.reveal-back-crest {
  position: absolute;
  bottom: 14px;
  width: 26px;
  height: 26px;
  opacity: 0.75;
  pointer-events: none;
}

.reveal-back-cracks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}

.reveal-back-cracks path {
  fill: none;
  stroke: #fecaca;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}

.pack-tap-stage.is-charging.is-tier-mythic .reveal-back-cracks,
.pack-tap-stage.is-breaking .reveal-back-cracks {
  opacity: 1;
}

.pack-tap-stage.is-charging.is-tier-mythic .reveal-back-cracks path {
  stroke: #fca5a5;
  animation: packCrackDraw 0.6s cubic-bezier(0.55, 0.05, 0.7, 0.3) forwards;
}

.pack-tap-stage.is-charging.is-tier-mythic .reveal-back-cracks path:nth-child(2) { animation-delay: 0.12s; }
.pack-tap-stage.is-charging.is-tier-mythic .reveal-back-cracks path:nth-child(3) { animation-delay: 0.22s; }
.pack-tap-stage.is-charging.is-tier-mythic .reveal-back-cracks path:nth-child(4) { animation-delay: 0.3s; }

.pack-tap-stage.is-breaking .reveal-back-cracks path {
  stroke: #fffbeb;
  animation: packCrackDraw 0.2s ease-in forwards;
}

@keyframes packCrackDraw {
  to { stroke-dashoffset: 0; }
}

.pack-tap-stage.is-charging.is-tier-mythic .reveal-flip-back {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 30px rgba(220, 38, 38, 0.75), inset 0 0 26px rgba(127, 29, 29, 0.8);
}

.pack-tap-stage.is-charging.is-tier-legendary .reveal-flip-back {
  animation: packBackGoldPulse 0.3s ease-in-out infinite alternate;
}

@keyframes packBackGoldPulse {
  from { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(251, 191, 36, 0.5); }
  to { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 44px rgba(253, 224, 71, 0.95), inset 0 0 22px rgba(251, 191, 36, 0.45); }
}

.pack-tap-stage.is-charging.is-tier-legendary .reveal-back-emblem,
.pack-tap-stage.is-charging.is-tier-mythic .reveal-back-emblem {
  animation: packEmblemHeartbeat 0.46s ease-in-out infinite;
}

@keyframes packEmblemHeartbeat {
  0%, 100% { transform: scale(1); }
  18% { transform: scale(1.18); }
  36% { transform: scale(0.98); }
  52% { transform: scale(1.12); }
}

/* ---------- Episch: Arkan-Runenring (Auflade-Phase) ---------- */
.pull-fx-runes {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--fx-color) 75%, #ffffff);
  box-shadow: 0 0 18px color-mix(in srgb, var(--fx-color) 60%, transparent), inset 0 0 18px color-mix(in srgb, var(--fx-color) 45%, transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.pack-tap-stage.is-charging .pull-fx-runes {
  animation: packRuneConverge 1s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.pack-tap-stage.is-revealed .pull-fx-runes {
  animation: packRuneBurst 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes packRuneConverge {
  0% { opacity: 0; transform: scale(1.45) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: scale(0.92) rotate(240deg); }
}

@keyframes packRuneBurst {
  0% { opacity: 1; transform: scale(0.92) rotate(240deg); }
  100% { opacity: 0; transform: scale(1.9) rotate(300deg); }
}

/* ---------- Mythisch: Blutmond-Vignette, Glut & Rubin-Glanz ---------- */
.pull-fx-vignette {
  position: absolute;
  inset: -26px -18px;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 50%, transparent 28%, rgba(69, 10, 10, 0.6) 62%, rgba(12, 2, 4, 0.92) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.35s ease;
}

.pack-tap-stage.is-charging.is-tier-mythic .pull-fx-vignette {
  opacity: 1;
  animation: packVignetteThrob 0.46s ease-in-out infinite;
}

.pack-tap-stage.is-revealed.is-tier-mythic .pull-fx-vignette {
  opacity: 0.35;
  transition-duration: 1s;
}

@keyframes packVignetteThrob {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.035); }
  45% { transform: scale(1.01); }
}

.pull-fx-bloodmoon {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 50%, rgba(220, 38, 38, 0.55) 57%, rgba(127, 29, 29, 0.25) 63%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.pack-tap-stage.is-revealed .pull-fx-bloodmoon {
  animation: packBloodmoonIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards, packBloodmoonPulse 2.4s ease-in-out 0.7s infinite;
}

@keyframes packBloodmoonIn {
  0% { opacity: 0; transform: scale(0.4); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes packBloodmoonPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.pull-fx-rise-spark.is-ember {
  width: 5px;
  height: 8px;
  border-radius: 50% 50% 40% 40%;
  background: linear-gradient(180deg, #fef08a, #f97316 45%, #dc2626);
  box-shadow: 0 0 8px #f97316, 0 0 14px rgba(220, 38, 38, 0.8);
}

.pack-tap-stage.is-revealed .pull-fx-rise-spark.is-ember {
  animation: packEmberRise 1.25s ease-out var(--rd, 0.08s) forwards;
}

@keyframes packEmberRise {
  0% { transform: translate3d(var(--rx, 0px), 14px, 0) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  55% { transform: translate3d(calc(var(--rx, 0px) + 10px), calc(var(--ry, -150px) * 0.55), 0) scale(1); }
  100% { transform: translate3d(calc(var(--rx, 0px) - 8px), var(--ry, -150px), 0) scale(0.6); opacity: 0; }
}

.mythic-card-shimmer {
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 34%, rgba(220, 38, 38, 0.16) 44%, rgba(254, 202, 202, 0.5) 50%, rgba(220, 38, 38, 0.16) 56%, transparent 66%);
  transform: translate3d(-135%, 0, 0) skewX(-18deg);
  pointer-events: none;
  z-index: 6;
  animation: legendaryShimmerSweep 3.3s ease-in-out infinite;
}

.reveal-flip-scene.is-flipped.is-tier-mythic .reveal-flip-front {
  border-radius: 14px;
  animation: packMythGlow 2.4s ease-in-out 0.7s infinite;
}

@keyframes packMythGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(220, 38, 38, 0.45); }
  50% { box-shadow: 0 0 36px rgba(239, 68, 68, 0.85), 0 0 60px rgba(127, 29, 29, 0.45); }
}

/* ---------- Legendär: Cinema-Spotlight, Blackstar-Orbit, Sky-Beam & Sternenregen ---------- */
.pull-fx-cinema {
  position: absolute;
  inset: -70px -34px;
  background: radial-gradient(ellipse at 50% 48%, transparent 24%, rgba(2, 4, 10, 0.8) 58%, rgba(0, 0, 0, 0.95) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.45s ease;
}

.pack-tap-stage.is-charging.is-tier-legendary .pull-fx-cinema {
  opacity: 1;
}

.pack-tap-stage.is-revealed.is-tier-legendary .pull-fx-cinema {
  opacity: 0.3;
  transition-duration: 1.4s;
}

.modal-backdrop.is-pack-backdrop {
  transition: background 0.45s ease;
}

.modal-backdrop.is-pack-backdrop.is-cinema {
  background: radial-gradient(circle at 50% 42%, rgba(10, 8, 2, 0.94) 0%, rgba(0, 0, 0, 0.99) 100%);
}

.pull-fx-bs-orbit {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
}

.pull-fx-bs-orbit .bs-o {
  position: absolute;
  left: -12px;
  top: -12px;
  width: 24px;
  height: 24px;
  transform: rotate(var(--a, 0deg)) translateX(122px);
}

.pull-fx-bs-orbit .bs-o svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px #fbbf24) drop-shadow(0 0 12px rgba(251, 191, 36, 0.75));
}

.pack-tap-stage.is-charging.is-tier-legendary .pull-fx-bs-orbit {
  animation: packBsGather 1.05s cubic-bezier(0.5, 0, 0.75, 0.2) forwards;
}

.pack-tap-stage.is-revealed.is-tier-legendary .pull-fx-bs-orbit {
  animation: packBsExplode 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes packBsGather {
  0% { opacity: 0; transform: rotate(0deg) scale(1.35); }
  15% { opacity: 1; }
  100% { opacity: 1; transform: rotate(560deg) scale(0.42); }
}

@keyframes packBsExplode {
  0% { opacity: 1; transform: rotate(560deg) scale(0.42); }
  100% { opacity: 0; transform: rotate(640deg) scale(2.5); }
}

.pull-fx-skybeam {
  position: absolute;
  top: -150px;
  left: 50%;
  width: 50px;
  height: 440px;
  margin-left: -25px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 251, 235, 0.96) 32%, rgba(253, 224, 71, 0.85) 68%, rgba(251, 191, 36, 0) 100%);
  transform-origin: top center;
  transform: scaleY(0);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: screen;
}

.pack-tap-stage.is-revealed .pull-fx-skybeam {
  animation: packSkyBeamSlam 0.95s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes packSkyBeamSlam {
  0% { transform: scaleY(0) scaleX(0.6); opacity: 1; }
  22% { transform: scaleY(1) scaleX(1.4); opacity: 1; }
  45% { transform: scaleY(1) scaleX(2.8); opacity: 0.85; }
  100% { transform: scaleY(1) scaleX(3.6); opacity: 0; }
}

.pull-fx-star {
  position: absolute;
  top: -40px;
  left: 50%;
  width: var(--fs, 10px);
  height: var(--fs, 10px);
  background: linear-gradient(135deg, #fffbeb, #fde047 45%, #f59e0b);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}

.pack-tap-stage.is-revealed .pull-fx-star {
  animation: packStarFall 1.7s cubic-bezier(0.3, 0.6, 0.5, 1) var(--fd, 0s) forwards;
}

@keyframes packStarFall {
  0% { transform: translate3d(var(--fx, 0px), -10px, 0) rotate(0deg) scale(0.4); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate3d(calc(var(--fx, 0px) + var(--fw, 0px)), 320px, 0) rotate(280deg) scale(1); opacity: 0; }
}

.legendary-holo {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(125deg, rgba(254, 240, 138, 0) 18%, rgba(253, 224, 71, 0.24) 33%, rgba(244, 114, 182, 0.14) 44%, rgba(96, 165, 250, 0.14) 55%, rgba(253, 224, 71, 0.24) 66%, rgba(254, 240, 138, 0) 82%);
  background-size: 260% 260%;
  mix-blend-mode: color-dodge;
  animation: packHoloDrift 3.6s ease-in-out infinite alternate;
}

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

.reveal-flip-scene.is-flipped.is-tier-legendary .reveal-flip-front {
  border-radius: 14px;
  animation: packLegGlow 2.2s ease-in-out 0.95s infinite;
}

@keyframes packLegGlow {
  0%, 100% { box-shadow: 0 0 22px rgba(251, 191, 36, 0.55); }
  50% { box-shadow: 0 0 44px rgba(253, 224, 71, 0.95), 0 0 80px rgba(251, 191, 36, 0.4); }
}

/* Legendär: Slow-Mo-Flip mit Dramatik */
.reveal-flip-scene.is-tier-legendary .reveal-flip-inner {
  transition: transform 0.95s cubic-bezier(0.16, 1.18, 0.26, 1);
}

/* ---------- Selten: Kristall-Sweep & Funken ---------- */
.pack-tap-stage.is-revealed.is-tier-rare .pull-fx-spark {
  animation: sparkBurst 0.7s ease-out forwards;
}

.pack-tap-stage.is-revealed.is-tier-rare .pull-fx-ring {
  animation: upgradeShockwave 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rare-card-sweep {
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(186, 230, 253, 0.55) 50%, transparent 62%);
  transform: translate3d(-135%, 0, 0) skewX(-18deg);
  pointer-events: none;
  z-index: 6;
}

.reveal-flip-scene.is-flipped .rare-card-sweep {
  animation: packRareSweep 0.9s ease-out 0.25s forwards;
}

@keyframes packRareSweep {
  0% { transform: translate3d(-135%, 0, 0) skewX(-18deg); opacity: 1; }
  100% { transform: translate3d(135%, 0, 0) skewX(-18deg); opacity: 0.6; }
}

/* ---------- Rarity-Break (Fake-Out) ---------- */
.pull-fx-break {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(254, 240, 138, 0.92) 24%, rgba(251, 191, 36, 0.4) 48%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 9;
}

.pack-tap-stage.is-breaking .pull-fx-break {
  animation: packBreakFlash 0.55s ease-out forwards;
}

@keyframes packBreakFlash {
  0% { opacity: 1; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(2); }
}

.pack-tap-stage.is-breaking .reveal-flip-scene {
  animation: packBreakJolt 0.34s cubic-bezier(0.36, 0.07, 0.19, 0.97) !important;
}

@keyframes packBreakJolt {
  0% { transform: scale(1); }
  20% { transform: scale(1.13) rotate(-3deg); }
  45% { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1); }
}

.pull-fx-shard {
  position: absolute;
  width: 9px;
  height: 14px;
  background: linear-gradient(160deg, #ffffff, var(--shard-col, #93c5fd));
  clip-path: polygon(50% 0%, 100% 100%, 0% 80%);
  opacity: 0;
  pointer-events: none;
  z-index: 9;
}

.pack-tap-stage.is-breaking .pull-fx-shard {
  animation: packShardFly 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes packShardFly {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate3d(var(--sx, 60px), var(--sy, -60px), 0) rotate(var(--sr, 220deg)) scale(0.4); opacity: 0; }
}

.pack-break-tag {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 12;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #fffbeb;
  background: linear-gradient(135deg, #1e1b4b, #7c3aed 40%, #f59e0b 80%);
  border: 1.5px solid #fde68a;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.75);
  transform: translateX(-50%) scale(0.5);
  opacity: 0;
  pointer-events: none;
}

.pack-tap-stage.is-broken .pack-break-tag {
  animation: packBreakTagPop 0.45s cubic-bezier(0.22, 1.4, 0.36, 1) forwards;
}

.pack-tap-stage.is-revealed .pack-break-tag {
  animation: packBreakTagOut 0.3s ease-in forwards;
}

@keyframes packBreakTagPop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.5); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes packBreakTagOut {
  0% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.8); }
}

/* ---------- Grid-Übersicht: Premium-Rahmen & Highlight-Banner ---------- */
.grid-myth-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.6), inset 0 0 0 1.5px rgba(248, 113, 113, 0.55);
}

.grid-leg-card {
  border-radius: 14px;
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.7), inset 0 0 0 1.5px rgba(253, 224, 71, 0.65);
}

.pack-grid-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 8px;
}

.pgs-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid var(--pgs-col, #94a3b8);
  box-shadow: 0 0 12px color-mix(in srgb, var(--pgs-col, #94a3b8) 45%, transparent);
  animation: bannerPop 0.4s cubic-bezier(0.22, 1.3, 0.36, 1) both;
}

.pgs-pill.is-legendary {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.92), rgba(180, 83, 9, 0.85));
  color: #fffbeb;
}

.pgs-pill.is-mythic {
  background: linear-gradient(135deg, rgba(69, 10, 10, 0.92), rgba(153, 27, 27, 0.85));
  color: #fff1f2;
}

/* ---------- Performance-Guards ---------- */
body.reduced-effects .pull-fx-cinema,
body.reduced-effects .pull-fx-bs-orbit,
body.reduced-effects .pull-fx-skybeam,
body.reduced-effects .pull-fx-star,
body.reduced-effects .pull-fx-vignette,
body.reduced-effects .pull-fx-bloodmoon,
body.reduced-effects .pull-fx-runes,
body.reduced-effects .pull-fx-shard,
body.reduced-effects .legendary-holo,
body.reduced-effects .mythic-card-shimmer,
body.reduced-effects .reveal-back-cracks,
body.perf-mode .pull-fx-cinema,
body.perf-mode .pull-fx-bs-orbit,
body.perf-mode .pull-fx-star,
body.perf-mode .pull-fx-bloodmoon,
body.perf-mode .pull-fx-shard,
body.perf-mode .legendary-holo,
body.perf-mode .reveal-back-cracks {
  display: none !important;
}

body.reduced-effects .reveal-flip-scene.is-flipped .reveal-flip-front,
body.perf-mode .reveal-flip-scene.is-flipped .reveal-flip-front,
body.reduced-effects .pack-tap-stage .reveal-flip-back,
body.reduced-effects .reveal-back-emblem,
body.perf-mode .reveal-back-emblem,
body.reduced-effects .pack-open-intro.is-ready .pack-tear-body::after {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .pull-fx-bs-orbit, .pull-fx-star, .pull-fx-shard, .legendary-holo, .mythic-card-shimmer {
    display: none !important;
  }
}

/* ==================== KLICKBARER DIAMANT-SCHNELLZUGANG (TOP-BAR) ==================== */
button.currency-pill.diamond.is-iap-shortcut {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 6px;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

button.currency-pill.diamond.is-iap-shortcut:hover {
  border-color: rgba(125, 211, 252, 0.85);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  filter: brightness(1.08);
}

button.currency-pill.diamond.is-iap-shortcut:active {
  transform: scale(0.95);
}

button.currency-pill.diamond.is-iap-shortcut .cur-plus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  margin-left: 2px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  color: #082f49;
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.45);
  flex-shrink: 0;
}

body.perf-mode button.currency-pill.diamond.is-iap-shortcut:hover,
body.perf-mode button.currency-pill.diamond.is-iap-shortcut .cur-plus-badge {
  box-shadow: none !important;
}

.hub-topbar .currency-bar button.currency-pill.diamond.is-iap-shortcut {
  padding-right: 0;
}

.hub-topbar .currency-bar.is-blackstar-bar {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(18, 16, 32, 0.84);
}

/* ==================== ECHTGELD- / IAP-SHOP (SCHATZKAMMER) ==================== */
.iap-hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(56, 189, 248, 0.2), transparent 55%),
    radial-gradient(90% 90% at 0% 100%, rgba(245, 158, 11, 0.14), transparent 55%),
    linear-gradient(145deg, rgba(14, 28, 52, 0.96), rgba(11, 18, 34, 0.98));
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(186, 230, 253, 0.16);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.iap-hero-glow {
  position: absolute;
  inset: -40% -20% auto auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.24), transparent 70%);
  pointer-events: none;
}

.iap-hero-ornament {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100px;
  pointer-events: none;
}

.iap-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.iap-hero-emblem {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 211, 252, 0.55);
  background: radial-gradient(circle at 35% 28%, rgba(56, 189, 248, 0.34), rgba(15, 23, 42, 0.92));
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.28), inset 0 1px 0 rgba(224, 242, 254, 0.25);
}

.iap-hero-meta {
  min-width: 0;
  flex: 1;
}

.iap-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fde68a;
  background: rgba(180, 83, 9, 0.32);
  border: 1px solid rgba(251, 191, 36, 0.45);
  margin-bottom: 4px;
  max-width: 100%;
}

.iap-hero-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.iap-hero-sub {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.35;
}

.iap-hero-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.iap-hero-wallet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(9, 14, 26, 0.78);
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
  flex-shrink: 0;
}

.iap-wallet-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.iap-restore-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(30, 41, 59, 0.85);
  color: #e2e8f0;
  touch-action: manipulation;
  flex-shrink: 0;
}

.iap-preview-banner {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: linear-gradient(135deg, rgba(15, 36, 62, 0.78), rgba(15, 23, 42, 0.9));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iap-preview-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.iap-preview-text {
  min-width: 0;
  flex: 1;
}

.iap-preview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  flex-shrink: 0;
}

.iap-preview-title {
  font-size: 12px;
  font-weight: 800;
  color: #e0f2fe;
  line-height: 1.25;
}

.iap-preview-body {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  margin-top: 2px;
}

.iap-sim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 7px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.iap-sim-label {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.iap-sim-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.iap-sim-pill {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.iap-sim-pill.is-success.is-active {
  border-color: rgba(74, 222, 128, 0.75);
  background: rgba(21, 128, 61, 0.42);
  color: #bbf7d0;
}

.iap-sim-pill.is-cancel.is-active {
  border-color: rgba(251, 191, 36, 0.75);
  background: rgba(180, 83, 9, 0.42);
  color: #fef08a;
}

.iap-sim-pill.is-error.is-active {
  border-color: rgba(248, 113, 113, 0.75);
  background: rgba(153, 27, 27, 0.45);
  color: #fecaca;
}

/* Sektions-Gliederung (1. Starter & Spezial / 2. Diamanten-Pakete) */
.iap-section-block {
  margin-bottom: 16px;
}

.iap-section-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 10px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55));
}

.iap-section-hdr.is-special {
  border-color: rgba(251, 191, 36, 0.36);
  background: linear-gradient(90deg, rgba(66, 32, 6, 0.55), rgba(30, 27, 75, 0.45));
}

.iap-section-hdr.is-diamonds {
  border-color: rgba(56, 189, 248, 0.36);
  background: linear-gradient(90deg, rgba(12, 74, 110, 0.52), rgba(15, 23, 42, 0.65));
}

.iap-section-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.iap-section-meta {
  min-width: 0;
  flex: 1;
}

.iap-section-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.iap-section-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}

.iap-store-grid {
  display: grid;
  gap: 10px;
}

.iap-store-grid.is-special-grid {
  grid-template-columns: 1fr;
}

.iap-store-grid.is-diamonds-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 10px;
}

.iap-product-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--iap-accent, #38bdf8) 42%, rgba(148, 163, 184, 0.24));
  background:
    radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--iap-accent, #38bdf8) 15%, transparent), transparent 62%),
    linear-gradient(160deg, rgba(17, 26, 46, 0.96), rgba(10, 16, 30, 0.98));
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--iap-accent, #38bdf8);
}

.iap-product-card.is-featured {
  border-color: color-mix(in srgb, var(--iap-accent, #fbbf24) 58%, rgba(255, 255, 255, 0.14));
  background:
    radial-gradient(100% 90% at 100% 0%, color-mix(in srgb, var(--iap-accent, #fbbf24) 22%, transparent), transparent 60%),
    linear-gradient(135deg, rgba(30, 26, 56, 0.96), rgba(14, 21, 39, 0.98));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--iap-glow, #f59e0b) 24%, rgba(2, 6, 23, 0.6)), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.iap-product-card.is-owned {
  opacity: 0.72;
}

.iap-card-facet-svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 74px;
  pointer-events: none;
}

.iap-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.iap-icon-stage {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--iap-accent, #38bdf8) 52%, transparent);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--iap-accent, #38bdf8) 30%, transparent), rgba(15, 23, 42, 0.92));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--iap-glow, #0284c7) 25%, transparent);
}

.iap-head-meta {
  min-width: 0;
  flex: 1;
}

.iap-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}

.iap-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #0b0f19;
  background: linear-gradient(135deg, var(--iap-accent, #38bdf8), color-mix(in srgb, var(--iap-accent, #38bdf8) 72%, #ffffff));
}

.iap-top-badge.is-secondary {
  color: #422006;
  background: linear-gradient(135deg, #fde047, #f59e0b);
}

.iap-active-pass-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.35);
  border: 1px solid rgba(74, 222, 128, 0.5);
}

.iap-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}

.iap-card-sub {
  margin: 3px 0 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.32;
}

.iap-rewards-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.iap-reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(10, 16, 30, 0.84);
  color: #e2e8f0;
}

.iap-reward-pill.is-dia {
  border-color: rgba(56, 189, 248, 0.42);
  color: #bae6fd;
}

.iap-reward-pill.is-bonus {
  border-color: rgba(74, 222, 128, 0.48);
  background: rgba(20, 83, 45, 0.36);
  color: #bbf7d0;
}

.iap-total-line {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #7dd3fc;
}

.iap-reward-pill.is-em {
  border-color: rgba(52, 211, 153, 0.42);
  color: #a7f3d0;
}

.iap-reward-pill.is-pack,
.iap-reward-pill.is-pass {
  border-color: rgba(192, 132, 252, 0.42);
  color: #e9d5ff;
}

.iap-bonus-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 800;
  align-self: flex-start;
}

.iap-bonus-pill.is-available {
  color: #fef08a;
  background: rgba(180, 83, 9, 0.3);
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.iap-bonus-pill.is-used {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.iap-buy-btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--iap-accent, #38bdf8) 72%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--iap-accent, #38bdf8) 32%, rgba(15, 23, 42, 0.95)), rgba(15, 23, 42, 0.98));
  color: #f8fafc;
  touch-action: manipulation;
}

.iap-buy-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%);
  pointer-events: none;
}

.iap-buy-btn.is-disabled {
  opacity: 0.58;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.72);
}

.iap-price-val {
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.15;
}

.iap-price-sub {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

body.perf-mode .iap-hero-banner,
body.perf-mode .iap-hero-emblem,
body.perf-mode .iap-icon-stage,
body.perf-mode .iap-product-card,
body.perf-mode .iap-product-card.is-featured {
  box-shadow: none !important;
}

body.perf-mode .iap-hero-glow,
body.perf-mode .iap-hero-ornament,
body.perf-mode .iap-card-facet-svg,
body.perf-mode .iap-buy-sheen {
  display: none !important;
}

.iap-pass-claim-row {
  position: relative;
  z-index: 1;
}

.iap-pass-claim-btn.is-ready {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  color: #052e16;
  border: 1px solid rgba(134, 239, 172, 0.85);
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.32);
  touch-action: manipulation;
}

.iap-pass-claimed-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.45);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.iap-tab-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  margin-left: 3px;
  vertical-align: middle;
}

.daily-reward-card.is-pass-daily {
  margin-top: 8px;
  border-color: rgba(192, 132, 252, 0.48);
  background: linear-gradient(135deg, rgba(46, 16, 101, 0.65), rgba(15, 23, 42, 0.92));
}

body.perf-mode .iap-pass-claim-btn.is-ready {
  box-shadow: none !important;
}

/* ==================== GESTAFFELTE MOB-KILL-MEISTERSCHAFT ==================== */
.card-mastery-prog-box {
  margin: 5px 0 6px;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.28);
}

.card-mastery-prog-box.is-zoom {
  margin: 7px 0 8px;
  padding: 7px 9px;
}

.card-mastery-prog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.card-mastery-prog-top b {
  color: #7dd3fc;
  font-weight: 800;
}

.card-mastery-prog-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.card-mastery-prog-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #c084fc);
}

@media (max-width: 420px) {
  .iap-store-grid.is-diamonds-grid {
    grid-template-columns: 1fr;
  }
  .iap-hero-top {
    align-items: flex-start;
  }
  .iap-hero-emblem {
    width: 46px;
    height: 46px;
  }
  .iap-hero-title {
    font-size: 15px;
  }
  .iap-hero-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .iap-hero-wallet {
    justify-content: center;
  }
  .iap-restore-btn {
    justify-content: center;
  }
}

/* ===== Tooltip & Status-Legend Enhancements (Mobile-First, Perf-Safe) ===== */
.battle-legend-btn {
  padding: 4px 7px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.battle-status-legend-modal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.battle-status-legend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.battle-status-legend-head h3 {
  margin: 0;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.battle-status-legend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.battle-status-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.78rem;
  line-height: 1.3;
  color: #e2e8f0;
}

.battle-status-legend-ico {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.battle-status-legend-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #fde68a;
  opacity: 0.92;
}

.shop-stepwise-hint,
.col-deck-rule-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 10px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.84);
  border: 1px solid rgba(56, 189, 248, 0.34);
  font-size: 0.74rem;
  line-height: 1.32;
  color: #cbd5e1;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.col-deck-rule-hint span {
  flex: 1;
}

.col-deck-rule-close {
  flex: 0 0 auto !important;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
}

.col-info-toggle-btn {
  flex: 0 0 auto;
  min-width: 34px;
  padding-left: 9px;
  padding-right: 9px;
  touch-action: manipulation;
}

.oa-rules-line {
  margin-top: 4px;
  font-size: 0.66rem;
  line-height: 1.25;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.set-stat-sub {
  font-size: 0.66rem;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0.92;
}

[data-shop-tip] {
  cursor: pointer;
  touch-action: manipulation;
}

/* ==================== UNTERGRUND-WELT (HÖHLENEINGANG, 2-ZONEN-KARTE & DUNKELHEIT) ==================== */
.camp-path-cave {
  fill: none;
  stroke: #2dd4bf;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
  opacity: 0.9;
}

.camp-cave-wrap {
  z-index: 6;
}

.camp-cave-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  color: #ccfbf1;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(88, 28, 135, 0.92));
  border: 1px solid rgba(94, 234, 212, 0.6);
  margin-bottom: 4px;
  white-space: nowrap;
}

.camp-cave-btn {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 2px solid rgba(45, 212, 191, 0.72);
  background: radial-gradient(circle at 50% 35%, rgba(19, 78, 74, 0.95), rgba(15, 23, 42, 0.96));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.35), 0 6px 14px rgba(2, 6, 23, 0.7);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  animation: ugCavePulse 3.2s ease-in-out infinite;
}

.camp-cave-btn:active {
  transform: scale(0.95);
}

.camp-node-label.is-cave-lbl span {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(45, 212, 191, 0.5);
  color: #99f6e4;
}

.camp-theme-underground {
  background: linear-gradient(180deg, #050712 0%, #0f172a 55%, #1e293b 100%);
  border-color: rgba(45, 212, 191, 0.36);
}

.camp-ug-darkness-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: #99f6e4;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.28), rgba(88, 28, 135, 0.3), rgba(15, 118, 110, 0.28));
  border: 1px solid rgba(45, 212, 191, 0.45);
}

.camp-ug-zone-divider {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}

.camp-ug-zone-divider span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ccfbf1;
  background: rgba(9, 13, 28, 0.88);
  border: 1px solid rgba(45, 212, 191, 0.48);
  white-space: nowrap;
}

.battle-mod-pill.is-darkness-pill {
  border-color: rgba(45, 212, 191, 0.65);
  background: rgba(15, 118, 110, 0.32);
  color: #ccfbf1;
}

@keyframes ugCavePulse {
  0%, 100% {
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.3), 0 6px 14px rgba(2, 6, 23, 0.7);
  }
  50% {
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.46), 0 6px 16px rgba(2, 6, 23, 0.78);
  }
}

body.perf-mode .camp-cave-btn,
body.reduced-effects .camp-cave-btn,
body.modal-open .camp-cave-btn,
body.app-paused .camp-cave-btn {
  animation: none !important;
  box-shadow: 0 4px 10px rgba(2, 6, 23, 0.65);
}

/* ==================== PWA INSTALL BANNER (WEB-ONLY, DEZENT) ==================== */
#pwa-install-root {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 420;
  width: min(calc(100% - 20px), 410px);
  pointer-events: none;
}

body.modal-open #pwa-install-root {
  display: none;
}

.pwa-install-banner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border-radius: 14px;
  background: rgba(11, 15, 25, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.72), inset 0 1px 0 rgba(186, 230, 253, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  touch-action: manipulation;
}

.pwa-install-banner.is-hidden {
  display: none;
}

.pwa-ib-ico {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pwa-ib-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.pwa-ib-title {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}

.pwa-ib-sub {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.25;
  margin-top: 2px;
}

.pwa-ib-action {
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(180deg, #0ea5e9, #0284c7);
  border: 1px solid rgba(186, 230, 253, 0.45);
  color: #f8fafc;
  border-radius: 9px;
}

.pwa-ib-close {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(30, 41, 59, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  padding: 0;
}

body.perf-mode .pwa-install-banner,
body.reduced-effects .pwa-install-banner {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(11, 15, 25, 0.97);
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.7);
}


