.typing-page {
    padding: 28px 0 56px;
}

.typing-page__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.typing-page__topbar .eyebrow {
    margin: 0;
}

.typing-game-shell {
    position: relative;
}

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

.typing-start {
    position: relative;
    display: flex;
    min-height: 550px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(103, 163, 235, .25);
    border-radius: 30px;
    background: #96d9f7;
    box-shadow: 0 22px 54px rgba(55, 88, 153, .16);
}

[data-theme="dark"] .typing-start {
    background: #193a73;
}

.typing-start__visual {
    position: absolute;
    z-index: 0;
    inset: 0;
}

.typing-start__visual::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .08) 42%, rgba(9, 33, 79, .45));
    content: "";
}

.typing-start__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.typing-start__content {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 570px);
    min-height: 500px;
    margin: 24px 24px 24px auto;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 3.4vw, 36px);
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 26px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 18px 42px rgba(18, 43, 91, .2);
    backdrop-filter: blur(6px);
}

[data-theme="dark"] .typing-start__content {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(12, 26, 58, .84);
}

.typing-start__logo {
    display: flex;
    width: 124px;
    height: 94px;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, .6);
}

.typing-start__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.typing-start__content h1 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(2.45rem, 6vw, 4.8rem);
    letter-spacing: -.06em;
    line-height: .96;
}

.typing-start__intro {
    max-width: 470px;
    margin: 14px 0 22px;
    color: var(--color-muted);
    font-size: 1.08rem;
    line-height: 1.45;
}

.typing-level-picker {
    display: grid;
    gap: 9px;
}

.typing-level-picker__label {
    margin: 0;
    color: var(--color-ink);
    font-weight: 900;
}

.typing-level-picker__buttons {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.typing-level-button {
    min-height: 42px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-ink);
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 900;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.typing-level-button:hover,
.typing-level-button:focus-visible {
    border-color: var(--color-primary);
    outline: 2px solid rgba(36, 99, 211, .2);
    outline-offset: 2px;
    transform: translateY(-2px);
}

.typing-level-button.is-selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.typing-level-picker__description {
    min-height: 21px;
    margin: 0;
    color: var(--color-muted);
    font-size: .88rem;
}

.typing-start__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.typing-howto {
    display: grid;
    gap: 2px;
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(36, 99, 211, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .5);
    color: var(--color-muted);
    font-size: .87rem;
    line-height: 1.35;
}

.typing-howto strong {
    color: var(--color-ink);
}

.typing-howto i {
    color: #e5a800;
}

.typing-play {
    padding: 20px;
    border-radius: 26px;
    background: linear-gradient(145deg, #112b5f, #081a3d);
    box-shadow: 0 20px 60px rgba(6, 20, 57, .25);
}

.typing-play__toolbar,
.typing-play__stats,
.typing-play__actions {
    display: flex;
    align-items: center;
}

.typing-play__toolbar {
    justify-content: space-between;
    gap: 16px;
    color: #fff;
}

.typing-play__toolbar > div:first-child {
    display: grid;
    gap: 3px;
}

.typing-play__eyebrow {
    color: #9bc9ff;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.typing-play__toolbar strong {
    font-size: 1.25rem;
}

.typing-play__stats {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
}

.typing-play__stats i {
    color: #ffd75a;
}

.typing-lives,
.typing-score {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.typing-lives {
    gap: 4px;
    color: #ff7897;
}

.typing-life--bonus {
    color: #ffd75a;
}

.typing-life {
    font-size: 1rem;
    transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}

.typing-life.is-lost {
    color: rgba(255, 255, 255, .3);
    filter: grayscale(1);
    opacity: .45;
    transform: scale(.86);
}

.typing-lives__label {
    margin-left: 3px;
    color: rgba(255, 255, 255, .78);
    font-size: .78rem;
    font-weight: 800;
}

.typing-score {
    gap: 4px;
}

.typing-timer {
    display: inline-flex;
    min-width: 76px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 9px;
    border: 1px solid rgba(101, 216, 255, .36);
    border-radius: 10px;
    background: rgba(101, 216, 255, .12);
    color: #c8f3ff;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.typing-timer.is-low {
    border-color: rgba(255, 111, 139, .76);
    background: rgba(255, 111, 139, .18);
    color: #ffb4c4;
    animation: typing-timer-pulse 1s ease-in-out infinite;
}

.typing-toolbar-button {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
}

.typing-toolbar-button:hover,
.typing-toolbar-button:focus-visible {
    background: rgba(255, 255, 255, .2);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.typing-toolbar-button.is-active {
    border-color: rgba(255, 215, 90, .72);
    background: rgba(255, 215, 90, .16);
}

.typing-progress {
    margin: 22px 0 16px;
}

.typing-progress__topline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .75);
    font-size: .78rem;
    font-weight: 800;
}

.typing-progress__track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

.typing-progress__track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #65d8ff, #ffd45a);
    transition: width .25s ease;
}

.typing-timer__track {
    height: 4px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.typing-timer__track span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #68e0ff, #8fe5a4);
    transition: width 1s linear, background .2s ease;
}

.typing-board {
    position: relative;
    display: grid;
    min-height: 440px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    background: #eaf8ff;
    isolation: isolate;
}

.typing-board::before {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 48%;
    background: url("../images/games/typing-divertido/typing-game-scene.png") center bottom / cover no-repeat;
    content: "";
    opacity: .4;
}

.typing-board__challenge,
.typing-board__helper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vw, 44px);
    text-align: center;
}

.typing-board__challenge {
    border-right: 1px solid rgba(36, 99, 211, .12);
}

.typing-board__instruction {
    margin: 0 0 12px;
    color: #35638f;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.typing-target {
    display: grid;
    width: min(100%, 560px);
    min-height: 200px;
    align-content: center;
    justify-items: stretch;
    padding: 18px 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 34px rgba(36, 99, 211, .13);
    color: #183b73;
    font-size: clamp(1.2rem, 2.2vw, 1.8rem);
    font-weight: 900;
    line-height: 1.35;
}

.typing-target__line {
    display: flex;
    min-height: 1.65em;
    align-items: center;
    justify-content: center;
    gap: .02em;
    white-space: pre;
}

.typing-target__line.is-future {
    opacity: .34;
}

.typing-target__line.is-active {
    opacity: 1;
}

.typing-char {
    display: inline-grid;
    min-width: .62em;
    min-height: 1.35em;
    place-items: center;
    border-bottom: 3px solid transparent;
    border-radius: 5px;
    color: #8097b6;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.typing-char.is-space {
    min-width: .82em;
}

.typing-char.is-correct {
    color: #159466;
}

.typing-char.is-current {
    border-bottom-color: #2463d3;
    background: #e4f0ff;
    color: #2463d3;
    transform: translateY(-2px);
}

.typing-char.is-error {
    border-bottom-color: #d52f5a;
    background: #ffe0e8;
    color: #c8234d;
    animation: typing-char-error .28s ease;
}

.typing-target__meaning {
    min-height: 22px;
    margin: 12px 0 0;
    color: #47719a;
    font-weight: 800;
}

.typing-input {
    width: min(100%, 300px);
    min-height: 44px;
    margin-top: 16px;
    padding: 8px 12px;
    border: 2px solid rgba(36, 99, 211, .22);
    border-radius: 12px;
    background: #fff;
    color: #183b73;
    font: inherit;
    font-size: 1.1rem;
    text-align: center;
}

.typing-input::placeholder {
    color: #7b9ab9;
    opacity: 1;
}

.typing-input:focus {
    border-color: #2463d3;
    box-shadow: 0 0 0 4px rgba(36, 99, 211, .14);
    outline: none;
}

.typing-feedback {
    min-height: 24px;
    margin: 10px 0 0;
    color: #47719a;
    font-weight: 900;
}

.typing-feedback.is-success {
    color: #168b5a;
}

.typing-feedback.is-error {
    color: #c8234d;
}

.typing-board.is-correct .typing-target {
    animation: typing-correct .32s ease;
}

.typing-board.is-wrong .typing-target {
    animation: typing-wrong .32s ease;
}

.typing-play.has-error-flash .typing-board {
    animation: typing-error-flash .42s ease;
}

.typing-board__helper {
    position: relative;
    background: rgba(255, 255, 255, .45);
}

.typing-circular-timer {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    display: grid;
    width: 94px;
    height: 94px;
    place-items: center;
    border: 1px solid rgba(36, 99, 211, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 24px rgba(36, 99, 211, .15);
    color: #2463d3;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 900;
    transition: color .2s ease, box-shadow .2s ease, background .2s ease;
}

.typing-circular-timer svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}

.typing-circular-timer__track,
.typing-circular-timer__value {
    fill: none;
    stroke-width: 6;
}

.typing-circular-timer__track {
    stroke: rgba(36, 99, 211, .12);
}

.typing-circular-timer__value {
    stroke: #2463d3;
    stroke-linecap: round;
    stroke-dasharray: 238.76;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke .2s ease;
}

.typing-circular-timer__label {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

.typing-circular-timer__label > span {
    font-size: 1.8rem;
    font-variant-numeric: tabular-nums;
}

.typing-circular-timer__label > small {
    margin-top: 4px;
    color: #6683a5;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.typing-circular-timer.is-warning {
    background: #fffaf0;
    color: #b87900;
    box-shadow: 0 10px 26px rgba(229, 168, 0, .2);
}

.typing-circular-timer.is-warning .typing-circular-timer__value {
    stroke: #e5a800;
}

.typing-circular-timer.is-critical {
    background: #fff1f4;
    color: #c8234d;
    box-shadow: 0 10px 28px rgba(200, 35, 77, .22);
    animation: typing-timer-pulse 1s ease-in-out infinite;
}

.typing-circular-timer.is-critical .typing-circular-timer__value {
    stroke: #d52f5a;
}

.typing-helper__image {
    display: flex;
    width: min(100%, 250px);
    height: 160px;
    align-items: center;
    justify-content: center;
}

.typing-helper__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.typing-helper__image--secondary {
    width: min(100%, 170px);
    height: 92px;
    margin-top: -8px;
    opacity: .92;
}

.typing-helper__label {
    min-height: 24px;
    margin: 4px 0 14px;
    color: #244d7b;
    font-weight: 900;
}

.typing-visual-keyboard {
    display: flex;
    max-width: 320px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.typing-visual-keyboard span {
    display: grid;
    min-width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid rgba(36, 99, 211, .16);
    border-radius: 6px;
    background: #fff;
    color: #31577d;
    font-size: .7rem;
    font-weight: 900;
}

.typing-visual-keyboard span.is-f-home,
.typing-visual-keyboard span.is-j-home {
    background: #ffe17a;
    color: #765700;
}

.typing-visual-keyboard__space {
    width: 150px;
}

.typing-play__actions {
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.typing-reward,
.typing-level-complete,
.typing-transition {
    position: relative;
    display: grid;
    min-height: 500px;
    place-items: center;
    align-content: center;
    gap: 10px;
    overflow: hidden;
    padding: 40px 28px;
    border-radius: 26px;
    color: #fff;
    text-align: center;
}

.typing-reward {
    background: radial-gradient(circle at 50% 30%, rgba(255, 214, 91, .3), transparent 28%), linear-gradient(145deg, #164e72, #163052 56%, #321c57);
    box-shadow: 0 20px 60px rgba(22, 50, 82, .28);
}

.typing-reward__star {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: #ffd75a;
    box-shadow: 0 0 0 12px rgba(255, 215, 90, .14), 0 12px 30px rgba(255, 171, 53, .32);
    color: #875900;
    font-size: 2.8rem;
    animation: typing-reward-pop .7s cubic-bezier(.2, 1.4, .4, 1) both;
}

.typing-reward__eyebrow {
    color: #aeeaff;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.typing-reward h2,
.typing-level-complete h2,
.typing-transition h2 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4rem);
    letter-spacing: -.045em;
}

.typing-reward p,
.typing-level-complete p,
.typing-transition p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
}

.typing-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 4px;
}

.typing-summary span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
}

.typing-summary i {
    color: #ffd75a;
}

.typing-bonus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 215, 90, .6);
    border-radius: 999px;
    background: rgba(255, 215, 90, .16);
    color: #ffe999;
    font-weight: 900;
    animation: typing-bonus-pop .55s cubic-bezier(.2, 1.4, .4, 1) both;
}

.typing-bonus i {
    color: #ff7897;
}

.typing-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.typing-confetti span {
    position: absolute;
    top: -18px;
    width: 8px;
    height: 18px;
    border-radius: 3px;
    background: #ffd75a;
    animation: typing-confetti-fall 2.8s linear infinite;
}

.typing-confetti span:nth-child(1) { left: 8%; background: #68e0ff; animation-delay: -.8s; }
.typing-confetti span:nth-child(2) { left: 21%; background: #ff8eac; animation-delay: -1.6s; }
.typing-confetti span:nth-child(3) { left: 34%; background: #b995ff; animation-delay: -.25s; }
.typing-confetti span:nth-child(4) { left: 48%; background: #ffe889; animation-delay: -2.1s; }
.typing-confetti span:nth-child(5) { left: 62%; background: #68e0ff; animation-delay: -1.2s; }
.typing-confetti span:nth-child(6) { left: 75%; background: #ff8eac; animation-delay: -.5s; }
.typing-confetti span:nth-child(7) { left: 87%; background: #b995ff; animation-delay: -1.9s; }
.typing-confetti span:nth-child(8) { left: 94%; background: #ffe889; animation-delay: -2.5s; }

.typing-level-complete {
    background: linear-gradient(145deg, #1d5b77, #152d58 60%, #25326b);
    box-shadow: 0 20px 60px rgba(18, 45, 88, .28);
}

.typing-level-complete > i,
.typing-transition > i {
    color: #ffd75a;
    font-size: 4rem;
}

.typing-transition {
    background: radial-gradient(circle at 50% 38%, rgba(101, 216, 255, .25), transparent 30%), linear-gradient(145deg, #182e61, #28194f);
}

.typing-transition > span {
    color: #aeeaff;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.typing-transition strong {
    display: grid;
    width: 90px;
    height: 90px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 3rem;
    animation: typing-countdown 1s ease-in-out infinite;
}

.typing-complete {
    display: grid;
    min-height: 500px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 36px;
    border-radius: 26px;
    background: linear-gradient(145deg, #193f7c, #071a3c);
    box-shadow: 0 20px 60px rgba(6, 20, 57, .25);
    color: #fff;
    text-align: center;
}

.typing-complete > i {
    color: #ffd75a;
    font-size: 4rem;
}

.typing-complete h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
}

.typing-complete p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .78);
}

.typing-complete__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.typing-complete__actions .button {
    font-size: .84rem;
}

.typing-failed {
    display: grid;
    min-height: 500px;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 36px;
    border-radius: 26px;
    background: linear-gradient(145deg, #6b2446, #2b173f);
    box-shadow: 0 20px 60px rgba(47, 10, 43, .25);
    color: #fff;
    text-align: center;
}

.typing-failed > i {
    color: #ff91aa;
    font-size: 4rem;
}

.typing-failed h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4rem);
}

.typing-failed p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .8);
}

.typing-failed__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.typing-failed__actions .button {
    font-size: .84rem;
}

@keyframes typing-correct {
    0% { transform: scale(1); }
    45% { background: #dcffe9; transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes typing-wrong {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes typing-char-error {
    0%, 100% { transform: translateX(0); }
    35% { transform: translateX(-3px); }
    70% { transform: translateX(3px); }
}

@keyframes typing-error-flash {
    0%, 100% { box-shadow: none; }
    35% { box-shadow: 0 0 0 5px rgba(218, 45, 91, .42), 0 0 30px rgba(218, 45, 91, .25); }
}

@keyframes typing-timer-pulse {
    50% { transform: scale(1.04); }
}

@keyframes typing-reward-pop {
    0% { opacity: 0; transform: scale(.45) rotate(-12deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes typing-bonus-pop {
    0% { opacity: 0; transform: scale(.7); }
    75% { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes typing-confetti-fall {
    0% { opacity: 0; transform: translateY(0) rotate(0); }
    10% { opacity: 1; }
    100% { opacity: 0; transform: translateY(560px) rotate(360deg); }
}

@keyframes typing-countdown {
    50% { box-shadow: 0 0 0 12px rgba(101, 216, 255, .1); transform: scale(1.08); }
}

@media (max-width: 900px) {
    .typing-board {
        grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
    }

    .typing-board__challenge,
    .typing-board__helper {
        padding-inline: 24px;
    }

    .typing-target {
        padding-inline: 16px;
    }
}

@media (max-width: 760px) {
    .typing-start {
        min-height: 0;
        padding: 16px;
    }

    .typing-start__visual img {
        object-position: 36% center;
    }

    .typing-start__content {
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 24px;
    }

    .typing-play {
        padding: 12px;
    }

    .typing-board {
        grid-template-columns: 1fr;
    }

    .typing-board__challenge {
        border-right: 0;
        border-bottom: 1px solid rgba(36, 99, 211, .12);
    }

    .typing-board__helper {
        min-height: 260px;
        padding-block: 22px;
    }
}

@media (max-width: 600px) {
    .typing-page {
        padding-block: 20px 36px;
    }

    .typing-page__topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .typing-start__content h1 {
        font-size: clamp(2.35rem, 13vw, 3.8rem);
    }

    .typing-start__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .typing-start__actions .button {
        justify-content: center;
    }

    .typing-play__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .typing-play__stats {
        justify-content: flex-start;
    }

    .typing-play__stats {
        gap: 7px;
    }

    .typing-reward,
    .typing-level-complete,
    .typing-transition {
        min-height: 460px;
        padding: 28px 18px;
    }

    .typing-summary {
        align-items: stretch;
        flex-direction: column;
        width: min(100%, 260px);
    }

    .typing-summary span {
        justify-content: center;
    }

    .typing-board__challenge {
        padding: 26px 16px 24px;
    }

    .typing-target {
        min-height: 220px;
        width: 100%;
        padding-inline: 10px;
        font-size: clamp(1.05rem, 4.2vw, 1.45rem);
    }

    .typing-play__actions,
    .typing-complete__actions,
    .typing-failed__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .typing-play__actions .button,
    .typing-complete__actions .button,
    .typing-failed__actions .button {
        justify-content: center;
    }
}
