/* East Bowling Spirit Shop — shared styles for the family shop and the coach tracker.
   Palette: navy ink, pin-stripe red, maple lane wood. */
:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --sunk: #e9edf4;
  --ink: #15203a;
  --muted: #5a6680;
  --line: #d6dce7;
  --accent: #c8102e;
  --accent-ink: #ffffff;
  --lane: #c9965a;
  --good: #1d7a4c;
  --good-bg: #e2f3ea;
  --warn: #9a5b00;
  --warn-bg: #fbefd9;
  --shadow: 0 1px 2px rgba(21,32,58,.06), 0 8px 24px rgba(21,32,58,.10);
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1322; --surface: #161f34; --sunk: #1d2840; --ink: #e8ecf5; --muted: #9ba7c0; --line: #2a3654;
    --accent: #ff5b70; --accent-ink: #1a0509; --lane: #d4a46a; --good: #5fd09a; --good-bg: #173a2b; --warn: #f2b955; --warn-bg: #3a2c12;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5 }
img { max-width: 100% }
[hidden] { display: none !important }
.wrap { max-width: 1120px; margin: 0 auto; padding-block: 24px 96px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: .01em; text-wrap: balance; margin: 0; line-height: 1.05 }
h1 { font-size: clamp(36px, 7vw, 60px); font-weight: 800; text-transform: uppercase }
h2 { font-size: 28px; font-weight: 800; text-transform: uppercase }
h3 { font-size: 21px; font-weight: 700 }
p { margin: 0 }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) }
.muted { color: var(--muted) }
.small { font-size: 13px }
.num { font-variant-numeric: tabular-nums }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
a { color: var(--accent) }

.lane { height: 6px; border-radius: 3px; width: 160px;
  background: repeating-linear-gradient(90deg, var(--lane) 0 14px, color-mix(in srgb, var(--lane) 78%, var(--ink)) 14px 16px) }

/* Form controls */
input[type=text], input[type=search], input[type=number], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface) }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none }
textarea { resize: vertical; min-height: 70px }
label.f { display: grid; gap: 4px; font-size: 13px; font-weight: 600; min-width: 0 }
.req { color: var(--accent) }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
.fields .full { grid-column: 1 / -1 }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr) } }
.checks { display: flex; flex-wrap: wrap; gap: 16px }
.checks label { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px }

.btn { appearance: none; border: 1.5px solid var(--line); background: var(--surface); padding: 9px 15px; border-radius: 8px; font-weight: 650; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: center; justify-content: center; white-space: nowrap; text-decoration: none; color: var(--ink) }
.btn:hover { border-color: var(--muted) }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) }
.btn.primary:hover { filter: brightness(1.06) }
.btn.big { padding: 13px 22px; font-size: 16px }
.btn.small { padding: 5px 10px; font-size: 13px }
.btn.ghost { border-color: transparent; background: none }
.btn.danger { color: var(--accent) }
.btn.danger.armed { background: var(--accent); color: var(--accent-ink); border-color: var(--accent) }
.btn:disabled { opacity: .5; cursor: not-allowed }

.pill { appearance: none; border: 1.5px solid transparent; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
  white-space: nowrap; display: inline-flex; gap: 5px; align-items: center }
.pill.good { background: var(--good-bg); color: var(--good) }
.pill.warn { background: var(--warn-bg); color: var(--warn) }
.pill.plain { background: var(--sunk); color: var(--muted) }
.pill[disabled] { cursor: default }

.banner { padding: 12px 16px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-weight: 600; font-size: 14px }
.err { color: var(--accent); font-weight: 600; font-size: 14px }
.empty { text-align: center; padding: 48px 16px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); display: grid; gap: 8px; justify-items: center }
.empty h3 { color: var(--ink) }

.thumb { width: 44px; height: 44px; flex: none; border-radius: 6px; background: var(--sunk); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 700 }
.thumb img { width: 100%; height: 100%; object-fit: contain }
.logo-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; background: var(--sunk); border-radius: 6px; padding: 1px 7px 1px 2px; vertical-align: middle }
.logo-badge .lb { width: 18px; height: 18px; border-radius: 4px; background: var(--surface); display: grid; place-items: center; font-size: 10px; overflow: hidden }
.logo-badge .lb img { width: 100%; height: 100%; object-fit: contain }

/* Logo choice buttons */
.logo-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.lp { appearance: none; border: 2px solid var(--line); background: var(--surface); border-radius: 8px; padding: 3px 9px 3px 3px; display: inline-flex; align-items: center;
  gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; min-width: 0 }
.lp .lb { width: 36px; height: 36px; flex: none; border-radius: 5px; background: var(--sunk); display: grid; place-items: center; overflow: hidden; font-family: var(--f-display); font-size: 18px }
.lp .lb img { width: 100%; height: 100%; object-fit: contain }
.lp[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent) }
.lp:disabled { cursor: not-allowed; opacity: .6 }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface) }
.qty button { appearance: none; border: 0; background: none; width: 36px; height: 38px; font-size: 18px; font-weight: 700; cursor: pointer }
.qty button:disabled { opacity: .35; cursor: default }
.qty span { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow) }

/* Modal (coach page) */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8,12,24,.55); display: grid; place-items: start center; overflow-y: auto;
  padding: calc(24px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)) }
.modal { width: min(760px, 100%); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 16px }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px }
.modal-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }
