* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #6ec3ff 0%, #1a3a5c 100%);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #fffef2;
    padding: 16px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #123;
}

.stage {
    position: relative;
    width: 800px;
    max-width: 94vw;
    aspect-ratio: 800 / 450;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid #123;
}

#game {
    display: block;
    width: 100%;
    height: 100%;
    background: #bfeaff;
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 20, 30, 0.72);
    text-align: center;
    padding: 24px;
}

.overlay.hidden {
    display: none;
}

.overlay-card {
    max-width: 360px;
}

.overlay-card h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.overlay-card p {
    margin: 6px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.overlay-card .hint {
    font-size: 0.8rem;
    opacity: 0.85;
}

.action-button {
    margin-top: 14px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #ffcf4e;
    color: #2a1a00;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s ease;
}

.action-button:hover {
    background: #ffe083;
    transform: translateY(-1px);
}

.action-button:active {
    transform: translateY(1px);
}

.hud {
    display: flex;
    gap: 24px;
    font-size: 1.1rem;
    font-weight: 600;
}

.tap-hint {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.75;
}
