* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #0a2540; --blue: #1f6feb; --pale: #e2e2f5; --line: #dbe3ef; --green: #168653; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: #f6f7fb; color: var(--ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); }
.site-header { position: sticky; top: 0; z-index: 10; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px max(20px, calc((100% - 1100px)/2)); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 4px 14px #0a25400c; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.brand img { object-fit: contain; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: .95rem; }
.site-header nav a[aria-current="page"] { color: var(--blue); }
main { width: min(100% - 32px, 1000px); margin: 0 auto; flex: 1; }
.intro { max-width: 760px; margin: 42px auto 26px; text-align: center; }
.eyebrow { color: var(--blue); font-weight: 800; letter-spacing: .12em; font-size: .78rem !important; }
h1 { margin: 8px 0 12px; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.04em; }
.intro > p:last-child { margin: 0 auto; max-width: 660px; color: #4c5b70; line-height: 1.65; font-size: 1.05rem; }
.game-card { padding: clamp(16px, 3vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 35px #0a25400b; }
.game-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.game-toolbar label { display: grid; gap: 7px; color: #4c5b70; font-size: .86rem; font-weight: 700; }
select { min-height: 43px; min-width: 155px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.button { min-height: 43px; padding: 10px 16px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 750; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: #1559c4; }
.button-secondary { margin-top: 16px; width: 100%; color: var(--ink); background: #edf2f8; }
.game-status { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 16px; color: #526176; font-size: .9rem; }
#progresso { color: var(--ink); font-weight: 800; }
#mensagem { text-align: right; }
.puzzle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; align-items: start; gap: 24px; }
.grade { display: grid; grid-template-columns: repeat(var(--grid-size, 10), minmax(0, 1fr)); gap: 3px; width: 100%; padding: 8px; border-radius: 14px; background: #edf3fb; user-select: none; touch-action: manipulation; }
.letra-celula { display: grid; place-items: center; min-width: 0; aspect-ratio: 1; padding: 0; border: 1px solid #d8e2f0; border-radius: 5px; background: #fff; color: #183957; font-size: clamp(.65rem, 1.8vw, 1rem); font-weight: 800; cursor: pointer; }
.letra-celula:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; }
.letra-celula.selecionada { background: #bfdbfe; border-color: #60a5fa; }
.letra-celula.encontrada { color: #075b38; background: #bbf7d0; border-color: #6ee7a0; }
.word-panel { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdff; }
.word-panel h2 { margin: 0 0 12px; font-size: 1.05rem; }
.lista-palavras { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lista-palavras li { padding: 8px 10px; border-radius: 8px; background: #edf2f8; font-weight: 700; letter-spacing: .04em; overflow-wrap: anywhere; }
.lista-palavras li.encontrada { color: var(--green); background: #e1f8eb; text-decoration: line-through; }
.vitoria { margin-top: 18px; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-radius: 12px; background: #e1f8eb; color: #075b38; }
.vitoria[hidden] { display: none; }
.seo-content { max-width: 780px; margin: 42px auto 56px; color: #34445a; line-height: 1.75; }
.seo-content h2 { margin: 28px 0 8px; color: var(--ink); font-size: 1.4rem; }
.seo-content p, .seo-content li { font-size: 1rem; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 24px max(20px, calc((100% - 1000px)/2)); background: #0a2540; color: #eaf1fa; font-size: .85rem; }
.site-footer a { color: #fff; }
.site-footer div { display: flex; gap: 16px; }
@media (max-width: 680px) {
 .site-header { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 16px; }
 .site-header nav { gap: 14px; }
 .intro { margin-top: 30px; }
 .puzzle-layout { grid-template-columns: 1fr; }
 .word-panel { order: 2; }
 .lista-palavras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .game-toolbar label { flex: 1 1 130px; }
 .game-toolbar select { width: 100%; min-width: 0; }
 .game-toolbar .button { flex: 1 1 100%; }
 .game-status { align-items: flex-start; flex-direction: column; }
 #mensagem { text-align: left; }
 .grade { gap: 2px; padding: 5px; }
 .letra-celula { border-radius: 3px; font-size: clamp(.58rem, 3vw, .9rem); }
 .site-footer { flex-direction: column; text-align: center; }
}
