:root {
  color-scheme: light;
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --surface-muted: rgba(255, 255, 255, 0.58);
  --chrome-bg: rgba(243, 246, 244, 0.94);
  --nav-bg: rgba(255, 255, 255, 0.94);
  --ink: #111827;
  --muted: #6b7280;
  --line: #dbe3df;
  --green: #0f8a66;
  --green-dark: #0a6a4d;
  --blue: #2268b5;
  --red: #c2413d;
  --gold: #d99a16;
  --badge-bg: #eef2f4;
  --badge-ink: #4b5563;
  --success-bg: #e6f4ee;
  --warning-bg: #fff2d8;
  --warning-ink: #9a6208;
  --danger-bg: #fbe8e7;
  --info-bg: #ebf1fb;
  --team-bg: #fbfdfc;
  --theme-bg: #fff4d7;
  --theme-ink: #875600;
  --overlay: rgba(15, 23, 42, 0.48);
  --toast-bg: #111827;
  --toast-ink: #ffffff;
  --gold-button-ink: #111827;
  --shadow: 0 14px 34px rgba(22, 49, 37, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1211;
  --surface: #111c1a;
  --surface-soft: #172723;
  --surface-muted: rgba(17, 28, 26, 0.72);
  --chrome-bg: rgba(11, 18, 17, 0.94);
  --nav-bg: rgba(17, 28, 26, 0.94);
  --ink: #edf5f2;
  --muted: #a3b3ad;
  --line: #29433b;
  --green: #13a176;
  --green-dark: #6ee7bf;
  --blue: #5f9fe0;
  --red: #f87171;
  --gold: #e4aa32;
  --badge-bg: #20322e;
  --badge-ink: #c9d8d3;
  --success-bg: #14392d;
  --warning-bg: #3e3017;
  --warning-ink: #f5c76b;
  --danger-bg: #3f1d1d;
  --info-bg: #172a45;
  --team-bg: #0f1917;
  --theme-bg: #3a2c10;
  --theme-ink: #ffd98a;
  --overlay: rgba(0, 0, 0, 0.64);
  --toast-bg: #edf5f2;
  --toast-ink: #0b1211;
  --gold-button-ink: #111827;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  font-size: 16px;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 960px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: 112px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--chrome-bg);
  backdrop-filter: blur(16px);
}

.topbar h1,
.section-heading h2,
.dialog-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 25px;
  line-height: 1.1;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.muted {
  margin: 0;
  color: var(--muted);
}

main {
  padding: 18px;
}

.icon-button,
.control-button,
.ghost-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
}

.icon-button {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.panel,
.game-card,
.history-card,
.stat-card,
.dialog-card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
}

.auth-card {
  display: grid;
  width: min(390px, 100%);
  gap: 12px;
  padding: 24px;
}

.auth-card h1,
.auth-card p {
  margin: 0;
}

.auth-card h1 {
  font-size: 26px;
  line-height: 1.1;
}

.auth-card p:not(.eyebrow):not(.form-error) {
  color: var(--muted);
  line-height: 1.65;
}

.auth-card input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
}

.auth-card button {
  height: 48px;
}

.form-error {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px;
}

.hero-copy {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.hero-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 21px;
  line-height: 1.15;
}

.controls {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
}

.date-row,
.month-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: end;
}

.date-label,
.month-label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.date-label input,
.month-label input,
.select-input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.date-label input,
.month-label input,
.select-input {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segmented button,
.text-button,
.primary-button,
.danger-button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.segmented button {
  min-height: 38px;
  background: transparent;
  color: var(--muted);
}

.segmented button.active {
  background: var(--green);
  color: #fff;
}

.schedule-mode {
  grid-template-columns: repeat(2, 1fr);
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.section-heading h2 {
  font-size: 22px;
}

.heading-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.filter-label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.text-button {
  min-height: 38px;
  padding: 0 12px;
  background: var(--surface-soft);
  color: var(--green-dark);
}

.schedule-list,
.history-list,
.stats-board {
  display: grid;
  gap: 14px;
}

.date-group {
  display: grid;
  gap: 10px;
}

.date-title {
  position: sticky;
  top: calc(72px + env(safe-area-inset-top));
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px;
  background: var(--chrome-bg);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.league-block {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.league-block + .league-block {
  margin-top: 10px;
}

.league-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.league-block-head strong {
  color: var(--ink);
  font-size: 15px;
}

.game-card,
.history-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.card-head,
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.badge,
.status-badge,
.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 12px;
  font-weight: 800;
}

.status-badge.finished,
.result-badge.win {
  background: var(--success-bg);
  color: var(--green-dark);
}

.status-badge.live {
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.result-badge.loss {
  background: var(--danger-bg);
  color: var(--red);
}

.result-badge.draw {
  background: var(--info-bg);
  color: var(--blue);
}

.result-badge.pending {
  background: var(--badge-bg);
  color: var(--badge-ink);
}

.more-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.team-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--team-bg);
}

.team-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.team-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.team-copy strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-number {
  min-width: 42px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  text-align: right;
}

.score-number.winner {
  color: var(--red);
}

.versus-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.team {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.team.home {
  grid-template-columns: minmax(0, 1fr) 34px;
  text-align: right;
}

.team-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.team-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-box {
  display: grid;
  min-width: 68px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.score {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}

.score span {
  display: inline-block;
  min-width: 22px;
  text-align: center;
}

.field-line,
.note-text {
  color: var(--muted);
  word-break: break-word;
}

.theme-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.theme-badge {
  display: grid;
  gap: 2px;
  align-items: start;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--theme-bg);
  color: var(--theme-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.theme-badge strong,
.theme-badge span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.theme-badge span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.primary-button,
.danger-button {
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
}

.primary-button {
  background: var(--green);
}

.primary-button.secondary {
  background: var(--blue);
}

.edit-checkin-button {
  background: var(--gold);
  color: var(--gold-button-ink);
}

.danger-button {
  background: var(--red);
}

.empty-state {
  padding: 24px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.loading-state {
  display: grid;
  gap: 10px;
}

.skeleton {
  height: 136px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-soft), var(--surface), var(--surface-soft));
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.history-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 14px;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-card > strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.15;
}

.team-stat-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.team-stat,
.team-stat-detail summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.team-stat-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--team-bg);
}

.team-stat-detail summary {
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.team-stat-detail:not([open]) .team-stat-records {
  display: none;
}

.team-stat-detail summary::-webkit-details-marker {
  display: none;
}

.team-stat-detail summary::after {
  content: "展開";
  grid-column: 2 / 4;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.team-stat-detail[open] summary::after {
  content: "收合";
}

.team-stat-records {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin: 0 10px 10px;
}

.team-stat-record {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 54px auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.team-stat-record > span:first-child {
  white-space: nowrap;
}

.team-stat-matchup {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-stat-record .result-badge {
  justify-self: end;
}

.team-stat > strong {
  font-size: 22px;
  line-height: 1;
}

.team-stat-name {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-section {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.settings-head h3 {
  margin: 0;
  font-size: 17px;
}

.settings-actions {
  display: grid;
  gap: 8px;
}

.settings-segmented {
  grid-template-columns: repeat(2, 1fr);
}

.settings-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.file-button {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.json-guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.json-guide summary {
  min-height: 42px;
  padding: 10px 12px;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
}

.json-guide pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 0 12px 12px;
  color: var(--ink);
  font: 13px/1.55 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.theme-day-list {
  display: grid;
  gap: 10px;
}

.theme-team-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.theme-team-group summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.theme-team-group:not([open]) .theme-team-items {
  display: none;
}

.theme-team-group summary::-webkit-details-marker {
  display: none;
}

.theme-team-group summary strong {
  font-size: 15px;
}

.theme-team-group summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.theme-team-group summary::after {
  content: "展開";
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.theme-team-group[open] summary::after {
  content: "收合";
}

.theme-team-items {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
}

.theme-day-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--team-bg);
}

.theme-day-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.theme-day-copy strong,
.theme-day-copy p {
  margin: 0;
  word-break: break-word;
}

.theme-day-copy p {
  color: var(--muted);
}

.theme-note-editor {
  display: grid;
  gap: 6px;
}

.theme-note-editor label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.theme-note-editor > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.theme-note-editor .primary-button {
  min-width: 76px;
}

.theme-team-filter {
  margin-top: 2px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  width: min(92%, 572px);
  height: 64px;
  padding: 5px 8px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav-bg);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bottom-nav button {
  display: grid;
  height: 52px;
  min-height: 52px;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  line-height: 1.2;
}

.bottom-nav button.active {
  background: var(--surface-soft);
  color: var(--green-dark);
}

.bottom-nav span {
  display: block;
  font-size: 19px;
  line-height: 1;
}

.bottom-nav small {
  font-size: 12px;
  font-weight: 800;
}

.dialog {
  width: min(calc(100% - 24px), 520px);
  max-height: min(86vh, 720px);
  padding: 0;
  border: 0;
  background: transparent;
}

.dialog::backdrop {
  background: var(--overlay);
}

.dialog-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.ghost-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
}

.dialog-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.support-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.support-picker button {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.support-picker button.active {
  border-color: var(--green);
  background: var(--surface-soft);
  color: var(--green-dark);
}

.support-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  left: 18px;
  z-index: 50;
  display: none;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--toast-bg);
  color: var(--toast-ink);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.toast.show {
  display: block;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 102px;
  z-index: 65;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--toast-bg);
  color: var(--toast-ink);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.22);
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  user-select: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top.dragging {
  opacity: 0.82;
  transform: scale(1.04);
}

@media (min-width: 720px) {
  .app-shell {
    padding-bottom: 112px;
  }

  .topbar {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  main {
    padding: 24px;
  }

  .controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-actions {
    grid-template-columns: auto auto;
    justify-content: end;
  }

  .settings-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .bottom-nav {
    width: calc(100% - 18px);
    padding-inline: 8px;
  }

  main {
    padding: 14px;
  }

  .hero-panel {
    gap: 8px;
    padding: 10px;
  }

  .hero-copy {
    padding: 8px;
  }

  .hero-copy strong {
    font-size: 18px;
  }

  .filter-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-stat-record {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .team-stat-record > span:first-child {
    grid-column: 1 / -1;
  }

  .team-stat-matchup {
    grid-column: 1 / 2;
  }

  .theme-note-editor > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .team.home {
    grid-template-columns: 34px minmax(0, 1fr);
    text-align: left;
  }

  .team.home .team-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .team.home .team-name {
    grid-column: 2;
  }

  .score-box {
    min-height: 40px;
    justify-items: start;
  }

  .score {
    font-size: 20px;
  }
}
