/* ==================== BITMINER v1.3 CSS ==================== */

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

body {
    font-family: 'Courier New', monospace;
    background: #0a0a0a;
    color: #ccc;
    font-size: 13px;
    line-height: 1.3;
    padding: 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    transition: all 0.3s;
}

/* Theme Variations */
body.matrix {
    background: #000;
    color: #0f0;
}

body.matrix::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><text x="10" y="20" font-family="monospace" font-size="14" fill="%230f0" opacity="0.1">1 0 1</text><text x="30" y="50" font-family="monospace" font-size="14" fill="%230f0" opacity="0.1">0 1 0</text><text x="50" y="80" font-family="monospace" font-size="14" fill="%230f0" opacity="0.1">1 1 0</text></svg>');
    animation: matrix-fall 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes matrix-fall {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

body.matrix .panel {
    background: #001a00;
    border-color: #0f0;
}

body.matrix .title {
    color: #0f0;
}

body.neon {
    background: #0a0014;
    color: #ff00ff;
}

body.neon::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255,0,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0,255,255,0.1) 0%, transparent 50%);
    animation: neon-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes neon-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

body.neon .panel {
    background: #1a0028;
    border-color: #ff00ff;
}

body.retro {
    background: #2d2520;
    color: #a1d1cb;
    font-family: monospace;
}

body.retro::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #f48b84, transparent),
        radial-gradient(2px 2px at 60px 70px, #ff6f69, transparent),
        radial-gradient(1px 1px at 50px 50px, #a1d1cb, transparent),
        radial-gradient(1px 1px at 130px 80px, #f48b84, transparent),
        radial-gradient(2px 2px at 90px 10px, #43ada5, transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    animation: retro-scroll 60s linear infinite;
    pointer-events: none;
    opacity: 0.3;
    z-index: 1;
}

@keyframes retro-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 -2000px; }
}

body.retro .panel {
    background: #3d3530;
    border-color: #ff6f69;
}

body.retro .title {
    color: #ff6f69;
}

body.retro .btn {
    border-color: #a1d1cb;
    color: #a1d1cb;
    background: #2d2520;
}

body.retro .btn:hover:not(:disabled) {
    background: #43ada5;
    border-color: #a1d1cb;
    color: #fff;
}

body.retro .mine-btn {
    border-color: #ff6f69;
    background: linear-gradient(135deg, #3d3530 0%, #4d4540 100%);
}

body.retro .bits-big {
    color: #ffe0ae;
    text-shadow: 0 0 20px rgba(255, 224, 174, 0.4);
}

body.retro .bits-dominant {
    border-color: #ff6f69;
    background: linear-gradient(135deg, #3d3530 0%, #4d4540 100%);
}

body.retro .worker {
    background: #3d3530;
    border-color: #a1d1cb;
}

body.retro .worker:hover {
    background: #4d4540;
    border-color: #43ada5;
}

/* Craftsman Theme */
body.craftsman {
    background: #000;
    color: #d7c797;
    font-family: 'Georgia', serif;
}

body.craftsman .panel {
    background: #1a1510;
    border-color: #845422;
}

body.craftsman .title {
    color: #ead61c;
    font-weight: bold;
}

body.craftsman .btn {
    border-color: #a47c48;
    color: #d7c797;
    background: #1a1510;
}

body.craftsman .btn:hover:not(:disabled) {
    background: #845422;
    border-color: #ead61c;
    color: #ead61c;
}

body.craftsman .mine-btn {
    border-color: #ead61c;
    background: linear-gradient(135deg, #1a1510 0%, #845422 100%);
}

body.craftsman .bits-big {
    color: #ead61c;
    text-shadow: 0 0 20px rgba(234, 214, 28, 0.5);
}

body.craftsman .bits-dominant {
    border-color: #ead61c;
    background: linear-gradient(135deg, #1a1510 0%, #845422 100%);
}

body.craftsman .worker {
    background: #1a1510;
    border-color: #a47c48;
}

body.craftsman .worker:hover {
    background: #2a2520;
    border-color: #ead61c;
}

body.craftsman .achievement.unlocked {
    border-color: #ead61c;
}

/* Gaming Theme */
body.gaming {
    background: #1c1919;
    color: #d3cbbd;
    font-family: 'Courier New', monospace;
}

body.gaming .panel {
    background: #403d3c;
    border-color: #eb5937;
}

body.gaming .title {
    color: #eb5937;
    font-weight: bold;
    text-transform: uppercase;
}

body.gaming .btn {
    border-color: #456f74;
    color: #d3cbbd;
    background: #403d3c;
}

body.gaming .btn:hover:not(:disabled) {
    background: #eb5937;
    border-color: #eb5937;
    color: #1c1919;
}

body.gaming .mine-btn {
    border-color: #eb5937;
    background: linear-gradient(135deg, #403d3c 0%, #456f74 100%);
}

body.gaming .bits-big {
    color: #eb5937;
    text-shadow: 0 0 20px rgba(235, 89, 55, 0.6);
}

body.gaming .bits-dominant {
    border-color: #eb5937;
    background: linear-gradient(135deg, #403d3c 0%, #456f74 100%);
}

body.gaming .worker {
    background: #403d3c;
    border-color: #456f74;
}

body.gaming .worker:hover {
    background: #2c2a29;
    border-color: #eb5937;
}

body.gaming .achievement.unlocked {
    border-color: #eb5937;
}

@keyframes retro-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 -2000px; }
}

.main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 12px;
    flex-grow: 1;
    position: relative;
    z-index: 100;
}

@media (max-width: 1100px) {
    .main { grid-template-columns: 1fr; }
}

.panel {
    background: #151515;
    border: 1px solid #222;
    padding: 12px;
    border-radius: 0;
    width: 100%;
    transition: all 0.3s;
}

.panel-extended {
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.panel-extended > .title {
    flex-shrink: 0;
}

.panel-extended > div:not(.title) {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.center-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.title {
    color: #d23c22;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* DOMINANT BITS DISPLAY */
.bits-dominant {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid #75c0c7;
}

.bits-big {
    font-size: 46px;
    font-weight: bold;
    color: #75c0c7;
    text-shadow: 0 0 20px rgba(117, 192, 199, 0.5);
    margin-bottom: 2px;
    letter-spacing: 2px;
}

.bits-sub {
    font-size: 13px;
    color: #4a8a90;
    letter-spacing: 1px;
    height: 16px;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.bits-label {
    font-size: 14px;
    color: #888;
    letter-spacing: 3px;
}

/* Button Styles */
.btn {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #ccc;
    padding: 9px;
    margin: 5px 0;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    text-align: left;
    transition: all 0.1s;
    border-radius: 0;
}

.btn:hover:not(:disabled) {
    background: #222;
    border-color: #75c0c7;
    color: #fff;
}

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

/* Mining Zone */
.mine-zone {
    text-align: center;
    padding: 35px 0;
    width: 100%;
}

.mine-btn {
    width: 240px;
    height: 240px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 3px solid #d23c22;
    cursor: pointer;
    font-size: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.05s;
    border-radius: 0;
}

.mine-btn:hover {
    border-color: #75c0c7;
    transform: scale(1.02);
}

.mine-btn:active {
    transform: scale(0.98);
    background: #0a0a0a;
}

.mine-btn.rainbow {
    animation: rainbow 2s infinite;
}

.mine-rate {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d23c22;
    border: 2px solid #f7c516;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    border-radius: 0;
}

.mine-info {
    margin-top: 20px;
    font-size: 12px;
    color: #aaa;
}

/* Log Section */
.log {
    height: 190px;
    overflow-y: auto;
    font-size: 11px;
}

.log-entry {
    padding: 4px 0;
    border-bottom: 1px solid #1a1a1a;
    color: #aaa;
}

/* ==================== SCROLL INDICATORS ==================== */
.scroll-wrap {
    position: relative;
}

.scroll-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: #555;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.scroll-arrow.visible {
    opacity: 1;
}

.scroll-arrow.up { top: 2px; }
.scroll-arrow.down { bottom: 2px; }

.log-time {
    color: #888;
    margin-right: 8px;
}

/* Hidden scrollbars */
::-webkit-scrollbar { 
    width: 0px;
    height: 0px;
}

/* Allow scrolling in scrollable elements */
.achievement-list,
.log,
#workers,
#ranks {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* Firefox */
.achievement-list,
.log,
#workers,
#ranks {
    scrollbar-width: none;
}

/* IE / Edge */
.achievement-list,
.log,
#workers,
#ranks {
    -ms-overflow-style: none;
}

/* Worker Cards */
.worker {
    display: flex;
    align-items: center;
    padding: 7px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    margin: 4px 0;
    font-size: 12px;
    border-radius: 0;
    cursor: pointer;
}

.worker:hover {
    border-color: #444;
    background: #1f1f1f;
}

.worker.secret {
    border-color: #f0f;
    animation: glow 2s infinite;
}

.worker-icon {
    width: 35px;
    height: 35px;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 18px;
    border-radius: 0;
}

.worker-info { flex: 1; }
.worker-name { color: #ddd; font-weight: bold; }
.worker-rate { color: #aaa; font-size: 11px; }
.worker-count { color: #75c0c7; font-weight: bold; margin-left: 10px; }

/* Critical Hit Animation */
.crit { 
    animation: crit 0.2s;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
}

@keyframes crit { 
    0%, 100% { 
        border-color: #d23c22;
        transform: scale(1);
    }
    25% { 
        border-color: #ff0000;
        transform: scale(1.08);
    }
    50% { 
        border-color: #ff6600;
        transform: scale(1.05);
    }
    75% { 
        border-color: #ff0000;
        transform: scale(1.08);
    }
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-2px, 2px); }
    20%, 40%, 60%, 80% { transform: translate(2px, -2px); }
}

@keyframes rainbow {
    0% { border-color: #ff0000; }
    16% { border-color: #ff9900; }
    33% { border-color: #ffff00; }
    50% { border-color: #00ff00; }
    66% { border-color: #0000ff; }
    83% { border-color: #9900ff; }
    100% { border-color: #ff0000; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px #f0f; }
    50% { box-shadow: 0 0 20px #f0f; }
}

/* Floating Numbers */
.floating-number {
	position: fixed;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 18px;
    color: #75c0c7;
    pointer-events: none;
    z-index: 9999;
    animation: float-up 1s ease-out forwards;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(117, 192, 199, 0.5);
}

.floating-number.crit {
    font-size: 32px;
    color: #ff0000;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 30px rgba(255, 0, 0, 0.6);
    animation: float-up-crit 1.2s ease-out forwards;
}

.floating-number.golden {
    font-size: 40px;
    color: #ffd700;
    text-shadow: 0 0 30px #ffd700;
    animation: float-up-crit 1.2s ease-out forwards;
}

@keyframes float-up {
    0% { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% { 
        opacity: 0;
        transform: translateY(-120px) scale(0.8);
    }
}

@keyframes float-up-crit {
    0% { 
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(-10deg);
    }
    20% {
        transform: translateY(-20px) scale(1.3) rotate(5deg);
    }
    100% { 
        opacity: 0;
        transform: translateY(-150px) scale(0.6) rotate(10deg);
    }
}

/* Notification Popups */
#notifications {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
}

.notification {
    background: #1a1a1a;
    border: 2px solid #f7c516;
    padding: 12px;
    max-width: 280px;
    animation: notif 0.3s, notif-out 0.3s 2.5s;
    border-radius: 0;
    font-size: 12px;
    pointer-events: all;
}

.notification.unlock {
    border-color: #75c0c7;
    background: #0f1f1f;
}

.notification.achievement {
    border-color: #f7c516;
    background: #1f1a0f;
}

.notification.secret {
    border-color: #f0f;
    background: #1f0f1f;
    animation: notif 0.3s, glow 2s infinite;
}

.notification.rank {
    border-color: #ff9900;
    background: #1f150f;
}

.notification.offline {
    border-color: #1cb992;
    background: #0f1f1a;
}

.notification.ascension {
    border-color: #ff00ff;
    background: #1f0f1f;
}

@keyframes notif { from { transform: translateX(300px); opacity: 0; } }
@keyframes notif-out { to { transform: translateX(300px); opacity: 0; } }

/* Rank Display */
.rank-display {
    text-align: center;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0;
    width: 100%;
    cursor: pointer;
}

.rank-badge {
    display: inline-block;
    font-weight: bold;
    font-size: 12px;
    margin: 5px;
}

.rank-badge.rainbow {
    animation: rainbow 3s infinite;
}

/* Stats Display */
.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.stat {
    background: #1a1a1a;
    border-left: 3px solid #75c0c7;
    padding: 10px;
    border-radius: 0;
}

.stat-val {
    font-size: 20px;
    font-weight: bold;
    color: #75c0c7;
}

.stat-label {
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 11px;
    color: #ccc;
    border-bottom: 1px solid #1a1a1a;
}

/* ==================== ACHIEVEMENT TABS ==================== */
.achievement-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    flex-shrink: 0;
    margin-top: 0;
}

.achievement-tab {
    flex: 1;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    text-align: center;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.2s;
    color: #888;
}

.achievement-tab:hover {
    background: #222;
    border-color: #444;
}

.achievement-tab.active {
    background: #2a2206;
    border-color: #f7c516;
    color: #f7c516;
}

.achievement-content {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.achievement-list {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.achievement-list.active {
    display: block;
}

/* Achievement Styles */
.achievement {
    display: flex;
    align-items: center;
    padding: 8px;
    margin: 5px 0;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 0;
    transition: all 0.2s;
    cursor: help;
}

.achievement.unlocked {
    border-color: #f7c516;
    background: #1a1505;
}

.achievement.secret.unlocked {
    border-color: #f0f;
    background: #1a0528;
}

.achievement.unlocked:hover {
    border-color: #f7c516;
    background: #1f1a08;
    transform: translateX(2px);
}

.achievement.secret.unlocked:hover {
    border-color: #f0f;
    background: #1f0a2a;
}

.achievement.locked {
    opacity: 0.4;
}

.achievement-icon {
    width: 40px;
    height: 40px;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 20px;
    border-radius: 0;
    flex-shrink: 0;
}

.achievement.unlocked .achievement-icon {
    background: #2a2206;
    border: 1px solid #f7c516;
}

.achievement.secret.unlocked .achievement-icon {
    background: #2a0628;
    border: 1px solid #f0f;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    color: #ddd;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 2px;
}

.achievement.unlocked .achievement-name {
    color: #f7c516;
}

.achievement.secret.unlocked .achievement-name {
    color: #f0f;
}

.achievement-desc {
    color: #888;
    font-size: 10px;
    margin-bottom: 3px;
}

.achievement-reward {
    color: #75c0c7;
    font-size: 11px;
    font-weight: bold;
}

/* ==================== BIT EXPLOSION ==================== */
.bit-explosion-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
}

.falling-bit {
    position: absolute;
    pointer-events: none;
    animation: fall 2s ease-in forwards;
    opacity: 1;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== GOLDEN BIT ==================== */
.golden-bit {
    position: fixed;
    font-size: 40px;
    cursor: pointer;
    z-index: 9500;
    animation: golden-float 3s ease-in-out;
    pointer-events: all;
    text-shadow: 0 0 30px #ffd700;
    transition: transform 0.1s;
}

.golden-bit:hover {
    transform: scale(1.3);
}

@keyframes golden-float {
    0% {
        left: -50px;
        top: 50%;
    }
    100% {
        left: 110%;
        top: 50%;
    }
}

/* ==================== RARE BITS ==================== */
.rare-bit {
    position: fixed;
    font-size: 24px;
    pointer-events: all;
    cursor: pointer;
    z-index: 9500;
    animation: rare-fall 3s ease-in forwards;
    transition: transform 0.1s;
}

.rare-bit:hover {
    transform: scale(1.2);
}

@keyframes rare-fall {
    0% {
        top: -50px;
        opacity: 1;
    }
    100% {
        top: 110%;
        opacity: 0.5;
    }
}

/* ==================== THEME SELECTOR ==================== */
.theme-selector {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.theme-btn {
    padding: 8px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #ccc;
    cursor: pointer;
    font-size: 10px;
    text-align: center;
    transition: all 0.2s;
}

.theme-btn:hover {
    border-color: #75c0c7;
}

.theme-btn.active {
    border-color: #f7c516;
    background: #2a2206;
}

.theme-btn.locked {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==================== SKIN SELECTOR ==================== */
.skin-selector {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.skin-btn {
    padding: 4px;
    background: #1a1a1a;
    border: 1px solid #333;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.skin-btn:hover:not(.locked) {
    border-color: #75c0c7;
    transform: scale(1.1);
}

.skin-btn.active {
    border-color: #f7c516;
    background: #2a2206;
}

.skin-btn.locked {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.skin-icon {
    font-size: 18px;
    line-height: 1;
}

.skin-power {
    font-size: 10px;
    color: #f7c516;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
}

.skin-btn.active .skin-power {
    color: #fff;
}

.skin-btn.locked .skin-power {
    display: none;
}

.skin-req {
    font-size: 9px;
    color: #666;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ==================== COLLECTION GRID ==================== */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.collection-item {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
}

.collection-icon {
    font-size: 30px;
    margin-bottom: 5px;
}

.collection-count {
    font-size: 11px;
    color: #888;
}

.collection-bonus {
    font-size: 10px;
    color: #75c0c7;
    margin-top: 3px;
}

/* ==================== RANK PROGRESS BAR ==================== */
.rank-progress-bar {
    width: 100%;
    height: 8px;
    background: #0a0a0a;
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
}

.rank-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d23c22 0%, #f7c516 50%, #75c0c7 100%);
    transition: width 0.3s ease-out;
    width: 0%;
}

/* ==================== STATISTICS ==================== */
.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #1a1a1a;
    color: #aaa;
}

.stat-line span:last-child {
    color: #75c0c7;
    font-weight: bold;
}

/* ==================== FIREWORKS ==================== */
.firework-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.firework {
    position: fixed;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
}

@keyframes firework-explode {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

/* Footer Styles */
.game-footer {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #222;
    color: #aaa;
    font-size: 12px;
    border-radius: 0;
    background: #0f0f0f;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    position: relative;
    z-index: 100;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-version {
    color: #aaa;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    border: 1px solid transparent;
    color: #ccc;
    background: #1a1a1a;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.github-btn {
    border-color: #444;
}

.github-btn:hover {
    background: #222;
    border-color: #75c0c7;
    color: #fff;
}

.kofi-btn {
    background: #1a1a1a;
    border-color: #29abe0;
    color: #29abe0;
}

.kofi-btn:hover {
    background: #14232e;
    border-color: #ff5f5f;
    color: #ff5f5f;
}

.kofi-logo {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(61%) sepia(73%) saturate(3746%) hue-rotate(169deg) brightness(93%) contrast(88%);
}

.kofi-btn:hover .kofi-logo {
    filter: brightness(0) saturate(100%) invert(48%) sepia(98%) saturate(2426%) hue-rotate(326deg) brightness(101%) contrast(101%);
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .link-btn {
        width: 240px;
        justify-content: center;
    }
}
