:root {
  --ink: #102a43;
  --muted: #627d98;
  --cream: #f7f4ee;
  --paper: #fffdf9;
  --line: #d9e2ec;
  --amber: #f4bf50;
  --blue: #b6d3e7;
  --coral: #ee9b83;
  --green: #2d6a58;
  --shadow: 0 24px 65px rgba(16, 42, 67, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", system-ui, sans-serif; }
button, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { max-width: 1440px; margin: 0 auto; overflow: hidden; background: var(--paper); min-height: 100vh; }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 24px clamp(24px, 6vw, 86px); border-bottom: 1px solid rgba(16, 42, 67, .09); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.04em; font-size: 22px; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; color: var(--paper); background: var(--ink); border-radius: 50%; font-family: Fraunces, serif; font-size: 18px; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-note { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ghost-button, .back-button { color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 10px 17px; font-size: 13px; font-weight: 600; }
.ghost-button:hover, .back-button:hover { border-color: var(--ink); background: #f5f8fa; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 7vw; align-items: center; padding: 48px clamp(24px, 9vw, 130px) 58px; background: #fbfaf7; }
.eyebrow { margin: 0 0 18px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 700; letter-spacing: -.055em; line-height: .98; }
h1 { max-width: 630px; margin-bottom: 21px; font-size: clamp(54px, 6.5vw, 86px); }
h1 em, h2 em { color: #e37d63; font-style: normal; }
.hero-text { max-width: 480px; color: var(--muted); line-height: 1.7; font-size: 16px; }
.hero-actions { display: flex; gap: 25px; align-items: center; margin-top: 35px; }
.primary-button { border: 0; border-radius: 999px; padding: 14px 22px; color: #fff; background: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 10px 20px rgba(16, 42, 67, .14); transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 25px rgba(16, 42, 67, .2); }
.primary-button span, .text-button span { margin-left: 12px; font-size: 17px; }
.text-button { padding: 4px 0; color: var(--ink); border: 0; background: transparent; font-size: 14px; font-weight: 700; }
.text-button:hover { color: #e37d63; }
.hero-art { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin-left: auto; padding: 45px 35px; background: #f2c35b; transform: rotate(3deg); box-shadow: 15px 17px 0 #eeb348; }
.hero-art::before { position: absolute; inset: 15px; border: 1px solid rgba(16,42,67,.25); content: ""; }
.sun-stamp { position: absolute; top: 9%; right: 4%; z-index: 2; display: grid; width: 85px; height: 85px; place-items: center; border-radius: 50%; color: #fffdf9; background: #d67861; font-size: 10px; font-weight: 700; letter-spacing: .09em; line-height: 1.2; text-align: center; transform: rotate(12deg); }
.mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 25px; color: var(--ink); font-family: Fraunces, serif; font-size: clamp(21px, 3vw, 31px); text-align: center; }
.mini-grid span { padding: 6px 2px; border-bottom: 1px solid rgba(16,42,67,.25); }
.mini-grid span:nth-child(5n+1) { border-left: 1px solid rgba(16,42,67,.25); }
.mini-grid span:nth-child(5n) { border-right: 1px solid rgba(16,42,67,.25); }
.art-label { position: absolute; bottom: 23px; left: 45px; font-size: 12px; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.art-label strong { font-size: 16px; }
.choice-section, .panel-section { padding: 76px clamp(24px, 9vw, 130px); }
.choice-section { background: var(--paper); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
h2 { margin-bottom: 0; font-size: clamp(39px, 4vw, 61px); }
.section-aside { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: right; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.choice-card { position: relative; min-height: 296px; padding: 29px; border: 0; color: var(--ink); border-radius: 4px; text-align: left; transition: transform .2s, box-shadow .2s; }
.choice-card:hover { transform: translateY(-7px) rotate(-.5deg); box-shadow: var(--shadow); }
.card-amber { background: var(--amber); }.card-blue { background: var(--blue); }.card-coral { background: var(--coral); }.card-daily { background: #b9d6b8; }
.card-number { position: absolute; top: 23px; right: 25px; font-size: 11px; letter-spacing: .1em; }
.card-icon { display: block; margin-bottom: 45px; font-family: Georgia, serif; font-size: 34px; }
.choice-card strong { display: block; margin-bottom: 9px; font-family: Fraunces, serif; font-size: 25px; letter-spacing: -.035em; }
.choice-card > span:not(.card-number):not(.card-icon):not(.card-link) { max-width: 240px; display: block; font-size: 13px; line-height: 1.6; }
.card-link { position: absolute; bottom: 26px; left: 29px; font-size: 12px; font-weight: 700; }.card-link b { margin-left: 8px; font-size: 17px; }
.themes-section { background: #f2f6f2; }.compact-heading { margin-bottom: 34px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.theme-card { position: relative; display: flex; min-height: 155px; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 23px; overflow: hidden; color: var(--ink); border: 0; border-radius: 4px; text-align: left; }
.theme-card:hover { filter: saturate(1.12); transform: translateY(-3px); }.theme-card { transition: transform .2s, filter .2s; }
.theme-peach { background: #f3c6a9; }.theme-lavender { background: #cec8e6; }.theme-mint { background: #afd0be; }.theme-blue { background: #b5d7dc; }.theme-yellow { background: #eadc91; }.theme-coral { background: #efaaa0; }
.theme-emoji { position: absolute; top: 20px; left: 23px; font-family: Georgia, serif; font-size: 28px; }.theme-arrow { position: absolute; top: 20px; right: 23px; font-size: 20px; }.theme-title { font-family: Fraunces, serif; font-size: 24px; letter-spacing: -.04em; }.theme-subtitle { margin-top: 6px; font-size: 12px; }
.custom-section { background: #fbfaf7; border-top: 1px solid var(--line); }.custom-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; align-items: start; }.section-copy { max-width: 390px; margin-top: 23px; color: var(--muted); line-height: 1.7; }.tip-box { display: flex; gap: 13px; max-width: 360px; margin-top: 35px; padding: 17px; color: #496272; background: #edf4ed; font-size: 12px; line-height: 1.5; }.tip-box > span { font-size: 20px; }.tip-box p { margin: 0; }.tip-box strong { color: var(--ink); }
.custom-form { max-width: 570px; padding: 30px; background: #fff; box-shadow: var(--shadow); }.custom-form > label, .form-row label { display: flex; flex-direction: column; gap: 9px; font-size: 12px; font-weight: 700; }.custom-form textarea { width: 100%; resize: vertical; min-height: 194px; margin-top: 10px; padding: 15px; color: var(--ink); border: 1px solid var(--line); outline: 0; line-height: 1.7; }.custom-form textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,106,88,.1); }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 17px; }.custom-form select { padding: 11px; color: var(--ink); border: 1px solid var(--line); background: #fff; }.check-label { display: flex; align-items: center; gap: 9px; margin: 18px 0; color: var(--muted); font-size: 12px; }.check-label input { accent-color: var(--green); }.form-error { min-height: 18px; margin: 0 0 9px; color: #b14f46; font-size: 12px; }.full-button { width: 100%; }
.game-section { min-height: calc(100vh - 80px); padding: 30px clamp(24px, 6vw, 86px) 80px; background: #fbfaf7; }.game-topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; }.game-meta { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; }.dot { padding: 0 7px; }.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(30px, 8vw, 120px); align-items: start; max-width: 1050px; margin: 60px auto 0; }.game-heading { margin-bottom: 28px; }.game-heading h2 { font-size: clamp(40px, 5vw, 68px); }.game-heading p:last-child { margin-top: 17px; color: var(--muted); font-size: 14px; }.board-frame { max-width: 650px; padding: 10px; background: #e8eee8; box-shadow: 8px 8px 0 #d3dfd4; }.word-grid { display: grid; grid-template-columns: repeat(var(--grid-size), 1fr); background: #fff; }.grid-cell { aspect-ratio: 1; min-width: 0; padding: 0; color: var(--ink); border: 1px solid #e7ece7; background: #fff; font-family: Fraunces, Georgia, serif; font-size: clamp(10px, 2vw, 23px); font-weight: 700; touch-action: none; }.grid-cell:hover, .grid-cell.is-selected { background: #fae5a6; }.grid-cell.is-found { color: #fff; border-color: #5b9c78; background: #6ba881; }.game-footer { display: flex; justify-content: space-between; align-items: center; max-width: 650px; margin-top: 22px; color: var(--muted); font-size: 12px; }.game-footer .text-button { color: var(--green); }.word-list-panel { padding: 28px; background: #fff; box-shadow: var(--shadow); }.word-list-panel h3 { margin: 0 0 20px; font-family: Fraunces, serif; font-size: 27px; letter-spacing: -.04em; }.word-list { display: flex; flex-wrap: wrap; gap: 8px; }.word-item { padding: 7px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 700; }.word-item.is-found { color: #558266; border-color: #b8d9c2; background: #e9f4eb; text-decoration: line-through; }.completion-message { margin-top: 31px; padding-top: 22px; border-top: 1px solid var(--line); }.completion-message > span { color: #dc8e32; font-size: 25px; }.completion-message strong { display: block; margin: 9px 0 5px; font-family: Fraunces, serif; font-size: 22px; }.completion-message p { color: var(--muted); font-size: 12px; line-height: 1.5; }.completion-message .primary-button { margin-top: 5px; font-size: 12px; }.toast { position: fixed; left: 50%; bottom: 25px; z-index: 10; max-width: calc(100vw - 32px); padding: 13px 18px; color: #fff; border-radius: 999px; background: var(--ink); box-shadow: var(--shadow); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity .2s, transform .2s; }.toast.visible { opacity: 1; transform: translate(-50%, 0); }.is-generating::after { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; color: var(--ink); background: rgba(255,253,249,.7); content: "Making your grid…"; font-family: Fraunces, serif; font-size: 27px; backdrop-filter: blur(3px); }.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(24px, 9vw, 130px); color: var(--muted); background: #f1f5f0; font-size: 11px; }.site-footer span:first-child { color: var(--ink); font-weight: 700; }
@media (max-width: 850px) { .hero { grid-template-columns: 1fr; padding-top: 65px; }.hero-art { margin: 15px auto 0; width: min(100%, 400px); }.choice-grid, .theme-grid { grid-template-columns: 1fr 1fr; }.custom-layout { grid-template-columns: 1fr; gap: 38px; }.game-layout { grid-template-columns: 1fr; }.word-list-panel { max-width: 650px; }.game-topbar .game-meta { display: none; } }
@media (max-width: 560px) { .header-note { display: none; }.site-header { padding: 18px 20px; }.header-actions { gap: 0; }.hero, .choice-section, .panel-section { padding-right: 20px; padding-left: 20px; }.hero { padding-top: 58px; padding-bottom: 70px; }.hero-art { width: min(100%, 350px); padding: 42px 30px; }.choice-grid, .theme-grid { grid-template-columns: 1fr; }.choice-card { min-height: 245px; }.section-heading { align-items: start; flex-direction: column; }.section-aside { text-align: left; }.custom-form { padding: 20px; }.form-row { grid-template-columns: 1fr; }.game-section { padding-right: 16px; padding-left: 16px; }.game-topbar { align-items: flex-start; }.game-topbar .ghost-button { padding: 9px 12px; font-size: 11px; }.game-layout { margin-top: 42px; }.game-heading h2 { font-size: 44px; }.board-frame { padding: 5px; }.grid-cell { font-size: clamp(8px, 2.8vw, 15px); }.game-footer { flex-wrap: wrap; gap: 10px; }.site-footer { flex-direction: column; } }

/* Solved words use matching colours in the grid and word list. */
.grid-cell.found-color-0, .word-item.found-color-0 { background: #6ba881; border-color: #5b9c78; }
.grid-cell.found-color-1, .word-item.found-color-1 { background: #d99b50; border-color: #c88738; }
.grid-cell.found-color-2, .word-item.found-color-2 { background: #769ecb; border-color: #5d86b3; }
.grid-cell.found-color-3, .word-item.found-color-3 { background: #c7779b; border-color: #ad5f83; }
.grid-cell.found-color-4, .word-item.found-color-4 { background: #8f9c59; border-color: #748342; }
.grid-cell.found-color-5, .word-item.found-color-5 { background: #bf7b61; border-color: #a8644d; }
.grid-cell.found-color-6, .word-item.found-color-6 { background: #7e82b8; border-color: #65699d; }
.grid-cell.found-color-7, .word-item.found-color-7 { background: #3e9c9c; border-color: #2c8585; }
.word-item.found-color-0, .word-item.found-color-1, .word-item.found-color-2, .word-item.found-color-3, .word-item.found-color-4, .word-item.found-color-5, .word-item.found-color-6, .word-item.found-color-7 { color: #fff; text-decoration: line-through; }

/* Keep the words-to-find list aligned in two clear columns. */
.word-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.word-item { width: 100%; text-align: center; }

.game-actions { display: flex; align-items: center; gap: 15px; }
.game-actions button:disabled { color: #aab7bd; cursor: not-allowed; }
.grid-cell.is-hint { position: relative; z-index: 1; outline: 3px solid #e19a3f; outline-offset: -4px; animation: hint-pulse 1.4s ease-in-out infinite; }
@keyframes hint-pulse { 50% { box-shadow: inset 0 0 0 4px rgba(225, 154, 63, .28); } }
.feedback-question { margin: 22px 0 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.feedback-question > strong { display: block; margin: 0 0 5px; font-family: "DM Sans", system-ui, sans-serif; font-size: 13px; letter-spacing: 0; }
.feedback-question p { margin-bottom: 12px; }
.feedback-actions { display: grid; grid-template-columns: 1fr; gap: 7px; }
.feedback-actions button { padding: 9px 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 700; text-align: left; }
.feedback-actions button:hover, .feedback-actions button.selected { border-color: var(--green); background: #edf5ee; }

.word-entry-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.word-entry-heading label { font-size: 12px; font-weight: 700; }
.word-entry-heading span { color: var(--muted); font-size: 11px; font-weight: 700; }
.word-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.word-input-row { display: flex; align-items: center; gap: 5px; }
.word-input-row input { width: 100%; min-width: 0; padding: 10px 11px; color: var(--ink); border: 1px solid var(--line); outline: 0; text-transform: uppercase; }
.word-input-row input.is-duplicate { border-color: #c56a59; background: #fff6f3; box-shadow: 0 0 0 3px rgba(197,106,89,.1); }
.word-input-row input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,106,88,.1); }
.remove-word { width: 25px; height: 25px; flex: 0 0 25px; padding: 0; color: var(--muted); border: 0; border-radius: 50%; background: transparent; font-size: 19px; line-height: 1; }
.remove-word:not(:disabled):hover { color: #b14f46; background: #f9e9e6; }
.remove-word:disabled { opacity: .3; cursor: not-allowed; }
.add-word-button { margin-top: 12px; padding: 0; color: var(--green); border: 0; background: transparent; font-size: 12px; font-weight: 700; }
.add-word-button:disabled { color: var(--muted); cursor: not-allowed; }
.fit-status { min-height: 35px; margin: 12px 0 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.fit-status.is-good { color: var(--green); }
.fit-status.is-warning { color: #b1643f; }

/* Pastel colours are assigned individually, so every word in a game stays distinct. */
.grid-cell.is-found { color: var(--ink); border-color: rgba(16, 42, 67, .14); background: var(--found-color, #9fc9ad); }
.word-item.is-found { color: var(--ink); border-color: var(--found-color, #9fc9ad); background: var(--found-color, #9fc9ad); }

/* Keep the decorative copy below the grid instead of covering its last row. */
.hero-art { padding: 30px; }
.mini-grid { margin-top: 14px; }
.mini-grid span { padding: 4px 2px; }
.sun-stamp { width: 74px; height: 74px; font-size: 9px; }
.art-label { position: static; margin: 15px 0 0 4px; }

.quick-settings { display: flex; align-items: center; gap: 12px; margin: -10px 0 30px; padding: 12px 16px; border: 1px solid var(--line); background: #f7f8f4; }
.quick-settings-label { flex: 1; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.quick-settings label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.quick-settings select { padding: 8px 28px 8px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; }

@media (max-width: 560px) { .quick-settings { align-items: flex-start; flex-wrap: wrap; margin-top: -5px; }.quick-settings-label { flex-basis: 100%; }.quick-settings label { flex: 1; flex-direction: column; align-items: flex-start; gap: 5px; }.quick-settings select { width: 100%; } }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }.footer-nav a { color: var(--muted); text-decoration: none; }.footer-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.bulk-entry-label { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; color: var(--ink); font-size: 12px; font-weight: 700; }.bulk-entry-label small { color: var(--muted); font-size: 11px; font-weight: 400; }.bulk-word-input { width: 100%; resize: vertical; margin-top: 0; padding: 11px; color: var(--ink); border: 1px solid var(--line); outline: 0; line-height: 1.5; }.bulk-word-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,106,88,.1); }
.duplicate-status { min-height: 17px; margin: 7px 0 0; color: #b1643f; font-size: 11px; line-height: 1.5; }.duplicate-status:not(.is-warning) { display: none; }
.completion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 5px; }.completion-actions .primary-button { margin-top: 0; }
.grid-cell.is-keyboard-selected { outline: 3px solid var(--ink); outline-offset: -4px; background: #fae5a6; }
.info-shell { min-height: 100vh; }.info-page { max-width: 850px; margin: 0 auto; padding: 88px clamp(24px, 8vw, 100px) 110px; }.info-page h1 { max-width: 700px; margin-bottom: 24px; font-size: clamp(48px, 6vw, 76px); }.info-lead { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.75; }.info-content { display: grid; gap: 18px; margin-top: 58px; }.info-card { padding: 28px 30px; background: #f2f6f2; }.info-card h2 { margin-bottom: 13px; font-size: 29px; }.info-card p, .info-card li { color: #496272; font-size: 14px; line-height: 1.75; }.info-card p:last-child, .info-card ul:last-child { margin-bottom: 0; }.info-card ul { margin: 0; padding-left: 20px; }.info-card a, .info-link { color: var(--green); font-weight: 700; }.sitemap-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }.sitemap-list a { display: inline-flex; justify-content: space-between; padding: 13px 15px; color: var(--ink); border: 1px solid var(--line); background: #fff; text-decoration: none; }.sitemap-list a:hover { border-color: var(--green); }.info-updated { color: var(--muted); font-size: 12px; }
.contact-card { max-width: 620px; }.contact-form { display: grid; gap: 16px; margin-top: 20px; }.contact-form label { display: grid; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 700; }.contact-form input, .contact-form textarea { width: 100%; padding: 12px 13px; color: var(--ink); border: 1px solid var(--line); outline: 0; background: #fff; }.contact-form textarea { min-height: 150px; resize: vertical; line-height: 1.55; }.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,106,88,.1); }.contact-form small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }.contact-form .primary-button { justify-self: start; }.contact-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }.contact-status { min-height: 18px; margin: 0; color: var(--green); font-size: 12px; line-height: 1.5; }
.cf-turnstile { min-height: 65px; }
.form-row-first { margin-top: 0; margin-bottom: 26px; }.custom-word-list { min-height: 175px; margin-top: 0 !important; resize: vertical; }
.contact-success { padding: 30px; background: #edf4ed; }.contact-success > span { color: var(--green); font-size: 28px; }.contact-success h2 { margin: 12px 0 8px; font-size: 34px; }.contact-success p { color: var(--muted); font-size: 14px; line-height: 1.6; }.contact-success .text-button { margin-top: 9px; color: var(--green); }
@media (max-width: 560px) { .site-footer { align-items: flex-start; }.footer-nav { justify-content: flex-start; }.info-page { padding-top: 58px; padding-bottom: 75px; }.info-card { padding: 22px; } }

@media print {
  body { background: #fff; }.app-shell { max-width: none; }.site-header, .site-footer, .game-topbar, .game-footer .game-actions, .completion-message, .toast { display: none !important; }.game-section { display: block !important; min-height: 0; padding: 0; background: #fff; }.game-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 25px; max-width: none; margin: 0; }.game-heading { margin-bottom: 16px; }.game-heading h2 { font-size: 38px; }.game-heading p:last-child { margin-top: 8px; }.board-frame { max-width: none; padding: 5px; box-shadow: none; }.grid-cell { font-size: 17px; }.word-list-panel { box-shadow: none; border: 1px solid var(--line); }.game-footer { margin-top: 8px; }.game-footer > span { color: var(--ink); }.word-item.is-found { color: var(--ink); }.game-section::before { display: block; margin-bottom: 20px; color: var(--muted); content: "WordsSearch.com"; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
}

/* Keep the opening message broad and focused; the puzzle is the visual feature. */
.hero { display: block; max-width: none; margin: 0; }.hero-copy, .hero h1, .hero-text { max-width: none; }.hero-art { display: none; }

/* Route switching uses the native hidden attribute; keep display rules from overriding it. */
*[hidden] { display: none !important; }

/* Keep puzzle controls on the play screen, and align the word card with the grid. */
.game-settings { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.game-settings-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.game-settings label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.game-settings select { padding: 7px 24px 7px 9px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 700; }
.game-settings select:disabled { color: var(--muted); background: #f5f6f3; cursor: not-allowed; }
.game-settings.is-locked { opacity: .7; }
.word-list-panel { margin-top: clamp(140px, 14vw, 175px); }
@media (max-width: 850px) { .word-list-panel { margin-top: 0; } }
@media (max-width: 560px) { .game-topbar { flex-wrap: wrap; }.game-settings { order: 3; width: 100%; margin-left: 0; }.game-settings-label { margin-right: auto; }.game-settings label { flex: 1; justify-content: space-between; }.game-settings select { min-width: 0; } }

/* Keep every grid cell square and give the letters a little breathing room. */
.word-grid { aspect-ratio: 1; grid-auto-rows: minmax(0, 1fr); }
.grid-cell { width: 100%; height: 100%; aspect-ratio: auto; padding: .2em; font-size: var(--cell-font-size, clamp(10px, 2vw, 23px)); line-height: 1; }
.word-list-panel.is-large-grid .word-list { grid-template-columns: 1fr; }
