/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* PAGE BACKGROUND */
body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #0b3c6f, #020617);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

/* WRAPPER */
.game-wrapper {
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 20px;
}

/* BACK BUTTON */
.back-btn {
    display: inline-block;
    margin-bottom: 10px;
    color: #7dd3fc;
    text-decoration: none;
    font-size: 14px;
}

.back-btn:hover {
    text-decoration: underline;
}

/* TITLE */
h1 {
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 10px;
}

/* SCORE */
.score-board {
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
}

/* GAME AREA */
.game-area {
    position: relative;
    width: 100%;
    height: 360px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(125, 211, 252, 0.4);
    border-radius: 14px;
    overflow: hidden;
    margin: 14px 0;
}

/* PLAYER */
.player {
    position: absolute;
    bottom: 10px;
    width: 40px;
    height: 42px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    border-radius: 10px;
}

/* FALLING BLOCK */
.block {
    position: absolute;
    top: -40px;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #f87171, #ef4444);
    border-radius: 8px;
}

/* CONTROLS */
.controls {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.controls button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: #0ea5e9;
    color: #002b3a;
    font-weight: bold;
    cursor: pointer;
}

.controls button:hover {
    background: #38bdf8;
}

/* HINT */
.hint {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 6px;
}

.restart-btn {
    margin-top: 12px;
    padding: 10px 22px;
    background: #00d1ff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.restart-btn:hover {
    background: #00b4dd;
}

.game-over {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #fff;
    z-index: 10;
}

.game-over button {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: #00d1ff;
    font-weight: 600;
    cursor: pointer;
}

.hidden {
    display: none;
}