/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    min-height: 100vh;
    color: #e0e0e0;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.05) 2px, rgba(255, 255, 255, 0.05) 4px);
    pointer-events: none;
    z-index: 0;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: rgba(30, 30, 30, 0.95);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Sticky Header Group */
.sticky-header-group {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #2a2a2a; /* Fallback background */
}

/* Header */
.game-header {
    background: linear-gradient(135deg, #333, #555);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.game-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.money-display {
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
    min-width: 120px;
}

.money-item {
    white-space: nowrap;
    margin-right: 0.5rem;
}

/* Dirty Money Progress Bar */
.dirty-money-progress {
    margin-top: 0.5rem;
    width: 100%;
}

.progress-bar {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    height: 100%;
    width: 0%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.progress-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 0.25rem;
}

.progress-skill {
    font-size: 0.75rem;
    color: rgb(255, 191, 15);
    text-align: center;
    margin-top: 0.25rem;
    cursor: pointer;
}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
}

/* Navigation */
.game-nav {
    display: flex;
    background: #2a2a2a;
    border-bottom: 2px solid #444;
}

.nav-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: #3a3a3a;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-btn.active {
    background: #555;
    color: white;
    border-bottom-color: #777;
}

.nav-btn.disabled {
    background: #2a2a2a;
    color: #666;
    cursor: not-allowed;
}

.nav-btn:not(.disabled):hover {
    background: #4a4a4a;
    transform: translateY(-2px);
}

.nav-btn.active:hover {
    background: #666;
}

/* Game Container */
.game-container {
    padding: 1rem;
}

/* Money Legend */
.money-legend {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-emoji {
    font-size: 1.2rem;
    margin-right: 0.8rem;
    min-width: 1.5rem;
    text-align: center;
}

.legend-text {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 500;
}

/* Upgrades Section */
.upgrades-section {
    margin-top: 2rem;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 10px;
}

.upgrades-section h3 {
    margin-bottom: 1rem;
    color: #e0e0e0;
    text-align: center;
}

.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.upgrade-card {
    background: #3a3a3a;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #555;
}

.upgrade-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.upgrade-card h4 {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.upgrade-card p {
    color: #bbb;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.upgrade-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #bbb;
}

.upgrade-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background: #28a745;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upgrade-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

.upgrade-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

/* Action Buttons */
.action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: #555;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem auto;
    display: block;
}

.action-btn:hover {
    background: #666;
    transform: scale(1.05);
}

.action-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

/* Unlock Section */
.unlock-section {
    margin-top: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #444, #666);
    border-radius: 10px;
    text-align: center;
    border: 1px solid #777;
}

.unlock-card h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.unlock-card p {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.unlock-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: #ff6b6b;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.unlock-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.unlock-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

/* Clicker Game */
.clicker-container {
    text-align: center;
    padding: 2rem;
}

.clicker-container h2 {
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.clicker-area {
    margin: 2rem 0;
}

.click-button {
    width: 200px;
    height: 200px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.click-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.click-button:active {
    transform: scale(0.95);
}

.click-button:disabled {
    background: #444;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.clicker-stats {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.clicker-stats p {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    color: #e0e0e0;
    border: 1px solid #555;
}

.future-upgrades {
    margin-top: 2rem;
    padding: 1rem;
    background: #3a3a3a;
    border-radius: 8px;
    color: #e0e0e0;
    border: 1px solid #555;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #2a2a2a;
    border-radius: 10px;
    max-width: 90%;
    width: 400px;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid #555;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #555;
    background: linear-gradient(135deg, #444, #666);
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h4 {
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.settings-section p {
    margin-bottom: 0.5rem;
    color: #bbb;
    line-height: 1.4;
}

.settings-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.settings-section li {
    margin-bottom: 0.3rem;
    color: #bbb;
}

.warning-text {
    color: #ff6b6b !important;
    font-weight: bold;
    font-size: 0.9rem;
}

.reset-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #ee5a52, #dc3545);
    transform: translateY(-2px);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.confirm-reset-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.confirm-reset-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
}

.cancel-btn {
    background: #555;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #666;
    transform: translateY(-2px);
}

/* Stats Modal Styles */
.stats-section {
    margin-bottom: 2rem;
}

.stats-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 1rem;
}

.chart-legend {
    margin-top: 1rem;
}

#chart-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: #333;
    border-radius: 4px;
    font-size: 0.8rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    gap: 0.8rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #333;
    border-radius: 6px;
    border: 1px solid #555;
}

.stat-label {
    color: #ccc;
    font-weight: 500;
}

.stat-value {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1em;
}

/* Volume Control Styles */
.volume-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.volume-control label {
    color: #e0e0e0;
    font-weight: bold;
    font-size: 1rem;
}

.volume-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #45a049);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #45a049);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #333;
    border: none;
}

#volume-display {
    color: #4caf50;
    font-weight: bold;
    font-size: 1rem;
    min-width: 40px;
    text-align: center;
}

/* Custom Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #1e1e1e 0%, #2e2e2e 50%, #1e1e1e 100%);
    border-radius: 16px;
    border: 2px solid #81c784;
    box-shadow: 
        0 8px 32px rgba(129, 199, 132, 0.2),
        0 4px 16px rgba(129, 199, 132, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    border-color: #4caf50;
    box-shadow: 
        0 10px 40px rgba(129, 199, 132, 0.3),
        0 5px 20px rgba(129, 199, 132, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #444 0%, #333 100%);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #666;
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

.checkbox-container input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.checkbox-container input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #81c784 0%, #4caf50 100%);
    border-color: #2e7d32;
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(129, 199, 132, 0.4),
        0 0 20px rgba(129, 199, 132, 0.3);
}

.checkbox-container input[type="checkbox"]:checked::before {
    left: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.checkbox-container input[type="checkbox"]:hover {
    transform: scale(1.02);
}

.checkbox-container input[type="checkbox"]:active {
    transform: scale(0.98);
}

.checkbox-container label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

.checkbox-container input[type="checkbox"]:checked + label {
    color: #81c784;
    text-shadow: 0 0 10px rgba(129, 199, 132, 0.5);
}

.checkbox-container label:hover {
    color: #81c784;
    transform: translateY(-1px);
}

.checkbox-container.active {
    border-color: #4caf50;
    background: linear-gradient(135deg, #1e2e1e 0%, #2e3e2e 50%, #1e2e1e 100%);
}


.checkbox-container.disabled {
    opacity: 0.6;
    border-color: #666;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.checkbox-container.disabled label {
    color: #666;
    cursor: not-allowed;
}

.checkbox-container.disabled input[type="checkbox"] {
    cursor: not-allowed;
    background: linear-gradient(135deg, #333 0%, #222 100%);
    border-color: #555;
}

/* Initially hide clicker game until unlocked */
.game-section {
    display: none;
    border-radius: 10px;
    margin: 1rem 0;
}

.game-section.unlocked {
    display: block;
}
#scratch-game {
    border: 3px dashed #ff90901c;
}
#clicker-game {
    border: 3px dashed #28a74625;
}
#slot-game {
    border: 3px dashed #ff6b3521;
}

/* Instructions Modal Styles */
.instructions-modal-content {
    width: 600px;
    max-width: 95vw;
}

.instructions-body {
    padding: 1.5rem;
}

.instructions-section {
    margin-bottom: 2rem;
}

.instructions-section:last-child {
    margin-bottom: 0;
}

.instructions-section h4 {
    margin-bottom: 1.5rem;
    color: #ffd700;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid #555;
    padding-bottom: 0.5rem;
}

.instructions-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #555;
    margin-top: 2rem;
}

.instructions-footer p {
    margin-bottom: 1rem;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

.instructions-close-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.instructions-close-btn:hover {
    background: linear-gradient(135deg, #ffed4e, #fff176);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    #app {
        max-width: 100%;
    }
    
    .game-header h1 {
        font-size: 1.5rem;
    }
    
    .money-display {
        font-size: 1.2rem;
    }
    
    .upgrade-grid {
        grid-template-columns: 1fr;
    }
    
    .click-button {
        width: 150px;
        height: 150px;
        font-size: 1.2rem;
    }
    
    .clicker-stats {
        grid-template-columns: 1fr;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* Save Management Styles */
.save-management {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.save-export,
.save-import,
.save-reset {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.save-export h5,
.save-import h5,
.save-reset h5 {
    margin: 0 0 0.75rem 0;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
}

.export-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.export-btn,
.import-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
}

.export-btn:hover,
.import-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
}

.import-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.import-text-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.import-text-area {
    background: #333;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 0.5rem;
    resize: vertical;
    font-family: monospace;
    font-size: 0.85rem;
    min-height: 60px;
}

.import-text-area:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.import-text-area::placeholder {
    color: #888;
}

.save-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}


/* Success/Error Messages */
.save-message {
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: bold;
}

.save-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Won Modal Specific Styles */
.won-modal-content {
    width: 500px;
    max-width: 95%;
}

.won-content {
    text-align: center;
}

.won-content h2 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.won-description {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.won-stats {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: #ccc;
    font-weight: normal;
}

.stat-value {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

.won-message {
    font-size: 1rem;
    color: #e0e0e0;
    margin: 1.5rem 0;
    line-height: 1.5;
    font-style: italic;
}

/* Celebration effect for won modal header */
.won-modal-content .modal-header {
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    animation: wonGradientShift 3s ease infinite;
}

@keyframes wonGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.won-modal-content .modal-header h3 {
    color: #2a2a2a;
    font-weight: bold;
    text-shadow: none;
}
