/* ═══════════════════════════════════════════════════
   COMMI #6 — Platformer Speedrun (web.php only)
   Design language: black cards, white primaries,
   gold accents only (#fff6b3 → #ffd700 → #ccaa00)
   ═══════════════════════════════════════════════════ */

/* ── Desktop only ── */
@media (max-width: 1023px) {
  #wb6Boss,
  .wb6-overlay,
  #wb6HUD,
  #wb6Countdown,
  #wb6Banner,
  #wb6Canvas {
    display: none !important;
  }
}

/* ══════════════════════════════════════════════════
   BOSS TRIGGER — Hidden inside code terminal
   ══════════════════════════════════════════════════ */

/* The old visible button is display:none, the trigger is now .wb6-boss-line */
.wb6-boss-line {
  cursor: default;
  position: relative;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px;
  margin: 0 -8px;
  padding: 0 8px !important;
}

.wb6-boss-line.wb6-active {
  cursor: pointer;
}

.wb6-boss-line.wb6-active:hover {
  background: rgba(255, 215, 0, 0.06);
}

.wb6-boss-line.wb6-active:hover .wb6-boss-text {
  color: #ffd700 !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

/* Glitch character — the "C" occasionally flickers gold */
.wb6-glitch-char {
  display: inline;
  position: relative;
}

.wb6-boss-line.wb6-active .wb6-glitch-char {
  animation: wb6GlitchFlicker 4s ease-in-out infinite;
}

@keyframes wb6GlitchFlicker {
  0%, 85%, 100% { color: inherit; text-shadow: none; }
  86% { color: #ffd700; text-shadow: 0 0 6px rgba(255, 215, 0, 0.8); }
  87% { color: inherit; text-shadow: none; }
  89% { color: #ffd700; text-shadow: 0 0 4px rgba(255, 215, 0, 0.5); transform: translateX(1px); }
  90% { color: inherit; text-shadow: none; transform: translateX(0); }
  93% { color: #ffd700; text-shadow: 0 0 3px rgba(255, 215, 0, 0.3); }
  94% { color: inherit; }
}

.wb6-boss-line.wb6-active:hover .wb6-glitch-char {
  color: #ffd700 !important;
  animation: none;
}

/* Collected state — gold, but stays playable */
.wb6-boss-line.wb6-collected {
  cursor: pointer;
}
.wb6-boss-line.wb6-collected:hover {
  background: rgba(255, 215, 0, 0.06);
}
.wb6-boss-line.wb6-collected .wb6-boss-text {
  color: #ffd700 !important;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}
.wb6-boss-line.wb6-collected .wb6-glitch-char {
  color: #ffd700 !important;
  animation: none;
}

/* ══════════════════════════════════════════════════
   CANVAS
   ══════════════════════════════════════════════════ */
#wb6Canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8700;
  display: none;
  cursor: crosshair;
  pointer-events: all;
  background: #050505;
}

/* ══════════════════════════════════════════════════
   SCROLL LOCK — while any game overlay is open
   ══════════════════════════════════════════════════ */
html.wb6-scroll-lock,
body.wb6-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ══════════════════════════════════════════════════
   HUD — floating pills (Leben | Zeit | Boss-Status)
   ══════════════════════════════════════════════════ */
#wb6HUD {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 8800;
  display: none;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 20px;
  pointer-events: none;
  font-family: var(--font-family, 'Inter', sans-serif);
}

.wb6-hud-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.wb6-hud-center { justify-content: center; }
.wb6-hud-right  { justify-content: flex-end; }

.wb6-hud-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 8px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.wb6-hud-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* Hearts */
.wb6-hearts { display: flex; gap: 4px; }
.wb6-hearts svg { width: 16px; height: 16px; }
.wb6-heart-full  { color: #ffd700; filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6)); }
.wb6-heart-empty { color: rgba(255, 255, 255, 0.16); }

/* Timer (center) */
.wb6-hud-timer { padding: 8px 22px; }
#wb6TimerEl {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 74px;
  text-align: center;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}
#wb6TimerEl.wb6-time-danger {
  color: #e05252;
  text-shadow: 0 0 14px rgba(224, 82, 82, 0.55);
}
.wb6-hud-target {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 12px;
  white-space: nowrap;
}
.wb6-hud-target b { color: #ffd700; font-weight: 900; }

/* Powerup chip */
.wb6-power-chip {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.15), 0 6px 24px rgba(0, 0, 0, 0.45);
}
.wb6-power-chip span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* Boss status */
#wb6AIStatus { color: rgba(255, 255, 255, 0.65); }
#wb6AIStatus span { font-size: 0.74rem; font-weight: 700; }
#wb6AIStatus.wb6-boss-behind span { color: #ffd700; }
.wb6-boss-mini {
  width: 15px;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(224, 82, 82, 0.7));
}

#wb6QuitBtn {
  pointer-events: all;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  padding: 9px 16px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
#wb6QuitBtn:hover { color: #101010; background: #fff; border-color: #fff; }

/* ══════════════════════════════════════════════════
   COUNTDOWN OVERLAY — number + rules recap
   ══════════════════════════════════════════════════ */
#wb6Countdown {
  position: fixed;
  inset: 0;
  z-index: 8900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: var(--font-family, 'Inter', sans-serif);
}
#wb6Countdown.wb6-show { opacity: 1; }

.wb6-cd-num {
  font-size: 7rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}
.wb6-cd-num.wb6-cd-pop { animation: wb6CdPop 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes wb6CdPop {
  0%   { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.wb6-cd-rules {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Rule chips (shared between countdown + menu) */
.wb6-rule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-family, 'Inter', sans-serif);
}
.wb6-rule b { font-weight: 900; }
.wb6-rule-bad b  { color: #e05252; }
.wb6-rule-good b { color: #ffd700; }
.wb6-rule-neutral b { color: #fff; }

/* ══════════════════════════════════════════════════
   IN-GAME BANNER — item / checkpoint announcements
   ══════════════════════════════════════════════════ */
#wb6Banner {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 8850;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: rgba(10, 10, 14, 0.88);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 16px;
  padding: 10px 22px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: var(--font-family, 'Inter', sans-serif);
  text-align: center;
}
#wb6Banner.wb6-show { opacity: 1; transform: translateX(-50%) translateY(0); }
#wb6Banner strong {
  color: #ffd700;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}
#wb6Banner span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.68rem;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════
   OVERLAY BASE  (Modal + Win + Lose)
   ══════════════════════════════════════════════════ */
.wb6-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 24px 0;
}

.wb6-overlay.wb6-open {
  opacity: 1;
  pointer-events: all;
}

/* ── Shared badge: black pill, gold border + gold text ── */
.wb6-badge {
  display: inline-block;
  background: #0d0d0d;
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #ffd700;
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.12);
}

/* ══════════════════════════════════════════════════
   MENU CARD  — arcade fight-select
   ══════════════════════════════════════════════════ */
.wb6-menu-card {
  position: relative;
  /* margin:auto statt reinem Flex-Centering: ist die Karte höher
     als der Viewport, bleibt sie per Overlay-Scroll komplett
     erreichbar (Flex-Center würde den oberen Teil abschneiden) */
  margin: auto 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 215, 0, 0.07), transparent 60%),
    linear-gradient(165deg, #15151a 0%, #0d0d10 55%, #101014 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: 44px 46px 36px;
  max-width: 780px;
  width: 94%;
  text-align: center;
  overflow: hidden;
  box-shadow:
    0 60px 140px rgba(0, 0, 0, 0.92),
    0 0 90px rgba(255, 215, 0, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.07);
  transform: scale(0.95) translateY(12px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.wb6-overlay.wb6-open .wb6-menu-card {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Faint blueprint grid across the card */
.wb6-menu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* Animated gold sweep along the top edge */
.wb6-menu-glow {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.75), transparent);
  animation: wb6TopSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wb6TopSweep {
  0%, 100% { opacity: 0.35; transform: scaleX(0.6); }
  50%      { opacity: 1;    transform: scaleX(1); }
}

/* ── Close button — clearly visible, gold hover ── */
.wb6-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.wb6-close-btn:hover {
  color: #101010;
  background: #ffd700;
  border-color: #ffd700;
  transform: rotate(90deg) scale(1.06);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.4);
}

/* ── VS header ── */
.wb6-vs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 6px 0 18px;
}

.wb6-vs-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wb6-vs-portrait {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.07), transparent 70%),
    #0a0a0d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7), 0 6px 18px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
}

.wb6-vs-portrait canvas { width: 74px; height: 74px; }

.wb6-vs-boss {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7), 0 0 26px rgba(255, 215, 0, 0.14);
}

.wb6-vs-boss img {
  width: 44px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.45));
  animation: wb6BossHover 2.6s ease-in-out infinite alternate;
}

@keyframes wb6BossHover {
  0%   { transform: translateY(3px); }
  100% { transform: translateY(-3px); }
}

.wb6-vs-name {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}

.wb6-vs-name-boss { color: #ffd700; text-shadow: 0 0 14px rgba(255, 215, 0, 0.4); }

.wb6-vs-role {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.wb6-vs-badge {
  position: relative;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wb6-vs-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 0, 0.35);
  animation: wb6VsPulse 2s ease-out infinite;
}

@keyframes wb6VsPulse {
  0%   { transform: scale(0.75); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

.wb6-vs-badge span {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 1.05rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #ffd700;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.55);
}

.wb6-menu-title {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.wb6-menu-sub {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  max-width: 460px;
  margin: 0 auto 26px;
}

/* ── Two-column selection area ── */
.wb6-menu-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 26px;
  text-align: left;
  position: relative;
}

.wb6-section-label {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wb6-section-label span {
  color: #ffd700;
  font-size: 0.62rem;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1;
}

/* ── Character rows: live preview + stats ── */
.wb6-char-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wb6-char-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 9px 14px 9px 9px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.wb6-char-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateX(3px);
}

.wb6-char-row.wb6-selected {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.09), rgba(255, 215, 0, 0.025));
  border-color: rgba(255, 215, 0, 0.65);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.12);
}

.wb6-char-row.wb6-selected::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 3px;
  background: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.wb6-char-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.06), transparent 70%), #0a0a0d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  flex-shrink: 0;
}

.wb6-char-thumb canvas { width: 100%; height: 100%; display: block; }

.wb6-char-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.wb6-char-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.wb6-char-top strong {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.wb6-char-top small {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(255, 215, 0, 0.75);
  letter-spacing: 0.03em;
}

/* Full-width stat bars under the name — never overlaps text */
.wb6-char-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wb6-stat {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
}

.wb6-stat em {
  font-style: normal;
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.wb6-stat-track {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.wb6-stat-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #8a8a8a, #e8e8e8);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wb6-char-row.wb6-selected .wb6-stat-fill {
  background: linear-gradient(90deg, #ccaa00, #ffd700);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Rules strip above the start button */
.wb6-rules-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

/* ── Difficulty rows ── */
.wb6-diff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wb6-diff-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgba(255, 255, 255, 0.6);
}

.wb6-diff-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateX(3px);
}

.wb6-diff-row.wb6-selected {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.09), rgba(255, 215, 0, 0.025));
  border-color: rgba(255, 215, 0, 0.65);
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.12);
}

.wb6-diff-row .wb6-sel-icon-svg { flex-shrink: 0; }
.wb6-diff-row.wb6-selected .wb6-sel-icon-svg {
  color: #ffd700;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.wb6-diff-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.wb6-diff-copy strong {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
}

.wb6-diff-copy small {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Boss speed pips */
.wb6-diff-pips { display: flex; gap: 3px; flex-shrink: 0; }
.wb6-diff-pips i {
  width: 5px;
  height: 14px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.wb6-diff-pips i.on { background: rgba(255, 255, 255, 0.55); }
.wb6-diff-row.wb6-selected .wb6-diff-pips i.on {
  background: #ffd700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

/* ── Personal best box ── */
.wb6-best-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.03);
  color: #ffd700;
}

.wb6-best-box em {
  font-style: normal;
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  flex: 1;
  text-align: left;
}

.wb6-best-box strong {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 1.05rem;
  font-weight: 900;
  color: #ffd700;
}

/* ── Footer: start button + key hints ── */
.wb6-menu-foot { margin-top: 28px; position: relative; }

.wb6-start-btn {
  width: 100%;
  padding: 17px 0;
  background: linear-gradient(135deg, #fff6b3, #ffd700 55%, #e8c400);
  border: none;
  border-radius: 100px;
  color: #101010;
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 34px rgba(255, 215, 0, 0.22), 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Sheen sweep across the start button */
.wb6-start-btn::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: wb6Sheen 3.2s ease-in-out infinite;
}

@keyframes wb6Sheen {
  0%, 55%  { left: -60%; }
  100%     { left: 130%; }
}

.wb6-start-btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.38), 0 14px 36px rgba(0, 0, 0, 0.5);
}

.wb6-start-btn:active { transform: translateY(0) scale(0.995); }

.wb6-start-btn svg { transition: transform 0.25s; }
.wb6-start-btn:hover svg { transform: translateX(4px); }

/* ── Key hints ── */
.wb6-controls-hint {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}

.wb6-controls-hint span { display: flex; align-items: center; gap: 5px; }

.wb6-controls-hint kbd {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 2px 6px;
  line-height: 1.2;
}

/* Legacy class kept for the difficulty icons injected via JS */
.wb6-sel-icon-svg { color: rgba(255, 255, 255, 0.55); transition: color 0.3s; }

/* ── Compact menu for small desktop displays ──
   The full-size card is ~1100px tall and fits only
   viewports >= ~1150px; below that shrink decoration
   + spacing (compact card: ~860px). */
@media (max-height: 1145px) {
  .wb6-menu-card { padding: 28px 34px 24px; }
  .wb6-badge { margin-bottom: 12px; padding: 5px 14px; }
  .wb6-vs-row { margin: 2px 0 12px; gap: 26px; }
  .wb6-vs-portrait { width: 62px; height: 62px; border-radius: 16px; margin-bottom: 6px; }
  .wb6-vs-portrait canvas { width: 54px; height: 54px; }
  .wb6-vs-boss img { width: 34px; }
  .wb6-vs-badge { width: 44px; height: 44px; }
  .wb6-menu-title { font-size: 1.5rem; margin-bottom: 5px; }
  .wb6-menu-sub { font-size: 0.8rem; margin-bottom: 16px; }
  .wb6-menu-grid { gap: 18px; }
  .wb6-section-label { margin-bottom: 8px; }
  .wb6-char-list, .wb6-diff-list { gap: 6px; }
  .wb6-char-row { grid-template-columns: 44px 1fr; gap: 10px; padding: 7px 12px 7px 7px; }
  .wb6-char-thumb { width: 44px; height: 44px; border-radius: 10px; }
  .wb6-char-main { gap: 4px; }
  .wb6-char-bars { gap: 3px; }
  .wb6-diff-row { padding: 9px 12px; }
  .wb6-best-box { margin-top: 10px; padding: 9px 12px; }
  .wb6-rules-strip { margin-top: 14px; gap: 6px; }
  .wb6-rule { padding: 5px 11px; font-size: 0.64rem; }
  .wb6-menu-foot { margin-top: 16px; }
  .wb6-start-btn { padding: 13px 0; font-size: 0.85rem; }
  .wb6-controls-hint { margin-top: 10px; gap: 10px; }
}

/* Below ~905px the compact card (~860px) no longer fits
   (1280x720 / 1366x768 / 1440x900 laptops): drop decoration
   that repeats elsewhere — VS-Header, Regel-Chips (kommen im
   Countdown wieder) und Tastatur-Hinweise (minimal: ~650px). */
@media (max-height: 905px) {
  .wb6-overlay { padding: 12px 0; }
  .wb6-menu-card { padding: 22px 30px 20px; }
  .wb6-vs-row { display: none; }
  .wb6-rules-strip { display: none; }
  .wb6-controls-hint { display: none; }
  .wb6-menu-sub { margin-bottom: 12px; }
  .wb6-menu-foot { margin-top: 14px; }
}

/* ══════════════════════════════════════════════════
   RESULT CARDS  (Win + Lose)
   ══════════════════════════════════════════════════ */
.wb6-result-card {
  position: relative;
  margin: auto 0;
  border-radius: 24px;
  padding: 60px 48px 50px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.95);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.wb6-overlay.wb6-open .wb6-result-card {
  transform: scale(1);
  opacity: 1;
}

.wb6-win-card {
  background: linear-gradient(160deg, #161616 0%, #101010 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.9), 0 0 80px rgba(255, 215, 0, 0.08);
}

.wb6-lose-card {
  background: linear-gradient(160deg, #161616 0%, #101010 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wb6-result-icon {
  display: inline-block;
  margin-bottom: 20px;
  animation: wb6IconDrop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes wb6IconDrop {
  0% { transform: scale(0) translateY(-100px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.wb6-result-card h2 {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.wb6-win-card h2 { text-shadow: 0 0 30px rgba(255, 215, 0, 0.35); }
.wb6-lose-card h2 { text-shadow: 0 0 30px rgba(255, 255, 255, 0.15); }

.wb6-result-card > p {
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 30px;
}

.wb6-result-card > p strong {
  color: #fff;
  font-weight: 800;
}

.wb6-result-card .wb6-times {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-family: var(--font-family, 'Inter', sans-serif);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: space-around;
  gap: 16px;
}

.wb6-result-card .wb6-times span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.wb6-result-card .wb6-times strong {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
}

.wb6-result-card .wb6-times .wb6-best strong {
  color: #ffd700;
}

.wb6-result-card .wb6-times em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ── Claim button: gold (achievement) ── */
.wb6-claim-btn {
  width: 100%;
  padding: 16px 0;
  background: linear-gradient(135deg, #fff6b3, #ffd700 55%, #ccaa00);
  border: none;
  border-radius: 100px;
  color: #101010;
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.22);
}

.wb6-claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.35);
}

/* ── Ghost retry button ── */
.wb6-retry-btn {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wb6-retry-btn:hover {
  color: #101010;
  border-color: #fff;
  background: #fff;
}

/* ══════════════════════════════════════════════════
   EFFECT ANIMATIONS  (injected via JS)
   ══════════════════════════════════════════════════ */
@keyframes wb6FloatUp {
  0%   { transform: translateY(0);    opacity: 1; text-shadow: 0 0 10px currentcolor; }
  100% { transform: translateY(-80px) scale(1.1); opacity: 0; text-shadow: 0 0 20px currentcolor; }
}

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