:root {
    --neon-blue: #00d2ff;
    --neon-pink: #ff007f;
    --neon-green: #39ff14;
    --glass-bg: rgba(0, 0, 0, 0.45);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    background-color: #050505;
    overflow: hidden;
    color: white;
}

#game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(8px);
    transition: opacity 0.5s, visibility 0.5s;
}

.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    text-align: center;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    max-width: 500px;
}

h1.neon-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
}

.description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #ccc;
}

.controls-info {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 40px;
    text-align: left;
}

.control-item {
    margin: 10px 0;
}

.control-item span {
    background: #333;
    color: var(--neon-blue);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: monospace;
    margin-right: 5px;
}

.glow-btn {
    padding: 15px 40px;
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    color: white;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.glow-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.7);
}

#hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    pointer-events: none;
    z-index: 10;
}

.stat-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    flex-direction: column;
    margin-right: 20px;
}

.label {
    font-size: 0.7rem;
    font-family: 'Orbitron', sans-serif;
    color: #aaa;
    letter-spacing: 2px;
}

.value {
    font-size: 2.2rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
}

.speed-box .value {
    color: var(--neon-blue);
}

.record-box .value {
    color: var(--neon-pink);
}

.wins-box .value {
    color: #FFD700;
}

.unit {
    font-size: 0.8rem;
    color: #666;
    margin-top: -5px;
}

.shop-trigger {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    backdrop-filter: blur(10px);
    pointer-events: all;
    transition: 0.3s;
}

.shop-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.shop-card {
    min-width: 400px;
}

.wins-current {
    margin: 10px 0 20px;
    color: #FFD700;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
}

.pet-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.pet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pet-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.pet-name {
    flex: 1;
    text-align: left;
    font-size: 0.9rem;
}

.buy-btn {
    padding: 8px 15px;
    background: var(--neon-blue);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-family: 'Orbitron' sans-serif;
    font-weight: bold;
    transition: 0.2s;
}

.buy-btn:hover {
    background: var(--neon-pink);
    transform: scale(1.1);
}

.exercise-indicator {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: visible;
}

#gauge-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    border-radius: 5px;
    box-shadow: 0 0 10px var(--neon-green);
    transition: width 0.1s;
}

.action-hint {
    position: absolute;
    top: -40px;
    width: 100%;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    animation: bounce 1.5s infinite;
}

.action-hint .key {
    background: white;
    color: black;
    padding: 0 8px;
    border-radius: 4px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.secondary-btn {
    margin-top: 15px;
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    display: block;
    width: 100%;
}