:root {
    --navy: #17263c;
    --blue: #294eda;
    --yellow: #ffce45;
    --muted: #697487;
}
* { box-sizing: border-box; }
body { margin: 0; background: #edf0f5; color: var(--navy); font-family: 'Segoe UI', Arial, sans-serif; }
a { color: inherit; }
.site-shell { max-width: 1000px; margin: auto; padding: 0 32px; }
.site-header { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 23px; letter-spacing: -1px; }
.brand > span:last-child { color: var(--blue); }
.brand-icon { display: grid; place-items: center; width: 34px; height: 39px; color: white; background: var(--blue); font-size: 25px; margin-right: 4px; border-radius: 5px; }
.header-tag { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; color: var(--muted); }
.scoreboard { display: grid; grid-template-columns: repeat(3, 1fr); margin: 12px 0 24px; border: 2px solid var(--navy); border-radius: 8px; background: var(--navy); color: white; }
.scoreboard > div { padding: 17px 25px; border-right: 1px solid #405067; }
.scoreboard > div:last-child { border-right: 0; }
.scoreboard > div > span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #b5c0d2; }
.scoreboard strong { display: block; font-size: 29px; line-height: 1.5; font-weight: 800; color: var(--yellow); }
.scoreboard .score-total { color: #9eaec4; font-size: 18px; }
.scoreboard small { color: white; font-size: 12px; font-weight: 400; }
.scoreboard .score-level strong { color: white; font-size: 24px; line-height: 1.8; }
.game-board { background: white; border: 2px solid var(--navy); border-radius: 9px; box-shadow: 0 5px 0 #17263c; overflow: hidden; }
.selection { text-align: center; padding: 37px 30px 28px; max-width: 490px; margin: auto; }
.selection-number { width: 70px; height: 76px; display: grid; place-items: center; background: var(--blue); color: white; border: 2px solid var(--navy); border-radius: 8px; box-shadow: 4px 4px 0 var(--yellow); font-size: 54px; font-weight: 900; transform: rotate(-7deg); margin: 0 auto 28px; }
.board-label { font-weight: 800; font-size: 10px; letter-spacing: 1.6px; color: var(--blue); }
h1 { font-size: 37px; letter-spacing: -1.2px; font-weight: 850; margin: 12px 0; }
h1:focus { outline: none; }
.selection > p { color: var(--muted); line-height: 1.7; font-size: 14px; }
.level-options { display: flex; gap: 10px; margin: 27px 0 20px; }
.level-button { flex: 1; padding: 12px 10px; background: white; border: 2px solid #d4dae3; border-radius: 5px; color: var(--muted); font-weight: 700; font-size: 13px; }
.level-button.selected { background: #eaf0ff; border-color: var(--blue); color: var(--blue); }
.level-button:hover { border-color: var(--navy); }
.btn-primary { --bs-btn-bg: var(--yellow); --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: #ffdb70; --bs-btn-hover-color: var(--navy); --bs-btn-hover-border-color: var(--navy); --bs-btn-active-bg: #efb821; --bs-btn-active-color: var(--navy); --bs-btn-active-border-color: var(--navy); --bs-btn-disabled-bg: #f4dda0; --bs-btn-disabled-color: #5e6570; --bs-btn-disabled-border-color: #a6aab1; border-width: 2px; border-radius: 5px; padding: 13px 23px; font-size: 13px; font-weight: 850; letter-spacing: .4px; box-shadow: 0 3px 0 var(--navy); }
.btn-primary:active { transform: translateY(2px); box-shadow: none; }
.start-button { width: 100%; display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.start-button span { font-size: 24px; line-height: 1; }
.selection .selection-note { font-size: 11px; margin: 18px 0 0; }
.round-header { padding: 17px 28px; background: #f5f7fc; border-bottom: 1px solid #dfe4ec; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.attempts { color: var(--muted); font-size: 12px; }
.attempts strong { color: var(--blue); font-size: 22px; margin-right: 5px; }
.play-area { padding: 22px 30px 30px; }
.play-area > h1 { font-size: 31px; margin-bottom: 24px; }
.clue-list { list-style: none; padding: 0; margin: 0 0 28px; }
.clue-list li { display: flex; align-items: flex-start; gap: 15px; padding: 16px 0; border-bottom: 1px solid #e4e7ed; }
.clue-list li:first-child { padding-top: 0; }
.clue-number { background: var(--blue); color: white; border-radius: 4px; width: 26px; height: 27px; display: grid; place-items: center; flex-shrink: 0; font-size: 12px; font-weight: 800; }
.clue-list p { font-size: 15px; line-height: 1.65; margin: 0; }
form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 9px; }
.answer-row { display: flex; gap: 10px; }
.form-control { border: 2px solid #cbd2df; border-radius: 5px; padding: 12px; font-size: 14px; min-width: 0; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #294eda18; }
.round-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px; font-size: 11px; color: var(--muted); }
.text-button { border: 0; background: none; text-decoration: underline; color: var(--muted); font-size: 11px; }
.feedback { color: #805900; background: #fff6d9; border-left: 3px solid var(--yellow); padding: 12px; font-size: 13px; margin: 18px 0 0; }
.victory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 30px; padding: 8px 0; }
.portrait:empty { display: none; }
.portrait img { display: block; width: 100%; height: 350px; object-fit: contain; background: #f1f3f7; border: 2px solid var(--navy); border-radius: 6px; }
.result-label { font-size: 12px; font-weight: 850; letter-spacing: 1px; color: #147540; }
.victory-copy h1 { font-size: 32px; line-height: 1.15; margin: 13px 0; }
.victory-copy p { color: var(--muted); font-size: 13px; margin-bottom: 27px; }
.victory-copy .btn { font-size: 11px; padding: 13px 15px; }
.defeat { background: #fff1ed; border-left: 4px solid #c6533d; padding: 18px; margin-bottom: 22px; font-size: 14px; }
.defeat p { margin: 6px 0 0; }
.loading-state { padding: 90px 20px; text-align: center; color: var(--muted); }
footer { text-align: center; font-size: 10px; color: var(--muted); padding: 28px 0; }
.alert { font-size: 13px; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
button:disabled { cursor: wait; }
@media (max-width: 600px) {
    .site-shell { padding: 0 16px; }
    .site-header { height: 80px; }
    .brand { font-size: 19px; gap: 5px; }
    .header-tag { display: none; }
    .scoreboard { margin-top: 0; gap: 0; }
    .scoreboard > div { padding: 13px 12px; }
    .scoreboard > div > span { font-size: 8px; letter-spacing: .5px; }
    .scoreboard strong { font-size: 25px; }
    .scoreboard small { font-size: 9px; }
    .scoreboard .score-level strong { font-size: 20px; }
    .selection { padding: 30px 22px 25px; }
    h1 { font-size: 31px; }
    .round-header { padding: 13px 17px; }
    .round-header .board-label { font-size: 9px; }
    .attempts { font-size: 10px; }
    .play-area { padding: 18px; }
    .play-area > h1 { font-size: 27px; }
    .clue-list p { font-size: 14px; }
    .answer-row { flex-direction: column; }
    .victory { grid-template-columns: 1fr; gap: 20px; }
    .portrait img { height: 290px; }
    .victory-copy { text-align: center; }
    .victory-copy h1 { font-size: 29px; }
    .victory-copy .btn { width: 100%; }
}

/* Menu de jogos: os próximos jogos são apenas opções desabilitadas. */
.games-toggle { display: flex; gap: 9px; align-items: center; background: white; border: 2px solid var(--navy); border-radius: 5px; padding: 8px 14px; color: var(--navy); font-size: 13px; font-weight: 750; }
.games-toggle:hover { background: #eaf0ff; }
.games-menu { border: 2px solid var(--navy); border-radius: 7px; background: white; margin-bottom: 22px; overflow: hidden; }
.games-menu-title { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: white; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 10px 18px; }
.games-menu-title button { background: transparent; color: white; border: 0; font-size: 23px; line-height: 1; }
.game-menu-item { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 15px; text-align: left; background: white; border: 0; border-bottom: 1px solid #e4e7ed; padding: 17px 18px; color: #606d80; font-size: 13px; font-weight: 650; }
.game-menu-item:last-child { border-bottom: 0; }
.game-menu-item small { font-size: 10px; font-weight: 500; white-space: nowrap; }
.game-menu-item.current { background: #edf2ff; color: var(--blue); border-left: 4px solid var(--blue); padding-left: 14px; }
.game-menu-item:disabled { cursor: not-allowed; }
@media (max-width: 400px) {
    .brand { font-size: 16px; }
    .brand-icon { width: 28px; height: 33px; }
    .games-toggle { font-size: 12px; padding: 7px 10px; }
    .game-menu-item { font-size: 12px; }
}

.answer-input { flex: 1; min-width: 0; position: relative; }
.answer-row { align-items: flex-start; }
.saint-suggestions { position: relative; list-style: none; padding: 4px 0; margin: 4px 0 0; background: white; border: 1px solid #bdc8db; border-radius: 5px; box-shadow: 0 5px 14px #17263c20; max-height: 230px; overflow-y: auto; }
.saint-suggestions button { display: block; width: 100%; padding: 11px 13px; text-align: left; font-size: 13px; border: 0; background: white; color: var(--navy); }
.saint-suggestions button:hover, .saint-suggestions button:focus-visible { background: #eaf0ff; color: var(--blue); outline-offset: -3px; }
.suggestion-help { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 600px) { .answer-input, .answer-row > .btn { width: 100%; } }

