/* Source: /css/fonts-v17.10.265.css */
/* Self-hosted Google Fonts, SIL OFL. See /fonts/v17.10.265/. */
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/fonts/v17.10.265/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/fonts/v17.10.265/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa0ZL7SUc.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/fonts/v17.10.265/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2ZL7SUc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/fonts/v17.10.265/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1pL7SUc.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/fonts/v17.10.265/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2pL7SUc.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/fonts/v17.10.265/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(/fonts/v17.10.265/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: optional;
  src: url(/fonts/v17.10.265/tDbV2o-flEEny0FZhsfKu5WU4xD2OwG_TA.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: optional;
  src: url(/fonts/v17.10.265/tDbV2o-flEEny0FZhsfKu5WU4xD_OwG_TA.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: optional;
  src: url(/fonts/v17.10.265/tDbV2o-flEEny0FZhsfKu5WU4xD4OwG_TA.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: optional;
  src: url(/fonts/v17.10.265/tDbV2o-flEEny0FZhsfKu5WU4xD0OwG_TA.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: optional;
  src: url(/fonts/v17.10.265/tDbV2o-flEEny0FZhsfKu5WU4xD1OwG_TA.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: optional;
  src: url(/fonts/v17.10.265/tDbV2o-flEEny0FZhsfKu5WU4xD7OwE.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/v17.10.265/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/v17.10.265/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(/fonts/v17.10.265/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(/fonts/v17.10.265/pxiByp8kv8JHgFVrLCz7Z11lFc-K.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(/fonts/v17.10.265/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(/fonts/v17.10.265/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url(/fonts/v17.10.265/pxiByp8kv8JHgFVrLDD4Z11lFc-K.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url(/fonts/v17.10.265/pxiByp8kv8JHgFVrLDD4Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: optional;
  src: url(/fonts/v17.10.265/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source: /css/reset.css */
/* ==========================================================
   TypingTutor.Online
   reset.css
   Modern CSS Reset
   Version: 1.0
========================================================== */

/* Box Sizing */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove Default Margin */

* {
    margin: 0;
}

/* Improve Text Rendering */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

/* Base Body */

body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Images */

img,
picture,
svg,
canvas,
video {
    display: block;
    max-width: 100%;
}

/* Forms */

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Buttons */

button {
    cursor: pointer;
    background: none;
    border: none;
}

/* Links */

a {
    color: inherit;
    text-decoration: none;
}

/* Lists */

ul,
ol {
    list-style: none;
}

/* Tables */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Text Overflow */

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Textarea */

textarea {
    resize: vertical;
}

/* Hidden */

[hidden] {
    display: none !important;
}

/* Disabled */

button:disabled,
input:disabled {
    cursor: not-allowed;
}

/* Focus */

:focus {
    outline: none;
}

:focus-visible {

    outline: 3px solid #2563EB;
    outline-offset: 3px;

}

/* Selection */

::selection {

    background: rgba(37,99,235,.18);

}

/* Scrollbar (Chromium) */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {

    background: transparent;

}

::-webkit-scrollbar-thumb {

    background: #CBD5E1;
    border-radius: 999px;

}

::-webkit-scrollbar-thumb:hover {

    background: #94A3B8;

}
/* Source: /css/variables.css */
/* ==========================================================
   TypingTutor.Online
   Theme Variables
   File: css/variables.css
   Version: 4.0
========================================================== */

:root {
    color-scheme: light;

    /* Brand */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Surfaces */
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-alt: #f1f5f9;
    --surface-soft: #f8fafc;
    --surface-elevated: #ffffff;

    /* Borders and text */
    --border: #cbd5e1;
    --border-soft: #e5eaf1;
    --text: #0f172a;
    --text-light: #475569;
    --text-muted: #94a3b8;

    /* Keyboard */
    --key-bg: #ffffff;
    --key-border: #cbd5e1;
    --key-text: #111827;
    --key-current: #14b8a6;
    --key-next: #8b5cf6;
    --key-pressed: #2563eb;
    --key-correct: #22c55e;
    --key-wrong: #ef4444;
    --key-disabled: #cbd5e1;

    /* Fingers */
    --finger-thumb: #60a5fa;
    --finger-left-index: #4ade80;
    --finger-left-middle: #facc15;
    --finger-left-ring: #fb923c;
    --finger-left-little: #ec4899;
    --finger-right-index: #4ade80;
    --finger-right-middle: #facc15;
    --finger-right-ring: #fb923c;
    --finger-right-little: #ec4899;

    /* Typography */
    --font-heading: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --font-xs: .75rem;
    --font-sm: .875rem;
    --font-md: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.5rem;
    --font-2xl: 2rem;
    --font-3xl: 3rem;

    --weight-light: 300;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-round: 999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, .08);
    --shadow-md: 0 8px 25px rgba(15, 23, 42, .08);
    --shadow-lg: 0 12px 35px rgba(15, 23, 42, .12);
    --shadow-xl: 0 18px 50px rgba(15, 23, 42, .18);
    --shadow-key: 0 3px 8px rgba(15, 23, 42, .10);
    --shadow-key-pressed: inset 0 3px 8px rgba(15, 23, 42, .22);

    /* Transitions */
    --transition-fast: 120ms;
    --transition-normal: 180ms;
    --transition-medium: 250ms;
    --transition-slow: 400ms;
    --ease: cubic-bezier(.2, .8, .2, 1);

    /* Component sizes */
    --hand-scale: 1;
    --finger-press-distance: 6px;
    --finger-glow-size: 18px;
    --finger-animation-speed: 180ms;
    --key-width: 60px;
    --key-height: 60px;
    --key-gap: 6px;
    --header-height: 72px;
    --lesson-height: 120px;
    --hands-height: 260px;
    --keyboard-height: 320px;
    --footer-height: 60px;

    /* Layers */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* Breakpoints (documentation values) */
    --mobile: 576px;
    --tablet: 768px;
    --laptop: 1024px;
    --desktop: 1280px;
    --wide: 1600px;
}

/* Explicit dark mode */
html[data-theme="dark"] {
    color-scheme: dark;

    --primary: #4f8cff;
    --primary-hover: #75a5ff;
    --primary-light: #172a4d;

    --background: #0b1120;
    --surface: #111827;
    --surface-alt: #182235;
    --surface-soft: #151f31;
    --surface-elevated: #1a2538;

    --border: #334155;
    --border-soft: #263449;

    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;

    --key-bg: #172033;
    --key-border: #3a4960;
    --key-text: #f8fafc;
    --key-disabled: #475569;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .24);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, .28);
    --shadow-lg: 0 16px 38px rgba(0, 0, 0, .34);
    --shadow-xl: 0 22px 55px rgba(0, 0, 0, .42);
}

/* System mode follows the operating system. */
@media (prefers-color-scheme: dark) {
    html[data-theme="system"] {
        color-scheme: dark;

        --primary: #4f8cff;
        --primary-hover: #75a5ff;
        --primary-light: #172a4d;

        --background: #0b1120;
        --surface: #111827;
        --surface-alt: #182235;
        --surface-soft: #151f31;
        --surface-elevated: #1a2538;

        --border: #334155;
        --border-soft: #263449;

        --text: #f1f5f9;
        --text-light: #cbd5e1;
        --text-muted: #94a3b8;

        --key-bg: #172033;
        --key-border: #3a4960;
        --key-text: #f8fafc;
        --key-disabled: #475569;

        --shadow-xs: 0 1px 2px rgba(0, 0, 0, .18);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, .24);
        --shadow-md: 0 10px 28px rgba(0, 0, 0, .28);
        --shadow-lg: 0 16px 38px rgba(0, 0, 0, .34);
        --shadow-xl: 0 22px 55px rgba(0, 0, 0, .42);
    }
}

/* Source: /css/typography.css */
/* ==========================================================
   TypingTutor.Online
   typography.css
   Version: 1.0
========================================================== */


/* ==========================================================
   BODY
========================================================== */

body{

    font-family:var(--font-body);

    font-size:var(--font-md);

    font-weight:var(--weight-normal);

    color:var(--text);

    background:var(--background);

    line-height:1.6;

}



/* ==========================================================
   HEADINGS
========================================================== */

h1,h2,h3,h4,h5,h6{

    font-family:var(--font-heading);

    font-weight:var(--weight-bold);

    line-height:1.2;

    color:var(--text);

}

h1{

    font-size:2rem;

}

h2{

    font-size:1.75rem;

}

h3{

    font-size:1.5rem;

}

h4{

    font-size:1.25rem;

}

h5{

    font-size:1.125rem;

}

h6{

    font-size:1rem;

}



/* ==========================================================
   HEADER
========================================================== */

.logo h1{

    font-size:1.8rem;

    letter-spacing:-0.5px;

}

.tagline{

    display:block;

    margin-top:4px;

    color:var(--text-light);

    font-size:.9rem;

}



/* ==========================================================
   LESSON
========================================================== */

#lessonTitle{

    font-size:1.15rem;

    font-weight:600;

    color:var(--primary);

    margin-bottom:10px;

}

#lessonText{

    font-family:var(--font-mono);

    font-size:2.25rem;

    font-weight:600;

    line-height:1.8;

    text-align:center;

    letter-spacing:1px;

}



/* ==========================================================
   STATISTICS
========================================================== */

.stat{

    text-align:center;

}

.stat .label{

    display:block;

    font-size:.85rem;

    text-transform:uppercase;

    letter-spacing:1px;

    color:var(--text-light);

}

.stat span:last-child{

    display:block;

    margin-top:6px;

    font-size:2rem;

    font-weight:700;

}



/* ==========================================================
   BUTTON
========================================================== */

button{

    font-family:var(--font-body);

    font-size:.95rem;

    font-weight:600;

}



/* ==========================================================
   CODE
========================================================== */

code,
pre{

    font-family:var(--font-mono);

}



/* ==========================================================
   LINKS
========================================================== */

a{

    transition:color var(--transition-fast);

}

/* Keep the generic link hover intentionally low-specificity.
   Component links styled as buttons (games, tests, lessons, kids, etc.)
   must retain their own foreground color while hovered. */
:where(a:hover){

    color:var(--primary);

}



/* ==========================================================
   FOOTER
========================================================== */

#footer{

    font-size:.9rem;

    color:var(--text-light);

}



/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:1024px){

    #lessonText{

        font-size:2rem;

    }

}


@media (max-width:768px){

    .logo h1{

        font-size:1.5rem;

    }

    #lessonText{

        font-size:1.6rem;

    }

    .stat span:last-child{

        font-size:1.5rem;

    }

}


@media (max-width:576px){

    #lessonText{

        font-size:1.3rem;

        line-height:1.7;

    }

}
/* Source: /css/app.css */
/* ==========================================================
   TypingTutor.Online
   Responsive Header & Footer v5.5
   File: css/app.css
========================================================== */

body {
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;

    color: inherit;
    text-decoration: none;
}

.logo-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.logo-text strong {
    overflow: hidden;

    color: var(--text);
    font-family: var(--font-heading);
    font-size: clamp(20px, 1.7vw, 30px);
    font-weight: 800;
    line-height: 1.05;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.logo-text small {
    overflow: hidden;

    color: var(--text-light);
    font-size: clamp(10px, .82vw, 13px);
    line-height: 1.2;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.site-logo-picture {
    display: block;
    min-width: 0;
}

.site-logo-image {
    display: block;

    width: min(280px, 100%);
    height: auto;
    max-height: 58px;

    object-fit: contain;
    object-position: left center;
}

/* Theme button */
#themeButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-width: 108px;
    min-height: 44px;
    padding: 9px 14px;

    color: #ffffff;
    background: var(--primary);
    border-radius: var(--radius-md);

    white-space: nowrap;

    transition:
        background var(--transition-fast),
        transform var(--transition-fast);
}

#themeButton:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

#themeButton:active {
    transform: translateY(1px);
}

/* Footer */
.footer-brand {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;

    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--primary);
    outline: none;
}

/* Theme menu retained */
.theme-button-arrow {
    font-size: 10px;
    opacity: .8;
}

.theme-menu {
    position: fixed;
    z-index: 10050;

    width: 250px;
    padding: 8px;

    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-xl);
}

.theme-menu.hidden {
    display: none;
}

.theme-option {
    display: grid;
    grid-template-columns: 36px 1fr 22px;
    gap: 10px;
    align-items: center;

    width: 100%;
    padding: 10px;

    color: var(--text);
    text-align: left;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;

    cursor: pointer;
}

.theme-option:hover,
.theme-option:focus-visible {
    background: var(--surface-alt);
    border-color: var(--border);
    outline: none;
}

.theme-option-icon {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    background: var(--surface-alt);
    border-radius: 9px;

    font-size: 18px;
}

.theme-option-copy {
    display: grid;
    gap: 2px;
}

.theme-option-copy strong {
    color: var(--text);
    font-size: 13px;
}

.theme-option-copy small {
    color: var(--text-light);
    font-size: 10px;
}

.theme-option-check {
    color: var(--primary);
    font-weight: 900;
    opacity: 0;
}

.theme-option-selected {
    background: var(--primary-light);
    border-color: var(--border);
}

.theme-option-selected .theme-option-check {
    opacity: 1;
}

.hidden {
    display: none !important;
}

@media (max-width: 1180px) {

    .logo-text strong {
        font-size: 22px;
    }

    .logo-text small {
        font-size: 10px;
    }

}

@media (max-width: 900px) {

    .site-logo-image {
        width: min(220px, 100%);
        max-height: 46px;
    }

    .footer-links {
        justify-content: flex-start;
    }

}

@media (max-width: 560px) {

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text small {
        display: none;
    }

    .site-logo-image {
        width: min(170px, 100%);
        max-height: 36px;
    }

    #themeButton {
        min-width: 90px;
        min-height: 40px;
        padding-inline: 11px;
    }

    .footer-links {
        gap: 8px 14px;
    }

}

/* Source: /css/dark-mode-polish.css */
/* ==========================================================
   TypingTutor.Online
   Dark Mode Polish v11.1
========================================================== */

/* Dark logo switching */
.site-logo-picture {
    position: relative;
    display: inline-grid;
    align-items: center;
}

.site-logo-picture > * {
    grid-area: 1 / 1;
}

.site-logo-dark {
    display: none;
}

html[data-theme="dark"] .site-logo-light {
    display: none;
}

html[data-theme="dark"] .site-logo-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .site-logo-light {
        display: none;
    }

    html[data-theme="system"] .site-logo-dark {
        display: block;
    }
}

/* Main dark surfaces */
html[data-theme="dark"] {
    --background: #090f1d;
    --surface: #111a2b;
    --surface-alt: #172236;
    --surface-soft: #0e1727;
    --surface-elevated: #1a273c;
    --border: #3b4b63;
    --border-soft: #26364e;
    --text: #f8fafc;
    --text-light: #cbd5e1;
    --text-muted: #8fa0b8;
    --key-bg: #172235;
    --key-border: #40506a;
    --key-text: #f8fafc;
}

/* Lesson text must belong to dark mode too */
html[data-theme="dark"] #lessonText,
html[data-theme="dark"] .typing-text-viewport {
    color: var(--text);
    background: #111827 !important;
    border-color: var(--border);
}

html[data-theme="dark"] #lessonText .future-character {
    color: #c4cede;
}

html[data-theme="dark"] #lessonText .typed-character {
    color: #7f8da3;
}

html[data-theme="dark"] #lessonText .current-character {
    color: #fff;
}

/* Remove washed-out white cards */
html[data-theme="dark"] .statistics-panel .stat,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .keyboard-guidance-card,
html[data-theme="dark"] .hands-guidance-card,
html[data-theme="dark"] #keyboardContainer,
html[data-theme="dark"] #handsContainer {
    color: var(--text);
    background: var(--surface) !important;
    border-color: var(--border);
}

/* Keyboard */
html[data-theme="dark"] .key {
    color: var(--key-text);
    background:
        linear-gradient(
            180deg,
            #1c2940,
            #151f32
        ) !important;
    border-color: var(--key-border);
    box-shadow:
        0 2px 0 #08101d,
        0 5px 10px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .key-secondary {
    color: #9fb0c8;
}

html[data-theme="dark"] .key.key-active,
html[data-theme="dark"] .key.active,
html[data-theme="dark"] .key.pressed {
    color: #fff;
    background: var(--primary) !important;
    border-color: #80a9ff;
}

/* Hands panel: remove bright gray area */
html[data-theme="dark"] #handsContainer,
html[data-theme="dark"] .hands-guidance-card {
    background:
        radial-gradient(
            circle at center,
            #24334a 0,
            #172236 54%,
            #111a2b 100%
        ) !important;
}

html[data-theme="dark"] .hands-guidance-card p,
html[data-theme="dark"] .finger-position-label,
html[data-theme="dark"] .home-row-guide {
    color: var(--text-light);
}

/* Improve weak header text visible in screenshot */
html[data-theme="dark"] .stage-label,
html[data-theme="dark"] .stage-name,
html[data-theme="dark"] .lesson-stage,
html[data-theme="dark"] .practice-stage {
    color: #e6edf7 !important;
}

html[data-theme="dark"] .lesson-stage strong,
html[data-theme="dark"] .practice-stage strong {
    color: #fff !important;
}

/* Footer and resource cards */
html[data-theme="dark"] .resource-card,
html[data-theme="dark"] .more-practice-dropdown,
html[data-theme="dark"] .course-progress-card,
html[data-theme="dark"] .achievement-card {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border-soft);
}

html[data-theme="dark"] .resource-card small,
html[data-theme="dark"] .resource-section-heading p {
    color: var(--text-light);
}

/* System-dark mirrors explicit dark mode */
@media (prefers-color-scheme: dark) {
    html[data-theme="system"] #lessonText,
    html[data-theme="system"] .typing-text-viewport {
        color: var(--text);
        background: #111827 !important;
    }

    html[data-theme="system"] .statistics-panel .stat,
    html[data-theme="system"] .stat,
    html[data-theme="system"] #keyboardContainer,
    html[data-theme="system"] #handsContainer {
        background: var(--surface) !important;
        border-color: var(--border);
    }

    html[data-theme="system"] .key {
        color: var(--key-text);
        background: linear-gradient(180deg, #1c2940, #151f32) !important;
        border-color: var(--key-border);
    }
}


/* ==========================================================
   DARK KEYBOARD LABEL VISIBILITY v11.2
========================================================== */

/*
 * The keyboard key labels became too dark because older key text
 * rules were overriding the new dark-mode palette.
 */
html[data-theme="dark"] .keyboard,
html[data-theme="dark"] .keyboard-container,
html[data-theme="dark"] #keyboardContainer {
    color: #f8fafc !important;
}

html[data-theme="dark"] .key,
html[data-theme="dark"] .keyboard-key,
html[data-theme="dark"] [data-key] {
    color: #f8fafc !important;
    background:
        linear-gradient(
            180deg,
            #24334b 0%,
            #1a263a 100%
        ) !important;
    border-color: #52627a !important;
    text-shadow: none !important;
}

html[data-theme="dark"] .key *,
html[data-theme="dark"] .keyboard-key *,
html[data-theme="dark"] [data-key] * {
    color: inherit !important;
}

html[data-theme="dark"] .key-secondary,
html[data-theme="dark"] .key .secondary,
html[data-theme="dark"] .key .symbol,
html[data-theme="dark"] .keyboard-key .secondary,
html[data-theme="dark"] .keyboard-key .symbol {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .key.key-active,
html[data-theme="dark"] .key.active,
html[data-theme="dark"] .key.pressed,
html[data-theme="dark"] .keyboard-key.key-active,
html[data-theme="dark"] .keyboard-key.active,
html[data-theme="dark"] [data-key].key-active {
    color: #ffffff !important;
    background: #2f6df6 !important;
    border-color: #8fb3ff !important;
    box-shadow:
        0 0 0 3px rgba(47, 109, 246, .22),
        0 2px 0 #153a95 !important;
}

html[data-theme="dark"] .key.key-active *,
html[data-theme="dark"] .key.active *,
html[data-theme="dark"] .key.pressed *,
html[data-theme="dark"] .keyboard-key.key-active *,
html[data-theme="dark"] .keyboard-key.active *,
html[data-theme="dark"] [data-key].key-active * {
    color: #ffffff !important;
}

/* Home-key markers and target-row labels */
html[data-theme="dark"] .home-key-marker,
html[data-theme="dark"] .target-row-guide,
html[data-theme="dark"] .target-row-guide *,
html[data-theme="dark"] #targetRowGuide,
html[data-theme="dark"] #targetRowGuide * {
    color: #dbe7f8 !important;
}

html[data-theme="dark"] .target-row-key {
    color: #dbe7f8 !important;
    background: #1d2a3f !important;
    border-color: #42536d !important;
}

html[data-theme="dark"] .target-row-key.active,
html[data-theme="dark"] .target-row-key.current {
    color: #ffffff !important;
    background: #2f6df6 !important;
    border-color: #8fb3ff !important;
}

/* System-dark support */
@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .key,
    html[data-theme="system"] .keyboard-key,
    html[data-theme="system"] [data-key] {
        color: #f8fafc !important;
        background:
            linear-gradient(
                180deg,
                #24334b 0%,
                #1a263a 100%
            ) !important;
        border-color: #52627a !important;
    }

    html[data-theme="system"] .key *,
    html[data-theme="system"] .keyboard-key *,
    html[data-theme="system"] [data-key] * {
        color: inherit !important;
    }
}


/* ==========================================================
   DARK LESSON TEXT CONTRAST + PAUSE MESSAGE READABILITY v17.2.8
========================================================== */

html[data-theme="dark"] #lessonText .future-character {
    color: #e2e8f0;
}

html[data-theme="dark"] #lessonText .typed-character {
    color: #66758d;
}

html[data-theme="dark"] #lessonText .wrong-character {
    color: #ff8aa3;
    background: rgba(244, 63, 94, .18);
    box-shadow: inset 0 -3px 0 #fb7185;
}

html[data-theme="dark"] #lessonText .current-character {
    color: #ffffff;
    background: #2f7fff !important;
    box-shadow: 0 0 0 .09em rgba(96, 165, 250, .42) !important, 0 0 22px rgba(47, 127, 255, .34);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] #lessonText .future-character {
        color: #e2e8f0;
    }

    html[data-theme="system"] #lessonText .typed-character {
        color: #66758d;
    }

    html[data-theme="system"] #lessonText .wrong-character {
        color: #ff8aa3;
        background: rgba(244, 63, 94, .18);
        box-shadow: inset 0 -3px 0 #fb7185;
    }

    html[data-theme="system"] #lessonText .current-character {
        color: #ffffff;
        background: #2f7fff !important;
        box-shadow: 0 0 0 .09em rgba(96, 165, 250, .42) !important, 0 0 22px rgba(47, 127, 255, .34);
    }
}

/* Source: /css/scalable-navigation-v17.4.4.css */
/* ==========================================================
   TypingTutor.Online
   Scalable Site Navigation v17.4.4
========================================================== */

/* ---------- Main tutor header ---------- */
.mode-navigation {
    overflow: visible;
}

.mode-more,
.test-nav-more {
    position: relative;
    flex: 0 0 auto;
}

.mode-more > summary,
.test-nav-more > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.mode-more > summary::-webkit-details-marker,
.test-nav-more > summary::-webkit-details-marker {
    display: none;
}

.mode-more-chevron {
    margin-left: 1px;
    font-size: .8em;
    transition: transform .18s ease;
}

.mode-more[open] .mode-more-chevron {
    transform: rotate(180deg);
}

.mode-more-menu,
.test-nav-more-menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 10px);
    right: 0;
    min-width: 205px;
    padding: 8px;
    border: 1px solid var(--border, #dbe4f0);
    border-radius: 14px;
    background: var(--surface, #ffffff);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.mode-more-menu .mode-button {
    width: 100%;
    justify-content: flex-start;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 9px;
}

.mode-more-active > .mode-more-button,
.mode-more[open] > .mode-more-button {
    color: var(--primary, #1769ff);
    background: var(--surface-alt, #eef4ff);
}

.mode-more-menu .mode-button-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}

/* ---------- Standalone test headers ---------- */
.test-nav-more > summary {
    min-height: 43px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 11px;
    color: var(--text, #0f172a);
    font-weight: 750;
    white-space: nowrap;
}

.test-nav-more > summary:hover,
.test-nav-more[open] > summary {
    color: #ffffff;
    background: var(--primary, #2563eb);
}

.test-nav-more-menu {
    display: grid;
    gap: 4px;
}

.test-nav-more-menu a {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 9px;
    color: var(--text, #0f172a);
    background: transparent;
    text-decoration: none;
    font-weight: 750;
    white-space: nowrap;
}

.test-nav-more-menu a:hover {
    color: #ffffff;
    background: var(--primary, #2563eb);
}

html[data-theme="dark"] .mode-more-menu,
html[data-theme="dark"] .test-nav-more-menu {
    background: #101b2e;
    border-color: #40516a;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .mode-more-menu,
    html[data-theme="system"] .test-nav-more-menu {
        background: #101b2e;
        border-color: #40516a;
        box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
    }
}

/* The menu can open outside the horizontal navigation row on desktop. */
@media (min-width: 901px) {
    #modeSwitcher,
    .mode-switcher-inner,
    .mode-navigation,
    .test-header-inner,
    .test-nav {
        overflow: visible;
    }
}

/* Mobile keeps the compact horizontal row; dropdown opens below More. */
@media (max-width: 900px) {
    .mode-navigation,
    .test-nav {
        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
    }

    .mode-navigation::-webkit-scrollbar,
    .test-nav::-webkit-scrollbar {
        display: none;
    }

    .mode-more-menu,
    .test-nav-more-menu {
        position: fixed;
        top: auto;
        right: 12px;
        left: 12px;
        margin-top: 8px;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .mode-more > summary.mode-button {
        min-width: 68px;
        min-height: 42px;
        padding: 7px 8px;
        flex-direction: column;
        gap: 3px;
        font-size: 9px;
    }

    .mode-more-chevron {
        display: none;
    }
}

/* Source: /css/unified-site-header-v17.4.6.css */
/* ==========================================================
   TypingTutor.Online
   Unified Main + Tests Header v17.4.6
========================================================== */

/* Both the tutor and standalone test pages now use the same shell. */
#header,
.test-site-header {
    box-sizing: border-box;
    position: relative;
    z-index: 100;
    width: 100%;
    min-height: 78px;
    padding-top: max(9px, env(safe-area-inset-top));
    padding-bottom: 9px;
    background: var(--surface, #ffffff);
    border-bottom: 1px solid var(--border, #dbe4f0);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, .08));
}

#header .header-inner,
.test-header-inner {
    box-sizing: border-box;
    width: min(1480px, calc(100% - 34px));
    min-height: 58px;
    margin-inline: auto;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(235px, 300px) minmax(0, 1fr) auto;
    gap: clamp(12px, 2vw, 28px);
    align-items: center;
}

/* Identical logo footprint on every page. */
#header .logo,
.test-logo {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-self: start;
    color: inherit;
    text-decoration: none;
}

#header .site-logo-picture,
.test-logo-stack {
    position: relative;
    display: block;
    width: min(280px, 100%);
    min-width: 0;
}

#header .site-logo-image,
.test-logo img {
    display: block;
    width: min(280px, 100%);
    height: auto;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

/* Identical navigation positioning. */
#header .primary-mode-navigation,
.test-nav {
    min-width: 0;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1.1vw, 18px);
    overflow: visible;
}

#header #modeSwitcher,
#header .mode-switcher-inner,
#header .mode-navigation {
    min-width: 0;
    width: auto;
}

#header .mode-navigation {
    gap: clamp(4px, 1.1vw, 18px);
}

/* Shared button geometry and typography. */
#header .lesson-home-nav-button,
#header .mode-navigation > .mode-button,
#header .mode-more > summary.mode-button,
.test-nav > a,
.test-nav-more > summary {
    box-sizing: border-box;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 10px clamp(12px, 1.15vw, 17px);
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text, #172235);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-size: clamp(12px, .92vw, 15px);
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color .16s ease,
        background-color .16s ease,
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

#header .mode-button-icon,
#header .lesson-home-nav-icon,
.test-nav .mode-button-icon,
.test-nav-more-menu .mode-button-icon {
    display: inline-flex;
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
    transform: translateY(-1px);
}

#header .mode-button-text,
#header .lesson-home-nav-label,
.test-nav .mode-button-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#header #themeButton > span:first-child,
.test-header-inner > #themeButton > span:first-child {
    display: inline-flex;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 20px;
}

#header .lesson-home-nav-button:hover,
#header .mode-navigation > .mode-button:hover,
#header .mode-more > summary.mode-button:hover,
.test-nav > a:hover,
.test-nav-more > summary:hover,
.test-nav-more[open] > summary {
    color: var(--primary, #1769ff);
    background: var(--surface-alt, #f2f7ff);
    border-color: #dbe8fa;
}

/* Active button has the same appearance regardless of the current page. */
#header .lesson-home-nav-button-active,
#header .mode-navigation > .mode-button-active,
.test-nav > a[aria-current="page"] {
    color: #ffffff !important;
    background: linear-gradient(135deg, #246df0, #285ee5) !important;
    border-color: rgba(31, 92, 222, .55) !important;
    box-shadow: 0 10px 23px rgba(47, 103, 246, .24) !important;
}

#header .lesson-home-nav-button-active:hover,
#header .mode-navigation > .mode-button-active:hover,
.test-nav > a[aria-current="page"]:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #2165df, #2457d5) !important;
    border-color: rgba(31, 92, 222, .64) !important;
}

/* Theme control occupies the same final grid column. */
#header .header-tools,
.test-header-inner > #themeButton {
    justify-self: end;
}

#header #themeButton,
.test-header-inner > #themeButton {
    box-sizing: border-box;
    min-width: 108px;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ffffff;
    background: var(--primary, #1769ff);
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-size: clamp(12px, .92vw, 15px);
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

#header #themeButton:hover,
.test-header-inner > #themeButton:hover {
    color: #ffffff;
    background: var(--primary-hover, #0f5ae0);
}

/* Dropdown alignment is identical in both templates. */
#header .mode-more,
.test-nav-more {
    position: relative;
    flex: 0 0 auto;
}

#header .mode-more-menu,
.test-nav-more-menu {
    top: calc(100% + 10px);
    right: 0;
}

html[data-theme="dark"] #header,
html[data-theme="dark"] .test-site-header {
    background: #101b2e;
    border-color: #40516a;
}

html[data-theme="dark"] #header .lesson-home-nav-button,
html[data-theme="dark"] #header .mode-navigation > .mode-button,
html[data-theme="dark"] #header .mode-more > summary.mode-button,
html[data-theme="dark"] .test-nav > a,
html[data-theme="dark"] .test-nav-more > summary {
    color: #dce7f7;
}

html[data-theme="dark"] #header .lesson-home-nav-button:hover,
html[data-theme="dark"] #header .mode-navigation > .mode-button:hover,
html[data-theme="dark"] #header .mode-more > summary.mode-button:hover,
html[data-theme="dark"] .test-nav > a:hover,
html[data-theme="dark"] .test-nav-more > summary:hover,
html[data-theme="dark"] .test-nav-more[open] > summary {
    color: #ffffff;
    background: #17263c;
    border-color: #304662;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] #header,
    html[data-theme="system"] .test-site-header {
        background: #101b2e;
        border-color: #40516a;
    }

    html[data-theme="system"] #header .lesson-home-nav-button,
    html[data-theme="system"] #header .mode-navigation > .mode-button,
    html[data-theme="system"] #header .mode-more > summary.mode-button,
    html[data-theme="system"] .test-nav > a,
    html[data-theme="system"] .test-nav-more > summary {
        color: #dce7f7;
    }
}

@media (max-width: 1180px) {
    #header .header-inner,
    .test-header-inner {
        grid-template-columns: minmax(190px, 225px) minmax(0, 1fr) auto;
        gap: 10px;
    }

    #header .site-logo-picture,
    #header .site-logo-image,
    .test-logo-stack,
    .test-logo img {
        width: min(225px, 100%);
    }

    #header .primary-mode-navigation,
    #header .mode-navigation,
    .test-nav {
        gap: 3px;
    }

    #header .lesson-home-nav-button,
    #header .mode-navigation > .mode-button,
    #header .mode-more > summary.mode-button,
    .test-nav > a,
    .test-nav-more > summary {
        min-height: 42px;
        padding-inline: 10px;
        font-size: 12px;
    }

    #header #themeButton,
    .test-header-inner > #themeButton {
        min-height: 42px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    #header,
    .test-site-header {
        min-height: 0;
        padding-top: max(7px, env(safe-area-inset-top));
        padding-bottom: 7px;
    }

    #header .header-inner,
    .test-header-inner {
        width: min(100% - 22px, 1480px);
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
    }

    #header .primary-mode-navigation,
    .test-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        padding: 2px 0 3px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    #header .primary-mode-navigation::-webkit-scrollbar,
    .test-nav::-webkit-scrollbar {
        display: none;
    }

    #header .header-tools,
    .test-header-inner > #themeButton {
        grid-column: 2;
        grid-row: 1;
    }

    .test-logo {
        grid-column: 1;
        grid-row: 1;
    }
}

@media (max-width: 560px) {
    #header .header-inner,
    .test-header-inner {
        width: min(100% - 14px, 1480px);
    }

    #header .site-logo-picture,
    #header .site-logo-image,
    .test-logo-stack,
    .test-logo img {
        width: min(190px, 100%);
    }

    #header .lesson-home-nav-button,
    #header .mode-navigation > .mode-button,
    #header .mode-more > summary.mode-button,
    .test-nav > a,
    .test-nav-more > summary {
        min-width: 68px;
        min-height: 42px;
        padding: 7px 8px;
        flex-direction: column;
        gap: 3px;
        font-size: 9px;
    }

    #header .mode-more-chevron,
    .test-nav-more > summary .mode-more-chevron {
        display: none;
    }

    #header #themeButton,
    .test-header-inner > #themeButton {
        min-width: 88px;
        min-height: 42px;
        padding-inline: 10px;
        font-size: 11px;
    }

    #header .mode-button-icon,
    #header .lesson-home-nav-icon,
    .test-nav .mode-button-icon,
    .test-nav-more-menu .mode-button-icon {
        flex-basis: 19px;
        width: 19px;
        min-width: 19px;
        height: 19px;
        font-size: 17px;
        line-height: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #header .lesson-home-nav-button,
    #header .mode-navigation > .mode-button,
    #header .mode-more > summary.mode-button,
    .test-nav > a,
    .test-nav-more > summary {
        transition: none;
    }
}


/* ==========================================================
   SHARED SECTION FOOTER v17.5.2
========================================================== */
.test-footer,
.certificate-footer,
.blog-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    width: min(1480px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 24px 0 30px;
    color: var(--muted, #64748b);
    font-size: 13px;
}

.shared-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 17px;
}

.shared-footer-links a {
    color: inherit;
    text-decoration: none;
}

.shared-footer-links a:hover,
.shared-footer-links a:focus-visible {
    color: var(--primary, #1769ff);
}

@media (max-width: 760px) {
    .test-footer,
    .certificate-footer,
    .blog-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Source: /css/universal-footer-v17.10.21.css */
/* TypingTutor.Online global footer v17.10.21 */
.universal-site-footer{display:block;box-sizing:border-box;width:100%;margin-top:48px;padding:36px clamp(18px,4vw,56px) 24px;color:var(--text-light,#64748b);background:linear-gradient(180deg,#fbfdff 0%,#f6f9fd 100%);border-top:1px solid var(--border,#d9e2ef);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.universal-footer-inner{box-sizing:border-box;width:min(1500px,100%);margin:0 auto}
.universal-footer-main{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,2.15fr);gap:clamp(32px,5vw,72px);align-items:start}
.universal-footer-brand{display:grid;gap:9px;max-width:340px;text-align:left}
.universal-footer-home{width:max-content;color:var(--text,#0f172a)!important;font-size:18px;font-weight:850;line-height:1.25;text-decoration:none;letter-spacing:-.01em}
.universal-footer-home:hover,.universal-footer-home:focus-visible{color:var(--primary,#1769ff)!important}
.universal-footer-brand span{color:var(--text-light,#64748b);font-size:13px;font-weight:550;line-height:1.6}
.universal-footer-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px clamp(22px,4vw,54px)}
.universal-footer-group{min-width:0}
.universal-footer-group>strong{display:block;margin:0 0 10px;color:var(--text,#0f172a);font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.universal-footer-group-links{display:grid;gap:8px}
.universal-footer-group-links a{width:max-content;max-width:100%;color:var(--text-light,#64748b);font-size:13px;font-weight:700;line-height:1.45;text-decoration:none;transition:color .16s ease,transform .16s ease}
.universal-footer-group-links a:hover,.universal-footer-group-links a:focus-visible{color:var(--primary,#1769ff);text-decoration:underline;text-underline-offset:3px}
.universal-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:28px;padding-top:18px;border-top:1px solid color-mix(in srgb,var(--border,#d9e2ef) 82%,transparent);color:var(--text-light,#64748b);font-size:11px;font-weight:600;line-height:1.5}
html[data-theme="dark"] .universal-site-footer{color:#94a3b8;background:#0f172a;border-top-color:#334155}
html[data-theme="dark"] .universal-footer-home,html[data-theme="dark"] .universal-footer-group>strong{color:#f8fafc!important}
html[data-theme="dark"] .universal-footer-brand span,html[data-theme="dark"] .universal-footer-group-links a,html[data-theme="dark"] .universal-footer-bottom{color:#a8b5c7}
html[data-theme="dark"] .universal-footer-bottom{border-top-color:#334155}
html[data-theme="dark"] .universal-footer-home:hover,html[data-theme="dark"] .universal-footer-home:focus-visible,html[data-theme="dark"] .universal-footer-group-links a:hover,html[data-theme="dark"] .universal-footer-group-links a:focus-visible{color:#60a5fa!important}
@media(prefers-color-scheme:dark){html[data-theme="system"] .universal-site-footer{color:#94a3b8;background:#0f172a;border-top-color:#334155}html[data-theme="system"] .universal-footer-home,html[data-theme="system"] .universal-footer-group>strong{color:#f8fafc!important}html[data-theme="system"] .universal-footer-brand span,html[data-theme="system"] .universal-footer-group-links a,html[data-theme="system"] .universal-footer-bottom{color:#a8b5c7}html[data-theme="system"] .universal-footer-bottom{border-top-color:#334155}html[data-theme="system"] .universal-footer-home:hover,html[data-theme="system"] .universal-footer-home:focus-visible,html[data-theme="system"] .universal-footer-group-links a:hover,html[data-theme="system"] .universal-footer-group-links a:focus-visible{color:#60a5fa!important}}
@media(max-width:900px){.universal-site-footer{padding-top:30px}.universal-footer-main{grid-template-columns:1fr;gap:26px}.universal-footer-brand{max-width:620px}.universal-footer-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.universal-site-footer{margin-top:32px;padding:28px 18px 20px}.universal-footer-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}.universal-footer-group:last-child{grid-column:1/-1}.universal-footer-group:last-child .universal-footer-group-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.universal-footer-group-links a{width:auto;padding:2px 0}.universal-footer-bottom{align-items:flex-start;flex-direction:column;gap:5px;margin-top:24px}}
@media(max-width:390px){.universal-footer-nav{grid-template-columns:1fr}.universal-footer-group:last-child{grid-column:auto}.universal-footer-group:last-child .universal-footer-group-links{grid-template-columns:1fr}}
@media print{.universal-site-footer{display:none!important}}

/* Source: /css/universal-site-header-v17.7.2.css */
/* ==========================================================
   TypingTutor.Online — Universal Site Header v17.7.2
   One complete header for tutor, tests, games, kids, blog,
   certificates, information pages, sitemap, and 404.
========================================================== */

#header,
.test-site-header {
    box-sizing: border-box !important;
    position: relative;
    z-index: 1000;
    width: 100%;
    min-height: 80px;
    padding: max(9px, env(safe-area-inset-top)) 0 9px;
    background: var(--surface, #ffffff);
    border-bottom: 1px solid var(--border, #dbe4f0);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
}

#header .header-inner,
.test-header-inner {
    box-sizing: border-box;
    width: min(1660px, calc(100% - 34px));
    min-height: 60px;
    margin-inline: auto;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(235px, 300px) minmax(0, 1fr) auto;
    gap: clamp(10px, 1.4vw, 24px);
    align-items: center;
}

#header .logo,
.test-logo {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-self: start;
    color: inherit;
    text-decoration: none;
}

#header .site-logo-picture,
.test-logo-stack {
    position: relative;
    display: grid;
    width: min(280px, 100%);
    min-width: 0;
}

#header .site-logo-picture,
#header .site-logo-picture-light,
#header .site-logo-picture-dark,
.test-logo-stack > img {
    grid-area: 1 / 1;
}

#header .site-logo-image,
.test-logo img {
    display: block;
    width: min(280px, 100%);
    height: auto;
    max-height: 60px;
    object-fit: contain;
    object-position: left center;
}

#header .site-logo-picture-dark,
.test-logo-dark {
    display: none !important;
}

html[data-theme="dark"] #header .site-logo-picture-light,
html[data-theme="dark"] .test-logo-light {
    display: none !important;
}

html[data-theme="dark"] #header .site-logo-picture-dark,
html[data-theme="dark"] .test-logo-dark {
    display: block !important;
}

#header .primary-mode-navigation,
.test-nav {
    min-width: 0;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2px, .72vw, 12px);
    overflow: visible;
}

#header #modeSwitcher,
#header .mode-switcher-inner,
#header .mode-navigation {
    min-width: 0;
    width: auto;
}

#header .mode-navigation {
    display: flex;
    align-items: center;
    gap: clamp(2px, .72vw, 12px);
}

#header .mode-switcher-heading {
    display: none !important;
}

#header .lesson-home-nav-button,
#header .mode-navigation > .mode-button,
#header .mode-more > summary.mode-button,
.test-nav > a,
.test-nav-more > summary {
    box-sizing: border-box;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 10px clamp(9px, .78vw, 15px);
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text, #172235);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: clamp(12px, .84vw, 15px);
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease,
        border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#header .mode-button-icon,
#header .lesson-home-nav-icon,
.test-nav .mode-button-icon,
.test-nav-more-menu .mode-button-icon {
    display: inline-flex;
    flex: 0 0 22px;
    width: 22px;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
}

#header .mode-button-text,
#header .lesson-home-nav-label,
.test-nav .mode-button-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

#header .lesson-home-nav-button:hover,
#header .mode-navigation > .mode-button:hover,
#header .mode-more > summary.mode-button:hover,
.test-nav > a:hover,
.test-nav-more > summary:hover,
.test-nav-more[open] > summary {
    color: var(--primary, #1769ff);
    background: var(--surface-alt, #f2f7ff);
    border-color: #dbe8fa;
}

#header .lesson-home-nav-button-active,
#header .mode-navigation > .mode-button-active,
#header .mode-more.mode-more-active > summary,
.test-nav > a[aria-current="page"],
.test-nav > a.mode-button-active,
.test-nav-more.mode-more-active > summary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #246df0, #285ee5) !important;
    border-color: rgba(31, 92, 222, .58) !important;
    box-shadow: 0 10px 24px rgba(47, 103, 246, .24) !important;
}

#header .header-tools,
.test-header-inner > #themeButton {
    justify-self: end;
}

#header #themeButton,
.test-header-inner > #themeButton {
    box-sizing: border-box;
    min-width: 116px;
    min-height: 48px;
    margin: 0;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #246df0, #285ee5);
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: clamp(12px, .84vw, 15px);
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(47, 103, 246, .20);
}

#header #themeButton > span:first-child,
.test-header-inner > #themeButton > span:first-child {
    display: inline-flex;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 19px;
    line-height: 22px;
}

.theme-button-arrow,
.mode-more-chevron {
    font-size: 10px;
    opacity: .8;
}

#header .mode-more,
.test-nav-more {
    position: relative;
    flex: 0 0 auto;
}

#header .mode-more > summary,
.test-nav-more > summary {
    list-style: none;
}

#header .mode-more > summary::-webkit-details-marker,
.test-nav-more > summary::-webkit-details-marker {
    display: none;
}

#header .mode-more-menu,
.test-nav-more-menu {
    box-sizing: border-box;
    position: absolute;
    z-index: 1200;
    top: calc(100% + 10px);
    right: 0;
    width: 244px;
    padding: 8px;
    display: none;
    gap: 4px;
    background: var(--surface-elevated, #ffffff);
    border: 1px solid var(--border, #dbe4f0);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

#header .mode-more[open] .mode-more-menu,
.test-nav-more[open] .test-nav-more-menu {
    display: grid;
}

#header .mode-more-menu .mode-button,
.test-nav-more-menu a,
.test-nav-more-menu button {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    color: var(--text, #172235);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

#header .mode-more-menu .mode-button:hover,
.test-nav-more-menu a:hover,
.test-nav-more-menu button:hover,
.test-nav-more-menu a[aria-current="page"] {
    color: var(--primary, #1769ff);
    background: var(--surface-alt, #f2f7ff);
    border-color: var(--border, #dbe4f0);
}

/* Theme chooser: included here so simple information pages match the app. */
.theme-menu {
    position: fixed;
    z-index: 10050;
    width: 250px;
    padding: 8px;
    background: var(--surface-elevated, #ffffff);
    border: 1px solid var(--border, #dbe4f0);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
}
.theme-menu.hidden { display: none !important; }
.theme-option {
    display: grid;
    grid-template-columns: 36px 1fr 22px;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 10px;
    color: var(--text, #172235);
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}
.theme-option:hover,
.theme-option:focus-visible {
    background: var(--surface-alt, #f2f7ff);
    border-color: var(--border, #dbe4f0);
    outline: none;
}
.theme-option-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    background: var(--surface-alt, #f2f7ff);
    border-radius: 9px;
    font-size: 18px;
}
.theme-option-copy { display: grid; gap: 2px; }
.theme-option-copy strong { color: var(--text, #172235); font-size: 13px; }
.theme-option-copy small { color: var(--text-light, #718096); font-size: 10px; }
.theme-option-check { color: var(--primary, #1769ff); font-weight: 900; opacity: 0; }
.theme-option-selected { background: var(--primary-light, #edf4ff); border-color: var(--border, #dbe4f0); }
.theme-option-selected .theme-option-check { opacity: 1; }

html[data-theme="dark"] #header,
html[data-theme="dark"] .test-site-header {
    background: #101b2e;
    border-color: #40516a;
}
html[data-theme="dark"] #header .lesson-home-nav-button,
html[data-theme="dark"] #header .mode-navigation > .mode-button,
html[data-theme="dark"] #header .mode-more > summary.mode-button,
html[data-theme="dark"] .test-nav > a,
html[data-theme="dark"] .test-nav-more > summary,
html[data-theme="dark"] #header .mode-more-menu .mode-button,
html[data-theme="dark"] .test-nav-more-menu a,
html[data-theme="dark"] .test-nav-more-menu button {
    color: #dce7f7;
}
html[data-theme="dark"] #header .mode-more-menu,
html[data-theme="dark"] .test-nav-more-menu,
html[data-theme="dark"] .theme-menu {
    background: #101b2e;
    border-color: #40516a;
}
html[data-theme="dark"] .theme-option,
html[data-theme="dark"] .theme-option-copy strong { color: #e7eef9; }
html[data-theme="dark"] .theme-option-copy small { color: #9aabc2; }
html[data-theme="dark"] .theme-option-icon,
html[data-theme="dark"] .theme-option:hover,
html[data-theme="dark"] .theme-option:focus-visible,
html[data-theme="dark"] #header .mode-more-menu .mode-button:hover,
html[data-theme="dark"] .test-nav-more-menu a:hover,
html[data-theme="dark"] .test-nav-more-menu button:hover {
    background: #17263c;
    border-color: #304662;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] #header,
    html[data-theme="system"] .test-site-header {
        background: #101b2e;
        border-color: #40516a;
    }
    html[data-theme="system"] #header .site-logo-picture-light,
    html[data-theme="system"] .test-logo-light { display: none !important; }
    html[data-theme="system"] #header .site-logo-picture-dark,
    html[data-theme="system"] .test-logo-dark { display: block !important; }
    html[data-theme="system"] #header .lesson-home-nav-button,
    html[data-theme="system"] #header .mode-navigation > .mode-button,
    html[data-theme="system"] #header .mode-more > summary.mode-button,
    html[data-theme="system"] .test-nav > a,
    html[data-theme="system"] .test-nav-more > summary,
    html[data-theme="system"] #header .mode-more-menu .mode-button,
    html[data-theme="system"] .test-nav-more-menu a,
    html[data-theme="system"] .test-nav-more-menu button { color: #dce7f7; }
    html[data-theme="system"] #header .mode-more-menu,
    html[data-theme="system"] .test-nav-more-menu,
    html[data-theme="system"] .theme-menu {
        background: #101b2e;
        border-color: #40516a;
    }
}

@media (max-width: 1360px) {
    #header .header-inner,
    .test-header-inner {
        grid-template-columns: minmax(205px, 235px) minmax(0, 1fr) auto;
        gap: 8px;
    }
    #header .site-logo-picture,
    #header .site-logo-image,
    .test-logo-stack,
    .test-logo img { width: min(235px, 100%); }
    #header .lesson-home-nav-button,
    #header .mode-navigation > .mode-button,
    #header .mode-more > summary.mode-button,
    .test-nav > a,
    .test-nav-more > summary {
        min-height: 44px;
        padding-inline: 8px;
        gap: 6px;
        font-size: 12px;
    }
    #header #themeButton,
    .test-header-inner > #themeButton {
        min-width: 104px;
        min-height: 44px;
        padding-inline: 11px;
        font-size: 12px;
    }
}

@media (max-width: 1040px) {
    #header,
    .test-site-header {
        min-height: 0;
        padding-top: max(7px, env(safe-area-inset-top));
        padding-bottom: 7px;
    }
    #header .header-inner,
    .test-header-inner {
        width: min(100% - 22px, 1660px);
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
    }
    #header .primary-mode-navigation,
    .test-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        padding: 2px 0 3px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    #header .primary-mode-navigation::-webkit-scrollbar,
    .test-nav::-webkit-scrollbar { display: none; }
    #header .header-tools,
    .test-header-inner > #themeButton { grid-column: 2; grid-row: 1; }
    .test-logo { grid-column: 1; grid-row: 1; }
}

@media (max-width: 590px) {
    #header .header-inner,
    .test-header-inner { width: min(100% - 14px, 1660px); }
    #header .site-logo-picture,
    #header .site-logo-image,
    .test-logo-stack,
    .test-logo img { width: min(190px, 100%); }
    #header .lesson-home-nav-button,
    #header .mode-navigation > .mode-button,
    #header .mode-more > summary.mode-button,
    .test-nav > a,
    .test-nav-more > summary {
        min-width: 68px;
        min-height: 44px;
        padding: 7px 8px;
        flex-direction: column;
        gap: 3px;
        font-size: 9px;
    }
    #header .mode-more-chevron,
    .test-nav-more .mode-more-chevron { display: none; }
    #header #themeButton,
    .test-header-inner > #themeButton {
        min-width: 48px;
        min-height: 42px;
        padding: 8px 10px;
    }
    #header #themeButton > span:nth-child(2),
    #header #themeButton > span:last-child,
    .test-header-inner > #themeButton > span:nth-child(2),
    .test-header-inner > #themeButton > span:last-child { display: none; }
}

/* ==========================================================
   v17.10.182 — Reliable mobile More menu
   Explicit JS toggling + fixed viewport panel prevents the menu from
   opening outside the horizontally scrolling navigation in Chrome mobile.
========================================================== */
@media (max-width: 1040px), (pointer: coarse) {
    #header .mode-more-menu,
    .test-nav-more-menu {
        position: fixed !important;
        z-index: 10050 !important;
        top: var(--site-more-top, 118px) !important;
        right: 12px !important;
        bottom: auto !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        max-height: min(var(--site-more-max-height, 70vh), 480px) !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        box-shadow: 0 20px 52px rgba(15, 23, 42, .24);
    }

    #header .mode-more[open] > summary.mode-button,
    .test-nav-more[open] > summary {
        color: var(--primary, #1769ff);
        background: var(--surface-alt, #f2f7ff);
        border-color: var(--border, #dbe4f0);
    }
}

/* v17.10.327: readable hover, open and keyboard-focus states in both dark modes. */
html[data-theme="dark"] #header .lesson-home-nav-button:is(:hover,:focus-visible),
html[data-theme="dark"] #header .mode-navigation > .mode-button:is(:hover,:focus-visible),
html[data-theme="dark"] #header .mode-more > summary.mode-button:is(:hover,:focus-visible),
html[data-theme="dark"] #header .mode-more[open] > summary.mode-button,
html[data-theme="dark"] .test-nav > a:is(:hover,:focus-visible),
html[data-theme="dark"] .test-nav-more > summary:is(:hover,:focus-visible),
html[data-theme="dark"] .test-nav-more[open] > summary,
html[data-theme="dark"] #header .mode-more-menu .mode-button:is(:hover,:focus-visible),
html[data-theme="dark"] .test-nav-more-menu a:is(:hover,:focus-visible),
html[data-theme="dark"] .test-nav-more-menu button:is(:hover,:focus-visible) {
    color: #e7eef9;
    background: #213a5f;
    border-color: #526d91;
    text-decoration: none;
}
@media (prefers-color-scheme: dark) {
html[data-theme="system"] #header .lesson-home-nav-button:is(:hover,:focus-visible),
html[data-theme="system"] #header .mode-navigation > .mode-button:is(:hover,:focus-visible),
html[data-theme="system"] #header .mode-more > summary.mode-button:is(:hover,:focus-visible),
html[data-theme="system"] #header .mode-more[open] > summary.mode-button,
html[data-theme="system"] .test-nav > a:is(:hover,:focus-visible),
html[data-theme="system"] .test-nav-more > summary:is(:hover,:focus-visible),
html[data-theme="system"] .test-nav-more[open] > summary,
html[data-theme="system"] #header .mode-more-menu .mode-button:is(:hover,:focus-visible),
html[data-theme="system"] .test-nav-more-menu a:is(:hover,:focus-visible),
html[data-theme="system"] .test-nav-more-menu button:is(:hover,:focus-visible) {
    color: #e7eef9;
    background: #213a5f;
    border-color: #526d91;
    text-decoration: none;
}
}

/* Source: /css/universal-logo-visibility-v17.7.6.css */
/* ==========================================================
   TypingTutor.Online — Universal Logo Visibility v17.7.6

   Nested sections use two theme-aware logo images inside
   .test-logo-stack. Older section styles mixed absolute
   positioning, display switching and opacity switching, which
   could collapse the logo container or hide both images.

   This final stylesheet creates one stable overlapping grid,
   reserves the correct header space and switches only opacity.
========================================================== */

.test-logo {
    box-sizing: border-box !important;
    width: min(280px, 100%) !important;
    min-width: 190px !important;
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
}

.test-logo-stack {
    box-sizing: border-box !important;
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    width: 280px !important;
    max-width: 100% !important;
    min-width: 190px !important;
    min-height: 58px !important;
    aspect-ratio: 280 / 58 !important;
    overflow: visible !important;
    isolation: isolate;
}

.test-logo-stack > .test-logo-light,
.test-logo-stack > .test-logo-dark {
    box-sizing: border-box !important;
    grid-area: 1 / 1 !important;
    position: static !important;
    inset: auto !important;
    z-index: 1;
    display: block !important;
    width: 100% !important;
    max-width: 280px !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 58px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    pointer-events: none !important;
    transition: opacity .16s ease, visibility .16s ease !important;
}

/* Reliable default, including pages before ThemeManager runs. */
.test-logo-stack > .test-logo-light {
    opacity: 1 !important;
    visibility: visible !important;
}

.test-logo-stack > .test-logo-dark {
    opacity: 0 !important;
    visibility: hidden !important;
}

html[data-theme="light"] .test-logo-stack > .test-logo-light,
html[data-resolved-theme="light"] .test-logo-stack > .test-logo-light {
    opacity: 1 !important;
    visibility: visible !important;
}

html[data-theme="light"] .test-logo-stack > .test-logo-dark,
html[data-resolved-theme="light"] .test-logo-stack > .test-logo-dark {
    opacity: 0 !important;
    visibility: hidden !important;
}

html[data-theme="dark"] .test-logo-stack > .test-logo-light,
html[data-resolved-theme="dark"] .test-logo-stack > .test-logo-light {
    opacity: 0 !important;
    visibility: hidden !important;
}

html[data-theme="dark"] .test-logo-stack > .test-logo-dark,
html[data-resolved-theme="dark"] .test-logo-stack > .test-logo-dark {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .test-logo-stack > .test-logo-light {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    html[data-theme="system"] .test-logo-stack > .test-logo-dark {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (prefers-color-scheme: light) {
    html[data-theme="system"] .test-logo-stack > .test-logo-light {
        opacity: 1 !important;
        visibility: visible !important;
    }

    html[data-theme="system"] .test-logo-stack > .test-logo-dark {
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

@media (max-width: 760px) {
    .test-logo {
        width: min(220px, 100%) !important;
        min-width: 165px !important;
        min-height: 46px !important;
    }

    .test-logo-stack {
        width: 220px !important;
        min-width: 165px !important;
        min-height: 46px !important;
    }

    .test-logo-stack > .test-logo-light,
    .test-logo-stack > .test-logo-dark {
        max-width: 220px !important;
        max-height: 46px !important;
    }
}

@media (max-width: 440px) {
    .test-logo {
        width: 178px !important;
        min-width: 150px !important;
        min-height: 37px !important;
    }

    .test-logo-stack {
        width: 178px !important;
        min-width: 150px !important;
        min-height: 37px !important;
    }

    .test-logo-stack > .test-logo-light,
    .test-logo-stack > .test-logo-dark {
        max-width: 178px !important;
        max-height: 37px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .test-logo-stack > .test-logo-light,
    .test-logo-stack > .test-logo-dark {
        transition: none !important;
    }
}

/* Source: /css/global-workspace-v17.8.2.css */
/* ==========================================================
   TypingTutor.Online — Global Wide Workspace v17.8.2
   A consistent outer width across the tutor and every public
   section. Reading columns remain intentionally narrower.
========================================================== */

:root {
    --tto-workspace-max: 1500px;
    --tto-workspace-gutter: clamp(14px, 1.7vw, 32px);
    --max-width: var(--tto-workspace-max);
}

/* Main tutor, mode dashboards and progress bars */
.site-shell,
#courseModePanel,
.feature-placeholder,
#statisticsDashboard,
.statistics-course-progress,
.daily-practice-summary,
.settings-dashboard,
.achievements-dashboard,
.more-typing-resources-inner,
.typing-learning-content-inner {
    box-sizing: border-box;
    width: min(
        var(--tto-workspace-max),
        calc(100% - (2 * var(--tto-workspace-gutter)))
    );
    max-width: var(--tto-workspace-max);
    margin-inline: auto;
}

/* Standalone site sections */
.test-page-shell,
.games-shell,
.kids-shell,
.blog-shell,
.certificate-shell,
.share-shell,
.lessons-page-shell,
.page-shell {
    box-sizing: border-box;
    width: min(
        var(--tto-workspace-max),
        calc(100% - (2 * var(--tto-workspace-gutter)))
    );
    max-width: var(--tto-workspace-max);
    margin-inline: auto;
}

/* Footer follows the same visual edges as the page content. */
.universal-footer-inner,
.site-footer-inner {
    width: min(var(--tto-workspace-max), 100%);
    max-width: var(--tto-workspace-max);
}

/* Align horizontal section navigation with the wider workspace. */
.games-subnav,
.kids-subnav {
    padding-inline: max(
        var(--tto-workspace-gutter),
        calc((100vw - var(--tto-workspace-max)) / 2)
    );
}

/* Keep long-form reading comfortable even inside a wide shell. */
.blog-article,
.blog-article-body,
.page-prose,
.content-prose,
.certificate-faq > p,
.certificate-faq details,
.typing-learning-heading {
    max-width: 980px;
}

/* Wide desktop dashboards benefit from balanced multi-column cards. */
@media (min-width: 1280px) {
    .statistics-summary-grid-complete {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .statistics-ranking-grid,
    .statistics-trend-grid {
        gap: 18px;
    }

    .games-grid,
    .kids-path-grid,
    .kids-feature-grid,
    .kids-test-grid,
    .kids-game-grid,
    .kids-badge-grid {
        gap: 20px;
    }
}

/* Maintain generous but safe gutters on tablets and phones. */
@media (max-width: 900px) {
    :root {
        --tto-workspace-gutter: 11px;
    }
}

@media (max-width: 560px) {
    :root {
        --tto-workspace-gutter: 7px;
    }
}

@media print {
    .certificate-shell,
    .kids-shell,
    .page-shell {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Source: /mobile-typing/mobile-typing.css */
:root{--mt-blue:#1769ff;--mt-blue-soft:#eaf2ff;--mt-green:#21bf73;--mt-green-soft:#e8f9f0;--mt-purple:#7356f6;--mt-purple-soft:#f0edff;--mt-orange:#ff8b22;--mt-orange-soft:#fff2e5;--mt-pink:#ef4e91;--mt-red:#ef4b55;--mt-ink:#10203c;--mt-muted:#64748b;--mt-border:#e4eaf2;--mt-panel:#fff;--mt-page:#f6f9fd;--mt-shadow:0 18px 50px rgba(15,35,70,.09)}
html[data-theme="dark"]{--mt-ink:#edf4ff;--mt-muted:#aab8ca;--mt-border:#27354a;--mt-panel:#111c2e;--mt-page:#0b1120;--mt-blue-soft:#142849;--mt-green-soft:#123529;--mt-purple-soft:#241e46;--mt-orange-soft:#3b2818;--mt-shadow:0 18px 50px rgba(0,0,0,.28)}
@media(prefers-color-scheme:dark){html[data-theme="system"]{--mt-ink:#edf4ff;--mt-muted:#aab8ca;--mt-border:#27354a;--mt-panel:#111c2e;--mt-page:#0b1120;--mt-blue-soft:#142849;--mt-green-soft:#123529;--mt-purple-soft:#241e46;--mt-orange-soft:#3b2818;--mt-shadow:0 18px 50px rgba(0,0,0,.28)}}
.mobile-typing-page{margin:0;background:var(--mt-page);color:var(--mt-ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.mobile-typing-page button,.mobile-typing-page input,.mobile-typing-page textarea{font:inherit}.mobile-module-shell{width:min(1180px,calc(100% - 28px));margin:0 auto;padding:18px 0 48px}.mobile-breadcrumbs{display:flex;gap:8px;align-items:center;color:var(--mt-muted);font-size:.88rem;margin:4px 0 14px}.mobile-breadcrumbs a{color:var(--mt-blue);text-decoration:none}.mobile-workspace{width:min(520px,100%);min-height:720px;margin:0 auto;background:var(--mt-panel);border:1px solid var(--mt-border);border-radius:30px;box-shadow:var(--mt-shadow);overflow:hidden;position:relative}.mobile-appbar{height:68px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:0 14px;border-bottom:1px solid var(--mt-border);position:relative;background:var(--mt-panel);z-index:10}.mobile-appbar-title{text-align:center;line-height:1.15}.mobile-appbar-title strong{display:block;font-family:Poppins,Inter,sans-serif;font-size:.98rem}.mobile-appbar-title small{display:block;color:var(--mt-muted);font-size:.69rem;margin-top:3px}.mobile-back,.mobile-menu-button{border:0;background:transparent;color:var(--mt-ink);font-weight:800;font-size:1.55rem;width:42px;height:42px;border-radius:14px;cursor:pointer}.mobile-back:hover,.mobile-menu-button:hover{background:var(--mt-blue-soft)}.mobile-menu{position:absolute;right:14px;top:58px;width:210px;background:var(--mt-panel);border:1px solid var(--mt-border);border-radius:18px;padding:8px;box-shadow:var(--mt-shadow);display:grid;gap:4px}.mobile-menu[hidden]{display:none}.mobile-menu button,.mobile-menu a{border:0;background:transparent;color:var(--mt-ink);text-decoration:none;text-align:left;border-radius:12px;padding:11px 12px;font-weight:700;cursor:pointer}.mobile-menu button:hover,.mobile-menu a:hover{background:var(--mt-blue-soft)}.mobile-view{padding:26px 24px 30px}.mobile-view[hidden]{display:none}.mobile-home-view{padding-top:24px}.mobile-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 11px;background:var(--mt-blue-soft);color:var(--mt-blue);font-weight:800;font-size:.75rem}.mobile-hero-copy h1{font-family:Poppins,Inter,sans-serif;font-size:clamp(2.25rem,10vw,3.35rem);line-height:.98;letter-spacing:-.04em;margin:12px 0 14px;color:var(--mt-ink)}.mobile-hero-copy p{margin:0;color:var(--mt-muted);font-size:1rem;line-height:1.55}.mobile-hero-copy p strong{color:var(--mt-ink)}.phone-hero{height:210px;position:relative;margin:18px -8px 6px;display:flex;justify-content:center;align-items:flex-end;overflow:hidden;background:radial-gradient(circle at 50% 60%,var(--mt-blue-soft),transparent 60%)}.phone-shell{width:150px;height:190px;border:8px solid #20314d;border-radius:28px;background:linear-gradient(180deg,#eef5ff,#fff);position:relative;box-shadow:0 20px 35px rgba(30,62,110,.18);padding:35px 12px 12px;z-index:2}.phone-notch{position:absolute;top:7px;left:50%;transform:translateX(-50%);width:58px;height:13px;background:#20314d;border-radius:10px}.phone-chat{font-size:.68rem;background:white;border:1px solid #dbe6f5;box-shadow:0 5px 12px rgba(42,76,120,.08);border-radius:10px;padding:7px 8px;margin-bottom:8px;color:#263956;font-weight:700}.phone-chat-a{width:70px}.phone-chat-b{width:110px}.phone-keyboard-mini{position:absolute;bottom:10px;left:10px;right:10px;display:grid;grid-template-columns:repeat(10,1fr);gap:2px}.phone-keyboard-mini span{height:18px;border-radius:4px;background:#edf1f7;color:#43536b;font-size:.48rem;display:grid;place-items:center}.hero-thumb{position:absolute;width:84px;height:145px;background:linear-gradient(160deg,#ffbf98,#ef9369);border-radius:48px 48px 30px 30px;bottom:-68px;z-index:3;box-shadow:inset 0 -10px 20px rgba(138,62,31,.08)}.hero-thumb-left{left:66px;transform:rotate(-31deg)}.hero-thumb-right{right:66px;transform:rotate(31deg)}.mobile-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:var(--mt-panel);border:1px solid var(--mt-border);border-radius:20px;padding:10px}.mobile-action-card{min-height:112px;border:0;border-radius:16px;padding:15px;color:white;text-align:left;text-decoration:none;display:flex;flex-direction:column;justify-content:flex-end;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}.mobile-action-card span{font-size:1.3rem;margin-bottom:auto}.mobile-action-card strong{font-size:1rem}.mobile-action-card small{font-size:.73rem;line-height:1.35;margin-top:4px;color:rgba(255,255,255,.9)}.mobile-action-card.learn{background:linear-gradient(145deg,#267cff,#1769ff)}.mobile-action-card.practice{background:linear-gradient(145deg,#31cd82,#1bb66b)}.mobile-action-card.test{background:linear-gradient(145deg,#8369ff,#6748f0)}.mobile-action-card.game{background:linear-gradient(145deg,#ff8c55,#f66a35)}.mobile-text-link{border:0;background:transparent;color:var(--mt-blue);font-weight:800;padding:15px 4px 2px;width:100%;display:flex;justify-content:space-between;cursor:pointer}.mobile-text-link.centered{justify-content:center;margin-top:2px}.mobile-view-heading h2,.lesson-intro-copy h2,.game-heading h2,.mobile-view[data-view="results"] h2{font-family:Poppins,Inter,sans-serif;font-size:1.65rem;margin:0;color:var(--mt-ink);letter-spacing:-.025em}.mobile-view-heading p,.lesson-intro-copy p,.game-heading p{color:var(--mt-muted);line-height:1.5;margin:6px 0 0}.lesson-list{display:grid;gap:11px;margin-top:20px}.lesson-card{width:100%;display:grid;grid-template-columns:48px 1fr 24px;gap:12px;align-items:center;border:1px solid var(--mt-border);background:var(--mt-panel);color:var(--mt-ink);border-radius:16px;padding:13px 12px;text-align:left;cursor:pointer}.lesson-card:hover{border-color:#b8cdf3;background:var(--mt-blue-soft)}.lesson-number{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:white;font-weight:800;background:var(--mt-blue)}.lesson-card:nth-child(2) .lesson-number{background:var(--mt-green)}.lesson-card:nth-child(3) .lesson-number{background:var(--mt-pink)}.lesson-card:nth-child(4) .lesson-number{background:var(--mt-orange)}.lesson-card:nth-child(5) .lesson-number{background:var(--mt-purple)}.lesson-copy strong{display:block;font-size:.95rem}.lesson-copy small{display:block;color:var(--mt-muted);font-size:.73rem;line-height:1.35;margin-top:3px}.lesson-copy em{display:block;font-style:normal;font-size:.68rem;color:var(--mt-muted);margin-top:4px}.lesson-arrow{font-size:1.25rem;color:var(--mt-muted)}.lesson-card.completed .lesson-number::after{content:"✓"}.lesson-card.completed .lesson-number{font-size:0}.lesson-card.completed .lesson-number::after{font-size:1rem}.course-finish-card{margin-top:16px;background:var(--mt-blue-soft);border-radius:16px;padding:13px;display:flex;gap:12px;align-items:center}.course-finish-card span{font-size:1.4rem}.course-finish-card strong,.course-finish-card small{display:block}.course-finish-card small{color:var(--mt-muted);font-size:.75rem;margin-top:3px}.lesson-number-label{display:block;color:var(--mt-blue);font-weight:800;margin-bottom:6px}.thumb-guide{margin:24px 0 16px}.thumb-zones{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.thumb-zones span{padding:12px;text-align:center;border-radius:14px}.thumb-zones strong,.thumb-zones small{display:block}.thumb-zones small{margin-top:4px;font-weight:700;letter-spacing:.08em}.left-zone{background:#dcecff;color:#1769ff}.right-zone{background:#dff8ea;color:#168552}.thumb-keyboard{border:7px solid #293a55;background:#dce3ec;border-radius:22px;padding:12px 8px 10px;box-shadow:0 12px 24px rgba(36,56,89,.16)}.thumb-row{display:flex;justify-content:center;gap:4px;margin-bottom:5px}.thumb-row span{width:30px;height:34px;border-radius:7px;background:white;display:grid;place-items:center;color:#25364f;font-size:.78rem;font-weight:800;box-shadow:0 2px 4px rgba(36,56,89,.1)}.thumb-row span.l{box-shadow:inset 0 -4px 0 #a8cdfd}.thumb-row span.r{box-shadow:inset 0 -4px 0 #a6e7c8}.thumb-row.mid{padding:0 10px}.thumb-row.low{padding:0 28px;margin-bottom:0}.mobile-tip{display:flex;gap:10px;background:var(--mt-blue-soft);border-radius:15px;padding:14px;margin:17px 0}.mobile-tip p{margin:0;color:var(--mt-ink);font-size:.84rem;line-height:1.45}.mobile-primary,.mobile-secondary{border:0;border-radius:14px;padding:14px 17px;min-height:50px;font-weight:800;text-align:center;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.mobile-primary{background:linear-gradient(145deg,#2c7dff,#1769ff);color:white;width:100%;box-shadow:0 10px 22px rgba(23,105,255,.2)}.mobile-secondary{background:var(--mt-blue-soft);color:var(--mt-blue)}.mobile-secondary.full{width:100%;margin-top:9px}.session-progress-line{height:7px;background:var(--mt-border);border-radius:999px;overflow:hidden;margin-bottom:20px}.session-progress-line div{height:100%;width:0;background:var(--mt-green);border-radius:inherit;transition:width .15s ease}.session-target{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:1.16rem;line-height:1.65;background:linear-gradient(135deg,var(--mt-green-soft),var(--mt-panel));border:1px solid var(--mt-border);border-radius:16px;padding:18px;min-height:128px;max-height:198px;overflow:auto;white-space:pre-wrap}.session-target .typed-correct{color:#148b55}.session-target .typed-wrong{background:#ffe1e4;color:#b91c2b;border-radius:2px}.session-target .current{background:#dcecff;border-bottom:2px solid var(--mt-blue)}.session-input-label{display:block;font-size:.75rem;font-weight:800;color:var(--mt-muted);margin:14px 2px 6px}.session-input{width:100%;box-sizing:border-box;border:2px solid var(--mt-border);border-radius:13px;padding:13px 14px;background:var(--mt-panel);color:var(--mt-ink);font-family:"JetBrains Mono",ui-monospace,monospace;font-size:1rem;resize:none;outline:none}.session-input:focus{border-color:var(--mt-blue);box-shadow:0 0 0 3px rgba(23,105,255,.1)}.session-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:14px;border-top:1px solid var(--mt-border);border-bottom:1px solid var(--mt-border)}.session-stats div{text-align:center;padding:13px 4px;position:relative}.session-stats div+div::before{content:"";position:absolute;left:0;top:20%;bottom:20%;width:1px;background:var(--mt-border)}.session-stats strong,.session-stats span{display:block}.session-stats strong{font-size:1.08rem;color:var(--mt-ink)}.session-stats span{font-size:.64rem;color:var(--mt-muted);margin-top:2px}.session-actions{display:flex;gap:8px;justify-content:center;margin-top:10px}.mobile-danger-text{border:0;background:transparent;color:var(--mt-red);font-weight:800;padding:12px;cursor:pointer}.mobile-option-block{margin-top:22px}.mobile-option-block h3,.result-insights h3{font-size:.82rem;margin:0 0 10px;color:var(--mt-ink)}.time-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.time-options button{border:1px solid var(--mt-border);background:var(--mt-panel);border-radius:13px;padding:14px 8px;color:var(--mt-ink);font-size:1.15rem;font-weight:800;cursor:pointer}.time-options button span{display:block;font-size:.63rem;margin-top:2px;font-weight:600}.time-options button.selected{background:var(--mt-blue);color:white;border-color:var(--mt-blue)}.practice-content-list{display:grid;gap:7px}.practice-content-list button{display:grid;grid-template-columns:42px 1fr 16px;align-items:center;gap:10px;border:0;background:transparent;color:var(--mt-ink);padding:8px 2px;text-align:left;border-radius:12px;cursor:pointer}.practice-content-list button:hover{background:var(--mt-blue-soft)}.practice-content-list strong,.practice-content-list small{display:block}.practice-content-list strong{font-size:.88rem}.practice-content-list small{font-size:.68rem;color:var(--mt-muted);margin-top:3px}.practice-icon{width:39px;height:39px;border-radius:11px;display:grid;place-items:center;font-weight:800}.practice-icon.green{background:#daf7e9}.practice-icon.blue{background:#deebff}.practice-icon.purple{background:#eee9ff}.practice-icon.orange{background:#ffecd8}.practice-icon.pink{background:#ffe1ee}.practice-icon.red{background:#ffe2e3}.game-heading{display:flex;gap:12px;align-items:center}.game-heading>span{font-size:2rem}.game-stats{display:grid;grid-template-columns:1fr 1fr 1fr 44px;gap:7px;margin:20px 0}.game-stats>div{border-radius:12px;padding:9px 4px;text-align:center}.game-stats>div:nth-child(1){background:#e5f3ff}.game-stats>div:nth-child(2){background:#ffe8ee}.game-stats>div:nth-child(3){background:#e5f7e9}.game-stats span,.game-stats strong{display:block}.game-stats span{font-size:.62rem;color:#53708d}.game-stats strong{font-size:1rem;color:#1769ff}.game-stats button{border:0;border-radius:12px;background:var(--mt-blue-soft);color:var(--mt-blue);font-weight:800;cursor:pointer}.game-scene{height:270px;border-radius:19px;background:linear-gradient(#dff3ff 0 65%,#a6e2c7 65% 100%);display:grid;place-items:center;position:relative;overflow:hidden}.game-scene::after{content:"";position:absolute;width:130%;height:90px;bottom:-58px;border-radius:50%;background:#7ac99e}.game-word{position:relative;z-index:2;background:var(--mt-panel);color:#17975d;border-radius:14px;padding:16px 30px;font-size:1.6rem;font-weight:800;box-shadow:0 8px 20px rgba(25,104,77,.14)}.game-scene p{position:absolute;bottom:24px;left:20px;right:20px;text-align:center;z-index:2;color:#355b6d;font-size:.72rem}.game-word-timer{position:absolute;top:16px;left:18px;right:18px;height:6px;background:rgba(255,255,255,.6);border-radius:999px;overflow:hidden}.game-word-timer div{height:100%;width:100%;background:var(--mt-blue);transition:width .1s linear}.game-input{width:100%;box-sizing:border-box;margin-top:12px;border:2px solid var(--mt-border);background:var(--mt-panel);color:var(--mt-ink);border-radius:13px;padding:13px 14px;font-size:1rem;outline:none}.game-input:focus{border-color:var(--mt-blue)}.game-footer-actions{margin-top:10px}.results-trophy{text-align:center;font-size:2.5rem;margin-bottom:8px}.mobile-view[data-view="results"]>h2,.mobile-view[data-view="results"]>p{text-align:center}.mobile-view[data-view="results"]>p{color:var(--mt-muted);font-size:.82rem;margin:5px 0 18px}.mobile-result-grid{display:grid;grid-template-columns:repeat(3,1fr);background:var(--mt-blue-soft);border-radius:15px;margin-bottom:22px}.mobile-result-grid div{text-align:center;padding:15px 4px}.mobile-result-grid strong,.mobile-result-grid span{display:block}.mobile-result-grid strong{font-size:1.2rem;color:var(--mt-blue)}.mobile-result-grid span{font-size:.62rem;color:var(--mt-muted);margin-top:3px}.result-insights{display:grid;gap:16px;margin-bottom:20px}.chip-row{display:flex;gap:7px;flex-wrap:wrap;min-height:28px}.chip-row span{min-width:28px;height:28px;border-radius:999px;display:grid;place-items:center;padding:0 8px;font-weight:800;font-size:.72rem}.chip-row.positive span{background:#dcf8e7;color:#16764a}.chip-row.negative span{background:#ffe2e4;color:#bf2634}.chip-row.warning span{background:#fff1d8;color:#a3610c}.why-cards{display:grid;gap:10px;margin-top:20px}.why-cards article{border:1px solid var(--mt-border);border-radius:16px;padding:16px}.why-cards article>span{font-size:1.4rem}.why-cards h3{font-size:.95rem;margin:9px 0 4px}.why-cards p{font-size:.8rem;line-height:1.5;color:var(--mt-muted);margin:0}.why-actions{margin-top:15px}.mobile-seo-section{margin:28px auto 0;width:min(980px,100%);background:var(--mt-panel);border:1px solid var(--mt-border);border-radius:24px;padding:30px;box-shadow:0 10px 35px rgba(15,35,70,.05)}.mobile-seo-section h2{font-family:Poppins,Inter,sans-serif;font-size:1.8rem;margin:10px 0}.mobile-seo-section>div>p{color:var(--mt-muted);line-height:1.7}.mobile-seo-grid{display:grid!important;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.mobile-seo-grid article{border-top:1px solid var(--mt-border);padding-top:16px}.mobile-seo-grid h3{font-size:1rem;margin:0 0 6px}.mobile-seo-grid p{font-size:.84rem;line-height:1.6;color:var(--mt-muted);margin:0}.mobile-seo-grid a{color:var(--mt-blue)}
body.mobile-session-active .mobile-breadcrumbs,body.mobile-session-active .mobile-seo-section{display:none}.mobile-workspace.keyboard-open{min-height:calc(var(--visual-viewport-height,100vh) - 10px)}
@media(max-width:720px){.mobile-site-header{display:none!important}.mobile-site-footer{display:none}.mobile-module-shell{width:100%;padding:0;min-height:100svh}.mobile-breadcrumbs{display:none}.mobile-workspace{width:100%;min-height:100svh;border:0;border-radius:0;box-shadow:none}.mobile-view{padding:23px 18px 28px}.mobile-appbar{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));padding-top:env(safe-area-inset-top);height:calc(62px + env(safe-area-inset-top))}.mobile-home-view{padding-top:20px}.phone-hero{height:185px}.phone-shell{height:174px;width:140px}.hero-thumb-left{left:50px}.hero-thumb-right{right:50px}.mobile-seo-section{border-radius:0;border-left:0;border-right:0;margin:0;padding:26px 18px}.mobile-seo-grid{grid-template-columns:1fr}.mobile-session-view{padding-bottom:max(16px,env(safe-area-inset-bottom))}.session-target{font-size:1.02rem;min-height:105px;max-height:150px}.session-input{font-size:16px}.game-scene{height:235px}.game-input{font-size:16px}}
@media(max-width:380px){.mobile-action-card{min-height:100px;padding:12px}.mobile-action-card small{font-size:.68rem}.mobile-hero-copy h1{font-size:2.45rem}.thumb-row span{width:27px;height:32px;font-size:.72rem}.thumb-keyboard{padding-left:5px;padding-right:5px}.mobile-result-grid strong{font-size:1.05rem}}


/* ==========================================================
   v17.10.54 MOBILE REAL-DEVICE UI POLISH
   Android/iPhone fixes from live screenshots:
   - wrapped 2–3 line target viewport (no horizontal scrolling)
   - stronger dark-mode contrast
   - compact keyboard-open session layout
   - resilient app bar on narrow / enlarged-text screens
   - clearer secondary actions
========================================================== */
.mobile-appbar{grid-template-columns:42px minmax(0,1fr) 42px}
.mobile-appbar-title{min-width:0;overflow:hidden;padding:0 6px}
.mobile-appbar-title strong,.mobile-appbar-title small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-appbar-title strong{font-size:.96rem}
.mobile-appbar-title small{font-size:.67rem}
.session-target{
  box-sizing:border-box;
  display:block;
  width:100%;
  min-width:0;
  height:calc(3 * 1.58em + 34px);
  min-height:calc(3 * 1.58em + 34px);
  max-height:calc(3 * 1.58em + 34px);
  padding:17px 16px;
  line-height:1.58;
  white-space:normal!important;
  overflow-wrap:break-word;
  word-break:normal;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:none;
  overscroll-behavior:contain;
  background:#f4f8ff;
  border-color:#cad7e8;
  color:#17243a;
}
.session-target::-webkit-scrollbar{display:none}
.session-target span{white-space:pre-wrap}
.session-target .typed-correct{color:#087a47;font-weight:600}
.session-target .typed-wrong{background:#ffd8dd;color:#9f1239;font-weight:700;border-radius:4px}
.session-target .current{background:#1769ff;color:#fff;border-bottom:0;border-radius:4px;box-shadow:0 0 0 2px rgba(23,105,255,.18)}
html[data-theme="dark"] .session-target{background:#0c1b2b;border-color:#334862;color:#eef5ff}
html[data-theme="dark"] .session-target .typed-correct{color:#42d392}
html[data-theme="dark"] .session-target .typed-wrong{background:#7f1d34;color:#fff1f3}
html[data-theme="dark"] .session-target .current{background:#2f7fff;color:#fff}
@media(prefers-color-scheme:dark){html[data-theme="system"] .session-target{background:#0c1b2b;border-color:#334862;color:#eef5ff}html[data-theme="system"] .session-target .typed-correct{color:#42d392}html[data-theme="system"] .session-target .typed-wrong{background:#7f1d34;color:#fff1f3}html[data-theme="system"] .session-target .current{background:#2f7fff;color:#fff}}
.mobile-secondary{color:var(--mt-ink);border:1px solid var(--mt-border);background:var(--mt-blue-soft)}
.mobile-secondary.full{color:var(--mt-ink);font-weight:800}
@media(max-width:720px){
  .mobile-appbar{height:58px;padding-top:env(safe-area-inset-top)}
  .mobile-view{padding:20px 16px 24px}
  .mobile-home-view{padding-top:16px}
  .mobile-hero-copy h1{font-size:clamp(2.05rem,11vw,2.9rem);line-height:1.01;margin:10px 0 12px}
  .mobile-hero-copy p{font-size:.94rem;line-height:1.45}
  .phone-hero{height:164px;margin-top:12px}
  .phone-shell{height:156px;width:128px;border-width:7px;padding-top:31px}
  .hero-thumb{width:72px;height:128px}
  .hero-thumb-left{left:42px}.hero-thumb-right{right:42px}
  .mobile-action-card{min-height:102px;padding:13px}
  .session-target{font-size:1.02rem;height:calc(3 * 1.58em + 30px);min-height:calc(3 * 1.58em + 30px);max-height:calc(3 * 1.58em + 30px);padding:15px 14px}
  .session-input{min-height:72px;max-height:88px;padding:11px 12px;line-height:1.4}
  .session-input-label{margin-top:11px}
  .session-stats{margin-top:12px}
  .session-stats strong{font-size:1.05rem}
}
@media(max-width:420px){
  .mobile-appbar-title strong{font-size:.9rem}.mobile-appbar-title small{font-size:.61rem}
  .mobile-hero-copy h1{font-size:clamp(2rem,12vw,2.55rem)}
  .phone-hero{height:150px}
  .mobile-action-grid{gap:8px;padding:8px}.mobile-action-card{min-height:94px;padding:12px}
  .session-target{height:calc(2 * 1.55em + 28px);min-height:calc(2 * 1.55em + 28px);max-height:calc(2 * 1.55em + 28px);line-height:1.55}
}
.mobile-workspace.keyboard-open .mobile-appbar{height:52px}
.mobile-workspace.keyboard-open .mobile-appbar-title small{display:none}
.mobile-workspace.keyboard-open .mobile-session-view{padding-top:14px;padding-bottom:8px}
.mobile-workspace.keyboard-open .session-progress-line{margin-bottom:12px}
.mobile-workspace.keyboard-open .session-target{height:calc(2 * 1.5em + 26px);min-height:calc(2 * 1.5em + 26px);max-height:calc(2 * 1.5em + 26px);line-height:1.5;padding:12px 13px}
.mobile-workspace.keyboard-open .session-input-label{margin-top:8px}
.mobile-workspace.keyboard-open .session-input{min-height:58px;max-height:70px;padding:9px 11px}
.mobile-workspace.keyboard-open .session-stats{margin-top:9px;padding-top:9px}
.mobile-workspace.keyboard-open .session-actions{display:none}

/* ==========================================================
   v17.10.55 INPUT-LESS MOBILE TYPING + BRAND IDENTITY
   - remove visible typing textarea from mobile sessions
   - tap target passage to focus hidden input
   - keep centered app bar even on home screen
   - add compact TypingTutor identity mark
========================================================== */
.mobile-appbar-title{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.mobile-appbar-heading{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;max-width:100%}
.mobile-appbar-heading strong{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-appbar-logo{width:18px;height:18px;flex:0 0 18px;display:block}
.mobile-back.is-placeholder{visibility:hidden;pointer-events:none}
.session-target{cursor:text;position:relative}
.session-target.is-input-active{border-color:var(--mt-blue)!important;box-shadow:0 0 0 3px rgba(23,105,255,.12)}
.session-input-hidden{position:fixed!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;resize:none!important;background:transparent!important;color:transparent!important}
.session-input-hidden::placeholder{color:transparent}
@media(max-width:720px){
  .session-target{margin-bottom:12px}
  .session-stats{margin-top:0}
  .session-actions{margin-top:12px}
}
@media(max-width:420px){
  .mobile-appbar-logo{width:17px;height:17px;flex-basis:17px}
}
.game-scene{cursor:text}
.game-input-hidden{position:fixed!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;background:transparent!important;color:transparent!important}
@media(max-width:720px){
  .game-scene{height:252px}
  .game-footer-actions{margin-top:14px}
}

/* ==========================================================
   v17.10.56 REAL TYPINGTUTOR.ONLINE LOGO IN MOBILE MODULE
========================================================== */
.mobile-appbar-title{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px}
.mobile-appbar-brandmark{display:block;width:170px;max-width:100%;height:22px;object-fit:contain}
.mobile-appbar-title strong{display:block;font-family:Poppins,Inter,sans-serif;font-size:1rem;line-height:1.05}
.mobile-appbar-title small{display:block;color:var(--mt-muted);font-size:.72rem;margin-top:1px}
@media(max-width:420px){
  .mobile-appbar-brandmark{width:152px;height:20px}
  .mobile-appbar-title strong{font-size:.98rem}
  .mobile-appbar-title small{font-size:.69rem}
}

/* ==========================================================
   v17.10.57 LOGO-ONLY MOBILE HEADER
========================================================== */
.mobile-appbar-brandlink{display:inline-flex;align-items:center;justify-content:center;max-width:100%;text-decoration:none}
.mobile-appbar-hidden-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mobile-appbar-title{gap:3px}
.mobile-appbar-brandmark{display:block;width:166px;max-width:100%;height:22px;object-fit:contain}
.mobile-appbar-title small{display:block;color:var(--mt-muted);font-size:.78rem;line-height:1.15;margin-top:0}
@media(max-width:420px){
  .mobile-appbar-brandmark{width:150px;height:20px}
  .mobile-appbar-title small{font-size:.72rem}
}

/* ==========================================================
   v17.10.58 IN-MODULE TEST + ORIGINAL BRAND LOGO
========================================================== */
.mobile-appbar-title{gap:0}
.mobile-appbar-brandlink{height:42px;display:flex;align-items:center;justify-content:center;max-width:100%}
.mobile-appbar-brandmark{width:184px;height:38px;object-fit:contain}
.mobile-brand-dark{display:none}
.mobile-appbar-hidden-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html[data-theme="dark"] .mobile-brand-light{display:none}
html[data-theme="dark"] .mobile-brand-dark{display:block}
@media(prefers-color-scheme:dark){html[data-theme="system"] .mobile-brand-light{display:none}html[data-theme="system"] .mobile-brand-dark{display:block}}
.module-test-card{margin-top:20px;border:1px solid var(--mt-border);border-radius:20px;padding:20px;background:linear-gradient(180deg,var(--mt-blue-soft),var(--mt-panel))}
.module-test-icon{font-size:2rem;margin-bottom:8px}.module-test-card h3{margin:0;color:var(--mt-ink);font-size:1.12rem}.module-test-card>p{margin:7px 0 18px;color:var(--mt-muted);font-size:.82rem;line-height:1.5}.module-test-start{margin-top:14px}.module-test-secondary{margin-top:16px;padding:16px;border:1px solid var(--mt-border);border-radius:16px;background:var(--mt-panel)}.module-test-secondary strong{display:block;font-size:.9rem}.module-test-secondary p{font-size:.76rem;line-height:1.5;color:var(--mt-muted);margin:5px 0 10px}
@media(max-width:420px){.mobile-appbar-brandmark{width:168px;height:35px}.module-test-card{padding:17px}}

/* ==========================================================
   v17.10.59 INDEXABLE MOBILE TYPING CLUSTER + DESKTOP EXIT
========================================================== */
.mobile-desktop-link{display:grid;grid-template-columns:42px 1fr 20px;gap:10px;align-items:center;margin:12px 2px 2px;padding:11px 12px;border:1px solid var(--mt-border);border-radius:14px;background:var(--mt-panel);color:var(--mt-ink);text-decoration:none}
.mobile-desktop-link:hover{background:var(--mt-blue-soft);border-color:#b9cff4}
.mobile-desktop-icon{width:38px;height:38px;border-radius:11px;background:var(--mt-blue-soft);display:grid;place-items:center;font-size:1.05rem}
.mobile-desktop-link strong,.mobile-desktop-link small{display:block}.mobile-desktop-link strong{font-size:.78rem}.mobile-desktop-link small{color:var(--mt-muted);font-size:.67rem;margin-top:3px}.mobile-desktop-link b{color:var(--mt-muted);font-size:1.1rem}
.mobile-cluster-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px;padding-top:18px;border-top:1px solid var(--mt-border)}
.mobile-cluster-links a{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border:1px solid var(--mt-border);border-radius:999px;background:var(--mt-panel);color:var(--mt-blue);font-size:.78rem;font-weight:800;text-decoration:none}
.mobile-cluster-links a:hover{background:var(--mt-blue-soft)}
.mobile-view-heading h1,.lesson-intro-copy h1,.game-heading h1{font-family:Poppins,Inter,sans-serif;font-size:1.65rem;margin:0;color:var(--mt-ink);letter-spacing:-.025em}
.mobile-home-hidden-heading{font-family:Poppins,Inter,sans-serif;font-size:clamp(2.25rem,10vw,3.35rem);line-height:.98;letter-spacing:-.04em;margin:12px 0 14px;color:var(--mt-ink)}
.route-answer{margin:18px 0 0;padding:16px;border-radius:16px;background:var(--mt-blue-soft);color:var(--mt-ink);font-size:.86rem;line-height:1.6}
.route-answer strong{color:var(--mt-blue)}
.mobile-faq{margin-top:24px}.mobile-faq h2{font-family:Poppins,Inter,sans-serif;font-size:1.35rem;margin:0 0 10px}.mobile-faq details{border-top:1px solid var(--mt-border);padding:12px 0}.mobile-faq summary{cursor:pointer;font-weight:800;color:var(--mt-ink)}.mobile-faq p{margin:8px 0 0;color:var(--mt-muted);font-size:.84rem;line-height:1.65}
@media(max-width:720px){.mobile-desktop-link{margin-top:10px}.mobile-cluster-links{gap:6px}.mobile-cluster-links a{font-size:.72rem;min-height:36px;padding:7px 10px}}

/* ==========================================================
   v17.10.61 MOBILE FALLING LETTERS ENTRY CARD
========================================================== */
.mobile-new-game-card{display:grid;grid-template-columns:46px 1fr 18px;gap:11px;align-items:center;margin:12px 2px 0;padding:13px 14px;border:1px solid #b8d6ff;border-radius:16px;background:linear-gradient(135deg,#eaf5ff,#eef7ff 48%,#efffea);text-decoration:none;color:#10213c;box-shadow:0 8px 22px rgba(23,105,255,.08)}
.mobile-new-game-card:hover{border-color:#7eb4ff;transform:translateY(-1px)}
.mobile-new-game-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#2f80ff,#6b5cff);font-size:1.25rem;box-shadow:0 7px 15px rgba(23,105,255,.18)}
.mobile-new-game-card span:nth-child(2){min-width:0}.mobile-new-game-card small,.mobile-new-game-card strong,.mobile-new-game-card em{display:block}.mobile-new-game-card small{font-size:.58rem;font-weight:900;color:#1769ff;letter-spacing:.08em}.mobile-new-game-card strong{font:800 .96rem Poppins,Inter,sans-serif;margin-top:2px}.mobile-new-game-card em{font-style:normal;font-size:.68rem;color:#66758d;margin-top:2px;line-height:1.35}.mobile-new-game-card>b{font-size:1.25rem;color:#60718a}
html[data-theme="dark"] .mobile-new-game-card{background:linear-gradient(135deg,#142b4d,#182948 48%,#12332b);border-color:#31517c;color:#f4f7ff}html[data-theme="dark"] .mobile-new-game-card em{color:#a6b3c8}
@media(prefers-color-scheme:dark){html[data-theme="system"] .mobile-new-game-card{background:linear-gradient(135deg,#142b4d,#182948 48%,#12332b);border-color:#31517c;color:#f4f7ff}html[data-theme="system"] .mobile-new-game-card em{color:#a6b3c8}}
@media(max-width:420px){.mobile-new-game-card{grid-template-columns:42px 1fr 16px;padding:11px 12px}.mobile-new-game-icon{width:40px;height:40px}.mobile-new-game-card strong{font-size:.9rem}.mobile-new-game-card em{font-size:.63rem}}

/* ==========================================================
   v17.10.63 MOBILE FALLING LETTERS CARD + WEAK-KEY POLISH
========================================================== */
.mobile-action-card.falling{
  grid-column:1 / -1;
  min-height:96px;
  background:linear-gradient(135deg,#12b8d8 0%,#2575ff 58%,#5b5ff5 100%);
  position:relative;
  overflow:hidden
}
.mobile-action-card.falling::after{
  content:"NEW MOBILE GAME";
  position:absolute;
  top:12px;
  right:14px;
  font-size:.56rem;
  font-weight:900;
  letter-spacing:.08em;
  padding:5px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#fff
}
.mobile-action-card.falling span{margin-bottom:8px}
.mobile-action-card.falling strong{font-size:1.02rem}
@media(max-width:420px){
  .mobile-action-card.falling{min-height:90px}
  .mobile-action-card.falling::after{top:10px;right:10px;font-size:.52rem}
}

/* ==========================================================
   v17.10.92 HIGH-CONTRAST CURRENT CHARACTER
   A warm-yellow target remains clear in light, dark and
   system themes without changing the compact phone layout.
========================================================== */
.session-target .current{
  background:#ffd84d;
  color:#10213c;
  border-bottom:0;
  border-radius:4px;
  font-weight:900;
  box-shadow:
    0 0 0 2px #6f4b00,
    0 0 0 4px rgba(255,216,77,.38);
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone
}
.session-target .current-space{
  display:inline-block;
  min-width:.7em
}
html[data-theme="dark"] .session-target .current{
  background:#ffd84d;
  color:#10213c;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(255,216,77,.45)
}
@media(prefers-color-scheme:dark){
  html[data-theme="system"] .session-target .current{
    background:#ffd84d;
    color:#10213c;
    box-shadow:
      0 0 0 2px #fff,
      0 0 0 4px rgba(255,216,77,.45)
  }
}
.game-word{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  color:#174f39;
  letter-spacing:0;
  white-space:nowrap
}
.game-word>span{
  display:inline-grid;
  place-items:center;
  min-width:.72em;
  min-height:1.22em;
  border-radius:5px;
  padding:0 .05em
}
.game-word .game-letter-current{
  background:#ffd84d;
  color:#10213c;
  font-weight:900;
  box-shadow:
    0 0 0 2px #6f4b00,
    0 0 0 4px rgba(255,216,77,.38)
}
.game-word .game-letter-correct{
  background:#d9f9e8;
  color:#08623b
}
.game-word .game-letter-wrong{
  background:#b4233c;
  color:#fff;
  box-shadow:0 0 0 2px #7f1026
}
.game-word .game-letter-upcoming{color:#174f39}
html[data-theme="dark"] .game-word .game-letter-current{
  background:#ffd84d;
  color:#10213c;
  box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(255,216,77,.45)
}
html[data-theme="dark"] .game-word .game-letter-correct{
  background:#174a36;
  color:#8cf2ba
}
html[data-theme="dark"] .game-word .game-letter-upcoming{color:#d9f8e8}
@media(prefers-color-scheme:dark){
  html[data-theme="system"] .game-word .game-letter-current{
    background:#ffd84d;
    color:#10213c;
    box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(255,216,77,.45)
  }
  html[data-theme="system"] .game-word .game-letter-correct{
    background:#174a36;
    color:#8cf2ba
  }
  html[data-theme="system"] .game-word .game-letter-upcoming{color:#d9f8e8}
}

/* v17.10.299 — phone-specific learning route below mobile activities */
.mobile-editorial{margin-top:25px;padding-top:24px;border-top:1px solid var(--mt-border);color:var(--mt-ink);line-height:1.7}
.mobile-editorial h2{font-family:Poppins,Inter,sans-serif;font-size:clamp(20px,3vw,25px);line-height:1.3;margin:0 0 10px}.mobile-editorial h3{font-size:1rem;margin:20px 0 8px}.mobile-editorial p{color:var(--mt-muted);margin:10px 0}.mobile-editorial ol{padding-left:23px;margin:12px 0}.mobile-editorial li{margin:8px 0}.mobile-editorial a{color:var(--mt-blue);text-underline-offset:3px}

