body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #050505;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    user-select: none;
}

#gameCanvas {
    display: block;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    pointer-events: none;
    font-size: 20px;
    text-shadow: 0 0 5px black;
    width: 95%;
}

.stat-box span {
    margin-right: 20px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border: 1px solid #333;
    border-radius: 4px;
}

/* Modals */
.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

.modal-content {
    background: #111;
    padding: 40px;
    border: 2px solid #444;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    max-width: 700px;
    width: 90%;
}

.glow {
    text-shadow: 0 0 10px currentColor;
}

h1 { font-size: 48px; margin-bottom: 10px; color: cyan; }
h2 { font-size: 32px; margin-bottom: 20px; }

/* Buttons */
.btn {
    background: transparent;
    border: 2px solid cyan;
    color: cyan;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    min-width: 200px;
}

.btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px currentColor;
    transform: scale(1.05);
}

.btn.secondary {
    border-color: #666;
    color: #888;
}

.btn.secondary:hover {
    background: #333;
    color: white;
    box-shadow: none;
}

/* Shop Cards */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.card {
    background: #1a1a1a;
    border: 1px solid #444;
    padding: 20px;
    width: 140px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    border-color: yellow;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.3);
}

/* Prestige Card Variation */
.prestige-card:hover {
    border-color: #bf00ff;
    box-shadow: 0 0 10px rgba(191, 0, 255, 0.5);
}

.card-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.card-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.card-desc {
    font-size: 12px;
    color: #aaa;
    min-height: 30px; /* Align heights */
}

.btn-small {

    background: rgba(0, 255, 255, 0.1);

    border: 1px solid cyan;

    color: cyan;

    padding: 5px 10px;

    font-size: 14px;

    cursor: pointer;

    font-family: inherit;

    transition: all 0.2s;

}



.btn-small:hover {

    background: cyan;

    color: black;

}



.stats-list {

    text-align: left;

    margin: 20px 0;

    max-height: 400px;

    overflow-y: auto;

    padding-right: 10px;

}



.stat-item {

    display: flex;

    justify-content: space-between;

    padding: 8px 0;

    border-bottom: 1px solid #333;

}



.stat-val {

    color: cyan;

    font-weight: bold;

}



.stat-lvl-info {

    font-size: 12px;

    color: #888;

}
