/**
 * /typing-test/ hub — VS Code–inspired white + blue marketing UI.
 * Theme locked; chrome vars forced light so no dark/black strips show.
 */

html[data-theme-locked="1"] body.vsh-page,
body.site-chrome.vsh-page {
    --chrome-bg: #f3f3f3 !important;
    --chrome-surface: #ffffff !important;
    --chrome-border: #dde1e6 !important;
    --chrome-text: #1e1e1e !important;
    --chrome-sub: #5a5a5a !important;
    --chrome-accent: #007acc !important;
    --mkt-bg: #f3f3f3 !important;
    --mkt-surface: #ffffff !important;
    --mkt-text: #1e1e1e !important;
    --mkt-muted: #5a5a5a !important;
    --mkt-accent: #007acc !important;
    --mkt-border: #dde1e6 !important;
    background: #f3f3f3 !important;
    color: #1e1e1e !important;
}

body.site-chrome.vsh-page .main-content {
    background: #f3f3f3 !important;
    color: #1e1e1e !important;
    padding: 0 !important;
}

body.site-chrome.vsh-page .navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #dde1e6 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

body.site-chrome.vsh-page .navbar-logo,
body.site-chrome.vsh-page .navbar-logo .logo-text,
body.site-chrome.vsh-page .navbar-logo .logo-mark {
    color: #1e1e1e !important;
}

body.site-chrome.vsh-page .navbar-logo .logo-mark-accent {
    fill: #007acc !important;
}

body.site-chrome.vsh-page .navbar-logo .logo-mark-caret {
    stroke: #007acc !important;
}

body.site-chrome.vsh-page .navbar-logo:hover,
body.site-chrome.vsh-page .navbar-logo:hover .logo-mark,
body.site-chrome.vsh-page .navbar-logo:hover .logo-text {
    color: #007acc !important;
}

/* This page only: hide the 4 icon nav items (Typing test, Rankings, Games, Hosting) */
body.site-chrome.vsh-page .nav-menu > .nav-link-icon {
    display: none !important;
}

body.site-chrome.vsh-page .nav-link,
body.site-chrome.vsh-page .nav-link-text {
    color: #3c3c3c !important;
}

body.site-chrome.vsh-page .nav-link .nav-icon,
body.site-chrome.vsh-page .nav-link svg {
    color: #3c3c3c !important;
    stroke: currentColor;
}

body.site-chrome.vsh-page .nav-link:hover,
body.site-chrome.vsh-page .nav-link:hover .nav-link-text,
body.site-chrome.vsh-page .nav-link:hover .nav-icon,
body.site-chrome.vsh-page .nav-link.is-active,
body.site-chrome.vsh-page .nav-link.is-active .nav-link-text,
body.site-chrome.vsh-page .nav-link.is-active .nav-icon {
    color: #007acc !important;
}

body.site-chrome.vsh-page .nav-link.is-active {
    background: #e8f4fc !important;
}

body.site-chrome.vsh-page .nav-menu {
    justify-content: center !important;
    gap: 0.5rem 1.1rem;
}

body.site-chrome.vsh-page .nav-link-text-only {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.88rem !important;
    font-weight: 650 !important;
    white-space: nowrap;
}

@media (max-width: 900px) {
    body.site-chrome.vsh-page .navbar-container.nav-open .nav-menu .nav-link-text-only {
        display: flex !important;
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
    }
}

body.site-chrome.vsh-page .nav-toggle {
    color: #1e1e1e !important;
    border-color: #dde1e6 !important;
}

body.site-chrome.vsh-page .nav-toggle-bars span {
    background: #1e1e1e !important;
}

body.site-chrome.vsh-page .nav-account-menu {
    background: #ffffff !important;
    border-color: #dde1e6 !important;
}

body.site-chrome.vsh-page .nav-account-item,
body.site-chrome.vsh-page .nav-account-user {
    color: #1e1e1e !important;
}

body.site-chrome.vsh-page .ui-lang-btn,
body.site-chrome.vsh-page .ui-lang-label,
body.site-chrome.vsh-page .ui-lang-code {
    color: #1e1e1e !important;
}

body.site-chrome.vsh-page .footer.footer-mt,
body.site-chrome.vsh-page .footer-mt {
    background: #ffffff !important;
    border-top: 1px solid #dde1e6 !important;
    color: #1e1e1e !important;
}

body.site-chrome.vsh-page .footer-mt .footer-logo,
body.site-chrome.vsh-page .footer-mt .footer-tagline,
body.site-chrome.vsh-page .footer-mt .footer-col-title,
body.site-chrome.vsh-page .footer-mt .footer-links-list a,
body.site-chrome.vsh-page .footer-mt .footer-copy,
body.site-chrome.vsh-page .footer-mt .footer-bottom-links a {
    color: #3c3c3c !important;
}

body.site-chrome.vsh-page .footer-mt .footer-links-list a:hover,
body.site-chrome.vsh-page .footer-mt .footer-logo:hover {
    color: #007acc !important;
}

body.site-chrome.vsh-page .footer-theme-section,
body.site-chrome.vsh-page #footer-theme-modal {
    display: none !important;
}

.vsh {
    --vsh-bg: #f3f3f3;
    --vsh-surface: #ffffff;
    --vsh-ink: #1e1e1e;
    --vsh-muted: #5a5a5a;
    --vsh-line: #dde1e6;
    --vsh-blue: #007acc;
    --vsh-blue-deep: #005a9e;
    --vsh-blue-soft: #e8f4fc;
    --vsh-blue-mid: #1f9cf0;
    --vsh-code-bg: #1e1e1e;
    --vsh-code-fg: #d4d4d4;
    --vsh-max: 1120px;
    background:
        radial-gradient(ellipse 80% 50% at 100% -10%, rgba(0, 122, 204, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 20%, rgba(31, 156, 240, 0.08), transparent 50%),
        var(--vsh-bg);
    color: var(--vsh-ink);
    font-family: 'Segoe UI', 'Cascadia Code', 'Consolas', system-ui, sans-serif;
    padding: 0 1.25rem 4rem;
    min-height: calc(100vh - var(--chrome-nav-h, 56px));
}

.vsh-hero {
    max-width: var(--vsh-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 3.5rem) 0 2rem;
}

.vsh-brand {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--vsh-blue);
}

.vsh-hero h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2.1rem, 5vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--vsh-ink);
}

.vsh-hero-lead {
    margin: 0 0 1.5rem;
    max-width: 34rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--vsh-muted);
}

.vsh-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.vsh-hero-meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--vsh-muted);
}

.vsh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border-radius: 0.2rem;
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vsh-btn-primary {
    background: var(--vsh-blue);
    color: #fff !important;
}

.vsh-btn-primary:hover {
    background: var(--vsh-blue-deep);
    color: #fff !important;
}

.vsh-btn-ghost {
    background: var(--vsh-surface);
    border-color: var(--vsh-blue);
    color: var(--vsh-blue) !important;
}

.vsh-btn-ghost:hover {
    background: var(--vsh-blue-soft);
}

.vsh-link {
    color: var(--vsh-blue);
    font-weight: 650;
    text-decoration: none;
    font-size: 0.95rem;
}

.vsh-link:hover {
    text-decoration: underline;
}

.vsh-code-window {
    background: var(--vsh-code-bg);
    border-radius: 0.35rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 90, 158, 0.18);
    border: 1px solid #333;
}

.vsh-code-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    background: #2d2d2d;
    border-bottom: 1px solid #3c3c3c;
}

.vsh-code-bar span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #555;
}

.vsh-code-bar span:nth-child(1) { background: #e81123; }
.vsh-code-bar span:nth-child(2) { background: #f9c500; }
.vsh-code-bar span:nth-child(3) { background: #00cc6a; }

.vsh-code-bar em {
    margin-left: 0.65rem;
    font-style: normal;
    font-size: 0.75rem;
    color: #9d9d9d;
}

.vsh-code-body {
    margin: 0;
    padding: 1.1rem 1.15rem 1.35rem;
    font-family: 'Cascadia Code', 'Consolas', 'Roboto Mono', ui-monospace, monospace;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--vsh-code-fg);
    overflow-x: auto;
}

.vsh-code-body .k { color: #569cd6; }
.vsh-code-body .f { color: #dcdcaa; }
.vsh-code-body .s { color: #ce9178; }
.vsh-code-body .n { color: #b5cea8; }
.vsh-code-body .c { color: #6a9955; }

.vsh-jump {
    max-width: var(--vsh-max);
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.65rem;
    background: var(--vsh-surface);
    border: 1px solid var(--vsh-line);
    border-radius: 0.25rem;
}

.vsh-jump a {
    padding: 0.4rem 0.75rem;
    border-radius: 0.15rem;
    color: var(--vsh-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.vsh-jump a:hover {
    color: var(--vsh-blue);
    background: var(--vsh-blue-soft);
}

.vsh-section {
    max-width: var(--vsh-max);
    margin: 0 auto 2.75rem;
    padding: 1.75rem 1.5rem;
    background: var(--vsh-surface);
    border: 1px solid var(--vsh-line);
    border-radius: 0.3rem;
}

.vsh-section-head h2,
.vsh-section > h2,
.vsh-ninja-card h2,
.vsh-panel h2,
.vsh-split > div > h2 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--vsh-ink);
}

.vsh-section-head p,
.vsh-ninja-lead,
.vsh-split p,
.vsh-panel p,
.vsh-seo p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--vsh-muted);
}

.vsh-section-head p strong,
.vsh-seo p strong {
    color: var(--vsh-ink);
    font-weight: 700;
}

.vsh-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vsh-blue);
}

.vsh-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1.25rem 0;
}

.vsh-feature {
    padding: 1rem 1.05rem;
    background: var(--vsh-blue-soft);
    border-left: 3px solid var(--vsh-blue);
    border-radius: 0 0.2rem 0.2rem 0;
}

.vsh-feature h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--vsh-ink);
}

.vsh-feature p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--vsh-muted);
}

.vsh-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.vsh-ninja {
    padding: 0;
    border: 0;
    background: transparent;
}

.vsh-ninja-card {
    padding: 1.85rem 1.6rem;
    background: linear-gradient(135deg, #007acc 0%, #005a9e 55%, #004578 100%);
    color: #fff;
    border-radius: 0.35rem;
    box-shadow: 0 12px 32px rgba(0, 90, 158, 0.28);
}

.vsh-ninja-card .vsh-kicker {
    color: #b3e0ff;
}

.vsh-ninja-card h2 {
    color: #fff;
}

.vsh-ninja-card .vsh-ninja-lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 40rem;
}

.vsh-ninja-card .vsh-checklist {
    color: rgba(255, 255, 255, 0.92);
}

.vsh-ninja-card .vsh-btn-primary {
    background: #fff;
    color: var(--vsh-blue-deep) !important;
}

.vsh-ninja-card .vsh-btn-primary:hover {
    background: #e8f4fc;
    color: var(--vsh-blue-deep) !important;
}

.vsh-ninja-card .vsh-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff !important;
}

.vsh-ninja-card .vsh-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.vsh-checklist {
    margin: 0 0 1.25rem;
    padding-left: 1.15rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--vsh-muted);
}

.vsh-checklist li {
    margin-bottom: 0.3rem;
}

.vsh-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.25rem;
}

.vsh-game {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    background: #fafafa;
    border: 1px solid var(--vsh-line);
    border-radius: 0.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vsh-game:hover {
    border-color: var(--vsh-blue);
    box-shadow: 0 0 0 1px var(--vsh-blue);
}

.vsh-game-name {
    font-weight: 700;
    color: var(--vsh-ink);
}

.vsh-game-meta {
    font-size: 0.75rem;
    font-weight: 650;
    color: var(--vsh-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vsh-game-tag {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--vsh-muted);
}

.vsh-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: 0;
}

.vsh-split > div,
.vsh-panel {
    padding: 1.5rem 1.35rem;
    background: var(--vsh-surface);
    border: 1px solid var(--vsh-line);
    border-radius: 0.3rem;
}

.vsh-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.vsh-pillar {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1rem;
    background: var(--vsh-blue-soft);
    border: 1px solid #cfe8f7;
    border-radius: 0.25rem;
    text-decoration: none;
    color: inherit;
}

.vsh-pillar:hover {
    border-color: var(--vsh-blue);
}

.vsh-pillar strong {
    color: var(--vsh-blue-deep);
    font-size: 1rem;
}

.vsh-pillar span {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--vsh-muted);
}

.vsh-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.45rem;
    margin-top: 1rem;
}

.vsh-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    background: #fafafa;
    border: 1px solid var(--vsh-line);
    border-radius: 0.2rem;
    text-decoration: none;
    color: var(--vsh-ink);
    font-size: 0.85rem;
    font-weight: 600;
}

.vsh-lang:hover {
    border-color: var(--vsh-blue);
    color: var(--vsh-blue);
}

.vsh-lang img {
    flex-shrink: 0;
    border-radius: 2px;
}

.vsh-seo {
    background: linear-gradient(180deg, #fff 0%, var(--vsh-blue-soft) 100%);
}

@media (max-width: 900px) {
    .vsh-hero {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .vsh-hero-panel {
        order: -1;
    }

    .vsh-feature-grid,
    .vsh-split,
    .vsh-pillars {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .vsh {
        padding: 0 0.85rem 3rem;
    }

    .vsh-section {
        padding: 1.25rem 1rem;
    }

    .vsh-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .vsh-btn {
        width: 100%;
    }
}
