/* ==========================================================================
   DESIGN TOKENS & GRUNDLAYOUT (100 % EIGENSTÄNDIG, KEINE EXTERNEN CDNS)
   ========================================================================== */
:root {
    --bg-dark: #07090f;
    --bg-radial: #161b2e;
    --cabinet-bg: linear-gradient(165deg, #21263a 0%, #111522 58%, #090c14 100%);
    --gold-light: #ffe99e;
    --gold-main: #f3b53f;
    --gold-dark: #9c640c;
    --brass-border: #c9982e;
    --neon-red: #ff2a5f;
    --neon-amber: #f59e0b;
    --emerald: #10b981;
    --ai-cyan: #38bdf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --cell-h: 62px;
}

@media (max-width: 400px) {
    :root {
        --cell-h: 57px;
    }
}

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

html, body {
    width: 100%;
    min-height: 100dvh;
    background: transparent !important;
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px 24px;
}

/* Konfetti- & Feuerwerk-Canvas liegt über allen Elementen inkl. Gutschein-Modal */
#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 260;
}

/* ==========================================================================
   AUTOMATEN-GEHÄUSE & SEITENHEBEL WRAPPER
   ========================================================================== */
.machine-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.cabinet-column {
    flex: 1;
    min-width: 0;
    max-width: 546px;
    display: flex;
    flex-direction: column;
}

.slot-cabinet {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 546px;
    background: var(--cabinet-bg);
    border: 3px solid var(--gold-dark);
    border-radius: 24px;
    padding: 12px;
    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.88),
        0 0 32px rgba(243, 181, 63, 0.16),
        inset 0 2px 3px rgba(255, 255, 255, 0.14);
    z-index: 2;
}

/* ==========================================================================
   1. VINTAGE LAS VEGAS CASINO MARQUEE HEADER ("AIM")
   ========================================================================== */
.marquee-housing {
    position: relative;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 160, 60, 0.18), transparent 70%),
        linear-gradient(180deg, #74121b 0%, #520b12 52%, #38060b 100%);
    border: 2px solid #9e6d1a;
    border-radius: 16px;
    padding: 20px 20px;
    margin-bottom: 10px;
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.75),
        0 0 24px rgba(255, 150, 40, 0.18),
        inset 0 1px 3px rgba(255, 215, 140, 0.35),
        inset 0 0 14px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

@media (max-width: 420px) {
    .marquee-housing {
        padding: 16px 16px;
    }
}

/* Umlaufende Glühbirnen-Leisten (Oben, Unten, Links, Rechts) */
.bulb-row-top,
.bulb-row-bottom {
    position: absolute;
    left: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 3;
}

.bulb-row-top { top: 3px; }
.bulb-row-bottom { bottom: 3px; }

.bulb-col-left,
.bulb-col-right {
    position: absolute;
    top: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    pointer-events: none;
    z-index: 3;
}

.bulb-col-left { left: 3px; }
.bulb-col-right { right: 3px; }

/* Einzelne realistische Casino-Glühbirne mit Messingfassung & Glanzpunkt */
.marquee-bulb {
    position: relative;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid #8a5614;
    background: radial-gradient(
        circle at 40% 38%,
        #ffffff 0%,
        #fff5c0 25%,
        #ffc238 56%,
        #c4620a 84%,
        #4f1f04 100%
    );
    box-shadow:
        0 0 7px rgba(255, 198, 75, 0.9),
        0 0 14px rgba(255, 130, 20, 0.45),
        inset 0 1px 2px rgba(255, 255, 255, 0.92);
}

.marquee-bulb::after {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 2.5px;
    width: 4px;
    height: 2.5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    transform: rotate(-28deg);
}

@media (max-width: 420px) {
    .marquee-bulb {
        width: 10px;
        height: 10px;
    }
    .bulb-col-left,
    .bulb-col-right {
        top: 18px;
        bottom: 18px;
    }
}

/* Sanftes Casino-Lauflicht (beschleunigt beim Drehen & Feiern) */
.marquee-bulb.bulb-even {
    animation: bulbChase 1.3s ease-in-out infinite alternate;
}

.marquee-bulb.bulb-odd {
    animation: bulbChase 1.3s ease-in-out 0.65s infinite alternate;
}

.marquee-housing.spinning .marquee-bulb.bulb-even {
    animation-duration: 0.24s;
}

.marquee-housing.spinning .marquee-bulb.bulb-odd {
    animation-duration: 0.24s;
    animation-delay: 0.12s;
}

.marquee-housing.celebrating .marquee-bulb.bulb-even {
    animation: bulbWinFlash 0.18s ease-in-out infinite alternate;
}

.marquee-housing.celebrating .marquee-bulb.bulb-odd {
    animation: bulbWinFlash 0.18s ease-in-out 0.09s infinite alternate;
}

@keyframes bulbChase {
    0% {
        filter: brightness(0.68);
        box-shadow: 0 0 3px rgba(255, 175, 50, 0.45);
    }
    100% {
        filter: brightness(1.14);
        box-shadow: 0 0 9px rgba(255, 214, 102, 0.98), 0 0 18px rgba(255, 145, 25, 0.65);
    }
}

@keyframes bulbWinFlash {
    0% {
        filter: brightness(0.75);
        transform: scale(0.95);
    }
    100% {
        filter: brightness(1.35);
        transform: scale(1.08);
        box-shadow: 0 0 12px #fff2a6, 0 0 22px #ff9914;
    }
}

/* Innere dunkle Hochglanz-Schildplatte mit gebürstetem Goldrahmen */
.marquee-plate {
    position: relative;
    background: radial-gradient(ellipse at 50% 42%, #151e34 0%, #090d18 65%, #04060b 100%);
    border: 2px solid var(--brass-border);
    border-radius: 9px;
    padding: 8px 10px 9px;
    text-align: center;
    box-shadow:
        inset 0 0 22px rgba(0, 0, 0, 0.9),
        inset 0 1px 1px rgba(255, 232, 165, 0.25),
        0 0 10px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Dezenter Lautsprecher-Button oben rechts auf der Schildplatte */
.sound-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 152, 46, 0.42);
    color: var(--text-main);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.2s ease;
}

.sound-btn:hover {
    background: rgba(243, 181, 63, 0.2);
    border-color: var(--gold-light);
}

/* Zeile 1: Riesiges "AIM" im Las-Vegas-Jackpot-Stil (Rot-Orange-Verlauf + Gelber Rand) */
.aim-svg-logo {
    display: block;
    width: 100%;
    max-width: 235px;
    height: auto;
    margin: 0 auto 2px;
    filter: drop-shadow(0 3px 10px rgba(255, 110, 20, 0.45));
}

/* Zeile 2: "Algorithmic Information Maschine" mit exakten Hex-Farben (#A11541 / #9C6A00) */
.aim-subtitle-pill {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3em;
    padding: 2px 11px 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 247, 226, 0.11), rgba(255, 242, 210, 0.05));
    border: 1px solid rgba(255, 245, 220, 0.14);
    box-shadow: 0 0 12px rgba(255, 220, 145, 0.08);
    margin-bottom: 5px;
    font-size: clamp(0.82rem, 2.9vw, 0.96rem);
    line-height: 1.2;
    letter-spacing: 0.25px;
    text-shadow: 0 0 9px rgba(255, 238, 195, 0.18);
}

.aim-word {
    white-space: nowrap;
}

.aim-init {
    font-weight: 900;
    color: #e83516;
}

.aim-rest {
    font-weight: 500;
    color: #FFD54F;
}

/* Zeile 3: Tagline klein in Großbuchstaben */
.aim-tagline {
    font-size: clamp(0.54rem, 1.95vw, 0.66rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.85px;
    color: #ebd08d;
    line-height: 1.25;
    opacity: 0.95;
}

/* ==========================================================================
   JACKPOT-BANNER & 5-SEGMENT-GOAL-GRADIENT-LEISTE
   ========================================================================== */
.jackpot-banner {
    background: linear-gradient(135deg, rgba(243, 181, 63, 0.13), rgba(255, 42, 95, 0.11));
    border: 1px solid rgba(243, 181, 63, 0.38);
    border-radius: 12px;
    padding: 7px 10px;
    margin-bottom: 9px;
    transition: all 0.3s ease;
}

.jackpot-banner.unlocked {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(243, 181, 63, 0.26));
    border-color: var(--emerald);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}

.jackpot-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 5px;
    text-align: center;
}

.jackpot-words {
    font-size: clamp(0.73rem, 2.65vw, 0.83rem);
    font-weight: 900;
    color: var(--gold-light);
    letter-spacing: 0.2px;
}

.jackpot-status {
    font-size: 0.64rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(243, 181, 63, 0.4);
    color: var(--gold-main);
    white-space: nowrap;
}

.jackpot-status.urgent-pill {
    background: rgba(255, 42, 95, 0.28);
    border-color: var(--neon-red);
    color: #ffe4e6;
    animation: urgentPillBlink 0.75s ease-in-out infinite alternate;
}

@keyframes urgentPillBlink {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); box-shadow: 0 0 10px rgba(255, 42, 95, 0.6); }
}

.jackpot-banner.unlocked .jackpot-status {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--emerald);
    color: #a7f3d0;
}

.goal-segments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.goal-seg {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s ease;
}

.goal-seg.filled {
    background: linear-gradient(90deg, var(--gold-main), var(--emerald));
    border-color: var(--gold-light);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.goal-seg.urgent {
    background: rgba(255, 42, 95, 0.38);
    border-color: var(--neon-red);
    animation: urgentPulse 0.8s ease-in-out infinite alternate;
}

@keyframes urgentPulse {
    0% { opacity: 0.45; transform: scaleY(1); }
    100% { opacity: 1; transform: scaleY(1.28); box-shadow: 0 0 10px var(--neon-red); }
}

/* ==========================================================================
   3x3 WALZENTROMMEL (KLASSISCHER EINARMIGER BANDIT)
   ========================================================================== */
.reel-frame {
    position: relative;
    background: linear-gradient(180deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    padding: 5px;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.72);
    margin-bottom: 8px;
    transition: box-shadow 0.3s ease;
}

.reel-frame.tension-glow {
    box-shadow: 0 0 28px rgba(255, 42, 95, 0.82), 0 0 48px rgba(243, 181, 63, 0.55);
}

.reel-frame.win-glow {
    box-shadow: 0 0 32px rgba(16, 185, 129, 0.85), 0 0 55px rgba(243, 181, 63, 0.65);
}

.reel-frame.jackpot-glow {
    box-shadow: 0 0 42px rgba(255, 42, 95, 0.95), 0 0 75px rgba(243, 181, 63, 0.95);
}

.reels-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    background: #141824;
    border-radius: 12px;
    overflow: hidden;
    height: calc(var(--cell-h) * 3);
}

/* Zylindrische 3D-Trommel-Schattierung oben & unten */
.reels-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 9, 15, 0.82) 0%,
        rgba(7, 9, 15, 0.2) 28%,
        rgba(255, 255, 255, 0) 50%,
        rgba(7, 9, 15, 0.2) 72%,
        rgba(7, 9, 15, 0.82) 100%
    );
    pointer-events: none;
    z-index: 5;
}

/* Mittlere Gewinnlinie (Payline) */
.payline {
    position: absolute;
    top: var(--cell-h);
    left: 0;
    right: 0;
    height: var(--cell-h);
    border-top: 2px solid rgba(255, 42, 95, 0.8);
    border-bottom: 2px solid rgba(255, 42, 95, 0.8);
    background: linear-gradient(90deg, rgba(255, 233, 158, 0.16), rgba(255, 248, 220, 0.28), rgba(255, 233, 158, 0.16));
    pointer-events: none;
    z-index: 4;
}

.payline::before,
.payline::after {
    content: '▶';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-red);
    font-size: 11px;
    text-shadow: 0 0 6px var(--neon-red);
}

.payline::before { left: 3px; }
.payline::after { content: '◀'; right: 3px; }

.reel-window {
    position: relative;
    background: linear-gradient(90deg, #dde3ec 0%, #ffffff 15%, #ffffff 85%, #dde3ec 100%);
    height: 100%;
    overflow: hidden;
}

.reel-window.held-glow {
    box-shadow: inset 0 0 0 3px var(--emerald);
}

.reel-window.suspense-glow {
    box-shadow: inset 0 0 0 3px var(--neon-red);
    animation: suspenseFlash 0.32s ease-in-out infinite alternate;
}

@keyframes suspenseFlash {
    0% { background: #ffffff; }
    100% { background: #ffe4e6; }
}

.reel-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
}

.word-cell {
    height: var(--cell-h);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    text-align: center;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.34);
}

.cell-word {
    font-size: clamp(0.83rem, 3.05vw, 1.12rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.12;
    word-break: break-word;
}

.cell-word.xmas-word {
    color: #b91c1c;
    text-shadow: 0 1px 0 rgba(243, 181, 63, 0.7);
}

.cell-cat-icon {
    font-size: 0.88rem;
    line-height: 1;
    margin-top: 3px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.16));
}

.word-cell.win-pulse .cell-word {
    animation: wordBounce 0.5s ease-in-out infinite alternate;
    color: #047857;
}

.word-cell.jackpot-pulse .cell-word {
    animation: wordBounce 0.45s ease-in-out infinite alternate;
    color: #be123c;
}

.word-cell.nearmiss-pulse .cell-word {
    animation: wordBounce 0.48s ease-in-out infinite alternate;
    color: #b45309;
}

@keyframes wordBounce {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

/* ==========================================================================
   3ER-KATEGORIE-ICON-LEISTE & HOLD-BUTTONS UNTER DEN WALZEN
   ========================================================================== */
.cat-icon-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 6px;
}

.cat-badge-cell {
    background: rgba(11, 15, 25, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    padding: 5px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-badge-cell.active-match {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.18);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.cat-badge-cell.jackpot-match {
    border-color: var(--gold-main);
    background: rgba(243, 181, 63, 0.22);
    box-shadow: 0 0 12px rgba(243, 181, 63, 0.45);
}

.cat-badge-cell.nearmiss-match {
    border-color: var(--neon-amber);
    background: rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.strip-icon {
    font-size: 0.9rem;
}

.strip-name {
    font-size: 0.67rem;
    font-weight: 800;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hold-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 9px;
}

.hold-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    border-radius: 9px;
    padding: 6px 4px;
    font-size: 0.71rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
}

.hold-btn:hover:not(:disabled) {
    border-color: rgba(243, 181, 63, 0.45);
    color: #ffffff;
}

.hold-btn.held {
    background: linear-gradient(180deg, #10b981, #059669);
    border-color: #6ee7b7;
    color: #042f2e;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

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

/* ==========================================================================
   KI-HALLUZINATIONS- & SATZ-ANALYSE-BOX
   ========================================================================== */
.ai-panel {
    background: #0b0f19;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 14px;
    padding: 9px 11px;
    margin-bottom: 9px;
}

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

.status-tag {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.tag-impulse {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--emerald);
    color: #6ee7b7;
}

.tag-jackpot {
    background: linear-gradient(90deg, rgba(243, 181, 63, 0.32), rgba(255, 42, 95, 0.32));
    border: 1px solid var(--gold-main);
    color: var(--gold-light);
}

.tag-nearmiss {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--neon-amber);
    color: #fde68a;
}

.tag-kreativ {
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid var(--ai-cyan);
    color: #bae6fd;
}

.tag-maschinenmoment {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.6);
    color: #e9d5ff;
}

.direction-chip {
    display: none;
}

.sentence-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 6px 10px;
    margin-bottom: 7px;
}

.sentence-text {
    font-size: clamp(0.88rem, 3.1vw, 1.0rem);
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1.25;
}

.copy-btn {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.07));
    border: 1px solid rgba(56, 189, 248, 0.42);
    color: #e0f2fe;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 0.69rem;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.copy-btn:hover {
    background: rgba(56, 189, 248, 0.28);
    border-color: var(--ai-cyan);
    color: #ffffff;
    transform: translateY(-1px);
}

.sim-caption {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    opacity: 0.85;
    margin-bottom: 4px;
    text-align: right;
}

.meters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 6px;
}

.meter-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meter-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.63rem;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.meter-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.meter-fill-flow {
    height: 100%;
    width: 88%;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    transition: width 0.45s ease;
}

.meter-fill-fact {
    height: 100%;
    width: 92%;
    background: linear-gradient(90deg, #a855f7, #10b981);
    transition: width 0.45s ease;
}

.verdict-line {
    font-size: 0.74rem;
    color: #cbd5e1;
    line-height: 1.35;
}

/* ==========================================================================
   SAMMEL-ALBUM ALLER 10 KATEGORIEN (5x2 RASTER) + GUTSCHEIN-BADGE
   ========================================================================== */
.album-section {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.album-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.album-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.voucher-reopen-btn {
    display: none;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid var(--gold-light);
    color: #1e1302;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
    animation: voucherBadgePulse 1.4s ease-in-out infinite alternate;
}

.voucher-reopen-btn.visible {
    display: inline-flex;
}

@keyframes voucherBadgePulse {
    0% { transform: scale(1); box-shadow: 0 0 8px rgba(245, 158, 11, 0.45); }
    100% { transform: scale(1.05); box-shadow: 0 0 16px rgba(255, 233, 158, 0.85); }
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 5px;
    width: 100%;
}

.cat-chip {
    min-width: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    padding: 5px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0.5;
    transition: all 0.25s ease;
}

.cat-chip.unlocked {
    opacity: 1;
    cursor: pointer;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid var(--emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.24);
}

.cat-chip.unlocked:hover {
    transform: translateY(-1px);
    background: rgba(16, 185, 129, 0.25);
}

.cat-chip-icon {
    font-size: 0.94rem;
}

.cat-chip-name {
    font-size: 0.56rem;
    font-weight: 800;
    color: #e2e8f0;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   MECHANISCHER 3D-SEITENHEBEL RECHTS AM GEHÄUSE (HAUPTBEDIENUNG & SOFORT-STOPP)
   ========================================================================== */
.lever-assembly {
    position: relative;
    width: 54px;
    height: 256px;
    margin-left: -4px;
    z-index: 3;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    touch-action: none;
    cursor: grab;
}

@media (max-width: 400px) {
    .lever-assembly {
        width: 46px;
        height: 236px;
    }
}

.lever-assembly.dragging {
    cursor: grabbing;
}

.lever-housing {
    position: relative;
    width: 28px;
    height: 98px;
    background: linear-gradient(180deg, #1e293b 0%, #64748b 22%, #cbd5e1 50%, #475569 80%, #0f172a 100%);
    border: 2px solid var(--gold-dark);
    border-left: none;
    border-radius: 0 16px 16px 0;
    box-shadow: 5px 8px 18px rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lever-slot {
    width: 9px;
    height: 70px;
    background: #07090e;
    border-radius: 5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.95);
}

.lever-pivot {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 0;
    height: 0;
    z-index: 4;
}

.lever-shaft {
    position: absolute;
    left: -6px;
    bottom: 0;
    width: 12px;
    height: 126px;
    background: linear-gradient(90deg, #475569 0%, #f8fafc 35%, #94a3b8 65%, #1e293b 100%);
    border-radius: 6px 6px 3px 3px;
    transform-origin: bottom center;
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.65);
    will-change: transform;
}

.lever-collar {
    position: absolute;
    top: 3px;
    left: -2px;
    width: 16px;
    height: 8px;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    border-radius: 4px;
}

.lever-knob {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ff9eb5 0%, #ff2a5f 25%, #be123c 68%, #4c0519 100%);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.78),
        0 0 14px rgba(255, 42, 95, 0.35),
        inset 0 -3px 6px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.68);
    transition: box-shadow 0.2s ease;
}

.lever-assembly:hover .lever-knob {
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.85),
        0 0 22px rgba(255, 42, 95, 0.72),
        inset 0 -3px 6px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

.lever-knob::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 8px;
    width: 11px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(-32deg);
}

.lever-tag {
    position: absolute;
    bottom: 12px;
    left: 1px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(243, 181, 63, 0.5);
    color: var(--gold-light);
    font-size: 0.53rem;
    font-weight: 800;
    padding: 3px 5px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    animation: tagBob 1.6s ease-in-out infinite;
}

.lever-tag.stop-mode {
    border-color: var(--neon-red);
    color: #fda4af;
    background: rgba(69, 10, 25, 0.94);
}

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

/* ==========================================================================
   MODAL OVERLAYS: BASIS-BACKDROP & ANIMATION
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 210;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 42, 95, 0.35);
    border-color: var(--neon-red);
    color: #ffffff;
    transform: rotate(90deg);
}

/* ==========================================================================
   NEW FEATURE A: TEILEN & KOPIEREN OVERLAY ("#share-modal")
   ========================================================================== */
.share-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(165deg, #1b2236 0%, #0e1320 100%);
    border: 2px solid var(--brass-border);
    border-radius: 22px;
    padding: 22px 20px 20px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(56, 189, 248, 0.22),
        inset 0 1px 2px rgba(255, 255, 255, 0.16);
    transform: scale(0.9) translateY(14px);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.28, 1.08);
}

.modal-backdrop.open .share-card {
    transform: scale(1) translateY(0);
}

.share-kicker {
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ai-cyan);
    margin-bottom: 6px;
}

.share-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 14px;
}

.share-quote-stage {
    background: radial-gradient(circle at 50% 25%, rgba(243, 181, 63, 0.16), rgba(7, 10, 18, 0.9));
    border: 1.5px solid rgba(243, 181, 63, 0.45);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.7);
}

.share-quote-text {
    font-size: clamp(1.18rem, 4.4vw, 1.48rem);
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1.28;
    user-select: text;
}

.share-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.share-action-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

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

.btn-copy-exact {
    background: linear-gradient(180deg, #f6c453, #d99316);
    border: 1px solid #ffe99e;
    color: #1c1202;
    box-shadow: 0 6px 18px rgba(243, 181, 63, 0.32);
}

.btn-copy-exact.copied {
    background: linear-gradient(180deg, #10b981, #059669);
    border-color: #a7f3d0;
    color: #022c22;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-whatsapp {
    background: linear-gradient(180deg, #25d366, #159c47);
    border: 1px solid #86efac;
    color: #042812;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}

.btn-email {
    background: linear-gradient(180deg, #38bdf8, #0284c7);
    border: 1px solid #bae6fd;
    color: #041e30;
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.28);
}

/* ==========================================================================
   NEW FEATURE B: "MIT VIEL TAMTAM!" 10% GUTSCHEIN OVERLAY ("#voucher-modal")
   ========================================================================== */
#voucher-modal {
    z-index: 230;
    background: radial-gradient(circle at center, rgba(45, 18, 8, 0.86) 0%, rgba(4, 6, 12, 0.94) 75%);
    overflow: hidden;
}

/* Rotierende goldene Casino-Spotlight-Sonnenstrahlen im Hintergrund */
.tamtam-sunburst {
    position: absolute;
    width: 150vmax;
    height: 150vmax;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 215, 90, 0.19) 0deg 10deg,
        rgba(255, 65, 95, 0.05) 10deg 20deg
    );
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 0) 64%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 0) 64%);
    pointer-events: none;
    animation: spinSunburst 22s linear infinite;
    z-index: 1;
}

@keyframes spinSunburst {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.voucher-card {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 455px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 224, 130, 0.24), transparent 62%),
        linear-gradient(170deg, #2b1321 0%, #141728 52%, #0b0e19 100%);
    border: 3px solid #ffd86b;
    border-radius: 26px;
    padding: 24px 20px 20px;
    text-align: center;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.92),
        0 0 55px rgba(243, 181, 63, 0.65),
        0 0 95px rgba(255, 42, 95, 0.38),
        inset 0 2px 4px rgba(255, 248, 214, 0.45);
    transform: scale(0.65) rotate(-3deg);
    transition: transform 0.52s cubic-bezier(0.18, 1.25, 0.32, 1);
    overflow: hidden;
}

/* Schimmernder Lichtglanz über der goldenen Gutschein-Karte */
.voucher-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 244, 196, 0.26) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    animation: cardShimmer 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardShimmer {
    0% { left: -65%; }
    55%, 100% { left: 135%; }
}

#voucher-modal.open .voucher-card {
    transform: scale(1) rotate(0deg);
}

.tamtam-trophy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff7cc 0%, #f59e0b 55%, #7c2d12 100%);
    border: 2.5px solid #fff3b0;
    font-size: 2.05rem;
    margin-bottom: 10px;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.85);
    animation: trophyBounce 0.9s ease-in-out infinite alternate;
}

@keyframes trophyBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-5px) scale(1.08); }
}

.voucher-reason-pill {
    display: inline-block;
    background: linear-gradient(90deg, #be123c, #e11d48);
    border: 1px solid #fecdd3;
    color: #fff1f2;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
    box-shadow: 0 0 16px rgba(225, 29, 72, 0.6);
}

.voucher-discount-hero {
    font-size: clamp(1.85rem, 7vw, 2.45rem);
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(180deg, #ffffff 0%, #ffe99e 45%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 3px 10px rgba(245, 158, 11, 0.5));
    line-height: 1.08;
    margin-bottom: 6px;
}

.voucher-subtext {
    font-size: 0.84rem;
    color: #e2e8f0;
    line-height: 1.4;
    margin-bottom: 14px;
}

.voucher-subtext strong {
    color: var(--gold-light);
}

/* Perforiertes goldenes Rabatt-Ticket für "DieEinheit-2027" */
.voucher-ticket-box {
    position: relative;
    background: linear-gradient(180deg, rgba(8, 11, 20, 0.92), rgba(15, 23, 42, 0.92));
    border: 2px dashed #fbbf24;
    border-radius: 16px;
    padding: 13px 14px;
    margin-bottom: 14px;
    box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.14);
}

.voucher-code-label {
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: #94a3b8;
    margin-bottom: 5px;
}

.voucher-code-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.voucher-valid-until {
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fda4af;
}

.voucher-code-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.18rem, 4.6vw, 1.45rem);
    font-weight: 900;
    letter-spacing: 1.4px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 6px 12px;
    border-radius: 10px;
    user-select: text;
}

.btn-copy-voucher {
    background: linear-gradient(180deg, #fde047, #eab308);
    border: 1px solid #fef9c3;
    color: #1c1202;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 9px 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.38);
}

.btn-copy-voucher:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.btn-copy-voucher.copied {
    background: linear-gradient(180deg, #10b981, #059669);
    border-color: #a7f3d0;
    color: #022c22;
}

.btn-academy-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 55%, #047857 100%);
    border: 1.5px solid #6ee7b7;
    color: #ecfdf5;
    font-size: 0.94rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.48);
    transition: transform 0.18s ease, box-shadow 0.2s ease;
    margin-bottom: 9px;
}

.btn-academy-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.68);
}

.voucher-continue-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 10px;
    text-decoration: underline;
}

.voucher-continue-btn:hover {
    color: #f8fafc;
}

/* ==========================================================================
   INLINE SHARE-LEISTE DIREKT BEI JEDEM SATZ (KOPIEREN / WHATSAPP / E-MAIL)
   ========================================================================== */
.sentence-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.sentence-quick-share {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.quick-share-btn {
    flex: 1 1 88px;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.69rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.15s ease, filter 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.quick-share-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.qs-copy {
    background: rgba(243, 181, 63, 0.16);
    border-color: rgba(243, 181, 63, 0.45);
    color: var(--gold-light);
}

.qs-copy.copied {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--emerald);
    color: #a7f3d0;
}

.qs-wa {
    background: rgba(37, 211, 102, 0.16);
    border-color: rgba(37, 211, 102, 0.45);
    color: #86efac;
}

.qs-mail {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.45);
    color: #bae6fd;
}

/* ==========================================================================
   FOOTER / COPYRIGHT LEISTE WIE IM SCREENSHOT
   ========================================================================== */
.aim-footer {
    width: 100%;
    margin: 14px 0 0;
    padding: 12px 10px 6px;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #94a3b8;
    user-select: text;
}

.aim-footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding-bottom: 12px;
}

.aim-footer-sep {
    margin: 0 5px;
    color: #64748b;
    font-weight: 700;
}

.aim-footer-brand {
    color: #d4a348;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.aim-footer-brand:hover {
    color: var(--gold-light);
}

.aim-footer-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(212, 163, 72, 0.15) 0%, rgba(212, 163, 72, 0.45) 50%, rgba(212, 163, 72, 0.15) 100%);
    margin-bottom: 12px;
}

.aim-footer-bottom {
    font-size: 0.74rem;
    color: #7c8798;
}

.aim-footer-bottom a {
    color: #7c8798;
    text-decoration: none;
    transition: color 0.18s ease;
}

.aim-footer-bottom a:hover {
    color: #cbd5e1;
}
