body.arcade-site.puzzles { --site-accent: #8fd1f3; background: radial-gradient(ellipse at 80% 0, #29465c 0, transparent 55%), #152231; }
.arcade-site.puzzles > header { background: #141e2a; border-color: #32485d; }
.arcade-site.puzzles > header .active { background: #2a4a63; color: #b5def4; }
body.arcade-site .content.wordsearch-catalog:not(.games-content):not(.anagrams-play):not(.hangman-content) { width: min(1200px, 92%); padding: 0 0 32px; background: transparent; }
.wordsearch-catalog .catalog-hero { position: relative; overflow: hidden; padding: 28px 32px; border: 1px solid #46617a; border-radius: 18px; background: linear-gradient(115deg, #29465c, #1c2e41 85%); box-shadow: 0 12px 32px #080f1820; }
.wordsearch-catalog h1 { max-width: 700px; margin: 22px 0 12px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.7px; line-height: 1.15; text-align: left; }
.wordsearch-catalog .catalog-hero p { max-width: 620px; margin: 0; color: #c5d5e2; font-size: 16px; line-height: 1.6; }
.catalog-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 24px; color: #c5d5e2; font-size: 13px; }
.catalog-facts b { margin-right: 4px; color: #f0f6fc; font-size: 18px; font-variant-numeric: tabular-nums; }
.catalog-save-note::before, .catalog-print-note::before { margin-right: 7px; color: #9dd8e9; }
.catalog-save-note::before { content: '✓'; }
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 24px; margin-top: 28px; }
.catalog-size-panel { padding: 18px; border: 1px solid #3d556a; border-radius: 14px; background: #1b2d3d; }
.wordsearch-catalog .catalog-size-panel h2 { margin: 0 0 16px; color: #edf4fa; font-size: 17px; }
.catalog-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.wordsearch-catalog .catalog-filters a { display: flex; justify-content: space-between; align-items: center; gap: 5px; min-height: 44px; box-sizing: border-box; padding: 10px; border: 1px solid transparent; border-radius: 8px; background: #283e50; color: #d9e5ef; font-size: 13px; white-space: nowrap; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.catalog-filters a[data-size="all"] { grid-column: 1 / -1; }
.catalog-filters small { color: #a6becf; font-size: 10px; font-variant-numeric: tabular-nums; }
.wordsearch-catalog .catalog-filters a:hover { background: #35546d; border-color: #648aa6; }
.wordsearch-catalog .catalog-filters a[aria-current="true"] { background: #b5def4; border-color: #cdeafb; color: #173c55; font-weight: bold; box-shadow: 0 2px 8px #0d1b2830; }
.catalog-filters a[aria-current="true"] small { color: #345d76; }
.wordsearch-catalog .catalog-muted { color: #a9bfce; }
.wordsearch-catalog #wordsearch-catalog-status { margin: 0 0 14px; padding: 0 2px; font-size: 13px; line-height: 1.5; }

.catalog-game-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.wordsearch-catalog .catalog-game-list a { display: flex; flex-direction: column; align-items: center; justify-content: center; box-sizing: border-box; min-height: 104px; padding: 14px 6px 10px; border: 1px solid #e3ebf2; border-radius: 10px; background: #f5f8fb; color: #203e56; font-size: 23px; font-weight: bold; font-variant-numeric: tabular-nums; text-decoration: none; box-shadow: 0 3px 8px #09131f20; transition: background .15s ease, transform .15s ease; }
.catalog-card-label { margin-bottom: 8px; color: #6d8192; font-size: 8px; font-weight: normal; letter-spacing: .7px; text-align: center; overflow-wrap: anywhere; }
.wordsearch-catalog .catalog-game-list a:hover { background: #e2f1fb; border-color: #8fcbea; }
.wordsearch-catalog .catalog-game-list a.is-solved { background: #e2f0e5; border-color: #a0c4a9; }
.catalog-game-status { margin-top: 8px; min-height: 14px; color: #3d6c87; font-size: 10px; font-weight: normal; text-align: center; overflow-wrap: anywhere; }
.catalog-game-list a.is-solved .catalog-game-status { color: #3c6b48; }
.catalog-print-note::before { content: '↓'; }
.catalog-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #49647b; }
.wordsearch-catalog .catalog-modes a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; color: #c5d5e2; text-decoration: none; font-size: 14px; }
.wordsearch-catalog .catalog-modes a[aria-current="page"] { background: #b5def4; color: #173c55; font-weight: bold; }
.wordsearch-catalog .catalog-modes a:hover { border-color: #8eb2ca; }
.wordsearch-catalog:lang(hi) { font-family: 'Noto Sans Devanagari', sans-serif; }
.wordsearch-catalog:lang(th) { font-family: NotoSansThai, sans-serif; }
.wordsearch-catalog:is(:lang(ja), :lang(zh)) { font-family: system-ui, sans-serif; }
.wordsearch-catalog:is(:lang(hi), :lang(th), :lang(ja), :lang(zh)) :is(h1, .catalog-card-label) { letter-spacing: normal; }
.wordsearch-catalog:lang(th) .catalog-card-label, .wordsearch-catalog:lang(hi) .catalog-card-label { font-size: 10px; }
.wordsearch-catalog:is(:lang(hi), :lang(th)) h1 { line-height: 1.45; }
.wordsearch-catalog a:focus-visible { outline: 3px solid #8fd1f3; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .catalog-game-list a:hover { transform: translateY(-2px); } }
@media (max-width: 850px) {
    .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .catalog-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .wordsearch-catalog .catalog-hero { padding: 22px; }
    .wordsearch-catalog h1 { margin-top: 20px; font-size: 28px; }
    .wordsearch-catalog .catalog-hero p { font-size: 14px; }
    .catalog-facts { gap: 10px 16px; margin-top: 20px; font-size: 12px; }
    .catalog-facts b { font-size: 16px; }
    .catalog-layout { margin-top: 20px; }
    .catalog-size-panel { padding: 16px; }
    .catalog-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .wordsearch-catalog .catalog-filters a { font-size: 12px; padding: 9px 7px; }

    .catalog-game-list { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
}
@media (max-width: 420px) { .catalog-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) {
    .wordsearch-catalog .catalog-game-list a, .wordsearch-catalog .catalog-filters a { transition: none; }
    .catalog-game-list a:hover { transform: none; }
}
