:root {
  --bg: #f3efe6;
  --surface: rgba(255, 255, 255, 0.82);
  --text: #182126;
  --muted: #5f6a72;
  --line: rgba(24, 33, 38, 0.12);
  --shadow: 0 24px 60px rgba(17, 27, 33, 0.12);
  --hero-start: #0d1b2a;
  --hero-end: #1b4332;
  --accent: #d62828;
  --team-accent: #d62828;
  --team-eyebrow: #8a4231;
  --page-glow-primary: rgba(214, 40, 40, 0.12);
  --page-glow-secondary: rgba(27, 67, 50, 0.15);
  --surface-tint: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(214, 40, 40, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(27, 67, 50, 0.15), transparent 28%),
    linear-gradient(180deg, #f7f3ea 0%, #efe7d9 100%);
  font-family: "Space Grotesk", sans-serif;
}

.team-page {
  background:
    radial-gradient(circle at top left, var(--page-glow-primary), transparent 32%),
    radial-gradient(circle at top right, var(--page-glow-secondary), transparent 28%),
    linear-gradient(180deg, #f8f4ec 0%, #efe6d8 100%);
}

.about-page {
  background:
    radial-gradient(circle at top left, rgba(196, 24, 34, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(243, 193, 44, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f3e8 0%, #eee3d2 100%);
}

.news-page {
  background:
    radial-gradient(circle at top left, rgba(22, 72, 145, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(196, 24, 34, 0.12), transparent 28%),
    linear-gradient(180deg, #f5f1ea 0%, #ece1d4 100%);
}

.contact-page {
  background:
    radial-gradient(circle at top left, rgba(20, 74, 125, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(244, 162, 97, 0.14), transparent 28%),
    linear-gradient(180deg, #f5f0e6 0%, #ece1d1 100%);
}

.contact-page h1 {
  max-width: 13.5ch;
}

.legacy-page {
  background:
    radial-gradient(circle at top left, rgba(142, 111, 42, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(36, 58, 92, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f1e4 0%, #ece1cd 100%);
}

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

.hero,
.team-hero {
  color: #f7f7f2;
  background:
    linear-gradient(135deg, rgba(13, 27, 42, 0.9), rgba(27, 67, 50, 0.78)),
    linear-gradient(120deg, var(--hero-start), var(--hero-end));
  padding: 1.5rem clamp(1.25rem, 3vw, 3rem) 5rem;
  position: relative;
  overflow: hidden;
}

.team-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--hero-start) 88%, black), color-mix(in srgb, var(--hero-end) 78%, black)),
    linear-gradient(120deg, var(--hero-start), var(--hero-end));
}

.hero::after,
.team-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 22rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 72px;
  object-fit: contain;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
  color: rgba(247, 247, 242, 0.85);
}

.topbar-links a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
  text-align: center;
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.hero-content,
.team-hero-content,
.section,
.team-main,
.site-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-content,
.team-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px);
  gap: 2rem;
  align-items: start;
}

.hero-feature-panel {
  align-self: center;
  padding: 0.75rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.hero-feature-image {
  display: block;
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: rgba(247, 247, 242, 0.72);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1 { max-width: 11ch; font-size: clamp(3rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: 1.6rem; }

.hero-copy,
.team-subcopy,
.feature-card p,
.team-card p,
.stat-card p,
.site-footer,
.meta-item span,
.team-summary p {
  line-height: 1.6;
  color: var(--muted);
}

.hero-copy,
.team-subcopy {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: rgba(247, 247, 242, 0.82);
  font-size: 1.08rem;
}

.hero-actions,
.team-links,
.team-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.button-primary {
  background: #f4a261;
  color: #12202c;
  border-color: transparent;
}

.button-secondary {
  color: #f7f7f2;
  background: rgba(255, 255, 255, 0.08);
}

.hero-actions .button[aria-current="page"] {
  background: #f4a261;
  color: #12202c;
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(9, 17, 25, 0.2);
}

.hero-next-games {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.hero-next-games h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.hero-next-date,
.hero-next-game p,
.hero-next-link {
  color: rgba(247, 247, 242, 0.8);
  line-height: 1.6;
}

.hero-next-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.hero-next-game {
  padding: 0.9rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-next-game:first-child {
  padding-top: 0;
  border-top: 0;
}

.hero-next-matchup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.hero-next-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
}

.section {
  padding: 4.5rem 1.25rem 0;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.section-heading .eyebrow { color: #8a4231; }
.team-page .section-heading .eyebrow { color: var(--team-eyebrow); }

.feature-grid,
.team-grid,
.stats-overview {
  display: grid;
  gap: 1.25rem;
}

.hero-layout > *,
.team-hero-grid > *,
.team-layout > *,
.about-layout > *,
.news-feature > *,
.contact-grid > *,
.feature-grid > *,
.team-grid > *,
.news-grid > *,
.news-gallery-grid > *,
.gallery-section-grid > *,
.legacy-awards-grid > * {
  min-width: 0;
}

.feature-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.feature-card,
.team-card,
.stat-card,
.team-summary,
.roster-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.team-page .stat-card,
.team-page .team-summary,
.team-page .roster-panel {
  background:
    linear-gradient(180deg, color-mix(in srgb, white 92%, var(--surface-tint)), rgba(255, 255, 255, 0.88));
}

.feature-card,
.stat-card,
.team-summary,
.roster-panel {
  padding: 1.5rem;
}

.team-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.team-card {
  padding: 1.6rem;
  position: relative;
  min-height: 220px;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--accent);
}

.accent-red { --accent: #d72638; }
.accent-blue { --accent: #b88a00; }
.accent-gold { --accent: #123d82; }
.accent-green { --accent: #ff2a2a; }
.accent-brown { --accent: #6f3fa0; }
.accent-navy { --accent: #f39a3b; }
.accent-guardians { --accent: #111111; }

.team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(24, 33, 38, 0.08);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.team-card-logo {
  display: block;
  width: 100%;
  max-width: 180px;
  height: 110px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1rem;
}

.site-footer {
  padding: 3rem 1.25rem 4rem;
  font-size: 0.95rem;
}

.team-main { padding: 0 1.25rem 4rem; }

.team-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 360px);
  gap: 2rem;
  align-items: center;
}

.team-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 1.25rem;
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface-tint) 82%, rgba(255, 255, 255, 0.08));
  border: 1px solid color-mix(in srgb, var(--team-accent) 26%, rgba(255, 255, 255, 0.12));
}

.team-logo-image {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

.meta-item {
  min-width: 12rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.team-page .meta-item {
  background: color-mix(in srgb, var(--team-accent) 16%, rgba(255, 255, 255, 0.1));
  border-color: color-mix(in srgb, var(--team-accent) 22%, rgba(255, 255, 255, 0.12));
}

.meta-item strong {
  display: block;
  font-size: 1.15rem;
}

.stats-overview {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.4rem;
  font-family: "Barlow Condensed", sans-serif;
}

.team-page .stat-card strong,
.team-page .roster-panel h2,
.team-page .team-summary h2,
.team-page .player-name {
  color: var(--team-accent);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.roster-panel h2,
.team-summary h2 {
  margin-bottom: 1rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 0.9rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6d7981;
}

.team-page th {
  color: color-mix(in srgb, var(--team-accent) 72%, #6d7981);
}

tbody tr:last-child td { border-bottom: 0; }
.player-name { font-weight: 700; color: var(--text); }

.team-summary {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.standings-section {
  padding-top: 2.5rem;
}

.schedule-stack {
  display: grid;
  gap: 1.5rem;
}

.schedule-block {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.schedule-date {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.schedule-date p,
.game-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.game-card {
  border-radius: 18px;
  background: rgba(24, 33, 38, 0.04);
  border: 1px solid var(--line);
  padding: 1rem;
}

.team-page .summary-list div {
  border-bottom-color: color-mix(in srgb, var(--team-accent) 18%, var(--line));
}

.game-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.game-line strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
}

.summary-list {
  display: grid;
  gap: 0.85rem;
}

.summary-list div {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.summary-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.small-note { font-size: 0.92rem; }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
}

.about-copy-card,
.gallery-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-copy-card {
  padding: 1.75rem;
}

.about-copy-card p {
  line-height: 1.7;
  color: var(--muted);
}

.about-sidebar {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.about-image-card,
.about-note-card {
  display: grid;
  gap: 1rem;
}

.about-league-logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  object-fit: contain;
}

.about-photo-large {
  display: block;
  width: 100%;
  border-radius: 18px;
  max-height: 320px;
  object-fit: cover;
  cursor: zoom-in;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-card {
  padding: 0.6rem;
}

.gallery-card img {
  width: 100%;
  max-width: none;
  height: 210px;
  border-radius: 18px;
  object-fit: cover;
  cursor: zoom-in;
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  max-height: 90vh;
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: 90vh;
  border-radius: 18px;
  object-fit: contain;
  background: #111;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-nav-prev {
  left: 1rem;
}

.lightbox-nav-next {
  right: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.95fr);
  gap: 1.5rem;
}

.news-feature-copy,
.news-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.news-feature-copy {
  padding: 1.75rem;
}

.news-feature-copy p,
.news-card p,
.gallery-photo-card p {
  line-height: 1.7;
  color: var(--muted);
}

.news-feature-art {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.news-grid,
.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.news-card {
  padding: 1.4rem;
}

.news-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9c2f2f;
}

.gallery-photo-card {
  align-content: start;
}

.gallery-link-card {
  display: grid;
  gap: 0.8rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-link-card:hover,
.gallery-link-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(17, 27, 33, 0.16);
  outline: none;
}

.gallery-link-card img,
.gallery-image-card img {
  cursor: pointer;
}

.gallery-link-card span {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.gallery-jump-links {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
}

.gallery-section {
  padding-top: 3rem;
}

.gallery-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-image-card {
  padding: 0.6rem;
}

.gallery-image-card img {
  height: 260px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem;
}

.contact-info-panel,
.contact-form-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.contact-info-panel {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.contact-info-list {
  display: grid;
  gap: 1rem;
}

.contact-info-list div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-info-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-info-list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.contact-info-list span,
.contact-note {
  color: var(--muted);
  line-height: 1.7;
}

.contact-form-panel {
  display: grid;
  gap: 1.25rem;
}

.contact-embed {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.contact-embed .ft {
  width: 100%;
  min-height: 500px;
}

.contact-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(24, 33, 38, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-submit {
  width: fit-content;
}

.legacy-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.legacy-award-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.legacy-award-header {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.legacy-award-header .eyebrow {
  color: #8a6a2f;
}

.legacy-award-list {
  display: grid;
  gap: 0.85rem;
}

.legacy-award-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.legacy-award-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legacy-award-row strong {
  font-size: 1rem;
  color: var(--text);
}

.legacy-award-row span {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(13, 27, 42, 0.88);
  color: #f7f7f2;
  box-shadow: 0 18px 40px rgba(17, 27, 33, 0.24);
  backdrop-filter: blur(12px);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.back-to-top::before {
  content: "↑";
  font-size: 1rem;
  line-height: 1;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(13, 27, 42, 0.96);
  box-shadow: 0 22px 46px rgba(17, 27, 33, 0.3);
  outline: none;
}

.back-to-top-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.lightbox-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 820px) {
  .team-layout { grid-template-columns: 1fr; }
  .team-hero-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .news-feature { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero,
  .team-hero {
    padding: 1.25rem 1.25rem 3.5rem;
  }
  .hero-content,
  .team-hero-content {
    padding-top: 2.5rem;
  }
  .hero::after,
  .team-hero::after {
    width: 16rem;
  }
  .topbar-links {
    gap: 0.4rem;
  }
  .topbar-links a {
    padding: 0.65rem 0.85rem;
  }
  .team-logo-panel {
    min-height: 200px;
  }
  .meta-item {
    min-width: calc(50% - 0.5rem);
  }
  .section {
    padding-top: 3.5rem;
  }
  .site-footer,
  .team-main {
    padding-bottom: 3rem;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .topbar-links a {
    width: 100%;
  }

  .brand-logo {
    height: 56px;
  }

  .hero,
  .team-hero {
    padding: 1rem 1rem 3rem;
  }

  .hero-content,
  .team-hero-content {
    padding-top: 2rem;
  }

  .hero-actions,
  .team-header-meta,
  .gallery-jump-links {
    gap: 0.75rem;
  }

  .hero-next-matchup {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .hero-actions .button,
  .gallery-jump-links .button,
  .contact-submit {
    width: 100%;
    min-width: 0;
  }

  .hero-next-games,
  .feature-card,
  .stat-card,
  .team-summary,
  .roster-panel,
  .schedule-block,
  .about-copy-card,
  .news-feature-copy,
  .news-card,
  .contact-info-panel,
  .contact-form-panel,
  .legacy-award-card {
    padding: 1.2rem;
  }

  .team-card {
    min-height: 0;
    padding: 1.25rem;
  }

  .team-logo-panel {
    min-height: 160px;
    padding: 1rem;
  }

  .meta-item {
    width: 100%;
    min-width: 0;
  }

  .stats-overview {
    margin-top: -1.25rem;
  }

  .table-wrap {
    margin-inline: -0.2rem;
    padding-bottom: 0.35rem;
  }

  table {
    min-width: 540px;
    font-size: 0.94rem;
  }

  .game-line,
  .legacy-award-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-gallery,
  .gallery-section-grid,
  .news-gallery-grid,
  .news-grid,
  .feature-grid,
  .team-grid,
  .legacy-awards-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card img,
  .gallery-image-card img {
    height: 200px;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-content {
    width: 100%;
  }

  .lightbox-nav {
    width: 2.75rem;
    height: 2.75rem;
  }

  .lightbox-nav-prev {
    left: 0.5rem;
  }

  .lightbox-nav-next {
    right: 0.5rem;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .section {
    padding: 3rem 1rem 0;
  }

  h1 { max-width: 100%; }
  h2 { font-size: clamp(1.8rem, 10vw, 2.4rem); }
  h3 { font-size: 1.4rem; }
  .team-main,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .button { width: 100%; }
  .back-to-top {
    width: auto;
    max-width: calc(100vw - 2rem);
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(2.35rem, 14vw, 3rem);
  }

  .topbar-links a,
  .button,
  .back-to-top {
    font-size: 0.95rem;
  }

  .hero-copy,
  .team-subcopy {
    font-size: 1rem;
  }

  .hero-next-games h2,
  .game-line strong,
  .contact-info-list strong,
  .gallery-link-card span {
    font-size: 1.2rem;
  }

  .hero-next-matchup {
    font-size: 1.15rem;
  }

  .stat-card strong {
    font-size: 1.7rem;
  }

  .lightbox-nav {
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1.2rem;
  }

  th,
  td {
    padding: 0.8rem 0.65rem;
  }
}
