:root {
    --squid-pink: #ed1c4d;
    --squid-teal: #037a76;
    --squid-black: #111111;
    --squid-gold: #FFD700;
}

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

body {
    background-color: var(--squid-black);
    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: 1000;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(12px);
    transition: opacity 0.5s;
}

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

.lobby-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    max-width: 900px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
}

.pink-neon-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--squid-pink);
    text-shadow: 0 0 20px var(--squid-pink), 0 0 40px var(--squid-pink);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.game-button {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-button:hover {
    background: var(--squid-pink);
    border-color: white;
    transform: translateY(-5px);
}

.game-button.locked {
    opacity: 0.6;
    filter: grayscale(1);
}

.number {
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    opacity: 0.5;
}

.name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 10px 0;
}

.status {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 10px;
    border-radius: 10px;
    color: var(--squid-pink);
}

.current-wins {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--squid-gold);
}

.secondary-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 12px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
}

#hud {
    position: fixed;
    top: 40px;
    left: 40px;
    width: calc(100% - 80px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

#game-info {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 30px;
    border-radius: 15px;
    border: 1px solid var(--squid-teal);
}

#game-title {
    font-weight: 900;
    color: var(--squid-teal);
    letter-spacing: 2px;
}

.timer-box {
    font-family: 'Orbitron' sans-serif;
    font-size: 1.5rem;
}

#status-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -150%);
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    padding: 20px 60px;
    border-radius: 20px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: none;
}

.green {
    color: #4caf50;
    border: 4px solid #4caf50;
    background: rgba(76, 175, 80, 0.1);
}

.red {
    color: #f44336;
    border: 4px solid #f44336;
    background: rgba(244, 67, 54, 0.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

#interaction-prompt {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--squid-pink);
    padding: 10px 40px;
    border-radius: 30px;
    font-weight: 700;
}

/* Glass Box for Results */
.glass-box {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--squid-pink);
    text-align: center;
}

#result-title {
    font-size: 3rem;
    color: var(--squid-pink);
    margin-bottom: 20px;
}

.reward-box {
    font-size: 1.5rem;
    color: var(--squid-gold);
    margin: 20px 0;
}

.pink-btn {
    background: var(--squid-pink);
    border: none;
    color: white;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    margin: 10px;
}

/* Dalgona Specific Styles */
#dalgona-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
}

#dalgona-canvas {
    background: #e67e22;
    /* Sugar Brown */
    border: 10px solid #d35400;
    border-radius: 50%;
    cursor: crosshair;
}

.dalgona-hint {
    margin-top: 20px;
    color: #ffd;
    font-size: 1.2rem;
}