    :root {
        --bg-deep: #0a0a1a;
        --bg-card: #12122a;
        --bg-elevated: #1a1a3a;
        --bg-hover: #222244;
        --accent-yellow: #ffd93d;
        --accent-blue: #6eb5ff;
        --accent-purple: #a78bfa;
        --accent-red: #ef4444;
        --accent-green: #4ade80;
        --text-primary: #ffffff;
        --text-secondary: #a0a0c0;
        --border-subtle: rgba(255, 255, 255, 0.1);
        --bg-glow: rgba(239, 68, 68, 0.1);
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        font-family: 'Outfit', sans-serif;
        background: var(--bg-deep);
        color: var(--text-primary);
        min-height: 100vh;
        overflow-x: hidden;
        padding-bottom: 20px;
        transition: background-color 0.5s ease;
    }



    /* --- XP SYSTEM & TALENT TREE CSS --- */

    /* Integreret XP Bar (Til midten af dashboardet) */
    .xp-dashboard-integrated {
        flex: 1.2;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 8px 15px;
        /* Match stat-box padding */
        cursor: pointer;
        transition: all 0.2s ease;

        /* New Stat-box like styling */
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(217, 70, 239, 0.2);
        border-radius: 8px;
    }

    .xp-dashboard-integrated:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(217, 70, 239, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(217, 70, 239, 0.1);
    }

    .level-circle {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 2px solid #d946ef;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(217, 70, 239, 0.1);
        box-shadow: 0 0 10px rgba(217, 70, 239, 0.2);
    }

    .lvl-label {
        font-size: 8px;
        color: #d946ef;
        font-weight: bold;
        line-height: 1;
    }

    .lvl-value {
        font-size: 18px;
        color: #fff;
        font-weight: 800;
        line-height: 1;
        font-family: 'Righteous';
    }

    .xp-details {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .xp-bar-container {
        height: 8px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 4px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .xp-text-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 10px;
        color: #aaa;
    }

    .sp-badge {
        background: #d946ef;
        color: #fff;
        padding: 1px 6px;
        border-radius: 4px;
        font-weight: bold;
        font-size: 9px;
        animation: pulse-purple 2s infinite;
    }

    .sp-badge.hidden {
        display: none;
    }

    @keyframes pulse-purple {
        0% {
            box-shadow: 0 0 0 rgba(217, 70, 239, 0);
        }

        50% {
            box-shadow: 0 0 8px rgba(217, 70, 239, 0.5);
        }

        100% {
            box-shadow: 0 0 0 rgba(217, 70, 239, 0);
        }
    }

    .level-badge-mini {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.3);
        width: 40px;
        height: 40px;
        border-radius: 8px;
        border: 1px solid rgba(217, 70, 239, 0.3);
    }

    .xp-info-mini {
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px;
        font-family: 'Righteous';
    }

    .xp-track-mini {
        height: 8px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 4px;
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    /* Sørg for at den eksisterende .xp-fill virker her også */
    .xp-fill {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #a78bfa, #d946ef);
        transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 0 10px rgba(217, 70, 239, 0.5);
    }

    .level-badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(0, 0, 0, 0.4);
        padding: 5px 15px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-width: 60px;
    }

    .xp-progress-container {
        flex-grow: 1;
    }

    .xp-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
        font-size: 11px;
        font-family: 'Righteous';
        letter-spacing: 1px;
    }

    .xp-track {
        height: 10px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 5px;
        overflow: hidden;
        position: relative;
        box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
    }

    .xp-fill {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #a78bfa, #d946ef, #ff00ff);
        box-shadow: 0 0 10px #d946ef;
        transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        /* Bouncy effekt */
    }

    .xp-subtext {
        font-size: 9px;
        color: #666;
        margin-top: 4px;
        text-align: right;
        text-transform: uppercase;
    }

    /* Talent Card Styling */
    .talent-card {
        display: flex;
        align-items: center;
        gap: 15px;
        background: rgba(255, 255, 255, 0.05);
        padding: 15px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: 0.2s;
    }

    .talent-card.maxed {
        border-color: #ffd93d;
        background: rgba(255, 217, 61, 0.05);
    }

    .talent-upgrade-btn {
        background: #d946ef;
        border: none;
        padding: 8px 15px;
        color: white;
        border-radius: 6px;
        font-weight: bold;
        cursor: pointer;
        font-family: 'Righteous';
    }

    .talent-upgrade-btn:disabled {
        background: #333;
        color: #555;
        cursor: not-allowed;
    }

    /* Tilføj dette nederst i din <style> sektion */

    .turbo-btn {
        background: #1a1a3a;
        /* Mørk baggrund som standard (slukket) */
        color: #666;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        flex: 0.8;
        /* Gør den lidt smallere end de store knapper */
        transition: all 0.2s ease;
    }

    /* Når Turbo er TÆNDT */
    .turbo-btn.active {
        background: linear-gradient(135deg, #ffd93d, #ff9500);
        /* Guld farve */
        color: #000;
        border-color: #ffd93d;
        box-shadow: 0 0 20px rgba(255, 217, 61, 0.4);
        /* Guld glød */
        transform: scale(1.05);
    }

    .turbo-btn:hover {
        filter: brightness(1.2);
    }

    /* --- DAILY CHALLENGES CSS --- */
    .challenge-card {
        display: flex;
        align-items: center;
        gap: 12px;
        background: rgba(255, 255, 255, 0.05);
        padding: 12px 15px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
        transition: all 0.3s ease;
    }

    .challenge-card.completed {
        border-color: #4ade80;
        background: rgba(74, 222, 128, 0.1);
    }

    .challenge-card.claimed {
        opacity: 0.5;
        border-color: rgba(255, 255, 255, 0.05);
    }

    .challenge-icon {
        font-size: 28px;
        min-width: 40px;
        text-align: center;
    }

    .challenge-info {
        flex: 1;
    }

    .challenge-name {
        font-weight: bold;
        color: #fff;
        font-size: 14px;
    }

    .challenge-desc {
        font-size: 11px;
        color: #aaa;
        margin-bottom: 6px;
    }

    .challenge-bar {
        height: 6px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 3px;
        overflow: hidden;
    }

    .challenge-fill {
        height: 100%;
        background: linear-gradient(90deg, #6eb5ff, #a78bfa);
        transition: width 0.5s ease;
    }

    .challenge-card.completed .challenge-fill {
        background: linear-gradient(90deg, #4ade80, #22c55e);
    }

    .challenge-reward {
        min-width: 80px;
        text-align: right;
    }

    .challenge-claim-btn {
        background: linear-gradient(135deg, #ffd93d, #ff9500);
        border: none;
        padding: 8px 12px;
        border-radius: 6px;
        color: #000;
        font-weight: bold;
        font-size: 11px;
        cursor: pointer;
        font-family: 'Righteous';
        animation: pulse-glow 1s infinite alternate;
    }

    @keyframes pulse-glow {
        from {
            box-shadow: 0 0 5px rgba(255, 217, 61, 0.5);
        }

        to {
            box-shadow: 0 0 15px rgba(255, 217, 61, 0.8);
        }
    }

    .challenge-claim-btn:hover {
        transform: scale(1.05);
    }

    .daily-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .daily-timer {
        font-size: 12px;
        color: #888;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* Sidebar Daily Challenge Widget */
    .daily-widget {
        cursor: pointer;
        transition: all 0.2s;
    }

    .daily-widget:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .daily-widget-progress {
        display: flex;
        gap: 4px;
        margin-top: 8px;
    }

    .daily-pip {
        flex: 1;
        height: 4px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }

    .daily-pip.completed {
        background: #4ade80;
    }

    .daily-pip.claimable {
        background: #ffd93d;
        animation: pulse-glow 1s infinite alternate;
    }

    /* --- FORBEDRET GAME OVER STYLING --- */
    .go-stat-box {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 10px 8px;
        text-align: center;
    }

    .go-stat-label {
        font-size: 9px;
        color: #888;
        font-weight: bold;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .go-stat-value {
        font-size: 22px;
        font-weight: bold;
        color: #fff;
        font-family: 'Righteous', sans-serif;
    }

    .go-stat-compare {
        font-size: 10px;
        margin-top: 2px;
    }

    .go-stat-compare.better {
        color: #4ade80;
    }

    .go-stat-compare.worse {
        color: #ef4444;
    }

    .go-stat-compare.same {
        color: #888;
    }

    /* Game Over Title Animations */
    @keyframes go-shake {

        0%,
        100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-5px) rotate(-1deg);
        }

        75% {
            transform: translateX(5px) rotate(1deg);
        }
    }

    @keyframes go-glow {

        0%,
        100% {
            text-shadow: 0 0 20px currentColor;
        }

        50% {
            text-shadow: 0 0 40px currentColor, 0 0 60px currentColor;
        }
    }

    .gameover-popup h2.go-newrecord {
        animation: go-glow 1s infinite;
        color: #ffd93d !important;
    }

    /* Daily Challenges Attention Animation */
    @keyframes daily-attention {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 rgba(255, 217, 61, 0);
        }

        50% {
            transform: scale(1.02);
            box-shadow: 0 0 20px rgba(255, 217, 61, 0.4);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 0 0 rgba(255, 217, 61, 0);
        }
    }

    @keyframes daily-border-glow {
        0% {
            border-color: rgba(255, 217, 61, 0.3);
        }

        50% {
            border-color: rgba(255, 217, 61, 0.8);
        }

        100% {
            border-color: rgba(255, 217, 61, 0.3);
        }
    }

    .daily-widget.attention {
        animation: daily-attention 2s ease-in-out 3, daily-border-glow 2s ease-in-out 3;
        border-color: #ffd93d !important;
    }

    .daily-widget.has-claimable {
        border-color: #ffd93d;
        box-shadow: 0 0 15px rgba(255, 217, 61, 0.3);
    }

    /* Daily Streak Badge */
    .daily-streak-badge {
        background: linear-gradient(135deg, #ff6b6b, #ffd93d);
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 10px;
        font-weight: bold;
        color: #000;
        animation: pulse-glow 2s infinite alternate;
    }

    /* Streak Bonus Indicator i modal */
    .streak-bonus-banner {
        background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 217, 61, 0.2));
        border: 1px solid rgba(255, 217, 61, 0.3);
        border-radius: 8px;
        padding: 10px 15px;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .streak-bonus-banner .streak-fire {
        font-size: 24px;
        animation: bounce 1s infinite;
    }

    @keyframes bounce {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-5px);
        }
    }

    /* --- ANIMERET BAGGRUND --- */
    .bg-pattern {
        position: fixed;
        inset: -50%;
        width: 200%;
        height: 200%;
        z-index: -1;
        background: radial-gradient(circle at 50% 50%, var(--bg-glow) 0%, transparent 60%);
        opacity: 0.6;
        pointer-events: none;
        transition: background 0.5s ease;
    }

    @keyframes breathe {
        0% {
            transform: scale(1);
            opacity: 0.4;
        }

        50% {
            transform: scale(1.1);
            opacity: 0.8;
        }

        100% {
            transform: scale(1);
            opacity: 0.4;
        }
    }

    @keyframes panic-pulse {
        0% {
            transform: scale(1);
            opacity: 0.6;
            filter: brightness(1);
        }

        50% {
            transform: scale(1.05);
            opacity: 1;
            filter: brightness(1.4);
        }

        100% {
            transform: scale(1);
            opacity: 0.6;
            filter: brightness(1);
        }
    }

    body.streak-lvl-1 {
        --bg-glow: rgba(110, 181, 255, 0.3);
    }

    body.streak-lvl-1 .bg-pattern {
        animation: breathe 4s infinite ease-in-out;
    }

    body.streak-lvl-2 {
        --bg-glow: rgba(255, 149, 0, 0.4);
    }

    body.streak-lvl-2 .bg-pattern {
        animation: breathe 2s infinite ease-in-out;
    }

    body.streak-lvl-3 {
        --bg-glow: rgba(255, 217, 61, 0.5);
    }

    body.streak-lvl-3 .bg-pattern {
        animation: panic-pulse 0.6s infinite alternate;
    }

    body.streak-lvl-4 {
        --bg-glow: rgba(255, 0, 0, 0.5);
    }

    body.streak-lvl-4 .bg-pattern {
        animation: panic-pulse 0.4s infinite alternate;
    }

    /* --- UNIFIED SIDEBAR --- */
    /* Opdateret Sidebar CSS */
    .unified-sidebar {
        position: fixed;
        top: 20px;
        left: 20px;
        width: 260px;
        height: calc(100vh - 40px);
        display: flex;
        flex-direction: column;
        gap: 15px;
        z-index: 10;
        /* VIGTIGT: Dette gør at man kan scrolle i sidebaren hvis skærmen er meget lav */
        overflow-y: auto;
        scrollbar-width: none;
        /* Skjuler scrollbar i Firefox */
    }

    /* Skjuler scrollbar i Chrome/Safari men tillader scroll */
    .unified-sidebar::-webkit-scrollbar {
        display: none;
    }

    /* --- NY MEDIA QUERY --- */
    /* Når skærmen er mellem 1200px (hvor sidebaren vises) og 1500px (laptops) */
    @media (max-width: 1500px) {
        .unified-sidebar {
            width: 200px;
            /* Gør sidebaren smallere */
        }

        /* Gør teksten lidt mindre så den passer */
        .best-pull-val {
            font-size: 16px;
        }

        .challenge-icon {
            font-size: 20px;
        }
    }

    .best-pull-preview {
        position: relative;
        width: 100%;
        /* ÆNDRET: Vi bruger max-height i stedet for kun aspect-ratio */
        aspect-ratio: 2.5/3.5;
        max-height: 300px;
        /* Tvinger den til max at være 200px høj */
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px dashed rgba(255, 255, 255, 0.1);
    }

    /* VIGTIGT: Sørg for at billedet ikke bliver mast */
    .best-pull-preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* Ændret fra cover til contain så hele kortet ses */
        display: none;
    }

    .sidebar-card {
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: 16px;
        padding: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
    }

    .section-title {
        font-size: 11px;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 800;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 5px;
    }

    .best-pull-preview {
        position: relative;
        width: 100%;
        aspect-ratio: 2.5/3.5;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px dashed rgba(255, 255, 255, 0.1);
    }

    .best-pull-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: none;
    }

    .best-pull-preview.has-card {
        border: none;
    }

    .best-pull-preview.has-card img {
        display: block;
    }

    .best-pull-empty-text {
        font-size: 10px;
        color: #666;
    }

    .best-pull-info {
        text-align: center;
    }

    .best-pull-name {
        font-size: 12px;
        color: #fff;
        font-weight: 600;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .best-pull-val {
        font-family: 'Righteous';
        color: var(--accent-green);
        font-size: 20px;
        text-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
    }

    .leaderboard-section {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .mini-leaderboard-list {
        flex-grow: 1;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .mini-leaderboard-list::-webkit-scrollbar {
        display: none;
    }

    .leaderboard-entry {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 13px;
    }

    .rank {
        font-weight: bold;
        width: 25px;
        color: #666;
    }

    .rank-1 .rank {
        color: #ffd93d;
    }

    .rank-2 .rank {
        color: #c0c0c0;
    }

    .rank-3 .rank {
        color: #cd7f32;
    }

    .player-name {
        flex-grow: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 10px;
    }

    .player-score {
        font-family: 'Righteous';
        color: var(--accent-blue);
    }

    .container {
        max-width: 100%;
        margin: 0 auto;
        padding-left: 290px;
        /* Plads til venstre sidebar */
        padding-right: 280px;
        /* Plads til højre sidebar */
        padding-top: 15px;
        position: relative;
        transition: all 0.3s;
        min-height: calc(100vh - 20px);
        display: flex;
        flex-direction: column;
    }

    /* Sidebar og container håndteres nu i de nye responsive breakpoints */

    header {
        padding: 15px 0;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
        flex-shrink: 0;
    }

    .header-tools {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 5px;
    }

    .tools-left,
    .tools-right {
        display: flex;
        gap: 8px;
    }

    .game-area {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
    }

    .merged-dashboard {
        display: flex;
        align-items: stretch;
        background: var(--bg-elevated);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        position: relative;
        overflow: hidden;
        transition: 0.3s;
    }

    .merged-dashboard.danger {
        border-color: var(--accent-red);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
        animation: pulse-red 1s infinite;
    }

    .dashboard-left {
        flex: 1.4;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        gap: 15px;
        /* Add gap between cards */
    }

    .stat-box {
        display: flex;
        flex-direction: column;
        /* Card styling */
        background: rgba(255, 255, 255, 0.03);
        padding: 8px 15px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        flex: 1;
        /* Make them fill space evenly */
        transition: all 0.2s ease;
    }

    /* Hover effects for cards */
    .stat-box:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.06);
    }

    .stat-box.left:hover {
        border-color: rgba(110, 181, 255, 0.3);
        box-shadow: 0 4px 12px rgba(110, 181, 255, 0.1);
    }

    .stat-box.center:hover {
        border-color: rgba(239, 68, 68, 0.3);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    }

    .stat-box.right:hover {
        border-color: rgba(74, 222, 128, 0.3);
        box-shadow: 0 4px 12px rgba(74, 222, 128, 0.1);
    }

    .stat-box.left {
        text-align: center;
        /* Center align everything now */
    }

    .stat-box.center {
        text-align: center;
    }

    .stat-box.right {
        text-align: center;
        /* Center align everything now */
    }

    .stat-box h2 {
        font-size: 10px;
        color: var(--text-secondary);
        text-transform: uppercase;
        margin: 0 0 2px 0;
        letter-spacing: 1px;
    }

    .stat-value {
        font-family: 'Righteous';
        font-size: 20px;
        /* Slightly larger for better readability */
        line-height: 1;
        font-weight: 800;
        white-space: nowrap;
    }

    .stat-value.money {
        color: var(--accent-green);
    }

    .stat-value.score {
        color: var(--accent-red);
    }

    .stat-value.spins {
        color: var(--accent-blue);
    }

    .dashboard-divider {
        width: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 10px 0;
    }

    .dashboard-right {
        flex: 1;
        padding: 8px 15px;
        /* Match other cards */
        display: flex;
        flex-direction: column;
        justify-content: center;

        /* New Card Styling */
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 149, 0, 0.2);
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .dashboard-right:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 149, 0, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 149, 0, 0.1);
    }

    .streak-row-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* Center align */
        margin-bottom: 8px;
    }

    .streak-title-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .streak-label {
        font-size: 10px;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 2px;
    }

    .streak-tier {
        font-size: 10px;
        font-weight: bold;
        text-transform: uppercase;
        min-height: 12px;
        letter-spacing: 0.5px;
    }

    .streak-count {
        font-family: 'Righteous';
        font-size: 24px;
        line-height: 0.9;
        color: #ef4444;
    }

    .dashboard-right.on-fire .streak-count {
        color: #ffd93d;
        text-shadow: 0 0 20px #ffd93d, 0 0 40px #ff9500;
    }

    .dashboard-right.on-fire {
        background: radial-gradient(circle at center, rgba(255, 217, 61, 0.05), transparent);
    }

    .dashboard-right.lvl-1 .streak-count {
        color: #6eb5ff;
        text-shadow: 0 0 5px #6eb5ff;
    }

    .dashboard-right.lvl-2 .streak-count {
        color: #ff9500;
        text-shadow: 0 0 10px #ff9500;
    }

    .dashboard-right.lvl-3 .streak-count {
        color: #a78bfa;
        text-shadow: 0 0 15px #a78bfa;
    }

    .dashboard-right.lvl-4 .streak-count {
        color: #ff0000;
        text-shadow: 0 0 25px #ff0000, 0 0 5px #ffd93d;
    }

    .streak-bar-bg {
        height: 6px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
        position: relative;
        width: 100%;
        margin-bottom: 4px;
    }

    .streak-bar-fill {
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg, #ef4444, #ff9500, #ffd93d);
        border-radius: 4px;
        transition: width 0.5s ease-out;
    }

    .streak-milestones {
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    .milestone {
        position: absolute;
        top: 12px;
        font-size: 9px;
        font-weight: 600;
        color: var(--text-secondary);
        transform: translateX(-50%);
        opacity: 0.5;
    }

    .milestone[data-level="2"] {
        left: 20%;
    }

    .milestone[data-level="5"] {
        left: 50%;
    }

    .milestone[data-level="8"] {
        left: 80%;
    }

    .milestone[data-level="10"] {
        left: 100%;
        transform: translateX(-100%);
    }

    .milestone.reached {
        color: #ffd93d;
        opacity: 1;
        font-weight: bold;
    }

    .streak-footer {
        text-align: left;
        margin-top: 1px;
    }

    .streak-best {
        font-size: 9px;
        color: var(--text-secondary);
        opacity: 0.6;
    }

    .nav-btn,
    .music-btn,
    .set-change-btn {
        padding: 0;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: var(--bg-card);
        color: var(--text-secondary);
        font-size: 20px;
    }

    .nav-btn:hover,
    .music-btn:hover,
    .set-change-btn:hover {
        background: var(--bg-elevated);
        color: #fff;
        transform: translateY(-2px);
    }

    .achievement-btn {
        color: var(--accent-yellow);
        border-color: rgba(255, 217, 61, 0.3);
    }

    .music-btn.playing {
        border-color: #4ade80;
        color: #4ade80;
        box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
    }

    .roulette-wrapper {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 330px;
        margin: 30px auto;
        background: #050510;
        border-top: 4px solid var(--accent-yellow);
        border-bottom: 4px solid var(--accent-yellow);
        overflow: hidden;
        mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
        box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    }

    .roulette-indicator {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 4px;
        background: #ff0044;
        transform: translateX(-50%);
        z-index: 10;
        box-shadow: 0 0 15px #ff0044;
    }

    .roulette-indicator::before {
        content: '▼';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        color: #ff0044;
        font-size: 24px;
    }

    .roulette-indicator::after {
        content: '▲';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        color: #ff0044;
        font-size: 24px;
    }

    .card-strip {
        display: flex;
        height: 100%;
        align-items: center;
        will-change: transform;
        padding-left: 50%;
    }

    .roulette-card {
        width: 150px;
        height: 210px;
        margin: 0 6px;
        background: var(--bg-card);
        border-radius: 12px;
        flex-shrink: 0;
        position: relative;
        border: 2px solid #333;
        border-right: 3px solid rgba(255, 255, 255, 0.05);
        /* NEW: 3D Hover Setup */
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
            box-shadow 0.3s ease,
            border-color 0.3s ease;
        transform-style: preserve-3d;
        cursor: pointer;
    }

    /* NEW: 3D Hover Tilt Effect */
    .roulette-card:hover {
        transform: rotateY(8deg) rotateX(-5deg) scale(1.1) translateY(-10px);
        z-index: 20 !important;
        border-color: rgba(255, 255, 255, 0.3);
    }

    /* Common card hover */
    .roulette-card:hover:not(.rare):not(.ultra) {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(255, 255, 255, 0.1);
    }

    .roulette-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

    .roulette-card.rare {
        border-color: var(--accent-purple);
        box-shadow: 0 0 50px rgba(167, 139, 250, 0.7);
        z-index: 2;
    }

    /* NEW: Enhanced rare hover glow */
    .roulette-card.rare:hover {
        box-shadow: 0 0 60px rgba(167, 139, 250, 1),
            0 0 120px rgba(167, 139, 250, 0.5),
            0 20px 50px rgba(0, 0, 0, 0.4);
        border-color: #c4b5fd;
    }

    .roulette-card.ultra {
        border-color: var(--accent-yellow);
        box-shadow: 0 0 100px rgba(255, 217, 61, 1.0);
        z-index: 5;
    }

    /* NEW: Legendary-tier hover glow */
    .roulette-card.ultra:hover {
        box-shadow: 0 0 80px rgba(255, 217, 61, 1),
            0 0 150px rgba(255, 149, 0, 0.7),
            0 0 200px rgba(255, 107, 107, 0.4),
            0 25px 60px rgba(0, 0, 0, 0.5);
        border-color: #fff5b8;
        animation: ultraPulseHover 0.5s ease-in-out infinite alternate;
    }

    @keyframes ultraPulseHover {
        from {
            filter: brightness(1);
        }

        to {
            filter: brightness(1.15);
        }
    }

    .card-price-tag {
        position: absolute;
        bottom: 5px;
        right: 5px;
        background: rgba(0, 0, 0, 0.85);
        color: white;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
        font-family: 'Righteous';
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .val-common {
        color: #a0a0c0;
        border: 1px solid #a0a0c0;
    }

    .val-high {
        color: #ffd93d;
        border: 1px solid #ffd93d;
        background: rgba(255, 217, 61, 0.2);
    }

    .val-epic {
        color: #a78bfa;
        border: 1px solid #a78bfa;
        background: rgba(167, 139, 250, 0.2);
        text-shadow: 0 0 5px #a78bfa;
    }

    .val-legendary {
        color: #ff6b6b;
        border: 2px solid #ffd93d;
        background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 217, 61, 0.3));
        text-shadow: 0 0 10px #ffd93d;
        animation: legendaryPulse 1s infinite;
    }

    .card-rarity-label {
        position: absolute;
        bottom: calc(100% + 5px);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        padding: 3px 6px;
        border-radius: 6px 6px 0 0;
        font-size: 10px;
        font-weight: bold;
        font-family: 'Righteous';
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        backdrop-filter: blur(4px);
        z-index: 10;
    }

    .floating-text {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-family: 'Righteous', cursive;
        font-size: 48px;
        font-weight: bold;
        pointer-events: none;
        z-index: 50;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        animation: floatUp 1.5s ease-out forwards;
    }

    .float-profit {
        color: #4ade80;
        text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
    }

    .float-loss {
        color: #ef4444;
        text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    }

    .float-bonus {
        color: #ffd93d;
        text-shadow: 0 0 30px #ff9500;
        font-size: 32px;
        animation: floatUpSlow 2s ease-out forwards;
        z-index: 60;
    }

    @keyframes floatUp {
        0% {
            transform: translate(-50%, -50%) scale(0.5);
            opacity: 0;
        }

        20% {
            transform: translate(-50%, -80%) scale(1.2);
            opacity: 1;
        }

        100% {
            transform: translate(-50%, -150%) scale(1);
            opacity: 0;
        }
    }

    @keyframes floatUpSlow {
        0% {
            transform: translate(-50%, -30%) scale(0.5);
            opacity: 0;
        }

        20% {
            transform: translate(-50%, -60%) scale(1.3);
            opacity: 1;
        }

        100% {
            transform: translate(-50%, -200%) scale(1);
            opacity: 0;
        }
    }

    .controls-container {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 50px;
    }

    .btn-action {
        padding: 18px 40px;
        font-size: 20px;
        border: none;
        border-radius: 14px;
        font-weight: 800;
        cursor: pointer;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s;
        font-family: 'Righteous', cursive;
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }

    .btn-action:active {
        transform: scale(0.98);
    }

    .btn-action:disabled {
        filter: grayscale(1);
        cursor: not-allowed;
        transform: none;
    }

    /* RETTEDE KNAPPER - Lige brede */
    .spin-btn {
        background: linear-gradient(135deg, var(--accent-yellow), #ff9500);
        color: #000;
        flex: 1;
    }

    .auto-btn {
        background: linear-gradient(135deg, var(--accent-blue), #3b82f6);
        color: #fff;
        box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
        flex: 1;
    }

    .stop-btn {
        background: linear-gradient(135deg, var(--accent-red), #b91c1c);
        color: #fff;
        box-shadow: 0 10px 40px rgba(239, 68, 68, 0.3);
        display: none;
        flex: 1;
    }

    .set-change-btn {
        background: var(--bg-elevated);
        border: 1px solid var(--border-subtle);
        color: var(--text-secondary);
        box-shadow: none;
        flex: 1;
        font-family: 'Righteous', cursive;
    }

    .set-btn {
        background: var(--bg-elevated);
        border: 1px solid var(--border-subtle);
        color: white;
        padding: 15px;
        border-radius: 10px;
        font-family: 'Outfit';
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s;
        text-align: left;
    }

    .set-btn:hover {
        background: var(--accent-blue);
        border-color: var(--accent-blue);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    }

    .modal {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 200;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        animation: fadeIn 0.4s;
        padding: 20px;
    }

    .modal-content {
        background: var(--bg-card);
        padding: 30px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 95%;
        max-width: 800px;
        text-align: center;
    }

    .winner-image {
        width: 280px;
        max-width: 100%;
        border-radius: 16px;
        border: 3px solid var(--accent-yellow);
        animation: popIn 0.5s;
    }

    .winner-image.legendary-glow {
        border-color: transparent;
        animation: popIn 0.5s, legendaryPulse 2s infinite;
    }

    .btn-claim {
        margin-top: 20px;
        padding: 15px 40px;
        border: none;
        border-radius: 12px;
        font-weight: bold;
        font-size: 18px;
        cursor: pointer;
        color: #fff;
        font-family: 'Outfit';
        width: auto;
        min-width: 220px;
        background: var(--accent-green);
        transition: transform 0.2s;
        box-shadow: 0 5px 20px rgba(74, 222, 128, 0.4);
    }

    .btn-claim:hover {
        transform: scale(1.05);
    }

    .btn-close {
        margin-top: 15px;
        background: transparent;
        color: #fff;
        border: 1px solid #fff;
        padding: 8px 24px;
        border-radius: 50px;
        cursor: pointer;
    }

    .leaderboard-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
        text-align: left;
    }

    .leaderboard-table th {
        padding: 10px;
        color: var(--text-secondary);
        font-size: 12px;
        text-transform: uppercase;
        border-bottom: 1px solid var(--border-subtle);
    }

    .leaderboard-table td {
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-weight: 600;
    }

    .score-input {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 12px;
        border-radius: 8px;
        color: white;
        font-family: 'Outfit';
        width: 100%;
        margin-bottom: 10px;
        font-size: 16px;
        text-align: center;
    }

    .loot-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
        max-height: 400px;
        overflow-y: auto;
        padding-right: 5px;
    }

    .loot-item {
        position: relative;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .loot-item:hover {
        transform: scale(1.05);
        z-index: 10;
    }

    .loot-item img {
        width: 100%;
        border-radius: 6px;
    }

    .loot-val {
        position: absolute;
        bottom: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.8);
        color: #fff;
        font-size: 10px;
        padding: 1px 4px;
        border-radius: 4px 0 6px 0;
    }

    .achievements-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        max-height: 400px;
        overflow-y: auto;
    }

    .ach-card {
        background: rgba(255, 255, 255, 0.05);
        padding: 15px;
        border-radius: 12px;
        border: 1px solid transparent;
        text-align: center;
        opacity: 0.5;
    }

    .ach-card.unlocked {
        background: rgba(255, 217, 61, 0.1);
        border-color: rgba(255, 217, 61, 0.3);
        opacity: 1;
    }

    .ach-icon {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .ach-title {
        font-weight: bold;
        font-size: 12px;
        color: #fff;
    }

    .ach-desc {
        font-size: 10px;
        color: #aaa;
        margin-top: 2px;
    }

    /* --- INDSTILLINGER KNAPPER (Manglende CSS) --- */
    .data-btn {
        width: 100%;
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: var(--bg-card);
        color: var(--text-primary);
        font-family: 'Outfit', sans-serif;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .data-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    /* Farver til de specifikke knapper */
    .data-btn.export {
        border-color: rgba(74, 222, 128, 0.3);
        color: #4ade80;
        background: rgba(74, 222, 128, 0.05);
    }

    .data-btn.export:hover {
        background: #4ade80;
        color: #000;
    }

    .data-btn.import {
        border-color: rgba(110, 181, 255, 0.3);
        color: #6eb5ff;
        background: rgba(110, 181, 255, 0.05);
    }

    .data-btn.import:hover {
        background: #6eb5ff;
        color: #000;
    }

    .data-btn.reset {
        margin-top: 15px;
        /* Lidt afstand til reset knappen */
        border-color: rgba(239, 68, 68, 0.3);
        color: #ef4444;
        background: rgba(239, 68, 68, 0.05);
    }

    .data-btn.reset:hover {
        background: #ef4444;
        color: #fff;
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    }

    /* --- DYNAMISK TITEL --- */
    .game-title {
        font-family: 'Righteous', cursive;
        font-size: 42px;
        margin-bottom: 5px;
        transition: all 0.5s ease;
        text-transform: uppercase;
        letter-spacing: 2px;

        /* TILFØJ DISSE TO LINJER: */
        text-align: center;
        width: 100%;

        /* Standard farve (Spin or Die) */
        background: linear-gradient(135deg, #ef4444, #ff9500);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    }

    #set-info-text {
        text-align: center;
        width: 100%;
        display: block;
    }

    /* Niveau 1: Opvarmning (Blå/Cyan) */
    .game-title.lvl-1 {
        background: linear-gradient(135deg, #6eb5ff, #3b82f6);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
        letter-spacing: 4px;
        /* Teksten spreder sig lidt */
    }

    /* Niveau 2: Ild (Orange/Gul) */
    .game-title.lvl-2 {
        background: linear-gradient(135deg, #ff9500, #ffd93d);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 30px rgba(255, 149, 0, 0.6);
        transform: scale(1.05);
    }

    /* Niveau 3: Unstoppable (Lilla/Neon) */
    .game-title.lvl-3 {
        background: linear-gradient(135deg, #a78bfa, #d946ef);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 40px rgba(167, 139, 250, 0.8);
        animation: breathe 0.5s infinite alternate;
    }

    /* Niveau 4: GOD MODE (Regnbue/Guld/Rød) */
    .game-title.lvl-4 {
        background: linear-gradient(90deg, #ff0000, #ffd93d, #ff0000);
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 0 50px rgba(255, 0, 0, 0.8);
        animation: shine 2s linear infinite;
        font-size: 48px;
    }

    @keyframes shine {
        to {
            background-position: 200% center;
        }
    }

    /* --- SCREEN SHAKE --- */
    .shake {
        animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
        transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
    }

    @keyframes shake {

        10%,
        90% {
            transform: translate3d(-1px, 0, 0);
        }

        20%,
        80% {
            transform: translate3d(2px, 0, 0);
        }

        30%,
        50%,
        70% {
            transform: translate3d(-4px, 0, 0);
        }

        40%,
        60% {
            transform: translate3d(4px, 0, 0);
        }
    }

    /* --- BINDER / SAMLEALBUM --- */
    .binder-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
        padding: 10px;
        max-height: 500px;
        overflow-y: auto;
    }

    .binder-card {
        position: relative;
        border-radius: 8px;
        overflow: hidden;
        transition: 0.2s;
        aspect-ratio: 2.5/3.5;
        background: #000;
        border: 1px solid #333;
    }

    .binder-card.locked {
        filter: grayscale(1) brightness(0.3);
        opacity: 0.6;
    }

    .binder-card.unlocked {
        cursor: pointer;
        border-color: var(--accent-yellow);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    .binder-card.unlocked:hover {
        transform: scale(1.1);
        z-index: 10;
    }

    .binder-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .binder-count {
        position: absolute;
        bottom: 0;
        right: 0;
        background: var(--accent-blue);
        color: white;
        font-size: 10px;
        padding: 2px 6px;
        border-top-left-radius: 6px;
        font-weight: bold;
    }

    /* --- GAMBLE MODAL --- */
    .gamble-content {
        background: linear-gradient(135deg, #2a0a1a, #000);
        border: 2px solid #ef4444;
    }

    .gamble-buttons {
        display: flex;
        gap: 20px;
        justify-content: center;
        margin-top: 20px;
    }

    .btn-gamble {
        padding: 20px;
        font-size: 24px;
        font-family: 'Righteous';
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: transform 0.2s;
        flex: 1;
    }

    .btn-gamble.risk {
        background: #ef4444;
        color: white;
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    }

    .btn-gamble.safe {
        background: #4ade80;
        color: #004d20;
        box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    }

    .btn-gamble:hover {
        transform: scale(1.05);
    }

    /* --- VINDER POPUP FIX --- */
    /* Fjerner den blå kasse bag vinder-kortet */
    #modal .modal-content {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    /* Sikrer at teksten stadig kan ses tydeligt */
    #modal h2 {
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
        margin-bottom: 20px;
        /* Lidt mere luft ned til kortet */
    }

    /* --- VOLUME SLIDER & KONTROL --- */
    .volume-control-group {
        display: flex;
        align-items: center;
        background: var(--bg-card);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 0 5px;
        /* Lidt plads omkring slideren */
        height: 42px;
        /* Samme højde som knapperne */
    }

    .volume-control-group .music-btn {
        border: none;
        background: transparent;
        box-shadow: none;
        width: 30px;
        /* Lidt smallere inde i gruppen */
    }

    .slider-container {
        width: 0;
        overflow: hidden;
        transition: width 0.3s ease;
        display: flex;
        align-items: center;
    }

    /* Vis slideren når man holder musen over lyd-ikonet ELLER over selve gruppen */
    .volume-control-group:hover .slider-container {
        width: 80px;
        /* Slideren folder sig ud */
        margin-right: 10px;
    }

    /* Styling af selve slideren (input range) */
    input[type=range] {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 4px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
        outline: none;
        cursor: pointer;
    }

    input[type=range]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 14px;
        height: 14px;
        background: var(--accent-yellow);
        border-radius: 50%;
        cursor: pointer;
        transition: transform 0.1s;
    }

    input[type=range]::-webkit-slider-thumb:hover {
        transform: scale(1.2);
    }

    /* --- FLYING MONEY ANIMATION --- */
    .flying-cash {
        position: fixed;
        /* Vigtigt: Fixed så den flyver ovenpå alt */
        pointer-events: none;
        /* Man skal ikke kunne klikke på den */
        z-index: 9999;
        font-family: 'Righteous', cursive;
        font-weight: bold;
        font-size: 24px;
        color: #4ade80;
        /* Penge-grøn */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

        /* Start tilstand */
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;

        /* Animation setup */
        transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1),
            opacity 1s ease-in;
    }

    /* --- SHOP STYLING --- */
    .shop-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    .shop-item {
        display: flex;
        align-items: center;
        gap: 15px;
        background: rgba(255, 255, 255, 0.05);
        padding: 15px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .shop-icon {
        font-size: 32px;
    }

    .shop-info {
        flex: 1;
        text-align: left;
    }

    .shop-info h3 {
        font-size: 16px;
        color: #fff;
        margin-bottom: 4px;
    }

    .shop-info p {
        font-size: 12px;
        color: #aaa;
        margin: 0;
    }

    .btn-buy {
        padding: 10px 20px;
        border-radius: 8px;
        border: none;
        font-weight: bold;
        cursor: pointer;
        background: var(--accent-green);
        color: #004d20;
        font-family: 'Righteous';
        white-space: nowrap;
    }

    .btn-buy:disabled {
        background: #333;
        color: #666;
        cursor: not-allowed;
    }

    .btn-buy:active {
        transform: scale(0.95);
    }

    /* Buff ikoner på spilskærmen */
    .buff-icon {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        border: 2px solid;
        animation: popIn 0.3s;
    }

    @keyframes popIn {
        from {
            transform: scale(0);
        }

        to {
            transform: scale(1);
        }
    }

    /* --- BUFF VISUALS (GLOW EFFECTS) --- */
    /* NÃ¥r Lucky Charm er aktiv */
    body.buff-charm .bg-pattern {
        box-shadow: inset 0 0 100px rgba(74, 222, 128, 0.4);
        border: 4px solid #4ade80;
    }

    /* NÃ¥r Midas Handske er aktiv */
    body.buff-midas .bg-pattern {
        box-shadow: inset 0 0 100px rgba(255, 217, 61, 0.5);
        border: 4px solid #ffd93d;
    }

    /* NÃ¥r Streak Saver er aktiv */
    body.buff-saver .bg-pattern {
        box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.5);
        border: 4px solid #ffffff;
    }

    /* Når Forsikring er aktiv (Blå) */
    body.buff-insurance .bg-pattern {
        box-shadow: inset 0 0 100px rgba(110, 181, 255, 0.4);
        border: 4px solid #6eb5ff;
    }

    /* Opdateret Spin Knap ved Buffs */
    .spin-btn.powered-up {
        animation: pulse-glow 1s infinite;
        font-weight: 900;
        font-size: 22px;
    }

    @keyframes pulse-glow {
        0% {
            transform: scale(1);
            filter: brightness(1);
        }

        50% {
            transform: scale(1.02);
            filter: brightness(1.2);
        }

        100% {
            transform: scale(1);
            filter: brightness(1);
        }
    }

    /* --- QUICK SAVER KNAP --- */
    .quick-saver-btn {
        display: none;
        /* Skjult som standard */
        background: linear-gradient(135deg, #ffffff, #e2e8f0);
        color: #000;
        border: none;
        border-radius: 6px;
        /* Match card radius */
        padding: 4px 10px;
        font-family: 'Righteous';
        font-size: 10px;
        cursor: pointer;
        /* margin-right: 10px; Removed margin to align right */
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        animation: pulse-white 1s infinite;
        white-space: nowrap;
        height: 24px;
        /* Fixed height */
        align-items: center;
        gap: 4px;
        z-index: 10;
    }

    .quick-saver-btn span {
        font-size: 12px;
        /* Smaller icon */
    }

    .quick-saver-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    }

    .quick-saver-btn:active {
        transform: scale(0.95);
    }

    @keyframes pulse-white {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        }
    }


    /* --- TOGGLE SWITCH STYLING --- */
    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 40px;
        height: 20px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #333;
        transition: .4s;
        border-radius: 34px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    input:checked+.toggle-slider {
        background-color: var(--accent-green);
        border-color: var(--accent-green);
    }

    input:checked+.toggle-slider:before {
        transform: translateX(20px);
    }

    /* --- GAME OVER DAILY CHALLENGE OPGRADERING --- */
    .go-challenge-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(0, 0, 0, 0.3);
        /* Mørkere baggrund for kontrast */
        padding: 6px 8px;
        border-radius: 6px;
        margin-bottom: 5px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .go-challenge-row.done {
        background: rgba(74, 222, 128, 0.1);
        /* Grønt skær hvis færdig */
        border-color: rgba(74, 222, 128, 0.3);
    }

    .go-chal-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .go-chal-name {
        font-size: 11px;
        color: #fff;
        font-weight: 600;
    }

    .go-chal-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        min-width: 60px;
    }

    .go-mini-bar-bg {
        width: 60px;
        height: 4px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        margin-top: 3px;
        overflow: hidden;
    }

    .go-mini-bar-fill {
        height: 100%;
        background: #ffd93d;
        border-radius: 2px;
        transition: width 0.5s ease;
    }

    .go-challenge-row.done .go-mini-bar-fill {
        background: #4ade80;
        /* Grøn bar når færdig */
    }

    .go-chal-status-text {
        font-size: 9px;
        color: #aaa;
        font-weight: bold;
    }

    /* --- BREAKING NEWS TICKER --- */
    /* --- INTEGRERET NEWS TICKER --- */
    .news-ticker-container {
        /* Layout og Placering */
        flex: 1;
        /* VIGTIGT: FÃ¥r den til at fylde pladsen ud */
        height: 42px;
        /* Samme højde som dine knapper */
        margin: 0 15px;
        /* Luft til knapperne i siderne */
        display: flex;
        align-items: center;
        /* Centrerer indhold lodret */
        justify-content: flex-start;
        /* Indhold starter fra venstre (eller center hvis du vil) */

        /* Design der matcher knapperne */
        background: rgba(0, 0, 0, 0.3);
        /* Lidt mørkere end baggrunden */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        /* Matcher .nav-btn */
        padding: 0 15px;
        /* Luft indeni boksen */

        /* Funktionalitet */
        overflow: hidden;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
    }

    .news-ticker-container:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .news-label {
        background: #ef4444;
        color: white;
        font-size: 9px;
        font-weight: 800;
        padding: 3px 6px;
        border-radius: 4px;
        margin-right: 12px;
        white-space: nowrap;
        /* Sikrer at label ikke knækker */
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
        /* Rød glød */
        letter-spacing: 0.5px;
        flex-shrink: 0;
        /* Sikrer at label ikke bliver mast */
    }

    .news-text {
        font-family: 'Outfit', sans-serif;
        font-size: 13px;
        color: #ccc;
        white-space: nowrap;
        /* Ingen linjeskift */
        overflow: hidden;
        /* Skjul tekst der er for lang */
        text-overflow: ellipsis;
        /* Vis ... hvis teksten er for lang */

        opacity: 0;
        transform: translateY(10px);
        transition: all 0.5s ease;
    }

    .news-text.active {
        opacity: 1;
        transform: translateY(0);
    }

    /* Klik-effekt */
    .news-ticker-container:active {
        transform: scale(0.98);
    }

    .shop-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
        /* Mindre mellemrum */
    }

    /* --- HØJRE SIDEBAR (COOKIE CLICKER STYLE) --- */
    .upgrade-sidebar {
        position: fixed;
        top: 80px;
        /* Starter under headeren */
        right: 20px;
        bottom: 20px;
        width: 240px;
        background: var(--bg-deep);
        /* Changed from fixed rgba */
        /* Halv-gennemsigtig mørk */
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-subtle);
        /* Changed from fixed */
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        z-index: 90;
        overflow: hidden;
        transition: transform 0.3s ease;
    }

    .sidebar-header {
        padding: 15px;
        background: rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-family: 'Righteous', sans-serif;
        color: var(--accent-yellow);
        /* Changed from fixed #ffd93d */
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .upgrade-list {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
        /* Skjul scrollbar men tillad scroll */
        scrollbar-width: none;
    }

    .upgrade-list::-webkit-scrollbar {
        display: none;
    }

    /* Enkelt Upgrade Kort */
    .side-upgrade-card {
        background: var(--bg-card);
        /* Changed from fixed rgba */
        border: 1px solid var(--border-subtle);
        /* Changed from fixed rgba */
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 8px;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
        overflow: hidden;
    }

    /* Når man har råd */
    .side-upgrade-card.affordable {
        border-color: rgba(74, 222, 128, 0.3);
        background: linear-gradient(90deg, rgba(74, 222, 128, 0.05), transparent);
        /* Note: Kept specific green tint for affordability as it's functional color */
    }

    .side-upgrade-card.affordable:hover {
        transform: translateX(-5px);
        /* Popper lidt ud til venstre */
        background: linear-gradient(90deg, rgba(74, 222, 128, 0.15), transparent);
        box-shadow: 0 0 15px rgba(74, 222, 128, 0.1);
    }

    /* Når man IKKE har råd */
    .side-upgrade-card.locked {
        opacity: 0.5;
        filter: grayscale(1);
        cursor: not-allowed;
    }

    .side-up-icon {
        font-size: 24px;
        float: left;
        margin-right: 10px;
    }

    .side-up-name {
        font-size: 12px;
        font-weight: bold;
        color: #fff;
    }

    .side-up-lvl {
        color: #ffd93d;
        font-size: 10px;
        margin-left: 5px;
    }

    .side-up-desc {
        font-size: 10px;
        color: #aaa;
        margin-top: 2px;
        line-height: 1.2;
    }

    .side-up-price {
        font-family: 'Righteous';
        font-size: 12px;
        color: #ef4444;
        margin-top: 5px;
        text-align: right;
    }

    .side-upgrade-card.affordable .side-up-price {
        color: #4ade80;
    }

    /* MOBIL: Skjul sidebaren på små skærme (brug shop-knappen der) */
    @media (max-width: 1300px) {
        .upgrade-sidebar {
            display: none;
        }
    }


    /* ===========================================
    🎮 POKÉVAULT RESPONSIVE OVERHAUL v2.0
    Konsolideret til 3 breakpoints:
    - Desktop: 1400px+
    - Tablet/Laptop: 768px - 1399px  
    - Mobile: <768px
    =========================================== */

    /* --- SAFE AREA FOR MODERN PHONES --- */
    @supports (padding: env(safe-area-inset-bottom)) {
        body {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
            padding-bottom: env(safe-area-inset-bottom);
        }

        .controls-container {
            padding-bottom: env(safe-area-inset-bottom);
        }
    }

    /* --- UNIVERSAL TOUCH FEEDBACK --- */
    .btn-action,
    .nav-btn,
    .music-btn,
    .set-btn,
    .sidebar-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .btn-action:active,
    .nav-btn:active {
        transform: scale(0.95) !important;
        opacity: 0.9;
    }

    /* --- MINI STREAK INDICATOR (For Mobile Header) --- */
    .mini-streak-mobile {
        display: none;
        /* Skjult på desktop */
        align-items: center;
        gap: 6px;
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.3);
        padding: 6px 12px;
        border-radius: 20px;
        font-family: 'Righteous', sans-serif;
        transition: all 0.3s ease;
    }

    .mini-streak-mobile.on-fire {
        background: linear-gradient(135deg, rgba(255, 149, 0, 0.2), rgba(255, 217, 61, 0.2));
        border-color: #ffd93d;
        box-shadow: 0 0 15px rgba(255, 217, 61, 0.3);
    }

    .mini-streak-mobile .streak-num {
        font-size: 18px;
        color: #ef4444;
        min-width: 24px;
        text-align: center;
    }

    .mini-streak-mobile.on-fire .streak-num {
        color: #ffd93d;
        text-shadow: 0 0 10px #ffd93d;
    }

    .mini-streak-mobile .streak-icon {
        font-size: 16px;
    }

    /* --- MOBILE NEWS TICKER - DISABLED --- */
    .mobile-news-bar {
        display: none !important;
        /* Skjult på alle skærme */
    }

    /* --- MOBILE UPGRADES BAR --- */
    .mobile-upgrades-bar {
        display: none;
        /* Skjult på desktop */
    }

    @media (max-width: 767px) {
        .mobile-upgrades-bar {
            display: block;
            margin: 0 -10px;
            padding: 10px 0;
            background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
        }

        .mobile-upgrades-scroll {
            display: flex;
            gap: 8px;
            padding: 0 10px;
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        .mobile-upgrades-scroll::-webkit-scrollbar {
            display: none;
        }

        .mobile-upgrade-item {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            background: var(--bg-card);
            /* Changed from fixed rgba */
            border: 1px solid var(--border-subtle);
            /* Changed from fixed rgba */
            border-radius: 10px;
            padding: 8px 12px;
            min-width: 65px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .mobile-upgrade-item:active {
            transform: scale(0.95);
            background: var(--bg-hover);
        }

        .mobile-upgrade-item.affordable {
            border-color: var(--accent-green);
            background: rgba(74, 222, 128, 0.1);
            /* Kept explicit green tint for affordable state, but could use var */
        }

        .mobile-upgrade-item.locked {
            opacity: 0.5;
        }

        .mobile-up-icon {
            font-size: 18px;
        }

        .mobile-up-name {
            font-size: 10px;
            color: #aaa;
            font-weight: 600;
        }

        .mobile-up-price {
            font-size: 11px;
            color: #4ade80;
            font-family: 'Righteous', sans-serif;
        }

        .mobile-upgrade-item.locked .mobile-up-price {
            color: #ef4444;
        }
    }

    /* ===========================================
    📱 TABLET / LAPTOP BREAKPOINT (768px - 1399px)
    =========================================== */
    @media (min-width: 768px) and (max-width: 1399px) {

        /* Container - udnyt pladsen bedre */
        .container {
            max-width: 100%;
            padding-left: 30px;
            padding-right: 30px;
            margin: 0 auto;
        }

        /* Venstre sidebar - kompakt version */
        .unified-sidebar {
            position: fixed;
            left: 15px;
            top: 15px;
            width: 200px;
            height: calc(100vh - 30px);
        }

        /* Skjul leaderboard på tablets for plads */
        .unified-sidebar .leaderboard-section {
            display: none;
        }

        /* Højre sidebar - skjul under 1300px */
        .upgrade-sidebar {
            display: none;
        }

        /* Dashboard - behold men gør mere kompakt */
        .merged-dashboard {
            flex-wrap: wrap;
        }

        .dashboard-left {
            flex: 1;
            min-width: 250px;
        }

        .xp-dashboard-integrated {
            flex: 0.8;
            min-width: 180px;
        }

        .dashboard-right {
            flex: 1;
            min-width: 200px;
        }

        /* Roulette - mindre margins */
        .roulette-wrapper {
            margin: 20px -30px 20px -30px;
            width: calc(100% + 60px);
            max-width: calc(100% + 60px);
            height: 240px;
            border-radius: 0;
        }

        .roulette-card {
            width: 140px;
            height: 195px;
        }

        /* Knapper - 3 i en række (uden SPIN) */
        .controls-container {
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 20px;
        }

        /* Skjul SPIN knappen på tablet */
        #spin-btn {
            display: none !important;
        }

        .btn-action {
            flex: 1 1 calc(33% - 10px);
            min-width: 120px;
            max-width: 180px;
            height: 50px;
            font-size: 14px;
        }

        /* Header kompakt */
        header {
            padding: 10px 0;
            gap: 10px;
            margin-bottom: 10px;
        }

        .news-ticker-container {
            flex: 1;
            min-width: 150px;
            max-width: 300px;
        }

        /* Titel mindre */
        .game-title {
            font-size: 32px;
            margin: 5px 0;
        }

        #set-info-text {
            margin-bottom: 5px;
            font-size: 12px;
        }
    }

    /* Mellem-zone: Skjul venstre sidebar når der ikke er plads */
    @media (min-width: 768px) and (max-width: 1100px) {
        .unified-sidebar {
            display: none;
        }

        .container {
            padding-left: 20px;
            padding-right: 20px;
        }
    }

    /* ===========================================
    💻 LAPTOP BREAKPOINT (1200px - 1600px)
    For 14" laptops og lignende
    =========================================== */
    @media (min-width: 1200px) and (max-width: 1600px) {

        /* Container skal have plads til begge sidebars */
        .container {
            max-width: 100%;
            padding-left: 270px;
            /* Plads til venstre sidebar (240px + 15px margin + 15px gap) */
            padding-right: 250px;
            /* Plads til højre sidebar (220px + 15px margin + 15px gap) */
            padding-top: 10px;
        }

        /* Smallere sidebars */
        .unified-sidebar {
            width: 240px;
            left: 15px;
            top: 10px;
        }

        .upgrade-sidebar {
            width: 220px;
            right: 15px;
            top: 60px;
        }

        /* Mere kompakt header */
        header {
            padding: 8px 0;
            gap: 8px;
            margin-bottom: 5px;
        }

        /* Kompakt dashboard */
        .merged-dashboard {
            flex-wrap: nowrap;
        }

        .dashboard-left {
            flex: 1.2;
            padding: 10px 15px;
        }

        .stat-box h2 {
            font-size: 9px;
        }

        .stat-value {
            font-size: 16px;
        }

        .xp-dashboard-integrated {
            flex: 1;
            padding: 8px 12px;
        }

        .dashboard-right {
            flex: 0.9;
            padding: 8px 15px;
        }

        .streak-count {
            font-size: 20px;
        }

        /* Roulette - meget mindre margins for at spare plads */
        .roulette-wrapper {
            height: 260px;
            margin: 15px auto;
        }

        .roulette-card {
            width: 130px;
            height: 180px;
        }

        /* Titel kompakt */
        .game-title {
            font-size: 48px;
            margin: 20px 0;
        }

        #set-info-text {
            font-size: 16px;
            margin-bottom: 5px;
        }

        /* Knapper kompakte */
        .controls-container {
            margin-bottom: 15px;
            gap: 10px;
            justify-content: center;
        }

        /* Skjul SPIN knappen på laptop - brug kun AUTO */
        #spin-btn {
            display: none !important;
        }

        .btn-action {
            padding: 12px 25px;
            font-size: 14px;
            flex: 1;
            max-width: 200px;
        }

        /* Game area fylder pladsen */
        .game-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* News ticker kompakt */
        .news-ticker-container {
            height: 36px;
            margin: 0 10px;
        }

        .news-text {
            font-size: 12px;
        }

        /* Nav knapper lidt mindre */
        .nav-btn,
        .music-btn {
            width: 38px;
            height: 38px;
            font-size: 18px;
        }
    }

    /* ===========================================
    💻 LAPTOP SMALL (1100px - 1200px)
    Skjul begge sidebars, fyld pladsen
    =========================================== */
    @media (min-width: 1100px) and (max-width: 1199px) {
        .unified-sidebar {
            display: none !important;
        }

        .upgrade-sidebar {
            display: none !important;
        }

        .container {
            padding-left: 40px !important;
            padding-right: 40px !important;
            max-width: 100%;
        }

        /* Skjul SPIN knappen */
        #spin-btn {
            display: none !important;
        }

        .btn-action {
            flex: 1;
            max-width: 220px;
        }
    }

    /* ===========================================
    📱 MOBILE BREAKPOINT (<768px)
    =========================================== */
    @media (max-width: 767px) {

        /* --- GRUNDLÆGGENDE LAYOUT --- */
        body {
            padding-bottom: 20px;
        }

        .container {
            padding: 10px !important;
            width: 100% !important;
            max-width: 100vw !important;
            overflow-x: hidden;
        }

        /* Skjul sidebars */
        .unified-sidebar,
        .upgrade-sidebar {
            display: none !important;
        }

        /* --- HEADER REDESIGN --- */
        header {
            padding: 10px 0;
            gap: 10px;
        }

        .header-tools {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap;
            gap: 8px;
            margin-bottom: 0;
        }

        /* Skjul desktop news ticker, vis mobil version */
        .news-ticker-container {
            display: none !important;
        }

        .mobile-news-bar {
            display: block;
        }

        /* Vis mini streak i header */
        .mini-streak-mobile {
            display: flex !important;
        }

        .tools-left,
        .tools-right {
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }

        /* Mindre navigation knapper */
        .nav-btn,
        .music-btn {
            width: 38px;
            height: 38px;
            font-size: 16px;
            border-radius: 10px;
        }

        /* Skjul nogle knapper på mobil for at spare plads */
        .tools-right .nav-btn:nth-child(n+5) {
            display: none;
        }

        /* --- DASHBOARD REDESIGN --- */
        .merged-dashboard {
            flex-direction: column;
            background: transparent;
            border: none;
            gap: 8px;
            margin-bottom: 0;
        }

        .dashboard-left {
            display: grid !important;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 8px;
            padding: 12px !important;
            background: var(--bg-elevated);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .stat-box {
            text-align: center !important;
        }

        .stat-box h2 {
            font-size: 9px;
            margin-bottom: 2px;
        }

        .stat-value {
            font-size: 15px !important;
        }

        .dashboard-divider {
            display: none;
        }

        /* XP Bar - kompakt inline version */
        .xp-dashboard-integrated {
            display: flex !important;
            padding: 10px 12px !important;
            background: var(--bg-elevated);
            border-radius: 12px;
            border: 1px solid rgba(217, 70, 239, 0.2);
            gap: 10px;
        }

        .level-badge-mini {
            width: 36px;
            height: 36px;
        }

        .level-badge-mini span:last-child {
            font-size: 16px !important;
        }

        /* Skjul desktop streak, brug mini version i header */
        .dashboard-right {
            display: none !important;
        }

        /* --- GAME TITLE --- */
        .game-area {
            margin-top: 0 !important;
        }

        .game-title {
            font-size: 24px !important;
            margin: 0 0 2px 0 !important;
        }

        #set-info-text {
            font-size: 20px !important;
            margin-bottom: 0 !important;
            color: #666;
        }

        /* --- ROULETTE FULL-BLEED --- */
        .roulette-wrapper {
            width: 100vw !important;
            margin-left: -10px !important;
            margin-right: -10px !important;
            margin-top: 5px !important;
            margin-bottom: 10px !important;
            height: 200px !important;
            border-radius: 0 !important;
            border-left: none !important;
            border-right: none !important;
        }

        .roulette-card {
            width: 115px !important;
            height: 160px !important;
            margin: 0 4px !important;
        }

        .roulette-indicator::before,
        .roulette-indicator::after {
            font-size: 16px !important;
        }

        .card-price-tag {
            font-size: 10px;
            padding: 1px 4px;
        }

        /* --- CONTROLS REDESIGN --- */
        .controls-container {
            display: flex !important;
            flex-wrap: wrap !important;
            gap: 12px !important;
            margin-bottom: 15px !important;
            padding: 0 10px !important;
            width: 100% !important;
            box-sizing: border-box !important;
        }

        /* Skjul manuel spin på mobil */
        #spin-btn {
            display: none !important;
        }

        /* Skjul sæt-knap på mobil */
        .controls-container>button[onclick="openSetMenu()"] {
            display: none !important;
        }

        /* Basis styling for alle knapper */
        .btn-action {
            height: 65px !important;
            font-size: 15px !important;
            border-radius: 14px !important;
            padding: 0 !important;
            margin: 0 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            box-sizing: border-box !important;
            flex: none !important;
        }

        /* Auto og Turbo - hver 50% minus gap */
        .auto-btn,
        .turbo-btn {
            width: calc(50% - 6px) !important;
            flex: none !important;
        }

        /* Stop knap - 100% bredde */
        .stop-btn {
            width: 100% !important;
            flex: none !important;
        }

        /* NÃ¥r STOP vises, skjul AUTO og TURBO via CSS */
        .controls-container:has(.stop-btn[style*="display: flex"]) .auto-btn,
        .controls-container:has(.stop-btn[style*="display: flex"]) .turbo-btn,
        .controls-container:has(.stop-btn[style*="display: block"]) .auto-btn,
        .controls-container:has(.stop-btn[style*="display: block"]) .turbo-btn {
            display: none !important;
        }

        /* --- MODALS FORBEDRING --- */
        .modal {
            padding: 15px;
            align-items: flex-end;
            /* Start fra bunden som et sheet */
        }

        .modal-content {
            max-height: 85vh;
            overflow-y: auto;
            border-radius: 20px 20px 0 0;
            padding: 20px 15px 30px 15px;
            width: 100%;
            max-width: 100%;
            animation: slideUp 0.3s ease-out;
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Modal close button - større touch target */
        .btn-close {
            padding: 14px 30px;
            font-size: 16px;
            min-height: 48px;
        }

        /* Winner modal */
        .winner-image {
            width: 200px;
        }

        /* Leaderboard tabel scroll */
        .leaderboard-table {
            font-size: 11px;
        }

        .leaderboard-table th,
        .leaderboard-table td {
            padding: 8px 5px;
        }

        /* Shop grid */
        .shop-grid {
            gap: 6px;
        }

        /* Game Over modal */
        .gameover-popup {
            padding: 15px !important;
        }

        .gameover-popup h2 {
            font-size: 28px !important;
        }

        .go-stat-box {
            padding: 8px 5px;
        }

        .go-stat-value {
            font-size: 18px;
        }

        /* Achievements grid */
        .achievements-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 8px;
        }

        .ach-card {
            padding: 12px 8px;
        }

        /* Loot grid */
        .loot-grid {
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            gap: 8px;
        }
    }

    /* ===========================================
    📱 EXTRA SMALL SCREENS (iPhone SE, etc.)
    =========================================== */
    @media (max-width: 380px) {
        .container {
            padding: 8px !important;
        }

        .stat-value {
            font-size: 13px !important;
        }

        .game-title {
            font-size: 22px !important;
        }

        .roulette-wrapper {
            height: 170px !important;
        }

        .roulette-card {
            width: 95px !important;
            height: 132px !important;
        }

        .btn-action {
            height: 55px !important;
            font-size: 13px !important;
        }

        .nav-btn,
        .music-btn {
            width: 34px;
            height: 34px;
            font-size: 14px;
        }

        .mini-streak-mobile {
            padding: 4px 8px;
        }

        .mini-streak-mobile .streak-num {
            font-size: 14px;
        }
    }


    /* ===========================================
    🖥️ LARGE DESKTOP (1600px+)
    =========================================== */
    @media (min-width: 1600px) {
        .container {
            /* ÆNDRET: Fra 1400px til 100% så den udnytter hele din 24" skærm */
            max-width: 100% !important;

            /* Justerer padding så indholdet ikke rammer sidebars */
            padding-left: 320px;
            padding-right: 300px;
        }

        .unified-sidebar {
            width: 280px;
        }

        .upgrade-sidebar {
            width: 260px;
        }
    }

    /* ===========================================
    🔄 LANDSCAPE MOBILE FIX
    =========================================== */
    @media (max-height: 500px) and (orientation: landscape) {
        .roulette-wrapper {
            height: 150px !important;
            margin: 5px -10px !important;
        }

        .roulette-card {
            width: 90px !important;
            height: 125px !important;
        }

        .controls-container {
            margin-bottom: 10px !important;
        }

        .btn-action {
            height: 45px !important;
        }

        .modal-content {
            max-height: 95vh;
        }

        .dashboard-left {
            padding: 8px !important;
        }

        .game-title {
            display: none !important;
        }
    }

    /* --- KOMPAKT GAME OVER SKÆRM --- */
    .gameover-popup {
        max-width: 350px !important;
        /* Gør boksen smallere */
        padding: 15px !important;
        /* Mindre luft i kanten */
    }

    /* Gør det store ikon (💀/🏆) mindre */
    #go-icon {
        font-size: 40px !important;
        /* Før: 50px */
        margin-bottom: 0 !important;
    }

    /* Gør "GAME OVER" titlen mindre */
    .gameover-popup h2 {
        font-size: 28px !important;
        /* Før: 36px */
        margin: 5px 0 !important;
    }

    /* Gør underteksten mindre */
    #go-subtitle {
        margin-bottom: 10px !important;
    }

    /* Gør statistik-kasserne (Runder/Streak/XP) mere kompakte */
    .go-stat-box {
        padding: 5px !important;
    }

    .go-stat-value {
        font-size: 16px !important;
        /* Mindre tal */
    }

    .go-stat-label {
        font-size: 8px !important;
    }

    /* Strammer XP-baren op */
    .gameover-popup .xp-progress-container {
        margin-bottom: 10px !important;
    }

    /* Gør input-feltet til navn mindre */
    #player-name {
        padding: 8px !important;
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }

    /* Gør knapperne i bunden lidt mindre */
    .gameover-popup button {
        padding: 10px !important;
        font-size: 14px !important;
    }

    /* --- SCROLLABLE GAME OVER SKÆRM --- */
    .gameover-popup {
        /* Gør boksen smallere */
        max-width: 340px !important;

        /* VIGTIGT: Sætter en max-højde (f.eks. 60% af skærmen) */
        max-height: 60vh !important;

        /* VIGTIGT: Aktiverer scroll hvis indholdet er for højt */
        overflow-y: auto !important;

        /* Lidt design justeringer */
        padding: 15px !important;
        border-radius: 15px !important;
    }

    /* Gør teksten lidt mindre så mere kan ses uden at scrolle */
    #go-icon {
        font-size: 40px !important;
        margin-bottom: 0 !important;
    }

    .gameover-popup h2 {
        font-size: 24px !important;
        margin: 5px 0 !important;
    }

    .go-stat-value {
        font-size: 16px !important;
    }

    /* Styling af scrollbaren (så den ser pæn ud) */
    .gameover-popup::-webkit-scrollbar {
        width: 6px;
    }

    .gameover-popup::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    .gameover-popup::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 3px;
    }

    .gameover-popup::-webkit-scrollbar-thumb:hover {
        background: #888;
    }


    /* --- AKTIVE BONUSSER WIDGET --- */
    .bonus-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 8px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 6px;
        margin-bottom: 5px;
        border-left: 3px solid transparent;
        transition: all 0.2s;
    }

    .bonus-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .bonus-item.powerup {
        border-left-color: #4ade80;
    }

    .bonus-item.upgrade {
        border-left-color: #ffd93d;
    }

    .bonus-item.talent {
        border-left-color: #d946ef;
        cursor: pointer;
    }

    .bonus-item.prestige {
        border-left-color: #ff6b6b;
    }

    .bonus-icon {
        font-size: 16px;
        min-width: 24px;
        text-align: center;
    }

    .bonus-info {
        flex: 1;
        min-width: 0;
    }

    .bonus-name {
        font-size: 11px;
        font-weight: 600;
        color: #fff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bonus-desc {
        font-size: 9px;
        color: #888;
    }

    .bonus-value {
        font-size: 10px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.3);
    }

    .bonus-value.green {
        color: #4ade80;
    }

    .bonus-value.gold {
        color: #ffd93d;
    }

    .bonus-value.purple {
        color: #d946ef;
    }

    .no-bonuses-text {
        color: #666;
        font-size: 11px;
        text-align: center;
        padding: 15px 0;
    }

    /* --- VISUAL POLISH ADDITIONS --- */
    .flying-money {
        position: absolute;
        color: #4ade80;
        font-weight: bold;
        font-size: 1.5rem;
        pointer-events: none;
        animation: flyUp 1s ease-out forwards;
        z-index: 1000;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    @keyframes flyUp {
        0% {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        100% {
            transform: translateY(-100px) scale(1.5);
            opacity: 0;
        }
    }

    .roulette-card.ultra::after,
    .roulette-card.secret::after,
    .roulette-card.legendary::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
        background-size: 200% 200%;
        animation: shine 3s infinite;
        pointer-events: none;
    }

    @keyframes shine {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }


    /* --- SETTINGS MODAL CSS --- */
    .setting-group {
        margin-bottom: 20px;
        text-align: left;
    }

    .setting-group label {
        display: block;
        margin-bottom: 5px;
        color: #aaa;
        font-size: 14px;
    }

    .setting-group input[type=range] {
        width: 100%;
    }

    .danger-btn {
        background: #ef4444;
        color: white;
        border: none;
        padding: 10px;
        width: 100%;
        border-radius: 5px;
        cursor: pointer;
    }

    .danger-btn:hover {
        background: #dc2626;
    }

    /* --- SKELETON LOADING STATES --- */
    .skeleton {
        background: linear-gradient(90deg,
                var(--bg-card) 0%,
                var(--bg-elevated) 50%,
                var(--bg-card) 100%);
        background-size: 200% 100%;
        animation: skeleton-shimmer 1.5s ease-in-out infinite;
    }

    @keyframes skeleton-shimmer {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    .skeleton-card {
        width: 150px;
        height: 210px;
        margin: 0 6px;
        border-radius: 12px;
        flex-shrink: 0;
        background: linear-gradient(90deg,
                rgba(30, 30, 60, 1) 0%,
                rgba(50, 50, 80, 1) 50%,
                rgba(30, 30, 60, 1) 100%);
        background-size: 200% 100%;
        animation: skeleton-shimmer 1.2s ease-in-out infinite;
        border: 2px solid rgba(255, 255, 255, 0.05);
    }

    .skeleton-text {
        height: 1em;
        border-radius: 4px;
        background: linear-gradient(90deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.1) 50%,
                rgba(255, 255, 255, 0.05) 100%);
        background-size: 200% 100%;
        animation: skeleton-shimmer 1.5s ease-in-out infinite;
    }

    /* --- UX IMPROVEMENTS --- */

    /* Tooltips */
    [data-tooltip] {
        position: relative;
    }

    [data-tooltip]::before {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-5px);
        background: rgba(0, 0, 0, 0.9);
        color: #fff;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 11px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s, transform 0.2s;
        z-index: 1000;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    [data-tooltip]::after {
        content: '';
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: rgba(0, 0, 0, 0.9);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
    }

    [data-tooltip]:hover::before,
    [data-tooltip]:hover::after {
        opacity: 1;
    }

    [data-tooltip]:hover::before {
        transform: translateX(-50%) translateY(-8px);
    }

    /* Floating Utility Buttons Container */
    .floating-utils {
        position: fixed;
        bottom: 20px;
        right: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 999;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    .floating-btn:hover {
        transform: scale(1.1);
    }

    /* Sound Button */
    .sound-btn {
        background: linear-gradient(135deg, #6eb5ff, #a78bfa);
    }

    .sound-btn.muted {
        background: linear-gradient(135deg, #666, #444);
    }

    .sound-btn.playing {
        animation: soundPulse 1.5s ease-in-out infinite;
    }

    @keyframes soundPulse {

        0%,
        100% {
            box-shadow: 0 4px 15px rgba(110, 181, 255, 0.4);
        }

        50% {
            box-shadow: 0 4px 25px rgba(167, 139, 250, 0.7);
        }
    }

    /* Help Button */
    .help-btn {
        background: linear-gradient(135deg, #ffd93d, #ff9500);
        color: #000;
        font-weight: bold;
    }

    /* Shortcuts Modal */
    .shortcuts-content {
        text-align: left;
    }

    .shortcut-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .shortcut-row:last-child {
        border-bottom: none;
    }

    .shortcut-key {
        background: rgba(255, 255, 255, 0.1);
        padding: 4px 12px;
        border-radius: 4px;
        font-family: monospace;
        font-size: 14px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .shortcut-desc {
        color: #aaa;
        font-size: 13px;
    }

    /* --- MOBILE RESPONSIVE LAYOUT --- */

    /* Mobile Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: linear-gradient(180deg, rgba(18, 18, 42, 0.95), rgba(10, 10, 26, 0.98));
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .mobile-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #aaa;
        padding: 8px 16px;
        cursor: pointer;
        transition: all 0.2s ease;
        border-radius: 12px;
    }

    .mobile-nav-btn span {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .mobile-nav-btn small {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-nav-btn:active {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(0.95);
    }

    .mobile-nav-btn.active {
        color: var(--accent-yellow);
    }

    /* Sidebar Toggle Button (visible only on mobile) */
    .sidebar-toggle {
        display: none;
        position: fixed;
        top: 10px;
        z-index: 1001;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        border: none;
        background: rgba(18, 18, 42, 0.9);
        color: #fff;
        font-size: 20px;
        cursor: pointer;
        backdrop-filter: blur(10px);
    }

    .sidebar-toggle.left {
        left: 10px;
    }

    .sidebar-toggle.right {
        right: 10px;
    }

    /* Sidebar overlay for mobile */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Tablet breakpoint - collapsible sidebars */
    @media (max-width: 1024px) {
        .unified-sidebar {
            position: fixed;
            top: 0;
            bottom: 0;
            z-index: 999;
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }

        .unified-sidebar.left {
            left: 0;
        }

        .unified-sidebar.right {
            right: 0;
            transform: translateX(100%);
        }

        .unified-sidebar.open {
            transform: translateX(0);
        }

        .main-content {
            margin-left: 0 !important;
            margin-right: 0 !important;
            padding: 10px;
        }

        .sidebar-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    /* Mobile breakpoint - bottom nav */
    @media (max-width: 768px) {
        .mobile-bottom-nav {
            display: flex;
        }

        body {
            padding-bottom: 80px;
        }

        /* Hide desktop controls on mobile - use bottom nav instead */
        .controls-container {
            display: none !important;
        }

        .btn-action {
            padding: 10px 16px;
            font-size: 13px;
        }


        /* Hide some desktop controls on mobile */
        .turbo-btn,
        .auto-btn,
        .stop-btn {
            display: none;
        }

        .game-header {
            flex-direction: column;
            gap: 5px;
            padding: 5px 0;
        }

        .game-title {
            font-size: 1.5rem;
            margin: 0;
        }

        .game-subtitle {
            font-size: 11px;
            margin: 0;
        }

        .spin-zone {
            padding: 10px 5px;
        }

        /* Kompakt header tools */
        .header-tools {
            flex-wrap: wrap;
            gap: 5px;
            padding: 5px;
        }

        .header-tools button {
            padding: 6px 10px;
            font-size: 12px;
        }

        /* Stats bar mere kompakt */
        .stats-dashboard {
            padding: 8px;
            gap: 5px;
            margin: 5px 0;
        }

        .stat-item {
            padding: 5px 8px;
        }

        /* XP bar mere kompakt */
        .xp-dashboard-integrated {
            padding: 5px 10px;
            margin: 5px 0;
        }

        /* Roulette tættere på */
        .roulette-window {
            margin: 5px 0;
        }

        /* Upgrade bar skjules - brugeren kan åbne shop */
        .mobile-upgrades-bar {
            display: none !important;
        }

        /* Pity bar kompakt */
        .pity-container {
            padding: 8px;
            margin: 5px 0 10px 0;
        }

        /* Game area - fjern tomt rum */
        .game-area {
            padding: 0 10px;
            margin: 0;
        }

        .game-area h1 {
            font-size: 1.5rem;
            margin: 10px 0 5px 0;
        }

        .game-area p {
            margin: 0 0 20px 0;
            font-size: 12px;
        }

        /* Roulette wrapper tættere */
        .roulette-wrapper {
            margin-top: 15px;
        }

        /* Skjul news bar på mobil */
        .mobile-news-bar {
            display: none;
        }

        /* Header mere kompakt */
        header {
            padding: 5px 0;
        }
    }

    /* Small mobile - endnu mere kompakt */
    @media (max-width: 480px) {
        .mobile-nav-btn {
            padding: 8px 12px;
        }

        .mobile-nav-btn span {
            font-size: 20px;
        }

        .roulette-container {
            height: 160px;
        }

        .roulette-card {
            width: 110px;
            height: 154px;
            margin: 0 4px;
        }

        .game-title {
            font-size: 1.3rem;
        }

        /* Skjul XP bar på meget små skærme */
        .xp-dashboard-integrated {
            display: none;
        }

        .stats-dashboard {
            font-size: 11px;
        }

        .stat-value {
            font-size: 14px;
        }

        /* Skjul header tools-right på mobil */
        .tools-right {
            display: none !important;
        }
    }

    /* Mobile More Menu Popup */
    .mobile-more-menu {
        display: none;
        position: fixed;
        bottom: 80px;
        right: 10px;
        background: rgba(18, 18, 42, 0.98);
        backdrop-filter: blur(15px);
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px;
        z-index: 1001;
        flex-direction: column;
        gap: 4px;
        box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
        min-width: 160px;
    }

    .mobile-more-menu.open {
        display: flex;
        animation: slideUp 0.2s ease;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-more-menu button {
        background: rgba(255, 255, 255, 0.05);
        border: none;
        color: #fff;
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 14px;
        text-align: left;
        cursor: pointer;
        transition: background 0.2s;
    }

    .mobile-more-menu button:hover,
    .mobile-more-menu button:active {
        background: rgba(255, 255, 255, 0.15);
    }

    /* --- PRESTIGE TALENT CARDS --- */
    .prestige-talent-card {
        display: flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(135deg, rgba(255, 217, 61, 0.05), rgba(255, 165, 0, 0.03));
        border: 1px solid rgba(255, 217, 61, 0.2);
        border-radius: 10px;
        padding: 12px;
        margin-bottom: 8px;
        transition: all 0.2s ease;
    }

    .prestige-talent-card:hover {
        background: linear-gradient(135deg, rgba(255, 217, 61, 0.1), rgba(255, 165, 0, 0.05));
        transform: translateX(3px);
    }

    .prestige-talent-card.maxed {
        background: linear-gradient(135deg, rgba(74, 222, 128, 0.1), rgba(34, 197, 94, 0.05));
        border-color: rgba(74, 222, 128, 0.3);
    }

    .prestige-upgrade-btn {
        padding: 8px 16px;
        border-radius: 8px;
        border: none;
        font-weight: bold;
        cursor: pointer;
        background: linear-gradient(135deg, #ffd93d, #ff9500);
        color: #000;
        font-family: 'Righteous', sans-serif;
        font-size: 12px;
        white-space: nowrap;
        transition: all 0.2s ease;
    }

    .prestige-upgrade-btn:hover:not(:disabled) {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 217, 61, 0.4);
    }

    .prestige-upgrade-btn:disabled {
        background: #333;
        color: #666;
        cursor: not-allowed;
    }

    .prestige-talent-card.maxed .prestige-upgrade-btn {
        background: linear-gradient(135deg, #4ade80, #22c55e);
        color: #004d20;
    }

    /* --- CHRISTMAS THEME VARIABLES --- */
    body.theme-christmas {
        /* Primary (Red) */
        --primary: #dc2626;
        --primary-hover: #b91c1c;

        /* Accents */
        --accent-yellow: #fbbf24;
        /* Gold */
        --accent-green: #15803d;
        /* Pine */
        --accent-red: #ff0000;
        /* Bright Red */
        --accent-blue: #1e3a8a;
        /* Dark Blue (Night Sky) */
        --accent-purple: #991b1b;
        /* Replaced purple with dark red for cohesion */

        /* Backgrounds */
        --bg-deep: #0f1a10;
        /* Very dark pine green tint */
        --bg-card: rgba(40, 10, 10, 0.8);
        /* Warm reddish dark card */
        --bg-elevated: rgba(20, 40, 20, 0.8);
        --bg-hover: rgba(60, 20, 20, 0.8);

        /* Borders */
        --border-subtle: rgba(220, 38, 38, 0.3);
        /* Red tint border */
        --bg-glow: rgba(220, 38, 38, 0.15);
    }

    /* Force specific overrides for gradients if needed */
    body.theme-christmas .game-title {
        background: linear-gradient(135deg, #dc2626, #15803d);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
    }

    body.theme-christmas .btn-action.spin-btn {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
    }

    body.theme-christmas .btn-action.spin-btn:hover {
        box-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
    }

    /* --- CHRISTMAS THEME --- */

    /* Santa Hat */
    /* Santa Hat */
    .santa-hat {
        position: absolute;
        top: -25px;
        left: 50%;
        font-size: 32px;
        transform: translateX(-50%) rotate(-5deg);
        filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.5));
        z-index: 100;
        pointer-events: none;
        animation: hat-bob 2s ease-in-out infinite;
    }

    @keyframes hat-bob {

        0%,
        100% {
            transform: translateX(-50%) rotate(-5deg) translateY(0);
        }

        50% {
            transform: translateX(-50%) rotate(0deg) translateY(-2px);
        }
    }

    /* Snowfall Container */
    #snow-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 9999;
        overflow: hidden;
    }

    .snowflake {
        position: absolute;
        color: #fff;
        font-size: 1em;
        font-family: Arial;
        text-shadow: 0 0 1px #000;
        user-select: none;
        z-index: 1000;
        cursor: default;
        animation-name: snowflakes-fall, snowflakes-shake;
        animation-duration: 10s, 3s;
        animation-timing-function: linear, ease-in-out;
        animation-iteration-count: infinite, infinite;
    }

    @keyframes snowflakes-fall {
        0% {
            top: -10%;
        }

        100% {
            top: 100%;
        }
    }

    @keyframes snowflakes-shake {
        0% {
            transform: translateX(0px);
        }

        50% {
            transform: translateX(80px);
        }

        100% {
            transform: translateX(0px);
        }
    }

    /* --- UPDATED STATS MODAL --- */
    .stats-grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
        margin-bottom: 20px;
    }

    .stats-group {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 12px;
    }

    .stats-header {
        font-size: 10px;
        color: var(--text-secondary);
        letter-spacing: 1px;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 4px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .stat-row {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        padding: 3px 0;
        color: #ccc;
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }

    .stat-row:last-child {
        border-bottom: none;
    }

    .stat-val {
        color: #fff;
        font-weight: bold;
        font-family: 'Righteous', sans-serif;
    }

    /* --- BINDER SORTING STYLES --- */
    .binder-val-tag {
        position: absolute;
        bottom: 5px;
        right: 5px;
        background: #ffd93d;
        color: black;
        font-size: 10px;
        font-weight: bold;
        padding: 2px 4px;
        border-radius: 3px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        z-index: 5;
        font-family: 'Righteous', sans-serif;
    }

    /* --- LEADERBOARD TABS --- */
    .lb-tab {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 8px 16px;
        color: #888;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .lb-tab:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        transform: translateY(-2px);
    }

    .lb-tab.active {
        background: linear-gradient(135deg, #ffd93d, #ff9500);
        border-color: #ffd93d;
        color: #000;
        box-shadow: 0 4px 15px rgba(255, 217, 61, 0.3);
    }

    .leaderboard-table th.sortable {
        cursor: pointer;
        transition: color 0.2s;
    }

    .leaderboard-table th.sortable:hover {
        color: #ffd93d;
    }

    .leaderboard-table th.sortable.active {
        color: #ffd93d;
        text-decoration: underline;
    }

    /* Personal Best Highlight */
    .leaderboard-entry.is-you,
    .leaderboard-table tr.is-you {
        background: rgba(255, 217, 61, 0.1) !important;
        border-left: 3px solid #ffd93d;
    }

    .leaderboard-table tr.is-you td:first-child::before {
        content: "→ ";
        color: #ffd93d;
    }