:root {
    --navy: #17263c;
    --blue: #294eda;
    --yellow: #ffce45;
    --muted: #697487;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button { -webkit-appearance: none; appearance: none; touch-action: manipulation; }
button, input { font-family: inherit; }
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 { position: relative; z-index: 40; height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { min-width: 0; white-space: nowrap; 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 { flex-shrink: 0; 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, minmax(0, 1fr)); margin: 12px 0 24px; border: 2px solid var(--navy); border-radius: 8px; background: var(--navy); color: white; }
.scoreboard > div { min-width: 0; 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; min-width: 0; 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 { scroll-margin-block: 20px; 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 { min-width: 0; 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%; } }


.game-menu-item { text-decoration: none; }
.music-stages { display: flex; gap: 8px; margin: 22px 0; }
.music-stages span { flex: 1; text-align: center; padding: 12px 5px; border: 2px solid #d4dae3; border-radius: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.music-stages .current { background: #eaf0ff; border-color: var(--blue); color: var(--blue); }
.music-result { text-align: center; margin: 15px 0 25px; }
.music-result p { color: var(--muted); }
.music-youtube { display: block; width: 100%; min-height: 220px; aspect-ratio: 16 / 9; border: 0; margin: 16px 0; }

.music-lyrics p { white-space: pre-line; }


/* Página inicial: seleção dos jogos disponíveis. */
.welcome { background: var(--navy); color: white; border-radius: 9px; padding: 38px 40px; margin: 12px 0 32px; border-bottom: 6px solid var(--yellow); }
.welcome-label { font-size: 11px; font-weight: 800; letter-spacing: 1.3px; color: #c3cee1; }
.welcome h1 { font-size: clamp(32px, 5vw, 49px); line-height: 1.13; margin: 17px 0; }
.welcome h1 span { color: var(--yellow); }
.welcome p { color: #c3cee1; max-width: 470px; font-size: 15px; line-height: 1.7; margin-bottom: 0; }
.catalog-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.catalog-heading h2 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.5px; }
.catalog-heading > span { color: var(--muted); font-size: 12px; }
.available-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-choice { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--navy); background: white; border: 2px solid var(--navy); border-radius: 8px; padding: 26px; box-shadow: 0 4px 0 var(--navy); transition: transform .15s, box-shadow .15s; }
@media (hover: hover) and (pointer: fine) { .game-choice:hover { color: var(--navy); transform: translateY(-3px); box-shadow: 0 7px 0 var(--navy); } }
.choice-symbol { display: grid; place-items: center; width: 48px; height: 48px; background: var(--blue); color: white; font-size: 34px; font-weight: 900; border-radius: 6px; margin-bottom: 20px; }
.music-choice .choice-symbol { background: var(--yellow); color: var(--navy); }
.game-choice h3 { font-size: 25px; font-weight: 800; letter-spacing: -.7px; margin: 0 0 10px; }
.game-choice p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 26px; }
.choice-action { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: auto; padding-top: 15px; border-top: 1px solid #dfe4ec; color: var(--blue); font-size: 13px; font-weight: 850; }
.choice-action > span { font-size: 24px; line-height: 1; }
.upcoming-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 25px; }
.upcoming-game { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid #cdd4df; }
.upcoming-game h3 { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0; }
.upcoming-game > span { flex-shrink: 0; font-size: 10px; font-weight: 700; color: var(--muted); background: #e0e5ed; border-radius: 4px; padding: 5px 7px; }
@media (max-width: 600px) {
    .welcome { padding: 28px 23px; margin-top: 0; }
    .welcome p { font-size: 14px; }
    .catalog-heading > span { display: none; }
    .available-games, .upcoming-games { grid-template-columns: 1fr; gap: 18px; }
    .game-choice { padding: 23px; }
    .upcoming-games { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .game-choice { transition: none; } }

.music-clue-content { min-width: 0; }
.music-clue-type { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 5px; }


/* Memória: a imagem define o tamanho da carta, inclusive no Safari. */
.memory-choice { text-align: left; font: inherit; cursor: pointer; width: 100%; }
.memory-choice h2 { font-size: 1.5rem; }
.memory-board { padding: 24px; text-align: center; }
.memory-heading h1 { font-size: clamp(1.4rem,4vw,2rem); margin: 8px 0; }
.memory-status { min-height: 3em; margin: 12px 0; }
.memory-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0 auto 24px; max-width: 780px; align-items: start; }
.memory-card { position: relative; display: block; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 12px; background: #fff6e2; color: var(--navy); cursor: pointer; transition: transform .15s; -webkit-text-fill-color: currentColor; }
.memory-card-art { display: block; width: 100%; height: auto; border-radius: inherit; pointer-events: none; user-select: none; -webkit-user-select: none; }
.memory-content { position: absolute; inset: 17%; display: flex; align-items: center; justify-content: center; min-width: 0; pointer-events: none; }
.memory-card:focus-visible { outline: 4px solid var(--blue); outline-offset: 2px; }
.memory-card:disabled { opacity: 1; cursor: default; }
.memory-back { font-size: clamp(1.8rem,5vw,3rem); color: var(--blue); line-height: 1.2; }
.memory-back small { display: block; margin-top: 4px; font-size: .65rem; letter-spacing: .06em; }
.memory-text { font-size: clamp(.8rem,1.6vw,1rem); font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.memory-card.matched { outline: 3px solid #21864a; outline-offset: -4px; }
.memory-check { position: absolute; top: 10%; right: 12%; color: #18713a; font-weight: 900; pointer-events: none; }
.memory-finish { margin: 20px 0; }
.scoreboard .btn { color: #fff; border: 1px solid #fff; background: transparent; white-space: normal; }
@media (max-width: 600px) {
    .memory-board { padding: 18px 10px; }
    .memory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .memory-text { font-size: clamp(.8125rem,3.6vw,1rem); }
    .memory-status { font-size: 14px; line-height: 1.5; }
    .scoreboard .btn { min-height: 44px; padding: 6px; font-size: 12px; line-height: 1.25; }
}
@media (hover: hover) and (pointer: fine) { .memory-card:not(:disabled):hover { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .memory-card { transition: none; } }

/* Navegação lateral e desafios diários. */
.app-layout { padding-right: 0; min-height: 100vh; min-height: 100dvh; }
.app-layout.sidebar-open { padding-right: 272px; }
.site-shell { width: 100%; max-width: 1100px; }
.game-sidebar { position: fixed; inset: 0 0 0 auto; width: 272px; z-index: 30; background: var(--blue); color: white; padding: 38px 20px 24px; visibility: hidden; transform: translateX(100%); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior-y: contain; padding-bottom: max(24px, env(safe-area-inset-bottom)); border-left: 3px solid #203da8; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 850; letter-spacing: -.3px; margin-bottom: 30px; }
.sidebar-label { display: block; font-size: 10px; font-weight: 750; letter-spacing: 1.2px; color: #dce4ff; margin: 28px 12px 12px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; padding: 14px 12px; margin: 6px 0; border-radius: 6px; font-size: 14px; font-weight: 650; }
.sidebar-link > span { width: 23px; text-align: center; font-size: 25px; line-height: 1; }
.sidebar-link:hover { background: #ffffff18; color: white; }
.sidebar-link.current { background: white; color: var(--blue); box-shadow: 0 3px 0 #17329c; }
.sidebar-daily { display: grid; grid-template-columns: 26px 1fr; gap: 6px 9px; margin-top: 35px; padding: 18px 14px; border: 1px solid #ffffff70; border-radius: 7px; color: white; text-decoration: none; }
.sidebar-daily > span { color: var(--yellow); font-size: 24px; }
.sidebar-daily strong { font-size: 15px; align-self: center; }
.sidebar-daily small { grid-column: 2; color: #dce4ff; line-height: 1.6; font-size: 12px; }
.sidebar-daily:hover { background: #ffffff18; color: white; }
.sidebar-note { margin: auto 12px 0; padding-top: 38px; line-height: 1.6; color: #dce4ff; font-size: 12px; }
.game-sidebar a:focus-visible { outline-color: var(--yellow); }
.sidebar-open .game-sidebar { visibility: visible; transform: none; }
.sidebar-close, .menu-backdrop { display: none; }
.header-menu { flex-shrink: 0; background: var(--yellow); box-shadow: 0 3px 0 var(--navy); }
.header-menu:hover { background: #ffdb70; }
.skip-link { position: fixed; top: -80px; left: 16px; padding: 12px; background: white; z-index: 100; }
.skip-link:focus { top: 12px; }
#conteudo:focus { outline: none; }
.music-clue-content { width: 100%; overflow-wrap: anywhere; }
.clue-list .clue-answer { margin-top: 12px; padding: 8px 12px; border-left: 3px solid #b24d32; background: #fff3ee; color: #723b2c; font-size: 13px; line-height: 1.6; }
.clue-answer > span { margin-right: 5px; font-weight: 900; }
.clue-answer small { display: block; font-size: 11px; }
.clue-list .clue-answer.correct { background: #edf9ef; border-color: #21864a; color: #196333; }
.daily-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 20px 24px; background: #fff8df; border: 1px solid #e6cf7b; border-left: 5px solid var(--yellow); border-radius: 7px; margin: 12px 0 24px; scroll-margin-top: 20px; }
.daily-panel > div { flex: 1 1 250px; min-width: 0; }
.daily-panel h2 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; margin: 6px 0; }
.daily-panel p { font-size: 12px; line-height: 1.6; margin: 0; color: #635a3d; }
.daily-panel small { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; }
.daily-button { background: var(--navy); color: white; border: 2px solid var(--navy); border-radius: 5px; padding: 12px 16px; font-size: 12px; font-weight: 800; }
.daily-button:hover { background: #2b405e; }
.daily-button:disabled { opacity: .55; cursor: default; }
.daily-button span { margin-left: 12px; }
.daily-catalog { margin-top: 40px; scroll-margin-top: 24px; }
.daily-catalog > p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.daily-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.daily-links a { display: flex; flex-direction: column; text-decoration: none; background: var(--navy); color: white; border-radius: 7px; padding: 20px 16px; gap: 10px; }
.daily-links a > span { font-size: 28px; color: var(--yellow); }
.daily-links strong { font-size: 14px; }
.daily-links small { color: var(--yellow); font-size: 11px; margin-top: auto; }
.daily-links a:hover { background: #2b405e; }
@media (max-width: 1100px) { .daily-links { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) {
    .app-layout, .app-layout.sidebar-open { padding-right: 0; }
    .game-sidebar { visibility: hidden; transform: translateX(100%); top: 100px; width: min(310px, 87vw); padding: 26px 20px; }
    .sidebar-open .game-sidebar { visibility: visible; transform: none; }
    .menu-backdrop { display: block; position: fixed; inset: 100px 0 0; z-index: 25; border: 0; background: #17263c85; }
    .sidebar-close { display: block; background: transparent; color: white; border: 0; font-size: 28px; width: 40px; height: 40px; }
    .sidebar-close:focus-visible { outline-color: var(--yellow); }
}
@media (max-width: 600px) {
    .daily-panel { padding: 17px; gap: 14px; }
    .daily-button { width: 100%; }
    .daily-panel h2 { font-size: 18px; }
    .daily-catalog .catalog-heading > span { display: block; font-size: 11px; }
    .daily-catalog .catalog-heading { flex-direction: column; gap: 6px; }
}

@media (max-width: 600px) { .game-sidebar, .menu-backdrop { top: 80px; } }

/* Controles móveis: evitar zoom de foco no iOS e manter alvos confortáveis. */
@media (max-width: 600px) {
    .form-control { font-size: 16px; min-height: 48px; }
    .games-toggle, .level-button, .text-button, .saint-suggestions button { min-height: 44px; }
    .text-button { padding: 8px 4px; }
    .round-bottom { flex-wrap: wrap; }
    .round-header { flex-wrap: wrap; row-gap: 6px; }
    .round-header .attempts { margin-left: auto; }
    .scoreboard > div { padding: 12px 9px; }
    .daily-links { grid-template-columns: 1fr; }
    .game-sidebar { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
    .site-shell { padding-left: 12px; padding-right: 12px; }
    .site-header { gap: 8px; }
    .selection { padding-left: 16px; padding-right: 16px; }
    .play-area { padding: 16px 12px; }
    .scoreboard .score-level strong { font-size: 18px; }
}
/* Movimentos curtos e feedback de toque, sem depender da resposta da API. */
button, .btn, .sidebar-link, .daily-links a {
    transition: background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .1s ease;
}
button:not(:disabled):active { transform: translateY(1px); }
.memory-card:not(:disabled):active { transform: scale(.97); }
.btn-primary:not(:disabled):active, .header-menu:not(:disabled):active { transform: translateY(2px); box-shadow: none; }
.games-toggle > span { display: inline-block; width: 1em; text-align: center; }
.game-sidebar { transition: transform .22s cubic-bezier(.2,.7,.3,1), visibility 0s linear .22s; }
.sidebar-open .game-sidebar { transition-delay: 0s; }
.menu-backdrop { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
.sidebar-open .menu-backdrop { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu-backdrop:not(:disabled):active { transform: none; }
.game-board, .welcome { animation: entrar-painel .18s ease-out; }
.memory-text { animation: revelar-texto .16s ease-out; }
.feedback { animation: entrar-painel .15s ease-out; }
@keyframes entrar-painel { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes revelar-texto { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) { .app-layout { transition: padding-right .22s cubic-bezier(.2,.7,.3,1); } }
@media (prefers-reduced-motion: reduce) {
    button, .btn, .sidebar-link, .daily-links a, .app-layout, .game-sidebar, .menu-backdrop, .game-choice { transition: none; }
    .game-board, .welcome, .memory-text, .feedback { animation: none; }
    button:not(:disabled):active, .btn-primary:not(:disabled):active, .memory-card:not(:disabled):active { transform: none; }
}