:root {
  --ink: #18202a;
  --muted: #68717d;
  --paper: #f6f3ed;
  --surface: #fffdf8;
  --line: #ddd8cf;
  --navy: #17324d;
  --navy-dark: #10263a;
  --red: #b94743;
  --blue: #315f94;
  --gold: #c79b4a;
  --green: #356f56;
  --shadow: 0 18px 48px rgba(25, 31, 38, .08);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% -10%, rgba(199,155,74,.10), transparent 30rem), var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(221,216,207,.85); background: rgba(246,243,237,.9); backdrop-filter: blur(16px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 820; letter-spacing: -.03em; font-size: 1.08rem; }
.brand-cards { position: relative; width: 37px; height: 34px; display: inline-block; }
.brand-cards i { position: absolute; width: 24px; height: 31px; border: 2px solid var(--navy); border-radius: 5px; background: var(--surface); }
.brand-cards i:first-child { left: 2px; top: 2px; transform: rotate(-10deg); }
.brand-cards i:last-child { right: 1px; top: 0; transform: rotate(9deg); background: var(--navy); }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a { color: var(--muted); border-radius: 99px; padding: 9px 13px; font-size: .85rem; font-weight: 700; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.page-shell { padding-block: 44px 84px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; padding-block: 24px 36px; }
.site-footer span:first-child { color: var(--ink); font-weight: 800; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.3rem, 7vw, 6.4rem); font-weight: 500; line-height: .88; letter-spacing: -.055em; margin-bottom: 23px; }
h1 em { color: var(--red); font-weight: 500; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 500; letter-spacing: -.035em; margin-bottom: 8px; }
h3 { font-size: 1rem; margin-bottom: 8px; }
.eyebrow { color: var(--navy); font-size: .68rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 13px; }
.lead { max-width: 650px; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }
.hint { color: var(--muted); font-size: .76rem; line-height: 1.55; margin: 15px 0 0; }

.hero { min-height: 490px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); align-items: center; gap: 70px; padding: 22px 0 64px; }
.hero-card { justify-self: center; width: min(300px, 100%); aspect-ratio:  .72; border-radius: 26px; border: 1px solid #d9d2c6; background: linear-gradient(145deg, #fffefb, #f4efe5); box-shadow: 18px 22px 0 rgba(23,50,77,.08), var(--shadow); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; transform: rotate(4deg); position: relative; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 48px; border: 1px solid rgba(23,50,77,.13); border-radius: 50%; }
.suit { font-family: Georgia, serif; font-size: 2rem; line-height: 1; position: relative; z-index: 2; }
.suit-red { color: var(--red); }
.suit-black { color: var(--navy); align-self: flex-end; transform: rotate(180deg); }
.hero-card-center { font-family: Georgia, serif; font-size: 5rem; color: var(--navy); align-self: center; position: relative; z-index: 2; letter-spacing: -.08em; }

.button-row, .card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.button-row { margin-top: 28px; }
.button { border: 1px solid transparent; border-radius: 99px; min-height: 44px; padding: 10px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: .84rem; font-weight: 780; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover:not([disabled]) { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover:not([disabled]) { background: var(--navy-dark); }
.button-quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.button-quiet:hover:not([disabled]) { background: var(--surface); }
.button-large { min-height: 52px; padding-inline: 23px; font-size: .94rem; }
.button-small { min-height: 36px; padding: 7px 13px; font-size: .75rem; }
.button[disabled] { opacity: .55; cursor: not-allowed; }
.text-button { border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; padding: 8px 3px; font-size: .73rem; }
.text-button:hover { color: var(--red); }
.icon-danger { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid #e1c7c5; color: var(--red); background: #fff9f8; font-size: 1.2rem; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(255,255,255,.7); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 76px; }
.stat-card { min-height: 170px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
a.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card > span { color: var(--muted); font-size: .72rem; font-weight: 750; }
.stat-card strong { margin-top: auto; font-family: Georgia, serif; font-size: 3.6rem; font-weight: 500; line-height: 1; color: var(--navy); }
.stat-card small { color: var(--muted); margin-top: 6px; }
.section-head { margin: 68px 0 20px; display: flex; justify-content: space-between; align-items: end; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: .84rem; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { min-height: 205px; padding: 25px; }
.feature-no { color: var(--gold); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.feature h3 { font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; margin-top: 42px; }
.feature p { color: var(--muted); font-size: .84rem; line-height: 1.6; margin-bottom: 0; }

.page-heading { padding: 12px 0 34px; }
.page-heading h1 { font-size: clamp(3.3rem, 6vw, 5.2rem); }
.split-heading { display: grid; grid-template-columns: 1fr minmax(290px, 390px); gap: 50px; align-items: end; }
.compact-heading { padding-bottom: 20px; }
.compact-heading h1 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 0; }
.back-link { display: inline-block; color: var(--muted); font-size: .78rem; margin-bottom: 30px; }
.back-link:hover { color: var(--navy); }

.flash { border: 1px solid; border-radius: 14px; margin-bottom: 24px; padding: 12px 15px; font-size: .85rem; }
.flash-success { color: #23563c; border-color: #acd0bc; background: #edf8f1; }
.flash-error { color: #8b3734; border-color: #e3b5b2; background: #fff1f0; }

.form-panel { padding: 27px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.panel-heading h2 { margin-bottom: 0; }
label { display: grid; gap: 7px; }
label > span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .05em; }
input, select { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); padding: 9px 11px; outline: none; }
input:focus, select:focus { border-color: #7f9ab3; box-shadow: 0 0 0 3px rgba(49,95,148,.12); }
input[type="color"] { width: 48px; min-width: 48px; padding: 3px; }
input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--navy); }
.color-field { display: flex; align-items: center; gap: 10px; }
.color-preview { font-size: .72rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.check-field { display: flex; align-items: center; gap: 9px; align-self: end; min-height: 43px; }
.check-field > span { color: var(--ink); letter-spacing: 0; font-size: .78rem; }
.player-create-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr auto; align-items: end; gap: 15px; }
.stack-list { display: grid; gap: 10px; }
.editable-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; padding: 14px 17px; }
.editable-row.is-inactive, .rule-card.is-inactive { opacity: .55; }
.player-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 850; background: var(--player-color); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.row-form { display: grid; grid-template-columns: 1.3fr .8fr .65fr auto; align-items: end; gap: 13px; }
.empty-state { padding: 34px; display: grid; gap: 7px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); }

.compact-create { padding: 18px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.compact-create label { min-width: 0; }
.rule-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.rule-card { padding: 25px; }
.rule-card-top { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.rule-card h2 { margin: 8px 0 0; }
.rule-count { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; border-radius: 99px; padding: 5px 8px; background: #eaf0f5; color: var(--navy); font-size: .6rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.badge-muted { background: #eeeae3; color: var(--muted); }
.rule-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0; border-block: 1px solid var(--line); }
.rule-facts div { padding: 14px 10px 14px 0; }
.rule-facts dt { color: var(--muted); font-size: .62rem; margin-bottom: 5px; }
.rule-facts dd { margin: 0; font-size: .8rem; font-weight: 750; }
.rule-settings { margin-top: 10px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.check-card { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.check-card > span { display: grid; color: var(--ink); letter-spacing: 0; }
.check-card strong { font-size: .79rem; }
.check-card small { color: var(--muted); font-size: .65rem; font-weight: 500; margin-top: 2px; }

.points-table { overflow: hidden; }
.points-head, .points-row { display: grid; grid-template-columns: 1.35fr .42fr .72fr .55fr 1fr auto; gap: 9px; align-items: center; padding: 11px 13px; }
.points-head { color: var(--muted); background: #f3efe8; font-size: .62rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.points-row { border-top: 1px solid var(--line); }
.points-row input, .points-row select { min-height: 38px; font-size: .75rem; }
.points-new { background: #fbf7ef; }
.row-actions { display: flex; gap: 6px; align-items: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr .55fr; gap: 35px; }
  .player-create-grid { grid-template-columns: 1fr 1fr; }
  .row-form { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: repeat(2, 1fr); }
  .points-table { overflow-x: auto; }
  .points-head, .points-row { min-width: 850px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1160px); }
  .header-inner { min-height: 64px; }
  .brand > span:last-child { display: none; }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: 10px; font-size: .75rem; }
  .page-shell { padding-top: 30px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 38px; padding-bottom: 50px; }
  .hero-card { width: 185px; grid-row: 1; justify-self: end; margin-right: 15px; }
  .hero-card-center { font-size: 3.3rem; }
  .stat-grid, .feature-grid, .rule-card-grid, .split-heading { grid-template-columns: 1fr; }
  .stat-grid { gap: 10px; margin-bottom: 55px; }
  .stat-card { min-height: 130px; }
  .stat-card strong { font-size: 3rem; }
  .section-head { margin-top: 50px; }
  .player-create-grid, .row-form, .settings-grid { grid-template-columns: 1fr; }
  .editable-row { grid-template-columns: auto 1fr; align-items: start; }
  .editable-row > form:last-child { grid-column: 2; }
  .compact-create { grid-template-columns: 1fr; }
  .rule-facts { grid-template-columns: 1fr; }
  .rule-facts div + div { border-top: 1px solid var(--line); }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .site-footer { flex-direction: column; }
}

/* Game start */
.game-start-heading { align-items: center; }
.start-status { padding: 24px; min-height: 155px; display: flex; flex-direction: column; justify-content: center; }
.start-status > span, .tiny-note { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.start-status strong { font-family: Georgia, serif; color: var(--navy); font-size: 3rem; line-height: 1; margin: 8px 0; }
.start-status small { color: var(--muted); }
.game-start-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.game-start-panel { padding: 25px; }
.player-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.player-pick { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 15px; background: #fff; cursor: pointer; transition: border-color .15s ease, transform .15s ease, background .15s ease; }
.player-pick:hover { transform: translateY(-1px); }
.player-pick.is-selected { border-color: #9ab0c5; background: #f2f6f9; box-shadow: inset 0 0 0 1px rgba(23,50,77,.08); }
.player-pick > input { position: absolute; opacity: 0; pointer-events: none; }
.player-pick-copy { display: grid; gap: 3px; min-width: 0; }
.player-pick-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .85rem; }
.player-pick-copy small { color: var(--muted); font-size: .66rem; }
.pick-check { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #e9e5de; color: transparent; font-size: .72rem; font-weight: 900; }
.player-pick.is-selected .pick-check { background: var(--navy); color: #fff; }
.lineup-panel { min-height: 300px; }
.lineup-empty { padding: 48px 15px; color: var(--muted); text-align: center; font-size: .82rem; }
.lineup-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lineup-item { display: grid; grid-template-columns: auto auto auto 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lineup-item.is-dragging { opacity: .45; }
.drag-handle { color: #a9a197; cursor: grab; letter-spacing: -.22em; }
.seat-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: .65rem; font-weight: 850; }
.lineup-copy { display: grid; gap: 2px; min-width: 0; }
.lineup-copy strong { font-size: .82rem; }
.lineup-copy small { color: var(--muted); font-size: .63rem; }
.lineup-buttons { display: flex; gap: 4px; }
.lineup-buttons button { width: 29px; height: 29px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--navy); }
.lineup-buttons button:disabled { opacity: .28; cursor: default; }
.lineup-hint { margin-bottom: 0; }
.rules-choice { grid-column: 1 / -1; }
.rule-choice-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rule-choice { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fff; cursor: pointer; }
.rule-choice:has(input:checked) { border-color: #8aa6bf; background: #f1f6f9; box-shadow: inset 0 0 0 1px rgba(23,50,77,.08); }
.rule-choice input { width: 17px; min-height: 17px; margin-top: 3px; accent-color: var(--navy); }
.rule-choice > span { display: grid; gap: 5px; }
.rule-choice strong { font-size: .86rem; }
.rule-choice small { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.game-start-submit { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }

/* Dashboard open games */
.open-games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.open-game-card { padding: 20px; display: grid; gap: 20px; transition: transform .15s ease, box-shadow .15s ease; }
.open-game-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.open-game-top, .open-game-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .72rem; }
.open-game-bottom strong { color: var(--navy); }
.open-game-players { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.open-game-players span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.open-game-players i { width: 9px; height: 9px; border-radius: 50%; background: var(--player-color); }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 8px; border-radius: 99px; font-size: .61rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.status-active { color: #24543d; background: #e6f2eb; }
.status-paused { color: #72571b; background: #f7edcf; }
.status-finished { color: var(--muted); background: #ebe8e2; }

/* Running game */
.game-topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 28px; }
.game-kicker-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; color: var(--muted); font-size: .72rem; }
.game-title { font-size: clamp(3.1rem, 6vw, 5rem); margin: 12px 0 0; }
.game-top-actions { display: flex; align-items: center; gap: 8px; }
.game-menu { position: relative; }
.game-menu summary { list-style: none; cursor: pointer; }
.game-menu summary::-webkit-details-marker { display: none; }
.game-menu-popover { position: absolute; right: 0; top: calc(100% + 7px); z-index: 20; width: 190px; padding: 7px; box-shadow: var(--shadow); }
.game-menu-popover button { width: 100%; border: 0; background: transparent; text-align: left; padding: 10px 11px; border-radius: 9px; font-size: .76rem; color: var(--ink); }
.game-menu-popover button:hover { background: #f3efe8; }
.game-menu-popover .danger-action { color: var(--red); }
.pause-banner { margin-bottom: 17px; padding: 15px 18px; display: flex; align-items: center; gap: 10px 18px; background: #fbf4df; border-color: #e7d6a5; }
.pause-banner span { color: var(--muted); font-size: .76rem; }
.scoreboard-wrap { overflow: hidden; }
.scoreboard-scroll { overflow-x: auto; }
.scoreboard { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--surface); }
.scoreboard th, .scoreboard td { border-bottom: 1px solid var(--line); padding: 14px 12px; text-align: center; }
.scoreboard thead th { color: var(--muted); background: #f1ede6; font-size: .65rem; font-weight: 850; letter-spacing: .04em; }
.scoreboard .round-col { width: 120px; text-align: left; padding-left: 18px; }
.scoreboard .result-col { width: 170px; text-align: left; }
.score-player-head { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.score-player-head i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--player-color); }
.scoreboard tbody th { text-align: left; padding-left: 18px; font-size: .75rem; }
.score-cell { position: relative; min-width: 105px; }
.score-value { font-family: Georgia, serif; font-size: 1.42rem; color: var(--navy); }
.dealer-mark { display: block; margin: 3px auto 0; width: fit-content; padding: 2px 6px; border-radius: 99px; color: var(--navy); background: #e9eff4; font-size: .52rem; font-weight: 850; text-transform: uppercase; }
.score-cell.is-sitting-out { background: repeating-linear-gradient(-45deg, rgba(104,113,125,.045), rgba(104,113,125,.045) 6px, transparent 6px, transparent 12px); }
.score-cell.is-sitting-out .score-value { opacity: .52; }
.current-round { background: #fff9ea; box-shadow: inset 4px 0 0 var(--gold); }
.current-round th, .current-round td { border-bottom-color: #e3d6af; }
.current-label { display: inline-flex; color: #765d22; background: #f7e8bb; border-radius: 99px; padding: 5px 8px; font-size: .6rem; font-weight: 850; text-transform: uppercase; }
.bock-badge { display: block; width: fit-content; margin-top: 5px; color: #71561a; font-size: .56rem; }
.marriage-row { background: #fff8f7; }
.marriage-row th { color: var(--red); }
.row-kind { margin-right: 5px; }
.score-delta { display: block; color: var(--muted); font-size: .57rem; margin-top: 2px; }
.result-cell { text-align: left !important; }
.result-cell strong { display: block; font-size: .9rem; }
.side-re { color: var(--red); }
.side-contra { color: var(--blue); }
.result-note { display: block; color: var(--muted); font-size: .61rem; margin-top: 4px; }
.scoreboard tfoot th, .scoreboard tfoot td { border-bottom: 0; background: var(--navy); color: #fff; font-weight: 850; }
.scoreboard tfoot th { text-align: left; padding-left: 18px; }
.empty-scoreboard { color: var(--muted); padding: 40px !important; }
.game-actions-panel { padding-top: 22px; }
.button-score { min-width: 230px; min-height: 54px; font-size: .94rem; }
.secondary-game-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.finished-card { margin-top: 22px; padding: 28px; }

@media (max-width: 900px) {
  .game-start-layout { grid-template-columns: 1fr; }
  .rules-choice, .game-start-submit { grid-column: 1; }
  .open-games-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .game-start-heading { grid-template-columns: 1fr; }
  .start-status { min-height: 120px; }
  .player-picker, .rule-choice-list { grid-template-columns: 1fr; }
  .game-topbar { align-items: flex-start; flex-direction: column; }
  .game-top-actions { width: 100%; justify-content: space-between; }
  .pause-banner { align-items: flex-start; flex-direction: column; }
  .secondary-game-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .button-score { width: 100%; }
}

/* Standard round scoring dialog */
.score-dialog { width: min(1060px, calc(100% - 28px)); max-height: min(92vh, 980px); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 90px rgba(17, 28, 40, .28); overflow: hidden; }
.score-dialog::backdrop { background: rgba(16, 27, 38, .56); backdrop-filter: blur(5px); }
.score-dialog-shell { max-height: 92vh; overflow-y: auto; }
.score-dialog-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px 28px 18px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.96); backdrop-filter: blur(14px); }
.score-dialog-header h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.score-dialog-header .eyebrow { margin-bottom: 7px; }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.35rem; line-height: 1; }
.dialog-close:hover { color: var(--ink); background: #f3efe8; }
.score-tabs { position: sticky; top: 101px; z-index: 4; display: flex; gap: 5px; padding: 10px 28px; border-bottom: 1px solid var(--line); background: rgba(255,253,248,.96); backdrop-filter: blur(14px); }
.score-tab { border: 0; border-radius: 99px; padding: 9px 15px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 800; }
.score-tab.is-active { background: var(--navy); color: #fff; }
.score-section { padding: 27px 28px; border-bottom: 1px solid var(--line); }
.score-section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.score-section-head > div { display: flex; align-items: center; gap: 10px; }
.score-section-head h3 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.score-section-head small { color: var(--muted); font-size: .68rem; text-align: right; }
.step-no { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #ece7de; color: var(--navy); font-size: .62rem; font-weight: 900; }
.re-player-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.re-player-option { position: relative; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.re-player-option input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.re-player-option i { grid-row: 1 / 3; align-self: center; width: 25px; height: 25px; border-radius: 50%; background: var(--player-color); opacity: .55; box-shadow: inset 0 0 0 7px #fff, 0 0 0 1px var(--line); }
.re-player-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 800; }
.re-player-option small { color: var(--muted); font-size: .61rem; }
.re-player-option.is-selected { border-color: #91a7ba; background: #eef4f8; }
.re-player-option.is-selected i { opacity: 1; box-shadow: none; }
.re-player-option.is-fixed { cursor: default; }
.team-preview { display: grid; grid-template-columns: 1fr auto 1fr; gap: 11px; align-items: center; margin-top: 12px; }
.team-preview-side { min-height: 53px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 13px; background: #f6f2eb; }
.team-preview-side > span { font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.team-preview-side strong { min-width: 0; text-align: right; font-size: .73rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-preview-vs { color: var(--muted); font-family: Georgia, serif; font-style: italic; font-size: .8rem; }
.team-re > span { color: var(--red); }
.team-contra > span { color: var(--blue); }
.side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-side { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.score-side-re { box-shadow: inset 3px 0 0 rgba(185,71,67,.75); }
.score-side-contra { box-shadow: inset 3px 0 0 rgba(49,95,148,.78); }
.score-side-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.score-side-title > span { font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.score-side-re .score-side-title > span { color: var(--red); }
.score-side-contra .score-side-title > span { color: var(--blue); }
.score-side-title strong { min-width: 0; color: var(--muted); font-size: .66rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eyes-field input { min-height: 61px; padding: 8px 14px; font-family: Georgia, serif; font-size: 2rem; text-align: center; }
.no-trick-check { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: .68rem; }
.no-trick-check input { flex: none; }
.no-trick-check > span { color: inherit; font-size: inherit; font-weight: 650; letter-spacing: 0; }
.announcement-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.announcement-buttons button { min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); font-size: .7rem; font-weight: 760; }
.score-side-re .announcement-buttons button.is-selected { color: #fff; border-color: var(--red); background: var(--red); }
.score-side-contra .announcement-buttons button.is-selected { color: #fff; border-color: var(--blue); background: var(--blue); }
.side-note { margin: 11px 0 0; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.special-list { display: grid; gap: 8px; }
.special-row { min-height: 52px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 8px 9px 8px 11px; border: 1px solid #e6e1d9; border-radius: 12px; background: #fffdfa; }
.special-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.special-row > div:first-child strong { font-size: .73rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.special-row > div:first-child small { color: var(--muted); font-size: .59rem; }
.special-toggle { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); font-weight: 900; }
.score-side-re .special-toggle.is-selected { color: #fff; border-color: var(--red); background: var(--red); }
.score-side-contra .special-toggle.is-selected { color: #fff; border-color: var(--blue); background: var(--blue); }
.special-counter { display: grid !important; grid-template-columns: 31px 42px 31px; gap: 4px !important; align-items: center; }
.special-counter button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); font-weight: 850; }
.special-counter strong { text-align: center; font-family: Georgia, serif; font-size: 1rem !important; }
.automatic-point { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: center; padding: 10px; border-radius: 11px; background: #eef3f8; color: var(--blue); }
.automatic-point > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 900; }
.automatic-point > div { display: grid; gap: 1px; }
.automatic-point strong { font-size: .69rem; }
.automatic-point small { color: var(--muted); font-size: .57rem; }
.score-dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 28px 26px; }
.score-dialog-footer > div { display: flex; gap: 8px; }
.score-form-status { color: var(--muted); font-size: .68rem; }
.solo-coming { min-height: 470px; padding: 70px 30px; text-align: center; }
.solo-coming p:last-child { max-width: 420px; margin-inline: auto; color: var(--muted); line-height: 1.6; }
.solo-card-mark { width: 74px; height: 98px; display: grid; place-items: center; margin: 0 auto 25px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font-family: Georgia, serif; font-size: 2.2rem; transform: rotate(5deg); box-shadow: 8px 9px 0 rgba(23,50,77,.08); }
.result-tokens { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
.result-token { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 99px; font-size: .59rem; font-weight: 900; background: #eeeae3; }
.result-token.side-re { color: #fff; background: var(--red); }
.result-token.side-contra { color: #fff; background: var(--blue); }

@media (max-width: 760px) {
  .score-dialog { width: calc(100% - 12px); max-height: 96vh; border-radius: 18px; }
  .score-dialog-shell { max-height: 96vh; }
  .score-dialog-header { padding: 18px 18px 14px; }
  .score-tabs { top: 88px; padding-inline: 18px; }
  .score-section { padding: 22px 18px; }
  .score-section-head { align-items: flex-start; }
  .score-section-head small { max-width: 42%; }
  .re-player-picker { grid-template-columns: 1fr 1fr; }
  .team-preview { grid-template-columns: 1fr; }
  .team-preview-vs { display: none; }
  .side-grid { grid-template-columns: 1fr; }
  .score-dialog-footer { align-items: stretch; flex-direction: column; padding-inline: 18px; }
  .score-dialog-footer > div { display: grid; grid-template-columns: 1fr 1.2fr; }
}

/* Round special actions */
.inline-form { display: inline; margin: 0; }
.button.is-set { border-color: #9caebb; background: #edf3f7; color: var(--navy); }
.button.is-bock-set { border-color: #d8bd70; background: #fbf0ce; color: #71561a; }
.button-danger { color: #fff; background: var(--red); border-color: var(--red); }
.button-danger:hover:not([disabled]) { filter: brightness(.92); }
.result-note-bock { color: #71561a; font-weight: 800; }
.result-note-black { color: var(--red); font-weight: 800; }

.action-dialog { width: min(660px, calc(100% - 28px)); max-height: 90vh; padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 90px rgba(17, 28, 40, .28); overflow: hidden; }
.action-dialog-wide { width: min(820px, calc(100% - 28px)); }
.action-dialog::backdrop { background: rgba(16, 27, 38, .56); backdrop-filter: blur(5px); }
.action-dialog-shell { max-height: 90vh; overflow-y: auto; }
.action-dialog-body { display: grid; gap: 22px; padding: 25px 28px; }
.action-dialog-intro { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.action-player-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.action-player-option { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; }
.action-player-option input { position: absolute; opacity: 0; pointer-events: none; }
.action-player-option i { width: 24px; height: 24px; border-radius: 50%; background: var(--player-color); opacity: .5; box-shadow: inset 0 0 0 7px #fff, 0 0 0 1px var(--line); }
.action-player-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 800; }
.action-player-option:has(input:checked) { border-color: #91a7ba; background: #eef4f8; }
.action-player-option:has(input:checked) i { opacity: 1; box-shadow: none; }
.rule-hint { padding: 13px 15px; border-radius: 13px; background: #f2efe9; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.rule-hint strong { color: var(--ink); }
.action-dialog-remove { padding: 0 28px 22px; text-align: center; }
.text-danger { border: 0; background: none; color: var(--red); font-size: .68rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.action-step { display: grid; gap: 4px; }
.action-step .score-section-head { margin-bottom: 12px; }
.side-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.side-choice label { position: relative; cursor: pointer; }
.side-choice input { position: absolute; opacity: 0; pointer-events: none; }
.side-choice span { min-height: 50px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .07em; }
.side-choice-re input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.side-choice-contra input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.black-announcement-buttons button.is-selected.side-re { color: #fff; border-color: var(--red); background: var(--red); }
.black-announcement-buttons button.is-selected.side-contra { color: #fff; border-color: var(--blue); background: var(--blue); }
.black-lost-summary { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #f8ecea; border: 1px solid #efd1ce; }
.black-lost-summary strong { color: var(--red); font-size: .8rem; }
.black-lost-summary span { color: var(--muted); font-size: .65rem; }

@media (max-width: 760px) {
  .action-dialog, .action-dialog-wide { width: calc(100% - 12px); max-height: 96vh; border-radius: 18px; }
  .action-dialog-shell { max-height: 96vh; }
  .action-dialog-body { padding: 20px 18px; }
  .action-player-grid { grid-template-columns: 1fr 1fr; }
  .secondary-game-actions .inline-form { display: block; }
  .secondary-game-actions .inline-form .button { width: 100%; }
}
.score-form-status.is-error, .dialog-error { color: var(--red); font-weight: 760; }
.dialog-error { margin: 0; padding: 10px 12px; border: 1px solid #e3b5b2; border-radius: 11px; background: #fff1f0; font-size: .72rem; }

/* Compact RE/KONTRA result summary */
.scoreboard .result-col { width: 330px; min-width: 330px; }
.result-side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 7px; }
.result-side { min-width: 0; padding: 7px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.result-side-re { border-top: 2px solid var(--red); }
.result-side-contra { border-top: 2px solid var(--blue); }
.result-side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.result-side-head strong { display: inline !important; font-size: .62rem !important; letter-spacing: .06em; }
.result-side-re .result-side-head strong { color: var(--red); }
.result-side-contra .result-side-head strong { color: var(--blue); }
.result-side-head span { color: var(--ink); font-size: .64rem; font-weight: 800; white-space: nowrap; }
.result-announcements { min-height: 15px; margin-bottom: 5px; color: var(--muted); font-size: .56rem; line-height: 1.35; }
.result-side .result-tokens { margin: 0; }
.result-no-extra { color: #b4ada3; font-size: .62rem; }
.result-final { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.result-final strong { display: inline !important; font-size: .78rem !important; }
.result-final span { color: var(--muted); font-size: .55rem; text-align: right; }
.black-result-summary > strong { font-size: .82rem; }
.black-announcement-buttons button.is-selected { color: #fff; border-color: var(--navy); background: var(--navy); }

@media (max-width: 760px) {
  .scoreboard .result-col { width: 300px; min-width: 300px; }
}

/* UX polish: sticky scoreboard, active dealer, live scoring and theme switch */
:root { --header-height: 74px; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.theme-toggle { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 1rem; }
.theme-toggle:hover { border-color: #8da1b3; transform: translateY(-1px); }

.scoreboard-wrap { overflow: visible; }
.scoreboard-scroll { overflow: visible; }
.scoreboard thead th { position: sticky; top: var(--header-height); z-index: 14; box-shadow: 0 1px 0 var(--line); }
.scoreboard thead th.is-current-dealer-col { z-index: 15; }
.scoreboard .is-current-dealer-col { background: color-mix(in srgb, var(--gold) 11%, var(--surface)); }
.scoreboard thead .is-current-dealer-col { color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold), 0 1px 0 var(--line); }
.scoreboard thead .is-current-dealer-col::after { content: "Geber"; display: block; width: fit-content; margin: 4px auto 0; padding: 2px 6px; border-radius: 999px; background: var(--gold); color: #2d2414; font-size: .48rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.scoreboard tbody .is-current-dealer-col { box-shadow: inset 1px 0 0 color-mix(in srgb, var(--gold) 45%, transparent), inset -1px 0 0 color-mix(in srgb, var(--gold) 45%, transparent); }
.scoreboard tfoot .is-current-dealer-col { background: color-mix(in srgb, var(--gold) 24%, var(--navy)); }

.result-token { border: 1px solid transparent; }
.result-token.is-multiplier.side-re { color: var(--red); border-color: var(--red); background: transparent; }
.result-token.is-multiplier.side-contra { color: var(--blue); border-color: var(--blue); background: transparent; }
.result-final > div { display: grid; gap: 1px; }
.result-formula { color: var(--muted); font-size: .56rem; font-weight: 700; white-space: nowrap; }

.score-live-section { background: color-mix(in srgb, var(--navy) 3%, var(--surface)); }
.score-live-preview { padding: 2px; }
.live-score-placeholder { min-height: 72px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: .72rem; text-align: center; padding: 14px; }
.live-result-sides { margin-bottom: 10px; }
.live-result-sides .result-side { padding: 12px 13px; }
.live-result-sides .result-side-head strong { font-size: .7rem !important; }
.live-result-sides .result-side-head span { font-size: .68rem; }
.live-result-sides .result-token { min-width: 26px; height: 26px; font-size: .64rem; }
.live-score-final { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.live-score-final strong { font-family: Georgia, serif; font-size: 1.25rem; }
.live-score-final small { color: var(--muted); font-size: .65rem; font-weight: 700; }
.live-score-final > span { grid-column: 1 / -1; color: var(--muted); font-size: .62rem; }

@media (max-width: 900px) {
  :root { --header-height: 64px; }
  .scoreboard-wrap { overflow: hidden; }
  .scoreboard-scroll { overflow-x: auto; }
}

@media (max-width: 760px) {
  .header-actions { gap: 3px; }
  .theme-toggle { width: 34px; height: 34px; }
  .live-score-final { grid-template-columns: 1fr; }
  .live-score-final > span { grid-column: 1; }
}

/* Dark mode */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2f5;
  --muted: #a9b4bd;
  --paper: #11171d;
  --surface: #192129;
  --line: #35414b;
  --navy: #88afd2;
  --navy-dark: #6f9ec7;
  --red: #e3746f;
  --blue: #75a8df;
  --gold: #ddb45f;
  --green: #70b38d;
  --shadow: 0 18px 48px rgba(0, 0, 0, .26);
}
html[data-theme="dark"] body { background: radial-gradient(circle at 85% -10%, rgba(221,180,95,.08), transparent 30rem), var(--paper); }
html[data-theme="dark"] .site-header { border-bottom-color: rgba(53,65,75,.9); background: rgba(17,23,29,.9); }
html[data-theme="dark"] .brand-cards i { border-color: var(--navy); background: var(--surface); }
html[data-theme="dark"] .brand-cards i:last-child { background: #315f94; }
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a[aria-current="page"] { color: var(--ink); background: #202a33; box-shadow: inset 0 0 0 1px var(--line); }
html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .score-tab.is-active { background: #315f94; color: #fff; }
html[data-theme="dark"] .button-primary:hover:not([disabled]) { background: #274f7d; }
html[data-theme="dark"] .panel { box-shadow: 0 1px 0 rgba(255,255,255,.025); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] .check-card,
html[data-theme="dark"] .player-pick,
html[data-theme="dark"] .lineup-item,
html[data-theme="dark"] .rule-choice,
html[data-theme="dark"] .re-player-option,
html[data-theme="dark"] .score-side,
html[data-theme="dark"] .announcement-buttons button,
html[data-theme="dark"] .special-toggle,
html[data-theme="dark"] .special-counter button,
html[data-theme="dark"] .action-player-option,
html[data-theme="dark"] .side-choice span,
html[data-theme="dark"] .result-side { background: #202a33; }
html[data-theme="dark"] .hero-card { border-color: var(--line); background: linear-gradient(145deg, #202a33, #171f26); box-shadow: 18px 22px 0 rgba(0,0,0,.16), var(--shadow); }
html[data-theme="dark"] .icon-danger { border-color: #68413f; background: #2d2020; }
html[data-theme="dark"] .flash-success { color: #9ed1af; border-color: #365f47; background: #17271d; }
html[data-theme="dark"] .flash-error,
html[data-theme="dark"] .dialog-error { color: #efaaa6; border-color: #67413f; background: #2b1d1d; }
html[data-theme="dark"] .points-head,
html[data-theme="dark"] .scoreboard thead th { background: #202830; }
html[data-theme="dark"] .points-new,
html[data-theme="dark"] .team-preview-side,
html[data-theme="dark"] .rule-hint { background: #1d262e; }
html[data-theme="dark"] .player-pick.is-selected,
html[data-theme="dark"] .rule-choice:has(input:checked),
html[data-theme="dark"] .re-player-option.is-selected,
html[data-theme="dark"] .action-player-option:has(input:checked) { border-color: #52708a; background: #1b2d3b; }
html[data-theme="dark"] .game-menu-popover button:hover,
html[data-theme="dark"] .dialog-close:hover { background: #26313a; }
html[data-theme="dark"] .pause-banner { background: #2b271a; border-color: #61532d; }
html[data-theme="dark"] .current-round { background: #292619; box-shadow: inset 4px 0 0 var(--gold); }
html[data-theme="dark"] .current-round th,
html[data-theme="dark"] .current-round td { border-bottom-color: #51492e; }
html[data-theme="dark"] .current-label { color: #f0cf85; background: #42381e; }
html[data-theme="dark"] .dealer-mark { color: #bed8ee; background: #263744; }
html[data-theme="dark"] .marriage-row { background: #2a2021; }
html[data-theme="dark"] .score-dialog-header,
html[data-theme="dark"] .score-tabs { background: rgba(25,33,41,.96); }
html[data-theme="dark"] .step-no { background: #2a343d; color: var(--navy); }
html[data-theme="dark"] .re-player-option i,
html[data-theme="dark"] .action-player-option i { box-shadow: inset 0 0 0 7px #202a33, 0 0 0 1px var(--line); }
html[data-theme="dark"] .special-row { border-color: var(--line); background: #1c252d; }
html[data-theme="dark"] .automatic-point { background: #1c2c3a; color: var(--blue); }
html[data-theme="dark"] .solo-card-mark { background: #202a33; box-shadow: 8px 9px 0 rgba(0,0,0,.18); }
html[data-theme="dark"] .button.is-set { border-color: #52697b; background: #1d2e3a; color: var(--navy); }
html[data-theme="dark"] .button.is-bock-set { border-color: #6d5d31; background: #322b19; color: #e6c778; }
html[data-theme="dark"] .black-lost-summary { background: #2a1e1e; border-color: #623b39; }
html[data-theme="dark"] .score-cell.is-sitting-out { background-image: repeating-linear-gradient(-45deg, rgba(180,190,200,.035), rgba(180,190,200,.035) 6px, transparent 6px, transparent 12px); }
html[data-theme="dark"] .scoreboard .is-current-dealer-col { background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
html[data-theme="dark"] .scoreboard tfoot .is-current-dealer-col { background: color-mix(in srgb, var(--gold) 20%, #17324d); }
