.game-page__hero {
    padding: 48px 0 24px;
    background: linear-gradient(180deg, #f8fffd 0%, #fff 100%);
}

.game-page__eyebrow {
    margin: 0 0 8px;
    color: #4fbfa8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-page__title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
}

.game-page__title span {
    color: #5b4ee5;
}

.game-page__lead {
    max-width: 720px;
    margin: 0 0 18px;
    color: #555;
    font-size: 17px;
    line-height: 1.6;
}

.game-page__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    color: #333;
}

.game-page__rules-link a {
    color: #4fbfa8;
    font-weight: 600;
}

.game-page__play {
    padding: 0 0 56px;
}

.game-app {
    max-width: 760px;
    margin: 0 auto;
}

.game-screen__card {
    padding: 28px;
    border: 1px solid rgba(79, 191, 168, 0.25);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.game-screen__title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
}

.game-screen__text {
    margin: 0 0 20px;
    color: #555;
    line-height: 1.6;
}

.game-btn {
    min-width: 220px;
}

.game-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.game-hud__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.game-hud__level {
    font-weight: 700;
    white-space: nowrap;
}

.game-hud__stars {
    display: flex;
    gap: 4px;
}

.game-hud__star {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: #dde2e8;
    transform: rotate(45deg);
}

.game-hud__star.is-done {
    background: linear-gradient(135deg, #4fbfa8, #5b4ee5);
}

.game-hud__sound {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.game-hud__progress-wrap {
    flex: 1;
}

.game-hud__progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9ecef;
}

.game-hud__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4fbfa8, #5b4ee5);
    transition: width 0.2s ease;
}

.game-canvas-wrap {
    position: relative;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #f8f9fa;
}

.game-level-intro {
    position: absolute;
    inset: 12px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18px;
    pointer-events: none;
}

.game-level-intro[hidden] {
    display: none !important;
}

.game-level-intro__text {
    max-width: 90%;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(34, 34, 34, 0.82);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(-8px);
}

.game-level-intro.is-active .game-level-intro__text {
    animation: gameIntroFade 1.6s ease forwards;
}

.game-tutorial {
    position: absolute;
    inset: 12px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    text-align: center;
}

.game-tutorial[hidden] {
    display: none !important;
}

.game-tutorial__hand {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0 30%, #5b4ee5 31% 100%);
    animation: gameTutorialSwipe 1.4s ease-in-out infinite;
}

.game-tutorial__text {
    max-width: 280px;
    margin: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

.game-level-celebrate {
    position: absolute;
    inset: 12px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
}

.game-level-celebrate[hidden] {
    display: none !important;
}

.game-level-celebrate__confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.game-level-celebrate__confetti-piece {
    --left: calc(((var(--i) * 17) % 100) * 1%);
    --delay: calc((var(--i) % 9) * 0.08s);
    --duration: calc(1.6s + (var(--i) % 5) * 0.18s);
    --color: hsl(calc((var(--i) * 47) % 360), 72%, 58%);
    position: absolute;
    top: -12%;
    left: var(--left);
    width: 8px;
    height: 14px;
    border-radius: 2px;
    background: var(--color);
    opacity: 0;
    transform: rotate(calc(var(--i) * 24deg));
    animation: gameConfettiFall var(--duration) ease-in var(--delay) forwards;
}

.game-level-celebrate__card {
    position: relative;
    z-index: 1;
    width: min(92%, 360px);
    padding: 28px 22px;
    border: 1px solid rgba(91, 78, 229, 0.2);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(91, 78, 229, 0.15);
    text-align: center;
    opacity: 0;
    transform: scale(0.88) translateY(12px);
}

.game-level-celebrate.is-active .game-level-celebrate__card {
    animation: gameCelebratePop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.game-level-celebrate__badge {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.game-level-celebrate__check-circle {
    stroke: #4fbfa8;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
}

.game-level-celebrate__check-mark {
    stroke: #5b4ee5;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.game-level-celebrate.is-active .game-level-celebrate__check-circle {
    animation: gameCheckCircle 0.55s ease forwards 0.15s;
}

.game-level-celebrate.is-active .game-level-celebrate__check-mark {
    animation: gameCheckMark 0.35s ease forwards 0.55s;
}

.game-level-celebrate__title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.game-level-celebrate__time {
    margin: 0 0 8px;
    color: #555;
    font-size: 16px;
}

.game-level-celebrate__time strong {
    color: #5b4ee5;
    font-size: 20px;
}

.game-level-celebrate__meta {
    margin: 0 0 20px;
    color: #777;
    font-size: 14px;
}

@keyframes gameCelebratePop {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes gameCheckCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes gameCheckMark {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes gameConfettiFall {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    12% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(420px) rotate(540deg);
    }
}

.game-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    touch-action: none;
    cursor: crosshair;
    border-radius: 8px;
    background: #cfd9e4;
}

.game-canvas__hint {
    margin: 10px 0 0;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.game-service-picker {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.game-service-picker__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-weight: 600;
    cursor: pointer;
}

.game-service-picker__item.is-selected,
.game-service-picker__item:has(input:checked) {
    border-color: #5b4ee5;
    background: #f5f3ff;
}

.game-reward-code {
    margin: 0 0 12px;
    color: #5b4ee5;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.game-reward-meta {
    margin: 0 0 8px;
    color: #555;
}

.game-reward-expiry {
    margin: 0 0 16px;
    color: #777;
    font-size: 14px;
}

.game-reward-qr-wrap {
    margin: 0 0 16px;
}

.game-reward-qr {
    display: inline-block;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.game-reward-max-note {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f0fdf8;
    color: #2f855a;
    font-size: 14px;
    font-weight: 600;
}

.game-final-stats {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    text-align: left;
}

.game-final-stats__total {
    margin: 0 0 8px;
    font-weight: 600;
}

.game-final-stats__list {
    margin: 0;
    padding-left: 18px;
    color: #555;
}

.game-btn--max {
    border-color: rgba(91, 78, 229, 0.35);
}

.game-reward-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.game-phone-block {
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: left;
}

.game-phone-block__title {
    margin: 0 0 8px;
    font-size: 18px;
}

.game-phone-block__text {
    margin: 0 0 12px;
    color: #666;
}

.game-phone-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-phone-form .form-control {
    flex: 1 1 220px;
}

.game-phone-block__success {
    margin: 0;
    color: #2f855a;
    font-weight: 600;
}

.game-screen__card--error {
    border-color: rgba(220, 53, 69, 0.25);
}

.game-rules__nav {
    margin: 24px 0;
}

.homepage-game-banner {
    padding: 18px 0;
    background: linear-gradient(90deg, rgba(91, 78, 229, 0.08), rgba(79, 191, 168, 0.12));
    border-top: 1px solid rgba(91, 78, 229, 0.12);
    border-bottom: 1px solid rgba(91, 78, 229, 0.12);
}

.homepage-game-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
}

.homepage-game-banner__text {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.homepage-game-banner__text span {
    color: #5b4ee5;
}

@keyframes gameIntroFade {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    15%,
    75% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(4px);
    }
}

@keyframes gameTutorialSwipe {
    0%,
    100% {
        transform: translateX(-24px);
    }
    50% {
        transform: translateX(24px);
    }
}

.game-level-celebrate.is-reduced-motion .game-level-celebrate__confetti {
    display: none;
}

.game-level-celebrate.is-reduced-motion .game-level-celebrate__card {
    opacity: 1;
    transform: none;
    animation: none;
}

.game-level-celebrate.is-reduced-motion .game-level-celebrate__check-circle,
.game-level-celebrate.is-reduced-motion .game-level-celebrate__check-mark {
    stroke-dashoffset: 0;
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .game-level-celebrate__confetti-piece,
    .game-level-celebrate__card,
    .game-level-celebrate__check-circle,
    .game-level-celebrate__check-mark,
    .game-tutorial__hand,
    .game-level-intro__text {
        animation: none !important;
    }

    .game-hud__progress span {
        transition: none;
    }
}

@media (max-width: 767px) {
    .game-reward-actions .game-btn,
    .game-btn {
        width: 100%;
    }
}
