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

/* Source: /css/site-account-header-v17.10.311.css */
/* Shared account action. Reserve space before JavaScript runs. */
#header .header-tools, .test-header-inner > .site-header-actions {
 display:flex !important; align-items:center; justify-content:flex-end; gap:8px;
 justify-self:end; min-width:0;
}
#header .site-account-link, .test-site-header .site-account-link {
 box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:7px;
 min-height:48px; min-width:118px; padding:10px 12px; border:1px solid var(--border,#c9d8ed);
 border-radius:12px; background:var(--surface-alt,#f2f7ff); color:var(--text,#172235);
 font:750 13px/1 system-ui,sans-serif; text-decoration:none; white-space:nowrap; flex-shrink:0;
}
.site-account-link svg {flex-shrink:0;}
#header .site-account-link:hover, .test-site-header .site-account-link:hover {border-color:#246df0; background:#e7f0ff; color:#1747a6; text-decoration:none;}
.site-account-link:focus-visible {outline:3px solid #246df0; outline-offset:3px;}
.test-header-inner > .site-header-actions > #themeButton {
 box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:8px;
 min-width:116px; min-height:48px; padding:10px 15px; margin:0; border:0; border-radius:12px;
 background:linear-gradient(135deg,#246df0,#285ee5); color:white; font:750 13px/1 system-ui,sans-serif;
 cursor:pointer; white-space:nowrap;
}
html[data-theme="dark"] .site-account-link {background:#182a43; color:#e7eef9; border-color:#526783;}
html[data-theme="dark"] .site-account-link:hover {background:#213a5f; color:white;}
@media (max-width:1200px) {
 #header .header-inner, .test-header-inner {grid-template-columns:minmax(0,1fr) auto !important;}
 #header .primary-mode-navigation, .test-nav {grid-column:1 / -1; grid-row:2;}
 #header .header-tools, .test-header-inner > .site-header-actions {grid-column:2; grid-row:1;}
}
@media (max-width:590px) {
 #header .site-account-link, .test-site-header .site-account-link {min-width:44px; width:44px; min-height:44px; padding:10px;}
 .site-account-label {position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;}
 #header .header-tools, .test-header-inner > .site-header-actions {gap:6px;}
 #header #themeButton, .test-header-inner > .site-header-actions > #themeButton {min-width:44px; width:44px; min-height:44px; padding:8px !important;}
 .test-header-inner > .site-header-actions > #themeButton > span:not(:first-child) {display:none;}
}

/* v17.10.317 — green account action after server-confirmed sign-in. */
#header .site-account-link[data-signed-in="true"],
.test-site-header .site-account-link[data-signed-in="true"] {
 background:#15803d; color:#fff; border-color:#15803d;
}
#header .site-account-link[data-signed-in="true"]:hover,
.test-site-header .site-account-link[data-signed-in="true"]:hover {
 background:#166534; color:#fff; border-color:#166534;
}
html[data-theme="dark"] #header .site-account-link[data-signed-in="true"],
html[data-theme="dark"] .test-site-header .site-account-link[data-signed-in="true"] {
 background:#166534; color:#fff; border-color:#22c55e;
}
html[data-theme="dark"] #header .site-account-link[data-signed-in="true"]:hover,
html[data-theme="dark"] .test-site-header .site-account-link[data-signed-in="true"]:hover {
 background:#14532d; color:#fff;
}

/* Source: /games/jungle-rescue/jungle-rescue.css */
:root{--jr-ink:#133e33;--jr-page:#f2f6f1;--jr-surface:#fff;--jr-line:#d4e3d9;--jr-muted:#4a6c60;--jr-green:#126746;--jr-gold:#ffd371}
*{box-sizing:border-box}.jungle-body{margin:0;background:var(--jr-page);color:var(--jr-ink);font-family:Inter,ui-sans-serif,system-ui,sans-serif}.jungle-body button,.jungle-body select,.jungle-body input{font:inherit}.jungle-body button,.jr-cta{cursor:pointer}.jungle-body [hidden]{display:none!important}.jr-main{max-width:1500px;margin:auto;padding:22px 24px 48px}.jr-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}.jr-eyebrow{font-size:11px;letter-spacing:.14em;font-weight:800;color:var(--jr-green)}.jr-intro h1{font-family:Georgia,serif;font-size:32px;margin:3px 0 6px}.jr-intro p{margin:0;font-size:14px;color:var(--jr-muted);line-height:1.6}.jr-intro>a{color:var(--jr-green);font-size:13px;white-space:nowrap;font-weight:700}.jr-gate{padding:34px;border-radius:20px;background:linear-gradient(110deg,#092f25ed,#164d39dd),url('/games/jungle-rescue/assets/jungle.webp') center/cover;color:#fff;display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;min-height:230px}.jr-gate h2{font-size:25px;margin:12px 0}.jr-gate p{max-width:640px;line-height:1.7;color:#dcefe2}.jr-gate img{width:160px;height:160px;object-fit:contain}.jr-premium{border:1px solid #dfb864;color:#ffda8c;border-radius:30px;padding:5px 10px;font-size:10px;letter-spacing:.08em;font-weight:800;display:inline-block}.jr-actions{display:flex;gap:10px;flex-wrap:wrap}.jr-cta,.jr-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid #68b58c;text-decoration:none;font-weight:750;color:#102c21;background:#b5f2ba;border-radius:10px;padding:11px 18px;font-size:14px}.jr-cta.secondary{background:transparent;color:#fff;border-color:#78a18d}.jr-game{border-radius:20px;overflow:hidden;box-shadow:0 18px 45px #103f2926;border:1px solid #3f7057;background:#0b2c23}.jr-game:fullscreen{border-radius:0;display:flex;flex-direction:column;width:100%;height:100%;overflow:auto}.jr-game:fullscreen .jr-scene{flex:1;min-height:400px;max-height:none}.jr-hud{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 20px;background:#082e26;color:#e7ffed;flex-wrap:wrap}.jr-brand{display:flex;align-items:center;gap:14px}.jr-brand strong{font-family:Georgia,serif;font-size:23px;color:var(--jr-gold);letter-spacing:.01em}.jr-controls{display:flex;gap:7px;align-items:center}.jr-controls button{border:1px solid #598473;background:transparent;color:#e2f4e9;border-radius:8px;padding:8px 10px;font-size:12px;min-height:36px}.jr-controls button:hover{background:#244f40}.jr-controls button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #eead29;outline-offset:3px}.jr-level-label{font-size:11px;letter-spacing:.1em;background:#204b3b;padding:6px 10px;border-radius:20px}.jr-scene{isolation:isolate;position:relative;aspect-ratio:16/8.5;min-height:510px;max-height:760px;overflow:hidden;background:#26594b;--monkey-x:67%}.jr-backdrop{position:absolute;inset:0;z-index:-2;background:url('/games/jungle-rescue/assets/jungle.webp') center/100% 100% no-repeat}.jr-scene:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#092e2655,transparent 28%,transparent 58%,#062c2966)}.jr-stats{position:absolute;left:20px;top:18px;display:flex;gap:8px}.jr-stats>div,.jr-clock{background:#072f28e8;color:#fff;border:1px solid #8fbf9c80;border-radius:12px;padding:9px 16px;text-align:center;box-shadow:0 3px 12px #072c2520}.jr-stats small{display:block;font-size:9px;letter-spacing:.1em;color:#bfe2c9}.jr-stats strong{font-size:21px;font-variant-numeric:tabular-nums}.jr-clock{position:absolute;top:18px;right:20px;padding:12px 17px;font-size:21px;font-weight:750;font-variant-numeric:tabular-nums}.jr-prompt{position:absolute;top:16%;left:20%;width:60%;text-align:center}.jr-prompt>p{display:inline-block;margin:0 0 10px;border-radius:20px;background:#123c2bd9;padding:5px 15px;font-size:13px;color:#f6ffe5}.jr-target{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;max-width:100%;margin:auto}.jr-target>span{display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:61px;padding:4px 10px;border-radius:10px;font-size:39px;font-weight:650;line-height:1.1;color:#294238;background:#fff5dded;box-shadow:0 4px 0 #5a704a66;border:2px solid #f0e4c1}.jr-target>span.done{background:#86e7a2;border-color:#6de599;color:#0b5836}.jr-target>span.current{background:#744e09f0;color:#fff7d4;border-color:#ffdc77;box-shadow:0 0 0 3px #e3b64355,0 0 20px #ffd76490}.jr-target.sentence{gap:3px;max-width:640px}.jr-target.sentence>span{min-width:0;min-height:32px;padding:3px 5px;font-size:20px;border-radius:5px;border-width:1px}.jr-target.wrong .current{background:#912e20;border-color:#ffb8a4;animation:jr-wrong .24s}.jr-actor{position:absolute;bottom:45%;pointer-events:none;filter:drop-shadow(0 8px 6px #092b2455)}.jr-actor img{width:100%;height:100%;object-fit:contain;object-position:bottom;display:block}.jr-mouse{left:10%;width:15%;height:31%;transform-origin:50% 100%}.jr-monkey{left:var(--monkey-x);width:17%;height:36%;transform-origin:50% 100%;transition:left .16s linear}.jr-monkey.recoil img{animation:jr-recoil .3s ease-out}.jr-pressure{position:absolute;top:9px;left:50%;transform:translateX(-50%);text-align:center;color:#effff1;background:#123c2bd9;border-radius:18px;padding:5px 12px;font-size:10px;min-width:175px;line-height:1.4}.jr-pressure meter{display:block;width:100%;height:11px;margin-top:4px;accent-color:#f4aa4c}.jr-leaves{position:absolute;right:1%;top:77%;width:18%;height:10%;background:radial-gradient(ellipse at 30% 60%,#96c64a 0 18%,transparent 20%),radial-gradient(ellipse at 60% 35%,#72a52b 0 28%,transparent 30%),radial-gradient(ellipse at 45% 70%,#bbda66 0 35%,transparent 37%);border-radius:50%;filter:drop-shadow(0 6px 3px #062b2033)}.jr-effects{position:absolute;inset:0;pointer-events:none}.fruit{position:absolute;left:20%;top:43%;width:19px;height:19px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffe4a7,#ffa91c 45%,#d55b0b);box-shadow:0 0 12px #ffcf69, -12px 2px 15px #ffdc7655}.fruit:after{content:'';width:9px;height:5px;border-radius:80% 0;background:#449134;position:absolute;left:10px;top:-3px;transform:rotate(-20deg)}.jr-mission{position:absolute;bottom:26%;left:15%;width:70%;padding:11px 18px;display:flex;align-items:center;justify-content:center;gap:12px;border-radius:12px;border:1px solid #91b493;background:#082d25ed;color:#e4f8df;font-size:12px}.jr-mission progress{width:25%;height:10px;accent-color:#9be9a5}.jr-combo{font-weight:800;font-size:12px;color:#ffdc82;white-space:nowrap}.jr-type-panel{position:absolute;bottom:4%;left:25%;width:50%;background:#092c26ee;border:1px solid #7ca788;border-radius:14px;padding:12px 16px;text-align:center;color:#dcf1df;box-shadow:0 8px 20px #0b302444}.jr-type-row{display:flex;align-items:center;gap:10px;justify-content:center}.jr-type-panel label{font-size:11px;font-weight:650;white-space:nowrap}.jr-type-panel input{background:#fffbea;border:2px solid #e3c36d;color:#1c3b2c;width:88px;border-radius:8px;padding:8px 12px;font-size:20px;text-align:center}.jr-next{font-size:11px;white-space:nowrap}.jr-next kbd{background:#385f48;border:1px solid #7fa385;border-radius:5px;padding:5px 9px;min-width:30px;display:inline-block;color:#ffe6a2}.jr-feedback{margin:7px 0 0;font-size:11px;line-height:1.4;min-height:16px;color:#d4e8d5}.jr-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:5;background:#062e2338;padding:20px}.jr-overlay-card{max-width:480px;max-height:100%;overflow:auto;background:#092e27f5;border:1px solid #a2c295b3;box-shadow:0 18px 55px #06271b66;border-radius:20px;padding:26px 30px;text-align:center;color:#edffe8}.jr-overlay-card>.jr-eyebrow{color:#cce493;font-size:10px}.jr-overlay-card h2{font-family:Georgia,serif;font-size:32px;color:#ffe1a0;margin:9px 0 12px}.jr-overlay-card p{font-size:14px;line-height:1.7;margin:0 0 17px}.jr-overlay-card .jr-actions{justify-content:center}.jr-overlay-card button{background:#c6eea6;border:1px solid #def6a7;border-radius:9px;padding:11px 18px;color:#123b2b;font-weight:800}.jr-overlay-card button+button{background:transparent;color:#e1f2d4;border-color:#82a586}.jr-overlay-card small{display:block;margin-top:14px;font-size:11px;line-height:1.6;color:#c8ddcd}.is-paused .jr-actor img{animation-play-state:paused}.is-win .jr-monkey{left:78%!important;transition:left .3s;animation:jr-tumble .95s .1s forwards}.is-win .jr-mouse{animation:jr-cheer .4s 3 alternate}.is-lose .jr-mouse{animation:jr-escape .85s forwards}.is-win .jr-leaves{animation:jr-rustle .3s .6s 3}.jr-below{padding:16px 18px;display:flex;gap:18px;align-items:center;justify-content:space-between;background:#103b2d;color:#dceedd;flex-wrap:wrap}.jr-below label{font-size:12px;display:flex;gap:8px;align-items:center}.jr-below select{padding:8px;border-radius:8px;background:#e9f2e5;color:#153f30;border:1px solid #8db396}.jr-below p{font-size:12px;margin:0}.jr-map,.jr-guide{margin-top:22px;padding:24px 28px;border:1px solid var(--jr-line);border-radius:18px;background:var(--jr-surface)}.jr-map h2,.jr-guide h2{font-size:21px;margin:0 0 10px}.jr-map p,.jr-guide p,.jr-guide li{font-size:14px;line-height:1.8;color:var(--jr-muted)}.jr-levels{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:9px}.jr-levels button{border:1px solid var(--jr-line);border-radius:10px;padding:13px 6px;font-size:15px;font-weight:750;color:var(--jr-ink);background:var(--jr-page)}.jr-levels button[aria-pressed=true]{border:2px solid #237d4f;background:#d7f0db;color:#0f4c2c}.jr-levels button:disabled{opacity:.45;cursor:default}.jr-guide{max-width:1100px;margin-left:auto;margin-right:auto}.jr-guide section+section{border-top:1px solid var(--jr-line);margin-top:20px;padding-top:20px}.jr-guide a{color:var(--jr-green);font-weight:650}.jr-guide details{border-top:1px solid var(--jr-line);padding:14px 0}.jr-guide summary{cursor:pointer;font-size:14px;font-weight:700}.jr-guide h3{font-size:17px}.jr-guide table{border-collapse:collapse;width:100%;font-size:13px}.jr-guide th,.jr-guide td{text-align:left;padding:12px;border-bottom:1px solid var(--jr-line);line-height:1.6}.jr-guide th{font-weight:750}.jr-guide caption{text-align:left;margin-bottom:10px;font-weight:700}.jr-nojs{padding:18px;background:#fff5cf;color:#463e22;border-radius:14px}html[data-theme=dark]{--jr-page:#10251f;--jr-surface:#18342b;--jr-ink:#e0efdf;--jr-line:#3b5c4d;--jr-muted:#b7cfc0;--jr-green:#96dfad}
@keyframes jr-recoil{40%{transform:translateX(14%) rotate(9deg)}100%{transform:none}}@keyframes jr-tumble{0%{transform:none}100%{transform:translate(30%,100%) rotate(65deg) scale(.65);opacity:.25}}@keyframes jr-cheer{to{transform:translateY(-12px) rotate(-4deg)}}@keyframes jr-escape{30%{transform:translateY(-20px)}100%{transform:translateX(-200%);opacity:0}}@keyframes jr-rustle{50%{transform:scale(1.15)}}@keyframes jr-wrong{50%{transform:translateX(4px)}}
@media(max-width:1050px){.jr-main{padding:16px}.jr-controls{gap:4px}.jr-hud{padding:10px 14px}.jr-brand strong{font-size:19px}.jr-scene{min-height:480px}.jr-prompt{top:20%;left:15%;width:70%}.jr-pressure{top:12%;left:auto;right:15px;transform:none;min-width:140px}.jr-target>span{min-width:40px;min-height:48px;font-size:30px}.jr-type-panel{left:17%;width:66%}.jr-mission{left:10%;width:80%}}
@media(max-width:700px){.jr-main{padding:12px 10px 28px}.jr-intro{align-items:flex-start}.jr-intro h1{font-size:26px}.jr-intro p{font-size:12px}.jr-intro>a{font-size:11px}.jr-gate{padding:24px;grid-template-columns:1fr}.jr-gate img{display:none}.jr-gate h2{font-size:22px}.jr-hud{gap:8px;padding:10px}.jr-brand{width:100%;justify-content:space-between;gap:8px}.jr-brand strong{font-size:19px}.jr-level-label{font-size:9px;padding:5px 7px}.jr-premium{font-size:8px;padding:4px 7px}.jr-controls{width:100%;justify-content:space-between}.jr-controls button{font-size:10px;min-height:32px;padding:6px 8px}.jr-scene{aspect-ratio:auto;height:440px;min-height:440px}.jr-stats{left:10px;top:10px;gap:5px}.jr-stats>div{padding:6px 9px;border-radius:8px}.jr-stats small{font-size:7px}.jr-stats strong{font-size:16px}.jr-clock{top:10px;right:10px;font-size:16px;padding:9px 10px;border-radius:8px}.jr-pressure{top:15%;right:10px;min-width:120px;padding:3px 8px;font-size:8px}.jr-pressure meter{height:8px}.jr-prompt{top:24%;left:6%;width:88%}.jr-prompt>p{font-size:10px;padding:4px 10px;margin-bottom:7px}.jr-target{gap:4px}.jr-target>span{min-width:28px;min-height:38px;font-size:25px;padding:3px 6px;border-radius:6px}.jr-target.sentence{gap:2px}.jr-target.sentence>span{font-size:15px;min-height:24px;padding:2px 3px}.jr-actor{bottom:32%}.jr-mouse{left:5%;width:20%;height:25%}.jr-monkey{width:23%;height:29%}.jr-backdrop{background-size:100% 100%;background-position:center;transform:translateY(13%);height:100%;top:-1%}.jr-mission{bottom:23%;left:4%;width:92%;padding:8px 9px;gap:8px;font-size:10px;border-radius:8px}.jr-combo{font-size:9px}.jr-mission progress{height:8px;min-width:40px;flex:1}.jr-type-panel{left:4%;width:92%;bottom:3%;padding:10px}.jr-type-panel input{font-size:16px;width:60px;padding:7px}.jr-type-panel label,.jr-next{font-size:10px}.jr-feedback{font-size:10px}.jr-below{padding:13px;font-size:11px;gap:10px}.jr-below p{font-size:10px}.jr-map,.jr-guide{padding:20px 16px}.jr-levels{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.jr-levels button{padding:12px 5px}.jr-overlay{padding:15px}.jr-overlay-card{padding:22px 20px}.jr-overlay-card h2{font-size:27px}.jr-overlay-card p{font-size:12px}.jr-overlay-card button{font-size:12px;padding:10px 13px}.jr-leaves{top:79%;right:0;width:22%}.jr-game:fullscreen .jr-scene{min-height:440px}.jr-guide th,.jr-guide td{padding:8px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.jr-game *{animation:none!important;transition:none!important}.is-win .jr-monkey{transform:translateY(80%) scale(.7);opacity:.3}.is-lose .jr-mouse{opacity:.2}}

/* The soft landing is revealed for the victory animation. */
.jr-leaves{opacity:0}.is-win .jr-leaves{opacity:1}
@media(prefers-color-scheme:dark){html[data-theme=system]{--jr-page:#10251f;--jr-surface:#18342b;--jr-ink:#e0efdf;--jr-line:#3b5c4d;--jr-muted:#b7cfc0;--jr-green:#96dfad}}

.jr-confetti{position:absolute;top:-12px;width:10px;height:16px;background:#b3df5a;border-radius:80% 0 80% 0;animation:jr-confetti 1.9s ease-in forwards;box-shadow:inset 1px 1px 1px #eafab2}.jr-confetti:nth-child(3n){background:#ffcf64}.jr-confetti:nth-child(3n+1){background:#55be88}@keyframes jr-confetti{to{transform:translate(25px,650px) rotate(var(--leaf-turn));opacity:0}}

