:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(28, 36, 56, 0.85);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-active: rgba(245, 158, 11, 0.5);

    --primary-gold: #f59e0b;
    --primary-gold-light: #fbbf24;
    --gold-glow: rgba(245, 158, 11, 0.4);
    
    --purple-accent: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.35);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-gold: #fcd34d;

    --btn-danger: #ef4444;
    --btn-success: #10b981;

    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* App Container */
.app-container {
    width: 100vw;
    height: 100vh;
    max-width: 1400px;
    max-height: 900px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

/* Glow Elements */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold-glow) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--purple-glow) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    right: -150px;
}

/* Header Styling */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    margin-bottom: 20px;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-stats {
    display: flex;
    gap: 20px;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.stat-value.highlight {
    color: var(--purple-accent);
}

.stat-value.multiplier {
    color: var(--primary-gold-light);
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Button UI */
button {
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    padding: 8px 14px;
    font-size: 1.2rem;
    border: 1px solid var(--border-card);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 8px 16px;
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 8px 16px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #d97706 100%);
    color: #000;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-primary-action:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.btn-primary-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

/* Layout Body */
.game-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
    min-height: 0;
    z-index: 10;
}

/* Left Panel: Clicker Section */
.clicker-section {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.currency-display {
    text-align: center;
    margin-top: 10px;
}

.balance-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--text-gold);
    text-shadow: 0 0 20px var(--gold-glow);
    margin: 4px 0;
}

.cps-display {
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-mono);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--btn-success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--btn-success);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Coin Display & Wrapper */
.coin-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#particle-canvas {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 380px;
    height: 380px;
    pointer-events: none;
    z-index: 1;
}

.coin-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--gold-glow) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
}

.coin-container {
    position: relative;
    width: 220px;
    height: 220px;
    cursor: pointer;
    z-index: 2;
    outline: none;
    transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.coin-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
    transition: filter 0.2s;
}

.coin-container:hover {
    transform: scale(1.05);
}

.coin-container:active {
    transform: scale(0.92);
}

/* Floating Text FX */
#floating-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.floating-text {
    position: absolute;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.6rem;
    color: #ffe066;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 15px var(--primary-gold);
    animation: floatUp 0.8s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-40px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0.8);
    }
}

/* Click Info Card */
.click-info-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 10px 24px;
    width: 90%;
    justify-content: space-around;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-item .value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-main);
}

.info-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

/* Auto Clicker Card & Levels 1 - 10 */
.autoclicker-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    width: 90%;
}

.autoclicker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.autoclicker-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.autoclicker-icon {
    font-size: 1.8rem;
}

.autoclicker-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.autoclicker-sub {
    font-size: 0.78rem;
    color: #34d399;
    font-family: var(--font-mono);
}

.btn-buy-autoclicker {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 7px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-buy-autoclicker:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.btn-buy-autoclicker:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
}

.autoclicker-pills-row {
    display: flex;
    gap: 4px;
    justify-content: space-between;
}

.autoclicker-pill {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-mono);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.autoclicker-pill.active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.autoclicker-pill.current {
    background: #10b981;
    color: #000000;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

/* Right Panel: Shop Section */
.shop-section {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-card);
}

.tab-btn {
    flex: 1;
    padding: 12px 6px;
    background: transparent;
    color: var(--text-muted);
    border-radius: 0;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--primary-gold-light);
    border-bottom-color: var(--primary-gold);
    background: rgba(245, 158, 11, 0.08);
}

.tab-content-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    min-height: 0;
}

.tab-content {
    display: none;
    height: 100%;
}

.tab-content.active {
    display: block;
}

/* Upgrade Cards List */
.upgrade-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upgrade-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    transition: all 0.2s ease;
}

.upgrade-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.upgrade-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.upgrade-icon {
    font-size: 2rem;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.upgrade-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upgrade-title {
    font-size: 1rem;
    font-weight: 700;
}

.upgrade-effect {
    font-size: 0.82rem;
    color: var(--text-gold);
}

.upgrade-buy-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.upgrade-level {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #d97706 100%);
    color: #000;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px var(--gold-glow);
}

.btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.btn-buy:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
}

/* Minigames Section Styling */
.minigames-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.minigame-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.minigame-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.minigame-icon {
    font-size: 2.2rem;
}

.minigame-header h3 {
    font-size: 1.1rem;
    color: var(--primary-gold-light);
}

.minigame-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Coin Flip Game */
.coin-flip-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
}

.flip-coin-display {
    font-size: 3.5rem;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-coin-display.flipping {
    animation: flip3D 0.8s ease-in-out infinite;
}

@keyframes flip3D {
    0% { transform: rotateY(0deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.3); }
    100% { transform: rotateY(360deg) scale(1); }
}

.coin-flip-actions {
    display: flex;
    gap: 10px;
}

.btn-flip {
    flex: 1;
    background: rgba(245, 158, 11, 0.15);
    color: var(--text-gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.btn-flip:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
}

/* Lucky Wheel Game */
.wheel-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
}

.wheel-pointer {
    font-size: 1.8rem;
    z-index: 5;
    margin-bottom: -15px;
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.6), 0 0 15px var(--gold-glow);
}

.wheel-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cooldown-timer {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Coin Catcher Game */
.catcher-stage {
    position: relative;
    width: 100%;
    height: 180px;
    background: #060911;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

#catcher-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.catcher-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 17, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.catcher-hud {
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-main);
    z-index: 5;
    pointer-events: none;
}

/* Slot Machine Styling */
.slot-machine-stage {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    background: #060911;
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}

.slot-reel {
    flex: 1;
    height: 70px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    transition: transform 0.1s;
}

.slot-reel.spinning {
    animation: reelSpin 0.15s linear infinite;
}

@keyframes reelSpin {
    0% { transform: translateY(-10px) scale(0.9); opacity: 0.5; }
    50% { transform: translateY(0) scale(1.1); opacity: 1; }
    100% { transform: translateY(10px) scale(0.9); opacity: 0.5; }
}

.slot-actions {
    display: flex;
    justify-content: center;
}

/* Higher or Lower Card Rush */
.card-rush-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.card-display {
    width: 70px;
    height: 95px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    color: #0f172a;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 900;
    font-family: var(--font-mono);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
    border: 2px solid var(--primary-gold);
}

.streak-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.card-rush-actions {
    display: flex;
    gap: 10px;
}

/* Memory Match Tiles */
.memory-stage {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.memory-tile {
    height: 55px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.memory-tile:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.memory-tile.flipped {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--primary-gold);
    transform: rotateY(180deg);
}

.memory-tile.matched {
    background: rgba(16, 185, 129, 0.25);
    border-color: #34d399;
    opacity: 0.85;
    pointer-events: none;
}

.memory-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Rebirth Tab Styling */
.rebirth-card {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1) 0%, rgba(18, 24, 38, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.rebirth-header .rebirth-icon {
    font-size: 3rem;
    margin-bottom: 8px;
    animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rebirth-header h2 {
    font-size: 1.6rem;
    color: #c084fc;
    margin-bottom: 6px;
}

.rebirth-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.rebirth-progress-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.rebirth-rewards-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.reward-row.highlight-row {
    font-weight: 700;
}

.reward-row .gold {
    color: var(--primary-gold-light);
    font-family: var(--font-mono);
}

.btn-rebirth {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 20px var(--purple-glow);
}

.btn-rebirth:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.btn-rebirth:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
}

/* Stats Tab */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-card-num {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--primary-gold-light);
}

.achievements-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    opacity: 0.5;
    transition: all 0.2s;
}

.achievement-card.unlocked {
    opacity: 1;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.achievement-icon {
    font-size: 1.5rem;
}

.achievement-details {
    display: flex;
    flex-direction: column;
}

.achievement-title {
    font-size: 0.9rem;
    font-weight: 700;
}

.achievement-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.toast {
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid var(--primary-gold);
    color: var(--text-main);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .app-container {
        height: auto;
        max-height: none;
    }
    .game-body {
        grid-template-columns: 1fr;
    }
}
