/* 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/keyboard.css */
#keyboardContainer {

    width: 100%;
    max-width: 1120px;

    margin: 20px auto 40px;

    padding: 22px;

    background: #fff;

    border-radius: 26px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, .08);

}

.keyboard-row {

    display: flex;

    gap: 8px;

}

.key {

    position: relative;

    flex: 1;

    min-width: 52px;

    height: 66px;

    background: #ffffff;

    border: 1px solid #D9E0E8;

    border-radius: 10px;

    box-shadow:
                0 1px 2px rgba(0, 0, 0, .06),
                0 6px 14px rgba(0, 0, 0, .05);

    display: flex;

    justify-content: center;

    align-items: flex-end;

    padding-bottom: 10px;

    transition: .075s;

    cursor: default;

}

.key:hover {

    transform: translateY(-2px);

}

.key-primary {

    font-size: 18px;

    font-weight: 600;

    color: #1F2937;

}

.key-secondary {

    position: absolute;

    top: 8px;

    left: 8px;

    font-size: 11px;

    color: #7A8796;

}

.home-bump {

    position: absolute;

    bottom: 5px;

    left: 50%;

    transform: translateX(-50%);

    width: 20px;

    height: 3px;

    border-radius: 2px;

    background: #555;

}

.key-next {

    background: #2F67F6;

    color: #fff;

    border-color: #2F67F6;

    box-shadow:
        0 0 0 4px rgba(47, 103, 246, .15);

}
.key-pressed {

    transform: translateY(3px);

}

.key-correct {
    background: #22C55E;
    border-color: #22C55E;
}

.key-correct .key-primary,
.key-correct .key-secondary {
    color: #fff;
}

.key-correct .home-bump {
    background: #fff;
}
.key-wrong {
    background: #EF4444;
    border-color: #EF4444;
}

.key-wrong .key-primary,
.key-wrong .key-secondary {
    color: #fff;
}

.key-wrong .home-bump {
    background: #fff;
}

/* ==========================================================
   LARGER KEYBOARD TEXT v6.2
========================================================== */

/*
 * Increase key-label readability without changing key widths
 * or the responsive keyboard layout.
 */
.key-primary {
    font-size: clamp(13px, 1.12vw, 18px);
    font-weight: 800;
    line-height: 1;
}

.key-secondary {
    font-size: clamp(8px, .78vw, 12px);
    font-weight: 700;
    line-height: 1;
}

/* Laptop */
@media (max-width: 1100px) {

    .key-primary {
        font-size: 14px;
    }

    .key-secondary {
        font-size: 9px;
    }

}

/* Tablet */
@media (max-width: 760px) {

    .key-primary {
        font-size: 12px;
    }

    .key-secondary {
        font-size: 8px;
    }

}

/* Small mobile */
@media (max-width: 460px) {

    .key-primary {
        font-size: 9px;
    }

}

/* Source: /css/keyboard-types.css */
/* ==========================================================
   TypingTutor.Online
   Stable ANSI Keyboard Layout v17.0.3
   File: css/keyboard-types.css
========================================================== */

#keyboardContainer {
    --keyboard-type-max-width: 1120px;
    --keyboard-type-padding: 22px;
    --keyboard-type-key-height: 66px;
    --keyboard-type-row-gap: 8px;

    max-width:
        var(--keyboard-type-max-width);

    padding:
        var(--keyboard-type-padding);
}

#keyboardContainer .keyboard-row {
    gap: var(--keyboard-type-row-gap);
}

#keyboardContainer .keyboard-row + .keyboard-row {
    margin-top: var(--keyboard-type-row-gap);
}

#keyboardContainer .keyboard-key-spacer {
    min-width: 0;
    pointer-events: none;
}

#keyboardContainer .key {
    height: var(--keyboard-type-key-height);
    min-width: 0;
}

#keyboardContainer .key-primary {
    white-space: nowrap;
}

#keyboardContainer[data-keyboard-type="ansi-us"] {
    --keyboard-type-max-width: 1120px;
}

/* Dark mode inherits the existing keyboard palette. */
html[data-theme="dark"]
#keyboardContainer[data-keyboard-type] {
    color-scheme: dark;
}

/* Reduced motion */
html[data-reduced-motion="true"]
#keyboardContainer .key {
    transition: none !important;
}

@media (max-width: 1100px) {
    #keyboardContainer {
        --keyboard-type-padding: 16px;
        --keyboard-type-row-gap: 6px;
    }
}

@media (max-width: 760px) {
    /*
     * The tutor already hides its full on-screen keyboard on mobile.
     * These values keep the engine safe if that preference is changed.
     */
    #keyboardContainer {
        --keyboard-type-padding: 10px;
        --keyboard-type-row-gap: 4px;
        --keyboard-type-key-height: 50px;
    }
}


/* ==========================================================
   STABLE US ANSI PRODUCTION LAYOUT v17.0.3
========================================================== */

/*
 * The production keyboard and all three hand-guidance modes are calibrated
 * together at this width. The keyboard remains centered and the card does
 * not reserve unused space for an experimental compact layout.
 */
html[data-keyboard-type="ansi-us"] #keyboardContainer,
#keyboardContainer[data-keyboard-type="ansi-us"] {
    width: 100%;
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

html[data-keyboard-type="ansi-us"] .keyboard-guidance-card {
    --active-keyboard-width: 1120px;
}

/* 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/site-section-header-v17.5.3.css */
/* ==========================================================
   TypingTutor.Online
   Shared Section Header Polish v17.5.3
========================================================== */

.test-logo-stack {
    position: relative;
    display: block;
    width: min(280px, 100%);
    min-width: 0;
    aspect-ratio: 280 / 58;
}

.test-logo-stack .test-logo-light,
.test-logo-stack .test-logo-dark {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    transition: opacity .16s ease;
}

.test-logo-stack .test-logo-dark {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

html[data-theme="light"] .test-logo-light,
html[data-theme="system"] .test-logo-light {
    opacity: 1;
}

html[data-theme="light"] .test-logo-dark {
    opacity: 0;
}

html[data-theme="dark"] .test-logo-light {
    opacity: 0;
}

html[data-theme="dark"] .test-logo-dark {
    opacity: 1;
}

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

    html[data-theme="system"] .test-logo-dark {
        opacity: 1;
    }
}

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

    html[data-theme="system"] .test-logo-dark {
        opacity: 0;
    }
}

/* The homepage Theme manager creates this exact three-part button. */
.test-header-inner > #themeButton .theme-button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1px;
    font-size: .75em;
    line-height: 1;
}

@media (max-width: 560px) {
    .test-logo-stack {
        width: min(190px, 100%);
    }
}

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

/* 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: /kids/kids.css */
:root{--kids-blue:#1769ff;--kids-purple:#7c3aed;--kids-yellow:#fbbf24;--kids-green:#10b981;--kids-pink:#ec4899;--kids-ink:#0f172a;--kids-soft:#eff6ff}.kids-site-header{position:sticky;top:0;z-index:60}.kids-subnav{display:flex;gap:8px;overflow-x:auto;padding:10px max(16px,calc((100vw - 1280px)/2));background:var(--surface,#fff);border-bottom:1px solid var(--border,#dbe4f0);scrollbar-width:none}.kids-subnav::-webkit-scrollbar{display:none}.kids-subnav a{white-space:nowrap;padding:9px 13px;border-radius:999px;color:var(--muted,#52627a);font-weight:700;font-size:13px}.kids-subnav a[aria-current=page],.kids-subnav a:hover{color:#fff;background:var(--kids-blue)}.kids-shell{width:min(1240px,calc(100% - 32px));margin:0 auto;padding:24px 0 64px}.kids-breadcrumbs{font-size:13px;color:var(--muted,#64748b);margin-bottom:16px}.kids-breadcrumbs a{color:var(--kids-blue)}.kids-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:22px;align-items:center;padding:clamp(26px,5vw,58px);border-radius:30px;background:linear-gradient(135deg,#eff6ff 0%,#f5f3ff 48%,#fff7ed 100%);border:1px solid #cfe0ff;box-shadow:0 22px 60px rgba(30,64,175,.12);overflow:hidden}.kids-hero h1{font-size:clamp(38px,6vw,70px);line-height:1.02;margin:10px 0 16px;color:#0f172a}.kids-hero p{font-size:clamp(17px,2vw,21px);line-height:1.7;color:#42526b;max-width:720px}.kids-eyebrow{display:inline-flex;gap:8px;align-items:center;padding:8px 12px;border-radius:999px;background:#fff;color:#1d4ed8;font-weight:800;font-size:13px}.kids-hero-actions,.kids-card-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.kids-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 18px;border:0;border-radius:14px;background:var(--kids-blue);color:#fff;font-weight:800;box-shadow:0 12px 26px rgba(23,105,255,.22);cursor:pointer}.kids-button.secondary{background:#fff;color:#1d4ed8;border:1px solid #bfd4ff;box-shadow:none}.kids-mascot{min-height:280px;display:grid;place-items:center;position:relative}.kids-mascot-main{font-size:130px;filter:drop-shadow(0 20px 25px rgba(76,29,149,.18));animation:kidsFloat 3s ease-in-out infinite}.kids-mascot-bubble{position:absolute;right:0;top:10px;max-width:230px;padding:15px 17px;background:#fff;border-radius:18px 18px 4px 18px;color:#334155;font-weight:700;box-shadow:0 14px 30px rgba(15,23,42,.12)}@keyframes kidsFloat{50%{transform:translateY(-10px) rotate(2deg)}}.kids-stats-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.kids-stat-card{padding:18px;border-radius:20px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0);text-align:center}.kids-stat-card span{display:block;color:var(--muted,#64748b);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.kids-stat-card strong{display:block;margin-top:6px;font-size:30px;color:var(--kids-blue)}.kids-section{margin-top:34px}.kids-section-heading{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:16px}.kids-section-heading h2{font-size:clamp(27px,4vw,40px);margin:0}.kids-section-heading p{max-width:620px;color:var(--muted,#64748b);line-height:1.65}.kids-path-grid,.kids-feature-grid,.kids-test-grid,.kids-game-grid,.kids-badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.kids-path-card,.kids-feature-card,.kids-test-card,.kids-game-card,.kids-badge-card{position:relative;padding:24px;border-radius:24px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0);box-shadow:0 12px 34px rgba(15,23,42,.06);overflow:hidden}.kids-path-card::before{content:"";position:absolute;inset:0 0 auto;height:6px;background:var(--card-color,var(--kids-blue))}.kids-path-card[data-path=little]{--card-color:#f59e0b}.kids-path-card[data-path=young]{--card-color:#7c3aed}.kids-path-card[data-path=junior]{--card-color:#0ea5e9}.kids-card-icon{font-size:44px}.kids-path-card h3,.kids-feature-card h3,.kids-test-card h2,.kids-game-card h2{font-size:23px;margin:14px 0 8px}.kids-path-card p,.kids-feature-card p,.kids-test-card p,.kids-game-card p{color:var(--muted,#64748b);line-height:1.65}.kids-path-meta{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.kids-path-meta span{padding:6px 9px;border-radius:999px;background:var(--kids-soft);color:#1d4ed8;font-size:12px;font-weight:800}.kids-journey{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));gap:12px;overflow-x:auto;padding:12px 2px 18px}.journey-step{min-width:130px;text-align:center;padding:18px 12px;border-radius:20px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0)}.journey-step span{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 10px;border-radius:50%;background:linear-gradient(135deg,#dbeafe,#ede9fe);font-size:28px}.journey-step strong{display:block;font-size:14px}.journey-step small{color:var(--muted,#64748b)}.kids-note{padding:20px 22px;border-radius:20px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.kids-note strong{display:block;font-size:18px;margin-bottom:5px}.kids-app-grid{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:20px;align-items:start}.kids-lesson-sidebar{position:sticky;top:148px;max-height:calc(100vh - 170px);overflow:auto;padding:16px;border-radius:22px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0)}.kids-lesson-group+ .kids-lesson-group{margin-top:18px}.kids-lesson-group h3{display:flex;justify-content:space-between;gap:8px;font-size:15px;margin:0 0 8px}.kids-lesson-group h3 small{font-size:11px;color:var(--muted,#64748b)}.kids-lesson-group button{display:grid;grid-template-columns:34px 1fr;gap:0 10px;width:100%;padding:10px;border:0;border-radius:13px;background:transparent;text-align:left;color:inherit;cursor:pointer}.kids-lesson-group button:hover,.kids-lesson-group button.is-complete{background:var(--kids-soft)}.kids-lesson-group button>span{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#e2e8f0;font-weight:800}.kids-lesson-group button.is-complete>span{background:#d1fae5;color:#047857}.kids-lesson-group strong{font-size:13px}.kids-lesson-group small{font-size:11px;color:var(--muted,#64748b)}.kids-practice-card{border-radius:26px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0);overflow:hidden;box-shadow:0 18px 44px rgba(15,23,42,.07)}.kids-practice-head{display:flex;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid var(--border,#dbe4f0)}.kids-practice-head h1{font-size:clamp(24px,3vw,34px);margin:0}.kids-practice-head p{margin:6px 0 0;color:var(--muted,#64748b)}.kids-live-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:14px 18px;background:var(--surface-2,#f8fafc)}.kids-live-stat{text-align:center;padding:10px;border-radius:13px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0)}.kids-live-stat span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted,#64748b);font-weight:800}.kids-live-stat strong{display:block;margin-top:3px;color:var(--kids-blue);font-size:21px}.kids-text-area{min-height:240px;padding:28px;display:flex;align-items:center;justify-content:center}.kids-text{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:clamp(26px,3.4vw,43px);line-height:1.65;letter-spacing:.045em;text-align:center}.kids-char{display:inline-block;border-radius:.14em}.kids-char.future{color:var(--text,#0f172a)}.kids-char.typed{color:#94a3b8}.kids-char.current{color:#fff;background:var(--kids-blue);box-shadow:0 0 0 .08em rgba(23,105,255,.25)}.kids-progress-track{height:7px;background:#e2e8f0}.kids-progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#22c55e,#3b82f6);transition:width .2s}.kids-keyboard-wrap{padding:18px;background:var(--surface-2,#f8fafc)}#kidsKeyboard{width:100%}.kids-results{min-height:330px;display:grid;place-items:center;text-align:center;padding:38px}.kids-results-inner{max-width:650px}.kids-result-stars{font-size:44px;letter-spacing:8px}.kids-results h2{font-size:38px;margin:14px 0 8px}.kids-results p{font-size:18px;color:var(--muted,#64748b);line-height:1.6}.kids-result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:20px}.kids-test-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px}.kids-side-card{padding:20px;border-radius:22px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0)}.kids-side-card h2{font-size:20px}.kids-side-card p,.kids-side-card li{color:var(--muted,#64748b);line-height:1.6}.kids-game-stage{min-height:300px;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at top,#dbeafe,#f8fafc 70%);border-radius:24px}.pop-bubble{display:grid;place-items:center;width:150px;height:150px;border-radius:50%;background:linear-gradient(135deg,#60a5fa,#7c3aed);color:#fff;font-size:76px;font-weight:900;box-shadow:0 24px 50px rgba(79,70,229,.28);animation:kidsFloat 2s ease-in-out infinite}.race-letter{font-size:60px;color:#94a3b8;font-weight:900}.race-letter.done{color:#22c55e}.race-letter.now{color:#fff;background:var(--kids-blue);border-radius:10px;padding:0 5px}.race-track{height:22px;border-radius:999px;background:#dbeafe;overflow:hidden;margin-top:20px}.race-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#22c55e,#3b82f6);transition:width .25s}.kids-badge-card{text-align:center}.kids-badge-card .kids-card-icon{display:block}.kids-badge-card.is-locked{opacity:.55;filter:grayscale(.5)}.kids-content-card{padding:clamp(22px,4vw,42px);border-radius:26px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0);margin-top:20px}.kids-content-card h1{font-size:clamp(34px,5vw,55px)}.kids-content-card h2{margin-top:28px;font-size:27px}.kids-content-card p,.kids-content-card li{color:var(--muted,#52627a);line-height:1.75}.kids-content-card ul{padding-left:22px}.kids-table{width:100%;border-collapse:collapse;margin:20px 0}.kids-table th,.kids-table td{padding:13px;border-bottom:1px solid var(--border,#dbe4f0);text-align:left}.kids-table th{color:#1d4ed8}.kids-game-message{text-align:center;font-weight:800;color:#1d4ed8;margin:12px 0}.kids-game-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.kids-game-target strong{display:block;font-size:34px}.kids-game-target small{display:block;margin-top:10px;color:var(--muted,#64748b)}html[data-theme=dark] .kids-hero{background:linear-gradient(135deg,#111c34,#22183d 55%,#2b2114);border-color:#334155}html[data-theme=dark] .kids-hero h1{color:#f8fafc}html[data-theme=dark] .kids-hero p{color:#cbd5e1}html[data-theme=dark] .kids-eyebrow,html[data-theme=dark] .kids-mascot-bubble{background:#172033;color:#dbeafe}html[data-theme=dark] .kids-note{background:#052e28;border-color:#065f46;color:#a7f3d0}html[data-theme=dark] .kids-game-stage{background:radial-gradient(circle at top,#172554,#111827 70%)}@media(prefers-color-scheme:dark){html[data-theme=system] .kids-hero{background:linear-gradient(135deg,#111c34,#22183d 55%,#2b2114);border-color:#334155}html[data-theme=system] .kids-hero h1{color:#f8fafc}html[data-theme=system] .kids-hero p{color:#cbd5e1}html[data-theme=system] .kids-eyebrow,html[data-theme=system] .kids-mascot-bubble{background:#172033;color:#dbeafe}html[data-theme=system] .kids-note{background:#052e28;border-color:#065f46;color:#a7f3d0}html[data-theme=system] .kids-game-stage{background:radial-gradient(circle at top,#172554,#111827 70%)}}@media(max-width:1050px){.kids-hero{grid-template-columns:1fr}.kids-mascot{min-height:210px}.kids-path-grid,.kids-feature-grid,.kids-test-grid,.kids-game-grid,.kids-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kids-app-grid{grid-template-columns:1fr}.kids-lesson-sidebar{position:static;max-height:none}.kids-test-layout{grid-template-columns:1fr}}@media(max-width:720px){.kids-shell{width:min(100% - 20px,1240px);padding-top:14px}.kids-hero{padding:25px 20px;border-radius:23px}.kids-mascot-main{font-size:95px}.kids-mascot-bubble{position:static;margin-left:12px}.kids-stats-strip,.kids-path-grid,.kids-feature-grid,.kids-test-grid,.kids-game-grid,.kids-badge-grid{grid-template-columns:1fr}.kids-section-heading{display:block}.kids-live-stats{grid-template-columns:repeat(2,1fr)}.kids-text-area{min-height:205px;padding:20px 13px}.kids-text{font-size:clamp(23px,7vw,31px);line-height:1.55}.kids-keyboard-wrap{padding:9px;overflow-x:auto}#kidsKeyboard{min-width:780px}.kids-practice-head{display:block}.kids-results h2{font-size:30px}.kids-game-stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:480px){.kids-hero-actions,.kids-card-actions,.kids-result-actions{display:grid}.kids-button{width:100%}.kids-stat-card strong{font-size:25px}.kids-live-stat strong{font-size:18px}.kids-content-card{padding:20px 17px}.kids-table{font-size:13px}.race-letter{font-size:42px}}


/* ==========================================================
   Complete Kids Experience v17.6.1
========================================================== */
/* The shared section-header stylesheet is now loaded on every Kids page.
   These final rules also protect against a cached older header stylesheet. */
.kids-site-header .test-logo-stack{
    position:relative!important;
    display:block!important;
    width:min(280px,100%)!important;
    aspect-ratio:280/58!important;
    overflow:hidden!important;
}
.kids-site-header .test-logo-stack .test-logo-light,
.kids-site-header .test-logo-stack .test-logo-dark{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:left center!important;
}
html[data-theme="light"] .kids-site-header .test-logo-light{opacity:1!important}
html[data-theme="light"] .kids-site-header .test-logo-dark{opacity:0!important}
html[data-theme="dark"] .kids-site-header .test-logo-light{opacity:0!important}
html[data-theme="dark"] .kids-site-header .test-logo-dark{opacity:1!important}
@media(prefers-color-scheme:dark){html[data-theme="system"] .kids-site-header .test-logo-light{opacity:0!important}html[data-theme="system"] .kids-site-header .test-logo-dark{opacity:1!important}}
@media(prefers-color-scheme:light){html[data-theme="system"] .kids-site-header .test-logo-light{opacity:1!important}html[data-theme="system"] .kids-site-header .test-logo-dark{opacity:0!important}}

.kids-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:18px;align-items:stretch}
.kids-goal-card,.kids-continue-card,.kids-progress-card,.kids-history-card,.kids-certificate-path{padding:24px;border-radius:24px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0);box-shadow:0 12px 34px rgba(15,23,42,.06)}
.kids-goal-layout{display:grid;grid-template-columns:150px 1fr;gap:22px;align-items:center}
.kids-goal-ring{--goal-progress:0;position:relative;display:grid;place-items:center;width:140px;aspect-ratio:1;border-radius:50%;background:conic-gradient(var(--kids-blue) calc(var(--goal-progress)*1%),#dbeafe 0)}
.kids-goal-ring::before{content:"";position:absolute;inset:13px;border-radius:50%;background:var(--surface,#fff)}
.kids-goal-ring>div{position:relative;text-align:center}.kids-goal-ring strong{display:block;font-size:31px;color:var(--kids-blue)}.kids-goal-ring span{font-size:11px;color:var(--muted,#64748b);font-weight:800;text-transform:uppercase}
.kids-goal-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}.kids-select,.kids-input,.kids-textarea{width:100%;padding:12px 14px;border:1px solid var(--border,#cbd5e1);border-radius:13px;background:var(--surface,#fff);color:var(--text,#0f172a);font:inherit}.kids-select{width:auto}.kids-textarea{min-height:120px;resize:vertical}
.kids-progress-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kids-progress-metric{padding:18px;border-radius:19px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0);text-align:center}.kids-progress-metric span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted,#64748b);font-weight:800}.kids-progress-metric strong{display:block;margin-top:7px;font-size:27px;color:var(--kids-blue)}
.kids-week-chart{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;align-items:end;min-height:190px;margin-top:18px}.kids-day-column{display:grid;grid-template-rows:1fr auto auto;gap:6px;align-items:end;text-align:center;min-width:0}.kids-day-bar-wrap{height:130px;border-radius:12px;background:var(--surface-2,#eef2f7);display:flex;align-items:flex-end;overflow:hidden}.kids-day-bar{width:100%;min-height:3px;background:linear-gradient(180deg,#60a5fa,#1769ff);border-radius:12px 12px 0 0}.kids-day-column strong{font-size:12px}.kids-day-column small{font-size:10px;color:var(--muted,#64748b)}
.kids-activity-list{display:grid;gap:10px;margin-top:15px}.kids-activity-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border-radius:15px;background:var(--surface-2,#f8fafc);border:1px solid var(--border,#e2e8f0)}.kids-activity-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#dbeafe;font-size:21px}.kids-activity-item h3{font-size:14px;margin:0}.kids-activity-item p{margin:3px 0 0;font-size:12px;color:var(--muted,#64748b)}.kids-activity-item time{font-size:11px;color:var(--muted,#64748b)}
.kids-personal-best{padding:14px;border-radius:16px;background:#eff6ff;color:#1d4ed8;margin-bottom:14px}.kids-personal-best strong{display:block;font-size:24px}.kids-test-history{display:grid;gap:7px;margin-top:12px}.kids-test-history div{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--border,#e2e8f0);font-size:12px}
.kids-custom-panel{padding:18px;background:var(--surface-2,#f8fafc);border-bottom:1px solid var(--border,#dbe4f0)}.kids-custom-panel label{display:block;font-weight:800;margin-bottom:8px}.kids-custom-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.kids-game-emoji{font-size:100px;filter:drop-shadow(0 16px 20px rgba(15,23,42,.14))}.kids-falling-letter{position:relative;font-size:82px;font-weight:900;color:#fff;background:linear-gradient(135deg,#38bdf8,#7c3aed);width:132px;height:132px;display:grid;place-items:center;border-radius:50%;animation:kidsFall 3.2s linear infinite;box-shadow:0 20px 40px rgba(79,70,229,.25)}@keyframes kidsFall{from{transform:translateY(-70px)}to{transform:translateY(70px)}}.kids-treasure-map{display:grid;grid-template-columns:repeat(10,1fr);gap:7px;width:min(700px,100%)}.kids-treasure-step{height:52px;border-radius:14px;background:#dbeafe;display:grid;place-items:center;font-weight:900;color:#64748b}.kids-treasure-step.done{background:#fbbf24;color:#78350f}.kids-treasure-step.current{background:#1769ff;color:#fff;box-shadow:0 0 0 4px rgba(23,105,255,.18)}.kids-sentence-scene{font-size:76px;margin-bottom:18px}.kids-game-target-text{font-size:clamp(28px,4vw,46px);line-height:1.55;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}.kids-game-target-text .done{color:#22c55e}.kids-game-target-text .now{color:#fff;background:#1769ff;border-radius:.18em;padding:0 .08em}
.kids-certificate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.kids-certificate-path{position:relative;overflow:hidden}.kids-certificate-path::before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,#1769ff,#7c3aed)}.kids-certificate-path h2{font-size:22px;margin:12px 0 7px}.kids-certificate-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:800}.kids-certificate-status.eligible{background:#d1fae5;color:#047857}.kids-certificate-status.locked{background:#e2e8f0;color:#475569}.kids-criteria-list{padding-left:20px;color:var(--muted,#64748b);line-height:1.65}.kids-certificate-preview{margin-top:22px}.kids-certificate-preview canvas{display:block;width:100%;height:auto;border-radius:18px;box-shadow:0 18px 50px rgba(15,23,42,.16)}.kids-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.kids-form-grid .full{grid-column:1/-1}.kids-certificate-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.kids-report-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.kids-danger-button{background:#fff;color:#dc2626;border:1px solid #fca5a5;box-shadow:none}
html[data-theme=dark] .kids-goal-ring{background:conic-gradient(var(--kids-blue) calc(var(--goal-progress)*1%),#243044 0)}html[data-theme=dark] .kids-personal-best{background:#172554;color:#bfdbfe}html[data-theme=dark] .kids-activity-icon{background:#172554}html[data-theme=dark] .kids-certificate-status.locked{background:#263244;color:#cbd5e1}
@media(prefers-color-scheme:dark){html[data-theme=system] .kids-goal-ring{background:conic-gradient(var(--kids-blue) calc(var(--goal-progress)*1%),#243044 0)}html[data-theme=system] .kids-personal-best{background:#172554;color:#bfdbfe}html[data-theme=system] .kids-activity-icon{background:#172554}html[data-theme=system] .kids-certificate-status.locked{background:#263244;color:#cbd5e1}}
@media(max-width:1050px){.kids-dashboard-grid{grid-template-columns:1fr}.kids-certificate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kids-progress-overview{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.kids-goal-layout{grid-template-columns:1fr;text-align:center}.kids-goal-ring{margin-inline:auto}.kids-certificate-grid{grid-template-columns:1fr}.kids-form-grid{grid-template-columns:1fr}.kids-form-grid .full{grid-column:auto}.kids-week-chart{gap:5px}.kids-activity-item{grid-template-columns:38px minmax(0,1fr)}.kids-activity-item time{grid-column:2}.kids-progress-overview{grid-template-columns:repeat(2,1fr)}}
@media print{.kids-site-header,.kids-subnav,.universal-site-footer,.kids-report-actions{display:none!important}.kids-shell{width:100%;padding:0}.kids-content-card,.kids-progress-card,.kids-history-card{box-shadow:none;border-color:#cbd5e1}}


/* ==========================================================
   KIDS KEYBOARD + ANIMATED HAND GUIDE v17.6.2
========================================================== */

.kids-keyboard-wrap {
    position: relative;
    overflow: hidden;
}

.kids-keyboard-stage {
    position: relative;
    width: 100% !important;
    max-width: none !important;
    overflow: hidden;
    border-radius: 0;
}

.kids-keyboard-stage #keyboardContainer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/*
 * The earlier Kids keyboard used the generic 52px minimum key width.
 * That forced the number row beyond the available card width and squeezed
 * Backspace into the neighbouring Equal key. The physical layout can now
 * distribute every key according to its real width ratio.
 */
.kids-keyboard-wrap .keyboard-row {
    width: 100%;
}

.kids-keyboard-wrap .key {
    min-width: 0 !important;
}

.kids-keyboard-wrap .key-backspace {
    flex-shrink: 1 !important;
    overflow: hidden;
}

.kids-keyboard-wrap .key-backspace .key-primary {
    max-width: 100%;
    padding: 0 4px;
    overflow: hidden;
    font-size: clamp(10px, 1.05vw, 15px) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kids-hand-guide-controls {
    position: relative;
    z-index: 35;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 12px 2px;
}

.kids-hand-guide-label {
    margin-right: 3px;
    color: var(--muted, #64748b);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.kids-hand-guide-controls button {
    min-height: 34px;
    padding: 7px 12px;
    color: var(--muted, #52627a);
    background: var(--surface, #fff);
    border: 1px solid var(--border, #dbe4f0);
    border-radius: 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        color .16s ease,
        background .16s ease,
        border-color .16s ease,
        transform .16s ease;
}

.kids-hand-guide-controls button:hover {
    transform: translateY(-1px);
    border-color: #93b4ff;
}

.kids-hand-guide-controls button.is-active,
.kids-hand-guide-controls button[aria-pressed="true"] {
    color: #fff;
    background: var(--kids-blue, #1769ff);
    border-color: var(--kids-blue, #1769ff);
    box-shadow: 0 7px 18px rgba(23, 105, 255, .20);
}

.kids-hands-cache {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Make the over-keyboard hands fit the shorter Kids keyboard card. */
.kids-keyboard-stage #handsKeyboardOverlay,
.kids-keyboard-stage #handsClassicOverlay {
    top: 47%;
    right: 4%;
    bottom: -3%;
    left: 4%;
}

/* Dark appearance for every Kids keyboard: lessons, tests, and games. */
html[data-theme="dark"] .kids-keyboard-wrap {
    background: #0b1322;
    border-color: #2d3b52;
}

html[data-theme="dark"] .kids-keyboard-stage {
    background: #101a2b;
}

html[data-theme="dark"] .kids-keyboard-wrap .key {
    color: #f8fafc !important;
    background: #1b2940 !important;
    border-color: #40516d !important;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, .24),
        0 7px 15px rgba(0, 0, 0, .20) !important;
}

html[data-theme="dark"] .kids-keyboard-wrap .key-primary {
    color: #f8fafc !important;
}

html[data-theme="dark"] .kids-keyboard-wrap .key-secondary {
    color: #a9b8cc !important;
}

html[data-theme="dark"] .kids-keyboard-wrap .home-bump {
    background: #cbd5e1 !important;
}

html[data-theme="dark"] .kids-keyboard-wrap .key-next {
    color: #fff !important;
    background: #2f6df6 !important;
    border-color: #76a2ff !important;
    box-shadow: 0 0 0 4px rgba(47, 109, 246, .24) !important;
}

html[data-theme="dark"] .kids-keyboard-wrap .key-next .key-primary,
html[data-theme="dark"] .kids-keyboard-wrap .key-next .key-secondary,
html[data-theme="dark"] .kids-keyboard-wrap .key-correct .key-primary,
html[data-theme="dark"] .kids-keyboard-wrap .key-correct .key-secondary,
html[data-theme="dark"] .kids-keyboard-wrap .key-wrong .key-primary,
html[data-theme="dark"] .kids-keyboard-wrap .key-wrong .key-secondary {
    color: #fff !important;
}

html[data-theme="dark"] .kids-keyboard-wrap .key-correct {
    background: #16a34a !important;
    border-color: #4ade80 !important;
}

html[data-theme="dark"] .kids-keyboard-wrap .key-wrong {
    background: #dc2626 !important;
    border-color: #fb7185 !important;
}

html[data-theme="dark"] .kids-hand-guide-controls button {
    color: #d6e0ee;
    background: #172235;
    border-color: #40506a;
}

html[data-theme="dark"] .kids-hand-guide-controls button.is-active,
html[data-theme="dark"] .kids-hand-guide-controls button[aria-pressed="true"] {
    color: #fff;
    background: #2f6df6;
    border-color: #76a2ff;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] .kids-keyboard-wrap {
        background: #0b1322;
        border-color: #2d3b52;
    }

    html[data-theme="system"] .kids-keyboard-stage {
        background: #101a2b;
    }

    html[data-theme="system"] .kids-keyboard-wrap .key {
        color: #f8fafc !important;
        background: #1b2940 !important;
        border-color: #40516d !important;
        box-shadow:
            0 1px 2px rgba(0, 0, 0, .24),
            0 7px 15px rgba(0, 0, 0, .20) !important;
    }

    html[data-theme="system"] .kids-keyboard-wrap .key-primary {
        color: #f8fafc !important;
    }

    html[data-theme="system"] .kids-keyboard-wrap .key-secondary {
        color: #a9b8cc !important;
    }

    html[data-theme="system"] .kids-keyboard-wrap .home-bump {
        background: #cbd5e1 !important;
    }

    html[data-theme="system"] .kids-keyboard-wrap .key-next {
        color: #fff !important;
        background: #2f6df6 !important;
        border-color: #76a2ff !important;
        box-shadow: 0 0 0 4px rgba(47, 109, 246, .24) !important;
    }

    html[data-theme="system"] .kids-keyboard-wrap .key-next .key-primary,
    html[data-theme="system"] .kids-keyboard-wrap .key-next .key-secondary,
    html[data-theme="system"] .kids-keyboard-wrap .key-correct .key-primary,
    html[data-theme="system"] .kids-keyboard-wrap .key-correct .key-secondary,
    html[data-theme="system"] .kids-keyboard-wrap .key-wrong .key-primary,
    html[data-theme="system"] .kids-keyboard-wrap .key-wrong .key-secondary {
        color: #fff !important;
    }

    html[data-theme="system"] .kids-keyboard-wrap .key-correct {
        background: #16a34a !important;
        border-color: #4ade80 !important;
    }

    html[data-theme="system"] .kids-keyboard-wrap .key-wrong {
        background: #dc2626 !important;
        border-color: #fb7185 !important;
    }

    html[data-theme="system"] .kids-hand-guide-controls button {
        color: #d6e0ee;
        background: #172235;
        border-color: #40506a;
    }

    html[data-theme="system"] .kids-hand-guide-controls button.is-active,
    html[data-theme="system"] .kids-hand-guide-controls button[aria-pressed="true"] {
        color: #fff;
        background: #2f6df6;
        border-color: #76a2ff;
    }
}

@media (max-width: 720px) {
    .kids-hand-guide-controls {
        display: none;
    }
}

/* Preserve readable physical key widths on phones via horizontal scrolling. */
@media (max-width: 720px) {
    .kids-keyboard-stage {
        min-width: 780px;
    }
}

/* ==========================================================
   KIDS HEADER LOGO RESTORATION v17.6.3
   Keep the light and dark logos in the same grid cell without
   absolutely positioned children collapsing the logo anchor.
========================================================== */
.kids-site-header .test-logo {
    box-sizing: border-box !important;
    display: flex !important;
    width: min(280px, 100%) !important;
    min-width: 0 !important;
    min-height: 58px !important;
    align-items: center !important;
    justify-self: start !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

.kids-site-header .test-logo-stack {
    box-sizing: border-box !important;
    position: relative !important;
    display: grid !important;
    grid-template-areas: "kids-logo" !important;
    width: 100% !important;
    height: 58px !important;
    min-width: 0 !important;
    min-height: 58px !important;
    aspect-ratio: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

.kids-site-header .test-logo-stack .test-logo-light,
.kids-site-header .test-logo-stack .test-logo-dark {
    grid-area: kids-logo !important;
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 280px !important;
    max-height: 58px !important;
    align-self: center !important;
    justify-self: start !important;
    object-fit: contain !important;
    object-position: left center !important;
    visibility: visible !important;
    pointer-events: none !important;
}

html[data-theme="light"] .kids-site-header .test-logo-light {
    opacity: 1 !important;
}

html[data-theme="light"] .kids-site-header .test-logo-dark {
    opacity: 0 !important;
}

html[data-theme="dark"] .kids-site-header .test-logo-light {
    opacity: 0 !important;
}

html[data-theme="dark"] .kids-site-header .test-logo-dark {
    opacity: 1 !important;
}

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

    html[data-theme="system"] .kids-site-header .test-logo-dark {
        opacity: 1 !important;
    }
}

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

    html[data-theme="system"] .kids-site-header .test-logo-dark {
        opacity: 0 !important;
    }
}

@media (max-width: 1180px) {
    .kids-site-header .test-logo {
        width: min(225px, 100%) !important;
    }

    .kids-site-header .test-logo-stack .test-logo-light,
    .kids-site-header .test-logo-stack .test-logo-dark {
        max-width: 225px !important;
    }
}

@media (max-width: 560px) {
    .kids-site-header .test-logo {
        width: min(190px, 100%) !important;
        min-height: 48px !important;
    }

    .kids-site-header .test-logo-stack {
        height: 48px !important;
        min-height: 48px !important;
    }

    .kids-site-header .test-logo-stack .test-logo-light,
    .kids-site-header .test-logo-stack .test-logo-dark {
        max-width: 190px !important;
        max-height: 48px !important;
    }
}
.kids-end-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px}.kids-game-message>span:first-child{display:block}.kids-game-message .kids-button{font-size:12px;padding:9px 12px}@media(max-width:520px){.kids-end-actions{display:grid}.kids-end-actions .kids-button{width:100%}}

.forward-facing-emoji{display:inline-block;transform:scaleX(-1);transform-origin:center;align-self:flex-start;line-height:1}


/* =========================================================
   v17.10.12 — Kids hub and directory engagement palette
   Primary choices are surfaced first; supporting visuals move lower.
   Scope avoids active typing workspaces.
   ========================================================= */
.kids-index-page{--kids-cyan-soft:#f0fbfd;--kids-violet-soft:#f8f5ff;--kids-mint-soft:#f2fbf6;--kids-amber-soft:#fff9ef;--kids-rose-soft:#fff5f8;--kids-blue-soft:#f2f7ff}
.kids-index-page #chooseKidsPath,.kids-index-page #kidsDailyPractice,.kids-index-page #kidsKeyboardAdventure,.kids-index-page #kidsExploreEverything{padding:26px;border:1px solid;border-radius:26px}
.kids-index-page #chooseKidsPath{background:linear-gradient(135deg,var(--kids-amber-soft),#fff);border-color:#eee0bf}
.kids-index-page #kidsDailyPractice{background:linear-gradient(135deg,var(--kids-blue-soft),#fff);border-color:#d6e4f5}
.kids-index-page #kidsKeyboardAdventure{background:linear-gradient(135deg,var(--kids-violet-soft),#fff);border-color:#e2dcf1}
.kids-index-page #kidsExploreEverything{background:linear-gradient(135deg,var(--kids-mint-soft),#fff);border-color:#d8e9df}
.kids-index-page .kids-path-card:nth-child(1){background:#fffaf0;border-color:#efdfbd}.kids-index-page .kids-path-card:nth-child(2){background:#faf7ff;border-color:#e4dcf2}.kids-index-page .kids-path-card:nth-child(3){background:#f2fbfd;border-color:#d5e9ed}
.kids-index-page .kids-feature-card{background:rgba(255,255,255,.9)}
.kids-index-page .kids-stats-strip{margin-top:34px}.kids-index-page .kids-stat-card:nth-child(1){background:#f2f7ff;border-color:#d7e5f7}.kids-index-page .kids-stat-card:nth-child(2){background:#fff9ef;border-color:#eee0bf}.kids-index-page .kids-stat-card:nth-child(3){background:#f8f5ff;border-color:#e2dcf1}
.kids-index-page .content-visual--hero{margin-top:20px;background:linear-gradient(135deg,#f2f7ff,#fff);border-radius:26px;border:1px solid #d6e4f5;padding:14px}
.kids-index-page #chooseKidsPath,.kids-index-page #kidsDailyPractice{scroll-margin-top:130px}
.kids-directory-page .kids-content-card{background:linear-gradient(135deg,#f2f7ff,#fff 58%,#f8f5ff);border-color:#d7e4f4}
.kids-directory-page .kids-game-card,.kids-directory-page .kids-test-card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.kids-games-directory .kids-game-card:nth-child(6n+1){background:#fff5f8;border-color:#efdee5}.kids-games-directory .kids-game-card:nth-child(6n+2){background:#fff9ef;border-color:#eee0bf}.kids-games-directory .kids-game-card:nth-child(6n+3){background:#f2f7ff;border-color:#d7e5f7}.kids-games-directory .kids-game-card:nth-child(6n+4){background:#f2fbf6;border-color:#d8e9df}.kids-games-directory .kids-game-card:nth-child(6n+5){background:#f8f5ff;border-color:#e2dcf1}.kids-games-directory .kids-game-card:nth-child(6n){background:#f0fbfd;border-color:#d5e9ed}
.kids-tests-directory .kids-test-card:nth-child(5n+1){background:#f2f7ff;border-color:#d7e5f7}.kids-tests-directory .kids-test-card:nth-child(5n+2){background:#f2fbf6;border-color:#d8e9df}.kids-tests-directory .kids-test-card:nth-child(5n+3){background:#fff9ef;border-color:#eee0bf}.kids-tests-directory .kids-test-card:nth-child(5n+4){background:#f8f5ff;border-color:#e2dcf1}.kids-tests-directory .kids-test-card:nth-child(5n){background:#fff5f8;border-color:#efdee5}
@media(hover:hover) and (pointer:fine){.kids-directory-page .kids-game-card:hover,.kids-directory-page .kids-test-card:hover,.kids-index-page .kids-path-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(44,76,120,.10)}}
@media(max-width:720px){.kids-index-page #chooseKidsPath,.kids-index-page #kidsDailyPractice,.kids-index-page #kidsKeyboardAdventure,.kids-index-page #kidsExploreEverything{padding:18px;border-radius:20px}}
html[data-theme="dark"] .kids-index-page #chooseKidsPath,html[data-theme="dark"] .kids-index-page #kidsDailyPractice,html[data-theme="dark"] .kids-index-page #kidsKeyboardAdventure,html[data-theme="dark"] .kids-index-page #kidsExploreEverything,html[data-theme="dark"] .kids-index-page .kids-path-card,html[data-theme="dark"] .kids-index-page .kids-stat-card,html[data-theme="dark"] .kids-index-page .content-visual--hero,html[data-theme="dark"] .kids-directory-page .kids-content-card,html[data-theme="dark"] .kids-directory-page .kids-game-card,html[data-theme="dark"] .kids-directory-page .kids-test-card{background:var(--surface,#111827);border-color:var(--border,#334155)}
@media(prefers-color-scheme:dark){html[data-theme="system"] .kids-index-page #chooseKidsPath,html[data-theme="system"] .kids-index-page #kidsDailyPractice,html[data-theme="system"] .kids-index-page #kidsKeyboardAdventure,html[data-theme="system"] .kids-index-page #kidsExploreEverything,html[data-theme="system"] .kids-index-page .kids-path-card,html[data-theme="system"] .kids-index-page .kids-stat-card,html[data-theme="system"] .kids-index-page .content-visual--hero,html[data-theme="system"] .kids-directory-page .kids-content-card,html[data-theme="system"] .kids-directory-page .kids-game-card,html[data-theme="system"] .kids-directory-page .kids-test-card{background:var(--surface,#111827);border-color:var(--border,#334155)}}

/* v17.10.49 Kids Typing Stack */
.kids-stack-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px 18px;background:var(--surface-2,#f8fafc);border-bottom:1px solid var(--border,#dbe4f0)}
.kids-stack-field{display:grid;gap:6px;min-width:190px}.kids-stack-field label{font-size:12px;font-weight:800;color:var(--muted,#64748b)}.kids-stack-field select{min-height:42px;border:1px solid var(--border,#dbe4f0);border-radius:12px;padding:8px 12px;background:var(--surface,#fff);color:inherit;font-weight:700}
.kids-stack-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}.kids-stack-actions .kids-button{min-width:110px}
.kids-stack-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:14px 18px;background:var(--surface-2,#f8fafc)}
.kids-stack-board{position:relative;padding:14px 18px 0}.kids-stack-canvas-wrap{position:relative;max-width:1100px;margin:auto;border:1px solid #bfdbfe;border-radius:22px;overflow:hidden;background:#f8fafc;box-shadow:inset 0 0 0 4px rgba(255,255,255,.5)}
#kidsTypingStackCanvas{display:block;width:100%;height:auto;aspect-ratio:55/28;outline:none}.kids-stack-buffer{text-align:center;font-weight:900;color:#1d4ed8;padding:10px 12px}.kids-stack-results{position:absolute;inset:14px 18px 0;display:grid;place-items:center;background:rgba(248,250,252,.94);border-radius:22px;z-index:3}.kids-stack-results[hidden]{display:none}.kids-stack-result-inner{text-align:center;max-width:650px;padding:26px}.kids-stack-result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.kids-stack-result-grid span{padding:12px;border-radius:14px;background:#fff;border:1px solid #dbeafe;color:#64748b;font-size:12px;font-weight:800}.kids-stack-result-grid strong{display:block;color:#1d4ed8;font-size:24px;margin-bottom:4px}.kids-stack-help{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.kids-stack-help article{padding:16px;border-radius:18px;background:var(--surface-2,#f8fafc);border:1px solid var(--border,#dbe4f0)}.kids-stack-help h3{margin:0 0 6px;font-size:17px}.kids-stack-help p{margin:0;color:var(--muted,#64748b);line-height:1.55;font-size:14px}
html[data-theme=dark] .kids-stack-canvas-wrap{border-color:#334155}html[data-theme=dark] .kids-stack-results{background:rgba(15,23,42,.95)}html[data-theme=dark] .kids-stack-result-grid span{background:#111827;border-color:#334155}
@media(max-width:800px){.kids-stack-stats{grid-template-columns:repeat(2,1fr)}.kids-stack-actions{margin-left:0;width:100%}.kids-stack-result-grid,.kids-stack-help{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.kids-stack-toolbar{align-items:stretch}.kids-stack-field{width:100%}.kids-stack-actions{display:grid;grid-template-columns:1fr 1fr}.kids-stack-actions .kids-button{width:100%;min-width:0}.kids-stack-result-grid,.kids-stack-help{grid-template-columns:1fr}.kids-stack-board{padding-inline:8px}.kids-stack-results{inset:14px 8px 0}.kids-stack-stats{padding-inline:10px}}

/* Source: /kids/css/kids-section-v17.10.80.css */

/* ==========================================================
   KIDS SECTION UI REDESIGN v17.10.73
========================================================== */
body.kids-ui-redesign {
    background:
        radial-gradient(circle at top left, rgba(191, 219, 254, .35), transparent 28%),
        radial-gradient(circle at top right, rgba(254, 240, 138, .18), transparent 24%),
        linear-gradient(180deg, #f6fbff 0%, #f8fafc 28%, #f4f7ff 100%);
}

.kids-ui-redesign .kids-shell {
    width: min(1320px, calc(100% - 32px));
    padding: 26px 0 76px;
}

.kids-ui-redesign .kids-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 0 4px;
    color: #6b7a93;
    font-weight: 700;
}

.kids-ui-redesign .kids-subnav {
    position: sticky;
    top: 78px;
    z-index: 40;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(191, 213, 255, .85);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
}

.kids-ui-redesign .kids-subnav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #44607d;
    background: rgba(230, 239, 253, .82);
    border: 1px solid rgba(204, 221, 250, .9);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.kids-ui-redesign .kids-subnav a:hover,
.kids-ui-redesign .kids-subnav a[aria-current="page"] {
    transform: translateY(-1px);
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 14px 24px rgba(37, 99, 235, .22);
}

.kids-ui-redesign .kids-hero,
.kids-ui-redesign .kids-content-card,
.kids-ui-redesign .kids-practice-card,
.kids-ui-redesign .kids-path-card,
.kids-ui-redesign .kids-feature-card,
.kids-ui-redesign .kids-test-card,
.kids-ui-redesign .kids-game-card,
.kids-ui-redesign .kids-badge-card,
.kids-ui-redesign .kids-progress-card,
.kids-ui-redesign .kids-history-card,
.kids-ui-redesign .kids-side-card,
.kids-ui-redesign .kids-certificate-path,
.kids-ui-redesign .kids-goal-card,
.kids-ui-redesign .kids-continue-card,
.kids-ui-redesign .kids-stat-card,
.kids-ui-redesign .journey-step {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(205, 219, 243, .95);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.kids-ui-redesign .kids-hero {
    position: relative;
    padding: clamp(26px, 4.2vw, 54px);
    gap: 28px;
    border-radius: 34px;
    overflow: hidden;
}

.kids-ui-redesign .kids-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 16%, rgba(96, 165, 250, .18), transparent 26%),
        radial-gradient(circle at 85% 18%, rgba(250, 204, 21, .18), transparent 22%),
        radial-gradient(circle at 74% 86%, rgba(244, 114, 182, .14), transparent 25%);
    pointer-events: none;
}

.kids-ui-redesign .kids-hero > * {
    position: relative;
    z-index: 1;
}

.kids-ui-redesign .kids-hero h1,
.kids-ui-redesign .kids-content-card h1,
.kids-ui-redesign .kids-page-hero h1 {
    font-family: "Poppins", "Inter", sans-serif;
    letter-spacing: -.03em;
}

.kids-ui-redesign .kids-hero p,
.kids-ui-redesign .kids-content-card p,
.kids-ui-redesign .kids-page-hero p {
    color: #52627a;
}

.kids-ui-redesign .kids-home-action-grid,
.kids-ui-redesign .kids-highlight-grid,
.kids-ui-redesign .kids-mini-card-grid,
.kids-ui-redesign .kids-parents-grid,
.kids-ui-redesign .kids-certificate-steps {
    display: grid;
    gap: 18px;
}

.kids-ui-redesign .kids-home-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kids-ui-redesign .kids-highlight-grid,
.kids-ui-redesign .kids-certificate-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kids-ui-redesign .kids-mini-card-grid,
.kids-ui-redesign .kids-parents-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kids-ui-redesign .kids-quick-card,
.kids-ui-redesign .kids-highlight-card,
.kids-ui-redesign .kids-mini-card,
.kids-ui-redesign .kids-parent-card,
.kids-ui-redesign .kids-step-card,
.kids-ui-redesign .kids-featured-banner {
    position: relative;
    display: block;
    padding: 22px;
    border-radius: 24px;
    color: #0f172a;
    border: 1px solid rgba(198, 216, 248, .9);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.kids-ui-redesign .kids-quick-card::before,
.kids-ui-redesign .kids-highlight-card::before,
.kids-ui-redesign .kids-mini-card::before,
.kids-ui-redesign .kids-parent-card::before,
.kids-ui-redesign .kids-step-card::before,
.kids-ui-redesign .kids-featured-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .96;
    pointer-events: none;
}

.kids-ui-redesign .kids-home-action-grid > :nth-child(1)::before { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.kids-ui-redesign .kids-home-action-grid > :nth-child(2)::before { background: linear-gradient(135deg, #dcfce7, #f0fdf4); }
.kids-ui-redesign .kids-home-action-grid > :nth-child(3)::before { background: linear-gradient(135deg, #ffedd5, #fff7ed); }
.kids-ui-redesign .kids-home-action-grid > :nth-child(4)::before { background: linear-gradient(135deg, #fef3c7, #fffbea); }
.kids-ui-redesign .kids-home-action-grid > :nth-child(5)::before { background: linear-gradient(135deg, #ede9fe, #f5f3ff); }
.kids-ui-redesign .kids-home-action-grid > :nth-child(6)::before { background: linear-gradient(135deg, #ffe4e6, #fff1f2); }

.kids-ui-redesign .kids-highlight-grid > :nth-child(1)::before,
.kids-ui-redesign .kids-mini-card-grid > :nth-child(1)::before,
.kids-ui-redesign .kids-certificate-steps > :nth-child(1)::before,
.kids-ui-redesign .kids-parents-grid > :nth-child(1)::before { background: linear-gradient(135deg, #e0f2fe, #f0f9ff); }
.kids-ui-redesign .kids-highlight-grid > :nth-child(2)::before,
.kids-ui-redesign .kids-mini-card-grid > :nth-child(2)::before,
.kids-ui-redesign .kids-certificate-steps > :nth-child(2)::before,
.kids-ui-redesign .kids-parents-grid > :nth-child(2)::before { background: linear-gradient(135deg, #ecfccb, #f7fee7); }
.kids-ui-redesign .kids-highlight-grid > :nth-child(3)::before,
.kids-ui-redesign .kids-mini-card-grid > :nth-child(3)::before,
.kids-ui-redesign .kids-certificate-steps > :nth-child(3)::before,
.kids-ui-redesign .kids-parents-grid > :nth-child(3)::before { background: linear-gradient(135deg, #fce7f3, #fdf2f8); }
.kids-ui-redesign .kids-highlight-grid > :nth-child(4)::before,
.kids-ui-redesign .kids-mini-card-grid > :nth-child(4)::before,
.kids-ui-redesign .kids-certificate-steps > :nth-child(4)::before,
.kids-ui-redesign .kids-parents-grid > :nth-child(4)::before { background: linear-gradient(135deg, #fef3c7, #fffbeb); }

.kids-ui-redesign .kids-quick-card > *,
.kids-ui-redesign .kids-highlight-card > *,
.kids-ui-redesign .kids-mini-card > *,
.kids-ui-redesign .kids-parent-card > *,
.kids-ui-redesign .kids-step-card > *,
.kids-ui-redesign .kids-featured-banner > * {
    position: relative;
    z-index: 1;
}

.kids-ui-redesign .kids-quick-card:hover,
.kids-ui-redesign .kids-highlight-card:hover,
.kids-ui-redesign .kids-mini-card:hover,
.kids-ui-redesign .kids-parent-card:hover,
.kids-ui-redesign .kids-step-card:hover,
.kids-ui-redesign .kids-featured-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 40px rgba(15, 23, 42, .12);
}

.kids-ui-redesign .kids-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #1d4ed8;
}

.kids-ui-redesign .kids-card-kicker .icon,
.kids-ui-redesign .kids-card-icon-badge {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 0 0 1px rgba(203, 213, 225, .75);
    font-size: 24px;
}

.kids-ui-redesign .kids-quick-card h3,
.kids-ui-redesign .kids-highlight-card h3,
.kids-ui-redesign .kids-mini-card h3,
.kids-ui-redesign .kids-parent-card h3,
.kids-ui-redesign .kids-step-card h3 {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.kids-ui-redesign .kids-quick-card p,
.kids-ui-redesign .kids-highlight-card p,
.kids-ui-redesign .kids-mini-card p,
.kids-ui-redesign .kids-parent-card p,
.kids-ui-redesign .kids-step-card p,
.kids-ui-redesign .kids-featured-banner p {
    margin: 0;
    color: #53627b;
    line-height: 1.6;
}

.kids-ui-redesign .kids-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #1769ff;
    font-weight: 800;
}

.kids-ui-redesign .kids-home-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.kids-ui-redesign .kids-home-highlights .kids-stat-card {
    text-align: left;
    padding: 18px 20px;
    border-radius: 20px;
}

.kids-ui-redesign .kids-home-highlights .kids-stat-card strong {
    font-size: 30px;
}

.kids-ui-redesign .kids-featured-banner {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.kids-ui-redesign .kids-featured-banner::before {
    background: linear-gradient(135deg, #dbeafe, #e0f2fe 42%, #eff6ff 100%);
}

.kids-ui-redesign .kids-featured-visual {
    display: flex;
    align-items: center;
    gap: 16px;
}

.kids-ui-redesign .kids-featured-emoji {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: rgba(255,255,255,.82);
    font-size: 42px;
    box-shadow: inset 0 0 0 1px rgba(203,213,225,.75);
}

.kids-ui-redesign .kids-featured-banner h2 {
    margin: 6px 0;
    font-size: 30px;
    line-height: 1.1;
}

.kids-ui-redesign .kids-featured-banner .kids-button {
    white-space: nowrap;
}

.kids-ui-redesign .kids-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
    padding: 28px 30px;
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(205,219,243,.95);
    box-shadow: 0 18px 50px rgba(15,23,42,.08);
}

.kids-ui-redesign .kids-page-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(34px, 4vw, 56px);
}

.kids-ui-redesign .kids-page-badge {
    display: inline-grid;
    place-items: center;
    min-width: 170px;
    padding: 18px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #1e3a8a;
    font-weight: 800;
    text-align: center;
}

.kids-ui-redesign .kids-page-badge small {
    display: block;
    margin-top: 6px;
    color: #4b5f7b;
    font-weight: 700;
}

.kids-ui-redesign .kids-content-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(24px, 3.3vw, 40px);
}

.kids-ui-redesign .kids-content-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #f59e0b);
}

.kids-ui-redesign .kids-content-card > * {
    position: relative;
    z-index: 1;
}

.kids-ui-redesign .kids-progress-overview,
.kids-ui-redesign .kids-live-stats {
    gap: 12px;
}

.kids-ui-redesign .kids-progress-metric,
.kids-ui-redesign .kids-live-stat {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(246, 250, 255, .9);
    border: 1px solid rgba(215, 227, 246, .95);
}

.kids-ui-redesign .kids-test-card,
.kids-ui-redesign .kids-game-card,
.kids-ui-redesign .kids-badge-card,
.kids-ui-redesign .kids-certificate-path,
.kids-ui-redesign .kids-feature-card,
.kids-ui-redesign .kids-path-card {
    border-radius: 24px;
}

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

.kids-ui-redesign .kids-test-card::after,
.kids-ui-redesign .kids-game-card::after,
.kids-ui-redesign .kids-badge-card::after,
.kids-ui-redesign .kids-certificate-path::after,
.kids-ui-redesign .kids-feature-card::after,
.kids-ui-redesign .kids-path-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.64), rgba(255,255,255,0));
    pointer-events: none;
}

.kids-ui-redesign .kids-test-card > *,
.kids-ui-redesign .kids-game-card > *,
.kids-ui-redesign .kids-badge-card > *,
.kids-ui-redesign .kids-certificate-path > *,
.kids-ui-redesign .kids-feature-card > *,
.kids-ui-redesign .kids-path-card > * {
    position: relative;
    z-index: 1;
}

.kids-ui-redesign .kids-test-card:nth-child(4n+1),
.kids-ui-redesign .kids-game-card:nth-child(4n+1),
.kids-ui-redesign .kids-feature-card:nth-child(4n+1),
.kids-ui-redesign .kids-certificate-path:nth-child(4n+1) { background: linear-gradient(135deg, #f8fbff, #eef7ff); }
.kids-ui-redesign .kids-test-card:nth-child(4n+2),
.kids-ui-redesign .kids-game-card:nth-child(4n+2),
.kids-ui-redesign .kids-feature-card:nth-child(4n+2),
.kids-ui-redesign .kids-certificate-path:nth-child(4n+2) { background: linear-gradient(135deg, #f7fff7, #eefcf3); }
.kids-ui-redesign .kids-test-card:nth-child(4n+3),
.kids-ui-redesign .kids-game-card:nth-child(4n+3),
.kids-ui-redesign .kids-feature-card:nth-child(4n+3),
.kids-ui-redesign .kids-certificate-path:nth-child(4n+3) { background: linear-gradient(135deg, #fff8fe, #fff1f8); }
.kids-ui-redesign .kids-test-card:nth-child(4n),
.kids-ui-redesign .kids-game-card:nth-child(4n),
.kids-ui-redesign .kids-feature-card:nth-child(4n),
.kids-ui-redesign .kids-certificate-path:nth-child(4n) { background: linear-gradient(135deg, #fffdf5, #fff8e8); }

.kids-ui-redesign .kids-card-icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255,255,255,.7);
    box-shadow: inset 0 0 0 1px rgba(203,213,225,.75);
}

.kids-ui-redesign .kids-app-grid {
    gap: 24px;
}

.kids-ui-redesign .kids-lesson-sidebar {
    top: 146px;
    padding: 20px;
    border-radius: 24px;
}

.kids-ui-redesign .kids-practice-head {
    align-items: start;
    padding: 22px 24px;
}

.kids-ui-redesign .kids-practice-head h1 {
    margin: 10px 0 0;
}

.kids-ui-redesign .kids-text-area {
    padding: 26px;
}

.kids-ui-redesign .kids-section-heading h2 {
    letter-spacing: -.03em;
}

.kids-ui-redesign .kids-note {
    border-radius: 24px;
    background: linear-gradient(135deg, #ecfeff, #f0fdf4);
    border-color: #a7f3d0;
}

.kids-ui-redesign .kids-results {
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(239,246,255,.92));
}

.kids-ui-redesign .kids-activity-item,
.kids-ui-redesign .kids-personal-best {
    background: rgba(248, 250, 252, .95);
    border-color: rgba(215, 227, 246, .95);
}

.kids-ui-redesign .kids-home-page .kids-stats-strip {
    margin-top: 18px;
    margin-bottom: 0;
}

.kids-ui-redesign .kids-home-page .kids-stats-strip .kids-stat-card {
    text-align: left;
    padding: 20px 22px;
    background: rgba(255,255,255,.95);
}

.kids-ui-redesign .kids-home-page .kids-stats-strip .kids-stat-card strong {
    font-size: 34px;
}

.kids-ui-redesign .kids-top-note {
    margin-top: 18px;
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(239, 246, 255, .82);
    border: 1px solid rgba(191, 219, 254, .95);
    color: #1e3a8a;
}

.kids-ui-redesign .kids-top-note strong {
    font-size: 15px;
}

.kids-ui-redesign .kids-history-card,
.kids-ui-redesign .kids-progress-card {
    border-radius: 26px;
}

html[data-theme="dark"] body.kids-ui-redesign {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 28%),
        radial-gradient(circle at top right, rgba(234, 179, 8, .10), transparent 24%),
        linear-gradient(180deg, #08111f 0%, #0b1322 35%, #0f172a 100%);
}

html[data-theme="dark"] .kids-ui-redesign .kids-subnav,
html[data-theme="dark"] .kids-ui-redesign .kids-hero,
html[data-theme="dark"] .kids-ui-redesign .kids-content-card,
html[data-theme="dark"] .kids-ui-redesign .kids-practice-card,
html[data-theme="dark"] .kids-ui-redesign .kids-path-card,
html[data-theme="dark"] .kids-ui-redesign .kids-feature-card,
html[data-theme="dark"] .kids-ui-redesign .kids-test-card,
html[data-theme="dark"] .kids-ui-redesign .kids-game-card,
html[data-theme="dark"] .kids-ui-redesign .kids-badge-card,
html[data-theme="dark"] .kids-ui-redesign .kids-progress-card,
html[data-theme="dark"] .kids-ui-redesign .kids-history-card,
html[data-theme="dark"] .kids-ui-redesign .kids-side-card,
html[data-theme="dark"] .kids-ui-redesign .kids-certificate-path,
html[data-theme="dark"] .kids-ui-redesign .kids-goal-card,
html[data-theme="dark"] .kids-ui-redesign .kids-continue-card,
html[data-theme="dark"] .kids-ui-redesign .kids-stat-card,
html[data-theme="dark"] .kids-ui-redesign .journey-step,
html[data-theme="dark"] .kids-ui-redesign .kids-page-hero {
    background: rgba(13, 24, 42, .94);
    border-color: rgba(48, 64, 92, .96);
    box-shadow: 0 20px 50px rgba(2, 6, 23, .45);
}

html[data-theme="dark"] .kids-ui-redesign .kids-subnav {
    background: rgba(8, 17, 31, .88);
}

html[data-theme="dark"] .kids-ui-redesign .kids-subnav a {
    color: #dbeafe;
    background: rgba(20, 35, 58, .9);
    border-color: rgba(56, 74, 104, .95);
}

html[data-theme="dark"] .kids-ui-redesign .kids-hero h1,
html[data-theme="dark"] .kids-ui-redesign .kids-content-card h1,
html[data-theme="dark"] .kids-ui-redesign .kids-content-card h2,
html[data-theme="dark"] .kids-ui-redesign .kids-content-card h3,
html[data-theme="dark"] .kids-ui-redesign .kids-page-hero h1,
html[data-theme="dark"] .kids-ui-redesign .kids-quick-card h3,
html[data-theme="dark"] .kids-ui-redesign .kids-highlight-card h3,
html[data-theme="dark"] .kids-ui-redesign .kids-mini-card h3,
html[data-theme="dark"] .kids-ui-redesign .kids-parent-card h3,
html[data-theme="dark"] .kids-ui-redesign .kids-step-card h3,
html[data-theme="dark"] .kids-ui-redesign .kids-test-card h2,
html[data-theme="dark"] .kids-ui-redesign .kids-game-card h2,
html[data-theme="dark"] .kids-ui-redesign .kids-certificate-path h2,
html[data-theme="dark"] .kids-ui-redesign .kids-feature-card h3,
html[data-theme="dark"] .kids-ui-redesign .kids-path-card h3,
html[data-theme="dark"] .kids-ui-redesign .journey-step strong,
html[data-theme="dark"] .kids-ui-redesign .kids-featured-banner h2 {
    color: #f8fafc;
}

html[data-theme="dark"] .kids-ui-redesign .kids-breadcrumbs,
html[data-theme="dark"] .kids-ui-redesign .kids-hero p,
html[data-theme="dark"] .kids-ui-redesign .kids-content-card p,
html[data-theme="dark"] .kids-ui-redesign .kids-content-card li,
html[data-theme="dark"] .kids-ui-redesign .kids-page-hero p,
html[data-theme="dark"] .kids-ui-redesign .kids-quick-card p,
html[data-theme="dark"] .kids-ui-redesign .kids-highlight-card p,
html[data-theme="dark"] .kids-ui-redesign .kids-mini-card p,
html[data-theme="dark"] .kids-ui-redesign .kids-parent-card p,
html[data-theme="dark"] .kids-ui-redesign .kids-step-card p,
html[data-theme="dark"] .kids-ui-redesign .kids-featured-banner p,
html[data-theme="dark"] .kids-ui-redesign .kids-progress-metric span,
html[data-theme="dark"] .kids-ui-redesign .kids-live-stat span,
html[data-theme="dark"] .kids-ui-redesign .journey-step small,
html[data-theme="dark"] .kids-ui-redesign .kids-card-link,
html[data-theme="dark"] .kids-ui-redesign .kids-top-note,
html[data-theme="dark"] .kids-ui-redesign .kids-page-badge small {
    color: #b7c7dd;
}

html[data-theme="dark"] .kids-ui-redesign .kids-card-icon,
html[data-theme="dark"] .kids-ui-redesign .kids-card-icon-badge,
html[data-theme="dark"] .kids-ui-redesign .kids-card-kicker .icon,
html[data-theme="dark"] .kids-ui-redesign .kids-featured-emoji {
    background: rgba(18, 31, 53, .92);
    box-shadow: inset 0 0 0 1px rgba(59, 79, 112, .85);
}

html[data-theme="dark"] .kids-ui-redesign .kids-quick-card,
html[data-theme="dark"] .kids-ui-redesign .kids-highlight-card,
html[data-theme="dark"] .kids-ui-redesign .kids-mini-card,
html[data-theme="dark"] .kids-ui-redesign .kids-parent-card,
html[data-theme="dark"] .kids-ui-redesign .kids-step-card,
html[data-theme="dark"] .kids-ui-redesign .kids-featured-banner,
html[data-theme="dark"] .kids-ui-redesign .kids-progress-metric,
html[data-theme="dark"] .kids-ui-redesign .kids-live-stat,
html[data-theme="dark"] .kids-ui-redesign .kids-personal-best,
html[data-theme="dark"] .kids-ui-redesign .kids-activity-item,
html[data-theme="dark"] .kids-ui-redesign .kids-page-badge,
html[data-theme="dark"] .kids-ui-redesign .kids-top-note,
html[data-theme="dark"] .kids-ui-redesign .kids-home-page .kids-stats-strip .kids-stat-card {
    background: rgba(14, 26, 45, .95);
    border-color: rgba(50, 68, 97, .95);
}

html[data-theme="dark"] .kids-ui-redesign .kids-featured-banner::before,
html[data-theme="dark"] .kids-ui-redesign .kids-home-action-grid > :nth-child(1)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-home-action-grid > :nth-child(2)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-home-action-grid > :nth-child(3)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-home-action-grid > :nth-child(4)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-home-action-grid > :nth-child(5)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-home-action-grid > :nth-child(6)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-highlight-grid > :nth-child(1)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-highlight-grid > :nth-child(2)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-highlight-grid > :nth-child(3)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-highlight-grid > :nth-child(4)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-mini-card-grid > :nth-child(1)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-mini-card-grid > :nth-child(2)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-mini-card-grid > :nth-child(3)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-mini-card-grid > :nth-child(4)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-certificate-steps > :nth-child(1)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-certificate-steps > :nth-child(2)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-certificate-steps > :nth-child(3)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-certificate-steps > :nth-child(4)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-parents-grid > :nth-child(1)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-parents-grid > :nth-child(2)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-parents-grid > :nth-child(3)::before,
html[data-theme="dark"] .kids-ui-redesign .kids-parents-grid > :nth-child(4)::before {
    background: linear-gradient(135deg, rgba(30,41,59,.62), rgba(15,23,42,.04));
}

html[data-theme="dark"] .kids-ui-redesign .kids-test-card:nth-child(4n+1),
html[data-theme="dark"] .kids-ui-redesign .kids-game-card:nth-child(4n+1),
html[data-theme="dark"] .kids-ui-redesign .kids-feature-card:nth-child(4n+1),
html[data-theme="dark"] .kids-ui-redesign .kids-certificate-path:nth-child(4n+1) { background: linear-gradient(135deg, rgba(14,28,50,.96), rgba(9,18,33,.96)); }
html[data-theme="dark"] .kids-ui-redesign .kids-test-card:nth-child(4n+2),
html[data-theme="dark"] .kids-ui-redesign .kids-game-card:nth-child(4n+2),
html[data-theme="dark"] .kids-ui-redesign .kids-feature-card:nth-child(4n+2),
html[data-theme="dark"] .kids-ui-redesign .kids-certificate-path:nth-child(4n+2) { background: linear-gradient(135deg, rgba(14,32,36,.96), rgba(7,18,24,.96)); }
html[data-theme="dark"] .kids-ui-redesign .kids-test-card:nth-child(4n+3),
html[data-theme="dark"] .kids-ui-redesign .kids-game-card:nth-child(4n+3),
html[data-theme="dark"] .kids-ui-redesign .kids-feature-card:nth-child(4n+3),
html[data-theme="dark"] .kids-ui-redesign .kids-certificate-path:nth-child(4n+3) { background: linear-gradient(135deg, rgba(37,18,41,.96), rgba(15,9,23,.96)); }
html[data-theme="dark"] .kids-ui-redesign .kids-test-card:nth-child(4n),
html[data-theme="dark"] .kids-ui-redesign .kids-game-card:nth-child(4n),
html[data-theme="dark"] .kids-ui-redesign .kids-feature-card:nth-child(4n),
html[data-theme="dark"] .kids-ui-redesign .kids-certificate-path:nth-child(4n) { background: linear-gradient(135deg, rgba(44,30,14,.96), rgba(22,15,8,.96)); }

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] body.kids-ui-redesign {
        background:
            radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 28%),
            radial-gradient(circle at top right, rgba(234, 179, 8, .10), transparent 24%),
            linear-gradient(180deg, #08111f 0%, #0b1322 35%, #0f172a 100%);
    }
}

@media (max-width: 1180px) {
    .kids-ui-redesign .kids-home-action-grid,
    .kids-ui-redesign .kids-highlight-grid,
    .kids-ui-redesign .kids-mini-card-grid,
    .kids-ui-redesign .kids-home-highlights,
    .kids-ui-redesign .kids-parents-grid,
    .kids-ui-redesign .kids-certificate-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .kids-ui-redesign .kids-app-grid {
        grid-template-columns: 1fr;
    }
    .kids-ui-redesign .kids-practice-card {
        order: 1;
    }
    .kids-ui-redesign .kids-lesson-sidebar {
        position: static;
        order: 2;
        max-height: none;
    }
    .kids-ui-redesign .kids-page-hero,
    .kids-ui-redesign .kids-featured-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .kids-ui-redesign .kids-shell {
        width: min(100%, calc(100% - 20px));
        padding-top: 18px;
    }
    .kids-ui-redesign .kids-hero {
        padding: 22px;
        border-radius: 26px;
    }
    .kids-ui-redesign .kids-home-action-grid,
    .kids-ui-redesign .kids-highlight-grid,
    .kids-ui-redesign .kids-mini-card-grid,
    .kids-ui-redesign .kids-home-highlights,
    .kids-ui-redesign .kids-parents-grid,
    .kids-ui-redesign .kids-certificate-steps {
        grid-template-columns: 1fr;
    }
    .kids-ui-redesign .kids-quick-card h3,
    .kids-ui-redesign .kids-highlight-card h3,
    .kids-ui-redesign .kids-mini-card h3,
    .kids-ui-redesign .kids-parent-card h3,
    .kids-ui-redesign .kids-step-card h3,
    .kids-ui-redesign .kids-featured-banner h2 {
        font-size: 23px;
    }
    .kids-ui-redesign .kids-page-hero {
        padding: 22px;
        border-radius: 24px;
    }
}

@media (max-height: 850px) and (max-width: 1100px) {
    .kids-ui-redesign .kids-page-hero,
    .kids-ui-redesign .kids-hero,
    .kids-ui-redesign .kids-content-card {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .kids-ui-redesign .kids-shell {
        padding-top: 16px;
    }
}


/* ==========================================================
   v17.10.74 LESSON-FIRST KIDS EXPERIENCE
   Put active typing before browsing/category cards.
========================================================== */
.kids-lessons-page .kids-lessons-priority-hero{
    grid-template-columns:minmax(0,1fr) auto;
    margin-bottom:14px;
    padding:18px 24px;
    border-radius:22px;
}
.kids-lessons-page .kids-lessons-priority-hero h1{
    margin:3px 0 5px;
    font-size:clamp(28px,3.4vw,42px);
}
.kids-lessons-page .kids-lessons-priority-hero p{
    max-width:820px;
    margin:0;
    font-size:14px;
    line-height:1.5;
}
.kids-lessons-page .kids-lessons-priority-hero .kids-eyebrow{
    padding:5px 9px;
    font-size:11px;
}
.kids-lessons-page .kids-lessons-priority-hero .kids-page-badge{
    min-width:148px;
    padding:11px 14px;
    border-radius:17px;
    font-size:13px;
}
.kids-lessons-page .kids-lessons-priority-hero .kids-page-badge small{
    margin-top:3px;
    font-size:10px;
}

.kids-lessons-page .kids-lessons-priority-workspace{
    margin-top:0;
    align-items:start;
}
.kids-lessons-page .kids-lessons-priority-workspace .kids-practice-card{
    box-shadow:0 18px 46px rgba(15,23,42,.09);
}
.kids-lessons-page .kids-lessons-priority-workspace .kids-practice-head{
    padding:16px 20px;
}
.kids-lessons-page .kids-lessons-priority-workspace .kids-practice-head h1,
.kids-lessons-page .kids-lessons-priority-workspace .kids-practice-head h2{
    margin-top:5px;
    font-size:clamp(25px,2.7vw,34px);
}
.kids-lessons-page .kids-lessons-priority-workspace .kids-practice-head p{
    margin-top:4px;
    font-size:13px;
}
.kids-lessons-page .kids-lessons-priority-workspace .kids-live-stats{
    padding:10px 14px;
}
.kids-lessons-page .kids-lessons-priority-workspace .kids-live-stat{
    padding:8px 10px;
}
.kids-lessons-page .kids-lessons-priority-workspace .kids-text-area{
    min-height:190px;
    padding:20px 22px;
}
.kids-lessons-page .kids-lessons-priority-workspace .kids-keyboard-wrap{
    padding:12px 14px 10px;
}
.kids-lessons-page .kids-lessons-priority-workspace .kids-hand-guide-controls{
    padding-top:7px;
}

.kids-lessons-page .kids-lessons-browse-below{
    margin-top:22px;
    padding-top:4px;
}
.kids-lessons-page .kids-lessons-browse-below::before{
    content:"Browse lesson groups";
    grid-column:1/-1;
    display:block;
    margin-bottom:-4px;
    color:#405675;
    font-size:13px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

/* On shorter screens, trim every non-practice pixel before the lesson. */
@media (max-height:900px){
    .kids-lessons-page .kids-shell{padding-top:10px}
    .kids-lessons-page .kids-breadcrumbs{margin-bottom:9px;font-size:11px}
    .kids-lessons-page .kids-lessons-priority-hero{padding:12px 18px;margin-bottom:10px}
    .kids-lessons-page .kids-lessons-priority-hero h1{font-size:28px;margin:1px 0 2px}
    .kids-lessons-page .kids-lessons-priority-hero p{font-size:12px;line-height:1.35}
    .kids-lessons-page .kids-lessons-priority-hero .kids-page-badge{padding:8px 11px}
    .kids-lessons-page .kids-lessons-priority-workspace .kids-practice-head{padding:12px 16px}
    .kids-lessons-page .kids-lessons-priority-workspace .kids-live-stats{padding:7px 10px}
    .kids-lessons-page .kids-lessons-priority-workspace .kids-text-area{min-height:155px;padding:14px 18px}
    .kids-lessons-page .kids-lessons-priority-workspace .kids-keyboard-wrap{padding-top:8px}
}

@media (max-width:1050px){
    .kids-lessons-page .kids-lessons-priority-workspace{
        display:flex;
        flex-direction:column;
    }
    .kids-lessons-page .kids-lessons-priority-workspace .kids-practice-card{order:1;width:100%}
    .kids-lessons-page .kids-lessons-priority-workspace .kids-lesson-sidebar{order:2;width:100%;margin-top:16px}
}

@media (max-width:720px){
    .kids-lessons-page .kids-lessons-priority-hero{
        grid-template-columns:1fr;
        padding:14px 16px;
    }
    .kids-lessons-page .kids-lessons-priority-hero .kids-page-badge{display:none}
    .kids-lessons-page .kids-lessons-priority-workspace .kids-text-area{min-height:145px;padding:14px 12px}
    .kids-lessons-page .kids-lessons-browse-below{margin-top:18px}
}

/* ==========================================================
   v17.10.75 SINGLE-HERO + DETAIL WORKSPACE POLISH
========================================================== */

/* Directory/dashboard pages use their original SEO intro as the one hero.
   This removes the duplicated title/intro block added in v17.10.73. */
.kids-ui-redesign .kids-directory-hero{
  position:relative;
  min-height:0;
  margin-top:0;
  padding:26px 150px 26px 30px;
  border-radius:26px;
  overflow:hidden;
}
.kids-ui-redesign .kids-directory-hero::before{
  height:5px;
  background:linear-gradient(90deg,#2563eb,#7c3aed,#f59e0b)
}
.kids-ui-redesign .kids-directory-hero::after{
  position:absolute;
  right:34px;
  top:50%;
  z-index:0;
  display:grid;
  place-items:center;
  width:82px;
  height:82px;
  border-radius:24px;
  transform:translateY(-50%);
  background:linear-gradient(135deg,rgba(219,234,254,.95),rgba(237,233,254,.95));
  border:1px solid rgba(191,213,255,.9);
  box-shadow:0 14px 28px rgba(37,99,235,.12);
  font-size:42px;
  line-height:1;
}
.kids-ui-redesign.kids-tests-page .kids-directory-hero::after{content:"⏱️"}
.kids-ui-redesign.kids-games-page .kids-directory-hero::after{content:"🎮"}
.kids-ui-redesign.kids-rewards-page .kids-directory-hero::after{content:"⭐"}
.kids-ui-redesign.kids-progress-page .kids-directory-hero::after{content:"📊"}
.kids-ui-redesign.kids-certificates-page .kids-directory-hero::after{content:"🏆"}
.kids-ui-redesign.kids-parents-page .kids-directory-hero::after{content:"👨‍👩‍👧‍👦";font-size:32px}
.kids-ui-redesign .kids-directory-hero h1{
  max-width:820px;
  margin:8px 0 9px;
  font-size:clamp(32px,4vw,48px);
  line-height:1.06;
}
.kids-ui-redesign .kids-directory-hero>p{
  max-width:850px;
  margin-bottom:0;
  font-size:16px;
  line-height:1.65;
}
.kids-ui-redesign .kids-directory-hero .kids-progress-overview{
  margin-top:18px;
}

/* Keep featured cards close to the title instead of creating a second
   full-width presentation band. */
.kids-ui-redesign .kids-directory-hero + .kids-highlight-grid,
.kids-ui-redesign .kids-directory-hero + .kids-top-note,
.kids-ui-redesign .kids-directory-hero + .kids-certificate-steps,
.kids-ui-redesign .kids-directory-hero + .kids-parents-grid{
  margin-top:20px;
}

/* Actual Kids test/game detail pages already had the right workspace.
   Polish that workspace directly instead of adding another hero. */
.kids-ui-redesign.kids-test-detail-page .kids-practice-card,
.kids-ui-redesign.kids-game-detail-page .kids-practice-card{
  position:relative;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 20px 46px rgba(15,23,42,.10);
}
.kids-ui-redesign.kids-test-detail-page .kids-practice-head,
.kids-ui-redesign.kids-game-detail-page .kids-practice-head{
  position:relative;
  min-height:112px;
  padding:20px 112px 18px 24px;
  background:linear-gradient(135deg,#f7fbff,#f5f3ff 64%,#fff8ed);
}
.kids-ui-redesign.kids-test-detail-page .kids-practice-head::after,
.kids-ui-redesign.kids-game-detail-page .kids-practice-head::after{
  position:absolute;
  right:24px;
  top:50%;
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  transform:translateY(-50%);
  border-radius:20px;
  background:rgba(255,255,255,.82);
  border:1px solid #d7e4f7;
  box-shadow:0 12px 26px rgba(30,64,175,.12);
  font-size:34px;
}
.kids-ui-redesign.kids-test-detail-page .kids-practice-head::after{content:"⏱️"}
.kids-ui-redesign.kids-game-detail-page .kids-practice-head::after{content:"🎮"}
.kids-ui-redesign.kids-test-detail-page .kids-practice-head h1,
.kids-ui-redesign.kids-game-detail-page .kids-practice-head h1{
  margin:7px 0 7px;
  font-size:clamp(27px,3.2vw,38px);
  line-height:1.08;
}
.kids-ui-redesign.kids-test-detail-page .kids-practice-head p,
.kids-ui-redesign.kids-game-detail-page .kids-practice-head p{
  max-width:720px;
  margin-bottom:0;
  color:#52627a;
}
.kids-ui-redesign.kids-game-detail-page .kids-practice-head .kids-button{
  position:relative;
  z-index:2;
}
.kids-ui-redesign.kids-test-detail-page .kids-side-card{
  border-radius:24px;
  background:linear-gradient(180deg,#fbfdff,#f6f9ff);
}
.kids-ui-redesign.kids-game-detail-page .kids-game-stage{
  border-radius:22px;
  border:1px solid #d8e5f6;
}

html[data-theme="dark"] .kids-ui-redesign .kids-directory-hero::after,
html[data-theme="dark"] .kids-ui-redesign.kids-test-detail-page .kids-practice-head::after,
html[data-theme="dark"] .kids-ui-redesign.kids-game-detail-page .kids-practice-head::after{
  background:linear-gradient(135deg,#17233a,#111b2d);
  border-color:#344967;
  box-shadow:0 14px 28px rgba(0,0,0,.32)
}
html[data-theme="dark"] .kids-ui-redesign.kids-test-detail-page .kids-practice-head,
html[data-theme="dark"] .kids-ui-redesign.kids-game-detail-page .kids-practice-head,
html[data-theme="dark"] .kids-ui-redesign.kids-test-detail-page .kids-side-card{
  background:linear-gradient(135deg,#111c30,#12192a 64%,#211a12);
  border-color:#30425e
}
html[data-theme="dark"] .kids-ui-redesign.kids-test-detail-page .kids-practice-head p,
html[data-theme="dark"] .kids-ui-redesign.kids-game-detail-page .kids-practice-head p{
  color:#c4d2e6
}

@media(prefers-color-scheme:dark){
  html[data-theme="system"] .kids-ui-redesign .kids-directory-hero::after,
  html[data-theme="system"] .kids-ui-redesign.kids-test-detail-page .kids-practice-head::after,
  html[data-theme="system"] .kids-ui-redesign.kids-game-detail-page .kids-practice-head::after{
    background:linear-gradient(135deg,#17233a,#111b2d);
    border-color:#344967;
    box-shadow:0 14px 28px rgba(0,0,0,.32)
  }
  html[data-theme="system"] .kids-ui-redesign.kids-test-detail-page .kids-practice-head,
  html[data-theme="system"] .kids-ui-redesign.kids-game-detail-page .kids-practice-head,
  html[data-theme="system"] .kids-ui-redesign.kids-test-detail-page .kids-side-card{
    background:linear-gradient(135deg,#111c30,#12192a 64%,#211a12);
    border-color:#30425e
  }
  html[data-theme="system"] .kids-ui-redesign.kids-test-detail-page .kids-practice-head p,
  html[data-theme="system"] .kids-ui-redesign.kids-game-detail-page .kids-practice-head p{color:#c4d2e6}
}

@media(max-width:720px){
  .kids-ui-redesign .kids-directory-hero{padding:22px}
  .kids-ui-redesign .kids-directory-hero::after{display:none}
  .kids-ui-redesign.kids-test-detail-page .kids-practice-head,
  .kids-ui-redesign.kids-game-detail-page .kids-practice-head{
    min-height:0;
    padding:18px 20px
  }
  .kids-ui-redesign.kids-test-detail-page .kids-practice-head::after,
  .kids-ui-redesign.kids-game-detail-page .kids-practice-head::after{display:none}
}

@media(max-height:850px) and (min-width:721px){
  .kids-ui-redesign .kids-directory-hero{padding-top:20px;padding-bottom:20px}
  .kids-ui-redesign.kids-test-detail-page .kids-practice-head,
  .kids-ui-redesign.kids-game-detail-page .kids-practice-head{min-height:96px;padding-top:16px;padding-bottom:14px}
}

/* ==========================================================
   v17.10.76 KIDS TESTS — THREE VISIBLE TYPING ROWS
========================================================== */
.kids-ui-redesign.kids-test-detail-page .kids-text-area{
  --kids-test-visible-lines:3;
  --kids-test-line-height:1.55;
  display:block;
  min-height:214px;
  height:214px;
  max-height:214px;
  height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 36px);
  min-height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 36px);
  max-height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 36px);
  padding:18px 22px;
  overflow-x:hidden;
  overflow-y:hidden;
  scroll-behavior:auto;
  scrollbar-width:none;
  background:var(--surface,#fff)
}
.kids-ui-redesign.kids-test-detail-page .kids-text-area::-webkit-scrollbar{display:none}
.kids-ui-redesign.kids-test-detail-page .kids-text{
  position:relative;
  width:100%;
  margin:0;
  font-size:clamp(28px,2.7vw,38px);
  line-height:var(--kids-test-line-height);
  letter-spacing:.04em;
  text-align:left;
  overflow-wrap:normal;
  word-break:normal
}
.kids-ui-redesign.kids-test-detail-page .kids-char{
  white-space:pre-wrap
}

/* On typical laptop widths this keeps the passage to approximately three
   comfortable rows and gets the keyboard into view much sooner. */
@media(max-width:1180px){
  .kids-ui-redesign.kids-test-detail-page .kids-text-area{
    --kids-test-line-height:1.52;
    height:190px;
    min-height:190px;
    max-height:190px;
    height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 32px);
    min-height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 32px);
    max-height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 32px);
    padding:16px 18px
  }
  .kids-ui-redesign.kids-test-detail-page .kids-text{
    font-size:clamp(25px,2.8vw,34px);
    line-height:var(--kids-test-line-height)
  }
}

@media(max-width:720px){
  .kids-ui-redesign.kids-test-detail-page .kids-text-area{
    --kids-test-line-height:1.48;
    height:158px;
    min-height:158px;
    max-height:158px;
    height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 28px);
    min-height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 28px);
    max-height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 28px);
    padding:14px 14px
  }
  .kids-ui-redesign.kids-test-detail-page .kids-text{
    font-size:clamp(22px,6vw,29px);
    line-height:var(--kids-test-line-height);
    letter-spacing:.025em
  }
}

@media(max-height:820px) and (min-width:721px){
  .kids-ui-redesign.kids-test-detail-page .kids-text-area{
    --kids-test-line-height:1.48;
    height:170px;
    min-height:170px;
    max-height:170px;
    height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 28px);
    min-height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 28px);
    max-height:calc(var(--kids-test-visible-lines) * var(--kids-test-line-height) * 1em + 28px);
    padding-top:14px;
    padding-bottom:14px
  }
  .kids-ui-redesign.kids-test-detail-page .kids-text{
    font-size:clamp(25px,2.5vw,32px);
    line-height:var(--kids-test-line-height)
  }
}

/* ==========================================================
   v17.10.79 KIDS TESTS — EXACTLY THREE COMPLETE ROWS
   Fixes the previous em-based viewport calculation which used the
   container font size instead of the large typing-text font size.
========================================================== */
.kids-ui-redesign.kids-test-detail-page .kids-text-area{
  box-sizing:border-box;
  height:214px;
  min-height:214px;
  max-height:214px;
  padding:18px 22px;
  overflow:hidden;
}

@media(max-width:1180px){
  .kids-ui-redesign.kids-test-detail-page .kids-text-area{
    height:190px;
    min-height:190px;
    max-height:190px;
    padding:16px 18px;
  }
}

@media(max-width:720px){
  .kids-ui-redesign.kids-test-detail-page .kids-text-area{
    height:158px;
    min-height:158px;
    max-height:158px;
    padding:14px;
  }
}

@media(max-height:820px) and (min-width:721px){
  .kids-ui-redesign.kids-test-detail-page .kids-text-area{
    height:170px;
    min-height:170px;
    max-height:170px;
    padding-top:14px;
    padding-bottom:14px;
  }
}

/* The green test progress bar sits after the full viewport instead of
   visually clipping the third line. */
.kids-ui-redesign.kids-test-detail-page .kids-progress-track{
  position:relative;
  z-index:2;
  margin-top:0;
  flex:0 0 auto;
}

/* ==========================================================
   v17.10.80 KIDS STICKY SUBNAV POLISH
   Keep the small Kids navigation available after the global
   header scrolls away, while preserving maximum activity space.
========================================================== */
.kids-ui-redesign .kids-subnav{
  position:sticky;
  top:0;
  z-index:85;
  padding-top:7px;
  padding-bottom:7px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid rgba(188,205,230,.95);
  box-shadow:0 8px 22px rgba(15,23,42,.08);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  backdrop-filter:blur(16px) saturate(160%);
}
.kids-ui-redesign .kids-subnav a{
  padding-top:7px;
  padding-bottom:7px;
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

html[data-theme="dark"] .kids-ui-redesign .kids-subnav{
  background:rgba(8,17,31,.97);
  border-bottom-color:rgba(48,66,94,.98);
  box-shadow:0 9px 24px rgba(0,0,0,.34);
}

@media(prefers-color-scheme:dark){
  html[data-theme="system"] .kids-ui-redesign .kids-subnav{
    background:rgba(8,17,31,.97);
    border-bottom-color:rgba(48,66,94,.98);
    box-shadow:0 9px 24px rgba(0,0,0,.34);
  }
}

@media(max-width:720px){
  .kids-ui-redesign .kids-subnav{
    gap:6px;
    padding-top:6px;
    padding-bottom:6px;
  }
  .kids-ui-redesign .kids-subnav a{
    min-height:32px;
    padding:6px 11px;
    font-size:12px;
  }
}

.kids-verification-choice{display:flex!important;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid rgba(23,105,255,.22);border-radius:12px;background:rgba(23,105,255,.06);font-size:.88rem;line-height:1.45}.kids-verification-choice input{width:18px;height:18px;margin-top:2px;flex:0 0 auto}.kids-verification-choice span{display:block}.kids-verification-choice strong{color:inherit}

/* 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/universal-selection-v17.7.8.css */
/* ==========================================================
   TypingTutor.Online — high-contrast text selection v17.7.8
   ========================================================== */

/*
 * Use one strong, predictable selection treatment everywhere.
 * White text on saturated blue remains readable on both light and dark
 * surfaces and avoids the pale-selection/white-text conflict seen on blogs.
 */
*::selection {
    color: #ffffff !important;
    background: #075fe4 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

*::-moz-selection {
    color: #ffffff !important;
    background: #075fe4 !important;
    text-shadow: none !important;
}

input::selection,
textarea::selection,
[contenteditable="true"]::selection {
    color: #ffffff !important;
    background: #075fe4 !important;
    -webkit-text-fill-color: #ffffff !important;
}

input::-moz-selection,
textarea::-moz-selection,
[contenteditable="true"]::-moz-selection {
    color: #ffffff !important;
    background: #075fe4 !important;
}

/* Extra contrast for explicit dark mode and System mode on dark devices. */
html[data-theme="dark"] *::selection {
    color: #ffffff !important;
    background: #0057d9 !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] *::-moz-selection {
    color: #ffffff !important;
    background: #0057d9 !important;
}

@media (prefers-color-scheme: dark) {
    html[data-theme="system"] *::selection {
        color: #ffffff !important;
        background: #0057d9 !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html[data-theme="system"] *::-moz-selection {
        color: #ffffff !important;
        background: #0057d9 !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;
    }
}

