:root {
    /* colors */
    --color-bg: #fff200;
    --color-text: #282322;
    --color-text-muted: #93847c;
    --color-text-faint: #a59a92;
    --color-white: #fff;
    --color-surface: #f6f5f4;
    --color-border: #eceae8;
    --color-success: #0db14b;
    --color-error: #ed1c24;

    --font-family: 'Apfel Grotezk', sans-serif;

    --shadow-btn: 0 131px 37px 0 rgba(0,0,0,0), 0 84px 33px 0 rgba(0,0,0,0.01), 0 47px 28px 0 rgba(0,0,0,0.05), 0 21px 21px 0 rgba(0,0,0,0.09), 0 5px 12px 0 rgba(0,0,0,0.1);
    --shadow-card-sm: 0 94px 26px 0 rgba(0,0,0,0), 0 60px 24px 0 rgba(0,0,0,0.01), 0 34px 20px 0 rgba(0,0,0,0.05), 0 15px 15px 0 rgba(0,0,0,0.09), 0 4px 8px 0 rgba(0,0,0,0.1);
    --shadow-card-lg: 0 207px 58px 0 rgba(0,0,0,0), 0 132px 53px 0 rgba(0,0,0,0.01), 0 74px 45px 0 rgba(0,0,0,0.05), 0 33px 33px 0 rgba(0,0,0,0.09), 0 8px 18px 0 rgba(0,0,0,0.1);

    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.3s ease;

    --radius-pill: 100px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-xxl: 24px;
    --radius-xxxl: 32px;
}

@font-face {
    font-family: 'Apfel Grotezk';
    src: local('Apfel Grotezk Regular'), local('ApfelGrotezk-Regular'),
        url('fonts/ApfelGrotezk-Regular.woff2') format('woff2'),
        url('fonts/ApfelGrotezk-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Apfel Grotezk';
    src: local('Apfel Grotezk Mittel'), local('ApfelGrotezk-Mittel'),
        url('fonts/ApfelGrotezk-Mittel.woff2') format('woff2'),
        url('fonts/ApfelGrotezk-Mittel.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Apfel Grotezk';
    src: local('Apfel Grotezk Fett'), local('ApfelGrotezk-Fett'),
        url('fonts/ApfelGrotezk-Fett.woff2') format('woff2'),
        url('fonts/ApfelGrotezk-Fett.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

html {
    touch-action: manipulation;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea {
    -webkit-user-select: auto;
    user-select: auto;
}

body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    touch-action: manipulation;
    overscroll-behavior-y: contain;
    background-image: url('images/bg-pattern.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: right;
    background-attachment: fixed;
}

body.game-active {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-image: url('images/bartender.webp');
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    display: none;
}

body.screen-register-screen::before,
body.screen-game-screen::before,
body.screen-gameover-screen::before {
    display: flex;
}

#app {
    position: relative;
    z-index: 1;
    padding: 0 12px;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo img,
.logo-small img {
    width: 150px;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

h2 {
    color: var(--color-text);
    text-align: center;
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.48px;
    padding-bottom: 28px;
}

.subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--color-text);
    max-width: 450px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 auto 32px;
}

.prize {
    pointer-events: none;
}

.prize img {
    width: 100%;
}

.prize-1 {
    width: 635px;
    position: absolute;
    left: -880px;
    right: 0;
    margin: auto;
    top: 128px;
}

.prize-2 {
    width: 338px;
    margin: -180px auto 0;
    left: 420px;
    position: relative;
}

.prize-3 {
    width: 320px;
    position: absolute;
    top: 10px;
    right: -870px;
    left: 0;
    margin: auto;
}

.prize-4 {
    width: 320px;
    position: absolute;
    top: 510px;
    right: -410px;
    left: 0;
    margin: auto;
}

.countdown {
    color: var(--color-text);
    text-align: center;
    margin: 0 auto 64px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.5;
}

.splash-links {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.countdown-small {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.btn {
    padding: 4px 20px;
    font-family: var(--font-family);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.btn:active {
    transform: scale(0.95);
}

#btn-start,
#btn-register,
#btn-play-again,
#btn-resume {
    animation: startPulse 1.6s ease-in-out infinite;
}

#btn-start:active,
#btn-register:active,
#btn-play-again:active,
#btn-resume:active {
    animation: none;
    transform: scale(0.95);
}

@keyframes startPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-white);
}

.btn-primary:hover {
    background: #000000;
}

.btn-large {
    padding: 4px 28px;
    font-size: 30px;
    min-height: 64px;
    letter-spacing: -0.3px;
    box-shadow: var(--shadow-btn);
}

.btn-secondary,
.btn-secondary:hover {
    background: var(--color-surface);
    color: #262626;
}

.btn-link {
    background: transparent;
    color: #262626;
    border: 1px solid var(--color-border);
}

.btn-link:hover {
    background: var(--color-surface);
}

.link {
    color: var(--color-text);
    text-decoration: underline;
    margin-top: 15px;
    font-size: 14px;
}

.link:hover,
a:hover {
    color: #5d524f;
}

a {
    color: var(--color-text);
}

.form-group {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.form-group__top {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.form-group__extra-text {
    color: var(--color-text-faint);
    text-align: right;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    height: 44px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    border: 0.5px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-faint);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    transition: var(--transition-base);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder {
    color: var(--color-text-faint);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    opacity: 1;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-text);
    box-shadow: 0 0 0 3px rgba(40, 35, 34, 0.2);
}

.checkbox-group label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.checkbox-group label span {
    position: relative;
    padding-left: 28px;
}

.checkbox-group label span::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 0.5px solid var(--color-border);
    background: var(--color-white);
    flex-shrink: 0;
    transition: var(--transition-base);
}

.checkbox-group label span::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: var(--transition-base);
}

.checkbox-group input[type="checkbox"]:checked ~ span::before {
    background: var(--color-text);
    border-color: var(--color-text);
}

.checkbox-group input[type="checkbox"]:checked ~ span::after {
    opacity: 1;
}

.checkbox-group input[type="checkbox"]:focus-visible ~ span::before {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.status {
    margin-top: 8px;
    font-size: 13px;
}

.status.success { 
    color: var(--color-success); 
}
.status.info { 
    color: var(--color-text-muted); 
}
.status.error { 
    color: var(--color-error); 
}

.game-header {
    position: absolute;
    top: 80px;
    width: 1216px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.temp-display {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.game-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 540px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.canvas-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 12px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.left-wrapper {
    flex-shrink: 0;
    width: 300px;
    position: relative;
}

#game-canvas {
    position: relative;
    z-index: 1;
    background: transparent;
    display: block;
    width: 100%;
}

.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.sidebar-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-card-sm);
}

.sidebar-section h3 {
    color: #262626;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 16px;
}

#next-canvas {
    display: block;
    margin: 0 auto;
}

.stat {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    border-bottom: 1px solid var(--color-surface);
    padding: 8px 0;
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
}

.stat:first-of-type { 
    padding-top: 0; 
}
.stat:last-of-type { 
    padding-bottom: 0; 
    border-bottom: none; 
}

.stat span {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 500;
}

.shaker-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    margin-top: 24px;
}

.shaker-progress {
    height: 6px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-text), var(--color-text));
    transition: width var(--transition-base);
    border-radius: 20px;
}

.shaker-count {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shaker-count strong {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.game-controls {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    justify-content: center;
}

.btn-control {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 100%;
    background: var(--color-text);
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-control:focus {
    outline: none;
}

.btn-control svg {
    width: 28px;
    height: 28px;
}

.btn-control:active {
    transform: scale(0.95);
    background: #000000;
    color: var(--color-bg);
}

.final-score {
    text-align: center;
}

.score-label {
    color: var(--color-text-muted);
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 32px;
}

.score-value {
    color: var(--color-text);
    text-align: center;
    font-size: 96px;
    font-weight: 500;
    line-height: 1;
}

.gameover-message {
    color: var(--color-text);
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 450px;
}

.gameover-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.confetti {
    position: fixed;
    inset: 0;
    z-index: 120;
    pointer-events: none;
    overflow: hidden;
}

.confetti span {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 16px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translate3d(var(--confetti-drift), 110vh, 0) rotate(var(--confetti-rotate));
        opacity: 0.9;
    }
}

.leaderboard-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    width: 100%;
    font-size: 14px;
    color: var(--color-text-muted);
}

.leaderboard-table-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 24px;
    background: var(--color-white);
    border-radius: var(--radius-xxxl);
    box-shadow: var(--shadow-card-lg);
}

.leaderboard-loader {
    display: none;
    min-height: 270px;
    padding: 24px;
    color: var(--color-text-muted);
    font-size: 14px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#leaderboard-screen.leaderboard-loading .leaderboard-loader {
    display: flex;
}

#leaderboard-screen.leaderboard-loading .leaderboard-table-wrapper,
#leaderboard-screen.leaderboard-loading .my-rank {
    display: none;
}

.leaderboard-table-scroll {
    max-height: 174px;
    overflow-y: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table-fake,
.leaderboard-table tr {
    display: grid;
    grid-template-columns: 72px 1fr 1fr;
    grid-gap: 20px;
}

.leaderboard-table-fake {
    width: 100%;
    margin-bottom: 24px;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.leaderboard-table thead {
    display: none;
}

.leaderboard-table td {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    padding: 7px 0;
}

.leaderboard-table tr:first-of-type td {
    padding-top: 0;
}

.leaderboard-table th {
    position: sticky;
    top: 0;
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 1;
}

.leaderboard-table td:first-of-type {
    width: 100%;
}

.leaderboard-table tr {
    border-bottom: 1px solid var(--color-surface);
}

.leaderboard-table tr:last-child {
    border-bottom: none;
}

.leaderboard-table tr.my-rank {
    background: rgba(40, 35, 34, 0.1);
}

.leaderboard-table tr.my-rank td {
    color: var(--color-text);
    font-weight: 700;
}

.my-rank {
    text-align: center;
    padding: 12px 20px;
    background: var(--color-surface);
    color: #5d524f;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--color-border);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(40, 35, 34, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 100;
    touch-action: none;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    display: flex;
}

.overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    text-align: center;
    padding: 40px 24px 24px;
    background: var(--color-white);
    border-radius: var(--radius-xxl);
    max-width: 450px;
    width: calc(100% - 24px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: transform var(--transition-base), opacity var(--transition-base);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-surface);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    padding: 0;
}

.modal-close:hover {
    background: var(--color-border);
}

.overlay-content h2 {
    font-size: 24px;
    text-align: left;
    padding-right: 48px;
    padding-bottom: 0;
}

.overlay.active .overlay-content {
    transform: scale(1);
    opacity: 1;
}

.modal-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    margin-top: 24px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 10px;
}

.modal-text {
    text-align: left;
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.modal-text p {
    margin-bottom: 12px;
}

.modal-text h3 {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    margin: 20px 0 8px;
}

.modal-text ul {
    margin: 0 0 12px 20px;
}

.modal-text li {
    margin-bottom: 8px;
}

#splash-screen {
    padding: 40px 0;
}

#gameover-screen,
#leaderboard-screen,
#register-screen {
    padding: 40px 0;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
    min-height: 100dvh;
}

.first-screen-content {
    padding: 82px 0 0;
    width: 100%;
    position: relative;
}

.first-screen-content__title {
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.48px;
    color: var(--color-text);
    margin-bottom: 60px;
}

.first-screen__start {
    margin: 0 auto 64px;
    display: flex;
    justify-content: center;
    position: relative;
}

.first-screen__start img {
    position: absolute;
    top: -60px;
    right: 0;
    left: 400px;
    margin: auto;
    width: 140px;
}

.register-screen__form {
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.register-form__buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

#game-screen {
    position: relative;
}

.first-screen-content__title span {
    position: relative;
}

.first-screen-content__title img {
    position: absolute;
    width: calc(100% + 20px);
    top: 75%;
    left: -20px;
    z-index: -1;
}

.end-screen__title,
.register-screen__title,
.leaderboard-screen__title {
    position: relative;
}

.register-screen__title {
    font-size: 24px;
}

.end-screen__title img,
.register-screen__title img,
.leaderboard-screen__title img {
    position: absolute;
    width: calc(100% + 40px);
    bottom: 8px;
    left: -20px;
    z-index: -1;
}

.prize-1-mobile, .prize-2-mobile, .prize-3-mobile, .prize-4-mobile {
    display: none;
}

button, .btn, .btn-control, input, a {
    touch-action: manipulation;
    font-family: var(--font-family);
}

.form-group__error {
    margin-top: 4px;
    display: none;
}

@media (max-width: 1480px) {
    .prize-1 { 
        left: -800px; 
    }
    .prize-2 { 
        left: 420px; 
    }
    .prize-3 { 
        right: -870px; 
    }
    .game-header { 
        width: 980px; 
    }
}

@media (max-width: 1200px) {
    .prize-1 { 
        width: 435px; 
        left: -700px; 
    }
    .prize-2 { 
        width: 282px; 
        top: 30px;
    }
    .prize-3 { 
        width: 255px; 
        right: -750px; 
    }
    .prize-4 {
        width: 245px;
        right: -530px;
        top: 320px;
    }

    .first-screen-content__title {
        font-size: 40px;
        margin-bottom: 28px;
    }

    .subtitle {
        font-size: 14px;
        max-width: 360px;
        margin-bottom: 20px;
    }

    .countdown { 
        margin-bottom: 28px; 
    }
    .first-screen__start { 
        margin-bottom: 40px; 
    }

    .game-header {
        top: 20px;
        width: 100%;
    }
}

@media (max-width: 1000px) {
    .prize-1 {
        width: 360px;
        left: -580px;
        top: 100px;
    }
    .prize-2 {
        width: 220px;
        margin-top: -50px;
        left: -202px;
    }
    .prize-3 {
        width: 220px;
        right: -640px;
        top: 50px;
    }
    .prize-4 {
        width: 220px;
        right: -540px;
        top: 300px;
    }
}

@media (max-width: 800px) {
    body {
        background-image: url('images/bg-pattern-mobile.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

    body::before {
        display: none;
    }

    .prize-1, .prize-2, .prize-3, .prize-4 {
        display: none;
    }

    .prize-1-mobile, .prize-2-mobile, .prize-3-mobile, .prize-4-mobile {
        display: flex;
        position: absolute;
    }

    .mobile-prizes {
        position: relative;
        width: calc(100% - 24px);
        height: 212vw;
        margin: 0 auto;
        overflow: visible;
        pointer-events: none;
    }

    .prize-1-mobile { 
        width: 98%; 
        top: 0; 
        left: 0; 
    }

    .prize-2-mobile {
        width: 58%;
        top: 116vw;
        left: 0%;
    }

    .prize-3-mobile {
        width: 58%;
        top: 148vw;
        right: 0%;
    }

    .prize-4-mobile {
        width: 64%;
        top: 82vw;
        right: 0%;
    }
}

@media (max-width: 600px) {
    .first-screen-content__title,
    h1,
    h2 {
        font-size: 30px;
        padding-bottom: 0;
    }

    #gameover-screen,
    #leaderboard-screen,
    #register-screen,
    .register-form__form {
        gap: 20px;
    }

    .end-screen__title img,
    .register-screen__title img,
    .leaderboard-screen__title img {
        display: none;
    }

    .register-screen__form {
        gap: 20px;
    }

    .overlay-content {
        padding: 24px 20px 20px;
        border-radius: var(--radius-xl);
    }

    .game-container {
        flex-direction: column;
        padding-bottom: 24px;
        padding-top: 60px;
        gap: 16px;
    }

    .left-wrapper {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .canvas-wrapper {
        width: 200px;
    }

    .game-controls {
        gap: 18px;
        margin-top: 14px;
    }

    .btn-control {
        width: 54px;
        height: 54px;
    }

    .game-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sidebar-section {
        padding: 10px 12px;
    }

    .sidebar-section h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    #next-canvas {
        width: 56px;
        height: 56px;
    }

    .score-section .stat {
        display: none;
    }

    .score-section .stat:first-child {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0;
        border-bottom: none;
        text-align: center;
        font-size: 14px;
    }

    .score-section .stat span {
        font-size: 30px;
        line-height: 1;
    }

    .game-sidebar .sidebar-section:nth-child(3) {
        grid-column: 1 / -1;
        padding: 10px 14px;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 12px;
        row-gap: 8px;
        align-items: center;
    }

    .game-sidebar .sidebar-section:nth-child(3) h3 {
        margin-bottom: 0;
        text-align: left;
    }

    .shaker-count {
        font-size: 12px;
        flex-direction: row;
        justify-content: flex-end;
        align-items: flex-end;
        text-align: right;
    }

    .shaker-count br {
        display: none;
    }

    .shaker-count strong {
        font-size: 16px;
        line-height: 1;
    }

    .shaker-bar {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .logo-small img {
        width: 80px;
    }

    .temp-display {
        font-size: 14px;
    }

    .gameover-message {
        font-size: 14px;
        padding: 0 16px;
    }

    .score-label {
        font-size: 12px;
    }

    .score-value {
        font-size: 80px;
    }

    .leaderboard-table-wrapper {
        padding: 16px;
        border-radius: 20px;
    }

    #leaderboard-body tr,
    .leaderboard-table-fake {
        grid-template-columns: 36px 1fr 1fr;
        grid-gap: 12px;
    }

    .btn-large {
        font-size: 16px;
        padding: 4px 20px;
        min-height: 40px;
        box-shadow: none;
    }

    .first-screen__start {
        margin-bottom: 0;
    }

    .first-screen__start img {
        display: none;
    }

    .first-screen-content {
        padding-top: 40px;
        min-height: 0;
    }

    .subtitle {
        margin-bottom: 12px;
    }

    .countdown {
        margin-bottom: 20px;
    }
}
