/* 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/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: /games/css/games.css */
:root{--game-blue:#1769ff;--game-purple:#7c3aed;--game-green:#10b981;--game-orange:#f59e0b;--game-red:#ef4444;--game-ink:#0f172a}.games-site-header{position:sticky;top:0;z-index:70}.games-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}.games-subnav::-webkit-scrollbar{display:none}.games-subnav a{white-space:nowrap;padding:9px 13px;border-radius:999px;color:var(--muted,#52627a);font-weight:700;font-size:13px}.games-subnav a[aria-current=page],.games-subnav a:hover{background:var(--game-blue);color:#fff}.games-shell{width:min(1280px,calc(100% - 32px));margin:0 auto;padding:24px 0 68px}.games-breadcrumbs{margin-bottom:16px;color:var(--muted,#64748b);font-size:13px}.games-breadcrumbs a{color:var(--game-blue)}.games-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr);gap:24px;align-items:center;padding:clamp(28px,5vw,60px);border-radius:30px;background:linear-gradient(135deg,#eff6ff,#f5f3ff 50%,#ecfeff);border:1px solid #cfe0ff;box-shadow:0 24px 60px rgba(30,64,175,.12)}.games-hero h1{font-size:clamp(38px,6vw,68px);line-height:1.03;margin:10px 0 16px;color:#0f172a}.games-hero p{font-size:clamp(17px,2vw,21px);line-height:1.7;color:#42526b}.games-eyebrow{display:inline-flex;padding:8px 12px;border-radius:999px;background:#fff;color:#1d4ed8;font-size:13px;font-weight:800}.games-hero-visual{display:grid;place-items:center;min-height:260px;position:relative}.games-hero-visual>span{font-size:125px;filter:drop-shadow(0 24px 30px rgba(76,29,149,.2));animation:gameFloat 3s ease-in-out infinite}.games-hero-tip{position:absolute;right:0;top:5px;max-width:220px;padding:15px;background:#fff;border-radius:18px 18px 4px 18px;font-weight:700;color:#334155;box-shadow:0 14px 30px rgba(15,23,42,.12)}@keyframes gameFloat{50%{transform:translateY(-9px) rotate(2deg)}}.game-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:12px 18px;border:0;border-radius:13px;background:var(--game-blue);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 12px 25px rgba(23,105,255,.2)}.game-button.secondary{background:var(--surface,#fff);color:#1d4ed8;border:1px solid #bfd4ff;box-shadow:none}.games-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.games-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:18px 0}.games-stat{padding:17px;border-radius:19px;text-align:center;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0)}.games-stat span{display:block;font-size:10px;letter-spacing:.09em;text-transform:uppercase;font-weight:800;color:var(--muted,#64748b)}.games-stat strong{display:block;margin-top:5px;color:var(--game-blue);font-size:26px}.games-section{margin-top:34px}.games-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}.games-section-heading h2{font-size:clamp(27px,4vw,39px);margin:0}.games-section-heading p{max-width:650px;color:var(--muted,#64748b);line-height:1.65}.games-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.game-card-link,.games-info-card,.games-content-card,.game-side-card,.game-card{background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0);border-radius:24px;box-shadow:0 16px 38px rgba(15,23,42,.06)}.game-card-link{display:flex;flex-direction:column;padding:24px;min-height:250px;transition:transform .2s ease,box-shadow .2s ease}.game-card-link:hover{transform:translateY(-4px);box-shadow:0 22px 45px rgba(15,23,42,.12)}.game-card-link .game-icon{font-size:44px}.game-card-link h3{font-size:23px;margin:15px 0 8px}.game-card-link p{color:var(--muted,#64748b);line-height:1.65;flex:1}.game-tags{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.game-tags span{padding:6px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:800}.game-link-action{color:var(--game-blue);font-weight:800}.game-recommendation{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:22px;border-radius:24px;background:linear-gradient(135deg,#172554,#4c1d95);color:#fff}.game-recommendation>span{font-size:42px}.game-recommendation strong{display:block;font-size:21px}.game-recommendation small{display:block;color:#dbeafe;margin-top:5px;line-height:1.5}.game-recommendation .game-button{background:#fff;color:#1d4ed8}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px}.game-card{overflow:hidden}.game-card-head{display:flex;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid var(--border,#dbe4f0)}.game-card-head h1{font-size:clamp(26px,4vw,40px);margin:0}.game-card-head p{margin:7px 0 0;color:var(--muted,#64748b)}.game-control-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px 18px;background:var(--surface-2,#f8fafc);border-bottom:1px solid var(--border,#dbe4f0)}.game-control-panel label{display:grid;gap:5px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#64748b)}.game-control-panel select,.game-control-panel input{width:100%;padding:10px;border-radius:10px;border:1px solid var(--border,#cbd5e1);background:var(--surface,#fff);color:var(--text,#0f172a)}.game-custom-wrap{padding:0 18px 14px;background:var(--surface-2,#f8fafc)}.game-custom-wrap label{display:grid;gap:6px;font-weight:700}.game-custom-wrap input{padding:11px;border:1px solid var(--border,#cbd5e1);border-radius:11px;background:var(--surface,#fff);color:var(--text,#0f172a)}.game-live-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;padding:13px 18px}.game-live-stat{text-align:center;padding:10px 6px;border-radius:13px;background:var(--surface-2,#f8fafc);border:1px solid var(--border,#dbe4f0)}.game-live-stat span{display:block;color:var(--muted,#64748b);text-transform:uppercase;font-size:9px;letter-spacing:.08em;font-weight:800}.game-live-stat strong{display:block;color:var(--game-blue);font-size:20px;margin-top:3px}.game-stage{min-height:310px;position:relative;display:grid;place-items:center;padding:28px;overflow:hidden;background:radial-gradient(circle at top,#dbeafe,#f8fafc 70%)}.game-idle{text-align:center}.game-idle>span{display:block;font-size:80px}.game-idle strong{display:block;font-size:27px;margin:10px}.game-idle small{color:var(--muted,#64748b)}.game-pop-target{display:grid;place-items:center;width:165px;height:165px;border-radius:50%;background:linear-gradient(135deg,#60a5fa,#7c3aed);color:#fff;font-size:78px;font-weight:900;box-shadow:0 25px 55px rgba(79,70,229,.3);animation:gameFloat 2s ease-in-out infinite}.game-target-text{max-width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:clamp(29px,4vw,50px);line-height:1.65;letter-spacing:.05em;text-align:center}.game-target-text span{display:inline-block;border-radius:.13em}.game-target-text .done{color:#22c55e}.game-target-text .future{color:#64748b}.game-target-text .current{color:#fff;background:var(--game-blue);box-shadow:0 0 0 .08em rgba(23,105,255,.25)}.game-target-scroll{max-height:240px;overflow:hidden}.game-target-label{text-align:center;color:#475569;font-weight:800;margin-bottom:14px}.race-scene{position:relative;width:min(650px,100%);height:90px;border-bottom:8px solid #475569;margin-bottom:28px}.race-runner{position:absolute;left:0;bottom:5px;font-size:50px;transition:left .2s ease;display:inline-block;transform:scaleX(-1);transform-origin:center}.race-finish{position:absolute;right:0;bottom:5px;font-size:50px}.falling-lane{position:relative;width:min(440px,100%);height:260px}.falling-target{position:absolute;left:50%;transform:translateX(-50%);display:grid;place-items:center;width:90px;height:90px;border-radius:22px;background:linear-gradient(135deg,#22c55e,#1769ff);color:#fff;font-size:54px;font-weight:900;box-shadow:0 18px 35px rgba(23,105,255,.25)}.falling-floor{position:absolute;bottom:2px;width:100%;height:9px;border-radius:999px;background:#ef4444}.game-progress-track{height:6px;background:#e2e8f0}.game-progress-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,#10b981,#1769ff)}.game-message{text-align:center;min-height:22px;margin:12px 18px;color:#1d4ed8;font-weight:800}.game-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:0 18px 18px}.game-controls button:disabled{opacity:.5;cursor:not-allowed}.game-keyboard-panel{padding:16px;background:var(--surface-2,#f8fafc);border-top:1px solid var(--border,#dbe4f0)}#keyboardContainer{width:100%}.game-hand-controls{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;margin-top:10px}.game-hand-controls>span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:var(--muted,#64748b)}.game-hand-controls button{padding:7px 10px;border:0;border-radius:9px;background:#e2e8f0;color:#334155;font-size:12px;font-weight:800;cursor:pointer}.game-hand-controls button.is-active{background:var(--game-blue);color:#fff}.game-hands-cache{height:0!important;min-height:0!important;padding:0!important;margin:0!important;overflow:visible!important;border:0!important;background:transparent!important}.game-results{min-height:430px;display:grid;place-items:center;padding:35px;text-align:center}.game-result-inner{max-width:700px}.game-result-medal{font-size:55px}.game-result-inner h2{font-size:40px;margin:10px}.game-result-inner p{font-size:18px;color:var(--muted,#64748b)}.game-result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:22px 0}.game-result-grid>div{padding:15px;border-radius:15px;background:var(--surface-2,#f8fafc);border:1px solid var(--border,#dbe4f0)}.game-result-grid span{display:block;font-size:10px;text-transform:uppercase;color:var(--muted,#64748b);font-weight:800}.game-result-grid strong{display:block;font-size:24px;color:var(--game-blue);margin-top:4px}.game-result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.game-side-card{padding:20px;margin-bottom:14px}.game-side-card h2{font-size:20px}.game-side-card p,.game-side-card li{color:var(--muted,#64748b);line-height:1.6}.game-side-card ul{padding-left:18px}.game-side-best{font-size:22px;color:var(--game-blue);font-weight:900}.games-content-card{padding:clamp(24px,4vw,44px);margin-top:22px}.games-content-card h1{font-size:clamp(34px,5vw,55px)}.games-content-card h2{font-size:27px;margin-top:28px}.games-content-card p,.games-content-card li{color:var(--muted,#52627a);line-height:1.75}.games-content-card ul{padding-left:22px}.games-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:20px}.games-info-card{padding:22px}.games-info-card h3{font-size:21px}.games-info-card p{color:var(--muted,#64748b);line-height:1.65}.game-history-list,.game-score-list{display:grid;gap:10px}.game-history-item,.game-score-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:13px;border-radius:14px;background:var(--surface-2,#f8fafc);border:1px solid var(--border,#dbe4f0)}.game-history-item>span{font-size:24px}.game-history-item small,.game-score-row small{display:block;color:var(--muted,#64748b);margin-top:3px}.game-history-item em{font-style:normal;color:#1d4ed8;font-weight:700}.game-score-row>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#dbeafe;color:#1d4ed8;font-weight:900}.games-empty{color:var(--muted,#64748b)}html[data-theme=dark] .games-hero{background:linear-gradient(135deg,#111c34,#22183d 55%,#082f49);border-color:#334155}html[data-theme=dark] .games-hero h1{color:#f8fafc}html[data-theme=dark] .games-hero p{color:#cbd5e1}html[data-theme=dark] .games-eyebrow,html[data-theme=dark] .games-hero-tip{background:#172033;color:#dbeafe}html[data-theme=dark] .game-stage{background:radial-gradient(circle at top,#172554,#111827 70%)}html[data-theme=dark] .game-target-text .future{color:#cbd5e1}html[data-theme=dark] .game-target-label{color:#cbd5e1}@media(prefers-color-scheme:dark){html[data-theme=system] .games-hero{background:linear-gradient(135deg,#111c34,#22183d 55%,#082f49);border-color:#334155}html[data-theme=system] .games-hero h1{color:#f8fafc}html[data-theme=system] .games-hero p{color:#cbd5e1}html[data-theme=system] .games-eyebrow,html[data-theme=system] .games-hero-tip{background:#172033;color:#dbeafe}html[data-theme=system] .game-stage{background:radial-gradient(circle at top,#172554,#111827 70%)}html[data-theme=system] .game-target-text .future{color:#cbd5e1}}@media(max-width:1120px){.games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-layout{grid-template-columns:1fr}.game-side{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.games-stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:850px){.games-hero{grid-template-columns:1fr}.games-hero-visual{min-height:190px}.game-control-panel{grid-template-columns:repeat(2,1fr)}.game-live-stats{grid-template-columns:repeat(3,1fr)}.game-result-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.games-shell{width:min(100% - 20px,1280px);padding-top:14px}.games-grid,.games-info-grid,.game-side{grid-template-columns:1fr}.games-stats{grid-template-columns:repeat(2,1fr)}.games-section-heading{display:block}.game-card-head{display:block}.game-stage{min-height:250px;padding:18px 12px}.game-target-text{font-size:clamp(25px,7vw,34px)}.game-keyboard-panel{padding:8px;overflow-x:auto}#keyboardContainer{min-width:780px}.game-history-item{grid-template-columns:auto 1fr auto}.game-history-item em{grid-column:2/4}.game-recommendation{grid-template-columns:auto 1fr}.game-recommendation .game-button{grid-column:1/3}}@media(max-width:480px){.games-actions,.game-result-actions{display:grid}.game-button{width:100%}.game-control-panel{grid-template-columns:1fr}.game-live-stats{grid-template-columns:repeat(2,1fr)}.games-stats{grid-template-columns:1fr}.game-result-grid{grid-template-columns:1fr 1fr}.game-history-item{grid-template-columns:1fr}.game-history-item em{grid-column:auto}.games-hero{padding:25px 20px}.games-hero-visual>span{font-size:95px}}

/* ==========================================================
   ADVENTURE GAMES v17.7.1
========================================================== */
.game-control-panel.adventure-controls{grid-template-columns:repeat(5,minmax(0,1fr))}.game-theme-note{grid-column:1/-1;margin:-4px 0 0;color:var(--muted,#64748b);font-size:11px;font-weight:600}.game-stage[class*="adventure-theme-"]{transition:background .25s ease}.game-stage.adventure-theme-classic{background:radial-gradient(circle at top,#dbeafe,#f8fafc 70%)}.game-stage.adventure-theme-space{background:radial-gradient(circle at top,#312e81,#0f172a 72%);color:#fff}.game-stage.adventure-theme-jungle{background:radial-gradient(circle at top,#bbf7d0,#ecfccb 72%)}.game-stage.adventure-theme-ocean{background:radial-gradient(circle at top,#bae6fd,#cffafe 72%)}
.adventure-runner-scene,.treasure-map,.builder-scene,.defense-scene{position:relative;width:min(760px,100%);height:170px;margin-bottom:24px;border-radius:24px;overflow:hidden;border:1px solid rgba(148,163,184,.35);box-shadow:inset 0 -10px 30px rgba(15,23,42,.06)}.adventure-runner-scene{background:linear-gradient(#bfdbfe 0 67%,#86efac 67%)}.adventure-sky{position:absolute;left:5%;right:5%;top:12px;display:flex;justify-content:space-between;font-size:34px}.adventure-runner{position:absolute;bottom:30px;font-size:52px;transform:translateX(-50%);transition:left .25s ease}.adventure-obstacle{position:absolute;right:8%;bottom:28px;font-size:50px}.adventure-ground{position:absolute;left:0;right:0;bottom:0;height:31px;background:repeating-linear-gradient(90deg,#92400e 0 36px,#78350f 36px 72px)}
.treasure-map{background:linear-gradient(135deg,#fef3c7,#fde68a);display:grid;align-items:center;padding:30px}.treasure-path{display:grid;grid-template-columns:repeat(6,1fr);align-items:center;position:relative}.treasure-path::before{content:"";position:absolute;left:5%;right:5%;top:50%;height:8px;border-radius:999px;background:repeating-linear-gradient(90deg,#92400e 0 18px,transparent 18px 30px);opacity:.7}.treasure-step{position:relative;z-index:1;display:grid;place-items:center;width:42px;height:42px;margin:auto;border-radius:50%;background:#fff7ed;border:3px solid #f59e0b;font-weight:900;color:#92400e}.treasure-step.complete{background:#22c55e;color:#fff;border-color:#15803d}.treasure-step.current{background:#1769ff;color:#fff;border-color:#1d4ed8;box-shadow:0 0 0 8px rgba(23,105,255,.15)}.treasure-avatar{position:absolute;bottom:15px;font-size:34px;transition:left .25s ease}
.builder-scene{background:linear-gradient(#bae6fd 0 68%,#bbf7d0 68%);display:grid;place-items:end center;padding:18px}.builder-pieces{display:flex;align-items:end;justify-content:center;gap:12px;min-height:100px;font-size:48px}.builder-pieces span{animation:adventurePieceIn .3s ease both}.builder-next{opacity:.55;filter:grayscale(.3)}
.defense-scene{background:linear-gradient(135deg,#1e293b,#312e81);color:#fff}.defense-base{position:absolute;left:8%;bottom:22px;font-size:70px}.defense-shield{position:absolute;left:58px;bottom:10px;font-size:48px}.defense-threat{position:absolute;right:8%;top:42px;font-size:54px;transition:left .08s linear}.defense-health{position:absolute;right:18px;top:14px;display:flex;gap:6px;color:#fb7185;font-size:25px}.defense-health .lost{color:#475569;filter:grayscale(1)}
.game-adventure-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#ede9fe;color:#6d28d9;font-size:12px;font-weight:900}.adventure-theme-list{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.adventure-theme-chip{padding:14px;border:1px solid var(--border,#dbe4f0);border-radius:14px;text-align:center;background:var(--surface-2,#f8fafc)}.adventure-theme-chip span{display:block;font-size:28px}.adventure-theme-chip strong{display:block;margin-top:5px}.adventure-theme-chip small{display:block;color:var(--muted,#64748b);margin-top:3px}
html[data-theme=dark] .game-stage.adventure-theme-classic{background:radial-gradient(circle at top,#172554,#111827 72%)}html[data-theme=dark] .game-stage.adventure-theme-jungle{background:radial-gradient(circle at top,#14532d,#052e16 72%)}html[data-theme=dark] .game-stage.adventure-theme-ocean{background:radial-gradient(circle at top,#164e63,#083344 72%)}html[data-theme=dark] .adventure-runner-scene{background:linear-gradient(#1e3a8a 0 67%,#166534 67%)}html[data-theme=dark] .treasure-map{background:linear-gradient(135deg,#713f12,#422006)}html[data-theme=dark] .builder-scene{background:linear-gradient(#164e63 0 68%,#14532d 68%)}
@media(prefers-color-scheme:dark){html[data-theme=system] .game-stage.adventure-theme-classic{background:radial-gradient(circle at top,#172554,#111827 72%)}html[data-theme=system] .game-stage.adventure-theme-jungle{background:radial-gradient(circle at top,#14532d,#052e16 72%)}html[data-theme=system] .game-stage.adventure-theme-ocean{background:radial-gradient(circle at top,#164e63,#083344 72%)}html[data-theme=system] .adventure-runner-scene{background:linear-gradient(#1e3a8a 0 67%,#166534 67%)}html[data-theme=system] .treasure-map{background:linear-gradient(135deg,#713f12,#422006)}html[data-theme=system] .builder-scene{background:linear-gradient(#164e63 0 68%,#14532d 68%)}}
@keyframes adventurePieceIn{from{opacity:0;transform:translateY(18px) scale(.75)}to{opacity:1;transform:none}}@media(max-width:1000px){.game-control-panel.adventure-controls{grid-template-columns:repeat(3,1fr)}.adventure-theme-list{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){.game-control-panel.adventure-controls{grid-template-columns:repeat(2,1fr)}.adventure-runner-scene,.treasure-map,.builder-scene,.defense-scene{height:145px}.builder-pieces{font-size:36px;gap:6px}.adventure-runner,.adventure-obstacle{font-size:42px}.defense-base{font-size:58px}.defense-threat{font-size:44px}}@media(max-width:480px){.game-control-panel.adventure-controls{grid-template-columns:1fr}.adventure-theme-list{grid-template-columns:1fr 1fr}.treasure-map{padding:20px 10px}.treasure-step{width:32px;height:32px;font-size:12px}}


/* ==========================================================
   SPECIALIST GAMES v17.7.4
========================================================== */
.game-control-panel.specialist-controls{grid-template-columns:repeat(4,minmax(0,1fr))}.game-control-panel.specialist-controls.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.specialist-custom-wrap textarea{width:100%;resize:vertical;min-height:84px;padding:11px;border:1px solid var(--border,#cbd5e1);border-radius:11px;background:var(--surface,#fff);color:var(--text,#0f172a);font:inherit}.specialist-custom-wrap small{color:var(--muted,#64748b);line-height:1.5}.game-specialist-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#ecfeff;color:#0e7490;font-size:12px;font-weight:900}.specialist-scene{display:flex;align-items:center;justify-content:center;gap:18px;width:min(760px,100%);min-height:105px;margin-bottom:22px;padding:18px 25px;border:1px solid rgba(148,163,184,.35);border-radius:22px;background:linear-gradient(135deg,#eff6ff,#ecfeff);box-shadow:inset 0 -12px 30px rgba(15,23,42,.04)}.specialist-scene>span{font-size:52px}.specialist-scene strong{display:block;font-size:24px}.specialist-scene small{display:block;margin-top:5px;color:#52627a;text-transform:capitalize}.number-ninja-scene{background:linear-gradient(135deg,#fef3c7,#eff6ff)}.punctuation-scene{background:linear-gradient(135deg,#f5f3ff,#fff7ed)}.punctuation-scene>span{font-family:Georgia,serif;font-weight:900;color:#7c3aed;letter-spacing:.12em}.custom-keys-scene{background:linear-gradient(135deg,#ecfccb,#ecfeff)}.custom-words-scene{background:linear-gradient(135deg,#fce7f3,#eff6ff)}.code-window{width:min(900px,100%);border-radius:20px;overflow:hidden;background:#0f172a;box-shadow:0 25px 55px rgba(15,23,42,.24);border:1px solid #334155}.code-window-bar{display:flex;align-items:center;gap:7px;padding:12px 15px;background:#1e293b}.code-window-bar span{width:12px;height:12px;border-radius:50%;background:#fb7185}.code-window-bar span:nth-child(2){background:#fbbf24}.code-window-bar span:nth-child(3){background:#4ade80}.code-window-bar b{margin-left:auto;color:#cbd5e1;text-transform:uppercase;font-size:11px;letter-spacing:.08em}.code-target{padding:28px;color:#e2e8f0;text-align:left;font-size:clamp(21px,3vw,36px);line-height:1.8;white-space:normal}.code-target .future{color:#cbd5e1}.code-target .done{color:#4ade80}.code-target .current{background:#2563eb;color:#fff}.specialist-scene+.game-target-label{margin-top:-5px}html[data-theme=dark] .specialist-scene{background:linear-gradient(135deg,#172554,#164e63)}html[data-theme=dark] .number-ninja-scene{background:linear-gradient(135deg,#713f12,#172554)}html[data-theme=dark] .punctuation-scene{background:linear-gradient(135deg,#3b0764,#431407)}html[data-theme=dark] .custom-keys-scene{background:linear-gradient(135deg,#14532d,#164e63)}html[data-theme=dark] .custom-words-scene{background:linear-gradient(135deg,#831843,#172554)}html[data-theme=dark] .specialist-scene small{color:#cbd5e1}@media(prefers-color-scheme:dark){html[data-theme=system] .specialist-scene{background:linear-gradient(135deg,#172554,#164e63)}html[data-theme=system] .number-ninja-scene{background:linear-gradient(135deg,#713f12,#172554)}html[data-theme=system] .punctuation-scene{background:linear-gradient(135deg,#3b0764,#431407)}html[data-theme=system] .custom-keys-scene{background:linear-gradient(135deg,#14532d,#164e63)}html[data-theme=system] .custom-words-scene{background:linear-gradient(135deg,#831843,#172554)}html[data-theme=system] .specialist-scene small{color:#cbd5e1}}@media(max-width:850px){.game-control-panel.specialist-controls,.game-control-panel.specialist-controls.compact{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.game-control-panel.specialist-controls,.game-control-panel.specialist-controls.compact{grid-template-columns:1fr}.specialist-scene{display:grid;text-align:center;gap:8px}.specialist-scene>span{font-size:42px}.code-target{padding:20px 15px}}

/* ==========================================================
   GAME SHARING, CHALLENGES, AND LOCAL LEADERBOARDS v17.7.5
========================================================== */
.active-game-challenge{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:13px 18px;background:linear-gradient(135deg,#172554,#4c1d95);color:#fff;border-bottom:1px solid rgba(255,255,255,.14)}.active-game-challenge>span{font-size:30px}.active-game-challenge strong{display:block;font-size:16px}.active-game-challenge small{display:block;margin-top:3px;color:#dbeafe;line-height:1.45}.active-game-challenge a{color:#fff;font-weight:800;text-decoration:underline;text-underline-offset:3px}.game-result-challenge{display:inline-flex;margin:3px auto 16px;padding:8px 13px;border-radius:999px;font-weight:800}.game-result-challenge.complete{background:#dcfce7;color:#166534}.game-result-challenge.pending{background:#fef3c7;color:#92400e}.game-result-actions{flex-wrap:wrap}.game-competition-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.competition-link-card{display:flex;gap:14px;align-items:center;padding:20px;border-radius:22px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0);box-shadow:0 15px 34px rgba(15,23,42,.06);transition:transform .18s ease}.competition-link-card:hover{transform:translateY(-3px)}.competition-link-card>span{font-size:38px}.competition-link-card strong{display:block;font-size:18px}.competition-link-card small{display:block;margin-top:5px;color:var(--muted,#64748b);line-height:1.45}.challenge-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;align-items:center;padding:26px;border-radius:27px;border:1px solid var(--border,#dbe4f0);background:var(--surface,#fff);box-shadow:0 18px 42px rgba(15,23,42,.07)}.challenge-card+.challenge-card{margin-top:18px}.challenge-card-icon{display:grid;place-items:center;width:76px;height:76px;border-radius:23px;font-size:40px;background:linear-gradient(135deg,#dbeafe,#ede9fe)}.challenge-card-copy>span{display:block;color:#2563eb;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:11px}.challenge-card-copy h2{margin:6px 0 8px;font-size:clamp(24px,4vw,36px)}.challenge-card-copy p{margin:0;color:var(--muted,#64748b);line-height:1.65}.challenge-card-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.challenge-card-tags span{padding:6px 9px;border-radius:999px;background:var(--surface-2,#f1f5f9);font-size:11px;font-weight:800;color:var(--muted,#475569)}.challenge-card-action{display:grid;justify-items:end;gap:12px;min-width:210px}.challenge-status{display:inline-flex;padding:7px 11px;border-radius:999px;font-size:12px}.challenge-status.complete{background:#dcfce7;color:#166534}.challenge-status.pending{background:#fef3c7;color:#92400e}.challenge-status.new{background:#e0e7ff;color:#3730a3}.competition-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.competition-stat{padding:18px;border-radius:19px;text-align:center;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0)}.competition-stat span{display:block;color:var(--muted,#64748b);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.competition-stat strong{display:block;margin-top:5px;color:#1769ff;font-size:30px}.leaderboard-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;border-radius:20px;background:var(--surface-2,#f8fafc);border:1px solid var(--border,#dbe4f0);margin-bottom:14px}.leaderboard-controls label{display:grid;gap:6px;color:var(--muted,#64748b);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.leaderboard-controls select{padding:11px;border-radius:11px;border:1px solid var(--border,#cbd5e1);background:var(--surface,#fff);color:var(--text,#0f172a)}.local-leaderboard{display:grid;gap:8px}.leaderboard-row{display:grid;grid-template-columns:48px minmax(0,1fr) 130px 90px 80px;gap:12px;align-items:center;padding:14px 16px;border-radius:16px;background:var(--surface,#fff);border:1px solid var(--border,#dbe4f0)}.leaderboard-row.rank-1{border-color:#fbbf24;background:linear-gradient(90deg,rgba(254,243,199,.8),var(--surface,#fff))}.leaderboard-row.rank-2{border-color:#cbd5e1}.leaderboard-row.rank-3{border-color:#fdba74}.leaderboard-rank{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eff6ff;color:#1d4ed8;font-weight:900}.leaderboard-row strong{display:block}.leaderboard-row small{display:block;margin-top:3px;color:var(--muted,#64748b)}.leaderboard-row b{font-size:20px;color:#1769ff;text-align:right}.leaderboard-row>span:not(.leaderboard-rank){text-align:right;font-weight:700}.server-leaderboard-note{padding:20px;border-radius:20px;background:linear-gradient(135deg,#eff6ff,#f5f3ff);border:1px solid #c7d8ff}.server-leaderboard-note code{overflow-wrap:anywhere}.challenge-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.challenge-rules article{padding:20px;border-radius:20px;background:var(--surface-2,#f8fafc);border:1px solid var(--border,#dbe4f0)}.challenge-rules h3{margin:0 0 8px}.challenge-rules p{margin:0;color:var(--muted,#64748b);line-height:1.6}
html[data-theme=dark] .challenge-card-icon{background:linear-gradient(135deg,#1e3a8a,#4c1d95)}html[data-theme=dark] .competition-link-card,html[data-theme=dark] .challenge-card,html[data-theme=dark] .leaderboard-row,html[data-theme=dark] .competition-stat{background:#111827}html[data-theme=dark] .leaderboard-row.rank-1{background:linear-gradient(90deg,rgba(120,53,15,.35),#111827)}html[data-theme=dark] .server-leaderboard-note{background:linear-gradient(135deg,#172554,#3b0764)}@media(prefers-color-scheme:dark){html[data-theme=system] .challenge-card-icon{background:linear-gradient(135deg,#1e3a8a,#4c1d95)}html[data-theme=system] .competition-link-card,html[data-theme=system] .challenge-card,html[data-theme=system] .leaderboard-row,html[data-theme=system] .competition-stat{background:#111827}html[data-theme=system] .leaderboard-row.rank-1{background:linear-gradient(90deg,rgba(120,53,15,.35),#111827)}html[data-theme=system] .server-leaderboard-note{background:linear-gradient(135deg,#172554,#3b0764)}}@media(max-width:900px){.game-competition-grid{grid-template-columns:1fr}.challenge-card{grid-template-columns:auto 1fr}.challenge-card-action{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;width:100%}.leaderboard-row{grid-template-columns:42px minmax(0,1fr) 110px}.leaderboard-row>span:not(.leaderboard-rank){display:none}}@media(max-width:700px){.leaderboard-controls,.competition-stat-grid,.challenge-rules{grid-template-columns:1fr}.challenge-card{grid-template-columns:1fr;text-align:center}.challenge-card-icon{margin:auto}.challenge-card-tags,.challenge-card-action{justify-content:center}.challenge-card-action{display:grid}.active-game-challenge{grid-template-columns:auto 1fr}.active-game-challenge a{grid-column:1/-1;text-align:center}.leaderboard-row{grid-template-columns:36px minmax(0,1fr) 90px;padding:12px 10px}.leaderboard-row b{font-size:17px}}


/* v17.8.95 — game-first viewport, progressive levels, motion fixes */
body[data-game-type] .games-subnav{padding-top:5px;padding-bottom:5px;gap:5px}
body[data-game-type] .games-subnav a{padding:6px 10px;font-size:12px}
body[data-game-type] .games-shell{padding-top:8px}
body[data-game-type] .games-breadcrumbs{display:none}
body[data-game-type]:not([data-game-type="typing-race"]) .game-layout{grid-template-columns:minmax(0,1fr) 230px;gap:12px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-card-head{padding:9px 14px;align-items:center}
body[data-game-type]:not([data-game-type="typing-race"]) .game-card-head>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0}
body[data-game-type]:not([data-game-type="typing-race"]) .game-card-head .games-eyebrow{display:none}
body[data-game-type]:not([data-game-type="typing-race"]) .game-card-head h1{font-size:20px;line-height:1.2;margin:0}
body[data-game-type]:not([data-game-type="typing-race"]) .game-card-head p{display:none}
.game-level-badge{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:10px;font-weight:900;letter-spacing:.02em;white-space:nowrap}
body[data-game-type]:not([data-game-type="typing-race"]) .game-control-panel{padding:8px 12px;gap:7px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-control-panel label{gap:3px;font-size:9px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-control-panel select,
body[data-game-type]:not([data-game-type="typing-race"]) .game-control-panel input{padding:7px 8px;border-radius:8px;font-size:12px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-theme-note{font-size:9px;margin-top:-2px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-live-stats{padding:7px 12px;gap:6px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-live-stat{padding:6px 4px;border-radius:10px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-live-stat span{font-size:8px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-live-stat strong{font-size:17px;margin-top:1px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-stage{min-height:235px;padding:15px 18px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-message{min-height:18px;margin:6px 12px;font-size:12px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-controls{gap:7px;padding:0 12px 9px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-controls .game-button{padding:8px 12px;border-radius:10px;font-size:12px;box-shadow:none}
body[data-game-type]:not([data-game-type="typing-race"]) .game-side-card{padding:13px;margin-bottom:9px;border-radius:18px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-side-card h2{font-size:16px;margin:0 0 5px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-side-card p,
body[data-game-type]:not([data-game-type="typing-race"]) .game-side-card li{font-size:12px;line-height:1.45}
body[data-game-type]:not([data-game-type="typing-race"]) .game-side-best{font-size:17px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-keyboard-panel{padding:10px 12px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-hand-controls{margin-top:6px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-idle>span{font-size:54px}
body[data-game-type]:not([data-game-type="typing-race"]) .game-idle strong{font-size:22px;margin:6px}
.game-result-level{display:flex;justify-content:center;gap:8px;align-items:center;flex-wrap:wrap;margin:12px auto 4px;padding:9px 12px;border:1px solid #bfdbfe;border-radius:13px;background:#eff6ff;color:#1e3a8a;font-size:12px}
.game-result-level strong{font-weight:900}.game-result-level span{color:#475569}
.adventure-runner{transform:translateX(-50%) scaleX(-1);transform-origin:center;transition:left .25s ease}
.falling-lane.falling-level-2,.falling-lane.falling-level-3{width:min(620px,100%)}
.falling-lane.falling-level-3 .falling-target{box-shadow:0 18px 38px rgba(124,58,237,.3);background:linear-gradient(135deg,#7c3aed,#1769ff)}
html[data-theme=dark] .game-level-badge,html[data-theme=dark] .game-result-level{background:#172554;color:#bfdbfe;border-color:#1e40af}
html[data-theme=dark] .game-result-level span{color:#cbd5e1}
@media(prefers-color-scheme:dark){html[data-theme=system] .game-level-badge,html[data-theme=system] .game-result-level{background:#172554;color:#bfdbfe;border-color:#1e40af}html[data-theme=system] .game-result-level span{color:#cbd5e1}}
@media(max-width:1120px){body[data-game-type]:not([data-game-type="typing-race"]) .game-layout{grid-template-columns:1fr}body[data-game-type]:not([data-game-type="typing-race"]) .game-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}
@media(max-width:720px){body[data-game-type] .games-subnav{padding-left:10px;padding-right:10px}body[data-game-type]:not([data-game-type="typing-race"]) .game-card-head h1{font-size:18px}body[data-game-type]:not([data-game-type="typing-race"]) .game-stage{min-height:220px;padding:12px}body[data-game-type]:not([data-game-type="typing-race"]) .game-side{grid-template-columns:1fr}}
.game-next-step{max-width:900px;margin:16px auto 12px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;text-align:left;border:1px solid rgba(37,99,235,.24);border-radius:18px;background:linear-gradient(135deg,#eff6ff,#f8fbff)}.game-next-step span{display:block;color:#2563eb;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.game-next-step strong{display:block;margin-top:3px;font-size:19px;color:#0f172a}.game-next-step p{margin:4px 0 0!important;color:#52627a!important;font-size:13px;line-height:1.5}.game-next-step-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:min(430px,100%)}html[data-theme="dark"] .game-next-step{background:linear-gradient(135deg,rgba(30,64,175,.28),rgba(15,23,42,.85));border-color:#334763}html[data-theme="dark"] .game-next-step strong{color:#eef4ff}html[data-theme="dark"] .game-next-step p{color:#cbd5e1!important}@media(max-width:760px){.game-next-step{align-items:stretch;flex-direction:column}.game-next-step-actions{min-width:0;justify-content:stretch}.game-next-step-actions .game-button{flex:1 1 100%}}

/* Moving-word games v17.9.07 */
.moving-word-stage{display:grid;gap:12px}.moving-word-arena{position:relative;height:250px;overflow:hidden;border:1px solid var(--border-color,#d9e2ef);border-radius:18px;background:linear-gradient(180deg,rgba(23,105,255,.06),rgba(23,105,255,.015))}.moving-target{position:absolute;transform:translate(-50%,-50%);padding:9px 14px;border-radius:999px;background:#fff;border:2px solid #1769ff;box-shadow:0 8px 24px rgba(23,105,255,.14);font-weight:800;font-size:clamp(16px,2vw,24px);white-space:nowrap;z-index:3}.moving-word-buffer{text-align:center;color:var(--text-muted,#5c6f89)}.moving-word-buffer strong{color:#1769ff}.moving-word-input{width:min(560px,94%);margin:0 auto;padding:13px 18px;border:2px solid #ccd8ea;border-radius:14px;font:inherit;font-weight:700;text-align:center;background:var(--surface,#fff);color:inherit}.moving-word-input:focus{outline:none;border-color:#1769ff;box-shadow:0 0 0 4px rgba(23,105,255,.12)}.moving-word-input.wrong{border-color:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.10)}.moving-lane{position:absolute;left:0;right:0;height:44%;border-bottom:1px dashed rgba(23,105,255,.25)}.moving-lane>span{position:absolute;left:10px;top:8px;font-size:11px;font-weight:800;color:#789}.lane-top{top:0}.lane-bottom{bottom:0;border-top:1px dashed rgba(23,105,255,.25);border-bottom:0}.drift-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(23,105,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(23,105,255,.05) 1px,transparent 1px);background-size:40px 40px}.game-next-action-card{margin-top:18px;padding:18px;border:1px solid #dbe6f4;border-radius:16px;background:rgba(23,105,255,.04)}.game-next-action-card small{display:block;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#1769ff}.game-next-action-card>strong{display:block;font-size:20px;margin:4px 0}.game-result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
html[data-theme="dark"] .moving-target{background:#111827;color:#f8fafc;border-color:#60a5fa}.moving-word-arena{color:inherit}html[data-theme="dark"] .moving-word-input{background:#111827;border-color:#334155}
@media(max-width:700px){.moving-word-arena{height:210px}.moving-target{font-size:16px;padding:7px 11px}}

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


/* v17.9.10 — Typing Runner continuous world movement */
body[data-game-type="typing-runner"] .adventure-runner-scene.runner-world{height:190px;background:linear-gradient(#bfdbfe 0 63%,#86efac 63%);isolation:isolate}
body[data-game-type="typing-runner"] .runner-distance{position:absolute;z-index:8;left:14px;top:12px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.88);border:1px solid rgba(23,105,255,.18);color:#1d4ed8;font-size:11px;font-weight:900;box-shadow:0 5px 16px rgba(15,23,42,.08)}
body[data-game-type="typing-runner"] .runner-sky{z-index:1;opacity:.95;animation:runnerSkyDrift 9s linear infinite}
body[data-game-type="typing-runner"] .runner-scenery{position:absolute;z-index:2;bottom:35px;font-size:32px;filter:saturate(.9);opacity:.88;pointer-events:none;animation:runnerSceneryMove 6s linear infinite}
body[data-game-type="typing-runner"] .runner-scenery-a{left:96%;animation-duration:7.2s}
body[data-game-type="typing-runner"] .runner-scenery-b{left:72%;animation-duration:9.4s;animation-delay:-3.8s;font-size:25px;opacity:.7}
body[data-game-type="typing-runner"] .runner-scenery-c{left:48%;animation-duration:11.2s;animation-delay:-7.1s;font-size:22px;opacity:.6}
body[data-game-type="typing-runner"] .adventure-runner.runner-running{z-index:7;left:22%;bottom:30px;transform:translateX(-50%) scaleX(-1);transform-origin:center;transition:left .13s ease;animation:runnerStride var(--runner-pace,.42s) ease-in-out infinite;filter:drop-shadow(0 4px 3px rgba(15,23,42,.18))}
body[data-game-type="typing-runner"] .adventure-obstacle.runner-obstacle{z-index:6;right:auto;left:84%;bottom:29px;transition:left .16s ease,transform .16s ease;filter:drop-shadow(0 5px 4px rgba(15,23,42,.16))}
body[data-game-type="typing-runner"] .runner-dust{position:absolute;z-index:5;left:11%;bottom:31px;color:rgba(120,53,15,.35);font-size:26px;letter-spacing:7px;animation:runnerDust .75s ease-in-out infinite}
body[data-game-type="typing-runner"] .runner-ground{z-index:4;background:repeating-linear-gradient(90deg,#92400e 0 32px,#78350f 32px 64px);background-size:128px 31px;animation:runnerGroundMove 1.05s linear infinite}
body[data-game-type="typing-runner"] .game-target-label{font-weight:800}
body[data-game-type="typing-runner"] .game-target-text{margin-top:7px}
body[data-game-type="typing-runner"] .adventure-theme-space .runner-world,body[data-game-type="typing-runner"] .adventure-theme-space.adventure-runner-scene{background:linear-gradient(#111827 0 63%,#334155 63%)}
body[data-game-type="typing-runner"] .adventure-theme-space .runner-ground{background:repeating-linear-gradient(90deg,#475569 0 32px,#1e293b 32px 64px)}
body[data-game-type="typing-runner"] .adventure-theme-jungle .runner-world,body[data-game-type="typing-runner"] .adventure-theme-jungle.adventure-runner-scene{background:linear-gradient(#bae6fd 0 63%,#4ade80 63%)}
body[data-game-type="typing-runner"] .adventure-theme-ocean .runner-world,body[data-game-type="typing-runner"] .adventure-theme-ocean.adventure-runner-scene{background:linear-gradient(#bae6fd 0 55%,#38bdf8 55% 77%,#fcd34d 77%)}
@keyframes runnerGroundMove{to{background-position:-128px 0}}
@keyframes runnerSceneryMove{from{transform:translateX(0)}to{transform:translateX(-850px)}}
@keyframes runnerSkyDrift{0%{transform:translateX(0)}50%{transform:translateX(-14px)}100%{transform:translateX(0)}}
@keyframes runnerStride{0%,100%{transform:translateX(-50%) scaleX(-1) translateY(0) rotate(0)}50%{transform:translateX(-50%) scaleX(-1) translateY(-4px) rotate(-2deg)}}
@keyframes runnerDust{50%{opacity:.25;transform:translateX(-8px) scale(.85)}}
body[data-game-type="typing-runner"] .game-card:has([data-pause-game][disabled]) .runner-ground,body[data-game-type="typing-runner"] .game-card:has([data-pause-game][disabled]) .runner-scenery{animation-play-state:paused}
html[data-theme=dark] body[data-game-type="typing-runner"] .runner-distance{background:rgba(15,23,42,.86);color:#bfdbfe;border-color:#334155}
@media(prefers-reduced-motion:reduce){body[data-game-type="typing-runner"] .runner-ground,body[data-game-type="typing-runner"] .runner-scenery,body[data-game-type="typing-runner"] .runner-sky,body[data-game-type="typing-runner"] .runner-running,body[data-game-type="typing-runner"] .runner-dust{animation:none!important}}
@media(max-width:700px){body[data-game-type="typing-runner"] .adventure-runner-scene.runner-world{height:160px}body[data-game-type="typing-runner"] .runner-scenery{font-size:25px}body[data-game-type="typing-runner"] .adventure-runner.runner-running{font-size:44px}body[data-game-type="typing-runner"] .adventure-obstacle.runner-obstacle{font-size:43px}}

body[data-game-type="typing-runner"] .game-stage.runner-paused .runner-ground,body[data-game-type="typing-runner"] .game-stage.runner-paused .runner-scenery,body[data-game-type="typing-runner"] .game-stage.runner-paused .runner-sky,body[data-game-type="typing-runner"] .game-stage.runner-paused .runner-running,body[data-game-type="typing-runner"] .game-stage.runner-paused .runner-dust{animation-play-state:paused!important}


/* =========================================================
   v17.10.10 — Games directory light engagement palette
   Scope: /games/ directory only. Active game workspaces stay neutral.
   ========================================================= */
.games-index-page{
  --games-cyan-soft:#f0fbfd;
  --games-violet-soft:#f7f4ff;
  --games-mint-soft:#f1fbf6;
  --games-amber-soft:#fff9ef;
  --games-rose-soft:#fff5f8;
  --games-blue-soft:#f2f7ff;
}
.games-index-page .games-hero{background:linear-gradient(135deg,#eff6ff 0%,#f8f5ff 48%,#effcfd 100%);border-color:#cbdff7}
.games-index-page .games-stat:nth-child(1){background:#f3f8ff;border-color:#d7e5f8}
.games-index-page .games-stat:nth-child(2){background:#f2fbf6;border-color:#dcecdf}
.games-index-page .games-stat:nth-child(3){background:#fff9ef;border-color:#efe1c1}
.games-index-page .games-stat:nth-child(4){background:#f8f5ff;border-color:#e3dcf2}
.games-index-page .games-stat:nth-child(5){background:#fff5f8;border-color:#efdee5}
.games-index-page .game-competition-grid>*,.games-index-page .games-info-card,.games-index-page .game-card-link{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.games-index-page #keyboardRowGames,
.games-index-page .games-section:nth-of-type(5),
.games-index-page .games-section:nth-of-type(6),
.games-index-page .games-section:nth-of-type(9){padding:26px;border:1px solid;border-radius:26px}
.games-index-page #keyboardRowGames{background:linear-gradient(135deg,var(--games-cyan-soft),#fff);border-color:#d4e9ed}
.games-index-page .games-section:nth-of-type(5){background:linear-gradient(135deg,var(--games-violet-soft),#fff);border-color:#e1dbf1}
.games-index-page .games-section:nth-of-type(6){background:linear-gradient(135deg,var(--games-mint-soft),#fff);border-color:#d8e9df}
.games-index-page .games-section:nth-of-type(9){background:linear-gradient(135deg,var(--games-amber-soft),#fff);border-color:#eee0bf}
.games-index-page .game-card-link{background:rgba(255,255,255,.92);border-color:#dce6f2}
.games-index-page .game-card-link .game-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:#f1f6ff;border:1px solid #d8e5f7;font-size:31px}
.games-index-page #keyboardRowGames .game-card-link .game-icon{background:#edfafd;border-color:#d4eaee}
.games-index-page .games-section:nth-of-type(5) .game-card-link:nth-child(3n+1) .game-icon{background:#f1f6ff;border-color:#d9e5f6}
.games-index-page .games-section:nth-of-type(5) .game-card-link:nth-child(3n+2) .game-icon{background:#f3fbf6;border-color:#daeadf}
.games-index-page .games-section:nth-of-type(5) .game-card-link:nth-child(3n+3) .game-icon{background:#fff8ee;border-color:#eddfc3}
.games-index-page .games-info-card{background:rgba(255,255,255,.92);border-color:#dce8e1}
.games-index-page #adultTypingFromGames{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--games-rose-soft),#fff 58%,#f8f5ff);border-color:#ead9e3}
.games-index-page #adultTypingFromGames::before,.games-index-page .games-content-card:not(#adultTypingFromGames)::before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:4px;border-radius:0 8px 8px 0}
.games-index-page #adultTypingFromGames::before{background:#e6a8c0}
.games-index-page .games-content-card:not(#adultTypingFromGames){position:relative;overflow:hidden;background:linear-gradient(135deg,var(--games-blue-soft),#fff);border-color:#d5e3f5}
.games-index-page .games-content-card:not(#adultTypingFromGames)::before{background:#8eb9ef}
@media (hover:hover) and (pointer:fine){
  .games-index-page .game-card-link:hover,.games-index-page .games-info-card:hover{transform:translateY(-3px);border-color:#c2d5ec;box-shadow:0 16px 32px rgba(44,76,120,.10)}
}
@media(max-width:720px){.games-index-page #keyboardRowGames,.games-index-page .games-section:nth-of-type(5),.games-index-page .games-section:nth-of-type(6),.games-index-page .games-section:nth-of-type(9){padding:18px;border-radius:20px}}
html[data-theme="dark"] .games-index-page .games-stat,
html[data-theme="dark"] .games-index-page #keyboardRowGames,
html[data-theme="dark"] .games-index-page .games-section:nth-of-type(5),
html[data-theme="dark"] .games-index-page .games-section:nth-of-type(6),
html[data-theme="dark"] .games-index-page .games-section:nth-of-type(9),
html[data-theme="dark"] .games-index-page .game-card-link,
html[data-theme="dark"] .games-index-page .games-info-card,
html[data-theme="dark"] .games-index-page #adultTypingFromGames,
html[data-theme="dark"] .games-index-page .games-content-card:not(#adultTypingFromGames){background:var(--surface,#111827);border-color:var(--border,#334155)}
html[data-theme="dark"] .games-index-page .game-card-link .game-icon{background:#172033;border-color:#334155}
@media(prefers-color-scheme:dark){
  html[data-theme="system"] .games-index-page .games-stat,
  html[data-theme="system"] .games-index-page #keyboardRowGames,
  html[data-theme="system"] .games-index-page .games-section:nth-of-type(5),
  html[data-theme="system"] .games-index-page .games-section:nth-of-type(6),
  html[data-theme="system"] .games-index-page .games-section:nth-of-type(9),
  html[data-theme="system"] .games-index-page .game-card-link,
  html[data-theme="system"] .games-index-page .games-info-card,
  html[data-theme="system"] .games-index-page #adultTypingFromGames,
  html[data-theme="system"] .games-index-page .games-content-card:not(#adultTypingFromGames){background:var(--surface,#111827);border-color:var(--border,#334155)}
  html[data-theme="system"] .games-index-page .game-card-link .game-icon{background:#172033;border-color:#334155}
}
.games-index-page .competition-link-card:nth-child(1){background:#fff9ef;border-color:#eee0bf}
.games-index-page .competition-link-card:nth-child(2){background:#f8f5ff;border-color:#e1dbf1}
.games-index-page .competition-link-card:nth-child(3){background:#f1fbf6;border-color:#d8e9df}
.games-index-page .competition-link-card>span{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:15px;background:rgba(255,255,255,.78);border:1px solid rgba(148,163,184,.2);font-size:30px}
html[data-theme="dark"] .games-index-page .competition-link-card{background:var(--surface,#111827);border-color:var(--border,#334155)}
@media(prefers-color-scheme:dark){html[data-theme="system"] .games-index-page .competition-link-card{background:var(--surface,#111827);border-color:var(--border,#334155)}}


/* =========================================================
   v17.10.12 — Games hub primary-content-first UX
   Keeps game discovery above personal stats/challenges.
   ========================================================= */
.games-index-page .games-engagement-section{padding:26px;border:1px solid #eee0bf;border-radius:26px;background:linear-gradient(135deg,#fff9ef,#fff 52%,#f8f5ff);}
.games-index-page .games-engagement-section .games-section-heading{margin-bottom:18px}
.games-index-page .games-engagement-section .game-recommendation{margin:0 0 16px}
.games-index-page .games-engagement-section .game-competition-grid{margin-top:0}
.games-index-page .games-engagement-section .games-stats{margin:16px 0 0}
.games-index-page #allTypingGames,.games-index-page #gamesBySkill{scroll-margin-top:130px}
@media(max-width:720px){.games-index-page .games-engagement-section{padding:18px;border-radius:20px}}
html[data-theme="dark"] .games-index-page .games-engagement-section{background:var(--surface,#111827);border-color:var(--border,#334155)}
@media(prefers-color-scheme:dark){html[data-theme="system"] .games-index-page .games-engagement-section{background:var(--surface,#111827);border-color:var(--border,#334155)}}


/* v17.10.13 — clearer game endings, limited chances, compact related games */
.game-chances,.moving-word-chances{position:absolute;z-index:6;top:14px;right:14px;display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #cbdcff;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(15,23,42,.08);color:#334155;font-style:normal}
.game-chances small,.moving-word-chances small{font-size:10px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.game-chances strong,.moving-word-chances strong{display:flex;gap:2px;font-size:16px;line-height:1}.game-chances .is-live,.moving-word-chances .is-live{color:#ef476f}.game-chances .is-used,.moving-word-chances .is-used{color:#cbd5e1}.game-chances em,.moving-word-chances em{font-size:11px;font-weight:900;color:#1769ff;font-style:normal}
.game-results:not([hidden]){background:linear-gradient(180deg,#f8fbff 0%,#fff 100%)}.game-result-inner{width:min(900px,100%)}.game-result-celebration{position:relative;overflow:hidden;padding:28px 24px 24px;border:1px solid #cfe0ff;border-radius:24px;background:linear-gradient(135deg,#eff6ff,#f5f3ff 55%,#ecfeff);box-shadow:0 18px 44px rgba(23,105,255,.09)}.game-result-inner.is-game-over .game-result-celebration,.game-result-card.is-game-over .game-result-celebration{background:linear-gradient(135deg,#fff7ed,#fff1f2 55%,#fefce8);border-color:#fed7aa}.game-result-kicker{display:inline-flex;padding:6px 10px;border-radius:999px;background:#1769ff;color:#fff;font-size:11px;font-weight:900;letter-spacing:.08em}.is-game-over .game-result-kicker{background:#b45309}.game-result-celebration .game-result-medal{display:block;margin:10px auto 0;font-size:68px;filter:drop-shadow(0 10px 14px rgba(15,23,42,.12));animation:resultPop .45s ease-out}.game-result-celebration h2{font-size:clamp(32px,5vw,52px);margin:2px 0 6px}.game-result-celebration>p{margin:0 auto;max-width:700px;font-size:18px;line-height:1.55;color:#52627a}.game-achievement-row{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:16px}.game-achievement-row span{padding:8px 11px;border:1px solid #c7d8ff;border-radius:999px;background:#fff;color:#174fbf;font-size:12px;font-weight:850}.game-confetti{position:absolute;inset:0;pointer-events:none}.game-confetti i{position:absolute;font-style:normal;font-size:13px;color:#1769ff;animation:confettiFloat 2.6s ease-in-out infinite}.game-confetti i:nth-child(1){left:8%;top:16%}.game-confetti i:nth-child(2){left:18%;top:68%;color:#7c3aed;animation-delay:.25s}.game-confetti i:nth-child(3){left:31%;top:9%;color:#f59e0b;animation-delay:.45s}.game-confetti i:nth-child(4){right:29%;top:14%;color:#10b981;animation-delay:.15s}.game-confetti i:nth-child(5){right:17%;top:65%;color:#7c3aed;animation-delay:.35s}.game-confetti i:nth-child(6){right:8%;top:20%;color:#f59e0b;animation-delay:.55s}.game-confetti i:nth-child(7){left:10%;top:48%;color:#10b981;animation-delay:.7s}.game-confetti i:nth-child(8){right:10%;top:45%;animation-delay:.8s}.game-result-loss{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:14px 0;padding:13px 16px;border:1px solid #fed7aa;border-radius:14px;background:#fffaf3;text-align:left}.game-result-loss strong{color:#b45309}.game-result-loss span{color:#64748b;font-size:13px}.game-next-step.is-replay{border-color:#fed7aa;background:linear-gradient(135deg,#fffaf3,#fff)}
.games-more-section{margin-top:30px}.games-more-section .games-section-heading{margin-bottom:12px}.games-more-section .games-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.games-more-section .game-card-link{min-height:205px;padding:18px;border-radius:20px}.games-more-section .game-card-link:nth-child(4n+1){background:#f8fbff}.games-more-section .game-card-link:nth-child(4n+2){background:#fbf9ff}.games-more-section .game-card-link:nth-child(4n+3){background:#f6fffb}.games-more-section .game-card-link:nth-child(4n+4){background:#fffaf4}.games-more-section .game-card-link .game-icon{font-size:35px}.games-more-section .game-card-link h3{font-size:19px;margin:11px 0 6px}.games-more-section .game-card-link p{font-size:14px;line-height:1.5}.games-more-section .game-tags{margin:10px 0}.games-more-section .game-tags span{font-size:10px;padding:5px 7px}
@keyframes resultPop{from{transform:scale(.6) rotate(-8deg);opacity:0}to{transform:scale(1);opacity:1}}@keyframes confettiFloat{50%{transform:translateY(-7px) rotate(20deg)}}
@media(max-width:1050px){.games-more-section .games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.games-more-section .games-grid{grid-template-columns:1fr}.game-result-celebration{padding:22px 14px}.game-result-loss{align-items:flex-start;flex-direction:column}.game-chances,.moving-word-chances{top:8px;right:8px}}
@media(prefers-reduced-motion:reduce){.game-result-medal,.game-confetti i{animation:none!important}}
.game-result-card{width:min(900px,100%)}.game-result-card .game-result-grid{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:760px){.game-result-card .game-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Letter Pop five-level full-keyboard upgrade v17.10.37 */
body[data-game-type="letter-pop"] .game-card{overflow:visible}
body[data-game-type="letter-pop"] .game-live-stats{grid-template-columns:repeat(8,minmax(0,1fr))}
body[data-game-type="letter-pop"] .game-stage{min-height:390px;padding:0;background:linear-gradient(145deg,#eff6ff 0%,#f5f3ff 48%,#ecfeff 100%)}
.letter-pop-arena{position:absolute;inset:0;overflow:hidden;border-radius:0;background-image:radial-gradient(circle at 12% 18%,rgba(96,165,250,.17) 0 34px,transparent 35px),radial-gradient(circle at 88% 74%,rgba(167,139,250,.15) 0 52px,transparent 53px),radial-gradient(circle at 70% 18%,rgba(45,212,191,.12) 0 26px,transparent 27px)}
.letter-pop-level-card{position:absolute;z-index:8;top:14px;left:14px;display:grid;gap:1px;min-width:145px;padding:9px 12px;border:1px solid #cfe0ff;border-radius:15px;background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(15,23,42,.08)}
.letter-pop-level-card small{font-size:9px;font-weight:900;letter-spacing:.08em;color:#64748b}.letter-pop-level-card strong{font-size:16px;color:#1d4ed8}.letter-pop-level-card span{font-size:11px;font-weight:800;color:#475569}
.letter-pop-challenge-badge{position:absolute;z-index:9;top:15px;left:50%;transform:translateX(-50%);padding:7px 11px;border-radius:999px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:11px;font-weight:900;box-shadow:0 8px 18px rgba(194,65,12,.12)}
body[data-game-type="letter-pop"] .game-pop-target{position:absolute;z-index:5;transform:translate(-50%,-50%);width:var(--pop-size,150px);height:var(--pop-size,150px);font-size:clamp(44px,6vw,76px);animation:letterPopFloat 1.35s ease-in-out infinite,letterPopAppear .18s ease-out both;transition:left .18s ease,top .18s ease,width .2s ease,height .2s ease;user-select:none}
body[data-game-type="letter-pop"] .game-pop-target::after{content:"";position:absolute;width:13%;height:13%;border-radius:50%;left:23%;top:18%;background:rgba(255,255,255,.72);filter:blur(.5px)}
body[data-game-type="letter-pop"] .game-pop-target.is-urgent{animation:letterPopUrgent .34s ease-in-out infinite alternate;box-shadow:0 0 0 8px rgba(239,68,68,.10),0 24px 50px rgba(239,68,68,.28)}
body[data-game-type="letter-pop"] .pop-color-0{background:linear-gradient(135deg,#38bdf8,#2563eb)}body[data-game-type="letter-pop"] .pop-color-1{background:linear-gradient(135deg,#a78bfa,#7c3aed)}body[data-game-type="letter-pop"] .pop-color-2{background:linear-gradient(135deg,#34d399,#059669)}body[data-game-type="letter-pop"] .pop-color-3{background:linear-gradient(135deg,#fb7185,#e11d48)}body[data-game-type="letter-pop"] .pop-color-4{background:linear-gradient(135deg,#fbbf24,#f97316)}body[data-game-type="letter-pop"] .pop-color-5{background:linear-gradient(135deg,#22d3ee,#0f766e)}
.letter-pop-timer{position:absolute;z-index:7;left:18%;right:18%;bottom:18px;height:8px;overflow:hidden;border-radius:999px;background:rgba(148,163,184,.28);box-shadow:inset 0 1px 2px rgba(15,23,42,.08)}.letter-pop-timer span{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22c55e,#1769ff,#7c3aed);transition:width .08s linear}
.letter-pop-level-3 .letter-pop-timer span{background:linear-gradient(90deg,#22c55e,#f59e0b)}.letter-pop-level-4 .letter-pop-timer span,.letter-pop-level-5 .letter-pop-timer span{background:linear-gradient(90deg,#f59e0b,#ef4444)}
@keyframes letterPopFloat{50%{transform:translate(-50%,calc(-50% - 8px)) rotate(2deg)}}@keyframes letterPopAppear{from{opacity:.25;scale:.72}to{opacity:1;scale:1}}@keyframes letterPopUrgent{from{transform:translate(-50%,-50%) scale(.97)}to{transform:translate(-50%,-50%) scale(1.05)}}
html[data-theme=dark] body[data-game-type="letter-pop"] .game-stage{background:linear-gradient(145deg,#0f172a,#172554 48%,#083344)}html[data-theme=dark] .letter-pop-level-card{background:rgba(15,23,42,.92);border-color:#334155}html[data-theme=dark] .letter-pop-level-card strong{color:#93c5fd}html[data-theme=dark] .letter-pop-level-card span{color:#cbd5e1}html[data-theme=dark] .letter-pop-challenge-badge{background:#431407;color:#fdba74;border-color:#9a3412}
@media(prefers-color-scheme:dark){html[data-theme=system] body[data-game-type="letter-pop"] .game-stage{background:linear-gradient(145deg,#0f172a,#172554 48%,#083344)}html[data-theme=system] .letter-pop-level-card{background:rgba(15,23,42,.92);border-color:#334155}html[data-theme=system] .letter-pop-level-card strong{color:#93c5fd}html[data-theme=system] .letter-pop-level-card span{color:#cbd5e1}html[data-theme=system] .letter-pop-challenge-badge{background:#431407;color:#fdba74;border-color:#9a3412}}
@media(max-width:1000px){body[data-game-type="letter-pop"] .game-live-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){body[data-game-type="letter-pop"] .game-stage{min-height:330px}.letter-pop-level-card{top:9px;left:9px;min-width:125px;padding:7px 9px}.letter-pop-challenge-badge{top:62px}.letter-pop-timer{left:10%;right:10%;bottom:12px}body[data-game-type="letter-pop"] .game-pop-target{max-width:118px;max-height:118px}}
@media(max-width:480px){body[data-game-type="letter-pop"] .game-live-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.letter-pop-level-card strong{font-size:14px}.letter-pop-challenge-badge{font-size:10px}}
\n\n/* =========================================================\n   v17.10.39 — Word Race: automatic car, five long levels\n   ========================================================= */\nbody[data-game-type="word-race"] .games-shell{width:min(1500px,calc(100% - 28px))}\nbody[data-game-type="word-race"] .game-layout{grid-template-columns:minmax(0,1fr) 250px}\nbody[data-game-type="word-race"] .game-stage{min-height:410px;padding:26px 34px;background:linear-gradient(180deg,#eef7ff 0%,#f8fbff 58%,#f1f5f9 100%)}\nbody[data-game-type="word-race"] .game-live-stats{grid-template-columns:repeat(8,minmax(0,1fr))}\nbody[data-game-type="word-race"] .word-race-arena{width:100%;display:grid;gap:16px;place-items:stretch}\nbody[data-game-type="word-race"] .word-race-status-row{width:min(1160px,100%);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px}\nbody[data-game-type="word-race"] .word-race-level-card{display:grid;gap:2px;padding:10px 14px;border-radius:14px;border:1px solid #bfd4ff;background:rgba(255,255,255,.9);box-shadow:0 8px 22px rgba(30,64,175,.08)}\nbody[data-game-type="word-race"] .word-race-level-card small{font-size:10px;letter-spacing:.1em;font-weight:900;color:#2563eb}\nbody[data-game-type="word-race"] .word-race-level-card strong{font-size:18px;color:#0f172a}\nbody[data-game-type="word-race"] .word-race-level-card span{font-size:12px;color:#52627a}\nbody[data-game-type="word-race"] .word-race-lives{position:static;min-width:175px}\nbody[data-game-type="word-race"] .word-race-lives strong{letter-spacing:2px}\nbody[data-game-type="word-race"] .word-race-challenge-badge{justify-self:center;padding:7px 12px;border-radius:999px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:12px;font-weight:900}\nbody[data-game-type="word-race"] .race-scene{position:relative;width:min(1160px,100%);height:135px;margin:0 auto;border:0;border-radius:20px;background:linear-gradient(180deg,#dbeafe 0 56%,#64748b 56% 76%,#334155 76% 100%);overflow:hidden;box-shadow:inset 0 0 0 1px rgba(30,64,175,.16),0 12px 28px rgba(15,23,42,.08)}\nbody[data-game-type="word-race"] .race-scene:before{content:"";position:absolute;left:0;right:0;top:78%;height:4px;background:repeating-linear-gradient(90deg,#f8fafc 0 34px,transparent 34px 62px);opacity:.85}\nbody[data-game-type="word-race"] .race-runner{position:absolute;left:4%;bottom:25px;font-size:58px;transition:left .06s linear;z-index:5;filter:drop-shadow(0 5px 4px rgba(15,23,42,.24))}\nbody[data-game-type="word-race"] .race-finish{position:absolute;right:2.4%;bottom:28px;font-size:58px;z-index:4}\nbody[data-game-type="word-race"] .race-start{position:absolute;left:12px;top:12px;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.9);color:#2563eb;font-size:10px;font-weight:900;letter-spacing:.08em}\nbody[data-game-type="word-race"] .word-race-target-row{width:min(1160px,100%);margin:0 auto;position:relative;display:flex;align-items:center;justify-content:center;min-height:88px;padding:5px 80px}\nbody[data-game-type="word-race"] .word-race-target-row .game-target-text{font-size:clamp(34px,4vw,58px);line-height:1.35}\nbody[data-game-type="word-race"] .word-race-target-time{position:absolute;right:8px;top:50%;transform:translateY(-50%);min-width:62px;text-align:center;padding:7px 8px;border-radius:11px;background:#eff6ff;color:#1d4ed8;font-weight:900;font-variant-numeric:tabular-nums}\nbody[data-game-type="word-race"] .word-race-timer{width:min(1160px,100%);height:8px;margin:0 auto;border-radius:999px;background:#dbe5f2;overflow:hidden}\nbody[data-game-type="word-race"] .word-race-timer span{display:block;height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#10b981,#3b82f6);transition:width .06s linear}\nbody[data-game-type="word-race"] .game-stage.race-urgent .word-race-timer span{background:linear-gradient(90deg,#f59e0b,#ef4444)}\nbody[data-game-type="word-race"] .game-stage.race-urgent .word-race-target-time{background:#fef2f2;color:#dc2626}\nbody[data-game-type="word-race"] .word-race-custom-wrap textarea{width:100%;resize:vertical;min-height:74px;padding:11px;border:1px solid var(--border,#cbd5e1);border-radius:11px;background:var(--surface,#fff);color:var(--text,#0f172a);font:inherit}\nhtml[data-theme="dark"] body[data-game-type="word-race"] .game-stage{background:linear-gradient(180deg,#0f1d37,#111827 62%,#0b1120)}\nhtml[data-theme="dark"] body[data-game-type="word-race"] .word-race-level-card{background:rgba(15,23,42,.9);border-color:#334a70}\nhtml[data-theme="dark"] body[data-game-type="word-race"] .word-race-level-card strong{color:#f8fafc}\nhtml[data-theme="dark"] body[data-game-type="word-race"] .word-race-level-card span{color:#cbd5e1}\nhtml[data-theme="dark"] body[data-game-type="word-race"] .race-scene{background:linear-gradient(180deg,#172554 0 56%,#475569 56% 76%,#1e293b 76% 100%)}\nhtml[data-theme="dark"] body[data-game-type="word-race"] .word-race-custom-wrap textarea{background:#111827;border-color:#334155;color:#f8fafc}\n@media(max-width:1200px){body[data-game-type="word-race"] .game-layout{grid-template-columns:1fr}body[data-game-type="word-race"] .game-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}\n@media(max-width:900px){body[data-game-type="word-race"] .game-live-stats{grid-template-columns:repeat(4,1fr)}body[data-game-type="word-race"] .race-scene{height:115px}body[data-game-type="word-race"] .race-runner,body[data-game-type="word-race"] .race-finish{font-size:48px}}\n@media(max-width:700px){body[data-game-type="word-race"] .games-shell{width:min(100% - 16px,1500px)}body[data-game-type="word-race"] .game-stage{min-height:330px;padding:18px 10px}body[data-game-type="word-race"] .word-race-status-row{align-items:stretch;flex-direction:column}body[data-game-type="word-race"] .word-race-lives{min-width:0}body[data-game-type="word-race"] .race-scene{height:100px;border-radius:14px}body[data-game-type="word-race"] .race-runner,body[data-game-type="word-race"] .race-finish{font-size:42px;bottom:19px}body[data-game-type="word-race"] .word-race-target-row{padding:4px 58px 4px 4px;min-height:78px}body[data-game-type="word-race"] .word-race-target-row .game-target-text{font-size:clamp(27px,9vw,42px)}body[data-game-type="word-race"] .word-race-target-time{right:2px;font-size:12px;min-width:50px}body[data-game-type="word-race"] .game-live-stats{grid-template-columns:repeat(2,1fr)}body[data-game-type="word-race"] .game-side{grid-template-columns:1fr}}\n@media(prefers-reduced-motion:reduce){body[data-game-type="word-race"] .race-runner,body[data-game-type="word-race"] .word-race-timer span{transition:none!important}}\n
/* =========================================================
   v17.10.48 — Falling Letters: A-Z default + 5 auto levels
   ========================================================= */
body[data-game-type="falling-letters"] .games-shell{width:min(1440px,calc(100% - 28px))}
body[data-game-type="falling-letters"] .game-layout{grid-template-columns:minmax(0,1fr) 260px}
body[data-game-type="falling-letters"] .game-live-stats{grid-template-columns:repeat(8,minmax(0,1fr))}
body[data-game-type="falling-letters"] .game-stage{min-height:390px;padding:24px 28px;background:linear-gradient(180deg,#eef7ff 0%,#f8fbff 70%,#fff7f7 100%)}
body[data-game-type="falling-letters"] .falling-arena{width:100%;display:grid;gap:12px;place-items:stretch}
body[data-game-type="falling-letters"] .falling-status-row{width:min(980px,100%);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px}
body[data-game-type="falling-letters"] .falling-level-card{display:grid;gap:2px;padding:10px 14px;border-radius:14px;border:1px solid #bfd4ff;background:rgba(255,255,255,.92);box-shadow:0 8px 22px rgba(30,64,175,.08)}
body[data-game-type="falling-letters"] .falling-level-card small{font-size:10px;letter-spacing:.1em;font-weight:900;color:#2563eb}
body[data-game-type="falling-letters"] .falling-level-card strong{font-size:18px;color:#0f172a}
body[data-game-type="falling-letters"] .falling-level-card span{font-size:12px;color:#52627a}
body[data-game-type="falling-letters"] .falling-lives{position:static;min-width:170px}
body[data-game-type="falling-letters"] .falling-challenge-badge{justify-self:center;padding:7px 12px;border-radius:999px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:12px;font-weight:900}
body[data-game-type="falling-letters"] .falling-lane{width:min(980px,100%);height:250px;margin:0 auto;border-radius:20px;background:linear-gradient(180deg,rgba(219,234,254,.35),rgba(255,255,255,.68));box-shadow:inset 0 0 0 1px rgba(30,64,175,.08)}
body[data-game-type="falling-letters"] .falling-level-1{width:min(620px,100%)}
body[data-game-type="falling-letters"] .falling-level-2{width:min(720px,100%)}
body[data-game-type="falling-letters"] .falling-level-3{width:min(820px,100%)}
body[data-game-type="falling-letters"] .falling-level-4,body[data-game-type="falling-letters"] .falling-level-5{width:min(980px,100%)}
body[data-game-type="falling-letters"] .falling-level-4 .falling-target{background:linear-gradient(135deg,#7c3aed,#1769ff)}
body[data-game-type="falling-letters"] .falling-level-5 .falling-target{background:linear-gradient(135deg,#ea580c,#7c3aed);box-shadow:0 18px 40px rgba(124,58,237,.3)}
html[data-theme="dark"] body[data-game-type="falling-letters"] .game-stage{background:linear-gradient(180deg,#0f1d37,#111827 70%,#1f1318)}
html[data-theme="dark"] body[data-game-type="falling-letters"] .falling-level-card{background:rgba(15,23,42,.92);border-color:#334a70}
html[data-theme="dark"] body[data-game-type="falling-letters"] .falling-level-card strong{color:#f8fafc}
html[data-theme="dark"] body[data-game-type="falling-letters"] .falling-level-card span{color:#cbd5e1}
html[data-theme="dark"] body[data-game-type="falling-letters"] .falling-lane{background:linear-gradient(180deg,rgba(23,37,84,.45),rgba(15,23,42,.75));box-shadow:inset 0 0 0 1px rgba(96,165,250,.14)}
@media(max-width:1150px){body[data-game-type="falling-letters"] .game-layout{grid-template-columns:1fr}body[data-game-type="falling-letters"] .game-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}
@media(max-width:900px){body[data-game-type="falling-letters"] .game-live-stats{grid-template-columns:repeat(4,1fr)}}
@media(max-width:700px){body[data-game-type="falling-letters"] .games-shell{width:min(100% - 16px,1440px)}body[data-game-type="falling-letters"] .game-stage{min-height:340px;padding:16px 9px}body[data-game-type="falling-letters"] .falling-status-row{align-items:stretch;flex-direction:column}body[data-game-type="falling-letters"] .falling-lives{min-width:0}body[data-game-type="falling-letters"] .falling-lane{height:220px;border-radius:14px}body[data-game-type="falling-letters"] .game-live-stats{grid-template-columns:repeat(2,1fr)}body[data-game-type="falling-letters"] .game-side{grid-template-columns:1fr}}


/* ==========================================================
   v17.10.72 MORE REACTION GAMES DARK-MODE FIX
========================================================== */
html[data-theme="dark"] .games-more-section .game-card-link{
  background:linear-gradient(180deg,#152238,#101a2f);
  border-color:#30425e;
  box-shadow:0 18px 36px rgba(0,0,0,.28)
}
html[data-theme="dark"] .games-more-section .game-card-link:nth-child(4n+1){background:linear-gradient(180deg,#18263d,#10192b)}
html[data-theme="dark"] .games-more-section .game-card-link:nth-child(4n+2){background:linear-gradient(180deg,#1c2038,#12172a)}
html[data-theme="dark"] .games-more-section .game-card-link:nth-child(4n+3){background:linear-gradient(180deg,#142a2a,#0f1d23)}
html[data-theme="dark"] .games-more-section .game-card-link:nth-child(4n+4){background:linear-gradient(180deg,#2b2219,#19140e)}
html[data-theme="dark"] .games-more-section .game-card-link:hover{
  border-color:#4f6b91;
  box-shadow:0 22px 44px rgba(0,0,0,.34)
}
html[data-theme="dark"] .games-more-section .game-card-link h3{color:#f8fafc}
html[data-theme="dark"] .games-more-section .game-card-link p{color:#d6e0ee}
html[data-theme="dark"] .games-more-section .game-card-link .game-link-action{color:#8ec5ff}
html[data-theme="dark"] .games-more-section .game-card-link .game-icon{
  background:#172033;
  border:1px solid #324255;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)
}

@media(prefers-color-scheme:dark){
  html[data-theme="system"] .games-more-section .game-card-link{
    background:linear-gradient(180deg,#152238,#101a2f);
    border-color:#30425e;
    box-shadow:0 18px 36px rgba(0,0,0,.28)
  }
  html[data-theme="system"] .games-more-section .game-card-link:nth-child(4n+1){background:linear-gradient(180deg,#18263d,#10192b)}
  html[data-theme="system"] .games-more-section .game-card-link:nth-child(4n+2){background:linear-gradient(180deg,#1c2038,#12172a)}
  html[data-theme="system"] .games-more-section .game-card-link:nth-child(4n+3){background:linear-gradient(180deg,#142a2a,#0f1d23)}
  html[data-theme="system"] .games-more-section .game-card-link:nth-child(4n+4){background:linear-gradient(180deg,#2b2219,#19140e)}
  html[data-theme="system"] .games-more-section .game-card-link:hover{
    border-color:#4f6b91;
    box-shadow:0 22px 44px rgba(0,0,0,.34)
  }
  html[data-theme="system"] .games-more-section .game-card-link h3{color:#f8fafc}
  html[data-theme="system"] .games-more-section .game-card-link p{color:#d6e0ee}
  html[data-theme="system"] .games-more-section .game-card-link .game-link-action{color:#8ec5ff}
  html[data-theme="system"] .games-more-section .game-card-link .game-icon{
    background:#172033;
    border:1px solid #324255;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04)
  }
}

/* ==========================================================
   v17.10.133 — Two-Lane Typer wide play area
   Keep the moving-word arena as the visual priority on desktop.
========================================================== */
body[data-game-type="two-lane-typer"] .games-shell{
  width:min(1500px,calc(100% - 28px));
}
body[data-game-type="two-lane-typer"] .game-layout{
  grid-template-columns:minmax(0,1fr) 250px;
  gap:16px;
}
body[data-game-type="two-lane-typer"] .game-card{
  min-width:0;
}
body[data-game-type="two-lane-typer"] .game-stage{
  min-height:430px;
  padding:24px 28px;
  place-items:stretch;
  align-content:center;
  background:linear-gradient(180deg,#eef6ff 0%,#f8fbff 72%,#f8fafc 100%);
}
body[data-game-type="two-lane-typer"] .moving-word-stage{
  width:100%;
  min-width:0;
  max-width:none;
  gap:14px;
}
body[data-game-type="two-lane-typer"] .moving-word-arena{
  width:100%;
  height:320px;
  border-radius:20px;
}
body[data-game-type="two-lane-typer"] .moving-word-input{
  width:min(760px,96%);
}
body[data-game-type="two-lane-typer"] .moving-word-buffer{
  font-size:15px;
}
html[data-theme="dark"] body[data-game-type="two-lane-typer"] .game-stage{
  background:linear-gradient(180deg,#0f1d37 0%,#111827 72%,#0b1120 100%);
}
@media(prefers-color-scheme:dark){
  html[data-theme="system"] body[data-game-type="two-lane-typer"] .game-stage{
    background:linear-gradient(180deg,#0f1d37 0%,#111827 72%,#0b1120 100%);
  }
}
@media(max-width:1120px){
  body[data-game-type="two-lane-typer"] .game-layout{
    grid-template-columns:1fr;
  }
  body[data-game-type="two-lane-typer"] .game-side{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  body[data-game-type="two-lane-typer"] .game-stage{
    min-height:400px;
  }
  body[data-game-type="two-lane-typer"] .moving-word-arena{
    height:295px;
  }
}
@media(max-width:850px){
  body[data-game-type="two-lane-typer"] .game-stage{
    min-height:365px;
    padding:20px 16px;
  }
  body[data-game-type="two-lane-typer"] .moving-word-arena{
    height:270px;
  }
}
@media(max-width:720px){
  body[data-game-type="two-lane-typer"] .games-shell{
    width:min(100% - 16px,1500px);
  }
  body[data-game-type="two-lane-typer"] .game-stage{
    min-height:325px;
    padding:14px 9px;
  }
  body[data-game-type="two-lane-typer"] .moving-word-arena{
    height:230px;
    border-radius:14px;
  }
  body[data-game-type="two-lane-typer"] .moving-word-input{
    width:100%;
  }
  body[data-game-type="two-lane-typer"] .game-side{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   v17.10.135 — Compact Games directory hero
   Keeps game discovery above the fold and removes CTA clutter.
   ========================================================= */
.games-index-page .games-hero{
  grid-template-columns:minmax(0,1.55fr) minmax(220px,.45fr);
  gap:18px;
  padding:24px 30px;
  border-radius:24px;
}
.games-index-page .games-hero h1{
  font-size:clamp(34px,4.2vw,52px);
  line-height:1.02;
  margin:8px 0 10px;
}
.games-index-page .games-hero p{
  max-width:760px;
  margin:0;
  font-size:16px;
  line-height:1.5;
}
.games-index-page .games-hero .games-eyebrow{
  padding:6px 10px;
  font-size:12px;
}
.games-index-page .games-hero-visual{
  min-height:140px;
}
.games-index-page .games-hero-visual>span{
  font-size:78px;
}
.games-index-page .games-hero-tip{
  top:0;
  right:0;
  max-width:190px;
  padding:11px 12px;
  border-radius:14px 14px 4px 14px;
  font-size:12px;
  line-height:1.45;
}
.games-index-page .games-hero + .games-section{
  margin-top:26px;
}
@media(max-width:850px){
  .games-index-page .games-hero{
    grid-template-columns:minmax(0,1fr) 170px;
    padding:22px 24px;
  }
  .games-index-page .games-hero-visual{min-height:115px}
  .games-index-page .games-hero-visual>span{font-size:64px}
  .games-index-page .games-hero-tip{position:static;max-width:160px;margin-top:6px;font-size:11px}
}
@media(max-width:640px){
  .games-index-page .games-hero{
    grid-template-columns:1fr;
    gap:12px;
    padding:20px;
    border-radius:20px;
  }
  .games-index-page .games-hero h1{font-size:clamp(30px,10vw,40px)}
  .games-index-page .games-hero p{font-size:15px;line-height:1.45}
  .games-index-page .games-hero-visual{
    min-height:0;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
  }
  .games-index-page .games-hero-visual>span{font-size:50px;flex:0 0 auto}
  .games-index-page .games-hero-tip{margin:0;max-width:none;padding:9px 10px}
}
@media(max-width:430px){
  .games-index-page .games-hero{padding:17px}
  .games-index-page .games-hero-visual>span{font-size:42px}
  .games-index-page .games-hero-tip{font-size:10.5px}
}


/* =========================================================
   v17.10.136 — Simplified Games navigation / difficulty directory
   ========================================================= */
body:not([data-game-type]) .games-shell{padding-top:14px}
body:not([data-game-type]) .games-breadcrumbs{margin-bottom:10px}
.games-level-section{scroll-margin-top:90px}
.games-level-section .games-section-heading p{max-width:760px}
@media(max-width:720px){body:not([data-game-type]) .games-shell{padding-top:10px}.games-level-section{margin-top:24px}}

/* =========================================================
   v17.10.137 — Offline download cards above recommendations
   ========================================================= */
.games-index-page .games-offline-downloads{
  padding:28px;
  border:1px solid #d9e7f7;
  border-radius:28px;
  background:linear-gradient(135deg,#f5f9ff,#fff 48%,#f7f4ff);
}
.games-index-page .games-offline-downloads .games-section-heading{margin-bottom:18px}
.games-index-page .games-offline-downloads .games-section-heading p{max-width:760px}
.games-index-page .games-offline-download-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.games-index-page .offline-download-card{
  min-width:0;
  min-height:210px;
  display:flex;
  flex-direction:column;
  padding:20px;
  border:1px solid #dbe4f0;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 28px rgba(15,23,42,.06);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.games-index-page .offline-download-card:hover{
  transform:translateY(-3px);
  border-color:#b9d0ee;
  box-shadow:0 18px 34px rgba(15,23,42,.11);
}
.games-index-page .offline-download-card.featured{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(145deg,#145fe8,#5146d8);
  box-shadow:0 18px 34px rgba(29,78,216,.22);
}
.games-index-page .offline-download-card.kids{background:linear-gradient(180deg,#f4fff8,#fff)}
.games-index-page .offline-download-card.teen{background:linear-gradient(180deg,#f6f5ff,#fff)}
.games-index-page .offline-download-card.adult{background:linear-gradient(180deg,#fff9ef,#fff)}
.games-index-page .offline-download-icon{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  margin-bottom:12px;
  border-radius:15px;
  background:#eef5ff;
  border:1px solid #d8e5f6;
  font-size:27px;
}
.games-index-page .offline-download-card.featured .offline-download-icon{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.25);
}
.games-index-page .offline-download-audience{
  display:block;
  margin-bottom:7px;
  color:#58708f;
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.games-index-page .offline-download-card.featured .offline-download-audience{color:#dbeafe}
.games-index-page .offline-download-card h3{margin:0 0 8px;font-size:20px;line-height:1.2}
.games-index-page .offline-download-card p{margin:0;color:#64748b;font-size:14px;line-height:1.55;flex:1}
.games-index-page .offline-download-card.featured p{color:#e6edff}
.games-index-page .offline-download-meta{display:block;margin:14px 0 8px;color:#74849a;font-size:11px;font-weight:700;line-height:1.4}
.games-index-page .offline-download-card.featured .offline-download-meta{color:#c7d8ff}
.games-index-page .offline-download-card strong{color:#1769ff;font-size:14px}
.games-index-page .offline-download-card.featured strong{color:#fff}
html[data-theme="dark"] .games-index-page .games-offline-downloads{
  background:linear-gradient(135deg,#101827,#111827 50%,#17152c);
  border-color:#334155;
}
html[data-theme="dark"] .games-index-page .offline-download-card{
  background:#111827;
  border-color:#334155;
  box-shadow:none;
}
html[data-theme="dark"] .games-index-page .offline-download-card.featured{background:linear-gradient(145deg,#174ca7,#4234a9)}
html[data-theme="dark"] .games-index-page .offline-download-card.kids{background:linear-gradient(180deg,#10241d,#111827)}
html[data-theme="dark"] .games-index-page .offline-download-card.teen{background:linear-gradient(180deg,#1a1730,#111827)}
html[data-theme="dark"] .games-index-page .offline-download-card.adult{background:linear-gradient(180deg,#241d13,#111827)}
html[data-theme="dark"] .games-index-page .offline-download-icon{background:#172033;border-color:#334155}
html[data-theme="dark"] .games-index-page .offline-download-audience,
html[data-theme="dark"] .games-index-page .offline-download-card p,
html[data-theme="dark"] .games-index-page .offline-download-meta{color:#b9c5d6}
html[data-theme="dark"] .games-index-page .offline-download-card strong{color:#8ec5ff}
html[data-theme="dark"] .games-index-page .offline-download-card.featured strong{color:#fff}
@media(prefers-color-scheme:dark){
  html[data-theme="system"] .games-index-page .games-offline-downloads{background:linear-gradient(135deg,#101827,#111827 50%,#17152c);border-color:#334155}
  html[data-theme="system"] .games-index-page .offline-download-card{background:#111827;border-color:#334155;box-shadow:none}
  html[data-theme="system"] .games-index-page .offline-download-card.featured{background:linear-gradient(145deg,#174ca7,#4234a9)}
  html[data-theme="system"] .games-index-page .offline-download-card.kids{background:linear-gradient(180deg,#10241d,#111827)}
  html[data-theme="system"] .games-index-page .offline-download-card.teen{background:linear-gradient(180deg,#1a1730,#111827)}
  html[data-theme="system"] .games-index-page .offline-download-card.adult{background:linear-gradient(180deg,#241d13,#111827)}
  html[data-theme="system"] .games-index-page .offline-download-icon{background:#172033;border-color:#334155}
  html[data-theme="system"] .games-index-page .offline-download-audience,
  html[data-theme="system"] .games-index-page .offline-download-card p,
  html[data-theme="system"] .games-index-page .offline-download-meta{color:#b9c5d6}
  html[data-theme="system"] .games-index-page .offline-download-card strong{color:#8ec5ff}
  html[data-theme="system"] .games-index-page .offline-download-card.featured strong{color:#fff}
}
@media(max-width:1050px){.games-index-page .games-offline-download-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
  .games-index-page .games-offline-downloads{padding:18px;border-radius:21px}
  .games-index-page .games-offline-download-grid{grid-template-columns:1fr}
  .games-index-page .offline-download-card{min-height:0;padding:17px;border-radius:18px}
  .games-index-page .games-offline-downloads .games-section-heading .game-button{margin-top:12px;width:100%}
}


/* ==========================================================
   v17.10.172 — Games dashboard redesign
   Keep existing categories, improve discovery, and make cards match games better.
========================================================== */
.games-dashboard-page .games-shell{
  width:min(1500px,calc(100% - 28px));
  padding:18px 0 68px;
}
.games-dashboard-page .games-breadcrumbs{
  margin:2px 0 12px;
}
.games-dashboard-page .games-hero{
  grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);
  gap:20px;
  padding:28px 28px 24px;
  border-radius:24px;
  background:linear-gradient(180deg,#f6fbff 0%,#eef5ff 100%);
  border:1px solid #d8e6ff;
  box-shadow:0 18px 40px rgba(15,23,42,.06);
}
.games-dashboard-page .games-eyebrow{
  background:transparent;
  padding:0;
  color:#2563eb;
  letter-spacing:.02em;
}
.games-dashboard-page .games-hero h1{
  font-size:clamp(42px,5vw,64px);
  margin:8px 0 10px;
}
.games-dashboard-page .games-hero p{
  font-size:clamp(18px,1.9vw,22px);
  line-height:1.5;
  max-width:760px;
}
.games-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.games-hero-highlights{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.games-hero-highlights span{
  padding:8px 12px;border-radius:999px;background:#ffffff;color:#334155;border:1px solid #dbe7fb;font-size:12px;font-weight:800;
}
.games-dashboard-page .games-hero-visual{
  min-height:200px;
  border-radius:22px;
  background:radial-gradient(circle at 25% 20%,rgba(96,165,250,.22),transparent 40%),linear-gradient(180deg,#eef5ff,#f8fbff);
  border:1px solid #d9e7ff;
  overflow:hidden;
}
.games-hero-controller{
  position:absolute;right:46px;top:26px;font-size:120px;line-height:1;filter:drop-shadow(0 14px 28px rgba(59,130,246,.18));
}
.games-hero-tile{
  position:absolute;display:grid;place-items:center;width:76px;height:76px;border-radius:18px;background:#fff;border:1px solid #d9e4fb;box-shadow:0 16px 30px rgba(15,23,42,.08);font-size:34px;font-weight:900;color:#1d4ed8;
}
.games-hero-tile.tile-a{left:32px;bottom:38px;transform:rotate(-11deg);}
.games-hero-tile.tile-s{left:118px;bottom:26px;transform:rotate(6deg);color:#15803d;}
.games-hero-tile.tile-d{right:84px;bottom:32px;transform:rotate(-7deg);color:#2563eb;}
.games-hero-tile.tile-f{right:12px;top:54px;transform:rotate(8deg);color:#7c3aed;}
.games-dashboard-page .games-hero-tip{
  right:18px;bottom:18px;top:auto;max-width:260px;border-radius:16px;background:#ffffffc9;backdrop-filter:blur(8px);font-size:13px;padding:12px 14px;
}
.games-dashboard-page .games-section{
  margin-top:14px;
  padding:14px;
  border-radius:24px;
  border:1px solid #dde8f7;
  box-shadow:0 12px 28px rgba(15,23,42,.04);
  background:#fff;
}
.games-dashboard-page .games-level-section[data-section-style="easy"]{background:linear-gradient(180deg,#f5fbf5,#ffffff);border-color:#dbeedb}
.games-dashboard-page .games-level-section[data-section-style="intermediate"]{background:linear-gradient(180deg,#f6f9ff,#ffffff);border-color:#dbe7fb}
.games-dashboard-page .games-level-section[data-section-style="expert"]{background:linear-gradient(180deg,#fcf4ff,#ffffff);border-color:#f0dbfb}
.games-dashboard-page .games-offline-downloads{background:linear-gradient(180deg,#fffaf0,#ffffff);border-color:#f2e3bf}
.games-dashboard-page .games-engagement-section{background:linear-gradient(180deg,#f9fbff,#ffffff);border-color:#dfe8f8}
.games-dashboard-page .games-section-heading{align-items:center;margin-bottom:14px}
.games-dashboard-page .games-section-heading h2{font-size:clamp(28px,3.4vw,40px)}
.games-dashboard-page .games-section-heading p{max-width:none;margin-top:2px}
.games-section-meta{display:flex;align-items:center;gap:12px;flex-shrink:0}
.games-section-count{
  display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:999px;background:#eaf2ff;color:#1d4ed8;font-weight:800;font-size:15px;white-space:nowrap;
}
.games-level-section[data-section-style="easy"] .games-section-count{background:#e7f7e8;color:#166534}
.games-level-section[data-section-style="intermediate"] .games-section-count{background:#eaf2ff;color:#1d4ed8}
.games-level-section[data-section-style="expert"] .games-section-count{background:#fae8ff;color:#a21caf}
.games-section-arrow{font-size:34px;line-height:1;color:#334155}
.games-dashboard-page .games-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.games-dashboard-page .game-card-link{
  display:grid;
  grid-template-columns:96px minmax(0,1fr) 38px;
  grid-template-areas:
    "icon title action"
    "icon desc action"
    "icon tags action";
  align-items:start;
  gap:10px 14px;
  min-height:0;
  padding:14px;
  border-radius:18px;
  box-shadow:none;
  background:#fff;
  border-color:#dfe7f3;
}
.games-dashboard-page .game-card-link:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(15,23,42,.08)}
.games-dashboard-page .game-card-link .game-icon{
  grid-area:icon;
  margin:0;
  display:grid;
  place-items:center;
  width:96px;
  height:96px;
  border-radius:16px;
  font-size:44px;
  background:linear-gradient(180deg,#eaf3ff,#dfeeff);
  border:1px solid #d8e7ff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
.games-level-section[data-section-style="easy"] .game-card-link .game-icon{background:linear-gradient(180deg,#ebf9ec,#daf1db);border-color:#d7ead6}
.games-level-section[data-section-style="intermediate"] .game-card-link .game-icon{background:linear-gradient(180deg,#edf3ff,#dcecff);border-color:#d7e6ff}
.games-level-section[data-section-style="expert"] .game-card-link .game-icon{background:linear-gradient(180deg,#faecff,#f2ddff);border-color:#edd7ff}
.games-dashboard-page .game-card-link h3{grid-area:title;margin:4px 0 0;font-size:22px;line-height:1.15}
.games-dashboard-page .game-card-link p{grid-area:desc;font-size:15px;line-height:1.5;color:#52627a;margin:0}
.games-dashboard-page .game-tags{grid-area:tags;margin:4px 0 0;gap:8px}
.games-dashboard-page .game-tags span{
  padding:7px 10px;
  font-size:11px;
  letter-spacing:0;
  background:#eef4ff;
  color:#295bb4;
}
.games-dashboard-page .game-tags span:nth-child(n+2){display:none}
.games-level-section[data-section-style="easy"] .game-tags span{background:#ebf7ee;color:#166534}
.games-level-section[data-section-style="expert"] .game-tags span{background:#fbe8ff;color:#a21caf}
.games-dashboard-page .game-link-action{
  grid-area:action;
  align-self:center;
  justify-self:end;
  width:38px;
  min-width:38px;
  height:38px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#edf4ff;
  color:transparent;
  position:relative;
  overflow:hidden;
}
.games-dashboard-page .game-link-action::before{content:"→";color:#2563eb;font-size:18px;font-weight:900;position:absolute;inset:0;display:grid;place-items:center}
.games-dashboard-page .games-offline-download-grid{grid-template-columns:1.6fr repeat(3,1fr);gap:12px}
.games-dashboard-page .offline-download-card{border-radius:18px;box-shadow:none}
.games-dashboard-page .offline-download-card.featured{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:16px 18px}
.games-dashboard-page .offline-download-card.featured p{margin-bottom:0}
.games-dashboard-page .offline-download-card.featured strong{white-space:nowrap}
.games-dashboard-page .game-recommendation{margin-top:0;border-radius:18px;box-shadow:none}
.games-dashboard-page .game-competition-grid{margin-top:14px}
.games-dashboard-page .competition-link-card,.games-dashboard-page .games-stat,.games-dashboard-page .games-content-card,.games-dashboard-page .game-history-list .game-history-item{border-radius:18px;box-shadow:none}
.games-dashboard-page .games-stats{margin-top:14px}
.games-dashboard-page .games-content-card{margin-top:14px;padding:22px}
.games-dashboard-page .game-history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.games-dashboard-page .game-history-list > *{min-height:100px}
html[data-theme="dark"] .games-dashboard-page .games-hero{
  background:linear-gradient(180deg,#12213a,#0f1b30);border-color:#2b456a;box-shadow:none
}
html[data-theme="dark"] .games-dashboard-page .games-hero h1{color:#f8fafc}
html[data-theme="dark"] .games-dashboard-page .games-hero p{color:#cbd5e1}
html[data-theme="dark"] .games-dashboard-page .games-hero-highlights span,
html[data-theme="dark"] .games-dashboard-page .games-hero-tip,
html[data-theme="dark"] .games-dashboard-page .game-card-link,
html[data-theme="dark"] .games-dashboard-page .games-section,
html[data-theme="dark"] .games-dashboard-page .games-content-card,
html[data-theme="dark"] .games-dashboard-page .competition-link-card,
html[data-theme="dark"] .games-dashboard-page .games-stat,
html[data-theme="dark"] .games-dashboard-page .offline-download-card{background-color:#101a2f;border-color:#30425e}
html[data-theme="dark"] .games-dashboard-page .game-card-link p,
html[data-theme="dark"] .games-dashboard-page .games-section-heading p,
html[data-theme="dark"] .games-dashboard-page .games-content-card p,
html[data-theme="dark"] .games-dashboard-page .games-content-card li{color:#d6e0ee}
html[data-theme="dark"] .games-dashboard-page .game-card-link h3,
html[data-theme="dark"] .games-dashboard-page .games-section-heading h2,
html[data-theme="dark"] .games-dashboard-page .games-content-card h2{color:#f8fafc}
html[data-theme="dark"] .games-dashboard-page .games-level-section[data-section-style="easy"],
html[data-theme="dark"] .games-dashboard-page .games-level-section[data-section-style="intermediate"],
html[data-theme="dark"] .games-dashboard-page .games-level-section[data-section-style="expert"],
html[data-theme="dark"] .games-dashboard-page .games-offline-downloads,
html[data-theme="dark"] .games-dashboard-page .games-engagement-section{background:linear-gradient(180deg,#13233b,#0f1b30)}
html[data-theme="dark"] .games-dashboard-page .game-card-link .game-icon{background:linear-gradient(180deg,#172a46,#102138);border-color:#33507a}
html[data-theme="dark"] .games-dashboard-page .game-link-action{background:#172a46}
html[data-theme="dark"] .games-dashboard-page .games-section-count{background:#172a46;color:#93c5fd}
@media (max-width:1280px){
  .games-dashboard-page .games-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .games-dashboard-page .games-offline-download-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .games-dashboard-page .offline-download-card.featured{grid-column:1 / -1}
}
@media (max-width:980px){
  .games-dashboard-page .games-hero{grid-template-columns:1fr}
  .games-dashboard-page .games-hero-visual{min-height:180px}
  .games-dashboard-page .games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .games-dashboard-page .game-history-list{grid-template-columns:1fr}
}
@media (max-width:700px){
  .games-dashboard-page .games-shell{width:min(100% - 16px,1500px);padding-top:14px}
  .games-dashboard-page .games-hero{padding:22px 16px 18px;border-radius:20px}
  .games-dashboard-page .games-hero h1{font-size:clamp(34px,10vw,48px)}
  .games-dashboard-page .games-section{padding:12px;border-radius:20px}
  .games-dashboard-page .games-section-heading{align-items:flex-start;flex-direction:column}
  .games-dashboard-page .games-grid{grid-template-columns:1fr;gap:12px}
  .games-dashboard-page .game-card-link{grid-template-columns:84px minmax(0,1fr) 34px;padding:12px;gap:8px 12px}
  .games-dashboard-page .game-card-link .game-icon{width:84px;height:84px;font-size:38px}
  .games-dashboard-page .game-card-link h3{font-size:20px}
  .games-dashboard-page .games-offline-download-grid{grid-template-columns:1fr}
  .games-dashboard-page .offline-download-card.featured{grid-template-columns:1fr;text-align:left}
  .games-dashboard-page .games-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .games-dashboard-page .games-hero-tip{position:static;margin-top:12px;max-width:none}
  .games-hero-controller{right:18px;top:22px;font-size:96px}
  .games-hero-tile{width:64px;height:64px;font-size:28px}
  .games-hero-tile.tile-a{left:18px;bottom:28px}.games-hero-tile.tile-s{left:90px;bottom:18px}.games-hero-tile.tile-d{right:82px;bottom:26px}.games-hero-tile.tile-f{right:12px;top:48px}
}


/* ==========================================================
   v17.10.179 — Compact Games hero + Kids game separation
========================================================== */
.games-dashboard-page .games-hero{
  grid-template-columns:minmax(0,1.45fr) minmax(250px,.55fr);
  gap:16px;
  padding:18px 20px;
  min-height:0;
  border-radius:20px;
}
.games-dashboard-page .games-hero h1{
  font-size:clamp(38px,4.2vw,56px);
  margin:5px 0 7px;
  line-height:1.02;
}
.games-dashboard-page .games-hero p{
  margin:0;
  max-width:760px;
  font-size:clamp(16px,1.5vw,19px);
  line-height:1.42;
}
.games-dashboard-page .games-hero-visual{
  min-height:128px;
  border-radius:18px;
}
.games-hero-controller{
  right:38px;
  top:12px;
  font-size:82px;
}
.games-hero-tile{
  width:54px;
  height:54px;
  border-radius:14px;
  font-size:25px;
  box-shadow:0 10px 22px rgba(15,23,42,.08);
}
.games-hero-tile.tile-a{left:24px;bottom:20px}
.games-hero-tile.tile-s{left:86px;bottom:14px}
.games-hero-tile.tile-d{right:67px;bottom:16px}
.games-hero-tile.tile-f{right:10px;top:26px}
.games-dashboard-page .games-hero + .games-section{margin-top:12px}

@media (max-width:980px){
  .games-dashboard-page .games-hero{
    grid-template-columns:minmax(0,1.25fr) minmax(210px,.75fr);
    padding:17px 18px;
  }
  .games-dashboard-page .games-hero-visual{min-height:112px}
  .games-hero-controller{font-size:72px;right:30px;top:12px}
  .games-hero-tile{width:48px;height:48px;font-size:22px}
}
@media (max-width:700px){
  .games-dashboard-page .games-hero{
    display:block;
    padding:14px 14px 15px;
    border-radius:17px;
  }
  .games-dashboard-page .games-hero h1{
    font-size:clamp(31px,9.4vw,40px);
    margin:4px 0 6px;
  }
  .games-dashboard-page .games-hero p{
    font-size:14px;
    line-height:1.38;
  }
  .games-dashboard-page .games-hero-visual{
    display:none;
  }
  .games-dashboard-page .games-breadcrumbs{margin-bottom:9px}
  .games-dashboard-page .games-hero + .games-section{margin-top:10px}
}

/* 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;
    }
}

