.flip-page {
  --flip-ink: #173b32;
  --flip-soft: #4a665b;
  --flip-paper: #f6f5ed;
  --flip-line: #ced9ce;
  --flip-orange: #d98446;
  margin: 0;
  background: var(--flip-paper);
  color: var(--flip-ink);
  font-family: "DM Sans", system-ui, sans-serif;
}
.flip-page *, .flip-page *::before, .flip-page *::after { box-sizing: border-box; }
.flip-page [hidden] { display: none !important; }
.flip-page button, .flip-page input, .flip-page select { font: inherit; }
.flip-page button { cursor: pointer; }
.flip-page button:disabled { cursor: not-allowed; opacity: .48; }
.flip-page :focus-visible { outline: 3px solid #e3a348; outline-offset: 3px; }
.flip-page h1, .flip-page h2, .flip-page h3, .flip-page p { margin: 0; }
.flip-page h1, .flip-page h2, .flip-page h3 { font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -.045em; }
.flip-page a { color: inherit; text-underline-offset: .2em; }
.flip-page .skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 10000; padding: .7rem 1rem; background: var(--flip-ink); color: #fff; font-weight: 800; }
.flip-page .skip-link:focus { top: 1rem; }
.flip-site { padding: 7.3rem 1.25rem 6rem; }
.flip-wrap { max-width: 1080px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--flip-soft); font-size: .88rem; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.eyebrow { color: #516e5d; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.flip-intro { max-width: 49rem; margin-bottom: 2.2rem; }
.flip-intro .eyebrow { margin-bottom: .65rem; }
.flip-intro h1 { font-size: clamp(2.9rem, 6vw, 5.7rem); line-height: 1.02; }
.flip-intro > p:last-child { max-width: 42rem; margin-top: 1rem; color: var(--flip-soft); font-size: clamp(1.04rem, 1.8vw, 1.22rem); line-height: 1.6; }
.setup-panel { padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid #b8cdbc; background: #fff; box-shadow: .65rem .65rem 0 #e1e9d9; }
.setup-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.setup-heading h2 { margin-top: .3rem; font-size: clamp(1.7rem, 3vw, 2.45rem); }
.setup-counter { color: var(--flip-soft); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.player-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-height: 20rem; overflow-y: auto; padding: .15rem .2rem .2rem 0; }
.player-field { display: grid; grid-template-columns: minmax(0, 1fr) 2.75rem; gap: .3rem .45rem; }
.player-field label { grid-column: 1 / -1; font-size: .8rem; font-weight: 700; }
.player-field input, .setup-target input { width: 100%; min-width: 0; min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid #8fa99b; background: #fff; color: var(--flip-ink); }
.remove-player { min-height: 2.75rem; border: 1px solid var(--flip-line); background: #f5f8f2; color: #8c4e39; font-size: 1.45rem !important; }
.remove-player:hover:not(:disabled) { background: #f8e7df; }
.text-action { min-height: 2.75rem; margin-top: .65rem; padding: .3rem 0; border: 0; background: transparent; color: var(--flip-ink); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.setup-target { display: grid; gap: .45rem; max-width: 34rem; margin-top: 1.25rem; padding-top: 1.2rem; border-top: 1px solid var(--flip-line); }
.setup-target label { font-size: .82rem; font-weight: 700; }
.setup-target > div { display: flex; align-items: center; gap: .65rem; }
.setup-target input { max-width: 8rem; font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.15rem; font-weight: 700; }
.setup-target small { color: var(--flip-soft); font-size: .78rem; line-height: 1.5; }
.setup-feedback { min-height: 1.5rem; margin-top: .5rem !important; color: #984734; font-size: .85rem; font-weight: 700; }
.setup-buttons { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .35rem; }
.primary-button, .secondary-button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: 1rem; padding: .65rem 1.15rem; border: 1px solid var(--flip-ink); font-weight: 800; line-height: 1.15; }
.primary-button { background: var(--flip-ink); color: #fff; }
.primary-button:hover:not(:disabled) { background: #285d4c; }
.secondary-button { background: #fff; color: var(--flip-ink); }
.secondary-button:hover:not(:disabled) { background: #e9f0e7; }
.rules-panel { margin-top: 5rem; padding-top: 2.5rem; border-top: 1px solid var(--flip-line); }
.rules-panel > div:first-child h2 { margin-top: .4rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.rule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.7rem; }
.rule-grid section { padding: 1.4rem; border: 1px solid var(--flip-line); background: #fff; }
.rule-grid section > span { color: #af622f; font-size: .78rem; font-weight: 800; }
.rule-grid h3 { margin: .75rem 0 .65rem; font-size: 1.22rem; }
.rule-grid p { color: var(--flip-soft); font-size: .88rem; line-height: 1.65; }
.source-note { max-width: 46rem; margin-top: 1.5rem !important; color: var(--flip-soft); font-size: .82rem; line-height: 1.65; }
.source-note a { color: var(--flip-ink); font-weight: 700; }
body.game-active { overflow: hidden; }
.game-screen { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: #f2f4e9; color: var(--flip-ink); }
.game-screen[open] { display: block; }
.game-screen::backdrop { background: #0c2b21; }
.game-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; max-width: 720px; height: 100%; margin: 0 auto; background: #f8f8ef; box-shadow: 0 0 0 1px #c6d5c5; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.55rem; padding: max(.55rem, env(safe-area-inset-top)) 1rem .55rem; border-bottom: 1px solid #bdd0c1; background: var(--flip-ink); color: #fff; }
.game-brand { display: inline-flex; align-items: center; gap: .25rem; font-family: "Space Grotesk", system-ui, sans-serif; font-size: .75rem; font-weight: 700; }
.game-brand b { display: grid; width: 1.1rem; height: 1.1rem; place-items: center; border-radius: .2rem; background: #efb64e; color: #173b32; font-size: .7rem; }
.game-top h2 { display: inline; margin-left: .55rem; font-size: 1.12rem; }
.game-top p { margin-top: .12rem; color: #c9ddd0; font-size: .68rem; }
.game-top-actions { display: flex; align-items: center; gap: .35rem; }
.game-top-actions button { min-height: 2.7rem; padding: .4rem .65rem; border: 1px solid #9eb8a4; background: transparent; color: #fff; font-size: .78rem; font-weight: 700; }
#close-game { width: 2.7rem; padding: 0; font-size: 1.4rem !important; line-height: 1; }
.game-content { display: flex; flex-direction: column; gap: .62rem; min-height: 0; padding: .78rem 1rem .65rem; overflow-y: auto; overscroll-behavior: contain; }
.player-switch { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; gap: .55rem; align-items: center; }
.player-switch > button { min-height: 3.2rem; border: 1px solid #a5c3aa; background: #e6f0e1; color: var(--flip-ink); font-size: 1.3rem !important; }
.player-switch > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .5rem; align-items: center; }
.player-switch label { color: var(--flip-soft); font-size: .72rem; font-weight: 700; }
.player-switch select { min-width: 0; min-height: 2rem; padding: .1rem .35rem; border: 0; border-bottom: 2px solid #6d9376; background: transparent; color: var(--flip-ink); font-family: "Space Grotesk", system-ui, sans-serif; font-size: clamp(1rem, 2.5vw, 1.45rem); font-weight: 700; }
.player-switch p { grid-column: 1 / -1; color: var(--flip-soft); font-size: .72rem; text-align: center; }
.live-score { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .8rem; align-items: center; min-height: 4.7rem; padding: .65rem 1rem; border: 1px solid #a6bfa9; background: #e6efe3; }
.live-score > div { display: flex; gap: .45rem; align-items: baseline; }
.live-score > div span { color: var(--flip-soft); font-size: .75rem; font-weight: 700; }
.live-score strong { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 2.5rem; line-height: 1; }
.live-score p { color: var(--flip-soft); font-size: .72rem; line-height: 1.3; }
.live-score .player-state { justify-self: end; padding: .25rem .45rem; border: 1px solid #8bb59a; border-radius: 2rem; color: #215d3e; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.live-score .player-state[data-status="bust"] { border-color: #e0a9a2; background: #fbe7e3; color: #8c332b; }
.live-score .player-state[data-status="flip7"] { border-color: #e5ad59; background: #fff0c8; color: #86510e; }
.card-pick { min-width: 0; }
.card-section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .32rem; }
.card-section-head h3 { font-size: .91rem; }
.card-section-head span { color: var(--flip-soft); font-size: .7rem; font-weight: 700; }
.number-cards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; }
.number-card, .bonus-card { display: grid; min-width: 0; min-height: 3.2rem; place-items: center; padding: .25rem; border: 1px solid #d3ad7b; border-radius: .35rem; background: #fff5e6; color: #724627; font-family: "Space Grotesk", system-ui, sans-serif !important; font-size: 1.35rem !important; font-weight: 700 !important; box-shadow: inset 0 -3px 0 #e7cb9d; }
.number-card:hover:not(:disabled), .bonus-card:hover:not(:disabled) { background: #ffe8c4; }
.number-card[aria-pressed="true"] { border-color: #8a5428; background: #f7be65; color: #4b2e1b; box-shadow: inset 0 -3px 0 #ca8640; }
.bonus-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; }
.bonus-card { min-height: 2.9rem; border-color: #7fa8a3; background: #e9f3f1; color: #1d5558; font-size: 1.05rem !important; box-shadow: inset 0 -3px 0 #b5d6d1; }
.bonus-card[aria-pressed="true"] { border-color: #276a69; background: #74bdb4; color: #103f42; box-shadow: inset 0 -3px 0 #428b83; }
.game-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.game-actions button { min-height: 2.75rem; padding: .35rem .2rem; border: 1px solid #a9bcb0; background: #fff; color: var(--flip-ink); font-size: .74rem; font-weight: 800; }
.game-actions button[aria-pressed="true"] { border-color: #1f6154; background: #d1eee0; }
.game-actions button:hover:not(:disabled) { background: #e9f1e6; }
.game-message { min-height: 1.15rem; color: var(--flip-soft); font-size: .75rem; line-height: 1.3; }
.game-bottom { padding: .5rem 1rem max(.65rem, env(safe-area-inset-bottom)); border-top: 1px solid #bdd0c1; background: #fff; }
.game-bottom .primary-button { width: 100%; min-height: 3rem; }
.small-dialog { width: min(27rem, calc(100vw - 1.5rem)); max-width: none; max-height: min(85dvh, 40rem); padding: 0; overflow-y: auto; border: 2px solid var(--flip-ink); border-radius: .75rem; background: #fff; color: var(--flip-ink); box-shadow: 0 24px 80px #0a241f99; }
.small-dialog::backdrop { background: #0b211dac; }
.dialog-content { padding: 1.35rem; }
.dialog-content h2 { margin: .35rem 0 .7rem; font-size: 1.6rem; }
.dialog-content > p:not(.eyebrow) { color: var(--flip-soft); font-size: .9rem; line-height: 1.5; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; margin-top: 1.4rem; }
.dialog-actions button { min-height: 2.8rem; }
.result-list, .standings-list { display: grid; gap: 0; max-height: 48dvh; margin: .8rem 0 0; padding: 0; overflow-y: auto; list-style: none; }
.result-list li, .standings-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--flip-line); font-size: .9rem; }
.result-list strong, .standings-list strong { font-family: "Space Grotesk", system-ui, sans-serif; white-space: nowrap; }
.dialog-note { margin-top: 1rem !important; }
@media (max-width: 760px) {
  .rule-grid { grid-template-columns: 1fr; }
  .rule-grid section { padding: 1.15rem; }
  .live-score { grid-template-columns: 1fr auto; }
  .live-score > p:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .flip-site { padding: 5rem .8rem 4rem; }
  .back-link { margin-bottom: 1.2rem; }
  .flip-intro { margin-bottom: 1.5rem; }
  .flip-intro h1 { font-size: clamp(2.6rem, 11vw, 3.7rem); }
  .setup-panel { padding: 1.1rem; box-shadow: .4rem .4rem 0 #e1e9d9; }
  .player-fields { grid-template-columns: 1fr; }
  .setup-buttons { display: grid; }
  .rules-panel { margin-top: 3.5rem; }
  .game-content { gap: .48rem; padding: .58rem .65rem; }
  .game-top { min-height: 4.05rem; padding-inline: .7rem; }
  .game-top-actions button { min-height: 2.55rem; }
  .number-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .28rem; }
  .number-card { min-height: clamp(2.55rem, 6dvh, 3rem); }
  .bonus-cards { gap: .28rem; }
  .bonus-card { min-height: clamp(2.5rem, 5.5dvh, 2.85rem); font-size: .9rem !important; }
  .live-score { min-height: 4.2rem; padding: .48rem .7rem; }
  .live-score strong { font-size: 2.15rem; }
  .game-bottom { padding-inline: .65rem; }
}
@media (max-width: 350px) {
  .bonus-card { font-size: .78rem !important; }
  .game-actions button { font-size: .68rem; }
}
@media (max-height: 690px) {
  .game-content { gap: .34rem; }
  .game-top { min-height: 3.75rem; }
  .player-switch > button { min-height: 2.75rem; }
  .live-score { min-height: 3.65rem; }
  .number-card { min-height: 2.35rem; }
  .bonus-card { min-height: 2.3rem; }
  .game-actions button { min-height: 2.4rem; }
  .game-bottom .primary-button { min-height: 2.7rem; }
}

/* Spielansicht: fester Bildschirm, scrollbare Liste nur bei großen Gruppen */
.rules-lead { max-width: 48rem; margin-top: 1rem !important; color: var(--flip-soft); font-size: 1rem; line-height: 1.7; }
.rules-panel > h2 { max-width: 50rem; margin-top: .4rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.13; }
.rules-article { display: grid; gap: 2.6rem; max-width: 48rem; margin-top: 3.5rem; }
.rules-article h2 { margin-bottom: .9rem; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; }
.rules-article p { margin-top: .75rem; color: var(--flip-soft); font-size: .96rem; line-height: 1.75; }
.example-box { margin: 1.35rem 0; padding: 1.1rem 1.3rem; border-left: 4px solid var(--flip-orange); background: #fff; }
.example-box > strong { font-family: "Space Grotesk", system-ui, sans-serif; }
.example-box p { margin-top: .3rem; }
.faq-list { border-top: 1px solid var(--flip-line); }
.faq-list details { border-bottom: 1px solid var(--flip-line); }
.faq-list summary { padding: 1rem .2rem; color: var(--flip-ink); font-weight: 800; cursor: pointer; }
.faq-list details p { margin: 0 0 1rem; }
.game-screen { background: #e7eee5; }
.game-shell { max-width: 790px; }
.game-top { min-height: 5.2rem; padding-inline: clamp(.9rem, 3vw, 1.6rem); }
.game-top h2 { display: block; margin: .22rem 0 0; font-size: 1.35rem; }
.game-top p { font-size: .78rem; }
#close-game { flex: 0 0 2.8rem; min-height: 2.8rem; border: 1px solid #a9c5b2; background: transparent; color: white; }
.game-content { display: flex; flex-direction: column; gap: .8rem; min-height: 0; padding: 1.4rem clamp(.7rem, 3vw, 1.6rem) .4rem; overflow: hidden; }
.scoreboard-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.scoreboard-heading h3 { margin-top: .2rem; font-size: clamp(1.45rem, 3vw, 1.9rem); }
.scoreboard-heading > p { max-width: 16rem; color: var(--flip-soft); font-size: .78rem; line-height: 1.45; text-align: right; }
.scoreboard-labels, .score-row { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem 7rem; align-items: center; gap: .5rem; }
.scoreboard-labels { padding: .2rem .8rem 0; color: var(--flip-soft); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.scoreboard-labels span:nth-child(2), .scoreboard-labels span:nth-child(3) { text-align: center; }
.scoreboard { display: grid; align-content: start; gap: .52rem; min-height: 0; padding: .1rem .1rem .4rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.score-row { min-height: 4.75rem; padding: .5rem .7rem; border: 1px solid #cbdccb; border-radius: .55rem; background: #fff; box-shadow: 0 2px 0 #d8e5d6; }
.score-name { min-width: 0; overflow: hidden; color: var(--flip-ink); font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.1rem; text-overflow: ellipsis; white-space: nowrap; }
.score-total { color: var(--flip-ink); font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.5rem; font-weight: 700; text-align: center; }
.round-value { display: flex; justify-content: center; align-items: center; gap: .3rem; min-height: 3.35rem; padding: .3rem .45rem; border: 2px solid #a95c2c; border-radius: .45rem; background: #fbd7a5; color: #4f2c18; font-family: "Space Grotesk", system-ui, sans-serif !important; font-size: 1.65rem !important; font-weight: 800 !important; }
.round-value:hover:not(:disabled) { background: #f8c57c; }
.round-value[data-bust="true"] { border-color: #beaea7; background: #f1e9e5; color: #744e44; }
.round-value-icon { align-self: flex-start; color: #70431e; font-family: "DM Sans", system-ui, sans-serif; font-size: .72rem; }
.game-message { min-height: 1.35rem; margin-top: auto !important; padding: .2rem .15rem; }
.game-bottom { display: flex; gap: .6rem; align-items: center; padding: .75rem clamp(.7rem, 3vw, 1.6rem) max(.75rem, env(safe-area-inset-bottom)); }
.game-bottom .primary-button { flex: 1; width: auto; min-height: 3.5rem; border-radius: .35rem; }
.undo-round { flex: 0 0 auto; min-height: 3.5rem; padding: .5rem .8rem; border: 1px solid var(--flip-line); border-radius: .35rem; background: #fff; color: var(--flip-ink); font-size: .82rem !important; font-weight: 800 !important; }
.undo-round:disabled { opacity: .55; }

/* Karten als Bottom Sheet über der Spielansicht */
.card-sheet { position: fixed; inset: auto 0 0; width: min(790px, 100vw); max-width: none; height: min(88dvh, 780px); max-height: none; margin: 0 auto; padding: 0; overflow: hidden; border: 0; border-radius: 1.15rem 1.15rem 0 0; background: #f8f8ef; color: var(--flip-ink); box-shadow: 0 -18px 80px #09211966; }
.card-sheet[open] { display: block; animation: sheet-rise .22s ease-out both; }
.card-sheet::backdrop { background: #0b241cb8; }
.sheet-content { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100%; }
.sheet-handle { width: 2.7rem; height: .28rem; margin: .55rem auto .2rem; border-radius: 1rem; background: #aabbb0; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem 1.3rem .9rem; border-bottom: 1px solid var(--flip-line); }
.sheet-top h2 { margin-top: .2rem; font-size: clamp(1.25rem, 4vw, 1.8rem); }
#close-sheet { flex: 0 0 2.7rem; min-height: 2.7rem; border: 1px solid var(--flip-line); border-radius: 50%; background: #fff; color: var(--flip-ink); font-size: 1.4rem !important; }
.sheet-scroll { display: grid; align-content: start; gap: 1rem; min-height: 0; padding: 1rem 1.3rem 1.3rem; overflow-y: auto; overscroll-behavior: contain; }
.sheet-score { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1px solid #aac9ab; border-radius: .55rem; background: #e7f0e4; }
.sheet-score > div { display: grid; gap: .1rem; }
.sheet-score span { color: var(--flip-soft); font-size: .72rem; font-weight: 800; }
.sheet-score strong { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 2.3rem; line-height: 1; }
.sheet-score p { max-width: 14rem; color: var(--flip-soft); font-size: .77rem; line-height: 1.4; text-align: right; }
.card-pick { margin-top: .2rem; }
.card-section-head { margin-bottom: .5rem; }
.card-section-head h3 { font-size: 1rem; }
.number-cards { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.number-card { min-height: 3.55rem; }
.bonus-card { min-height: 3.2rem; }
.bust-button { justify-self: start; min-height: 2.65rem; padding: .4rem .75rem; border: 1px solid #bf9489; border-radius: .35rem; background: #fff9f5; color: #874635; font-size: .82rem !important; font-weight: 800 !important; }
.bust-button:hover:not(:disabled) { background: #fbe5df; }
.sheet-help { color: var(--flip-soft); font-size: .75rem; line-height: 1.5; }
.sheet-bottom { padding: .6rem 1.3rem max(.75rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--flip-line); background: #fff; }
.sheet-bottom .primary-button { width: 100%; min-height: 3.2rem; border-radius: .35rem; }
@keyframes sheet-rise { from { transform: translateY(2.5rem); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .card-sheet[open] { animation: none; } }
@media (max-width: 560px) {
  .scoreboard-heading { display: block; }
  .scoreboard-heading > p { max-width: none; margin-top: .3rem; text-align: left; }
  .game-top { min-height: 4.35rem; }
  .game-content { gap: .55rem; padding-top: .85rem; }
  .scoreboard-labels, .score-row { grid-template-columns: minmax(0, 1fr) 4.4rem 6.2rem; gap: .2rem; }
  .scoreboard-labels { padding-inline: .45rem; font-size: .6rem; letter-spacing: .04em; }
  .score-row { min-height: 4.2rem; padding: .38rem .45rem; }
  .score-name { font-size: .99rem; }
  .score-total { font-size: 1.3rem; }
  .round-value { min-height: 3.2rem; font-size: 1.48rem !important; }
  .game-bottom .primary-button { min-height: 3.2rem; }
  .undo-round { min-height: 3.2rem; padding-inline: .55rem; font-size: .72rem !important; }
  .card-sheet { height: min(90dvh, 720px); }
  .sheet-top { padding: .55rem .85rem .75rem; }
  .sheet-scroll { gap: .8rem; padding: .8rem .85rem 1rem; }
  .sheet-bottom { padding-inline: .85rem; }
  .number-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .number-card { min-height: 3.05rem; }
  .bonus-card { min-height: 2.9rem; }
}
@media (max-width: 350px) {
  .scoreboard-labels, .score-row { grid-template-columns: minmax(0, 1fr) 3.7rem 5.4rem; }
  .score-name { font-size: .9rem; }
  .round-value { font-size: 1.3rem !important; }
}
