@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=League+Spartan:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #0d2b57;
  --navy-deep: #081b36;
  --us-red: #cb3f33;
  --us-red-deep: #962a24;
  --fairway: #2d6d4e;
  --fairway-deep: #194634;
  --sand: #f1ddb3;
  --paper: rgba(252, 247, 239, 0.96);
  --paper-strong: rgba(255, 251, 245, 0.99);
  --ink: #1d2127;
  --ink-soft: #5b625f;
  --line: rgba(21, 28, 39, 0.1);
  --light-line: rgba(255, 255, 255, 0.18);
  --shadow: 0 28px 62px rgba(6, 17, 33, 0.24);
  --shadow-soft: 0 14px 34px rgba(6, 17, 33, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "League Spartan", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #fff8f0;
  background:
    linear-gradient(135deg, rgba(8, 27, 54, 0.92) 0%, rgba(13, 43, 87, 0.88) 34%, rgba(27, 77, 56, 0.84) 68%, rgba(203, 63, 51, 0.62) 100%),
    radial-gradient(circle at 18% 18%, rgba(241, 221, 179, 0.22), transparent 20%),
    radial-gradient(circle at 82% 8%, rgba(203, 63, 51, 0.18), transparent 18%),
    url("/assets/plastered-open-course-mountain.webp") center center / cover no-repeat fixed;
  background-color: var(--navy-deep);
}

a { color: inherit; }
.hidden { display: none !important; }
.shell { max-width: 1240px; margin: 0 auto; padding: 20px 16px 48px; }
.plastered-home-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.plastered-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff9f2;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--light-line);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(6, 17, 33, 0.16);
}

.plastered-home-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 20px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid var(--light-line);
  background:
    linear-gradient(140deg, rgba(8, 27, 54, 0.9) 0%, rgba(13, 43, 87, 0.84) 46%, rgba(27, 77, 56, 0.7) 100%),
    url("/assets/plastered-open-course-clubhouse.webp") center center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(241, 221, 179, 0.32) 0%, rgba(241, 221, 179, 0.04) 64%, transparent 70%);
  pointer-events: none;
}

.hero-copy {
  display: grid;
  align-content: start;
}

.hero .compact-overview-panel {
  align-self: center;
  background: rgba(255, 251, 245, 0.94);
  box-shadow: 0 18px 40px rgba(6, 17, 33, 0.2);
}

.hero-links,
.hero-actions,
.badge-row,
.dialog-actions,
.championship-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-links {
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(92px, max-content) minmax(132px, max-content) minmax(96px, max-content);
  align-items: center;
  justify-content: start;
  max-width: 820px;
}

.chip-link,
.cta,
.action-btn,
.plain-btn,
.hero-sponsor-total,
.mode-btn,
.hero-banner,
.team-pill {
  appearance: none;
  border: none;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.chip-link,
.cta.secondary,
.plain-btn {
  color: #fff9f2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--light-line);
}

.chip-link,
.cta,
.action-btn,
.plain-btn,
.hero-sponsor-total,
.hero-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.hero-banner {
  color: #241508;
  background: linear-gradient(135deg, #ffe16f 0%, #ffb238 48%, #f05a38 100%);
  border: 1px solid rgba(255, 235, 150, 0.78);
  box-shadow: 0 12px 26px rgba(203, 63, 51, 0.28), 0 0 0 3px rgba(255, 225, 111, 0.1);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  min-height: 52px;
  padding: 11px 18px;
  text-transform: uppercase;
  white-space: normal;
  text-align: center;
}

.hero-sponsor-total {
  color: #fff8f0;
  background: rgba(45, 109, 78, 0.42);
  border: 1px solid rgba(241, 221, 179, 0.34);
  box-shadow: 0 12px 24px rgba(6, 17, 33, 0.16);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  min-height: 30px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.chip-link {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 0.78rem;
}

.cta.primary,
.action-btn {
  color: #fff8f0;
  background: linear-gradient(135deg, var(--us-red) 0%, var(--us-red-deep) 100%);
  box-shadow: var(--shadow-soft);
}

.chip-link:hover,
.cta:hover,
.action-btn:hover,
.plain-btn:hover,
.hero-sponsor-total:hover,
.hero-banner:hover,
.mode-btn:hover,
.team-pill:hover { transform: translateY(-1px); }

.eyebrow {
  margin: 18px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(255, 248, 240, 0.82);
}

.hero h1,
.panel h2,
.dialog-head h3 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 11.5ch;
  text-wrap: balance;
}

.hero-open-flash {
  display: inline-block;
  color: #ffe16f;
  animation: plasteredOpenFlash 1.25s ease-in-out infinite;
}

.hero-copy-text,
.hero-note,
.subhead,
.quiet-note,
.notes-list,
.dialog-head p,
.dialog-msg,
.info-card span,
.message-strip,
.hero-photo figcaption {
  line-height: 1.46;
}

.hero-copy-text {
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: rgba(255, 248, 240, 0.92);
}

.hero-note {
  margin: 14px 0 0;
  max-width: 42rem;
  color: rgba(255, 248, 240, 0.76);
}

.badge-row {
  margin-top: 16px;
  max-width: 760px;
}
.hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 240px);
  gap: 12px;
  margin-top: 10px;
  width: min(100%, 500px);
}

.hero-actions .cta { width: 100%; }

.after-party-flash {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(70px, 96px) minmax(0, 1fr) minmax(118px, 178px);
  gap: clamp(8px, 1.2vw, 16px);
  align-items: center;
  width: min(70%, 870px);
  margin: 6px auto 12px;
  padding: 8px 12px;
  border: 2px solid rgba(255, 225, 111, 0.9);
  border-radius: 22px;
  color: #fff8f0;
  background:
    linear-gradient(135deg, rgba(150, 42, 36, 0.96), rgba(203, 63, 51, 0.88) 34%, rgba(8, 27, 54, 0.92) 100%),
    radial-gradient(circle at 10% 15%, rgba(255, 225, 111, 0.32), transparent 28%),
    radial-gradient(circle at 90% 35%, rgba(241, 221, 179, 0.22), transparent 30%);
  box-shadow: 0 16px 34px rgba(6, 17, 33, 0.24), 0 0 0 4px rgba(255, 225, 111, 0.06);
}

.after-party-venue-logo,
.after-party-chip {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.after-party-venue-logo {
  max-height: 96px;
  padding: 4px;
  object-fit: contain;
  border-radius: 14px;
  background: #ffffff;
  border: 4px solid rgba(8, 27, 54, 0.78);
  box-shadow: 0 10px 22px rgba(6, 17, 33, 0.2);
}

.after-party-chip {
  max-height: 125px;
  object-fit: contain;
  justify-self: end;
  border-radius: 50%;
  filter: drop-shadow(0 12px 18px rgba(6, 17, 33, 0.34));
}

.after-party-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.after-party-copy .eyebrow {
  margin: 0 0 4px;
  font-size: clamp(0.56rem, 0.82vw, 0.72rem);
}

.after-party-copy h2 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2.05vw, 2.2rem);
  line-height: 0.98;
  text-wrap: balance;
}

.after-party-offer {
  max-width: 54rem;
  margin: 5px 0 0;
  font-size: clamp(0.68rem, 1.05vw, 0.94rem);
  line-height: 1.2;
  animation: afterPartyTextFlash 1.45s ease-in-out infinite;
}

.after-party-offer strong {
  color: #ffe16f;
  text-shadow: 0 2px 12px rgba(255, 225, 111, 0.22);
}

.after-party-address {
  margin: 4px 0 0;
  color: rgba(255, 248, 240, 0.84);
  font-size: clamp(0.56rem, 0.76vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

@keyframes plasteredOpenFlash {
  0%, 100% {
    color: #fff8f0;
    text-shadow: none;
  }
  50% {
    color: #ffe16f;
    text-shadow: 0 0 22px rgba(255, 225, 111, 0.58), 0 0 8px rgba(255, 248, 240, 0.3);
  }
}

@keyframes afterPartyTextFlash {
  0%, 100% {
    color: #fff8f0;
    text-shadow: none;
  }
  50% {
    color: #ffe16f;
    text-shadow: 0 0 18px rgba(255, 225, 111, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-open-flash,
  .after-party-offer {
    animation: none;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-gallery,
.stack,
.card-grid,
.triptych,
.mode-grid,
.open-team-list,
.players-wrap {
  display: grid;
  gap: 16px;
}

.hero-gallery {
  display: none;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  width: min(100%, 430px);
  justify-self: end;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-main {
  min-height: 0;
  aspect-ratio: 5 / 6;
}

.hero-photo-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 27, 54, 0.04) 0%, rgba(8, 27, 54, 0.42) 100%);
  pointer-events: none;
}

.hero-photo figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff8f0;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.championship-ribbon {
  margin-top: 16px;
}

.ribbon-card {
  flex: 1 1 220px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 249, 240, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.ribbon-card strong,
.stat-box strong,
.info-card strong,
.team-pill strong {
  display: block;
}

.ribbon-card strong { color: var(--sand); }
.ribbon-card span { display: block; margin-top: 6px; color: rgba(255, 248, 240, 0.78); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.panel {
  padding: 20px;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.panel::before {
  content: "";
  display: block;
  width: 84px;
  height: 6px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--us-red) 0%, var(--sand) 52%, var(--fairway) 100%);
}

.signup-panel {
  position: relative !important;
  top: auto !important;
  z-index: 0;
  padding: 16px;
  background: var(--paper-strong);
}

.signup-panel::before {
  width: 70px;
  margin-bottom: 10px;
}

.signup-panel .subhead {
  margin-top: 8px;
  font-size: 0.96rem;
  line-height: 1.36;
}

.signup-panel .stats-grid {
  gap: 8px;
  margin-top: 12px;
}

.signup-panel .stat-box {
  padding: 11px 12px;
  border-radius: 15px;
}

.signup-panel .stat-box strong {
  font-size: 1.18rem;
}

.signup-panel .stat-box span {
  margin-top: 4px;
  font-size: 0.84rem;
  line-height: 1.25;
}

.signup-panel .message-strip {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.35;
}

.signup-panel .mode-grid,
.signup-panel .open-team-list,
.signup-panel .manage-wrap,
.signup-panel .manage-section,
.signup-panel .manage-player-list,
.signup-panel .players-wrap {
  gap: 10px;
}

.signup-panel .mode-btn,
.signup-panel .team-pill {
  padding: 11px 13px;
  border-radius: 15px;
}

.signup-panel .mode-btn small,
.signup-panel .team-pill small {
  margin-top: 4px;
  font-size: 0.85rem;
  line-height: 1.25;
}

.signup-panel .mini-title {
  font-size: 0.76rem;
}

.signup-panel .quiet-note {
  font-size: 0.92rem;
  line-height: 1.34;
}

.signup-panel .status-check {
  gap: 8px;
}

.signup-panel .status-check-suppressed {
  display: none !important;
}

.signup-panel .status-check input,
.signup-panel .plain-btn,
.signup-panel .action-btn {
  padding: 11px 13px;
  border-radius: 14px;
}
.payment-qr-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.payment-breakdown {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(13, 43, 87, 0.14);
  border-radius: 16px;
  background: rgba(255, 251, 245, 0.92);
  color: var(--ink);
}

.payment-breakdown h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

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

.payment-breakdown-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(21, 28, 39, 0.09);
  border-radius: 14px;
  background: #fff;
}

.payment-breakdown-card strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.payment-breakdown-card span,
.payment-breakdown-note,
.player-price-note {
  color: var(--ink-soft);
  line-height: 1.32;
}

.payment-breakdown-card.course { box-shadow: inset 0 0 0 1px rgba(13, 43, 87, 0.08); }
.payment-breakdown-card.tommy { box-shadow: inset 0 0 0 1px rgba(203, 63, 51, 0.09); }
.payment-breakdown-card.john { box-shadow: inset 0 0 0 1px rgba(45, 109, 78, 0.1); }

.payment-breakdown-note {
  margin: 0;
  font-size: 0.98rem;
}

.payment-breakdown-note strong {
  color: var(--us-red-deep);
}

.dialog-payment-breakdown {
  margin: 0 0 4px;
}

.payment-qr-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(21, 28, 39, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.payment-qr-label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.payment-qr-card img {
  display: block;
  width: min(100%, 128px);
  height: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(21, 28, 39, 0.08);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.panel-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.entrant-list-btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  margin-top: 12px;
  border-color: rgba(13, 43, 87, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

.panel h2 { font-size: clamp(1.6rem, 2.7vw, 2rem); }
.subhead { margin: 10px 0 0; color: var(--ink-soft); }

.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.triptych { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }

.compact-overview-panel .subhead {
  max-width: 38rem;
}

.compact-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info-card,
.stat-box,
.team-pill,
.message-strip,
.player-row {
  padding: 15px;
  border-radius: 18px;
  background: #fffbf4;
  border: 1px solid rgba(21, 28, 39, 0.08);
}

.info-card {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 248, 241, 0.9) 100%);
}

.compact-info-card {
  padding: 13px 14px;
}

.compact-info-card strong {
  font-size: 1rem;
}

.compact-info-card span {
  margin-top: 4px;
  font-size: 0.94rem;
  line-height: 1.34;
}

.us-open-card { box-shadow: inset 0 0 0 1px rgba(203, 63, 51, 0.08); }
.fairway-card { box-shadow: inset 0 0 0 1px rgba(45, 109, 78, 0.08); }
.sunset-card { box-shadow: inset 0 0 0 1px rgba(13, 43, 87, 0.08); }
.scorecard-card { box-shadow: inset 0 0 0 1px rgba(241, 221, 179, 0.28); }

.info-card span,
.stat-box span,
.team-pill span,
.team-pill small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
}

.stat-box strong { font-size: 1.45rem; line-height: 1; color: var(--navy); }
.message-strip strong { color: var(--fairway-deep); }

.signup-warning {
  padding: 14px 15px;
  border-radius: 16px;
  border: 2px solid rgba(203, 63, 51, 0.5);
  background: linear-gradient(135deg, rgba(203, 63, 51, 0.14) 0%, rgba(255, 225, 111, 0.24) 100%);
  color: var(--us-red-deep);
  font-weight: 800;
  line-height: 1.35;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

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

.mode-btn,
.team-pill {
  display: block;
  width: 100%;
  text-align: left;
}

.mode-btn {
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff9f2;
  background: linear-gradient(135deg, var(--navy) 0%, var(--fairway-deep) 100%);
  box-shadow: 0 10px 22px rgba(8, 27, 54, 0.16);
}

.mode-btn small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 248, 240, 0.74);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(13, 43, 87, 0.12) 0%, rgba(45, 109, 78, 0.12) 100%);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-pill.open { background: rgba(45, 109, 78, 0.16); color: var(--fairway-deep); }
.status-pill.waitlist { background: rgba(203, 63, 51, 0.15); color: var(--us-red-deep); }
.status-pill.closed,
.status-pill.completed { background: rgba(13, 43, 87, 0.12); color: var(--navy); }

.status-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.status-check input,
.field input,
.field textarea,
.field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(21, 28, 39, 0.12);
  padding: 13px 14px;
  font: inherit;
  background: #fffdf8;
  color: var(--ink);
}

.mini-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  color: var(--navy);
}

.notes-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.notes-list li + li { margin-top: 8px; }
.sponsor-panel .subhead { margin-bottom: 16px; }

.sponsor-callout {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(203, 63, 51, 0.12) 0%, rgba(241, 221, 179, 0.2) 50%, rgba(45, 109, 78, 0.12) 100%);
  border: 1px solid rgba(203, 63, 51, 0.12);
}

.sponsor-callout p { margin: 8px 0 0; color: var(--ink-soft); }

.sponsor-tracker {
  appearance: none;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(45, 109, 78, 0.16);
  background: rgba(45, 109, 78, 0.08);
  color: var(--fairway-deep);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sponsor-tracker:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 109, 78, 0.34);
  background: rgba(45, 109, 78, 0.12);
}

.sponsor-tracker:focus-visible {
  outline: 3px solid rgba(203, 63, 51, 0.32);
  outline-offset: 3px;
}

.sponsor-tracker strong {
  font-size: 1.35rem;
  line-height: 1;
}

.sponsor-tracker span {
  color: var(--ink-soft);
  font-weight: 700;
}

.footer-admin {
  margin-top: 20px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff8f0;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(13, 43, 87, 0.88) 0%, rgba(27, 77, 56, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.footer-admin-link:hover { transform: translateY(-1px); }

.footer-admin-note {
  margin: 0;
  color: rgba(255, 248, 240, 0.74);
  text-align: center;
}

.footer-note { margin-top: 18px; text-align: center; color: rgba(255, 248, 240, 0.72); }

dialog {
  border: none;
  padding: 0;
  width: min(760px, calc(100vw - 24px));
  background: transparent;
}

dialog::backdrop {
  background: rgba(5, 9, 8, 0.62);
  backdrop-filter: blur(4px);
}

.dialog-card {
  border-radius: 24px;
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dialog-head {
  position: relative;
  padding: 18px 104px 0 20px;
}
.dialog-head h3 { font-size: 1.85rem; }
.dialog-body { display: grid; gap: 14px; padding: 18px 20px 20px; }

.dialog-dismiss {
  position: absolute;
  top: 16px;
  right: 18px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(13, 43, 87, 0.16);
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.dialog-dismiss:hover {
  background: rgba(255, 255, 255, 1);
}

.sponsor-progress-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sponsor-progress-metric {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(45, 109, 78, 0.14);
  border-radius: 14px;
  background: rgba(45, 109, 78, 0.07);
}

.sponsor-progress-metric strong {
  color: var(--fairway-deep);
  font-size: 1.35rem;
  line-height: 1;
}

.sponsor-progress-metric span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sponsor-progress-list-title {
  margin: 0 0 8px;
  color: var(--fairway-deep);
  font-weight: 900;
}

.sponsor-progress-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sponsor-progress-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(45, 109, 78, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.sponsor-progress-list li span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sponsor-progress-list li small {
  color: var(--ink-soft);
  font-weight: 700;
}

.sponsor-progress-list li > strong {
  color: var(--us-red-deep);
  white-space: nowrap;
}

.entrant-payment-team-list {
  display: grid;
  gap: 8px;
}

.entrant-payment-team {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(13, 43, 87, 0.12);
  border-radius: 16px;
  background: rgba(13, 43, 87, 0.04);
}

.entrant-payment-team h4 {
  margin: 0;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 950;
}

.entrant-payment-pairing {
  margin: -3px 0 0;
  color: var(--fairway-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.entrant-payment-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entrant-payment-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(13, 43, 87, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.entrant-payment-list li span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.entrant-payment-list li strong {
  white-space: nowrap;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.entrant-payment-list li strong.paid { color: var(--fairway-deep); }
.entrant-payment-list li strong.unpaid { color: var(--us-red-deep); }

.field { display: grid; gap: 6px; font-weight: 600; color: var(--fairway-deep); }

.player-tools {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.manage-wrap,
.manage-section,
.manage-player-list {
  display: grid;
  gap: 10px;
}

.manage-wrap {
  margin-top: 12px;
}

.manage-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.manage-summary {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 248, 241, 0.9) 100%);
}

.manage-player-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 15px;
  border-radius: 18px;
  background: #fffbf4;
  border: 1px solid rgba(21, 28, 39, 0.08);
}

.manage-player-copy span,
.manage-player-copy small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
}

.manage-player-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.manage-tag,
.manage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(21, 28, 39, 0.1);
  background: rgba(13, 43, 87, 0.06);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
}

.plain-btn.destructive {
  color: var(--us-red-deep);
  background: rgba(203, 63, 51, 0.08);
  border-color: rgba(203, 63, 51, 0.2);
}

.dialog-msg {
  min-height: 1.2em;
  color: var(--us-red-deep);
  font-weight: 700;
}

@media (max-width: 1040px) {
  .hero,
  .after-party-flash,
  .layout,
  .triptych {
    grid-template-columns: 1fr;
  }

  .after-party-flash {
    width: min(100%, 520px);
  }

  .signup-panel { position: static; }
}

@media (max-width: 760px) {
  body { background-attachment: scroll, scroll, scroll, scroll; }

  .shell { padding: 12px 12px 28px; }

.hero,
.panel,
.dialog-card { border-radius: 20px; }

  .hero {
    gap: 16px;
    padding: 18px;
  }

  .hero-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: none;
  }

  .hero-links > a { width: auto; }

  .hero-copy-text {
    font-size: 1rem;
    line-height: 1.5;
  }

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

  .badge {
    justify-content: center;
    min-height: 44px;
    text-align: center;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: min(100%, 320px);
    justify-self: center;
  }

  .hero-actions { grid-template-columns: 1fr; width: 100%; }
  .hero-photo-main { grid-row: auto; min-height: 240px; }

  .layout {
    gap: 16px;
    margin-top: 16px;
  }

  .panel { padding: 18px; }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-head .status-pill { align-self: flex-start; }

  .card-grid,
  .stats-grid,
  .payment-breakdown-grid,
  .grid2,
  .status-check { grid-template-columns: 1fr; }

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

  .dialog-card {
    max-height: calc(100dvh - 24px);
    overflow: auto;
  }

  .dialog-head { padding: 16px 16px 0; }
  .dialog-body { padding: 16px; }

  .sponsor-progress-summary { grid-template-columns: 1fr; }

  .sponsor-progress-list li {
    align-items: flex-start;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dialog-actions .plain-btn,
  .dialog-actions .action-btn { width: 100%; }

  .player-tools,
  .manage-section-head,
  .manage-player-card {
    flex-direction: column;
    align-items: stretch;
  }

  .manage-player-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .sponsor-callout {
    flex-direction: column;
    align-items: stretch;
  }

  .sponsor-callout .cta { width: 100%; }

  .footer-admin-link { width: min(100%, 24rem); }
  .footer-admin-note { max-width: 30rem; }
}

@media (max-width: 560px) {
  .hero { padding: 16px; }

  .eyebrow {
    margin: 12px 0 8px;
    font-size: 0.74rem;
    letter-spacing: 0.15em;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 8vw, 2.15rem);
    max-width: 7.2ch;
  }

  .hero-copy-text {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .hero-gallery { width: min(100%, 280px); }
  .hero-photo-main { min-height: 0; }

  .panel { padding: 16px; }

  .panel::before {
    width: 72px;
    margin-bottom: 12px;
  }

  .panel h2 { font-size: clamp(1.45rem, 9vw, 1.9rem); }

  .subhead,
  .quiet-note,
  .notes-list,
  .message-strip,
  .info-card span {
    font-size: 0.98rem;
  }

  .compact-overview-grid { grid-template-columns: 1fr; }

  .status-pill {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }

  .notes-list { padding-left: 18px; }

  .sponsor-callout {
    padding: 14px;
    border-radius: 18px;
  }

}
