/* Approved Open Design scorekeeper layout, with native form and theme fallbacks. */
:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --surface: #fdfcf9;
  --fg: #28231e;
  --muted: #655c51;
  --border: #d0cbbf;
  --accent: #994a28;
  --accent-hover: #783b20;
  --on-accent: #fdfcf9;
  --subtle: #efebe4;
  --control-border: #847b6f;
  --success: #315c45;
  --success-bg: #e9f1e9;
  --danger: #983d33;
  --danger-bg: #faece7;
  --shadow: #28231e1a;
  --backdrop: #211d1980;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  --space: 8px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171411;
  --surface: #201c18;
  --fg: #eeebe4;
  --muted: #aaa295;
  --border: #eeebe42e;
  --accent: #eaa66e;
  --accent-hover: #f4bd8f;
  --on-accent: #20170e;
  --subtle: #29251f;
  --control-border: #847c70;
  --success: #a6c5ac;
  --success-bg: #203027;
  --danger: #efa594;
  --danger-bg: #35211c;
  --shadow: #08070642;
  --backdrop: #0e0b08bf;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #171411;
  --surface: #201c18;
  --fg: #eeebe4;
  --muted: #aaa295;
  --border: #eeebe42e;
  --accent: #eaa66e;
  --accent-hover: #f4bd8f;
  --on-accent: #20170e;
  --subtle: #29251f;
  --control-border: #847c70;
  --success: #a6c5ac;
  --success-bg: #203027;
  --danger: #efa594;
  --danger-bg: #35211c;
  --shadow: #08070642;
  --backdrop: #0e0b08bf;
}
}
@supports (color: oklch(0.5 0.1 50)) {
:root {
  color-scheme: light;
  --bg: oklch(0.968 0.009 85);
  --surface: oklch(0.991 0.004 85);
  --fg: oklch(0.245 0.017 65);
  --muted: oklch(0.49 0.019 65);
  --border: oklch(0.847 0.012 75);
  --accent: oklch(0.49 0.135 43);
  --accent-hover: oklch(0.41 0.12 43);
  --on-accent: oklch(0.99 0.003 85);
  --subtle: oklch(0.943 0.009 85);
  --control-border: oklch(0.60 0.014 65);
  --success: oklch(0.39 0.069 155);
  --success-bg: oklch(0.951 0.016 155);
  --danger: oklch(0.46 0.13 29);
  --danger-bg: oklch(0.96 0.018 35);
  --shadow: oklch(0.245 0.017 65 / 0.10);
  --backdrop: oklch(0.20 0.014 65 / 0.50);
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  --space: 8px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.19 0.01 65);
  --surface: oklch(0.225 0.011 65);
  --fg: oklch(0.933 0.009 85);
  --muted: oklch(0.708 0.017 75);
  --border: oklch(0.933 0.009 85 / 0.18);
  --accent: oklch(0.76 0.126 51);
  --accent-hover: oklch(0.84 0.105 51);
  --on-accent: oklch(0.20 0.018 55);
  --subtle: oklch(0.265 0.011 65);
  --control-border: oklch(0.60 0.014 75);
  --success: oklch(0.79 0.075 155);
  --success-bg: oklch(0.265 0.028 155);
  --danger: oklch(0.80 0.09 35);
  --danger-bg: oklch(0.275 0.034 35);
  --shadow: oklch(0.08 0.005 65 / 0.26);
  --backdrop: oklch(0.10 0.008 65 / 0.75);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: oklch(0.19 0.01 65);
  --surface: oklch(0.225 0.011 65);
  --fg: oklch(0.933 0.009 85);
  --muted: oklch(0.708 0.017 75);
  --border: oklch(0.933 0.009 85 / 0.18);
  --accent: oklch(0.76 0.126 51);
  --accent-hover: oklch(0.84 0.105 51);
  --on-accent: oklch(0.20 0.018 55);
  --subtle: oklch(0.265 0.011 65);
  --control-border: oklch(0.60 0.014 75);
  --success: oklch(0.79 0.075 155);
  --success-bg: oklch(0.265 0.028 155);
  --danger: oklch(0.80 0.09 35);
  --danger-bg: oklch(0.275 0.034 35);
  --shadow: oklch(0.08 0.005 65 / 0.26);
  --backdrop: oklch(0.10 0.008 65 / 0.75);
}
}
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; background: var(--bg); }
body { margin: 0; color: var(--fg); font: 400 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { touch-action: manipulation; }
button { cursor: pointer; letter-spacing: 0.02em; }
button:disabled { cursor: not-allowed; }
button, input, select { border-radius: 3px; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
button:active:not(:disabled) { transform: translateY(1px); }
svg { width: 20px; height: 20px; flex: 0 0 auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); text-wrap: balance; }
button { transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 30; background: var(--fg); color: var(--surface); padding: 12px 16px; }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1152px; min-height: 76px; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 32px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; font-size: 14px; font-weight: 650; letter-spacing: 0.08em; }
.brand-mark { width: 25px; height: 25px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.text-button { background: transparent; color: var(--fg); border: 0; padding: 10px 8px; min-height: 44px; font-weight: 500; }
.text-button:hover { background: var(--subtle); }
.rules-trigger { font-size: 13px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--fg); border: 1px solid transparent; flex-shrink: 0; }
.icon-button:hover { background: var(--subtle); border-color: var(--control-border); }
.sun-icon, [data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
.main-layout { position: relative; width: min(100%, 1104px); margin: 24px auto 0; padding: 0 24px 24px; }
.play-column { width: min(100%, 496px); margin: 0 auto; min-width: 0; }
.mode-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 19px; }
.mode-switch { display: flex; gap: 18px; }
.mode-button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 10px 2px; color: var(--muted); min-height: 44px; font-weight: 550; }
.mode-button:hover { color: var(--fg); border-bottom-color: var(--control-border); }
.mode-button.is-active { color: var(--fg); border-bottom-color: var(--fg); }
.mode-note { font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }
.score-sheet { background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--fg); box-shadow: 0 3px 8px -6px var(--shadow); container-type: inline-size; }
.puzzle-heading { padding: 18px 28px 18px; border-bottom: 1px solid var(--border); }
.puzzle-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; font-weight: 550; letter-spacing: 0.08em; line-height: 1.5; }
.meta-separator { margin: 0 7px; color: var(--muted); }
.puzzle-type { color: var(--muted); }
.puzzle-heading h1 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; margin-top: 6px; }
.score-area { text-align: center; padding: 20px 28px; }
.eyebrow { display: block; font-size: 10px; line-height: 1.5; letter-spacing: 0.10em; font-weight: 600; text-transform: uppercase; }
.score-label { color: var(--muted); }
.score { font-size: 140px; font-size: clamp(100px, 29vw, 148px); font-size: clamp(100px, 29cqi, 148px); font-weight: 550; line-height: 1.04; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; margin: -2px 0 0; padding-right: 0.03em; }
.objective { font-size: 13px; color: var(--muted); }
.objective strong { color: var(--accent); font-weight: 600; }
.guess-progress { display: flex; justify-content: center; align-items: center; gap: 17px; margin-top: 21px; }
.guess-markers { display: flex; gap: 7px; margin: 0; padding: 0; list-style: none; }
.guess-marker { display: flex; align-items: center; justify-content: center; width: 23px; height: 23px; border: 1px solid var(--control-border); border-radius: 50%; font-size: 10px; font-weight: 550; color: var(--muted); font-variant-numeric: tabular-nums; }
.guess-marker.is-current { border-color: var(--fg); border-width: 1.5px; color: var(--fg); }
.guess-marker.is-used { background: var(--fg); border-color: var(--fg); color: var(--surface); }
.guess-marker.is-bust { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.guess-count { font-size: 11px; letter-spacing: 0.01em; color: var(--muted); }
.play-controls { padding: 0 28px 23px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.field-label-row label { font-size: 13px; font-weight: 600; }
.field-note { font-size: 11px; color: var(--muted); letter-spacing: 0.01em; }
.search-region { position: relative; }
.search-field { display: flex; align-items: center; border: 1px solid var(--control-border); background: var(--surface); border-radius: 3px; min-height: 52px; padding-left: 13px; }
.search-field > svg { color: var(--muted); width: 18px; height: 18px; }
.search-field:focus-within { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.search-field input { background: transparent; color: var(--fg); border: 0; outline: none; border-radius: 0; padding: 13px 9px; width: 100%; min-width: 0; height: 50px; font-size: 16px; line-height: 24px; letter-spacing: 0; }
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field input::-webkit-search-cancel-button { display: none; }
.clear-search { margin-right: 2px; width: 44px; }
.search-help { margin: 7px 0 14px; font-size: 11px; color: var(--muted); letter-spacing: 0.01em; }
.primary-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 15px; background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent); font-weight: 600; font-size: 13px; text-align: left; }
.primary-button:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.primary-button:disabled { color: var(--muted); background: var(--subtle); border-color: var(--border); }
.search-popover { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 5; border: 1px solid var(--control-border); border-radius: 3px; background: var(--surface); box-shadow: 0 12px 24px var(--shadow); }
.player-options { list-style: none; padding: 4px; margin: 0; max-height: 268px; overflow-y: auto; overscroll-behavior: contain; }
.player-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; padding: 11px; cursor: pointer; border-radius: 2px; font-size: 14px; }
.player-option + .player-option { border-top: 1px solid var(--border); }
.player-option:hover, .player-option[aria-selected="true"] { background: var(--subtle); color: var(--fg); }
.player-option .player-team { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); flex-shrink: 0; }
.search-empty { padding: 18px 14px; font-size: 13px; color: var(--muted); }
.feedback { padding: 12px 13px; margin-top: 14px; font-size: 13px; line-height: 1.5; background: var(--success-bg); color: var(--success); border: 1px solid currentColor; border-radius: 2px; }
.feedback.is-error { color: var(--danger); background: var(--danger-bg); }
.feedback strong { font-weight: 600; }
.feedback-detail { display: block; margin-top: 2px; font-size: 12px; }
.ledger { border-top: 1px solid var(--border); padding: 18px 28px 0; }
.ledger-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ledger-heading h2 { font-size: 13px; font-weight: 600; }
.ledger-heading > span { color: var(--muted); font-size: 9px; letter-spacing: 0.08em; }
.empty-ledger { display: flex; align-items: center; gap: 13px; padding: 20px 0 22px; }
.empty-ledger-mark { color: var(--muted); font-size: 24px; font-weight: 400; }
.empty-ledger p { font-size: 12px; line-height: 1.6; }
.empty-ledger p span { color: var(--muted); }
table { border-collapse: collapse; width: 100%; table-layout: fixed; margin-top: 13px; font-variant-numeric: tabular-nums; }
th { color: var(--muted); text-align: left; font-size: 10px; font-weight: 500; letter-spacing: 0.06em; padding: 6px 0 8px; }
td { border-top: 1px solid var(--border); padding: 11px 0; vertical-align: middle; font-size: 13px; }
.attempt-col { width: 25px; color: var(--muted); font-size: 11px; }
.number-col { text-align: right; width: 54px; }
td.number-col { font-size: 15px; }
td:last-child { font-weight: 600; }
.ledger-player { padding-right: 8px; overflow-wrap: anywhere; font-weight: 550; }
.ledger-team { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0.06em; color: var(--muted); margin-top: 1px; }
.ledger-bust .stat-value { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.bust-tag { display: block; font-size: 9px; color: var(--danger); letter-spacing: 0.06em; font-weight: 600; }
.sheet-footer { border-top: 1px solid var(--border); margin: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 49px; color: var(--muted); font-size: 10px; letter-spacing: 0.01em; }
.footer-rules { font-size: 10px; color: var(--fg); padding-right: 0; white-space: nowrap; }
.footer-rules span { margin-left: 4px; }
.quiet-sidebar { display: none; position: absolute; left: calc(50% + 304px); top: 127px; width: 169px; }
.sidebar-rule { display: block; height: 2px; width: 24px; background: var(--fg); margin-bottom: 18px; }
.quiet-sidebar .eyebrow { font-size: 9px; line-height: 1.6; color: var(--muted); }
.quiet-sidebar > p:first-of-type { font-size: 22px; font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; margin-top: 15px; }
.quiet-sidebar .sidebar-detail { font-size: 12px; line-height: 1.7; margin-top: 19px; color: var(--muted); }
.sidebar-detail strong { font-weight: 550; color: var(--fg); }
.sidebar-note { display: flex; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 22px; }
.sidebar-note > span { color: var(--fg); font-size: 18px; line-height: 1.2; }
.result-panel { padding: 0 28px 21px; }
.result-heading { border-top: 1px solid var(--border); padding-top: 20px; }
.result-heading .eyebrow { color: var(--success); margin-bottom: 7px; }
.result-heading h2 { font-size: 25px; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; }
.result-panel > p { font-size: 13px; color: var(--muted); margin-top: 8px; max-width: 45ch; }
.share-preview { margin: 17px 0 14px; border: 1px dashed var(--control-border); padding: 14px 16px; }
.share-brand { font-size: 9px; letter-spacing: 0.10em; font-weight: 600; }
.share-markers { display: flex; gap: 5px; margin: 9px 0; }
.share-cell { width: 16px; height: 16px; border: 1px solid var(--control-border); }
.share-cell.is-used { background: var(--fg); border-color: var(--fg); }
.share-cell.is-bust { background: var(--danger-bg); border-color: var(--danger); display: flex; align-items: center; justify-content: center; color: var(--danger); font-size: 13px; }
.share-caption { font-size: 11px; color: var(--muted); }
.practice-link { font-size: 12px; width: 100%; margin-top: 5px; }
.practice-link span { margin-left: 5px; }
.result-panel .share-status { font-size: 12px; overflow-wrap: anywhere; }
.score-sheet.is-won .score { color: var(--success); }
.score-sheet.is-lost .result-heading .eyebrow { color: var(--muted); }
.availability { min-height: 463px; display: flex; align-items: center; justify-content: center; text-align: center; flex-direction: column; padding: 40px 28px; }
.availability-symbol { display: flex; gap: 6px; margin-bottom: 28px; height: 28px; align-items: flex-end; }
.availability-symbol span { width: 5px; height: 22px; background: var(--fg); animation: tally 1.1s ease-in-out infinite alternate; transform-origin: bottom; }
.availability-symbol span:nth-child(2) { height: 16px; animation-delay: 160ms; }
.availability-symbol span:nth-child(3) { height: 10px; animation-delay: 320ms; }
.availability.is-unavailable .availability-symbol { font-size: 38px; line-height: 1; color: var(--muted); }
.availability > .eyebrow { color: var(--muted); margin-bottom: 9px; }
.availability h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.availability p { font-size: 13px; color: var(--muted); max-width: 29ch; margin-top: 10px; text-wrap: pretty; }
.availability .primary-button { margin-top: 28px; }
.availability .text-button { margin-top: 6px; font-size: 12px; }
.rules-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 20px 28px 23px; border: 1px solid var(--border); border-top: 2px solid var(--fg); border-radius: 3px; background: var(--surface); color: var(--fg); box-shadow: 0 20px 80px var(--shadow); overflow-y: auto; overscroll-behavior: contain; }
.rules-dialog::backdrop { background: var(--backdrop); }
body:has(.rules-dialog[open]) { overflow: hidden; }
.dialog-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dialog-topline .eyebrow { color: var(--muted); }
.dialog-topline .icon-button { margin-right: -9px; }
.rules-dialog h2 { font-size: 34px; font-weight: 600; line-height: 1.13; letter-spacing: -0.03em; }
.rules-intro { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.rules-list { list-style: none; margin: 21px 0 16px; padding: 0; }
.rules-list li { display: flex; gap: 14px; border-top: 1px solid var(--border); padding: 15px 0; }
.rule-number { font-size: 11px; padding-top: 3px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rules-list h3 { font-size: 14px; font-weight: 600; line-height: 1.5; }
.rules-list p { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.rules-fineprint { font-size: 12px; line-height: 1.6; color: var(--muted); padding: 14px; background: var(--subtle); }
.rules-mode-note { display: grid; grid-template-columns: 53px 1fr; gap: 7px 12px; font-size: 12px; margin: 18px 0 22px; }
.rules-mode-note strong { font-weight: 550; }
.rules-mode-note span { color: var(--muted); }
@keyframes tally { from { transform: scaleY(0.5); } to { transform: scaleY(1); } }
@media (min-width: 1160px) { .quiet-sidebar { display: block; } }
@media (max-width: 600px) {
  .site-header { min-height: 73px; padding-inline: 20px; }
  .wordmark { font-size: 12px; gap: 7px; letter-spacing: 0.075em; }
  .brand-mark { width: 21px; height: 21px; }
  .header-actions { gap: 3px; }
  .rules-trigger { font-size: 11px; padding-inline: 7px; }
  .main-layout { margin-top: 14px; padding-inline: 16px; }
  .mode-row { margin-bottom: 14px; }
  .mode-switch { gap: 18px; }
  .mode-button { font-size: 14px; }
  .mode-note { font-size: 10px; }
  .puzzle-heading { padding: 19px 21px 18px; }
  .puzzle-heading h1 { font-size: 22px; }
  .score-area { padding: 22px 20px; }
  .score { font-size: 112px; font-size: clamp(104px, 32vw, 140px); font-size: clamp(104px, 32cqi, 140px); line-height: 1.18; }
  .guess-progress { margin-top: 20px; gap: 14px; }
  .guess-markers { gap: 6px; }
  .guess-marker { width: 22px; height: 22px; }
  .play-controls { padding: 0 20px 21px; }
  .field-note { display: none; }
  .ledger { padding: 17px 20px 0; }
  .sheet-footer { margin-inline: 20px; }
  .result-panel { padding: 0 20px 20px; }
}
@media (max-width: 359px) {
  .site-header { padding-inline: 12px; }
  .wordmark { font-size: 10px; gap: 6px; }
  .brand-mark { width: 18px; height: 18px; }
  .rules-trigger { font-size: 10px; padding-inline: 4px; }
  .main-layout { padding-inline: 12px; }
  .mode-note { font-size: 9px; }
  .puzzle-heading { padding-inline: 16px; }
  .puzzle-heading h1 { font-size: 21px; }
  .score-area { padding-inline: 16px; }
  .guess-progress { gap: 10px; }
  .guess-markers { gap: 5px; }
  .guess-marker { width: 21px; height: 21px; }
  .guess-count { font-size: 10px; }
  .play-controls, .result-panel { padding-inline: 16px; }
  .ledger { padding-inline: 16px; }
  .sheet-footer { margin-inline: 16px; font-size: 9px; }
  .number-col { width: 42px; }
  .ledger-player { font-size: 12px; }
  .rules-dialog { padding: 16px 20px 20px; }
  .rules-dialog h2 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}



/* Production navigation, progressive enhancement, and supporting pages. */
form { margin: 0; }
a.text-button, a.mode-button, a.primary-button { text-decoration: none; }
a.text-button { display: inline-flex; align-items: center; }
a.mode-button { display: inline-block; }
.js-only { display: none; }
html.js .js-only { display: block; }
html.js .primary-button.js-only { display: flex; }
html.js .icon-button.js-only { display: inline-flex; }
html.js .no-js-only { display: none !important; }
dialog:not([open]) { display: none; }
.fallback-results { border: 1px solid var(--border); margin-top: 14px; }
.fallback-player { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 0; border-bottom: 1px solid var(--border); color: var(--fg); background: var(--surface); text-align: left; font-size: 13px; }
.fallback-player:hover:not(:disabled) { background: var(--subtle); }
.fallback-player:disabled { color: var(--muted); }
.fallback-player small { display: block; font-size: 10px; color: var(--muted); }
.fallback-player > span:last-child { flex-shrink: 0; font-size: 11px; }
.player-option[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.puzzle-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.rules-fallback { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 12px; }
.rules-fallback summary { padding: 8px 0; cursor: pointer; font-weight: 600; font-size: 13px; }
.site-footer { width: min(100% - 48px, 496px); margin: 5px auto 0; padding: 18px 0 30px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.site-footer > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; align-items: center; gap: 16px; }
.site-footer a { text-underline-offset: 3px; }
.maker-credit { margin-top: 15px; text-align: center; font-size: 11px; letter-spacing: 0.025em; color: var(--fg); }
.content-sheet { width: min(100%, 560px); margin: 0 auto; padding: 28px; border: 1px solid var(--border); border-top: 2px solid var(--fg); background: var(--surface); }
.content-sheet > .eyebrow { color: var(--muted); margin-bottom: 10px; }
.content-sheet h1 { font-size: 32px; letter-spacing: -0.03em; line-height: 1.2; }
.content-sheet h2 { font-size: 18px; margin-top: 25px; }
.content-sheet p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 13px; }
.content-sheet .primary-button, .content-sheet form { margin-top: 20px; }
.content-back { margin-top: 20px; padding-left: 0; }
.error-reference { overflow-wrap: anywhere; font-size: 11px !important; }
.share-text { display: block; width: 100%; min-height: 130px; padding: 12px; margin-top: 14px; resize: vertical; border: 1px solid var(--control-border); border-radius: 3px; background: var(--surface); color: var(--fg); font: 12px/1.6 var(--font-mono); }
@media (max-width: 600px) { .site-footer { width: calc(100% - 32px); } .content-sheet { padding: 23px 20px; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .moon-icon { display: none; }
  :root:not([data-theme]) .sun-icon { display: block; }
}
@container (max-width: 380px) { .field-note { display: none; } }
