@font-face {
    font-family: 'DrukWide';
    src: url('/static/fonts/drukwidecyr-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #f5efe4;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: rgba(255, 255, 255, 0.97);
    --surface-muted: rgba(246, 248, 255, 0.9);
    --text-main: #172033;
    --text-secondary: #475467;
    --text-soft: #667085;
    --primary: #155eef;
    --primary-dark: #0f48b5;
    --primary-glow: rgba(21, 94, 239, 0.16);
    --warm: #f97316;
    --warm-soft: rgba(249, 115, 22, 0.12);
    --success: #16a34a;
    --success-soft: rgba(22, 163, 74, 0.14);
    --error: #dc2626;
    --error-soft: rgba(220, 38, 38, 0.12);
    --border: rgba(23, 32, 51, 0.08);
    --border-strong: rgba(21, 94, 239, 0.14);
    --shadow-soft: 0 18px 40px rgba(23, 32, 51, 0.08);
    --shadow-card: 0 28px 66px rgba(23, 32, 51, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: "SF Pro Display", "Segoe UI Variable", "Segoe UI", sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(21, 94, 239, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 26%),
        linear-gradient(180deg, #fffaf4 0%, var(--bg-color) 52%, #eef4ff 100%);
    -webkit-tap-highlight-color: transparent;
}

body * {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

button,
textarea,
input {
    font: inherit;
}

input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

button {
    border: none;
    background: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    -webkit-user-drag: none;
}

.text-blue {
    color: var(--primary);
}

.druk-text,
.brand-title,
.hero-title,
.section-title,
.result-score,
.loading-title {
    font-family: 'DrukWide', "SF Pro Display", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 18px 16px 40px;
}

.screen {
    display: none;
    width: 100%;
    min-height: calc(100vh - 36px);
}

.screen.active {
    display: block;
}

.screen-shell {
    width: min(100%, 430px);
    margin: 0 auto;
    position: relative;
}

.centered-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 80px);
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.brand-lockup {
    display: flex;
    gap: 14px;
    align-items: center;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #5a8cff 100%);
    color: #fff;
    font-family: 'DrukWide', sans-serif;
    font-size: 14px;
    box-shadow: 0 16px 28px rgba(21, 94, 239, 0.24);
}

.brand-title {
    margin: 2px 0 0;
    font-size: 26px;
    line-height: 0.95;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.topbar-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.icon-btn,
.custom-back-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.icon-btn {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 18px;
}

.custom-back-btn {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-bottom: 18px;
    color: var(--primary);
    font-weight: 700;
}

.ghost-btn {
    color: var(--primary);
    font-weight: 700;
}

.icon-btn:active,
.custom-back-btn:active,
.ghost-btn:active,
.card-button:active,
.mode-btn:active,
.menu-btn:active,
.support-chip:active,
.close-game-btn:active {
    transform: translateY(1px) scale(0.98);
}

.card,
.glass-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-xl);
}

.card {
    padding: 20px;
    margin-bottom: 14px;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.card-button {
    width: 100%;
    text-align: left;
    cursor: pointer;
}

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

.section-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.04;
}

.screen-heading {
    margin-bottom: 16px;
}

.hero-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
    min-height: 252px;
    overflow: hidden;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1;
}

.hero-subtitle,
.snapshot-note,
.support-note,
.result-summary,
.support-tip p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.45;
}

.hero-inline-stats,
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.snapshot-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.hero-pill,
.snapshot-item {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(21, 94, 239, 0.10);
}

.hero-pill span,
.snapshot-item span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.hero-pill strong,
.snapshot-item strong {
    font-size: 18px;
    font-weight: 800;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bear-frame {
    position: relative;
    width: 176px;
    height: 176px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.92), transparent 60%),
        linear-gradient(180deg, rgba(21, 94, 239, 0.12) 0%, rgba(249, 115, 22, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.bear-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bear-img-small {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    padding: 8px;
}

.bear-level-badge {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(21, 94, 239, 0.28);
}

.level-container {
    margin-top: 14px;
}

.level-container.compact {
    margin-top: 12px;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(148, 163, 184, 0.20);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #5a8cff 100%);
    border-radius: inherit;
    transition: width 0.35s ease;
}

.progress-caption {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.coach-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 255, 0.88) 100%);
}

.focus-chips,
.support-categories,
.support-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.focus-chip,
.support-chip,
.ticket-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.focus-chip.is-4 {
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.22);
}

.focus-chip.is-9 {
    background: rgba(21, 94, 239, 0.10);
    border-color: rgba(21, 94, 239, 0.18);
}

.focus-chip.is-5 {
    background: rgba(219, 39, 119, 0.10);
    border-color: rgba(219, 39, 119, 0.18);
}

.focus-chip.is-10 {
    background: rgba(124, 58, 237, 0.10);
    border-color: rgba(124, 58, 237, 0.18);
}

.focus-chip.is-11 {
    background: rgba(22, 163, 74, 0.10);
    border-color: rgba(22, 163, 74, 0.18);
}

.focus-chip.is-12 {
    background: rgba(217, 119, 6, 0.10);
    border-color: rgba(217, 119, 6, 0.18);
}

.focus-chip.is-13 {
    background: rgba(225, 29, 72, 0.10);
    border-color: rgba(225, 29, 72, 0.18);
}

.focus-chip.is-14 {
    background: rgba(8, 145, 178, 0.10);
    border-color: rgba(8, 145, 178, 0.18);
}

.coach-drill-grid,
.progress-task-grid,
.achievement-grid {
    display: grid;
    gap: 12px;
}

.coach-drill-grid,
.achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drill-card,
.task-progress-card,
.achievement-card {
    padding: 16px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.86) 100%);
    box-shadow: var(--shadow-soft);
}

.drill-card {
    min-height: 126px;
    text-align: left;
    cursor: pointer;
}

.drill-card.sun {
    background: linear-gradient(180deg, rgba(255, 245, 237, 0.98) 0%, rgba(255, 250, 245, 0.92) 100%);
}

.drill-card.ocean {
    background: linear-gradient(180deg, rgba(237, 244, 255, 0.98) 0%, rgba(245, 249, 255, 0.92) 100%);
}

.drill-card.violet {
    background: linear-gradient(180deg, rgba(245, 240, 255, 0.98) 0%, rgba(250, 248, 255, 0.92) 100%);
}

.drill-card.forest {
    background: linear-gradient(180deg, rgba(238, 252, 243, 0.98) 0%, rgba(246, 255, 249, 0.92) 100%);
}

.drill-card.amber {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 251, 242, 0.92) 100%);
}

.drill-card.rose {
    background: linear-gradient(180deg, rgba(255, 241, 245, 0.98) 0%, rgba(255, 247, 249, 0.92) 100%);
}

.drill-card.sky {
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.98) 0%, rgba(244, 252, 255, 0.92) 100%);
}

.drill-title,
.task-progress-title,
.achievement-title {
    margin: 0 0 8px;
    font-weight: 800;
    font-size: 16px;
}

.drill-subtitle,
.task-progress-caption,
.achievement-copy {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 13px;
}

.drill-meta {
    margin-top: 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.daily-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 126px;
    padding: 20px;
    border-radius: var(--radius-xl);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 24px 54px rgba(255, 77, 109, 0.24);
    background:
        linear-gradient(135deg, #ff8a00 0%, #ff4d6d 58%, #155eef 100%);
}

.daily-card.done {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 24px 54px rgba(22, 163, 74, 0.24);
}

.daily-header,
.daily-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.daily-title {
    font-family: 'DrukWide', sans-serif;
    font-size: 14px;
}

.daily-timer,
.daily-status {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 800;
}

.main-buttons-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.main-buttons-grid > :nth-child(1),
.main-buttons-grid > :nth-child(2) {
    grid-column: span 3;
}

.main-buttons-grid > :nth-child(3),
.main-buttons-grid > :nth-child(4),
.main-buttons-grid > :nth-child(5),
.main-buttons-grid > :nth-child(6),
.main-buttons-grid > :nth-child(7),
.main-buttons-grid > :nth-child(8) {
    grid-column: span 2;
}

.glass-btn {
    min-height: 126px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.92) 100%);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-soft);
}

.task-btn-title {
    font-family: 'DrukWide', sans-serif;
    font-size: 17px;
    line-height: 1.04;
    color: var(--text-main);
}

.task-btn-number {
    display: block;
    width: 100%;
    margin: 0 auto;
    font-size: 36px;
    line-height: 0.9;
    letter-spacing: 0.14em;
    text-align: center;
    transform: scaleX(1.28);
    transform-origin: center center;
}

.task-card-10,
.task-card-11,
.task-card-12 {
    align-items: center;
    text-align: center;
}

.subtitle {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mini-lb-list .list-item:last-child,
.leaderboard-panel .list-item:last-child,
.scroll-list .mistake-row:last-child {
    border-bottom: none;
}

.list-item,
.mistake-row,
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(23, 32, 51, 0.06);
}

.mistake-row.with-explanation,
.sm-item.has-detail {
    display: block;
}

.mistake-row-main,
.sm-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mistake-word-stack {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.mistake-word {
    font-weight: 700;
    color: var(--text-main);
}

.mistake-rule {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.mistake-row-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mistake-explain-btn {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.mistake-explanation,
.sm-detail {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(21, 94, 239, 0.07);
    border: 1px solid rgba(21, 94, 239, 0.10);
}

.mistake-explanation strong,
.sm-detail strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
}

.mistake-explanation p,
.sm-detail p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.mistake-memory {
    margin-top: 8px !important;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(148, 163, 184, 0.18);
}

.mini-lb-list .avatar {
    width: 30px;
    height: 30px;
}

.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--warm) 100%);
}

.rank {
    width: 24px;
    color: var(--primary);
    font-weight: 800;
    font-family: 'DrukWide', sans-serif;
    font-size: 11px;
    text-align: center;
}

.score {
    white-space: nowrap;
    font-weight: 800;
}

.support-preview .support-status-list,
.support-status-list,
.support-history {
    margin-top: 12px;
}

.ticket-pill,
.history-item {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 16px;
}

.ticket-pill.open,
.history-item.open {
    border-color: rgba(249, 115, 22, 0.24);
}

.ticket-pill.answered,
.history-item.answered {
    border-color: rgba(22, 163, 74, 0.24);
}

.screen-heading .section-title {
    font-size: 24px;
}

.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mode-btn {
    min-height: 100px;
    padding: 18px;
    border-radius: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.mode-btn b {
    font-size: 24px;
    margin-bottom: 4px;
}

.mode-btn span {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 800;
}

.mode-btn.primary,
.mode-btn.exam-mode {
    color: #fff;
    border: none;
}

.mode-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #5a8cff 100%);
}

.mode-btn.exam-mode {
    grid-column: span 2;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

.mode-btn.exam-mode b {
    margin: 0;
}

.mode-btn.mistakes-mode {
    grid-column: span 2;
    flex-direction: row;
    justify-content: center;
    border: 1px solid rgba(220, 38, 38, 0.16);
}

.mode-btn.mistakes-mode b {
    color: var(--error);
    margin: 0;
}

.menu-btn {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    font-weight: 800;
    cursor: pointer;
}

.menu-btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #5a8cff 100%);
    border: none;
}

.glass-panel {
    padding: 24px 18px;
}

.game-shell {
    min-height: calc(100vh - 72px);
    display: grid;
    place-items: center;
}

.game-panel {
    min-height: 360px;
}

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

.stats-bar-static {
    display: flex;
    gap: 14px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.close-game-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(23, 32, 51, 0.06);
    cursor: pointer;
}

.lives-container {
    display: flex;
    gap: 6px;
    font-size: 26px;
    justify-content: center;
    margin-bottom: 14px;
}

.combo-container {
    min-height: 26px;
    text-align: center;
    font-family: 'DrukWide', sans-serif;
    color: #f59e0b;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.combo-container.is-hidden {
    display: none;
}

.combo-active {
    transform: scale(1);
}

.combo-pulse {
    animation: combo-pop 0.22s ease;
}

@keyframes combo-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.14); }
    100% { transform: scale(1); }
}

.mixed-game-area {
    width: 100%;
}

.word-display {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3px;
    margin: 26px 0 8px;
}

.letter-box {
    width: 36px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 32px;
    font-weight: 700;
}

.vowel-wrapper {
    border-radius: 12px;
    background: rgba(21, 94, 239, 0.08);
    color: var(--primary);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.vowel-wrapper.correct {
    background: var(--success);
    color: #fff;
}

.vowel-wrapper.wrong {
    background: var(--error);
    color: #fff;
    animation: shake 0.35s ease;
}

.vowel-wrapper.missed-correct {
    border-color: var(--success);
    color: var(--success);
    background: transparent;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.task4-word-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.task4-context {
    max-width: 100%;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(21, 94, 239, 0.08);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.task9-word {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin: 24px 0 10px;
}

.task-choice-prompt {
    max-width: 620px;
    margin: 24px auto 12px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    font-size: 26px;
    line-height: 1.35;
}

.task5-exam-head {
    width: min(760px, 100%);
    margin: 10px auto 14px;
    padding: 16px 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 248, 252, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(219, 39, 119, 0.14);
    box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

.task5-exam-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(219, 39, 119, 0.12);
    color: #be185d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.task5-exam-title {
    margin-top: 10px;
    font-family: 'DrukWide', sans-serif;
    font-size: 16px;
    line-height: 1.18;
    color: var(--text-main);
}

.task5-exam-copy {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.task5-prompt-card {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 18px 18px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 246, 249, 0.95) 100%);
    border: 1px solid rgba(219, 39, 119, 0.12);
    box-shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
}

.task5-word {
    margin: 0;
    max-width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    font-size: 18px;
    line-height: 1.62;
    font-weight: 700;
    text-align: left;
}

.task5-answer-label {
    width: min(760px, 100%);
    margin: 14px auto 8px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.gap-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    margin: 0 2px;
    border-radius: 12px;
    background: rgba(21, 94, 239, 0.08);
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
}

.gap-slot.filled-correct {
    background: var(--success);
    border-bottom: none;
    color: #fff;
}

.gap-slot.filled-wrong {
    background: var(--error);
    border-bottom: none;
    color: #fff;
}

.letters-popup {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.letters-popup.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.letters-popup.is-choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    width: min(760px, 100%);
    margin: 10px auto 0;
}

.letters-popup.is-task5 {
    margin-top: 0;
}

.letter-option-btn {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    font-family: 'DrukWide', sans-serif;
    font-size: 22px;
    cursor: pointer;
}

.letter-option-btn.is-choice {
    width: auto;
    min-height: 58px;
    padding: 14px 16px;
    font-family: 'PPNeueMachina', sans-serif;
    font-size: 17px;
    line-height: 1.35;
    text-align: center;
}

.rhyme-box {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(21, 94, 239, 0.08);
    color: var(--primary);
    font-size: 14px;
    line-height: 1.45;
}

.result-panel {
    text-align: center;
    max-width: 420px;
}

.result-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(21, 94, 239, 0.08);
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.result-score {
    font-size: 50px;
    margin: 0 0 12px;
}

.xp-gain {
    color: #d97706;
    font-weight: 800;
}

.session-mistakes {
    width: 100%;
    max-height: 240px;
    overflow-y: auto;
    margin: 16px 0 20px;
}

.sm-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.08);
    font-size: 13px;
}

.sm-item.expanded {
    background: rgba(21, 94, 239, 0.08);
}

.sm-item.success {
    background: var(--success-soft);
    color: var(--success);
    justify-content: center;
    font-weight: 800;
}

.sm-item b {
    color: var(--error);
}

.sm-item span {
    color: var(--success);
    font-weight: 800;
}

.sm-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.sm-solution-btn {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.sm-detail[hidden] {
    display: none !important;
}

.leaderboard-panel,
.mistakes-panel {
    display: block;
}

.scroll-list {
    min-height: 120px;
    max-height: 56vh;
    overflow-y: auto;
}

.tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: rgba(23, 32, 51, 0.05);
}

.tab {
    flex: 1;
    min-height: 42px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 800;
}

.tab.active {
    color: var(--text-main);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.progress-hero {
    margin-bottom: 14px;
}

.weekly-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.week-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.week-bar-track {
    width: 100%;
    height: 132px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(23, 32, 51, 0.05);
    display: flex;
    align-items: flex-end;
}

.week-bar-fill {
    width: 100%;
    min-height: 10px;
    height: calc(var(--bar-size, 0) * 1%);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--primary) 0%, #5a8cff 100%);
}

.week-bar-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
}

.week-bar-value {
    font-size: 11px;
    color: var(--text-soft);
}

.task-progress-card {
    display: grid;
    gap: 12px;
}

.task-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.task-progress-score {
    font-family: 'DrukWide', sans-serif;
    font-size: 22px;
    color: var(--primary);
}

.mini-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.mini-progress > span {
    display: block;
    height: 100%;
    width: calc(var(--value, 0) * 1%);
    background: linear-gradient(90deg, var(--warm) 0%, #fb923c 100%);
    border-radius: inherit;
}

.focus-list,
.support-history {
    display: grid;
    gap: 10px;
}

.focus-item,
.history-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
}

.focus-item-head,
.history-item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.focus-item strong,
.history-item strong {
    font-size: 15px;
}

.focus-item-meta,
.history-meta {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.achievement-card {
    min-height: 112px;
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.96) 0%, rgba(255, 255, 255, 0.90) 100%);
}

.achievement-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--warm-soft);
    font-size: 20px;
    margin-bottom: 12px;
}

.support-card {
    padding: 20px;
}

.support-grid {
    display: grid;
    gap: 16px;
}

.support-tip {
    padding: 16px;
    border-radius: 20px;
    background: rgba(21, 94, 239, 0.05);
    border: 1px solid rgba(21, 94, 239, 0.10);
}

.support-tip strong {
    display: block;
    margin-bottom: 8px;
}

.support-chip {
    cursor: pointer;
}

.support-chip.active {
    background: rgba(21, 94, 239, 0.12);
    border-color: rgba(21, 94, 239, 0.18);
    color: var(--primary);
}

.support-textarea {
    width: 100%;
    min-height: 180px;
    padding: 16px;
    margin: 14px 0 16px;
    resize: none;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-main);
    outline: none;
}

.support-textarea:focus {
    border-color: rgba(21, 94, 239, 0.28);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.08);
}

body {
    background:
        radial-gradient(circle at 0% 0%, rgba(21, 94, 239, 0.18), transparent 28%),
        radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.18), transparent 24%),
        linear-gradient(180deg, #fffaf3 0%, #f6efe4 48%, #eef5ff 100%);
}

.screen-shell {
    width: min(100%, 438px);
}

.topbar {
    margin-bottom: 14px;
}

.icon-btn,
.custom-back-btn,
.ghost-btn {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
}

.hero-card,
.priority-stack > *,
.secondary-stack > *,
.mode-hero {
    animation: fade-up 0.55s ease both;
}

.priority-stack > *:nth-child(2) {
    animation-delay: 0.05s;
}

.priority-stack > *:nth-child(3) {
    animation-delay: 0.1s;
}

.secondary-stack > *:nth-child(1) {
    animation-delay: 0.14s;
}

.secondary-stack > *:nth-child(2) {
    animation-delay: 0.18s;
}

.secondary-stack > *:nth-child(3) {
    animation-delay: 0.22s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-card {
    position: relative;
    grid-template-columns: 1fr;
    min-height: 370px;
    padding: 26px 22px 24px;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.96), transparent 28%),
        linear-gradient(180deg, rgba(255, 247, 239, 0.98) 0%, rgba(245, 248, 255, 0.98) 56%, rgba(236, 244, 255, 0.96) 100%);
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-card::before {
    width: 210px;
    height: 210px;
    right: -42px;
    top: -40px;
    background: radial-gradient(circle, rgba(21, 94, 239, 0.16), transparent 70%);
}

.hero-card::after {
    width: 190px;
    height: 190px;
    left: -48px;
    bottom: -72px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 74%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
}

.hero-title {
    max-width: 320px;
    font-size: 32px;
    line-height: 1;
    margin-top: 4px;
}

.hero-subtitle,
.snapshot-note,
.support-note,
.result-summary,
.support-tip p,
.coach-note,
.mode-hero-note,
.drill-subtitle,
.task-progress-caption,
.achievement-copy,
.focus-item-meta,
.history-meta,
.loading-text {
    color: var(--text-secondary);
}

.hero-subtitle {
    max-width: 300px;
    font-size: 14px;
}

.hero-inline-stats,
.snapshot-grid {
    gap: 12px;
}

.hero-pill,
.snapshot-item {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(21, 94, 239, 0.14);
}

.hero-pill strong,
.snapshot-item strong {
    color: var(--text-main);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.bear-frame {
    width: 260px;
    height: 260px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
}

.bear-frame::before,
.bear-frame::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 999px;
}

.bear-frame::before {
    width: 236px;
    height: 236px;
    background: radial-gradient(circle at center, rgba(21, 94, 239, 0.18), rgba(21, 94, 239, 0.03) 65%, transparent 75%);
    filter: blur(8px);
}

.bear-frame::after {
    width: 214px;
    height: 214px;
    border: 1px dashed rgba(21, 94, 239, 0.22);
    animation: slow-spin 18s linear infinite;
}

.bear-img {
    position: relative;
    z-index: 1;
    width: 238px;
    height: 238px;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(21, 94, 239, 0.16));
    animation: bear-float 4.2s ease-in-out infinite;
}

@keyframes bear-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.bear-level-badge {
    bottom: 14px;
    z-index: 2;
    background: linear-gradient(135deg, var(--primary) 0%, #5f8fff 100%);
}

.priority-stack,
.secondary-stack {
    display: grid;
    gap: 14px;
    margin-top: 2px;
}

.leaderboard-primary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.94) 100%);
}

.main-buttons-grid {
    margin-bottom: 0;
}

.task-card {
    min-height: 142px;
    padding: 18px 18px 20px;
    overflow: hidden;
    position: relative;
    align-items: center;
    text-align: center;
}

.task-card::before {
    content: "";
    position: absolute;
    inset: auto -24px -32px auto;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    opacity: 0.55;
}

.task-card-4 {
    background: linear-gradient(180deg, rgba(255, 246, 236, 0.98) 0%, rgba(255, 251, 247, 0.94) 100%);
}

.task-card-4::before {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 72%);
}

.task-card-9 {
    background: linear-gradient(180deg, rgba(238, 245, 255, 0.98) 0%, rgba(247, 250, 255, 0.94) 100%);
}

.task-card-9::before {
    background: radial-gradient(circle, rgba(21, 94, 239, 0.18), transparent 72%);
}

.task-card-5 {
    background: linear-gradient(180deg, rgba(255, 240, 246, 0.98) 0%, rgba(255, 247, 251, 0.94) 100%);
}

.task-card-5::before {
    background: radial-gradient(circle, rgba(219, 39, 119, 0.18), transparent 72%);
}

.task-card-10 {
    background: linear-gradient(180deg, rgba(245, 240, 255, 0.98) 0%, rgba(250, 247, 255, 0.94) 100%);
}

.task-card-10::before {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 72%);
}

.task-card-11 {
    background: linear-gradient(180deg, rgba(238, 252, 243, 0.98) 0%, rgba(248, 255, 250, 0.94) 100%);
}

.task-card-11::before {
    background: radial-gradient(circle, rgba(22, 163, 74, 0.18), transparent 72%);
}

.task-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.task-btn-title {
    font-size: 19px;
}

.task-btn-number {
    font-size: 40px;
}

.subtitle {
    color: var(--text-secondary);
}

.daily-card {
    min-height: 138px;
    box-shadow: 0 28px 58px rgba(255, 77, 109, 0.24);
}

.daily-info {
    align-items: flex-end;
}

.daily-info span:first-child {
    max-width: 220px;
    line-height: 1.35;
    font-weight: 600;
}

.mini-lb-list .list-item,
.leaderboard-panel .list-item {
    padding: 14px 0;
}

.score,
.focus-item strong,
.history-item strong,
.section-title,
.brand-title,
.task-btn-title {
    color: var(--text-main);
}

.focus-chip,
.support-chip,
.ticket-pill {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.92);
}

.focus-chip small {
    font-size: 11px;
    color: var(--text-secondary);
}

.coach-card,
.progress-card,
.support-preview {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(249, 250, 255, 0.9) 100%);
}

.coach-card {
    border-color: rgba(21, 94, 239, 0.12);
}

.coach-note {
    margin: 0 0 14px;
    line-height: 1.5;
}

.coach-plan {
    margin: 0 0 14px;
}

.coach-plan-card {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.92) 100%);
    box-shadow: var(--shadow-soft);
}

.coach-plan-card.sun,
.drill-card.sun {
    background: linear-gradient(180deg, rgba(255, 245, 237, 0.98) 0%, rgba(255, 250, 245, 0.92) 100%);
}

.coach-plan-card.ocean,
.drill-card.ocean {
    background: linear-gradient(180deg, rgba(237, 244, 255, 0.98) 0%, rgba(245, 249, 255, 0.92) 100%);
}

.coach-plan-card.violet,
.drill-card.violet {
    background: linear-gradient(180deg, rgba(245, 240, 255, 0.98) 0%, rgba(250, 248, 255, 0.92) 100%);
}

.coach-plan-card.forest,
.drill-card.forest {
    background: linear-gradient(180deg, rgba(238, 252, 243, 0.98) 0%, rgba(246, 255, 249, 0.92) 100%);
}

.coach-plan-card.amber,
.drill-card.amber {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 251, 242, 0.92) 100%);
}

.coach-plan-card.rose,
.drill-card.rose {
    background: linear-gradient(180deg, rgba(255, 241, 245, 0.98) 0%, rgba(255, 247, 249, 0.92) 100%);
}

.coach-plan-card.sky,
.drill-card.sky {
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.98) 0%, rgba(244, 252, 255, 0.92) 100%);
}

.coach-plan-badge,
.drill-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.coach-plan-title {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.1;
    color: var(--text-main);
}

.coach-plan-copy,
.coach-plan-examples,
.drill-examples {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.coach-plan-examples,
.drill-examples {
    margin-top: 8px;
    font-size: 13px;
}

.coach-plan-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.coach-plan-meta {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.coach-plan-action {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.coach-drill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drill-card {
    min-height: 134px;
}

.drill-badge {
    margin-bottom: 10px;
}

.drill-title {
    color: var(--text-main);
}

.drill-meta {
    color: var(--primary-dark);
}

.mode-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
    justify-items: center;
    min-height: 248px;
    padding: 22px 20px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(21, 94, 239, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(255, 248, 241, 0.98) 0%, rgba(241, 247, 255, 0.98) 100%);
}

.mode-hero-copy {
    position: relative;
    z-index: 1;
}

.mode-bear-wrap {
    position: relative;
    width: 178px;
    height: 178px;
    display: grid;
    place-items: center;
}

.mode-bear-wrap::before {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 94, 239, 0.15), transparent 72%);
}

.mode-bear-img {
    position: relative;
    z-index: 1;
    width: 166px;
    height: 166px;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(21, 94, 239, 0.14));
    animation: bear-float 4s ease-in-out infinite;
}

.mode-grid {
    margin-top: 14px;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(23, 32, 51, 0.08);
}

.mode-btn b,
.mode-btn span {
    color: var(--text-main);
}

.mode-btn.primary b,
.mode-btn.primary span,
.mode-btn.exam-mode b,
.mode-btn.exam-mode span {
    color: #fff;
}

.support-status-list,
.support-history {
    gap: 10px;
}

.ticket-pill {
    border: 1px solid rgba(23, 32, 51, 0.08);
}

.history-item,
.focus-item {
    background: rgba(255, 255, 255, 0.92);
}

.close-game-btn {
    color: var(--primary-dark);
}

.menu-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4b7cff 100%);
}

.loading-title {
    margin: 16px 0 8px;
    font-size: 24px;
    color: var(--primary);
}

.loading-text {
    min-height: 22px;
    color: var(--text-secondary);
}

.skeleton {
    width: 100%;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.55) 25%, rgba(241, 245, 249, 0.96) 50%, rgba(226, 232, 240, 0.55) 75%);
    background-size: 200% 100%;
    animation: loading 1.3s linear infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 16px;
    border-radius: 4px;
    animation: confetti-fall 1.3s ease-in forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes confetti-fall {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate3d(var(--dx, 0px), 110vh, 0) rotate(var(--rot, 320deg));
        opacity: 0;
    }
}

@media (max-width: 380px) {
    .bear-frame {
        width: 210px;
        height: 210px;
    }

    .bear-img {
        width: 190px;
        height: 190px;
    }

    .mode-hero {
        grid-template-columns: 1fr;
    }

    .mode-bear-wrap {
        margin-inline: auto;
    }

    .coach-drill-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .coach-plan-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-buttons-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
    }

    .main-buttons-grid > :nth-child(1),
    .main-buttons-grid > :nth-child(2) {
        grid-column: span 3;
    }

    .main-buttons-grid > :nth-child(3),
    .main-buttons-grid > :nth-child(4),
    .main-buttons-grid > :nth-child(5),
    .main-buttons-grid > :nth-child(6),
    .main-buttons-grid > :nth-child(7),
    .main-buttons-grid > :nth-child(8) {
        grid-column: span 2;
    }

    .task-card {
        min-height: 116px;
        padding: 16px 14px 18px;
    }

    .task5-exam-head,
    .task5-prompt-card {
        padding: 16px 14px 18px;
        border-radius: 20px;
    }

    .task5-exam-title {
        font-size: 14px;
    }

    .task5-exam-copy {
        font-size: 13px;
    }

    .task5-word {
        font-size: 16px;
        line-height: 1.55;
    }

    .task-btn-title {
        font-size: 16px;
    }

    .task-btn-number {
        font-size: 32px;
        letter-spacing: 0.12em;
        transform: scaleX(1.22);
    }

    .task-card .subtitle {
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .snapshot-grid.large,
    .hero-inline-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 920px) {
    .main-buttons-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .main-buttons-grid > :nth-child(1),
    .main-buttons-grid > :nth-child(2) {
        grid-column: span 3;
    }

    .main-buttons-grid > :nth-child(3),
    .main-buttons-grid > :nth-child(4),
    .main-buttons-grid > :nth-child(5),
    .main-buttons-grid > :nth-child(6),
    .main-buttons-grid > :nth-child(7),
    .main-buttons-grid > :nth-child(8) {
        grid-column: span 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
