@font-face {
  font-family: Barlow;
  src: url('/fonts/barlow-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url('/fonts/barlow-semibold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --surface: #fcfaf4;
  --text: #20231f;
  --muted: #62645b;
  --line: #cccac0;
  --accent: #a33428;
  --gold: #edc56b;
  --good: #3b654a;
  --warning: #a33428;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-family: Barlow, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font-size: 16px; line-height: 1.55; -webkit-tap-highlight-color: #a3342820; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
h1 { font-size: clamp(3.4rem, 7.5vw, 6.25rem); line-height: .94; letter-spacing: -.015em; }
h2 { font-size: 2rem; line-height: 1.05; letter-spacing: .01em; }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
a { color: var(--accent); text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { color: var(--text); }
button, .button {
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid var(--text);
  border-radius: 2px;
  min-height: 44px;
  padding: 9px 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; }
button:hover:not(:disabled), .button:hover:not([aria-disabled='true']) { background: var(--text); color: var(--bg); }
button:active:not(:disabled), .button:active:not([aria-disabled='true']) { background: var(--accent); color: var(--surface); border-color: var(--accent); }
button:disabled, .button[aria-disabled='true'] { color: var(--muted); border-color: var(--line); background: transparent; cursor: not-allowed; }
a[aria-disabled='true'] { pointer-events: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[tabindex='-1']:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
.shell { max-width: 1200px; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); margin-inline: auto; }
.site-header { border-top: 5px solid var(--accent); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.identity { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.identity > span { min-width: 0; }
.brand-image { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.wordmark { display: block; font-family: var(--display); font-size: 1.65rem; font-weight: 700; letter-spacing: .025em; line-height: 1; text-transform: uppercase; }
.eyebrow { display: block; color: var(--muted); text-transform: uppercase; font-size: .75rem; line-height: 1.5; font-weight: 600; letter-spacing: .08em; }
.network-label { color: var(--muted); font-size: .75rem; font-family: var(--mono); text-align: right; }
.header-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 0; max-width: 50%; text-align: right; }
.header-meta .connection { font-size: .75rem; }
.contract-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--line); padding-block: 14px; }
.contract-value { display: flex; align-items: baseline; gap: 8px 20px; flex: 1 1 350px; min-width: 0; flex-wrap: wrap; }
.contract-value .eyebrow { flex-shrink: 0; }
.address { font-family: var(--mono); font-size: .8125rem; overflow-wrap: anywhere; word-break: break-word; }
.contract-value .address { color: var(--text); }
.contract-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contract-actions .button, .contract-actions button { font-size: .8125rem; }
.quiet { background: transparent; }
.copy-feedback { font-size: .8125rem; color: var(--accent); }
.copy-feedback:not(:empty) { padding-bottom: 12px; }
.live-game { padding-top: 24px; }
.live-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px 24px; margin-bottom: 24px; }
.hero-copy { min-width: 0; }
.intro { font-size: 1.0625rem; margin-top: 16px; max-width: 65ch; color: var(--muted); text-wrap: balance; }
.connection { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8125rem; }
.connection::before { content: ''; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.connection.current { color: var(--good); }
.connection.stale { color: var(--warning); }
.notice { border-left: 3px solid var(--accent); padding: 3px 0 3px 14px; font-size: .875rem; color: var(--muted); max-width: 85ch; }
.scoreboard { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 24px; border: 1px solid var(--text); background: var(--surface); }
.clock-block, .pot-block { min-width: 0; padding: 24px; }
.clock-block { container-type: inline-size; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 24px; }
.clock-block .section-heading { margin-bottom: 0; }
.subtle { color: var(--muted); font-size: .875rem; }
#round-label { font-family: var(--mono); font-size: .75rem; }
.timer { --clock-size: min(clamp(6.5rem, 23vw, 11.5rem), 44cqi); font-family: var(--display); font-size: var(--clock-size); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.025em; line-height: 1; margin: 12px 0 8px; min-height: var(--clock-size); display: flex; align-items: center; white-space: nowrap; }
.timer.word { font-size: min(clamp(3.5rem, 14vw, 5.75rem), 27cqi); text-transform: uppercase; white-space: normal; overflow-wrap: anywhere; }
.timer.unavailable { color: #77786d; }
.clock-caption { min-height: 2.8em; color: var(--muted); font-size: .875rem; max-width: 48ch; }
.time-track { height: 4px; background: var(--line); margin: 20px 0; overflow: hidden; }
#time-fill { height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.leader-block { min-width: 0; }
.provisional { color: var(--accent); font-weight: 400; letter-spacing: .025em; }
.leader { font-size: 1.25rem; font-weight: 600; margin-top: 8px; min-height: 1.55em; overflow-wrap: anywhere; }
.leader a { color: var(--text); font-weight: 400; font-size: .875rem; display: inline-flex; align-items: center; min-height: 44px; }
.winning-buy { color: var(--muted); font-size: .8125rem; margin-top: 4px; min-height: 1.55em; overflow-wrap: anywhere; }
.winning-buy a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 8px; }
.pot-block { --text: #f4f1e8; --muted: #c5c5b8; --line: #64665a; --accent: #edc56b; background: #20231f; color: var(--text); border-top: 1px solid #20231f; }
.pot { font-family: var(--display); font-size: clamp(2.5rem, 7.5vw, 4.5rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.05; margin: 12px 0; overflow-wrap: anywhere; }
.pot .unit { display: inline-block; font-family: Barlow, sans-serif; font-size: 1rem; font-weight: 400; color: var(--muted); margin-left: 10px; }
.pending-fees { margin: 24px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.pending-fees strong { display: block; font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; margin: 4px 0; overflow-wrap: anywhere; }
.pending-fees .subtle { font-size: .8125rem; }
.primary { width: 100%; min-height: 48px; background: var(--gold); border-color: var(--gold); color: #20231f; }
.primary:hover:not([aria-disabled='true']) { background: #f5d48c; border-color: #f5d48c; color: #20231f; }
.primary[aria-disabled='true'] { border-color: var(--line); background: #30332b; }
.help { color: var(--muted); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.pot-block .help { margin-top: 10px; }
.help strong { font-weight: 600; color: var(--text); }
.settlement-note { padding: 14px 0 28px; max-width: 95ch; font-size: .8125rem; color: var(--muted); }
.tabs { display: flex; gap: 28px; border-bottom: 2px solid var(--text); }
.tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; min-height: 52px; padding: 12px 2px; color: var(--muted); font-size: 1rem; }
.tabs button[aria-selected='true'] { border-bottom-color: var(--accent); color: var(--accent); }
.tabs button:hover:not(:disabled) { color: var(--text); background: transparent; border-bottom-color: var(--text); }
.panel { min-width: 0; border-bottom: 1px solid var(--line); padding-block: 32px; }
.section-note { font-size: .875rem; color: var(--muted); margin: -8px 0 20px; max-width: 72ch; }
.rule-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.rule-grid li { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.rule-number { font-family: var(--display); color: var(--accent); font-size: 1.5rem; font-weight: 700; line-height: 1; padding-top: 1px; }
.rule-grid p { font-size: 1rem; color: var(--muted); margin-top: 8px; text-wrap: pretty; }
details { font-size: .9375rem; }
summary { cursor: pointer; min-height: 44px; padding-block: 12px; color: var(--text); touch-action: manipulation; }
summary:hover { color: var(--accent); }
summary::marker { color: var(--accent); }
.rule-details { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--line); }
.detail-copy { max-width: 78ch; color: var(--muted); padding-top: 8px; }
.detail-copy p { margin-bottom: 16px; }
.history-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; table-layout: fixed; }
.history-table th { color: var(--muted); font-size: .75rem; font-weight: 600; padding: 12px 10px; }
.history-table th:first-child { width: 18%; }
.history-table th:nth-child(2) { width: 28%; }
.history-table th:nth-child(3), .history-table th:nth-child(4) { width: 16%; }
.history-table th:last-child { width: 22%; }
.history-table td { border-top: 1px solid var(--line); padding: 18px 10px; vertical-align: top; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.history-table a, .transfer-list a { min-height: 44px; display: inline-flex; align-items: center; }
.history-table .address { font-size: .75rem; }
.cell-detail { display: block; color: var(--muted); font-size: .75rem; margin-top: 5px; overflow-wrap: anywhere; }
.status { display: inline-block; border: 1px solid currentColor; padding: 2px 7px; border-radius: 2px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.status-paid { color: var(--good); }
.status-settling, .status-pending, .status-reserved, .status-signed, .status-submitted { color: #805514; }
.status-failed, .status-ambiguous, .status-voided, .status-cancelled { color: var(--warning); }
.history-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.history-controls > div { min-width: 0; }
.history-controls .help { margin-bottom: 8px; }
.history-controls button, .treasury-panel button { margin: 0 8px 8px 0; }
.empty-state { color: var(--muted); font-size: .9375rem; padding: 24px 0; }
.treasury-grid { display: grid; gap: 24px; }
.treasury-grid > div { min-width: 0; }
.treasury-address { margin-top: 10px; }
.treasury-address a { display: inline-flex; align-items: center; min-height: 44px; }
.totals { margin: 12px 0 0; font-size: .875rem; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; min-width: 0; }
.transfer-list { list-style: none; margin: 8px 0 12px; padding: 0; }
.transfer-list li { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: .875rem; }
.transfer-heading { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.system-status { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; font-size: .875rem; }
.system-status > .help { margin-top: 6px; }
.system-status details { margin-top: 6px; }
.technical { max-width: 680px; }
.updates-panel { min-height: 210px; }
.update { padding: 28px 0; border-top: 1px solid var(--line); }
.update h3 { font-family: var(--display); font-size: 2.25rem; font-weight: 700; line-height: 1.1; margin: 10px 0 16px; }
.update-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); max-width: 68ch; font-size: 1.0625rem; }
.update-dates { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8125rem; color: var(--muted); }
.update-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; padding: 0; list-style: none; }
.update-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
footer { padding: 28px 0 max(32px, env(safe-area-inset-bottom)); color: var(--muted); font-size: .875rem; }
footer > p { max-width: 85ch; }
footer strong { color: var(--text); font-weight: 600; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; font-size: .8125rem; }
.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: -100px; left: 16px; padding: 12px; background: var(--text); color: var(--bg); z-index: 30; }
.skip-link:focus { top: 12px; color: var(--bg); }
@media (max-width: 639px) {
  .contract-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .contract-value { display: block; }
  .contract-value .address { display: block; margin-top: 4px; }
  .contract-actions button, .contract-actions .button { padding-inline: 10px; }
  .live-heading { margin-bottom: 20px; }
  .history-table, .history-table tbody, .history-table tr, .history-table td { display: block; width: 100%; }
  .history-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .history-table tr { border-top: 1px solid var(--line); padding-block: 16px; }
  .history-table td { border: 0; padding: 6px 0; }
  .history-table td[data-label] { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; align-items: start; }
  .history-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .8125rem; padding-top: 2px; }
  .history-table td > div { min-width: 0; }
}
@media (min-width: 640px) {
  .shell { padding-inline: 32px; }
  .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .clock-block, .pot-block { padding: 32px; }
  .live-game { padding-top: 40px; }
}
@media (min-width: 900px) {
  .scoreboard { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .pot-block { border-top: 0; border-left: 1px solid #20231f; }
  .timer { --clock-size: min(11.5rem, 44cqi); }
  .timer.word { font-size: min(5.75rem, 27cqi); }
  .clock-caption { min-height: 1.55em; }
  .treasury-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
  .panel { padding-block: 40px; }
}
@media (min-width: 1100px) {
  .rule-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rule-grid li { display: block; }
  .rule-number { display: block; margin-bottom: 14px; font-size: 2rem; }
}
@media (max-width: 360px) {
  .shell { padding-inline: 16px; }
  .clock-block, .pot-block { padding: 20px; }
  .wordmark { font-size: 1.4rem; }
  .header-row { gap: 8px; }
  .history-table td[data-label] { grid-template-columns: 5.5rem minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
