:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #17253b; background: #f3f6fa; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: #234e87; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid #387ac6; outline-offset: 4px; }
.shell { width: min(900px, calc(100% - 32px)); margin: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; font-size: 14px; }
.wordmark { text-decoration: none; font-size: 25px; font-weight: 900; letter-spacing: -.8px; color: #172c52; }
.wordmark span { display: block; font-size: 10px; letter-spacing: 2px; color: #54708e; }
.draw-header { background: #182e56; color: white; border-radius: 18px; padding: 28px; box-shadow: 0 8px 24px #13294b12; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: #b8d2f2; }
h1 { margin: 10px 0 24px; font-size: clamp(25px, 5vw, 36px); line-height: 1.2; overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding-top: 20px; border-top: 1px solid #ffffff30; }
dt { font-size: 12px; color: #bfd0e6; margin-bottom: 5px; }
dd { margin: 0; font-size: 17px; font-weight: 700; }
.feed-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 0 4px; font-size: 12px; color: #536275; }
.feed-bar p { flex: 1; margin: 0; }
.live-badge { border-radius: 30px; padding: 6px 10px; background: #d8f5e7; color: #146440; font-weight: 800; }
.notice { padding: 12px 14px; margin: 12px 0 20px; border: 1px solid #dee6ed; border-radius: 10px; color: #536275; background: #fff; font-size: 12px; line-height: 1.6; }
.result-list { display: grid; gap: 18px; }
.live-tier-card { background: #fff; border: 1px solid #bce6d4; border-radius: 15px; overflow: hidden; box-shadow: 0 3px 10px #17253b04; }
.live-tier-heading { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 18px; background: #dcf7e9; border-bottom: 1px solid #bce6d4; }
.live-tier-heading h3 { margin: 0; font-size: 17px; }
.live-tier-heading > strong { font-size: 17px; color: #205f49; }
.chip { margin-left: auto; padding: 3px 10px; border-radius: 20px; background: #ffffffb3; color: #205f49; font-size: 13px; font-weight: 800; }
.live-number-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; padding: 14px; }
.live-number-grid.serial-values { grid-template-columns: 1fr; }
.live-number-cell { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 7px; border: 1px solid #e0e5ec; border-radius: 9px; background: #f8fafc; font-size: 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.serial-values .live-number-cell { justify-content: flex-start; padding: 12px; }
.live-number-cell span { color: #b55050; font-size: 13px; font-weight: 700; }
.live-number-grid p { grid-column: 1 / -1; margin: 4px; color: #697b8d; font-size: 14px; }
.live-consolation { margin: 0 14px 14px; border: 1px solid #f0dea2; border-radius: 9px; padding: 12px; background: #fff8d9; color: #705615; }
.live-consolation p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
footer { padding: 28px 0; color: #6b7a8d; text-align: center; font-size: 12px; }
[hidden] { display: none !important; }
@media(max-width: 520px) {
  .shell { width: calc(100% - 24px); }
  .topbar { padding: 18px 0; font-size: 12px; }
  .draw-header { padding: 22px 18px; }
  dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  dd { font-size: 15px; }
  .live-tier-heading { padding: 12px; gap: 8px; }
  .live-tier-heading h3, .live-tier-heading > strong { font-size: 15px; }
  .live-number-grid { padding: 10px; gap: 6px; }
  .feed-bar p { min-width: 140px; }
}
