*, *::before, *::after {
        box-sizing: border-box;
}

html {
        height: 100%;
}

body {
        display: grid;
        align-content: center;
        justify-content: center;
        min-height: 100%;
        margin: 0;
    color: #f8f9fa;
    background-color: #2b3a55;
        font: 1.5rem/1 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    text-transform: uppercase;
}

.table-decor {
        position: fixed;
        left: 0;
        top: 0;
        width: 500px;
        height: 800px;
        pointer-events: none;
        z-index: 5;
}

html, body {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

canvas {
        border: 1px solid #2b3a55;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 70px);
}

.gravity-control {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 16px;
        max-width: calc(100vw - 20px);
        padding: 6px 14px;
        background: rgba(33, 37, 41, 0.9);
        border: 1px solid #495057;
        border-radius: 16px;
        font-size: 0.75rem;
        z-index: 10;
}

.slider-group {
        display: flex;
        align-items: center;
        gap: 8px;
}

.slider-label {
        letter-spacing: 0.05em;
        white-space: nowrap;
}

.gravity-value, .power-value {
        color: #f4b942;
        font-weight: 700;
}

.gravity-control input[type='range'] {
        width: 120px;
        accent-color: #f4b942;
        touch-action: none;
}

.combo-display {
        position: fixed;
        top: 76px;
        left: 50%;
        transform: translateX(-50%);
        padding: 4px 16px;
        background: rgba(250, 176, 5, 0.15);
        border: 1px solid #fab005;
        border-radius: 999px;
        color: #fab005;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        opacity: 0;
        transition: opacity 0.25s;
        pointer-events: none;
        z-index: 10;
}

.combo-display.visible {
        opacity: 1;
}

.hint {
        position: fixed;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.55rem;
        letter-spacing: 0.08em;
        color: #868e96;
        white-space: nowrap;
        z-index: 10;
}

.current-score, .high-score {
        position: absolute;
        top: 20px;
}

.current-score {
        left: 20px;
}

.high-score {
        right: 20px;
        text-align: right;
}

.score-value {
        font-size: 4rem;
}
