:root {
  --paper: #f7f5ef;
  --ink: #263e36;
  --muted: #7c8176;
  --green: #244d43;
  --green-soft: #e9eee5;
  --line: #e4e5dc;
  --orange: #c16b49;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #111c17;
  --ink: #e5ecdf;
  --muted: #abb9a9;
  --green: #b2d1b4;
  --green-soft: #2d4233;
  --line: #3b4b3e;
  --orange: #e8ac8d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }
a { color: inherit; }
button { color: inherit; }
button, input, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid #bc8c51; outline-offset: 4px; }
.site-header, main, .site-footer { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.site-header { height: 108px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 29px; font-weight: 650; letter-spacing: -1.4px; line-height: 1.1; }
.brand-sub { display: block; font-size: 8px; letter-spacing: 2px; font-weight: 600; margin-top: 7px; }
nav { display: flex; align-items: center; gap: 30px; }
.local-badge { color: #6f796d; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.local-badge > span { width: 6px; height: 6px; background: #698371; border-radius: 50%; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; background: none; border-radius: 9px; padding: 12px 18px; font-size: 13px; font-weight: 600; min-height: 44px; text-decoration: none; transition: background .15s, transform .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover:not(:disabled) { background: #173d33; }
.button-secondary { border-color: var(--line); background: #fffefa; }
.button-secondary:hover:not(:disabled) { background: var(--green-soft); }
.button-quiet { padding: 10px 3px; color: #5d695f; }
.button-quiet > span { border: 1px solid #a1a99c; border-radius: 50%; width: 19px; height: 19px; display: grid; place-items: center; font-size: 11px; }
.button-danger { color: #a14635; border-color: #e5c8be; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; padding: 45px 0 31px; gap: 24px; }
.eyebrow { color: #878778; letter-spacing: 2.1px; font-size: 10px; font-weight: 650; text-transform: uppercase; margin: 0 0 14px; }
h1 { font: 400 clamp(36px, 4vw, 49px)/1.13 var(--serif); letter-spacing: -1.6px; margin: 0; }
h1 em { font-weight: 400; color: #6d8674; }
.intro p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 14px 0 0; }
.edition { color: #7e8375; font-size: 11px; padding-bottom: 4px; display: flex; gap: 9px; align-items: center; white-space: nowrap; }
.edition svg { width: 26px; height: 26px; }
.setup-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 25px; align-items: stretch; }
.panel { min-width: 0; background: #fffefa; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 4px 12px #2b362502; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
h2 { font: 400 26px/1.2 var(--serif); letter-spacing: -.6px; margin: 0; }
.step { flex-shrink: 0; border: 1px solid var(--line); color: #8b8d7f; font-size: 10px; padding: 5px 8px; border-radius: 5px; }
.field-heading { font-size: 12px; font-weight: 600; margin: 0 0 10px; display: block; }
.segmented { display: flex; gap: 5px; padding: 5px; background: #f1f2eb; border-radius: 10px; }
.segmented button { flex: 1; padding: 10px 7px; border: 1px solid transparent; background: none; border-radius: 7px; font-size: 13px; min-height: 41px; }
.segmented button[aria-pressed="true"] { background: #fffefa; border-color: #e3e4db; box-shadow: 0 2px 4px #263e3608; color: var(--green); font-weight: 650; }
.setup-names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.person-field > span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 7px; }
.name-input { position: relative; }
.name-input .avatar { position: absolute; left: 11px; top: 10px; width: 27px; height: 27px; font-size: 11px; }
input, select { color: var(--ink); border: 1px solid #dedfd5; border-radius: 8px; background: #fffefa; padding: 12px; min-height: 46px; max-width: 100%; }
input::placeholder { color: #a0a292; }
.name-input input { width: 100%; padding-left: 48px; font-size: 13px; }
.avatar { width: 33px; height: 33px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; background: var(--avatar-bg, #e8ece0); color: var(--avatar-ink, #52694b); font-size: 12px; font-weight: 650; }
.person-0 { --avatar-bg: #e7ecdf; --avatar-ink: #546b46; --player-color: #70845d; }
.person-1 { --avatar-bg: #f4e5dc; --avatar-ink: #b77859; --player-color: #c58a68; }
.person-2 { --avatar-bg: #e3e9ed; --avatar-ink: #668293; --player-color: #7c9aaa; }
.person-3 { --avatar-bg: #eee4ec; --avatar-ink: #997b94; --player-color: #b08daa; }
.setup-options { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 21px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.setup-options select { width: 100%; font-size: 12px; }
.hint { font-size: 11px; color: var(--muted); line-height: 1.65; margin: 11px 0 0; }
.setup-submit { width: 100%; margin-top: 23px; justify-content: space-between; padding-inline: 20px; }
.inline-error { color: #a04432; font-size: 12px; line-height: 1.6; margin-top: 10px; }
.inline-error:empty { display: none; }
.art-panel { border-radius: 16px; position: relative; overflow: hidden; background: #244d43; color: #fcf6e8; padding: 30px 34px; min-height: 415px; display: flex; flex-direction: column; }
.art-panel::before { content: ''; position: absolute; inset: 0; opacity: .13; background-image: radial-gradient(#c9d8bd .75px, transparent .75px); background-size: 16px 16px; pointer-events: none; }
.art-top { display: flex; justify-content: space-between; align-items: center; color: #d1d8bc; font-size: 9px; letter-spacing: 2px; z-index: 1; }
.art-top span:last-child { border: 1px solid #ffffff35; border-radius: 50%; width: 27px; height: 27px; display: grid; place-items: center; letter-spacing: 0; }
.tile-art { width: 100%; height: 245px; flex: 1; min-height: 190px; position: relative; }
.art-panel h2 { font-size: 34px; line-height: 1.18; position: relative; letter-spacing: -.8px; }
.art-panel p { position: relative; color: #c0ccbb; font-size: 11px; line-height: 1.8; max-width: 280px; margin-bottom: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 33px 0 40px; }
.feature { display: flex; gap: 13px; align-items: flex-start; }
.feature-icon { background: #eeefe6; min-width: 35px; height: 35px; border-radius: 9px; display: grid; place-items: center; }
.feature-icon svg { width: 18px; height: 18px; }
.feature h3 { font-size: 12px; font-weight: 600; margin: 0 0 5px; }
.feature p { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 23px 0; gap: 16px; font-size: 10px; color: #959789; }
.footer-dot { padding-inline: 10px; }
.intro-game { padding-top: 32px; }
.intro-game h1 { font-size: 38px; }
.game-tools { display: flex; gap: 16px; align-items: center; }
.round-chip { font-size: 11px; background: #eceee5; border: 1px solid #dce1d3; border-radius: 20px; padding: 7px 13px; white-space: nowrap; }
.score-grid { display: grid; grid-template-columns: repeat(var(--players), minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.score-card { border: 1px solid var(--line); background: #fffefa; border-radius: 12px; padding: 18px 20px 14px; position: relative; overflow: hidden; }
.score-card.active { border: 1.5px solid #617e61; background: #f0f3e9; padding: 17.5px 19.5px 13.5px; }
.score-card-top { display: flex; align-items: center; gap: 10px; }
.player-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.turn-marker { font-size: 8px; color: #61775d; letter-spacing: .6px; display: block; margin-top: 3px; text-transform: uppercase; }
.score-value { font: 400 43px var(--serif); letter-spacing: -1.5px; margin-top: 13px; }
.score-value small { font: 10px 'Avenir Next', sans-serif; color: #8d9183; letter-spacing: 0; margin-left: 8px; }
.score-bottom { font-size: 10px; color: #858a7a; display: flex; justify-content: space-between; margin-top: 10px; gap: 6px; }
.score-progress { height: 3px; background: #e9eae1; margin-top: 13px; border-radius: 2px; overflow: hidden; }
.score-progress > span { height: 100%; display: block; background: var(--player-color); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(285px, 1fr); gap: 24px; margin-bottom: 34px; align-items: start; }
.turn-panel .panel-heading { margin-bottom: 20px; }
.heading-with-avatar { display: flex; gap: 12px; align-items: center; min-width: 0; }
.heading-with-avatar > div { min-width: 0; }
.heading-with-avatar h2 { font-size: 24px; overflow-wrap: anywhere; }
.heading-with-avatar p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.turn-type { margin-bottom: 23px; }
.tile-value-section { margin-bottom: 22px; }
.tile-value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile-value-option { min-height: 48px; border: 1px solid var(--line); border-radius: 9px; background: #fffefa; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tile-value-option:hover { background: var(--green-soft); }
.tile-value-option[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; box-shadow: inset 0 0 0 1px var(--green); }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.section-label .field-heading { margin-bottom: 0; }
.section-label small { font-size: 10px; color: #919485; }
.bonus-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.bonus-option { min-height: 92px; padding: 10px 2px; border-radius: 8px; border: 1px solid var(--line); background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bonus-option svg { width: 25px; height: 24px; stroke: #8a937f; }
.bonus-option .bonus-name { font-size: 9px; white-space: nowrap; }
.bonus-option b { font-size: 12px; font-weight: 600; color: #768b66; }
.bonus-option[aria-pressed="true"] { background: var(--green-soft); border-color: #8da383; }
.draw-section { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-block: 24px; }
.draw-section .field-heading { margin-bottom: 4px; }
.draw-section p { color: var(--muted); font-size: 10px; margin: 0; line-height: 1.6; }
.draws { padding: 4px; min-width: 182px; }
.draws button { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.score-total { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 23px; gap: 15px; }
#turn-error { margin: -13px 0 23px; }
.score-total-label { font-size: 10px; color: var(--muted); }
.score-total output { display: block; font: 34px var(--serif); margin-top: 2px; }
.score-total output small { font: 11px 'Avenir Next', sans-serif; color: var(--muted); margin-left: 6px; }
.breakdown { color: #7f8777; font-size: 10px; margin-top: 5px; }
.score-total .button { padding: 15px 21px; }
.side-stack { display: grid; gap: 17px; }
.history-panel { padding: 24px; }
.history-panel .panel-heading { margin-bottom: 20px; }
.history-panel h2 { font-size: 23px; }
.history-count { font-size: 10px; color: var(--muted); }
.history-list { max-height: 335px; overflow-y: auto; padding-right: 5px; scrollbar-width: thin; scrollbar-color: #ccd3c1 transparent; }
.empty-history { padding: 25px 14px 33px; text-align: center; }
.empty-history svg { width: 34px; height: 34px; color: #9ba88c; margin-bottom: 9px; }
.empty-history p { color: var(--muted); font-size: 12px; margin: 5px 0; line-height: 1.6; }
.empty-history b { color: #5b6e59; font-size: 12px; font-weight: 500; }
.history-item { display: flex; align-items: flex-start; gap: 11px; padding: 14px 0; border-bottom: 1px solid #ecece3; }
.history-item:first-child { padding-top: 0; }
.history-item:last-child { border-bottom: none; }
.history-item .avatar { width: 28px; height: 28px; font-size: 10px; margin-top: 2px; }
.history-text { flex: 1; min-width: 0; }
.history-text strong { font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.history-text p { color: var(--muted); font-size: 10px; margin: 4px 0 0; line-height: 1.55; }
.history-points { font-size: 16px; font-family: var(--serif); white-space: nowrap; padding-top: 3px; }
.negative { color: #b46c53; }
.history-undo { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; text-align: center; }
.history-undo .button { font-size: 11px; padding: 4px 8px; min-height: 32px; }
.rule-note { border-radius: 12px; background: #eceee4; padding: 20px 24px; }
.rule-note-header { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 11px; font-weight: 600; }
.rule-note-header svg { width: 17px; height: 17px; }
.rule-note p { color: #7a8370; font-size: 11px; line-height: 1.75; margin: 0; }
.round-footer { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.round-footer span { color: #909483; font-size: 10px; }
.round-footer .button { font-size: 11px; min-height: 32px; }
.pass-notice { border: 1px dashed #d5dccb; border-radius: 9px; background: #f6f7f0; padding: 29px 22px; text-align: center; margin-block: 15px; }
.pass-notice h3 { font: 23px var(--serif); margin: 0 0 10px; }
.pass-notice p { color: #818775; font-size: 12px; line-height: 1.8; margin: 0; }
.notice { background: #e8ecdd; border: 1px solid #d6dec7; padding: 12px 16px; border-radius: 9px; color: #596f49; font-size: 12px; margin-bottom: 20px; line-height: 1.7; }
.storage-warning { background: #f6e8dc; border-color: #e6c8ae; color: #895031; }
.results-panel { text-align: center; padding: 37px 28px; }
.results-icon { width: 56px; height: 56px; border-radius: 50%; background: #e9eddd; display: grid; place-items: center; margin: 0 auto 16px; }
.results-icon svg { width: 28px; height: 28px; }
.results-panel h2 { font-size: 35px; overflow-wrap: anywhere; }
.results-panel > p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.result-table { width: 100%; border-collapse: collapse; text-align: left; margin: 25px 0; font-size: 12px; }
.result-table th { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 500; }
.result-table td, .result-table th { padding: 12px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.result-table td:last-child, .result-table th:last-child { text-align: right; }
.result-table td:last-child { font-size: 19px; font-family: var(--serif); }
.result-table .avatar { width: 25px; height: 25px; margin-right: 8px; font-size: 10px; }
.next-round label { display: block; text-align: left; }
.next-round select { width: 100%; margin-top: 7px; }
.next-round .button { width: 100%; margin-top: 16px; }
dialog { color: var(--ink); background: #fffefa; border: 1px solid var(--line); border-radius: 18px; width: min(530px, calc(100% - 32px)); padding: 29px; max-height: calc(100dvh - 48px); box-shadow: 0 25px 100px #142a3430; }
dialog::backdrop { background: #1b302d65; backdrop-filter: blur(5px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.modal-header h2 { font-size: 28px; }
.modal-close { background: #f0f1e9; border: none; font-size: 22px; border-radius: 50%; width: 36px; height: 36px; flex-shrink: 0; }
.modal-copy { color: #77816f; font-size: 13px; line-height: 1.8; }
.rules-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 12px; }
.rules-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); }
.rules-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.rules-section h3 { font-size: 13px; margin-bottom: 7px; }
.rules-section p { font-size: 12px; line-height: 1.8; color: #76816e; margin-top: 0; }
.pdf-link { display: inline-flex; margin-top: 15px; font-size: 12px; gap: 8px; }
.archive-entry { border: 1px solid var(--line); border-radius: 12px; margin-block: 15px; overflow: hidden; }
.archive-entry summary { padding: 18px; min-height: 48px; cursor: pointer; background: #f4f5ee; overflow-wrap: anywhere; }
.archive-entry summary > span, .archive-entry summary > strong { display: block; }
.archive-entry summary > strong { font: 23px/1.3 var(--serif); margin: 8px 0; }
.archive-date { color: var(--muted); font-size: 10px; }
.archive-meta, .archive-names { color: #6c7965; font-size: 11px; line-height: 1.8; }
.archive-expand { color: var(--green); font-size: 11px; margin-top: 10px; text-decoration: underline; text-underline-offset: 3px; }
.archive-entry[open] .archive-expand { display: none; }
.archive-entry .result-table { width: calc(100% - 24px); margin: 12px; table-layout: fixed; }
.archive-entry .history-panel { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px; box-shadow: none; }
.archive-entry .history-panel h2 { font-size: 21px; }
.archive-entry .history-count { white-space: nowrap; }
.archive-group { margin-block: 24px; }
.archive-group > h3 { font-size: 13px; font-weight: 600; }
.archive-status { color: var(--green); font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.archive-actions { padding: 0 18px 18px; }
.archive-actions .button { width: 100%; }
.theme-options button { min-height: 48px; }
.theme-error { width: min(1180px, calc(100% - 36px)); margin: 16px auto; border: 1px solid var(--orange); border-radius: 9px; color: var(--ink); padding: 12px 16px; font-size: 12px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.remaining-field { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 16px; }
.remaining-field > span { display: flex; align-items: center; gap: 9px; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.remaining-field input { width: 92px; text-align: center; flex-shrink: 0; }
.settlement-explain { padding: 13px 16px; border-radius: 8px; background: #eef1e5; font-size: 12px; line-height: 1.8; margin-top: 18px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 15px); border: 1px solid #dce2d3; background: #244d43; color: #fffefa; padding: 13px 20px; border-radius: 10px; box-shadow: 0 8px 30px #244d4320; font-size: 12px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 5; max-width: calc(100% - 32px); text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] :is(.panel, .score-card, dialog, input, select, .button-secondary, .tile-value-option, .segmented button[aria-pressed="true"]) { background: #1b2a21; border-color: var(--line); }
:root[data-theme="dark"] :is(.segmented, .feature-icon, .score-progress, .modal-close) { background: #24362a; }
:root[data-theme="dark"] :is(.button-primary, .tile-value-option[aria-pressed="true"]) { background: var(--green); color: #13251a; border-color: var(--green); }
:root[data-theme="dark"] .button-primary:hover:not(:disabled) { background: #c9e0c9; }
:root[data-theme="dark"] :is(.tile-value-option:hover, .button-secondary:hover:not(:disabled)) { background: #34503b; }
:root[data-theme="dark"] .tile-value-option[aria-pressed="true"]:hover { background: #c9e0c9; }
:root[data-theme="dark"] .score-card.active { background: #273f2d; border-color: #8daa80; }
:root[data-theme="dark"] :is(.rule-note, .results-icon, .settlement-explain, .round-chip, .archive-entry summary) { background: #263a2c; border-color: var(--line); }
:root[data-theme="dark"] :is(.pass-notice, .notice) { background: #293d2b; border-color: #62775b; color: #d6e7c9; }
:root[data-theme="dark"] :is(.history-item, .setup-options, .name-input input) { border-color: var(--line); }
:root[data-theme="dark"] :is(.local-badge, .eyebrow, .edition, .step, .site-footer, .score-value small, .score-bottom, .section-label small, .breakdown, .round-footer span, .modal-copy, .rules-section p, .archive-meta, .archive-names, .pass-notice p, .rule-note p) { color: var(--muted); }
:root[data-theme="dark"] :is(.button-quiet, .empty-history b) { color: #cbd8c5; }
:root[data-theme="dark"] :is(h1 em, .turn-marker, .bonus-option b, .bonus-option svg) { color: #b5caa4; stroke: currentColor; }
:root[data-theme="dark"] input::placeholder { color: #8f9e8b; }
:root[data-theme="dark"] .bonus-option[aria-pressed="true"] { border-color: #a0bb90; }
:root[data-theme="dark"] :is(.inline-error, .negative, .button-danger) { color: #ffc2a7; }
:root[data-theme="dark"] .storage-warning { background: #493527; border-color: #aa7750; color: #f0ceac; }
:root[data-theme="dark"] dialog::backdrop { background: #030906b5; }
:root[data-theme="dark"] .person-0 { --avatar-bg: #3c5335; --avatar-ink: #d6e8c8; }
:root[data-theme="dark"] .person-1 { --avatar-bg: #674a39; --avatar-ink: #f4d2b7; }
:root[data-theme="dark"] .person-2 { --avatar-bg: #354e5b; --avatar-ink: #c8e2ed; }
:root[data-theme="dark"] .person-3 { --avatar-bg: #564053; --avatar-ink: #edd0e6; }
@media (min-width: 1100px) { .tile-value-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .intro { padding-top: 55px; } .setup-layout { gap: 30px; } .panel { padding: 32px; } .art-panel { padding: 34px 38px; } }
@media (max-width: 1000px) {
  .site-header, main, .site-footer { width: calc(100% - 48px); }
  .game-layout { grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr); gap: 17px; }
  .panel { padding: 22px; }
  .bonus-option .bonus-name { font-size: 8px; }
  .score-card { padding: 16px; }
  .score-card.active { padding: 15.5px; }
  .draw-section { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .site-header, main, .site-footer { width: calc(100% - 36px); }
  .site-header { height: auto; min-height: 84px; padding-block: 16px; gap: 10px; flex-wrap: wrap; }
  nav { gap: 18px; margin-left: auto; }
  .brand { font-size: 25px; gap: 9px; }
  .brand img { width: 33px; height: 33px; }
  .brand-sub { font-size: 6px; letter-spacing: 1.6px; }
  .local-badge { display: none; }
  .button-quiet { font-size: 11px; }
  .intro { padding: 32px 0 25px; }
  .intro .edition { display: none; }
  .intro p:not(.eyebrow) { max-width: 310px; font-size: 12px; }
  .setup-layout { grid-template-columns: 1fr; gap: 20px; }
  .setup-options { grid-template-columns: 1fr; }
  .art-panel { min-height: 230px; padding: 25px; }
  .tile-art { position: absolute; right: -8px; top: 25px; width: 52%; height: 205px; opacity: .95; }
  .art-top { margin-bottom: 37px; }
  .art-panel h2 { font-size: 28px; width: 55%; }
  .art-panel p { max-width: 52%; font-size: 10px; }
  .features { gap: 15px; margin-block: 27px; }
  .feature { flex-direction: column; gap: 10px; }
  .feature p { font-size: 10px; }
  .feature h3 { font-size: 11px; }
  .site-footer { font-size: 9px; line-height: 1.7; align-items: flex-start; }
  .site-footer > span { max-width: 48%; }
  .site-footer > span:last-child { text-align: right; }
  .game-layout { grid-template-columns: 1fr; gap: 20px; }
  .score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
  .score-value { font-size: 36px; margin-top: 8px; }
  .score-bottom { font-size: 9px; }
  .intro-game { flex-wrap: wrap; gap: 15px; }
  .intro-game h1 { font-size: 35px; }
  .game-tools { justify-content: space-between; width: 100%; }
  .side-stack { grid-template-columns: 1fr; }
  .bonus-option .bonus-name { font-size: 9px; }
  .score-total .button { padding-inline: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
