/* ==========================================================================
   WINTER-POSTAMT ARCADE — WEB.DE & GMX WEIHNACHTSFEIER EDITION
   Handgefertigtes Design-System • Keine generischen Templates
   ========================================================================== */

:root {
    --bg-night-deep: #06101e;
    --bg-night-mid: #0b1c31;
    --bg-pine-dark: #0c231e;
    --bg-card: rgba(11, 25, 44, 0.86);
    --bg-card-warm: rgba(20, 34, 54, 0.92);

    --webde-yellow: #ffcc00;
    --webde-amber: #f59e0b;
    --gmx-blue: #1c449b;
    --gmx-cyan: #38bdf8;

    --holly-red: #d92626;
    --holly-crimson: #991b1b;
    --pine-green: #15803d;
    --pine-bright: #22c55e;
    --gold-brass: #d4af37;
    --gold-light: #fde68a;
    --snow-white: #f8fafc;
    --cream-text: #f4efe6;
    --muted-frost: #94a3b8;

    --border-brass: rgba(212, 175, 55, 0.38);
    --border-frost: rgba(148, 163, 184, 0.22);
    --shadow-warm: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 204, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100vh;
    background-color: var(--bg-night-deep);
    color: var(--cream-text);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    user-select: none;
}

/* Winterlicher Nachthimmel mit Nordlicht-Schimmer und verschneiter Stadtsilhouette */
body {
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(28, 68, 155, 0.42), transparent 70%),
        radial-gradient(ellipse 60% 40% at 15% 20%, rgba(21, 128, 61, 0.18), transparent 65%),
        radial-gradient(ellipse 60% 40% at 85% 15%, rgba(217, 38, 38, 0.14), transparent 65%),
        linear-gradient(180deg, #050d1a 0%, #0b1b30 55%, #0d233a 85%, #102a42 100%);
    position: relative;
}

/* Festliche Hintergrund-Themes */
body.theme-fireplace {
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(217, 38, 38, 0.45), transparent 70%),
        radial-gradient(ellipse 65% 45% at 20% 25%, rgba(245, 158, 11, 0.24), transparent 65%),
        radial-gradient(ellipse 60% 40% at 85% 20%, rgba(180, 83, 9, 0.22), transparent 65%),
        linear-gradient(180deg, #16090b 0%, #240f12 55%, #1c120d 85%, #140d0a 100%);
}

body.theme-icepalace {
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -10%, rgba(56, 189, 248, 0.46), transparent 72%),
        radial-gradient(ellipse 65% 45% at 15% 20%, rgba(14, 165, 233, 0.22), transparent 65%),
        radial-gradient(ellipse 60% 45% at 85% 20%, rgba(28, 68, 155, 0.35), transparent 65%),
        linear-gradient(180deg, #041224 0%, #092140 55%, #0d2f56 85%, #0e3864 100%);
}

/* Hintergrund-Schnee-Canvas (über das gesamte Fenster, klick-transparent) */
#snowCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 30;
}

/* Verschneite Horizont-Silhouette am unteren Bildschirmrand */
.winter-skyline {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.55;
}

/* ==========================================================================
   LICHTERKETTE (ANIMATED FAIRY LIGHTS) AM OBEREN BILDSCHIRMRAND
   ========================================================================== */
.fairy-lights-wrap {
    position: relative;
    width: 100%;
    height: 34px;
    z-index: 25;
    overflow: hidden;
    pointer-events: none;
    margin-bottom: -6px;
}

.fairy-wire {
    position: absolute;
    top: 4px;
    left: -2%;
    width: 104%;
    height: 16px;
    border-bottom: 2px solid #1e293b;
    border-radius: 50%;
}

.fairy-lights-row {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 12px;
}

.fairy-bulb {
    position: relative;
    width: 12px;
    height: 18px;
    border-radius: 50% 50% 55% 55%;
    margin-top: 7px;
    transform-origin: top center;
    animation: bulbSway 4.5s ease-in-out infinite alternate;
}

.fairy-bulb::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 3px;
    width: 6px;
    height: 6px;
    background: #334155;
    border-radius: 2px;
}

.fairy-bulb.warm-gold {
    background: #fde047;
    box-shadow: 0 0 14px #facc15, 0 0 28px rgba(250, 204, 21, 0.55);
    animation: bulbTwinkleGold 2.6s ease-in-out infinite alternate;
}
.fairy-bulb.holly-red {
    background: #ff4d4d;
    box-shadow: 0 0 14px #ef4444, 0 0 28px rgba(239, 68, 68, 0.55);
    animation: bulbTwinkleRed 3.1s ease-in-out infinite alternate 0.6s;
}
.fairy-bulb.pine-green {
    background: #4ade80;
    box-shadow: 0 0 14px #22c55e, 0 0 28px rgba(34, 197, 94, 0.55);
    animation: bulbTwinkleGreen 2.9s ease-in-out infinite alternate 1.1s;
}
.fairy-bulb.gmx-ice {
    background: #7dd3fc;
    box-shadow: 0 0 14px #38bdf8, 0 0 28px rgba(56, 189, 248, 0.55);
    animation: bulbTwinkleIce 3.4s ease-in-out infinite alternate 1.7s;
}

@keyframes bulbTwinkleGold {
    0% { opacity: 0.65; transform: rotate(-3deg) scale(0.94); }
    100% { opacity: 1; transform: rotate(3deg) scale(1.06); }
}
@keyframes bulbTwinkleRed {
    0% { opacity: 0.7; transform: rotate(2deg) scale(0.95); }
    100% { opacity: 1; transform: rotate(-2deg) scale(1.07); }
}
@keyframes bulbTwinkleGreen {
    0% { opacity: 0.6; transform: rotate(-2deg) scale(0.93); }
    100% { opacity: 1; transform: rotate(3deg) scale(1.05); }
}
@keyframes bulbTwinkleIce {
    0% { opacity: 0.72; transform: rotate(3deg) scale(0.95); }
    100% { opacity: 1; transform: rotate(-3deg) scale(1.06); }
}

/* ==========================================================================
   TOP HEADER & FESTIVE MARQUEE
   ========================================================================== */
.app-shell {
    position: relative;
    z-index: 10;
    max-width: 1620px;
    margin: 0 auto;
    padding: 4px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.festive-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(14, 30, 52, 0.94) 0%, rgba(19, 39, 66, 0.92) 50%, rgba(14, 30, 52, 0.94) 100%);
    border: 1px solid var(--border-brass);
    border-radius: 18px;
    box-shadow: var(--shadow-warm);
    position: relative;
}

/* Schneehaube auf dem Header */
.festive-header::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 24px;
    right: 24px;
    height: 6px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(248, 250, 252, 0.85) 12%,
        rgba(248, 250, 252, 0.95) 28%,
        transparent 38%,
        rgba(248, 250, 252, 0.9) 55%,
        rgba(248, 250, 252, 0.8) 78%,
        transparent 100%);
    border-radius: 8px;
    filter: blur(0.4px);
    pointer-events: none;
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-badges-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-badge-webde {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 11px;
    background: linear-gradient(180deg, #ffdb4d 0%, #ffcc00 60%, #e6b800 100%);
    color: #111827;
    font-weight: 900;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    border: 1px solid #fde047;
}

.hero-badge-gmx {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 11px;
    background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
    color: #0f2454;
    font-weight: 900;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid #38bdf8;
}

.brand-logo-img {
    display: block;
    object-fit: contain;
}

.brand-logo-img.is-webde {
    width: 22px;
    height: 22px;
}

.brand-logo-img.is-gmx {
    height: 20px;
    width: auto;
}

.header-title-block h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 800;
    color: #fffbeb;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-title-block h1 .gold-accent {
    color: var(--webde-yellow);
}

.header-subtitle {
    font-size: 0.8rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.season-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(217, 38, 38, 0.22);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header Quick Actions (Audio, Snow, Beamer Mode, Hero Picker) */
.header-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.festive-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 29, 48, 0.88);
    color: #e2e8f0;
}

.festive-btn:hover {
    border-color: var(--webde-yellow);
    background: rgba(26, 46, 74, 0.95);
    transform: translateY(-1px);
}

.festive-btn:active {
    transform: translateY(0);
}

.festive-btn.active-toggle {
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.45), rgba(15, 45, 30, 0.9));
    border-color: #4ade80;
    color: #dcfce7;
}

.festive-btn.primary-cta {
    background: linear-gradient(180deg, #ffdb4d 0%, #ffcc00 100%);
    color: #0f172a;
    border-color: #fef08a;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.festive-btn.primary-cta:hover {
    background: linear-gradient(180deg, #ffe57f 0%, #ffd633 100%);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.45);
}

.festive-btn.crimson-cta {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    color: #fff;
    border-color: #f87171;
    font-weight: 800;
}

/* ==========================================================================
   MAIN 3-COLUMN BEAMER & PARTY GRID
   ========================================================================== */
.arcade-stage-grid {
    display: grid;
    grid-template-columns: 350px minmax(520px, 640px) 360px;
    justify-content: center;
    align-items: start;
    gap: 18px;
}

/* Beamer-Kino-Modus (vergrößert die Mitte für große Projektionsflächen) */
body.beamer-cinema-mode .arcade-stage-grid {
    grid-template-columns: 320px minmax(600px, 760px) 330px;
}

@media (max-width: 1360px) {
    .arcade-stage-grid,
    body.beamer-cinema-mode .arcade-stage-grid {
        grid-template-columns: 1fr minmax(500px, 620px);
    }
    .col-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 960px) {
    .arcade-stage-grid,
    body.beamer-cinema-mode .arcade-stage-grid {
        grid-template-columns: 1fr;
    }
    .col-right {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WOOD, BRASS & FROST CARDS
   ========================================================================== */
.winter-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-brass);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow-warm);
    position: relative;
}

.winter-card + .winter-card {
    margin-top: 14px;
}

/* Dezente Schneeschicht auf den Karten */
.winter-card::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 18px;
    right: 18px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75) 25%, rgba(255, 255, 255, 0.85) 50%, transparent 85%);
    border-radius: 6px;
    pointer-events: none;
}

.card-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.card-section-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-tag {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 204, 0, 0.14);
    color: var(--webde-yellow);
    border: 1px solid rgba(255, 204, 0, 0.3);
}

/* ==========================================================================
   LEFT COLUMN: DIE GUTEN VS. DIE BÖSEN (CAST SHOWCASE)
   ========================================================================== */
.faction-block {
    border-radius: 13px;
    padding: 11px;
    margin-bottom: 11px;
}

.faction-good {
    background: linear-gradient(135deg, rgba(28, 68, 155, 0.28) 0%, rgba(21, 128, 61, 0.22) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.faction-bigtech {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.24) 0%, rgba(30, 41, 59, 0.5) 100%);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.faction-scammers {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.28) 0%, rgba(15, 23, 42, 0.65) 100%);
    border: 1px solid rgba(192, 132, 252, 0.35);
    margin-bottom: 0;
}

.faction-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    white-space: nowrap;
}

.faction-pill {
    font-size: 0.64rem;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(6, 16, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
}

.faction-good .faction-heading { color: #7dd3fc; }
.faction-bigtech .faction-heading { color: #fca5a5; }
.faction-scammers .faction-heading { color: #d8b4fe; }

.cast-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cast-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 7px;
    border-radius: 10px;
    background: rgba(6, 16, 30, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.cast-item:hover {
    transform: translateX(3px);
    border-color: rgba(255, 204, 0, 0.35);
}

.cast-portrait {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    background: #050c17;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.cast-info {
    min-width: 0;
    flex: 1;
}

.cast-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cast-role-badge {
    font-size: 0.63rem;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
}

.cast-desc {
    font-size: 0.71rem;
    color: #94a3b8;
    line-height: 1.25;
    margin-top: 1px;
}

/* Weihnachts-Vorteils-Banner (Werbe-Botschaft für WEB.DE & GMX) */
.promo-story-box {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.12), rgba(28, 68, 155, 0.25));
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: 13px;
    padding: 12px;
}

.promo-quote {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.88rem;
    color: #fef3c7;
    line-height: 1.4;
    margin-bottom: 8px;
}

.promo-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.promo-pillar {
    font-size: 0.71rem;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(6, 16, 30, 0.65);
    padding: 6px 8px;
    border-radius: 8px;
    border-left: 3px solid var(--webde-yellow);
}

.promo-pillar.gmx-accent {
    border-left-color: var(--gmx-cyan);
}

/* ==========================================================================
   CENTER COLUMN: THE FESTIVE ARCADE CABINET
   ========================================================================== */
.cabinet-outer {
    background: linear-gradient(180deg, #16263d 0%, #0b1628 50%, #091220 100%);
    border: 2px solid rgba(212, 175, 55, 0.55);
    border-radius: 24px;
    padding: 14px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(28, 68, 155, 0.35),
        inset 0 2px 3px rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Tannenzweig- & Gold-Akzent oben am Automaten */
.cabinet-marquee {
    background: linear-gradient(90deg, #7f1d1d 0%, #14532d 50%, #1e3a8a 100%);
    border: 1.5px solid #facc15;
    border-radius: 15px;
    padding: 10px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.marquee-game-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fef08a;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.marquee-game-sub {
    font-size: 0.74rem;
    color: #e2e8f0;
    font-weight: 600;
}

/* HUD Telemetry Bar */
.hud-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    background: rgba(6, 13, 25, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 9px 14px;
    margin-bottom: 12px;
}

.hud-metric-label {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    font-weight: 700;
}

.hud-score-digits {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--webde-yellow);
    text-shadow: 0 0 12px rgba(255, 204, 0, 0.4);
    line-height: 1.1;
}

.hud-record-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #7dd3fc;
    font-weight: 700;
    margin-top: 1px;
}

.hud-mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hud-mode-pill.is-demo {
    background: rgba(255, 204, 0, 0.16);
    border: 1.5px solid rgba(255, 204, 0, 0.65);
    color: #fde047;
    box-shadow: 0 0 16px rgba(255, 204, 0, 0.25);
}

.hud-mode-pill.is-manual {
    background: rgba(34, 197, 94, 0.2);
    border: 1.5px solid #4ade80;
    color: #bbf7d0;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.28);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: dotPulse 1.4s infinite ease-in-out;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(0.85); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
}

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

.lives-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

/* Canvas Viewport Container */
.canvas-bezel {
    position: relative;
    width: 100%;
    max-width: min(100%, 546px, 55vh);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    background: #040914;
    border-radius: 16px;
    border: 2px solid rgba(56, 189, 248, 0.35);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-bezel.shake-hit {
    animation: canvasHitShake 0.32s cubic-bezier(.36, .07, .19, .97) both;
    border-color: #ef4444;
    box-shadow: inset 0 0 30px rgba(239, 68, 68, 0.45), 0 0 22px rgba(239, 68, 68, 0.45);
}

@keyframes canvasHitShake {
    0%, 100% { transform: translate3d(0, 0, 0); }
    20% { transform: translate3d(-6px, 2px, 0); }
    40% { transform: translate3d(6px, -2px, 0); }
    60% { transform: translate3d(-4px, -2px, 0); }
    80% { transform: translate3d(4px, 2px, 0); }
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
}

/* Pause-Overlay im Spielfeld */
.pause-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 24, 0.84);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    z-index: 18;
}

.pause-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 204, 0, 0.18);
    border: 1px solid var(--webde-yellow);
    color: #fde047;
    margin-bottom: 10px;
}

.pause-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fffbeb;
    margin-bottom: 6px;
}

.pause-sub {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* Beamer Demo Banner über dem Spielfeld (kein Verdecken von Spielelementen) */
.demo-attract-overlay {
    margin: 0 auto 8px;
    width: fit-content;
    max-width: 100%;
    background: rgba(8, 18, 34, 0.92);
    border: 1.5px solid rgba(255, 204, 0, 0.65);
    border-radius: 14px;
    padding: 5px 14px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #fef9c3;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.demo-attract-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-progress-track {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.demo-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffcc00, #38bdf8);
    transition: width 0.25s linear;
}

/* Untere Kampagnen-Bauchbinde unter dem Spielfeld */
.beamer-campaign-ticker {
    margin-top: 10px;
    background: linear-gradient(90deg, rgba(12, 26, 48, 0.95), rgba(20, 44, 76, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 11px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.ticker-badge {
    background: var(--webde-yellow);
    color: #0f172a;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.ticker-text {
    font-size: 0.75rem;
    color: #f1f5f9;
    font-weight: 600;
    line-height: 1.3;
}

/* Modal für Sieg / Spielende & Highscore-Eintragung */
.arcade-modal {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 24, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    z-index: 20;
}

.arcade-modal.hidden,
.hidden {
    display: none !important;
}

.modal-crest {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.25), rgba(28, 68, 155, 0.3));
    border: 2px solid var(--webde-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.35);
}

.modal-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fef08a;
    margin-bottom: 6px;
}

.modal-subtext {
    font-size: 0.9rem;
    color: #cbd5e1;
    max-width: 380px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.highscore-submit-card {
    width: 100%;
    max-width: 360px;
    background: rgba(15, 29, 50, 0.95);
    border: 1.5px solid var(--webde-yellow);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
}

.highscore-form-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.highscore-input {
    flex: 1;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid #475569;
    background: #060d1a;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
}

.highscore-input:focus {
    outline: none;
    border-color: var(--webde-yellow);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25);
}

/* Cabinet Bottom Controls */
.cabinet-control-deck {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.deck-left, .deck-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile / Touch D-Pad */
.touch-dpad-wrap {
    display: none;
    margin-top: 12px;
    justify-content: center;
}

@media (max-width: 768px) {
    .touch-dpad-wrap {
        display: flex;
    }
}

.dpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 52px);
    grid-template-rows: repeat(2, 48px);
    gap: 6px;
}

.dpad-btn {
    border-radius: 10px;
    background: #1e293b;
    border: 1px solid #475569;
    color: #f8fafc;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    touch-action: manipulation;
}

.dpad-btn.dpad-fire {
    background: linear-gradient(180deg, rgba(255, 204, 0, 0.2), rgba(28, 68, 155, 0.45));
    border-color: rgba(255, 204, 0, 0.6);
    color: #fde047;
}

.dpad-btn:active {
    background: var(--webde-yellow);
    color: #0f172a;
}

/* ==========================================================================
   RIGHT COLUMN: CARTRIDGE SELECTOR & HALL OF FAME
   ========================================================================== */
.cartridge-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cartridge-card {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    text-align: left;
    padding: 7px 11px;
    border-radius: 12px;
    background: rgba(8, 19, 35, 0.78);
    border: 1.5px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
}

.cartridge-card:hover {
    border-color: rgba(255, 204, 0, 0.55);
    background: rgba(18, 36, 62, 0.9);
    transform: translateX(3px);
}

.cartridge-card.active-cartridge {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.2) 0%, rgba(28, 68, 155, 0.4) 100%);
    border-color: var(--webde-yellow);
    box-shadow: 0 4px 18px rgba(255, 204, 0, 0.18);
}

.cartridge-num {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 204, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--webde-yellow);
    flex-shrink: 0;
}

.cartridge-card.active-cartridge .cartridge-num {
    background: var(--webde-yellow);
    color: #0f172a;
}

.cartridge-meta {
    flex: 1;
    min-width: 0;
}

.cartridge-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cartridge-title > span:last-child {
    white-space: nowrap;
    flex-shrink: 0;
}

.cartridge-best-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.42);
    color: #7dd3fc;
}

.cartridge-sub {
    font-size: 0.71rem;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Champion Banner & Team-Battle */
.champion-banner {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.16), rgba(217, 38, 38, 0.14));
    border: 1px solid rgba(255, 204, 0, 0.45);
    font-size: 0.74rem;
    font-weight: 800;
    color: #fef08a;
}

.champion-crown {
    color: #ffcc00;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.team-battle-box {
    background: rgba(6, 15, 28, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 7px 10px;
    margin-bottom: 9px;
}

.team-battle-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.71rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.team-label-webde {
    color: #fde047;
}

.team-label-gmx {
    color: #7dd3fc;
}

.team-vs-tag {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 800;
}

.team-battle-bar {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1c449b, #38bdf8);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.team-webde-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ffcc00);
    transition: width 0.35s ease;
}

.reset-scores-btn {
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.85);
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.66rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.reset-scores-btn:hover {
    color: #fde047;
    border-color: var(--webde-yellow);
}

.hs-team-badge {
    font-size: 0.58rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.hs-team-badge.is-webde {
    background: rgba(255, 204, 0, 0.2);
    color: #fde047;
    border: 1px solid rgba(255, 204, 0, 0.45);
}

.hs-team-badge.is-gmx {
    background: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.hs-team-badge.is-duo {
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Highscore Bestenliste */
.leaderboard-filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.filter-tab {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(9, 20, 36, 0.7);
    color: #94a3b8;
    transition: all 0.15s ease;
}

.filter-tab.active-tab {
    background: var(--webde-yellow);
    color: #0f172a;
    border-color: #fef08a;
}

.highscore-rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 225px;
    overflow-y: auto;
}

.hs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(6, 15, 28, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.79rem;
}

.hs-row.top-rank-1 {
    background: linear-gradient(90deg, rgba(255, 204, 0, 0.18), rgba(6, 15, 28, 0.8));
    border-color: rgba(255, 204, 0, 0.45);
}

.hs-rank-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.75rem;
    background: rgba(30, 41, 59, 0.9);
    color: #cbd5e1;
    flex-shrink: 0;
}

.hs-row.top-rank-1 .hs-rank-badge {
    background: var(--webde-yellow);
    color: #0f172a;
}

.hs-player-name {
    font-weight: 800;
    color: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hs-game-pill {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(28, 68, 155, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #bae6fd;
    flex-shrink: 0;
}

.hs-score-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: var(--webde-yellow);
    font-size: 0.88rem;
    flex-shrink: 0;
}

/* Footer */
.festive-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    padding: 8px 0 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
