/* Shared compact masthead for the landing page and puzzle catalogue. */
.wordsearch-header { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.arcade-site .wordsearch-header .wordsearch-page-heading { padding: 4px 0 0; }
.wordsearch-header .wordsearch-toolbar { min-height: 44px; gap: 16px; }
.wordsearch-header .wordsearch-toolbar .games-brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; font-weight: 900; flex-shrink: 0; flex-wrap: nowrap; gap: 10px; font-size: 15px; letter-spacing: .08em; }
.wordsearch-header .wordsearch-toolbar .games-brand img { display: block; width: 28px; height: 28px; flex-basis: 28px; }
.wordsearch-header .wordsearch-toolbar .games-brand span { border-left: 1px solid #657970; padding-left: 12px; color: #9eb8cb; font-size: 9px; letter-spacing: .12em; }
.wordsearch-header .wordsearch-toolbar .games-breadcrumbs { margin-inline: auto; font-size: 12px; }
.arcade-site .wordsearch-header .wordsearch-theme-toggle { font-size: 12px; }
.arcade-site .wordsearch-header .wordsearch-masthead { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) 128px; gap: 36px; padding: 20px 0 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.arcade-site .wordsearch-masthead h1 { max-width: none; margin: 0 0 10px; color: #f4f8fc; font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.arcade-site .wordsearch-masthead .games-intro { max-width: 780px; margin: 0; color: #c5d5e2; font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.arcade-site .wordsearch-masthead .games-hero-note { margin: 12px 0 0; color: #9eb3c3; font-size: 12px; line-height: 1.5; }
.wordsearch-header .wordsearch-hero-art { display: block; position: relative; width: 112px; max-width: 100%; justify-self: center; transform: rotate(-7deg); }
.wordsearch-header .wordsearch-hero-art::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, #b5def414, transparent 70%); pointer-events: none; }
.wordsearch-header .wordsearch-hero-grid { position: relative; width: 100%; height: auto; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.wordsearch-hero-grid .wordsearch-artwork-background { display: none; }
.wordsearch-hero-grid .wordsearch-artwork-tile { fill: #ffffff0c; stroke: #a9d5ed38; stroke-width: 1; }
.wordsearch-hero-grid .wordsearch-artwork-tile.is-selected { fill: #c2fa6b; stroke: #d4ff99; }
.wordsearch-hero-grid .wordsearch-artwork-letter { fill: #d9e8f2; }
.wordsearch-hero-grid .wordsearch-artwork-letter.is-selected { fill: #213b19; }
@media (max-width: 900px) {
    .wordsearch-header .wordsearch-toolbar .games-breadcrumbs { display: none; }
    .wordsearch-header .wordsearch-toolbar .wordsearch-theme-toggle { margin-inline-start: auto; }
}
@media (max-width: 600px) {
    .wordsearch-header .wordsearch-toolbar .games-brand span { display: none; }
    .arcade-site .wordsearch-header .wordsearch-masthead { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 16px 0 20px; align-items: start; }
    .arcade-site .wordsearch-masthead h1 { font-size: 30px; letter-spacing: -.025em; }
    .arcade-site .wordsearch-masthead .games-intro { font-size: 14px; line-height: 1.5; }
    .arcade-site .wordsearch-masthead .games-hero-note { font-size: 11px; }
    .wordsearch-header .wordsearch-hero-art { display: none; }
}

.wordsearch-header .wordsearch-hero-grid text { dominant-baseline: alphabetic; }
.wordsearch-header .games-brand:focus-visible { outline: 3px solid #b5def4; outline-offset: 5px; }
.wordsearch-header .catalog-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.wordsearch-header .catalog-facts { gap: 6px 18px; font-size: 12px; line-height: 1.5; }
.wordsearch-header .catalog-facts b { font-size: 14px; font-variant-numeric: tabular-nums; }
.wordsearch-header .catalog-modes { gap: 4px; }
.wordsearch-header .catalog-modes a { padding: 10px 14px; font-size: 13px; }
@media (max-width: 600px) {
    .wordsearch-header .catalog-header-actions { gap: 12px; margin-top: 12px; }
}
