:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17191c;
  background: #f2f2f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #17191c;
  --muted: #777b83;
  --line: #e5e5ea;
  --blue: #1769e0;
  --red: #e44848;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f2f2f7; }
button, input { font: inherit; }
.shell { width: min(100%, 720px); min-height: 100svh; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); }
.live-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--red); }
.day-kicker { color: #777b83; font-size: 10px; font-weight: 750; letter-spacing: .12em; }
.day-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 2px 8px #17191c08; }
.day-copy { display: grid; gap: 4px; min-width: 0; }
.day-copy strong { font-size: 15px; }
.day-kicker { font-size: 9px; }
.day-controls { display: flex; align-items: center; gap: 7px; }
.icon-button, .today-button { min-height: 42px; border: 0; border-radius: 12px; background: #f2f2f7; color: var(--ink); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.icon-button { width: 42px; font-size: 24px; line-height: 1; }
.today-button { padding: 0 13px; font-size: 12px; font-weight: 700; }
.icon-button:hover, .today-button:hover { background: #e9e9ef; }
.icon-button:active, .today-button:active { transform: scale(.96); }
button:focus-visible, a:focus-visible { outline: 3px solid #1769e055; outline-offset: 2px; }
#date-picker { position: absolute; width: 1px; height: 1px; right: 4px; top: 4px; opacity: 0; pointer-events: none; }
.section-heading { display: flex; align-items: center; gap: 9px; margin: 24px 1px 13px; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.035em; }
.count { min-width: 24px; padding: 4px 8px; border-radius: 20px; background: #e5e5eb; color: #686c74; font-size: 10px; font-weight: 800; text-align: center; }
.games { display: grid; gap: 10px; }
.game-card { overflow: hidden; padding: 15px 15px 13px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 2px 8px #17191c08; }
.game-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #858991; font-size: 10px; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 7px; color: #777b83; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #bbc0c8; }
.status.live { color: #cc3535; }
.status.live::before { background: var(--red); box-shadow: 0 0 0 4px #ffeded; }
.status.break { color: #b66e14; }
.status.break::before { background: #e7a238; }
.status.finished { color: #777b83; }
.match-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; gap: 8px; padding: 18px 0 15px; }
.team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.team.away { justify-content: flex-end; text-align: right; }
.team-name { font-size: 13px; line-height: 1.25; font-weight: 750; letter-spacing: -.02em; }
.team-city { margin-top: 3px; color: #92959c; font-size: 10px; }
.crest { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #f2f2f7; color: #646a74; font-size: 10px; font-weight: 800; letter-spacing: -.04em; }
.team.away .crest { order: 2; }
.crest img { width: 100%; height: 100%; border-radius: inherit; object-fit: contain; }
.score { text-align: center; white-space: nowrap; font-size: 23px; font-weight: 800; letter-spacing: -.06em; }
.score-cover { width: 58px; height: 34px; justify-self: center; border: 0; border-radius: 10px; background: #e5e5ea; cursor: pointer; }
.score-cover:hover { background: #d9d9df; }
.score-cover:focus-visible { outline: 3px solid #1769e055; outline-offset: 2px; }
.score.upcoming { color: #858991; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.game-bottom { display: flex; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid #eeeeF1; color: #8b8e95; font-size: 10px; }
.game-bottom strong { color: #cc3535; font-weight: 700; }
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.game-tag { padding: 5px 8px; border-radius: 8px; background: #f0f1f5; color: #575d68; font-size: 10px; font-weight: 700; line-height: 1.2; }
.game-tag-highlight { background: #e5f4e9; color: #246b3b; }
.game-tag-vivid { background: #fff0dc; color: #87520a; }
.tag-guide { margin-top: 22px; padding: 0 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.tag-guide summary { padding: 14px 0; color: #626873; font-size: 12px; font-weight: 750; cursor: pointer; }
.tag-guide dl { display: grid; gap: 11px; margin: 0; padding: 0 0 15px; }
.tag-guide dl > div { display: grid; grid-template-columns: minmax(125px, max-content) 1fr; align-items: start; gap: 9px; }
.tag-guide dt { justify-self: start; margin: 0; }
.tag-guide dd { margin: 0; padding-top: 4px; color: #777b83; font-size: 11px; line-height: 1.4; }
.empty { padding: 30px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: center; }
.empty-icon { font-size: 27px; }
.empty h3 { margin: 10px 0 5px; font-size: 15px; }
.empty p { margin: 0; color: #858991; font-size: 12px; }
.notice { margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: #fff3df; color: #855d18; font-size: 12px; line-height: 1.5; }
.skeleton { height: 132px; border-radius: 18px; background: linear-gradient(100deg, #e7e7ed 20%, #f5f5f8 40%, #e7e7ed 60%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
footer { display: flex; align-items: center; gap: 9px; margin-top: 26px; padding: 15px 2px; color: #858991; font-size: 10px; }
footer .live-dot { width: 6px; height: 6px; }
footer a { margin-left: auto; color: #626873; font-weight: 700; text-decoration: none; }
@media (min-width: 650px) { .shell { padding-right: 36px; padding-left: 36px; } .day-panel { padding: 17px 20px; } .game-card { padding: 17px 20px 15px; } .match-row { grid-template-columns: minmax(0, 1fr) 94px minmax(0, 1fr); } .team-name { font-size: 15px; } .crest { width: 40px; height: 40px; } }
@media (max-width: 380px) { .shell { padding-right: 16px; padding-left: 16px; } .day-panel { padding: 12px; } .today-button { padding: 0 9px; } .day-controls { gap: 5px; } .icon-button { width: 38px; } .team { gap: 6px; } .team-name { font-size: 11px; } .team-city { font-size: 9px; } .crest { width: 30px; height: 30px; border-radius: 10px; } .match-row { grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); gap: 3px; } .score { font-size: 20px; } }
@media (max-width: 380px) { .tag-guide dl > div { grid-template-columns: minmax(112px, max-content) 1fr; gap: 7px; } .tag-guide .game-tag { padding: 5px 6px; font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
