.rush-section {
    background:
        linear-gradient(180deg, #f6f8f5 0%, #eef4f3 46%, #f8fafc 100%);
    color: #17232f;
}

.rush-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1.25rem;
    align-items: start;
}

.rush-header,
.rush-panel,
.leaderboard-panel,
.tips-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d6e0df;
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(23, 35, 47, 0.08);
}

.rush-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem;
    margin-bottom: 1rem;
    border-top: 5px solid #2f6f64;
}

.rush-header .title {
    color: #17232f;
}

.rush-header .subtitle {
    max-width: 720px;
    color: #4b5f68;
    line-height: 1.45;
}

.rush-panel,
.leaderboard-panel,
.tips-panel {
    padding: 1.1rem;
}

.rush-panel .button.is-primary,
.rush-panel .button.is-primary:focus,
.rush-panel .button.is-primary:hover {
    background: #2f6f64;
    border-color: #2f6f64;
    color: #fff;
}

.rush-panel .button,
.rush-options .button {
    border-radius: 8px;
}

.best-score {
    min-width: 168px;
    padding: 0.95rem;
    border-radius: 8px;
    background: #f2f6f1;
    border: 1px solid #cbd8d2;
    text-align: center;
}

.best-score strong,
.best-score small {
    display: block;
}

.best-score strong {
    font-size: 2.05rem;
    color: #2f6f64;
    line-height: 1;
}

.best-score small {
    color: #60727c;
}

.rush-hud,
.final-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.final-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rush-hud > div,
.final-stats div {
    border: 1px solid #d6e0df;
    border-radius: 8px;
    padding: 0.8rem;
    min-height: 74px;
    background: #fbfcfb;
}

.rush-hud .heading,
.final-stats span {
    display: block;
    color: #60727c;
    font-size: 0.78rem;
    line-height: 1.2;
}

.rush-hud strong,
.final-stats strong {
    display: block;
    font-size: 1.45rem;
    color: #17232f;
    line-height: 1.1;
    margin-top: 0.18rem;
}

.lives {
    display: flex;
    gap: 0.28rem;
    color: #b42318;
    font-size: 1.12rem;
    min-height: 24px;
    align-items: center;
}

.rush-stage {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #cbd8d2;
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f8f6 100%);
    min-height: 320px;
    padding: 1rem;
}

.rush-context {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.rush-context span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.45rem 0.6rem;
    border: 1px solid #d6e0df;
    border-radius: 8px;
    background: #fbfcfb;
    color: #41545d;
    font-size: 0.95rem;
    white-space: nowrap;
}

.rush-context i {
    color: #2f6f64;
}

.rush-card {
    position: relative;
    width: min(100%, 680px);
    margin: 1.1rem auto 0;
    background: #fff;
    border: 1px solid #b9cbc4;
    border-radius: 8px;
    padding: 1.35rem;
    text-align: center;
    box-shadow: 0 12px 28px rgba(23, 35, 47, 0.08);
}

.rush-card.falling {
    animation: rushCardIn 0.22s ease-out;
}

.rush-card .tag {
    color: #41545d;
    background: #eef4f3;
    border: 1px solid #d6e0df;
    font-weight: 700;
}

.rush-card strong {
    display: block;
    color: #17232f;
    font-size: clamp(1.45rem, 2.4vw, 2.2rem);
    line-height: 1.25;
    margin: 0.85rem 0 1rem;
    overflow-wrap: anywhere;
}

@keyframes rushCardIn {
    from {
        opacity: 0.72;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timer-track {
    height: 12px;
    background: #d9e4e1;
    border-radius: 999px;
    overflow: hidden;
    margin: 1rem 0;
}

#timerBar {
    height: 100%;
    width: 100%;
    background: #2f6f64;
    transition: width 0.1s linear, background 0.2s ease;
}

#timerBar.danger {
    background: #b42318;
}

.rush-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.rush-option {
    justify-content: flex-start;
    white-space: normal;
    min-height: 64px;
    height: auto;
    padding: 0.9rem 1rem;
    text-align: left;
    border-color: #cbd8d2;
    background: #fff;
    color: #17232f;
    font-size: 1.03rem;
    line-height: 1.35;
    box-shadow: 0 3px 0 #dbe5e1;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.rush-option:hover,
.rush-option:focus {
    border-color: #2f6f64;
    color: #17232f;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #cbd8d2;
}

.feedback {
    margin-top: 1rem;
    border-radius: 8px;
    padding: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
}

.feedback.is-correct {
    background: #e5f4ed;
    color: #13523f;
}

.feedback.is-wrong {
    background: #fde8e4;
    color: #8a1c15;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.68rem 0;
    border-bottom: 1px solid #e3e9e7;
}

.leaderboard-row:last-child {
    border-bottom: 0;
}

.leaderboard-row .rank {
    color: #2f6f64;
    font-weight: 800;
}

.leaderboard-row .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tips-panel {
    margin-top: 1rem;
    color: #41545d;
}

.game-eyebrow {
    color: #9a5b15;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.rush-seo {
    max-width: 880px;
    font-size: 1.05rem;
}

@media screen and (max-width: 1080px) {
    .rush-layout {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .rush-section {
        padding-top: 1rem;
    }

    .rush-header {
        display: block;
        padding: 1rem;
    }

    .rush-section.is-playing .rush-header {
        display: none;
    }

    .rush-header .title {
        font-size: 2rem;
    }

    .best-score {
        margin-top: 1rem;
        text-align: left;
    }

    .rush-hud {
        grid-template-columns: 1.35fr repeat(3, minmax(0, 0.85fr));
        gap: 0.35rem;
    }

    .rush-hud > div {
        min-height: 56px;
        padding: 0.45rem 0.35rem;
        min-width: 0;
    }

    .rush-hud .heading {
        font-size: 0.62rem;
        line-height: 1;
        white-space: nowrap;
    }

    .rush-hud strong {
        font-size: 1rem;
        line-height: 1.1;
    }

    .lives {
        gap: 0.1rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .rush-stage {
        min-height: 280px;
        padding: 0.8rem;
    }

    .rush-context {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .rush-context span {
        min-height: 36px;
        padding: 0.35rem;
        font-size: 0.74rem;
    }

    .rush-card {
        padding: 1rem;
        margin-top: 0.8rem;
    }

    .rush-card strong {
        font-size: 1.38rem;
    }

    .final-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .final-stats div {
        min-height: 60px;
        padding: 0.55rem 0.4rem;
    }

    .final-stats strong {
        font-size: 1.1rem;
    }

    .rush-options {
        grid-template-columns: 1fr;
    }

    .rush-option {
        min-height: 62px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rush-card.falling,
    .rush-option {
        animation: none;
        transition: none;
    }
}
