@layer reset, base, components, games, responsive;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p { margin: 0; }
  button, input, select, textarea { font: inherit; }
  button, a, input, summary { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  button:disabled { cursor: default; }
  a { color: inherit; }
  svg { display: inline-block; vertical-align: middle; }
}
@layer base {
  :root { --paper: #f8f6ee; --ink: #202f27; --muted: #646c63; --line: #d8ddd2; --accent: #21593c; --tint: #edf3e5; --bright: #d4ee88; --white: #fffefa; --danger: #a53624; --radius: 16px; }
  html { background: var(--paper); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
  body { min-height: 100dvh; }
  body.three { --accent: #3656cf; --tint: #eaf0ff; --bright: #dce6ff; --ink: #26304a; --line: #d9ddec; --muted: #626a7d; }
  button { color: inherit; }
  button, a, input, select, summary { touch-action: manipulation; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
  button:disabled { opacity: .42; }
  a { text-underline-offset: 3px; }
  h1, h2, .serif { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
  h1 { font-size: clamp(38px, 5vw, 58px); }
  h2 { font-size: 29px; }
  h3 { font-size: 16px; line-height: 1.4; margin-top: 22px; }
  p + p { margin-top: 12px; }
  .muted { color: var(--muted); }
  .small { font-size: 13px; }
  .eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .13em; font-weight: 750; }
  .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; }
  .icon { width: 20px; height: 20px; flex: none; }
  .skip { position: fixed; top: -100px; left: 12px; background: var(--white); padding: 12px; z-index: 30; }
  .skip:focus { top: 10px; }
  .site-header { max-width: 1040px; margin: auto; min-height: 72px; padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
  .brand { text-decoration: none; display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 15px; letter-spacing: -.04em; }
  .brand-mark { width: 27px; height: 27px; border: 2px solid currentColor; border-radius: 8px; display: grid; place-items: center; transform: rotate(-8deg); font-size: 20px; line-height: 1; }
  .other-game { text-decoration: none; font-size: 12px; color: var(--muted); padding: 10px 0; }
  .other-game:hover { color: var(--accent); }
  main { max-width: 760px; padding: 20px 24px 48px; margin: auto; }
  .hero { text-align: center; padding: 8px 0 25px; }
  .hero .eyebrow { color: var(--accent); margin-bottom: 9px; }
  .hero p { color: var(--muted); max-width: 460px; margin: 12px auto 0; font-size: 16px; }
  .hero h1 svg { height: 37px; width: 37px; margin-right: 10px; margin-bottom: 5px; }
  .game-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 14px 0; }
  .board-label { font-weight: 750; font-size: 14px; }
  .board-label span { display: block; color: var(--muted); font-size: 11px; font-weight: 450; margin-top: 1px; }
  .nav-actions { display: flex; gap: 4px; }
  .site-footer { max-width: 750px; margin: 0 auto; padding: 0 24px 30px; color: var(--muted); text-align: center; font-size: 12px; }
  .footer-links { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 14px; }
  .retrosheet { font-size: 10px; line-height: 1.55; max-width: 440px; margin: 12px auto 0; opacity: .9; }
  .load-error { text-align: center; padding: 60px 10px; }
  .load-error p { margin: 20px 0; }
  .loading { padding: 80px 0; text-align: center; color: var(--muted); }
}
@layer components {
  .primary, .secondary, .text-button, .icon-button { border: 0; border-radius: 10px; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 44px; transition: background .15s, transform .15s; }
  .primary { background: var(--accent); color: #fff; padding: 13px 22px; }
  .primary:hover:not(:disabled) { filter: brightness(1.08); }
  .primary:active:not(:disabled), .secondary:active:not(:disabled) { transform: translateY(1px); }
  .secondary { background: var(--white); border: 1px solid var(--line); padding: 11px 18px; }
  .secondary:hover:not(:disabled) { background: var(--tint); }
  .text-button { background: transparent; color: var(--muted); padding: 10px 12px; font-size: 13px; }
  .text-button:hover:not(:disabled) { background: var(--tint); color: var(--accent); }
  .icon-button { width: 44px; height: 44px; background: transparent; color: var(--muted); }
  .icon-button:hover { background: var(--tint); }
  .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .wide { width: 100%; }
  .note { color: var(--muted); font-size: 12px; line-height: 1.5; }
  .tag { font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; padding: 4px 7px; border-radius: 5px; background: var(--tint); color: var(--accent); display: inline-block; }
  .error { background: #fbebe5; border-radius: 8px; color: var(--danger); padding: 11px 13px; font-size: 14px; margin: 12px 0; }
  .banner { background: var(--tint); border: 1px solid var(--line); padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 13px; }
  .modal { border: 1px solid var(--line); border-radius: 22px; padding: 24px; width: min(510px, calc(100% - 24px)); max-height: 87dvh; color: var(--ink); background: var(--white); box-shadow: 0 20px 90px #15202b33; }
  .modal::backdrop { background: #172b275c; backdrop-filter: blur(3px); }
  .modal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
  .modal h2 { font-size: 30px; }
  .modal-body { font-size: 14px; }
  .modal-body p { line-height: 1.65; }
  .modal-body .button-row { margin-top: 22px; }
  .modal-body ol { padding-left: 22px; }
  .modal-body li { padding: 6px 0 6px 3px; }
  .modal-body h3 + p { margin-top: 6px; }
  .share-text { display: block; width: 100%; min-height: 150px; resize: vertical; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; margin: 16px 0 0; padding: 14px; font: 13px/1.8 ui-monospace, monospace; }
  .share-status:not(:empty) { margin-top: 14px; }
  .check-label { display: flex; gap: 10px; align-items: center; margin-top: 12px; cursor: pointer; min-height: 44px; }
  .check-label input { accent-color: var(--accent); width: 18px; height: 18px; }
  .library { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .library-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; font-size: 13px; min-height: 48px; }
  .library-item:hover, .library-item.current { background: var(--tint); border-color: var(--accent); }
  .library-check { color: var(--accent); }
  .library-check .icon { width: 16px; height: 16px; }
  #toast { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 10px); opacity: 0; transition: opacity .2s, transform .2s; background: var(--ink); color: white; font-size: 13px; padding: 13px 19px; border-radius: 12px; box-shadow: 0 4px 18px #0002; width: max-content; max-width: calc(100% - 32px); z-index: 50; pointer-events: none; }
  #toast.show { opacity: 1; transform: translate(-50%, 0); }
  .result-card { background: var(--tint); border: 1px solid var(--line); padding: 25px; border-radius: var(--radius); text-align: center; margin-top: 20px; }
  .result-card h2 { margin: 5px 0 10px; font-size: 35px; }
  .result-card p { font-size: 14px; color: var(--muted); }
  .result-card .button-row { justify-content: center; margin-top: 18px; }
  .result-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: white; margin: 0 auto 12px; display: grid; place-items: center; }
  .result-mark svg { width: 26px; height: 26px; }
  .result-meta { display: flex; justify-content: center; gap: 25px; margin: 18px 0; }
  .result-meta strong { display: block; font: 650 28px/1.2 Georgia, serif; letter-spacing: -.03em; }
  .result-meta span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .pair-pattern { max-width: 390px; margin: 20px auto 12px; display: grid; gap: 8px; }
  .pair-pattern-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 10px; align-items: center; }
  .pair-pattern-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .pair-cell { height: 31px; border-radius: 5px; background: #e1e5dc; display: grid; place-items: center; }
  .pair-cell.filled { background: var(--player-color); color: white; }
  .pair-cell .icon { width: 17px; height: 17px; }
  .pair-row-count { color: var(--player-color); font-size: 16px; }
  .pair-pattern-name { grid-column: 1 / -1; color: var(--player-color); text-align: left; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
  .result-card .pair-pattern-key { font-size: 14px; margin-bottom: 15px; }
  .result-card .pair-progress { font-size: 16px; font-weight: 650; color: var(--ink); margin-bottom: 15px; }
  .pair-share-card { border: 1px solid var(--line); border-top: 5px solid #267647; border-radius: 12px; padding: 22px 18px 16px; background: var(--paper); }
  .pair-share-title { font: 650 28px/1.15 Georgia, serif; color: var(--accent); }
  .pair-share-card p { color: var(--muted); font-size: 14px; }
  .pair-share-summary { margin-top: 15px; font-size: 16px; font-weight: 750; }
  .pair-share-flags { margin-top: 4px; }
  .pair-share-card .pair-share-caption { margin-top: 14px; }
  .pair-share-card .pair-pattern { margin: 10px 0 12px; }
  .pair-share-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; font-size: 14px; }
  .pair-share-footer strong { color: var(--accent); }
  .pair-share-explainer { margin-top: 12px; font-size: 14px; color: var(--muted); }
  .pair-share-modal .button-row { margin-top: 12px; gap: 8px; }
  .pair-share-text { margin-top: 14px; font-size: 14px; }
  .pair-share-text summary { cursor: pointer; min-height: 32px; }
  .pair-share-text .share-text { min-height: 235px; font-size: 14px; margin-top: 8px; }
  .after-game { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); gap: 10px; }
  .after-game a { font-size: 13px; }
}
@layer games {
  .roster .hero { padding: 0 0 18px; }
  .roster .hero h1 { font-size: 42px; }
  .roster .hero .eyebrow { display: none; }
  .roster .hero p { margin-top: 8px; }
  .roster .hero strong { color: var(--ink); font-weight: 650; }
  .roster .board-context { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
  .roster .board-context a { padding: 6px 0; color: var(--accent); text-underline-offset: 3px; }
  .roster .lineup-open { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .lineup-open .player-field:last-child { grid-column: 1 / -1; }
  .lineup-open .optional-player:not(.has-pick) input { border-style: dashed; background: transparent; }
  .roster .player-field label { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
  .player-field label span { font-size: 12px; font-weight: 450; }
  .roster .player-meta { font-size: 12px; }
  .roster .suggestions { top: 81px; }
  .roster .suggestion strong { font-size: 15px; }
  .roster .suggestion small { font-size: 12px; }
  .roster .lineup-actions { grid-template-columns: 1fr; }
  .roster .lineup-note, .roster .note, .roster .text-button { font-size: 14px; }
  .roster .lineup-note { text-align: center; margin-top: 10px; }
  .roster .condition-type { font-size: 11px; letter-spacing: .04em; }
  .roster .condition-name { font-size: 14px; }
  .roster .coverage { font-size: 13px; }
  .roster .coverage thead th, .roster .coverage-type { font-size: 12px; }
  .roster .attempts { font-size: 14px; white-space: nowrap; }
  .lineup-intro { color: var(--muted); font-size: 14px; margin: -4px 0 16px; }
  .next-step { margin-top: 12px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--tint); font-size: 14px; }
  .next-step p + p { margin-top: 4px; color: var(--muted); }
  .next-step .text-button { padding: 8px 0 0; min-height: 36px; color: var(--accent); }
  .checked-note { margin-top: 10px; }
  .saved-win { display: flex; gap: 10px; padding: 14px; margin-bottom: 16px; background: var(--tint); border-radius: 10px; font-size: 14px; }
  .saved-win .icon { margin-top: 2px; color: var(--accent); }
  .saved-win p { margin-top: 4px; color: var(--muted); }
  .result-card .improve-note { margin-top: 12px; }
  #lineup-form { scroll-margin-top: 16px; }
  #lineup-form:focus { outline: none; }
  .conditions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; list-style: none; padding: 0; margin: 0 0 24px; }
  .condition { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 78px; display: flex; align-items: center; gap: 13px; position: relative; }
  .condition-index { color: #9da794; font: 500 13px ui-monospace, monospace; flex: none; }
  .condition-type { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 3px; }
  .condition-name { font-size: 15px; font-weight: 680; line-height: 1.25; }
  .lineup-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
  .lineup-heading h2 { font-family: inherit; font-size: 15px; letter-spacing: -.02em; }
  .attempts { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
  .attempt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
  .attempt-dot.used { background: var(--accent); }
  .attempts span:last-child { margin-left: 3px; }
  .lineup { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .player-field { position: relative; min-width: 0; }
  .player-field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; font-weight: 650; }
  .input-wrap { position: relative; }
  .player-field input { width: 100%; padding: 14px 45px 14px 14px; border: 1px solid #b9c4b6; border-radius: 10px; background: white; color: var(--ink); font-size: 16px; min-height: 52px; }
  .player-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .player-field.has-pick input { border-color: var(--accent); background: #f7fbf1; font-weight: 600; }
  .clear-pick { position: absolute; right: 2px; top: 4px; width: 44px; height: 44px; padding: 0; background: transparent; border: 0; display: grid; place-items: center; color: var(--muted); }
  .clear-pick svg { width: 16px; }
  .player-meta { color: var(--muted); font-size: 10px; padding: 5px 2px; min-height: 24px; }
  .suggestions { position: absolute; z-index: 15; left: 0; right: 0; top: 79px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px #21332126; max-height: min(340px, 42dvh); overflow-y: auto; overscroll-behavior: contain; }
  .suggestions:empty { display: none; }
  .suggestion { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; background: none; border: 0; text-align: left; padding: 11px 12px; min-height: 48px; color: var(--ink); }
  .suggestion + .suggestion { border-top: 1px solid #f1f2ec; }
  .suggestion:hover, .suggestion.active { background: var(--tint); }
  .suggestion strong { display: block; font-size: 13px; }
  .suggestion small { color: var(--muted); font-size: 10px; }
  .suggestion.empty { font-size: 12px; padding: 14px; }
  .lineup-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 8px; }
  .lineup-actions .primary { min-width: 200px; }
  .lineup-note { margin-top: 9px; }
  .feedback { margin-top: 24px; scroll-margin-top: 16px; }
  .feedback:focus, .result-card:focus { outline: none; }
  .result-card { scroll-margin-top: 16px; }
  .feedback-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .feedback-heading h2 { font-size: 22px; }
  .feedback-heading .tag { white-space: nowrap; }
  .coverage { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
  .coverage th, .coverage td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--line); }
  .coverage th:first-child, .coverage td:first-child { text-align: left; width: 45%; padding-left: 16px; }
  .coverage thead th { font-weight: 600; background: #f1f3e9; font-size: 11px; line-height: 1.4; }
  .coverage tbody th { font-weight: 400; }
  .coverage tbody tr:last-child :is(th, td) { border-bottom: none; }
  .coverage .hit { background: #f4f8ed; }
  .coverage .miss { color: var(--ink); }
  .coverage .check { background: var(--accent); color: #fff; display: inline-flex; border-radius: 50%; padding: 3px; }
  .coverage .check svg { width: 12px; height: 12px; }
  .coverage .missing-mark { color: var(--danger); }
  .coverage-type { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }
  .feedback + #lineup-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
  .player-detail-button { background: transparent; border: 0; padding: 3px; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; color: var(--accent); font-weight: 650; }
  .history { margin-top: 16px; border-top: 1px solid var(--line); }
  .history summary { padding: 14px 0; cursor: pointer; font-size: 12px; color: var(--muted); }
  .history-item { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; align-items: center; font-size: 12px; }
  .history-item small { color: var(--muted); }
  .mini-checks { white-space: nowrap; color: var(--accent); letter-spacing: 1px; font-size: 14px; }
  .best-lineup { margin-top: 13px; color: var(--muted); font-size: 12px; }
  .career-fact { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .career-fact strong { display: block; }
  .career-fact span { color: var(--muted); font-size: 12px; }
  .three main { max-width: 640px; }
  .three .hero { padding-bottom: 20px; }
  .three .hero h1 { font-size: clamp(37px, 5vw, 52px); }
  .board-panel { max-width: 460px; margin: auto; }
  .route-status { display: flex; align-items: center; justify-content: space-between; font-size: 12px; gap: 12px; margin: 5px 0 14px; }
  .budget { display: flex; align-items: center; gap: 6px; }
  .budget i { width: 18px; height: 5px; background: var(--line); border-radius: 6px; }
  .budget i.used { background: var(--accent); }
  .budget span { margin-left: 3px; }
  .arrow-board { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 7px; position: relative; border: 1px solid #d5d9e5; padding: 11px; border-radius: 20px; background: #eaebE4; box-shadow: 0 5px 0 #dadccf; }
  .arrow-cell { aspect-ratio: 1; min-width: 0; position: relative; display: grid; place-items: center; border: 1px solid #d5d8df; border-bottom-width: 3px; border-radius: 12px; background: var(--white); color: #7e879a; font-size: clamp(27px, 6vw, 42px); font-family: Arial, sans-serif; line-height: 1; user-select: none; transition: background .16s, border-color .16s, color .16s, transform .16s; padding: 0; }
  .arrow-cell:hover:not(:disabled) { border-color: #9ca9d4; color: var(--accent); }
  .arrow-cell:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 1px; }
  .arrow-cell.wall { background: #d4d8d0; border-color: #cbd0c5; opacity: 1; box-shadow: inset 0 1px 4px #b5bbae44; }
  .arrow-cell.wall::after { content: ''; width: 23%; height: 23%; border-radius: 3px; border: 1px solid #bfc7b7; transform: rotate(45deg); opacity: .6; }
  .arrow-cell.changed { color: var(--accent); background: #edf2ff; border-color: #879ee8; }
  .arrow-cell.changed::before { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); bottom: 7px; right: 7px; }
  .arrow-cell.goal { background: #dcebc3; color: #3d6b30; opacity: 1; border-color: #bacfa1; }
  .arrow-cell.goal svg { width: 40%; height: 40%; }
  .arrow-cell small { position: absolute; top: 5px; font: 750 8px/1 -apple-system, sans-serif; letter-spacing: .05em; color: var(--accent); }
  .arrow-cell.start { border-color: var(--accent); }
  .arrow-cell.start .arrow { margin-top: 8px; }
  .cell-original { position: absolute; bottom: 5px; left: 7px; font-size: 12px; color: #7985a0; line-height: 1; }
  .arrow-cell.visited { background: #f0e3c7; border-color: #c8b37d; }
  .arrow-cell.blocked { border-color: #b45d36; }
  .arrow-cell.current { background: #f5ce85; border-color: #c58d38; color: #745019; }
  .arrow-cell.current small { color: #745019; }
  .arrow-cell.current::after { content: ''; position: absolute; width: 12px; height: 12px; border: 2px solid #fff7e3; background: #d37c28; border-radius: 4px; right: 6px; bottom: 6px; box-shadow: 0 1px 3px #0002; }
  .arrow-cell:disabled:not(.wall):not(.goal) { opacity: 1; }
  .route-caption { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); margin: 15px 2px; }
  .route-message { min-height: 60px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 4px; font-size: 13px; color: var(--muted); }
  .route-message strong { color: var(--ink); }
  .route-message.failure { color: #995024; }
  .route-controls { display: grid; grid-template-columns: 1fr 52px; gap: 10px; }
  .route-controls .primary { font-size: 16px; min-height: 52px; }
  .route-controls .secondary { padding: 0; }
  .route-secondary { display: flex; justify-content: space-between; margin-top: 8px; }
  .friend-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .landing { max-width: 940px; padding-top: 55px; }
  .landing .hero h1 { font-size: clamp(46px, 7vw, 72px); }
  .game-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 35px; }
  .game-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px; text-decoration: none; transition: transform .2s; }
  .game-card:hover { transform: translateY(-4px); }
  .game-card h2 { font-size: 34px; margin: 25px 0 12px; }
  .game-card p { font-size: 14px; color: var(--muted); min-height: 63px; }
  .game-card .primary { margin-top: 26px; }
  .game-card.routes { --accent: #3656cf; background: #f3f5ff; }
  .card-art { height: 90px; display: flex; justify-content: center; align-items: center; }
  .baseball-art { width: 68px; height: 68px; color: #45654b; transform: rotate(-18deg); }
  .arrows-art { font: 42px/1 ui-monospace, monospace; color: #3656cf; letter-spacing: 8px; }
}
@layer responsive {
  @media (max-width: 600px) {
    .site-header { min-height: 58px; padding: 10px 18px; }
    .brand { font-size: 14px; }
    .other-game { font-size: 11px; }
    main { padding: 13px 16px 34px; }
    .hero { padding: 5px 0 20px; }
    .hero h1 svg { width: 28px; height: 28px; margin-right: 5px; }
    .hero p { font-size: 14px; margin-top: 9px; max-width: 300px; }
    .conditions { gap: 7px; margin-bottom: 21px; }
    .condition { padding: 11px 10px; min-height: 72px; gap: 8px; border-radius: 10px; }
    .condition-name { font-size: 13px; }
    .condition-index { font-size: 11px; }
    .condition-type { font-size: 8px; }
    .lineup-actions { grid-template-columns: 1fr; gap: 0; }
    .lineup-actions .text-button { min-height: 44px; }
    .lineup-note { margin-top: 3px; text-align: center; }
    .lineup input { padding-left: 11px; }
    .coverage { font-size: 11px; }
    .coverage th, .coverage td { padding: 10px 7px; }
    .coverage th:first-child, .coverage td:first-child { padding-left: 10px; width: 42%; }
    .coverage thead th { font-size: 10px; }
    .result-card { padding: 22px 16px; }
    .result-card h2 { font-size: 31px; }
    .feedback-heading h2 { font-size: 20px; }
    .modal { padding: 20px; }
    .modal h2 { font-size: 27px; }
    .three main { padding-top: 8px; }
    .three .hero h1 { font-size: 37px; }
    .three .hero { padding-bottom: 17px; }
    .arrow-board { gap: 5px; padding: 8px; border-radius: 16px; }
    .arrow-cell { border-radius: 9px; }
    .arrow-cell small { font-size: 8px; top: 4px; }
    .route-message { min-height: 56px; }
    .route-status { margin-bottom: 12px; }
    .route-caption { margin: 13px 2px 4px; }
    .game-cards { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
    .landing { padding-top: 30px; }
    .game-card { padding: 25px; }
    .game-card p { min-height: auto; }
    .game-card h2 { margin-top: 10px; }
  }
  @media (max-width: 360px) {
    .lineup, .roster .lineup-open { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    .three .hero h1 { font-size: 33px; }
    .condition-name { font-size: 12px; }
    .nav-actions .text-button { padding: 10px 8px; }
    .other-game { max-width: 105px; text-align: right; }
    .arrow-cell { font-size: 27px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  }
}
