* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
    background: #ffffff;
    color: #111111;
    overflow: hidden;
}

.hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.hud-left, .hud-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud .logo {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hud .hint {
    opacity: 0.8;
    font-size: 0.92rem;
}

.hud-right span { opacity: 0.9; }
.hud-right .sep { opacity: 0.3; }

canvas#game {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
}

.controls {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    padding: 8px 10px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.controls button {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e9ecff;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease;
}
.controls button:hover { background: rgba(255,255,255,0.16); }
.controls button:active { transform: translateY(1px); }

::selection { background: #6aa3ff44; }

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.overlay.hidden { display: none; }
.overlay .modal {
    background: #ffffff;
    color: #111;
    padding: 20px 24px;
    border-radius: 12px;
    min-width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}
.overlay .modal .title { font-weight: 700; margin-bottom: 6px; font-size: 1.2rem; }
.overlay .modal .desc { opacity: 0.8; margin-bottom: 12px; }
.overlay .modal button {
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
}


