/* Word Search home follows the shared catalogue, without changing the language row. */
body.arcade-site.game-home {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    --home-hue: 212;
    --home-surface: hsl(212, 30%, 96%);
    --home-raised: hsl(212, 24%, 93%);
    --home-border: hsl(212, 20%, 77%);
    --home-ink: hsl(212, 23%, 20%);
    --home-muted: hsl(212, 13%, 39%);
    --home-accent: hsl(212, 40%, 32%);
    --site-accent: #b5def4;
    background: radial-gradient(ellipse at 80% 0, #29465c 0, transparent 55%), #152231;
}
body.game-home.dark-mode { --home-surface: #152231; --home-raised: #1b2d3d; --home-border: #3d556a; --home-ink: #edf4fa; --home-muted: #c5d5e2; --home-accent: #b5def4; }
body.game-home.arcade-site .game-home.games-content { width: min(1200px, 92%); background: transparent; padding: 0 0 40px; line-height: 1.55; border: 0; border-radius: 0; box-shadow: none; }
.game-home .game-home-sections > .wordsearch-level-heading { margin-top: 24px; }
@media (max-width: 600px) {
    .game-home .game-home-sections > .wordsearch-level-heading { margin-top: 20px; }
}
.game-home-sections { position: relative; isolation: isolate; padding: 1px 0 28px; color: var(--home-ink); }
.game-home-sections::before,
body.game-home:not(.dark-mode) .wordsearch-more-section::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--section-surface, var(--home-surface)); box-shadow: 0 0 0 100vmax var(--section-surface, var(--home-surface)); clip-path: inset(0 -100vmax); }
body.game-home:not(.dark-mode) .wordsearch-more-section { --section-surface: var(--home-raised); position: relative; isolation: isolate; margin-top: 32px; padding: 1px 0 32px; }
.game-home .game-home-sections h2,
.game-home .wordsearch-steps h3 { color: var(--home-ink); }
.game-home .games-eyebrow,
.game-home .wordsearch-text-link { color: var(--home-accent); }
.game-home .games-section-heading { margin: 36px 0 18px; gap: 12px 24px; align-items: center; }
.game-home .games-eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1.5; }
.game-home .wordsearch-text-link { font-size: 14px; font-weight: 600; line-height: 1.5; }
.game-home .games-section-heading h2 { font-size: 27px; font-weight: 650; letter-spacing: -.025em; line-height: 1.25; text-wrap: balance; }
.game-home .wordsearch-difficulties .games-card { border-width: 1px; border-color: var(--home-border); border-radius: 14px; box-shadow: 0 3px 12px #10243a0a; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.game-home .wordsearch-difficulties [data-home-difficulty="0"] { --card-hue: 145; }
.game-home .wordsearch-difficulties [data-home-difficulty="1"] { --card-hue: 212; }
.game-home .wordsearch-difficulties [data-home-difficulty="2"] { --card-hue: 276; }
.game-home .wordsearch-difficulties .games-card { --accent: hsl(var(--card-hue), 40%, 32%); --accent-ink: #fff; padding: 20px; background: #fff; border-color: #b6c4d3; color: #263748; }
.game-home .wordsearch-difficulties .games-card h3 { color: #263748; font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: normal; }
.game-home .wordsearch-difficulties .games-card p { margin: 0; color: #526170; font-size: 14px; line-height: 1.6; }
body.game-home.dark-mode .wordsearch-difficulties .games-card { background: #1b2d3d; border-color: #3d556a; color: #edf4fa; }
body.game-home.dark-mode .wordsearch-difficulties .games-card h3 { color: #edf4fa; }
body.game-home.dark-mode .wordsearch-difficulties .games-card p { color: #c5d5e2; }
body.game-home.dark-mode .wordsearch-difficulties .games-card:hover { border-color: #64829b; }
.game-home .wordsearch-difficulties .games-card-tag { margin-top: 0; padding: 4px 8px; font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .01em; background: hsl(var(--card-hue), 44%, 88%); color: hsl(var(--card-hue), 40%, 28%); }
.game-home .wordsearch-difficulties .games-card-action { min-height: 44px; box-sizing: border-box; padding: 11px 14px; font-size: 14px; font-weight: 600; line-height: 1.4; background: var(--accent); border-color: transparent; color: #fff; box-shadow: none; }
.game-home .wordsearch-difficulties .games-card-action > span { color: inherit; }
.game-home .wordsearch-difficulties .games-card:hover { border-color: #7d93a9; }
.game-home .wordsearch-difficulties .games-card { grid-template-rows: 1fr auto; gap: 18px 16px; }
.game-home .wordsearch-difficulty-copy h3 { margin: 10px 0 6px; }
.game-home .wordsearch-preview { border: 1px solid #bdcbd8; border-radius: 8px; }
.game-home .wordsearch-size-panel { border: 0; border-radius: 10px; background: var(--home-raised); padding: 24px; gap: 20px; }
.game-home .wordsearch-sizes a { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.4; min-height: 44px; box-sizing: border-box; background: var(--home-surface); color: var(--home-ink); border-color: var(--home-border); border-radius: 8px; }
.game-home .wordsearch-sizes a:hover, .game-home .wordsearch-sizes .wordsearch-all-sizes { background: var(--home-accent); color: var(--home-surface); border-color: transparent; }
.game-home .wordsearch-size-panel h2 { font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }
.game-home .wordsearch-rules { padding: 0; background: transparent; }
.game-home .wordsearch-steps { gap: 28px; }
.game-home .wordsearch-steps h3 { margin: 2px 0 8px; font-size: 17px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
.game-home .wordsearch-steps p { color: var(--home-muted); font-size: 15px; line-height: 1.65; }
.game-home .wordsearch-step-number { background: var(--home-raised); color: var(--home-accent); border-radius: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.game-home .wordsearch-print-link { border: 1px solid var(--home-border); background: var(--home-raised); color: var(--home-ink); border-radius: 8px; }
.game-home .wordsearch-print-link > span { color: var(--home-accent); }

body.game-home.arcade-site .resume-game-link { background: #c2fa6b; border-color: #b2ea5b; color: #173c55; box-shadow: 0 3px 0 #09233d1c; }
body.game-home.arcade-site .resume-game-link:hover { background: #d0e8f7; border-color: #7293ac; color: #173c55; }
.game-home .game-home a:focus-visible { outline-color: var(--home-accent); }
.game-home .wordsearch-hero a:focus-visible { outline-color: #b5def4; }
@media (max-width: 600px) {
    .game-home .games-section-heading h2 { font-size: 24px; }
    .game-home .wordsearch-difficulties .games-card { padding: 16px; gap: 16px 12px; }
    .game-home .wordsearch-size-panel { padding: 20px; }
    .game-home .wordsearch-steps { gap: 24px; }
    .game-home .wordsearch-difficulty-copy .games-card-tag { letter-spacing: normal; }
}

body.arcade-site.game-home > header .active { background: #2a4a63; color: #b5def4; }
