:root {
  --green: #0b6e27;
  --green-deep: #12351f;
  --green-soft: #eaf2ec;
  --orange: #f26f21;
  --orange-soft: #fff0e6;
  --ink: #172018;
  --muted: #657064;
  --paper: #fffdf8;
  --line: rgba(23,32,24,.13);
  --shadow: 0 18px 45px rgba(18,53,31,.14);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(242,111,33,.18), transparent 34rem),
    linear-gradient(180deg, var(--green-soft), var(--paper) 34rem);
  min-height: 100svh;
}
button, input, select { font: inherit; }
.gate {
  position: fixed; inset: 0; z-index: 10;
  display: grid; place-items: center;
  padding: 24px;
  background: linear-gradient(145deg, var(--green), var(--green-deep));
}
.gate-card {
  width: min(100%, 430px);
  padding: 30px 24px;
  border-radius: 28px;
  background: rgba(255,253,248,.96);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.mini-badge, .hero-badge {
  display: grid; place-items: center;
  color: var(--orange);
  background: var(--green);
  border: 3px solid var(--orange);
  font-weight: 1000;
  letter-spacing: -.06em;
}
.mini-badge { width: 58px; height: 58px; border-radius: 17px; font-size: 2rem; }
.gate h1, .hero h1 { margin: .1rem 0 .4rem; font-size: clamp(2.4rem, 13vw, 4.5rem); line-height: .9; letter-spacing: -.075em; }
.gate-copy { color: var(--muted); margin: 0 0 1.4rem; }
.gate form { display: grid; gap: 10px; }
label { display: grid; gap: 7px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--green-deep); }
input, select {
  width: 100%; min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 14px;
  background: white;
  color: var(--ink);
  outline-color: var(--orange);
}
button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--orange);
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(242,111,33,.28);
}
.error { min-height: 1.2rem; color: #a73316; font-weight: 800; margin: 0; }
.fineprint { color: var(--muted); font-size: .8rem; margin: 1rem 0 0; }
.app { width: min(1120px, 100%); margin: 0 auto; padding: 18px 14px 34px; }
.is-hidden { display: none !important; }
.hero {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px 10px;
}
.hero h1 { font-size: 1.45rem !important; letter-spacing: -.03em !important; line-height: 1 !important; margin: 0 !important; }
.hero-year { color: var(--orange); font-weight: 900; }
.eyebrow { margin: 0 0 6px; color: var(--orange); font-weight: 1000; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; }
.subtitle { margin: 0; color: var(--muted); font-weight: 650; }
.hero-badge { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; font-size: 1.3rem; box-shadow: none; }
.panel {
  background: rgba(255,253,248,.88);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 14px 0;
  backdrop-filter: blur(10px);
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.04em; }
.count { color: white; background: var(--green); border-radius: 999px; padding: 7px 10px; font-size: .8rem; font-weight: 900; white-space: nowrap; }
.control-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.roster-grid { display: grid; gap: 12px; }
.player-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: 122px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
}
.jersey {
  display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  color: white;
  font-size: 2rem;
  font-weight: 1000;
  letter-spacing: -.05em;
}
.player-main { display: grid; gap: 8px; align-content: center; min-width: 0; }
.player-name { margin: 0; font-size: 1.28rem; letter-spacing: -.035em; }
.player-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-size: .82rem; font-weight: 850; }
.pill.orange { background: var(--orange-soft); color: #9a4311; }
.measurements { display: flex; gap: 10px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.staff-list, .schedule-list { display: grid; gap: 10px; }
.staff-card, .schedule-list article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  padding: 14px;
}
.staff-card strong, .schedule-list strong { display: block; font-size: 1.05rem; }
.staff-card span, .schedule-list span, .schedule-list time { color: var(--muted); font-weight: 700; }
.schedule-list article { display: grid; gap: 4px; }
.footer { width: min(1120px, 100%); margin: 0 auto; padding: 0 18px 26px; color: var(--muted); text-align: center; font-size: .85rem; }
@media (min-width: 680px) {
  .app { padding: 30px 24px 52px; }
  .panel { padding: 22px; }
  .control-grid { grid-template-columns: 1.5fr .85fr; }
  .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-card { grid-template-columns: 92px 1fr; }
  .hero-badge { width: 106px; height: 106px; border-radius: 30px; font-size: 4.3rem; }
}
@media (min-width: 1020px) { .roster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* view toggle + compact table */
.view-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.segmented { display: inline-flex; background: var(--green-soft); border-radius: 999px; padding: 3px; }
.seg { border: 0; background: transparent; color: var(--green-deep); font-weight: 900; padding: 7px 14px; border-radius: 999px; font-size: .85rem; cursor: pointer; }
.seg.is-active { background: var(--green); color: white; }
.ghost { border: 2px solid var(--green-soft); background: white; color: var(--green-deep); font-weight: 900; padding: 7px 12px; border-radius: 999px; font-size: .85rem; cursor: pointer; }
.roster-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.roster-table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); padding: 6px 6px; border-bottom: 2px solid var(--green); }
.roster-table td { padding: 7px 6px; border-bottom: 1px solid #e6e9e4; white-space: nowrap; }
.roster-table td.num { font-weight: 1000; color: var(--green); font-size: 1.15rem; width: 2.2rem; }
.roster-table td.name { font-weight: 800; white-space: normal; }
.roster-table tbody tr:nth-child(even) { background: #f4f7f2; }
@media print {
  @page { margin: .5in; }
  body { background: white; }
  .gate, .view-bar, .control-grid, .hero-badge, .subtitle, .footer, .panel:not(.controls) { display: none !important; }
  #roster { display: none !important; }
  #rosterTable { display: table !important; font-size: 10.5pt; }
  .panel { box-shadow: none; border: 0; padding: 0; }
  .app { padding: 0; }
  .hero h1 { font-size: 18pt !important; }
  .roster-table td { padding: 3px 6px; }
  .roster-table td.num { font-size: 12pt; }
  .staff-list, .schedule-list { display: block; }
}

.score { font-weight: 1000; font-size: 1.05rem; color: var(--green-deep); }
.score.win { color: var(--green); } .score.loss { color: #a73316; }
.schedule-list article.played { opacity: .85; }

.game-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.game-links a { font-size: .82rem; font-weight: 800; text-decoration: none; padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); }
.game-links a.watch { background: var(--orange-soft); color: #9a4311; }
@media print { .game-links a { background: none; padding: 0; } .game-links a.watch { display: none; } }
