@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #17241d;
  --ink-soft: #415047;
  --muted: #748078;
  --paper: #f7f6f1;
  --white: #fffefa;
  --green: #245b3e;
  --green-dark: #173d2b;
  --green-pale: #e8eee7;
  --orange: #e87535;
  --orange-pale: #fbefe6;
  --line: #e2e4dc;
  --shadow: 0 18px 48px rgba(22, 38, 28, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(232, 117, 53, 0.7);
  outline-offset: 3px;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 254, 250, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.main-nav a {
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 600;
  padding: 10px 14px;
  transition: background 160ms ease, color 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--green-pale);
  color: var(--green-dark);
}

.main-nav a.nav-cta {
  margin-left: 6px;
  background: var(--green);
  color: white;
  padding-inline: 19px;
}

.main-nav a.nav-cta:hover {
  background: var(--green-dark);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(700px, calc(100svh - 82px));
  align-items: center;
  overflow: hidden;
  color: white;
  background-color: #1b3929;
  background-image:
    linear-gradient(90deg, rgba(10, 25, 17, 0.88) 0%, rgba(12, 27, 19, 0.66) 43%, rgba(11, 25, 18, 0.14) 100%),
    linear-gradient(0deg, rgba(11, 24, 17, 0.3), transparent 40%),
    url("assets/kickball-field.jpg");
  background-position: center, center, center 58%;
  background-size: cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--orange) 0 34%, #f1c96e 34% 50%, transparent 50%);
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 64px;
  padding-block: 84px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd29e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.hero h1,
.page-hero h1 {
  margin-bottom: 22px;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(3.6rem, 7vw, 6.7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
}

.lede {
  max-width: 590px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 21px;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--orange);
  color: #17241d;
}

.btn.primary:hover {
  background: #d56227;
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn.wide {
  width: 100%;
}

.next-game {
  align-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(18, 36, 25, 0.76);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.next-game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 15px 18px;
}

.next-game-heading span:first-child {
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d4e6d6;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.live-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #91d69e;
  content: "";
}

.matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 23px 18px 19px;
}

.matchup-team {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.matchup-team img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.opponent-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.82);
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.6rem;
}

.matchup-team strong {
  font-size: 0.7rem;
  line-height: 1.3;
}

.versus {
  color: #e9c78e;
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.4rem;
}

.game-details {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.79rem;
  padding: 14px 18px 16px;
}

.game-details strong {
  display: block;
  color: white;
  font-size: 0.89rem;
}

.section {
  padding-block: 88px;
}

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

.section-heading h2,
.two-col h2,
.section h2 {
  margin-bottom: 0;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-transform: uppercase;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.text-link {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--orange);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-item {
  display: flex;
  min-width: 0;
  min-height: 108px;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--line);
}

.stat-number {
  flex: 0 0 auto;
  color: var(--green);
  font-family: Oswald, Impact, sans-serif;
  font-size: 2.8rem;
  line-height: 1;
}

.stat-label {
  min-width: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.stat-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.home-announcement {
  margin-top: 25px;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  background: rgba(255, 254, 250, 0.92);
}

.home-announcement .eyebrow {
  margin-bottom: 6px;
}

.home-announcement h2 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.home-announcement > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.club-section {
  background: var(--white);
}

.three-up {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  min-height: 230px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffefa;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-index {
  display: block;
  margin-bottom: 23px;
  color: var(--orange);
  font-family: Oswald, Impact, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.info-card h3,
.player-card h3 {
  margin-bottom: 9px;
  font-size: 1.13rem;
  letter-spacing: -0.025em;
}

.info-card p,
.two-col p,
.player-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section-green {
  background: var(--green-dark);
  color: white;
}

.section-green .eyebrow {
  color: #eeb36c;
}

.section-green .text-link {
  color: #ffe2b7;
}

.section-green .text-link:hover {
  color: white;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 64px;
}

.two-col > p {
  max-width: 530px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 66px;
  background:
    linear-gradient(90deg, rgba(16, 43, 29, 0.96), rgba(24, 61, 41, 0.88)),
    url("assets/kickball-field.jpg") center 58% / cover;
  color: white;
}

.page-hero h1 {
  max-width: 800px;
  font-size: clamp(3rem, 6vw, 5.2rem);
}

.page-hero .eyebrow {
  color: #ffd29e;
}

.page-intro {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.narrow {
  max-width: 820px;
}

.about-image {
  position: relative;
  min-height: 370px;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(10, 25, 17, 0.62), transparent 55%),
    url("assets/kickball-field.jpg") center / cover;
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  grid-template-rows: repeat(2, minmax(210px, 1fr));
  gap: 18px;
}

.gallery-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 30px;
  margin-bottom: 34px;
  padding: 26px 28px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery-upload-panel .eyebrow {
  margin-bottom: 7px;
}

.gallery-upload-panel h2 {
  margin-bottom: 6px;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.gallery-upload-panel p:not(.eyebrow):not(.upload-status) {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.upload-button {
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.visually-hidden:focus-visible + .upload-hint {
  outline: 3px solid rgba(232, 117, 53, 0.7);
  outline-offset: 3px;
}

.upload-hint,
.gallery-section-heading > span {
  color: var(--muted);
  font-size: 0.73rem;
}

.upload-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 0.84rem;
}

.upload-status.error {
  color: #a2432c;
}

.gallery-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 17px;
}

.gallery-section-heading h2 {
  margin: 0;
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.gallery-admin-link {
  margin: -20px 0 25px;
  text-align: right;
}

.gallery-data-status {
  color: var(--muted);
  font-size: 0.85rem;
}

.gallery-data-status.error {
  color: #a2432c;
}

.uploaded-gallery:empty {
  display: none;
}

.uploaded-gallery:not(:empty) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  margin-bottom: 38px;
}

.uploaded-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.uploaded-photo img {
  display: block;
  width: 100%;
  height: 245px;
  object-fit: cover;
  background: var(--green-pale);
}

.uploaded-photo figcaption {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
}

.uploaded-photo figcaption span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-photo {
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  background: var(--orange-pale);
  color: #8c4726;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 9px;
}

.remove-photo:hover {
  background: #f4dfd0;
}

.admin-container {
  max-width: 900px;
}

.admin-config-message {
  margin-bottom: 22px;
  border-left: 4px solid var(--orange);
  border-radius: 5px;
  background: var(--orange-pale);
  color: #70452d;
  padding: 20px 23px;
}

.admin-config-message h2 {
  margin-bottom: 8px;
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-config-message p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.admin-config-message a {
  color: #70452d;
  font-weight: 800;
  text-decoration: underline;
}

.admin-config-message code {
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 4px;
}

.admin-login {
  display: grid;
  max-width: 480px;
  gap: 17px;
  margin-inline: auto;
}

.admin-login h2 {
  margin: -10px 0 0;
  font-family: Oswald, Impact, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 0.86rem;
}

.admin-status.error {
  color: #a2432c;
}

.admin-dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-dashboard-heading .eyebrow {
  margin-bottom: 8px;
}

.admin-dashboard-heading h2 {
  margin-bottom: 5px;
  font-family: Oswald, Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  text-transform: uppercase;
}

.admin-dashboard-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-signout {
  flex: 0 0 auto;
  color: var(--ink);
}

.admin-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 8px 26px rgba(22, 38, 28, 0.05);
}

.admin-panel > summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  list-style-position: inside;
  padding: 18px 20px;
}

.admin-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.admin-form .field-row {
  gap: 14px;
}

.admin-form input[type="file"] {
  min-height: auto;
  padding: 9px;
}

.admin-form input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.admin-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-form button:disabled,
.admin-row-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-record-list {
  display: grid;
  padding: 0 20px 20px;
}

.admin-record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
}

.admin-record-row > div:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-record-row strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
}

.admin-record-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.77rem;
  text-overflow: ellipsis;
}

.admin-row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.admin-text-button {
  border: 0;
  background: none;
  color: var(--green);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 0;
}

.admin-text-button:hover {
  text-decoration: underline;
}

.admin-text-button.danger {
  color: #a2432c;
}

.sample-gallery-heading {
  margin-top: 40px;
}

.gallery-card {
  position: relative;
  display: flex;
  min-height: 245px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  border-radius: 7px;
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

.gallery-feature {
  grid-row: span 2;
  min-height: 490px;
}

.gallery-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(0deg, rgba(10, 25, 17, 0.86), transparent);
  content: "";
}

.gallery-card figcaption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  padding: 21px 23px;
  color: white;
}

.gallery-card figcaption span {
  color: #ffd29e;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gallery-card figcaption strong {
  font-size: 1.08rem;
}

.gallery-art {
  display: grid;
  flex: 1;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(245, 212, 119, 0.18), transparent 35%),
    linear-gradient(140deg, #254a34, #14271d);
}

.gallery-art img {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.28));
}

.gallery-note-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.gallery-note-card .eyebrow {
  margin-bottom: 10px;
}

.gallery-note-card h2 {
  margin-bottom: 10px;
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.7rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.gallery-note-card p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.image-caption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.values-section {
  background: var(--green-pale);
}

.sample-note {
  margin: 0 0 24px;
  border-left: 3px solid var(--orange);
  background: var(--orange-pale);
  color: #70452d;
  font-size: 0.88rem;
  padding: 13px 16px;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.player-card {
  display: flex;
  min-height: 168px;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.player-number {
  display: grid;
  width: 56px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  background: var(--green);
  color: white;
  font-family: Oswald, Impact, sans-serif;
  font-size: 1.5rem;
}

.player-card h3 {
  font-size: 1rem;
}

.player-card p {
  font-size: 0.84rem;
}

.roster-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.roster-cta p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.record-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.summary-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.summary-box span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-box strong {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-family: Oswald, Impact, sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.record-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.record-table th,
.record-table td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.record-table th {
  background: #eef1eb;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.record-table td {
  color: var(--ink-soft);
  font-size: 0.89rem;
}

.record-table .empty-state {
  padding: 38px 20px;
  color: var(--muted);
  text-align: center;
}

.record-table tr:last-child td {
  border-bottom: 0;
}

.result {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  border-radius: 999px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 800;
  padding: 4px 9px;
}

.result.loss {
  background: var(--orange-pale);
  color: #99512c;
}

.form-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 48px;
}

.form-aside {
  padding-top: 8px;
}

.form-aside h2 {
  margin-bottom: 15px;
  font-family: Oswald, Impact, sans-serif;
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
}

.form-aside p {
  color: var(--muted);
  font-size: 0.94rem;
}

.form-aside .contact-note {
  margin-top: 26px;
  padding: 17px;
  border-left: 3px solid var(--orange);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.form-shell {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.membership-form {
  display: grid;
  gap: 19px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d6dbd2;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  padding: 11px 13px;
}

input::placeholder,
textarea::placeholder {
  color: #9aa39b;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-size: 0.85rem;
}

.site-footer {
  background: #14251b;
  color: rgba(255, 255, 255, 0.72);
}

.footer-wrap {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 16px;
}

.footer-wrap p {
  margin: 0;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: white;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .roster-grid,
  .three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 32px, 560px);
  }

  .nav-wrap {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-block: 12px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 3px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .main-nav a.nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    background-position: center, center, 60% center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 70px 54px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .next-game {
    width: min(100%, 380px);
  }

  .section {
    padding-block: 64px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-item {
    width: 100%;
    min-height: 88px;
    padding: 18px 22px;
  }

  .stat-item + .stat-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .three-up,
  .roster-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .uploaded-gallery:not(:empty) {
    grid-template-columns: 1fr;
  }

  .gallery-upload-panel {
    grid-template-columns: 1fr;
    padding: 22px 18px 16px;
  }

  .upload-actions {
    justify-items: start;
  }

  .gallery-section-heading h2 {
    font-size: 1.55rem;
  }

  .gallery-feature {
    grid-row: auto;
    min-height: 310px;
  }

  .gallery-mark {
    min-height: 270px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-image {
    min-height: 260px;
  }

  .page-hero {
    padding-block: 60px 48px;
  }

  .page-hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

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

  .roster-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-box {
    padding: 17px;
  }

  .table-wrap {
    margin-inline: -2px;
  }

  .record-table th,
  .record-table td {
    padding: 14px;
  }

  .form-shell {
    padding: 21px 17px;
  }

  .admin-dashboard-heading {
    flex-direction: column;
  }

  .admin-record-row {
    align-items: flex-start;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
