  :root {
    color-scheme: dark;
    --bg: #0B0E14;
    --surface: #12161F;
    --surface-raised: #171C27;
    --border: #232838;
    --text: #F2F0E6;
    --text-dim: #8891A3;
    --accent: #FFB020;
    --accent-dim: #4A3A1A;
    --jp: #49C5B6;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
    line-height: 1.6;
  }
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .menu-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    cursor: pointer;
  }
  .menu-btn span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .drawer {
    margin-top: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  .drawer > a {
    display: block;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
  }
  .drawer > a span {
    display: block;
    font-size: 11.5px;
    color: var(--text-dim);
    font-weight: 400;
    margin-top: 2px;
  }
  .drawer > a:active { background: var(--surface-raised); }
  .drawer-foot {
    display: flex;
    gap: 16px;
    padding: 11px 16px;
    font-size: 12px;
  }
  .drawer-foot a { color: var(--text-dim); text-decoration: none; }

  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
  }
  .brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
  }
  h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0;
  }
  p.sub {
    font-size: 13px;
    color: var(--text-dim);
    margin: 6px 0 1.5rem;
  }
  .eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 0 10px;
  }
  .onboarding {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    font-size: 13px;
    color: var(--text-dim);
  }
  .onboarding summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 500;
  }
  .onboarding ol {
    margin: 8px 0 2px;
    padding-left: 1.2em;
  }
  details summary {
    cursor: pointer;
    color: var(--text-dim);
    font-size: 12px;
  }
  a {
    color: var(--accent);
  }
  .tabs {
    display: flex;
    gap: 6px;
    margin: 1.25rem 0 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
  }
  .tab {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex: 1;
    text-align: center;
    padding: 9px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    border-radius: 7px;
  }
  .tab:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
  }
  .tab.active {
    color: #0B0E14;
    background: var(--accent);
  }
  .card .time-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-dim);
    margin: 0 0 6px;
  }
  .card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 12px;
  }
  .card .top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 8px;
  }
  .card .league {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
  }
  .badges {
    display: flex;
    gap: 6px;
    margin: 2px 0 8px;
    flex-wrap: wrap;
  }
  .badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--jp);
    background: rgba(73, 197, 182, 0.12);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.03em;
  }
  .badge-jp {
    color: var(--bg);
    background: var(--accent);
    font-weight: 600;
  }
  .schedule-row .badge-mini {
    font-size: 9px;
    color: var(--text-dim);
    flex-shrink: 0;
  }
  .share-btn {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--bg);
    background: var(--text);
    padding: 7px 14px;
    border-radius: 7px;
    text-decoration: none;
  }
  .preview-box {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 13px;
    color: var(--text-dim);
  }
  .video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    margin: 10px 0;
    border-radius: 8px;
    overflow: hidden;
  }
  .video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
  }
  .card .matchup {
    font-family: 'Oswald', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  .card .reason {
    font-size: 13px;
    color: var(--text-dim);
    margin: 4px 0;
  }
  .card .ai-summary {
    font-size: 14px;
    color: var(--text);
    margin: 2px 0 10px;
    line-height: 1.5;
  }
  .card .series-context {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    margin: 0 0 8px;
  }
  .news-list { list-style: none; padding: 0; margin: 0; }
  .news-list li {
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid var(--jp); border-radius: 8px;
    padding: 9px 12px; margin-bottom: 6px; font-size: 13px;
  }
  .news-note { font-size: 10.5px; color: var(--text-dim); margin: 6px 0 0; }
  .ad-label {
    display: inline-block;
    margin-left: 8px;
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1px 5px;
    vertical-align: middle;
  }
  mark {
    background: linear-gradient(transparent 58%, rgba(255, 176, 32, 0.32) 58%);
    color: var(--text);
    font-weight: 600;
    padding: 0 1px;
  }
  .card .venue-note {
    font-size: 11.5px;
    color: var(--accent);
    background: var(--accent-dim);
    border-radius: 6px;
    padding: 6px 10px;
    margin: 0 0 10px;
    line-height: 1.6;
  }
  .board {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  .schedule-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    border-left: 3px solid transparent;
  }
  .schedule-row:last-child { border-bottom: none; }
  .schedule-row.notable {
    border-left: 3px solid var(--accent);
    background: rgba(255, 176, 32, 0.06);
  }
  .board-legend {
    font-size: 0.78rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0.4rem 0 0.6rem;
  }
  .legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 176, 32, 0.06);
    border-radius: 2px;
  }
  .schedule-row .time {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    width: 46px;
    flex-shrink: 0;
    font-size: 12px;
  }
  .schedule-row .matchup-abbr {
    flex-grow: 1;
  }
  .schedule-row .league-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--text-dim);
    flex-shrink: 0;
  }
  .section {
    margin-top: 2rem;
  }
  .league-toggles {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-dim);
  }
  .league-toggles label {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .league-toggles input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
  }
  button {
    background: var(--surface-raised);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
  }
  button:active {
    transform: scale(0.98);
    border-color: var(--accent);
  }
  #status {
    font-size: 13px;
    color: var(--text-dim);
    margin: 10px 0;
    white-space: pre-wrap;
  }
  textarea {
    width: 100%;
    background: var(--surface);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 8px;
    height: 110px;
    margin-bottom: 8px;
  }
