:root {
  --bg: #02070d;
  --panel: rgba(2, 18, 31, 0.9);
  --panel-strong: rgba(3, 26, 45, 0.95);
  --line: rgba(160, 0, 0, 0.38);
  --line-soft: rgba(255, 255, 255, 0.12);
  --blue: #006dff;
  --blue-hot: #19a8ff;
  --masters-red: #a00000;
  --green: #17c753;
  --lime: #b8ff12;
  --yellow: #ffc629;
  --red: #ef233c;
  --text: #f7fbff;
  --muted: #a8bdd1;
  --black: #02070d;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family:
    "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% -15%, rgba(0, 109, 255, 0.26), transparent 33rem),
    radial-gradient(circle at 10% 90%, rgba(25, 168, 255, 0.16), transparent 30rem),
    linear-gradient(180deg, #02070d 0%, #00101c 52%, #02070d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(0, 109, 255, 0.38) 42.15%, transparent 42.55% 100%),
    linear-gradient(66deg, transparent 0 58%, rgba(25, 168, 255, 0.26) 58.2%, transparent 58.65% 100%),
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(255, 255, 255, 0.025) 89px 90px);
  mix-blend-mode: screen;
  opacity: 0.7;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(128deg, transparent 0 13%, rgba(25, 168, 255, 0) 13.1%, rgba(25, 168, 255, 0.92) 13.25%, white 13.38%, rgba(184, 255, 18, 0.82) 13.55%, transparent 13.8% 100%),
    linear-gradient(151deg, transparent 0 28%, rgba(0, 109, 255, 0) 28.15%, rgba(0, 109, 255, 0.78) 28.3%, white 28.42%, rgba(255, 198, 41, 0.76) 28.58%, transparent 28.85% 100%),
    linear-gradient(34deg, transparent 0 61%, rgba(184, 255, 18, 0) 61.1%, rgba(184, 255, 18, 0.8) 61.28%, white 61.42%, rgba(25, 168, 255, 0.82) 61.6%, transparent 61.9% 100%),
    linear-gradient(82deg, transparent 0 77%, rgba(239, 35, 60, 0) 77.12%, rgba(239, 35, 60, 0.56) 77.28%, white 77.42%, rgba(0, 109, 255, 0.78) 77.58%, transparent 77.86% 100%),
    radial-gradient(circle at 72% 9%, rgba(0, 109, 255, 0.42), transparent 18rem),
    radial-gradient(circle at 18% 38%, rgba(184, 255, 18, 0.18), transparent 22rem),
    radial-gradient(circle at 84% 72%, rgba(239, 35, 60, 0.16), transparent 24rem);
  filter: drop-shadow(0 0 10px rgba(25, 168, 255, 0.9)) drop-shadow(0 0 22px rgba(184, 255, 18, 0.42));
  mix-blend-mode: screen;
  opacity: 0.62;
}

body[data-page="admin"]::before,
body[data-page="adminEvents"]::before,
body[data-page="adminUsers"]::before,
body[data-page="adminHistoricalStats"]::before,
body[data-page="adminSiteViews"]::before,
body[data-page="adminBrackets"]::before,
body[data-page="adminMembership"]::before,
body[data-page="adminChecks"]::before,
body[data-page="login"]::before,
body[data-page="register"]::before,
body[data-page="scoreEntry"]::before,
body[data-page="lanes"]::before,
body[data-page="payment"]::before,
body[data-page="prizeFund"]::before,
body[data-page="bowlerDashboard"]::before {
  opacity: 0.24;
}

body[data-page="admin"]::after,
body[data-page="adminEvents"]::after,
body[data-page="adminUsers"]::after,
body[data-page="adminHistoricalStats"]::after,
body[data-page="adminSiteViews"]::after,
body[data-page="adminBrackets"]::after,
body[data-page="adminMembership"]::after,
body[data-page="adminChecks"]::after,
body[data-page="login"]::after,
body[data-page="register"]::after,
body[data-page="scoreEntry"]::after,
body[data-page="lanes"]::after,
body[data-page="payment"]::after,
body[data-page="prizeFund"]::after,
body[data-page="bowlerDashboard"]::after {
  filter: drop-shadow(0 0 4px rgba(25, 168, 255, 0.32));
  opacity: 0.16;
}

body[data-page="bowlerDashboard"]::before {
  opacity: 0.18;
}

body[data-page="bowlerDashboard"]::after {
  filter: drop-shadow(0 0 3px rgba(25, 168, 255, 0.22));
  opacity: 0.1;
}

body[data-page="results"]::before {
  opacity: 0.18;
}

body[data-page="results"]::after {
  filter: drop-shadow(0 0 3px rgba(25, 168, 255, 0.2));
  opacity: 0.08;
}

body[data-page="events"]::before {
  opacity: 0.16;
}

body[data-page="events"]::after {
  filter: drop-shadow(0 0 3px rgba(25, 168, 255, 0.18));
  opacity: 0.07;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 58px;
  padding: 0.4rem clamp(0.9rem, 2vw, 1.5rem);
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(0, 109, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand img {
  width: 120px;
  height: 62px;
  object-fit: contain;
}

.main-nav,
.account-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1vw, 1.15rem);
}

.main-nav {
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: #f4f8ff;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a.active {
  color: var(--blue-hot);
  border-bottom: 3px solid var(--blue);
}

.account-actions {
  justify-content: end;
}

.portal {
  position: relative;
  z-index: 1;
  padding: 0 clamp(0.85rem, 1.5vw, 1.5rem) 1.3rem;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(34rem, 1.1fr) minmax(24rem, 0.9fr);
  align-items: stretch;
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
  min-height: 285px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 36%, rgba(160, 0, 0, 0.64), transparent 12rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 7, 17, 0.42)),
    linear-gradient(180deg, rgba(34, 12, 16, 0.65), rgba(0, 0, 0, 0.12));
  border-bottom: 1px solid rgba(160, 0, 0, 0.3);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, transparent 0 58%, rgba(160, 0, 0, 0.72) 58.2%, transparent 58.6% 100%),
    linear-gradient(104deg, transparent 0 66%, rgba(255, 255, 255, 0.3) 66.15%, transparent 66.45% 100%),
    repeating-linear-gradient(102deg, transparent 0 54px, rgba(160, 0, 0, 0.2) 55px 57px, transparent 58px 96px);
  opacity: 0.72;
  mix-blend-mode: screen;
}

.hero-photo-panel,
.hero-copy,
.lane-scene {
  position: relative;
  z-index: 1;
}

.hero-photo-panel {
  display: grid;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(18rem, 0.95fr);
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1.1rem);
  min-height: 285px;
  margin-left: 0;
  padding: clamp(0.75rem, 1.4vw, 1.15rem);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    url("assets/seattle-masters-event-banner.png") center / cover no-repeat;
  box-shadow:
    inset 0 0 55px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(0, 109, 255, 0.16);
}

.hero-photo-panel::before,
.hero-photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-photo-panel::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74) 46%, rgba(255, 255, 255, 0.95));
}

.hero-photo-panel::after {
  border: 1px solid rgba(25, 168, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-panel-logo {
  display: block;
  width: min(100%, 18rem);
  justify-self: center;
  order: -1;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.22));
}

.hero-copy h1 {
  margin: 0;
}

.hero-copy h1 {
  max-width: 13ch;
  color: #050505;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  text-shadow: none;
}

.hero-copy h1 span {
  display: block;
  color: var(--masters-red);
}

.hero-kicker,
.hero-location {
  margin: 0;
  color: var(--masters-red);
  font-weight: 950;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 0.55rem;
  font-size: clamp(1rem, 1.7vw, 1.55rem);
}

.hero-location {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  line-height: 1.25;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.button,
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 5px;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.button.primary {
  background: linear-gradient(180deg, #096eff, #0048d8);
  color: white;
  box-shadow: 0 0 24px rgba(0, 109, 255, 0.35);
}

.button.outline {
  background: rgba(0, 0, 0, 0.38);
  border-color: rgba(255, 255, 255, 0.42);
}

.button.small,
.status {
  min-height: 34px;
  padding: 0.57rem 0.82rem;
  font-size: 0.78rem;
}

.lane-scene {
  align-self: stretch;
  width: 100%;
  min-height: 285px;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.28)),
    url("assets/bionic-lane-hero.png") center / cover no-repeat;
  background-color: #02070d;
}

.lane-scene::before,
.lane-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lane-scene::before {
  display: none;
}

.lane-scene::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 22%, transparent 74%, rgba(0, 0, 0, 0.58)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent 45%);
}

.crash-preview-page {
  display: grid;
  gap: 1rem;
  padding-top: 1.25rem;
}

.crash-preview-stage {
  position: relative;
  aspect-ratio: 1842 / 854;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(25, 168, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 18%, transparent 80%, rgba(0, 0, 0, 0.16)),
    url("assets/bionic-lane-hero.png") center / 100% 100% no-repeat;
  box-shadow:
    0 0 34px rgba(0, 109, 255, 0.22),
    inset 0 0 55px rgba(0, 0, 0, 0.44);
  isolation: isolate;
}

.crash-ball {
  position: absolute;
  left: 21%;
  bottom: 10%;
  width: 31%;
  aspect-ratio: 1;
  background: url("assets/bionic-ball-cutout.png") center / contain no-repeat;
  filter: drop-shadow(0 24px 18px rgba(0, 0, 0, 0.72));
  transform-origin: 50% 74%;
  animation: bionicStrikeBall 6.2s cubic-bezier(0.38, 0, 0.08, 1) infinite;
  z-index: 5;
}

.crash-ball-cover {
  position: absolute;
  left: 18.8%;
  top: 20.6%;
  width: 31.5%;
  aspect-ratio: 1;
  background: url("assets/bionic-ball-cover.png") center / 100% 100% no-repeat;
  opacity: 0;
  filter: blur(0.35px);
  animation: bionicBallCover 6.2s linear infinite;
  z-index: 2;
}

.crash-ball::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 4%;
  height: 11%;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.68), transparent 70%);
  filter: blur(4px);
  transform: rotate(-7deg);
  z-index: -1;
}

.crash-pin-cover {
  position: absolute;
  left: 58%;
  top: 9%;
  width: 26%;
  height: 33%;
  border-radius: 20% 20% 45% 45%;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.74) 44%, rgba(0, 0, 0, 0.18) 71%, transparent 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(5, 8, 12, 0.94));
  opacity: 0;
  filter: blur(0.4px);
  animation: bionicPinDeckMask 6.2s linear infinite;
  z-index: 4;
}

.crash-flash {
  position: absolute;
  left: 57%;
  top: 8%;
  width: 27%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(0, 238, 255, 0.65) 18%, rgba(0, 109, 255, 0.32) 34%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: scale(0.25);
  animation: bionicStrikeFlash 6.2s linear infinite;
  z-index: 6;
}

.crash-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 7;
}

.crash-pins span {
  --tx: 0px;
  --ty: 0px;
  --spin: 0deg;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(22px, 3.2vw, 58px);
  height: clamp(70px, 9.5vw, 146px);
  background: url("assets/real-pin-sprite.png") center / contain no-repeat;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.62));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.45);
  transform-origin: 50% 72%;
  animation: bionicStrikePins 6.2s linear infinite;
}

.crash-pins span::before,
.crash-pins span::after {
  display: none;
}

.crash-pins span::before { top: 28%; }
.crash-pins span::after { top: 38%; }

.crash-pins span:nth-child(1) { --x: 70%; --y: 18%; --tx: -42px; --ty: -54px; --spin: -94deg; }
.crash-pins span:nth-child(2) { --x: 66.5%; --y: 20%; --tx: -124px; --ty: 2px; --spin: -132deg; }
.crash-pins span:nth-child(3) { --x: 73.5%; --y: 20%; --tx: 112px; --ty: -26px; --spin: 118deg; }
.crash-pins span:nth-child(4) { --x: 62.5%; --y: 22.5%; --tx: -206px; --ty: 62px; --spin: -164deg; }
.crash-pins span:nth-child(5) { --x: 70%; --y: 23%; --tx: -12px; --ty: -110px; --spin: 78deg; }
.crash-pins span:nth-child(6) { --x: 77.5%; --y: 22.5%; --tx: 198px; --ty: 46px; --spin: 156deg; }
.crash-pins span:nth-child(7) { --x: 59%; --y: 25%; --tx: -276px; --ty: 116px; --spin: -204deg; }
.crash-pins span:nth-child(8) { --x: 66.5%; --y: 25.5%; --tx: -112px; --ty: 160px; --spin: 214deg; }
.crash-pins span:nth-child(9) { --x: 73.5%; --y: 25.5%; --tx: 118px; --ty: 144px; --spin: -212deg; }
.crash-pins span:nth-child(10) { --x: 81%; --y: 25%; --tx: 276px; --ty: 98px; --spin: 192deg; }

@keyframes bionicStrikeBall {
  0%, 8% {
    opacity: 1;
    filter: drop-shadow(0 24px 18px rgba(0, 0, 0, 0.72));
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  24% {
    opacity: 1;
    filter: drop-shadow(0 20px 14px rgba(0, 0, 0, 0.66));
    transform: translate3d(31%, -8%, 0) rotate(285deg) scale(0.78);
  }
  38% {
    opacity: 1;
    filter: drop-shadow(0 14px 10px rgba(0, 0, 0, 0.58)) blur(0.15px);
    transform: translate3d(73%, -21%, 0) rotate(690deg) scale(0.52);
  }
  47% {
    opacity: 1;
    filter: drop-shadow(0 9px 8px rgba(0, 0, 0, 0.5)) blur(0.35px);
    transform: translate3d(110%, -34%, 0) rotate(1040deg) scale(0.31);
  }
  54% {
    opacity: 0;
    filter: drop-shadow(0 6px 7px rgba(0, 0, 0, 0.42)) blur(0.4px);
    transform: translate3d(120%, -36%, 0) rotate(1170deg) scale(0.25);
  }
  55%, 100% {
    opacity: 0;
    filter: drop-shadow(0 24px 18px rgba(0, 0, 0, 0.72));
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes bionicBallCover {
  0%, 8%, 81%, 100% {
    opacity: 0;
  }
  12%, 76% {
    opacity: 0.62;
  }
}

@keyframes bionicPinDeckMask {
  0%, 45%, 78%, 100% {
    opacity: 0;
  }
  49%, 70% {
    opacity: 1;
  }
}

@keyframes bionicStrikeFlash {
  0%, 45%, 58%, 100% {
    opacity: 0;
    transform: scale(0.2);
  }
  49% {
    opacity: 0.95;
    transform: scale(1);
  }
  52% {
    opacity: 0.35;
    transform: scale(1.45);
  }
}

@keyframes bionicStrikePins {
  0%, 46% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  49% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.74) rotate(0deg);
  }
  66% {
    opacity: 1;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.78) rotate(var(--spin));
  }
  79%, 100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty) + 56px)) scale(0.7) rotate(var(--spin));
  }
}

.spotlight-grid,
.tool-grid,
.dashboard-row,
.support-row {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.spotlight-grid {
  grid-template-columns: 1.18fr 1fr 1fr 1fr 0.82fr;
}

.spotlight-card,
.tool-card,
.panel,
.mini-panel {
  background:
    linear-gradient(180deg, rgba(0, 26, 46, 0.92), rgba(0, 11, 20, 0.95)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.spotlight-card {
  position: relative;
  min-height: 155px;
  padding: 1rem 1.25rem;
  overflow: hidden;
}

.next-event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.9rem, 32%);
  align-items: center;
  gap: 0.7rem;
}

.next-event-copy {
  min-width: 0;
}

.next-event-image {
  justify-self: end;
  width: min(100%, 5.9rem);
  height: auto;
  max-height: 7.25rem;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(25, 168, 255, 0.28);
  border-radius: 6px;
  background: transparent;
  box-shadow: 0 0 18px rgba(0, 109, 255, 0.18);
}

.spotlight-card h2,
.panel h2,
.mini-panel h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}

.spotlight-card p,
.spotlight-card ul,
.tool-card p,
.panel p,
.mini-panel p {
  color: var(--muted);
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.meta-list {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
}

.leader-card,
.champion-card,
.average-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.9rem, 32%);
  align-items: center;
  gap: 0.7rem;
}

.leader-card:has(.bowler-portrait[hidden]),
.champion-card:has(.award-plaque[hidden]),
.average-card:has(.bowler-portrait[hidden]) {
  grid-template-columns: 1fr;
}

.leader-card .button,
.champion-card .button,
.average-card .button {
  width: max-content;
}

.stat-number {
  display: block;
  color: var(--blue);
  font-size: clamp(1.75rem, 2.2vw, 2.35rem);
  line-height: 1;
}

.team-result-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: white;
  cursor: pointer;
  display: inline-grid;
  gap: 0.15rem;
  padding: 0;
  text-align: left;
}

.team-result-toggle span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.table-link {
  color: white;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-color: rgba(25, 168, 255, 0.55);
  text-underline-offset: 0.18rem;
}

.table-link:hover {
  color: var(--blue-hot);
}

.team-result-members {
  display: grid;
  gap: 0.45rem;
  padding: 0.35rem 0;
}

.swiss-points-summary {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.65rem;
}

.swiss-points-summary span {
  background: rgba(0, 119, 255, 0.1);
  border: 1px solid rgba(25, 168, 255, 0.2);
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.8rem;
}

.swiss-points-summary strong {
  color: white;
}

.team-result-members div {
  align-items: center;
  background: rgba(0, 119, 255, 0.09);
  border: 1px solid rgba(25, 168, 255, 0.2);
  border-radius: 6px;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(8rem, 1.25fr) minmax(7rem, 1fr) 6rem;
  padding: 0.65rem 0.8rem;
}

.team-result-members .team-result-members-header {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.team-result-members span {
  color: var(--muted);
}

.member-game-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.game-score-chip.won {
  color: white;
  font-weight: 950;
}

.team-result-members b {
  color: var(--blue);
  text-align: right;
}

.stat-label {
  display: block;
  margin: 0.22rem 0 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bowler-portrait {
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 7.25rem;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}

.bowler-portrait img,
.award-plaque img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 1px solid rgba(25, 168, 255, 0.28);
  border-radius: 6px;
}

.bowler-portrait span {
  margin-top: 3.9rem;
  color: white;
  font-size: 2.1rem;
  font-weight: 950;
}

.award-plaque {
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 7.25rem;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  overflow: hidden;
}

.bowler-portrait[hidden],
.award-plaque[hidden] {
  display: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 0.7rem;
  padding: 0.42rem 0.6rem;
  background: var(--red);
  border-radius: 4px;
  font-size: 1rem;
  text-transform: uppercase;
}

.live-badge::before {
  content: "";
  width: 0.62rem;
  aspect-ratio: 1;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: white;
}

.tool-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.tool-card {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0.12rem 0.75rem;
  min-height: 89px;
  padding: 0.75rem;
}

.tool-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.55rem;
  aspect-ratio: 1;
  color: white;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: rgba(0, 109, 255, 0.08);
}

.tool-icon svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card strong {
  color: white;
  font-size: 0.82rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.tool-card p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.merch-store-card {
  display: grid;
  gap: 1rem;
}

.merch-heading {
  align-items: center;
}

.merch-heading h2 {
  margin: 0.15rem 0 0;
}

.merch-embed-wrap {
  overflow: hidden;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 5, 11, 0.86);
}

.merch-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 680px;
  border: 0;
  background: white;
}

.merch-store-note {
  margin: 0;
}

.dashboard-row {
  grid-template-columns: 1.16fr 1.02fr;
  align-items: stretch;
}

.panel {
  padding: 0.8rem 1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.panel-heading a {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-row {
  display: grid;
  grid-template-columns: 3.1rem minmax(8rem, 0.8fr) minmax(12rem, 1.2fr) auto;
  gap: 0.9rem;
  align-items: center;
  min-height: 4.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.event-row img {
  width: 2.7rem;
  aspect-ratio: 1;
  object-fit: contain;
}

.event-row strong {
  text-transform: uppercase;
}

.event-row span {
  color: white;
  font-size: 0.82rem;
}

.status.open {
  background: var(--green);
}

.status.soon {
  color: var(--black);
  background: var(--yellow);
}

.standings-table {
  display: grid;
}

.standing-row {
  display: grid;
  grid-template-columns: 0.45fr 1.65fr 0.85fr 0.9fr;
  gap: 0.7rem;
  align-items: center;
  min-height: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.standing-row.heading {
  color: var(--muted);
  border-top: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
}

.standing-row span:nth-child(3),
.standing-row span:nth-child(4) {
  text-align: right;
}

.checkin-wrap {
  display: grid;
  grid-template-columns: 8.3rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
}

.qr-code {
  width: 8.2rem;
  aspect-ratio: 1;
  display: block;
  background: white;
  border-radius: 4px;
  padding: 0;
}

.support-row {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mini-panel {
  min-height: 86px;
  padding: 0.85rem;
}

.mini-panel h2 {
  color: var(--blue);
  font-size: 0.95rem;
}

.mini-panel p {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
}

.content-editor {
  display: grid;
  gap: 0.75rem;
}

.content-editor-actions {
  justify-content: flex-start;
}

.content-preview-frame,
.content-sponsor-preview {
  display: grid;
  place-items: center;
  min-height: 6rem;
  padding: 0.5rem;
  border: 1px solid rgba(25, 168, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 10, 18, 0.42);
}

.content-preview-frame img,
.content-sponsor-preview img {
  display: block;
  max-width: 100%;
  max-height: 8rem;
  object-fit: contain;
}

.content-sponsor-list {
  display: grid;
  gap: 0.7rem;
}

.content-sponsor-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) repeat(4, minmax(7.5rem, 1fr)) minmax(7.5rem, 0.75fr) minmax(8rem, 1fr) auto auto;
  align-items: end;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid rgba(25, 168, 255, 0.16);
  border-radius: 6px;
  background: rgba(0, 12, 22, 0.5);
}

.content-sponsor-row label,
.checkbox-label {
  margin: 0;
}

.content-sponsor-row .checkbox-label {
  align-self: center;
}

.footer-band {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  padding: 0.55rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 24, 42, 0.5), rgba(0, 8, 15, 0.74)),
    radial-gradient(circle at 50% 35%, rgba(0, 153, 145, 0.2), transparent 18rem);
  border-top: 1px solid rgba(0, 153, 145, 0.28);
  border-bottom: 1px solid rgba(25, 168, 255, 0.2);
}

.home-sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  align-items: stretch;
  gap: clamp(0.45rem, 1.2vw, 0.85rem);
  width: min(100%, 62rem);
}

.home-sponsor-card {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  min-height: 7rem;
  padding: clamp(0.35rem, 0.9vw, 0.55rem);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: inherit;
  overflow: visible;
  text-decoration: none;
}

.home-sponsor-logo-frame {
  display: grid;
  place-items: center;
  width: min(100%, 13rem);
  min-height: 5rem;
  padding: 0;
  overflow: visible;
}

.home-sponsor-card:first-child {
  justify-items: center;
  text-align: center;
}

.footer-band p,
.footer-band span {
  margin: 0;
  color: white;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-band .title-sponsor-label {
  color: var(--blue);
  font-size: clamp(0.92rem, 1.35vw, 1.12rem);
  text-shadow: 0 0 18px rgba(0, 109, 255, 0.42);
}

.footer-band .season-sponsor-label {
  color: rgba(247, 251, 255, 0.78);
}

.home-sponsor-logo.storm-brand-logo {
  display: block;
  width: 125%;
  max-width: 125%;
  height: auto;
  max-height: 7.45rem;
  object-fit: contain;
  object-position: center;
  padding: 0;
  justify-self: center;
  margin-inline: 0;
  transform: translateX(-0.35rem);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
}

.home-sponsor-logo.atoz-home-sponsor-logo {
  width: 125%;
  max-width: 125%;
  height: auto;
  max-height: 7.45rem;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: none;
}

.home-sponsor-logo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 5.95rem;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.needful-kings-home-sponsor-logo {
  width: 145%;
  max-width: 145%;
  height: auto;
  max-height: 8.65rem;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  box-shadow: none;
}

.home-sponsor-logo.rain-city-home-sponsor-logo {
  width: 185%;
  max-width: 185%;
  height: auto;
  max-height: 9.2rem;
  object-fit: contain;
  object-position: center;
  transform: scaleX(1.14);
  transform-origin: center;
}

.sponsor-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  align-items: stretch;
  gap: 1rem;
}

.sponsor-feature-card {
  display: grid;
  grid-template-rows: auto 1fr;
  place-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 15.5rem;
  padding: clamp(0.9rem, 1.6vw, 1.2rem);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 30, 48, 0.92), rgba(0, 9, 18, 0.96)),
    radial-gradient(circle at 50% 45%, rgba(0, 153, 145, 0.24), transparent 19rem);
  box-shadow: 0 0 34px rgba(0, 153, 145, 0.14);
}

.sponsor-logo-frame {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 11.25rem;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 245, 247, 0.98));
  border: 1px solid rgba(25, 168, 255, 0.18);
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.storm-sponsor-page-logo {
  width: 125%;
  max-width: 125%;
  height: auto;
  max-height: 12.5rem;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 0 18px rgba(0, 153, 145, 0.36))
    drop-shadow(0 0 30px rgba(25, 168, 255, 0.16));
}

.atoz-sponsor-page-logo {
  width: 125%;
  max-width: 125%;
  height: auto;
  max-height: 12.5rem;
  object-fit: contain;
  object-position: center;
}

.season-sponsor-card {
  min-height: 16.5rem;
}

.live-stream-card {
  display: grid;
  gap: 1rem;
}

.kick-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(25, 168, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(25, 168, 255, 0.2), transparent 22rem),
    #02070d;
  box-shadow: 0 0 28px rgba(0, 109, 255, 0.18);
}

.kick-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.season-sponsor-logo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 10rem;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
}

.needful-kings-sponsor-page-logo {
  width: 145%;
  max-width: 145%;
  height: auto;
  max-height: 14.5rem;
  object-fit: contain;
  object-position: center;
}

.rain-city-sponsor-page-logo {
  width: 185%;
  max-width: 185%;
  height: auto;
  max-height: 15.5rem;
  object-fit: contain;
  object-position: center;
  transform: scaleX(1.14);
  transform-origin: center;
}

.needful-kings-logo-frame {
  box-sizing: border-box;
  aspect-ratio: 16 / 10;
  padding: clamp(0.75rem, 1.5vw, 1.1rem);
}

.needful-kings-logo-frame .needful-kings-sponsor-page-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(0.85rem, 1.5vw, 1.5rem) 1.4rem;
  color: var(--muted);
  border-top: 1px solid rgba(0, 109, 255, 0.18);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.contact-footer-link,
.admin-footer-link {
  padding: 0.45rem 0.65rem;
  color: rgba(247, 251, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-footer-link:hover,
.admin-footer-link:hover {
  color: white;
  border-color: rgba(25, 168, 255, 0.55);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .account-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero-shell,
  .spotlight-grid,
  .dashboard-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-photo-panel {
    grid-column: 1 / -1;
    margin: 0 clamp(0.8rem, 1.6vw, 1.2rem);
  }

  .lane-scene {
    grid-column: 1 / -1;
    min-height: 220px;
    width: calc(100% - clamp(1.6rem, 3.2vw, 2.4rem));
    margin: 0 clamp(0.8rem, 1.6vw, 1.2rem) 1rem;
  }

  .tool-grid,
  .support-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sponsor-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkin-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  #home .lane-scene {
    display: none !important;
  }
}

@media (hover: none) and (pointer: coarse) and (max-width: 1180px) {
  #home .lane-scene {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: block;
  }

  .brand {
    margin-bottom: 0.35rem;
  }

  .main-nav,
  .account-actions {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .hero-shell,
  .spotlight-grid,
  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .next-event-card {
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 34%);
  }

  .next-event-image {
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 9rem;
    height: auto;
    max-height: 8.5rem;
    min-height: 0;
    aspect-ratio: 4 / 5;
    object-fit: contain !important;
    object-position: center;
    background: transparent;
  }

.bowler-portrait,
.award-plaque {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(25, 168, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 25, 45, 0.34), rgba(0, 8, 16, 0.56));
}

.bowler-portrait img,
.award-plaque img {
  object-fit: contain !important;
    object-position: center;
    background: rgba(0, 5, 11, 0.82);
  }

  .spotlight-card img,
  .home-sponsor-card img {
    object-fit: contain !important;
    object-position: center;
  }

  .hero-shell {
    gap: 0;
  }

  .hero-photo-panel {
    grid-template-columns: minmax(9.5rem, 48%) minmax(0, 1fr);
    order: 1;
    min-height: 220px;
    margin: 0.85rem 0 0;
    padding: 0.7rem;
    background-position: center;
  }

  .hero-panel-logo {
    width: min(100%, 14rem);
  }

  .hero-photo-panel .hero-copy {
    padding: 0;
  }

  .hero-photo-panel .hero-copy h1 {
    max-width: 10.5ch;
    font-size: clamp(1.55rem, 7.2vw, 2.65rem);
    line-height: 0.96;
  }

  .lane-scene {
    display: none !important;
    order: 2;
    width: calc(100% - 2rem);
    height: 220px;
    min-height: 220px;
    margin: 0 1rem 1rem;
    aspect-ratio: auto;
    background-size: cover;
    background-position: center;
  }

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

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

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

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

  .founder-card {
    grid-template-columns: 1fr;
  }

  .event-row,
  .checkin-wrap {
    grid-template-columns: 1fr;
  }

  .leader-card,
  .champion-card,
  .average-card {
    grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 34%);
  }

  .event-row {
    gap: 0.4rem;
    padding: 0.7rem 0;
  }

  .status {
    width: max-content;
  }

  .standing-row {
    grid-template-columns: 2rem minmax(8rem, 1fr) 4rem 4.5rem;
    font-size: 0.86rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .leader-card .bowler-portrait,
  .average-card .bowler-portrait,
  .champion-card .award-plaque {
    align-self: center;
    aspect-ratio: 4 / 5 !important;
    background:
      linear-gradient(180deg, rgba(0, 25, 45, 0.34), rgba(0, 8, 16, 0.56)) !important;
    border: 1px solid rgba(25, 168, 255, 0.28) !important;
    height: 8.5rem !important;
    justify-self: center;
    max-width: 9rem;
    min-height: 7rem !important;
    padding: 0;
    width: 100%;
  }

  .leader-card .bowler-portrait img:not([hidden]),
  .average-card .bowler-portrait img:not([hidden]),
  .champion-card .award-plaque img:not([hidden]) {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto !important;
    max-height: 8.5rem !important;
    background: transparent !important;
    border: 1px solid rgba(25, 168, 255, 0.28);
    border-radius: 6px;
    object-fit: contain !important;
    object-position: center !important;
  }
}

@media (max-width: 460px) {
  .tool-grid,
  .support-row {
    grid-template-columns: 1fr;
  }

  .leader-card,
  .champion-card,
  .average-card {
    grid-template-columns: minmax(0, 1fr) minmax(6.4rem, 32%);
  }

  .next-event-card {
    grid-template-columns: minmax(0, 1fr) minmax(6.4rem, 32%);
  }

  .next-event-image {
    max-width: 7.25rem;
    max-height: 7rem;
  }

  .leader-card .bowler-portrait,
  .average-card .bowler-portrait,
  .champion-card .award-plaque {
    height: 7rem !important;
    max-width: 7.25rem;
  }

  .leader-card .bowler-portrait img:not([hidden]),
  .average-card .bowler-portrait img:not([hidden]),
  .champion-card .award-plaque img:not([hidden]) {
    max-height: 7rem !important;
  }

  .portal {
    padding-inline: 0.55rem;
  }
}

.inner-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(0.9rem, 3vw, 2.2rem);
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(0, 109, 255, 0.28);
}

.inner-logo {
  color: white;
  font-size: 1.05rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.inner-logo span {
  color: var(--blue-hot);
}

.inner-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.inner-nav::-webkit-scrollbar {
  display: none;
}

.inner-nav a {
  min-height: 38px;
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.inner-nav a.active {
  color: var(--blue-hot);
  border-bottom: 3px solid var(--blue);
}

.admin-header-link {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 251, 255, 0.76);
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.62rem, 0.7vw, 0.74rem);
  font-weight: 900;
  padding: 0.45rem 0.58rem;
  text-transform: uppercase;
}

.admin-tool-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  flex: 1 1 100%;
  flex-wrap: wrap;
  overflow: visible;
  scrollbar-width: none;
  max-width: min(100%, 78rem);
}

.bowler-session-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-tool-nav::-webkit-scrollbar,
.bowler-session-nav::-webkit-scrollbar {
  display: none;
}

.admin-tool-nav .admin-header-link.active,
.bowler-session-nav .admin-header-link.active {
  color: var(--yellow);
  border-color: rgba(255, 207, 40, 0.6);
  background: rgba(255, 207, 40, 0.1);
}

.admin-header-link:hover {
  color: white;
  border-color: rgba(25, 168, 255, 0.6);
}

.inner-hero {
  padding: clamp(2.4rem, 6vw, 4.4rem) clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 12, 24, 0.7)),
    radial-gradient(circle at 80% 20%, rgba(0, 109, 255, 0.52), transparent 20rem);
  border-bottom: 1px solid var(--line);
}

.inner-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.inner-hero h1 span {
  color: var(--blue);
}

.inner-hero p {
  max-width: 48rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.inner-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.8rem) 0 4rem;
}

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

#eventCards.inner-grid {
  grid-template-columns: 1fr;
}

.registration-admin-grid {
  display: grid;
  width: min(1600px, calc(100% - 2rem));
  grid-template-columns: minmax(16rem, 0.7fr) minmax(12rem, 0.45fr) minmax(0, 2.4fr);
  gap: 1rem;
  align-items: start;
}

.registration-list-card {
  min-width: 0;
}

.registration-list-card table {
  min-width: 0;
}

.registration-list-card th,
.registration-list-card td {
  padding: 0.62rem;
}

.member-badge {
  background: linear-gradient(135deg, var(--yellow), #fff3a0);
  border: 1px solid rgba(255, 230, 85, 0.8);
  border-radius: 999px;
  color: #111;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-left: 0.35rem;
  padding: 0.22rem 0.42rem;
  text-transform: uppercase;
  vertical-align: middle;
}

.card {
  background: linear-gradient(180deg, rgba(0, 26, 46, 0.92), rgba(0, 11, 20, 0.95));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 0.7rem;
  color: white;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.card p {
  color: var(--muted);
  line-height: 1.5;
}

.event-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  align-items: stretch;
  gap: 1rem;
}

.event-list-details {
  min-width: 0;
}

.event-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.event-registration-panel {
  margin-top: 0.9rem;
  border-top: 1px solid rgba(25, 168, 255, 0.18);
  padding-top: 0.85rem;
}

.event-registration-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  color: white;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.event-registration-summary span {
  color: var(--muted);
  font-size: 0.85rem;
}

.event-registration-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.event-registration-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.55rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(25, 168, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 10, 20, 0.42);
  padding: 0.55rem 0.65rem;
}

.event-registration-thumb {
  grid-row: span 2;
}

.event-registration-thumb .standings-bowler-thumbs {
  gap: 0;
}

.event-registration-thumb .standings-bowler-thumb {
  height: 2.35rem;
  width: 2.35rem;
}

.event-registration-name {
  min-width: 0;
  color: white;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.event-registration-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.event-list-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 12, 24, 0.7);
  box-shadow: inset 0 0 24px rgba(25, 168, 255, 0.08);
}

.event-list-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 12, 24, 0.7);
}

@media (max-width: 760px) {
  .event-list-card {
    grid-template-columns: 1fr;
  }

  .event-list-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: rgba(0, 12, 24, 0.7);
  }
}

.about-page {
  display: grid;
  gap: 1rem;
}

.founder-card {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(1rem, 2.6vw, 2rem);
}

.founder-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(25, 168, 255, 0.24);
  background: rgba(0, 12, 24, 0.7);
  box-shadow:
    0 0 28px rgba(0, 109, 255, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.38);
}

.founder-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
}

.founder-copy {
  display: grid;
  gap: 0.85rem;
}

.founder-copy h2 {
  margin: 0;
  color: white;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.founder-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

@media (max-width: 760px) {
  .founder-card {
    grid-template-columns: 1fr;
  }
}

.detail-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 900;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0.9rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 5px;
  color: white;
  background: linear-gradient(180deg, #096eff, #0048d8);
  font: inherit;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.outline-btn {
  margin-left: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-soft);
}

.danger-btn {
  min-height: 34px;
  margin-top: 0;
  padding: 0.45rem 0.65rem;
  background: linear-gradient(180deg, #ef233c, #9f1020);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.event-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.event-action-btn {
  min-height: 34px;
  margin: 0;
  padding: 0.45rem 0.65rem;
  white-space: nowrap;
}

.event-action-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.date-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}

.date-picker-popover {
  background: #06111f;
  border: 1px solid rgba(25, 168, 255, 0.38);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  left: 0;
  padding: 0.75rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
}

.date-picker-title,
.date-picker-weekdays,
.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.date-picker-title {
  align-items: center;
  grid-template-columns: 2.25rem 1fr 2.25rem;
  margin-bottom: 0.55rem;
}

.date-picker-title strong {
  color: var(--yellow);
  text-align: center;
  text-transform: uppercase;
}

.date-picker-title button,
.date-picker-days button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  font-weight: 900;
  min-height: 2.15rem;
}

.date-picker-title button:hover,
.date-picker-days button:hover,
.date-picker-days button.selected {
  border-color: var(--blue);
  background: rgba(0, 109, 255, 0.28);
}

.date-picker-days button.today {
  color: var(--yellow);
}

.date-picker-weekdays {
  margin-bottom: 0.35rem;
}

.date-picker-weekdays span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.event-oil-image,
.oil-pattern-image {
  display: block;
  width: 100%;
  max-height: 24rem;
  object-fit: contain;
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  margin: 0.8rem 0;
}

.event-oil-image {
  max-height: 14rem;
}

.bracket-count-input {
  width: 5.5rem;
  min-height: 2.35rem;
}

.bracket-count-header {
  min-width: 5.4rem;
  text-align: center;
}

.bracket-column-total,
.bracket-column-label {
  display: block;
}

.bracket-column-total {
  color: var(--lime);
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1;
  margin-bottom: 0.18rem;
}

.bracket-column-label {
  font-size: 0.72rem;
  line-height: 1.08;
}

.bracket-financial-grid {
  display: grid;
  gap: 1rem;
  margin: 0.85rem 0 1rem;
}

.bracket-financial-carousel {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.bracket-financial-carousel span {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.icon-nav-btn {
  align-items: center;
  background: rgba(0, 109, 255, 0.18);
  border: 1px solid rgba(25, 168, 255, 0.4);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.55rem;
  font-weight: 950;
  height: 2.35rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 2.35rem;
}

.icon-nav-btn:hover {
  background: rgba(0, 109, 255, 0.32);
  border-color: var(--blue);
}

.bracket-financial-card {
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 6px;
  background: rgba(0, 109, 255, 0.06);
  padding: 0.85rem;
}

.bracket-financial-card h3 {
  margin: 0;
  color: var(--yellow);
  text-transform: uppercase;
}

.bracket-copy-financials {
  margin: 0.75rem 0 0;
}

.bracket-top-actions {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(14rem, 1fr) minmax(16rem, 0.75fr) auto;
}

.bracket-size-picker {
  align-items: center;
  border: 1px solid rgba(25, 168, 255, 0.24);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  min-height: 45px;
  padding: 0.45rem 0.65rem;
}

.bracket-size-picker legend {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0 0.25rem;
  text-transform: uppercase;
}

.bracket-size-picker label {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
  margin: 0;
}

.bracket-template-actions {
  align-items: end;
  border: 1px solid rgba(25, 168, 255, 0.2);
  border-radius: 6px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(14rem, 1fr) auto;
  margin-top: 0.8rem;
  padding: 0.75rem;
}

.bracket-entries-locked [data-bracket-count],
.bracket-entries-locked [data-bracket-finance-input],
.bracket-entries-locked [data-bracket-size-option] {
  cursor: not-allowed;
}

.bracket-financial-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
  margin: 0.8rem 0;
}

.bracket-financial-table th {
  background: rgba(85, 0, 83, 0.9);
  color: var(--yellow);
}

.bracket-financial-table tbody th {
  text-align: left;
}

.bracket-financial-table input {
  width: 6.6rem;
  min-height: 2.2rem;
}

.bracket-financial-table input:disabled {
  opacity: 0.45;
}

.finance-total {
  background: rgba(255, 249, 188, 0.12);
  color: white;
  font-weight: 950;
  text-align: right;
}

.finance-total.positive {
  color: var(--green);
}

.finance-total.negative {
  color: #ff6b6b;
}

.payout-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.payout-summary-grid div {
  border: 1px solid rgba(255, 207, 40, 0.24);
  border-radius: 6px;
  background: rgba(255, 207, 40, 0.08);
  padding: 0.75rem;
}

.payout-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.payout-summary-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--yellow);
  font-size: 1.35rem;
}

.print-card-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.print-card-header .btn {
  margin: 0;
}

.print-report-title {
  display: none;
}

.bracket-board-list {
  display: grid;
  gap: 0.65rem;
}

.bracket-games-cell {
  white-space: nowrap;
}

.bracket-board-card {
  background: rgba(0, 109, 255, 0.06);
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 6px;
  padding: 0.38rem;
}

body[data-page="bracketResults"] form.card,
body[data-page="bracketResults"] form.card label {
  min-width: 0;
}

body[data-page="bracketResults"] #eventSelect {
  min-width: 0;
  text-overflow: ellipsis;
  width: 100%;
}

body[data-page="results"] main.card > label {
  min-width: 0;
}

body[data-page="results"] #eventSelect {
  min-width: 0;
  text-overflow: ellipsis;
  width: 100%;
}

body[data-page="bracketResults"] .bracket-board-card .lane-score-header {
  align-items: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

body[data-page="bracketResults"] .bracket-board-card .lane-score-header h2 {
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  line-height: 1.12;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-page="bracketResults"] .bracket-board-card .lane-score-header span {
  max-width: 12rem;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-bowler-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.bracket-payout-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.16rem;
  margin: 0.18rem 0;
}

.bracket-payout-strip span {
  display: grid;
  gap: 0.03rem;
  padding: 0.16rem 0.22rem;
  border: 1px solid rgba(255, 207, 40, 0.24);
  border-radius: 4px;
  background: rgba(255, 207, 40, 0.08);
  color: var(--muted);
  font-size: 0.48rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bracket-payout-strip strong {
  color: var(--yellow);
  font-size: 0.66rem;
  line-height: 1.05;
}

.bracket-payout-strip small {
  color: white;
  font-size: 0.5rem;
  line-height: 1.05;
  text-transform: none;
}

.bracket-bowler-buttons .team-result-toggle {
  border: 1px solid rgba(25, 168, 255, 0.28);
  border-radius: 5px;
  padding: 0.45rem 0.6rem;
}

.bracket-bowler-buttons .team-result-toggle[aria-pressed="true"] {
  background: rgba(0, 109, 255, 0.2);
}

.bracket-tree {
  --line-color: rgba(238, 244, 250, 0.68);
  display: grid;
  grid-template-columns: repeat(var(--rounds), minmax(7.2rem, 1fr)) minmax(4.8rem, 0.62fr);
  gap: 0.65rem;
  min-height: var(--tree-height);
  margin-top: 0.22rem;
  overflow-x: auto;
  padding: 0.22rem 0.15rem;
}

.bracket-tree-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 7.2rem;
  position: relative;
}

.tree-match {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 2.65rem;
}

.tree-match::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 0.65rem;
  border-top: 2px solid var(--line-color);
}

.bracket-tree-round:not(:first-child) .tree-match::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 0.65rem;
  border-top: 2px solid var(--line-color);
}

.bracket-tree-round:last-of-type .tree-match::after {
  width: 0.65rem;
}

.tree-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 1.24rem;
  padding: 0.12rem 0.22rem;
  border: 2px solid var(--line-color);
  border-right: 0;
  background: rgba(2, 7, 13, 0.86);
  color: white;
  font-size: 0.66rem;
  font-weight: 900;
}

.tree-slot + .tree-slot {
  border-top: 0;
}

.tree-slot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-slot small {
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 950;
  padding-left: 0.16rem;
}

.tree-slot.winner {
  color: var(--green);
  background: rgba(0, 153, 145, 0.12);
}

.tree-slot.bye {
  color: rgba(247, 251, 255, 0.45);
}

.tree-match.highlight .tree-slot {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px rgba(255, 207, 40, 0.2), 0 0 16px rgba(255, 207, 40, 0.12);
}

.bracket-tree-winner {
  align-self: center;
  display: grid;
  grid-template-columns: 1.35rem auto;
  grid-template-areas:
    "line name"
    "line label";
  align-items: center;
  min-width: 4.8rem;
}

.winner-line {
  grid-area: line;
  width: 1.35rem;
  border-top: 2px solid var(--line-color);
}

.bracket-tree-winner strong {
  grid-area: name;
  color: white;
  font-size: 0.66rem;
}

.bracket-tree-winner span {
  grid-area: label;
  color: var(--yellow);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bracket-round-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
}

.bracket-round h3 {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.bracket-match {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
}

.bracket-match.highlight {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px rgba(255, 207, 40, 0.25), 0 0 16px rgba(255, 207, 40, 0.14);
}

.bracket-match span,
.bracket-match strong {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.bracket-match span {
  align-items: flex-start;
}

.bracket-match small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.bracket-score-total {
  color: white;
  display: inline-grid;
  gap: 0.08rem;
  justify-items: end;
}

.bracket-match strong {
  color: var(--green);
}

.registration-edit-row td {
  background: rgba(0, 109, 255, 0.08);
}

.registration-edit-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.8rem;
}

.registration-edit-actions {
  display: flex;
  align-items: end;
  gap: 0.5rem;
}

.registration-edit-actions .btn {
  margin: 0;
}

label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.field-note {
  margin: -0.35rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.swiss-team-registration {
  display: grid;
  gap: 0.8rem;
}

.swiss-team-bowler-list {
  display: grid;
  gap: 0.8rem;
}

.swiss-team-bowler-card {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 109, 255, 0.08);
}

.swiss-team-bowler-card legend {
  padding: 0 0.35rem;
  color: var(--blue-hot);
  font-weight: 950;
  text-transform: uppercase;
}

.swiss-team-bowler-card label {
  margin-bottom: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  color: white;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0.72rem 0.8rem;
  font: inherit;
}

textarea {
  min-height: 10rem;
  line-height: 1.45;
  resize: vertical;
  text-transform: none;
}

.checkbox-row {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

.checkbox-row input {
  min-height: 0;
  width: auto;
}

select {
  color-scheme: dark;
}

.notice {
  padding: 0.85rem;
  border: 1px solid rgba(0, 109, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 109, 255, 0.12);
}

.notice.error {
  border-color: rgba(239, 35, 60, 0.55);
  background: rgba(239, 35, 60, 0.12);
}

.results-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.results-tabs button {
  min-height: 38px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(0, 109, 255, 0.42);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.results-tabs button.active {
  border-color: rgba(164, 255, 0, 0.72);
  color: #061014;
  background: linear-gradient(180deg, #d8ff47, #8fe000);
}

.event-champion-photo {
  border: 1px solid rgba(25, 168, 255, 0.28);
  border-radius: 8px;
  margin: 1rem 0;
  overflow: hidden;
}

.event-champion-photo img {
  display: block;
  height: auto;
  width: 100%;
}

.event-champion-photo figcaption {
  background: rgba(0, 7, 13, 0.78);
  color: var(--yellow);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 0.7rem 0.9rem;
  text-transform: uppercase;
}

.payout-tab-summary {
  margin-bottom: 0.85rem;
}

.payout-tab-total {
  display: inline-grid;
  gap: 0.15rem;
  min-width: 220px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(164, 255, 0, 0.45);
  border-radius: 8px;
  background: rgba(164, 255, 0, 0.1);
}

.payout-tab-total span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payout-tab-total strong {
  color: var(--green);
  font-size: 1.55rem;
}

.profile-match-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.9rem;
  border: 1px solid rgba(164, 255, 0, 0.34);
  border-radius: 8px;
  background: rgba(164, 255, 0, 0.08);
}

.profile-match-panel[hidden] {
  display: none;
}

.profile-match-header {
  display: grid;
  gap: 0.25rem;
}

.profile-match-header strong {
  color: white;
  font-size: 1rem;
  text-transform: uppercase;
}

.profile-match-header span,
.profile-match-option span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.profile-match-list {
  display: grid;
  gap: 0.5rem;
}

.profile-match-option {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.75rem;
  color: white;
  text-align: left;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(25, 168, 255, 0.28);
  border-radius: 7px;
  cursor: pointer;
}

.profile-match-option:hover,
.profile-match-option:focus-visible {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(164, 255, 0, 0.2);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

th {
  color: var(--blue-hot);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.standings-score-table {
  min-width: 760px;
}

.standings-score-table th,
.standings-score-table td {
  padding: 0.42rem 0.55rem;
}

.standings-score-table th {
  border-bottom: 2px solid rgba(247, 251, 255, 0.75);
  color: rgba(169, 229, 255, 0.95);
  line-height: 1.05;
  vertical-align: bottom;
}

.standings-score-table th:first-child,
.standings-score-table td:first-child {
  width: 4.6rem;
}

.standings-score-table th:nth-child(2),
.standings-score-table td:nth-child(2) {
  width: 4.9rem;
}

.standings-score-table th:nth-child(3),
.standings-score-table td:nth-child(3) {
  min-width: 14rem;
}

.standings-score-table td:not(:nth-child(3)),
.standings-score-table th:not(:nth-child(3)) {
  text-align: right;
}

.standings-score-table td:nth-child(3),
.standings-score-table th:nth-child(3) {
  text-align: left;
}

.standings-score-table .standings-photo-cell,
.standings-score-table .standings-photo-head {
  padding-right: 0.2rem;
  text-align: left;
}

.results-photo-cell,
.results-photo-head {
  min-width: 3.2rem;
  padding-right: 0.2rem;
  text-align: left;
  width: 3.8rem;
}

.standings-bowler-thumbs {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-start;
}

.standings-bowler-thumb {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(25, 168, 255, 0.38);
  border-radius: 6px;
  display: block;
  height: 2.15rem;
  overflow: hidden;
  width: 2.15rem;
}

.standings-bowler-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.season-points-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1rem 0;
}

.season-points-summary div {
  background: rgba(0, 119, 255, 0.08);
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 8px;
  padding: 0.85rem;
}

.season-points-summary span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.season-points-summary strong {
  color: white;
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  line-height: 1.1;
  margin-top: 0.25rem;
}

.clickable-panel {
  cursor: pointer;
}

.clickable-panel:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .season-points-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .season-points-summary {
    grid-template-columns: 1fr;
  }
}

.handicap-game-total {
  display: block;
  color: white;
  font-weight: 950;
  line-height: 1;
}

.profile-scratch-score {
  display: block;
  color: white;
  font-weight: 850;
  line-height: 1;
}

.handicap-game-detail {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.1;
  margin-top: 0.15rem;
}

.total {
  color: var(--blue-hot);
  font-weight: 950;
}

.form-card {
  max-width: 34rem;
}

.wide-card {
  grid-column: 1 / -1;
}

.event-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.8rem 1rem;
  align-items: end;
}

.event-form-grid h2,
.event-form-grid .notice {
  grid-column: 1 / -1;
}

.event-form-grid label {
  margin-bottom: 0;
}

.event-form-grid .lane-field-stack {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.event-form-grid .lane-field-stack legend {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

.event-form-grid .btn {
  width: max-content;
  margin: 0;
}

.portal-login-grid {
  margin-bottom: 1rem;
}

.bowler-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 1rem;
}

.bowler-dashboard[hidden] {
  display: none;
}

.bowler-dashboard > .card {
  min-width: 0;
}

.bowler-profile-card {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.bowler-profile-photo {
  display: grid;
  place-items: center;
  width: 6.5rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 25%, rgba(25, 168, 255, 0.35), transparent 2rem),
    rgba(0, 0, 0, 0.28);
}

.bowler-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bowler-profile-photo span {
  color: white;
  font-size: 2rem;
  font-weight: 950;
}

.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.65rem;
}

.portal-stat-grid div {
  min-height: 4.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.portal-stat-grid strong,
.portal-stat-grid span {
  display: block;
}

.portal-stat-grid strong {
  color: var(--blue-hot);
  font-size: 1.45rem;
  line-height: 1;
}

.portal-stat-grid span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.membership-callout h2,
.membership-callout p {
  margin-left: 0;
  margin-right: 0;
}

.membership-callout p:last-child {
  margin-bottom: 0;
}

.membership-preview {
  background: rgba(0, 10, 20, 0.76);
  border: 1px solid rgba(25, 168, 255, 0.28);
}

.portal-bracket-summary {
  margin: 0.2rem 0 1rem;
}

.portal-bracket-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.portal-bracket-stat-grid div {
  padding: 0.72rem;
  border: 1px solid rgba(25, 168, 255, 0.24);
  border-radius: 6px;
  background: rgba(0, 109, 255, 0.08);
}

.portal-bracket-stat-grid strong,
.portal-bracket-stat-grid span {
  display: block;
}

.portal-bracket-stat-grid strong {
  color: var(--lime);
  font-size: 1.2rem;
  line-height: 1;
}

.portal-bracket-stat-grid span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-signout {
  margin-top: 0.2rem;
}

.small-btn {
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
}

.portal-pair-score-form {
  display: grid;
  gap: 1rem;
}

.portal-pair-score-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.65rem;
}

.portal-pair-score-summary div,
.portal-pair-score-row {
  border: 1px solid rgba(25, 168, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 119, 255, 0.07);
}

.portal-pair-score-summary div {
  padding: 0.8rem;
}

.portal-pair-score-summary span,
.portal-pair-bowler span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-pair-score-summary strong,
.portal-pair-bowler strong {
  color: white;
  font-size: 1rem;
}

.portal-pair-score-list {
  display: grid;
  gap: 0.75rem;
}

.portal-pair-score-row {
  display: grid;
  grid-template-columns: minmax(11rem, 0.9fr) minmax(0, 1.6fr);
  gap: 0.85rem;
  padding: 0.85rem;
  align-items: start;
}

.portal-pair-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.7rem, 1fr));
  gap: 0.55rem;
}

.portal-pair-game-grid label {
  margin: 0;
}

.admin-links {
  margin-top: 1rem;
}

.side-pot-setup-grid,
.side-pot-results-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 1rem 0;
}

.side-pot-setup-card,
.side-pot-result-card {
  border: 1px solid rgba(25, 168, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 13, 24, 0.74);
  padding: 1rem;
}

.side-pot-result-card .table-wrap {
  overflow-x: visible;
}

.side-pot-result-card table {
  min-width: 0;
  table-layout: fixed;
}

.side-pot-result-card th,
.side-pot-result-card td {
  font-size: clamp(0.72rem, 2vw, 0.92rem);
  overflow-wrap: anywhere;
  padding: 0.55rem 0.45rem;
}

.side-pot-result-card th:first-child,
.side-pot-result-card td:first-child {
  width: 4.1rem;
}

.side-pot-result-card th:nth-last-child(2),
.side-pot-result-card td:nth-last-child(2),
.side-pot-result-card th:last-child,
.side-pot-result-card td:last-child {
  width: 4.8rem;
}

.inline-check {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 0.55rem;
  justify-content: flex-start;
}

.inline-check input {
  min-height: 0;
  width: auto;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.compact-money-input {
  max-width: 9rem;
  min-width: 7rem;
}

.payout-edit-actions {
  margin-top: 1rem;
}

.check-action-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.check-action-cell .btn {
  padding: 0.42rem 0.52rem;
}

.check-queue-card {
  grid-column: 1 / -1;
}

.micr-font-note {
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0;
  padding: 0.62rem 0.7rem;
}

.check-design-lock-status {
  margin: 0;
}

.check-design-locked input,
.check-design-locked textarea {
  opacity: 0.72;
}

.check-print-queue-list {
  display: grid;
  gap: 0.55rem;
}

.check-print-queue-item {
  align-items: center;
  border: 1px solid rgba(25, 168, 255, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: auto minmax(9rem, 1fr) minmax(8rem, auto) auto;
  padding: 0.65rem;
}

.check-print-queue-item span {
  color: var(--blue-hot);
  font-weight: 900;
}

.check-print-queue-item small {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 680px) {
  .check-print-queue-item {
    grid-template-columns: auto 1fr;
  }

  .check-print-queue-item small,
  .check-print-queue-item button {
    grid-column: 2;
  }
}

.admin-danger-panel {
  margin-top: 1rem;
}

.admin-danger-panel p {
  max-width: 820px;
}

.reset-auth-form {
  border-top: 1px solid rgba(25, 168, 255, 0.22);
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

.reset-auth-form h3 {
  color: var(--yellow);
  margin: 0;
  text-transform: uppercase;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.lane-control-card {
  margin-bottom: 1rem;
}

.score-lock-banner {
  align-items: center;
  background: rgba(255, 198, 41, 0.1);
  border: 1px solid rgba(255, 207, 40, 0.32);
  border-radius: 8px;
  color: var(--yellow);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding: 0.7rem 0.85rem;
}

.score-lock-banner span {
  font-weight: 950;
  text-transform: uppercase;
}

.score-complete-banner {
  background: rgba(0, 109, 255, 0.1);
  border-color: rgba(25, 168, 255, 0.3);
  color: var(--text);
}

.scores-locked {
  opacity: 0.82;
}

.lane-score-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1rem;
}

.manual-lane-list {
  display: grid;
  gap: 0.65rem;
}

.manual-lane-row {
  grid-template-columns: minmax(0, 1fr) 8rem;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.manual-lane-row span {
  display: grid;
  gap: 0.2rem;
}

.manual-lane-row strong {
  color: white;
}

.manual-lane-row small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.public-lane-event-card {
  margin-bottom: 1rem;
}

.public-lane-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
}

.public-lane-card {
  display: grid;
  gap: 0.65rem;
}

.public-lane-card .table-wrap {
  overflow-x: visible;
}

.public-lane-card table {
  min-width: 0;
  table-layout: fixed;
}

.public-lane-card th,
.public-lane-card td {
  padding: 0.42rem 0.5rem;
  vertical-align: top;
}

.public-lane-card th {
  font-size: 0.72rem;
}

.public-lane-card td {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.public-lane-card table th:first-child,
.public-lane-card table td:first-child {
  width: 3.1rem;
}

.public-lane-card table th:nth-child(3),
.public-lane-card table td:nth-child(3),
.public-lane-card table th:nth-child(4),
.public-lane-card table td:nth-child(4) {
  width: 22%;
}

.swiss-team-lane-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 109, 255, 0.08);
}

.swiss-team-lane-card .manual-lane-row {
  padding: 0;
  border-top: 0;
}

.swiss-lineup-list {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.swiss-lineup-list label {
  margin: 0;
}

.lane-score-card {
  display: grid;
  gap: 0.95rem;
}

.lane-pair-panel {
  display: block;
  grid-column: 1 / -1;
}

.lane-pair-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.lane-pair-panel summary::-webkit-details-marker {
  display: none;
}

.lane-pair-panel summary strong {
  font-size: 1.25rem;
  text-transform: uppercase;
}

.lane-pair-panel summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lane-pair-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.lane-score-header,
.lane-bowler-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.lane-score-header span,
.lane-bowler-line span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lane-score-form {
  background: rgba(0, 119, 255, 0.06);
  border: 1px solid rgba(25, 168, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
  padding: 0.95rem;
}

.lane-score-form + .lane-score-form {
  margin-top: 0.85rem;
}

.lane-score-form:first-of-type {
  padding-top: 0.95rem;
}

.doubles-score-team {
  border: 1px solid rgba(25, 168, 255, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.doubles-score-team + .doubles-score-team {
  margin-top: 0.85rem;
}

.doubles-bowler-score-form {
  margin-top: 0;
}

.score-total-box {
  border: 1px solid rgba(255, 207, 40, 0.24);
  border-radius: 6px;
  background: rgba(255, 207, 40, 0.08);
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 950;
  margin: 0;
  padding: 0.65rem 0.75rem;
  text-transform: uppercase;
}

.lane-meta-grid {
  grid-template-columns: 1fr 8rem;
}

.lane-meta-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.division-pill {
  border: 1px solid rgba(25, 168, 255, 0.2);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  padding: 0.32rem 0.48rem;
  text-transform: uppercase;
}

.lane-meta-strip label {
  margin: 0;
  max-width: 8rem;
}

.lane-games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.swiss-score-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.swiss-game-panel {
  display: block;
}

.swiss-game-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.swiss-game-panel summary::-webkit-details-marker {
  display: none;
}

.swiss-game-panel summary strong {
  font-size: 1.25rem;
  text-transform: uppercase;
}

.swiss-game-panel summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.swiss-matchup-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.swiss-matchup-card {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.9rem;
  padding-top: 0.9rem;
}

.swiss-matchup-teams {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.swiss-team-score-form {
  background: rgba(0, 119, 255, 0.08);
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 6px;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.swiss-team-score-form.empty {
  align-content: center;
  color: var(--muted);
}

.swiss-team-total {
  align-items: center;
  background: rgba(0, 119, 255, 0.13);
  border: 1px solid rgba(0, 119, 255, 0.35);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
}

.swiss-team-total span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.swiss-team-total strong {
  color: var(--blue);
  font-size: 1.7rem;
  line-height: 1;
}

.finals-panel {
  grid-column: 1 / -1;
}

.finals-setup-grid,
.finals-seed-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-top: 1rem;
}

.finals-setup-grid .btn {
  align-self: end;
}

.finals-setup-grid div,
.qualified-finalist-row {
  background: rgba(0, 119, 255, 0.08);
  border: 1px solid rgba(25, 168, 255, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
}

.finals-setup-grid div span,
.qualified-finalist-row span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.qualified-finalist-row {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.finals-match-list {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  margin-top: 1rem;
}

.finals-match-card {
  background: rgba(0, 119, 255, 0.08);
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.locked-final-card {
  opacity: 0.6;
}

.finals-match-card > div,
.finals-results-list:not(.public-finals-results) > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.finals-match-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finals-match-card .doubles-final-grid {
  align-items: stretch;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.doubles-final-team {
  border: 1px solid rgba(25, 168, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
}

.doubles-final-team label {
  margin: 0;
}

.championship-score-row {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.championship-score-row label {
  margin: 0;
}

.championship-score-row > span {
  color: var(--blue);
  font-weight: 900;
  padding-bottom: 0.7rem;
  text-transform: uppercase;
}

.house-shot-score-row {
  grid-template-columns: minmax(0, 1fr) minmax(5rem, 0.55fr) auto minmax(0, 1fr) minmax(5rem, 0.55fr);
}

@media (max-width: 720px) {
  .house-shot-score-row {
    grid-template-columns: 1fr 1fr;
  }

  .house-shot-score-row > span {
    grid-column: 1 / -1;
    padding-bottom: 0;
    text-align: center;
  }
}

.doubles-final-team small {
  color: var(--green);
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.finals-results-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.finals-results-list summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
}

.finals-results-list summary::-webkit-details-marker {
  display: none;
}

.finals-results-list summary::after {
  color: var(--lime);
  content: "Open";
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finals-results-list[open] summary::after {
  content: "Close";
}

.finals-results-list summary > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finals-results-list h3 {
  color: var(--blue);
  margin: 0;
  text-transform: uppercase;
}

.finals-results-list .public-finals-results-rows > div {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.55rem;
}

.public-finals-results {
  background: rgba(0, 119, 255, 0.08);
  border: 1px solid rgba(25, 168, 255, 0.22);
  border-radius: 8px;
  margin: 1rem 0;
  padding: 0.85rem;
}

.public-finals-results-rows {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.public-finals-results-rows > div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.9fr) minmax(20rem, 1.55fr) minmax(10rem, 0.9fr);
}

.public-finals-results-rows > div span:first-child {
  text-align: left;
}

.public-finals-results-rows > div strong {
  font-size: clamp(0.64rem, 0.72vw, 0.78rem);
  justify-self: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  white-space: nowrap;
}

.public-finals-results-rows > div span:last-child {
  justify-self: end;
  font-size: 0.82rem;
  text-align: right;
}

.public-championship-results .championship-payout-heading {
  margin-top: 1rem;
}

.championship-bracket-board-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.championship-bracket-board .bracket-tree {
  background: rgba(0, 8, 18, 0.42);
  border-radius: 6px;
}

.public-championship-results summary h3,
body[data-page="results"] .championship-bracket-board .lane-score-header h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-page="results"] .championship-bracket-board .lane-score-header {
  align-items: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

body[data-page="results"] .championship-bracket-board .lane-score-header h2 {
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  line-height: 1.12;
  margin: 0;
}

body[data-page="results"] .championship-bracket-board .lane-score-header span {
  max-width: 11rem;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.championship-board-winner {
  margin: 0.4rem 0 0;
}

.championship-results-rows > div,
.championship-payout-rows > div {
  grid-template-columns: minmax(10rem, 0.9fr) minmax(18rem, 1.45fr) minmax(12rem, 1fr);
}

.championship-payout-rows > div strong {
  color: var(--lime);
}

@media (max-width: 780px) {
  .finals-results-list summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .public-finals-results-rows > div {
    align-items: center;
    grid-template-columns: minmax(2.9rem, 0.58fr) minmax(0, 1.4fr) minmax(3.35rem, 0.72fr);
    gap: 0.16rem;
  }

  .public-finals-results-rows > div strong,
  .public-finals-results-rows > div span:first-child,
  .public-finals-results-rows > div span:last-child {
    font-size: clamp(0.48rem, 2vw, 0.66rem);
    justify-self: stretch;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .public-finals-results-rows > div strong {
    color: white;
    text-align: center;
  }

  .public-finals-results-rows > div span:last-child {
    color: var(--green);
    font-weight: 900;
    text-align: right;
  }

  .bracket-board-card {
    padding: 0.22rem;
  }

  body[data-page="bracketResults"] #eventSelect {
    font-size: 0.72rem;
    padding-left: 0.5rem;
    padding-right: 1.6rem;
  }

  body[data-page="results"] #eventSelect {
    font-size: 0.72rem;
    padding-left: 0.5rem;
    padding-right: 1.6rem;
  }

  body[data-page="results"] .championship-bracket-board .lane-score-header {
    gap: 0.16rem;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="results"] .championship-bracket-board .lane-score-header h2 {
    font-size: clamp(0.62rem, 2.9vw, 0.78rem);
  }

  body[data-page="results"] .championship-bracket-board .lane-score-header span {
    font-size: clamp(0.48rem, 2.2vw, 0.62rem);
    max-width: 100%;
    text-align: left;
  }

  body[data-page="bracketResults"] .bracket-board-card .lane-score-header {
    gap: 0.16rem;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="bracketResults"] .bracket-board-card .lane-score-header h2 {
    font-size: clamp(0.62rem, 2.9vw, 0.78rem);
  }

  body[data-page="bracketResults"] .bracket-board-card .lane-score-header span {
    font-size: clamp(0.48rem, 2.2vw, 0.62rem);
    max-width: 100%;
    text-align: left;
  }

  .bracket-payout-strip {
    gap: 0.08rem;
  }

  .bracket-payout-strip span {
    font-size: 0.38rem;
    padding: 0.1rem 0.12rem;
  }

  .bracket-payout-strip strong {
    font-size: 0.48rem;
  }

  .bracket-payout-strip small {
    font-size: 0.38rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bracket-tree,
  .championship-bracket-board .bracket-tree {
    gap: 0.12rem;
    grid-template-columns: repeat(var(--rounds), minmax(0, 1fr)) minmax(1.5rem, 0.42fr);
    min-height: var(--tree-height);
    overflow: hidden;
    padding: 0.12rem 0.04rem;
    width: 100%;
  }

  .bracket-tree-round {
    min-width: 0;
  }

  .tree-match {
    min-height: 2rem;
  }

  .tree-match::after,
  .bracket-tree-round:not(:first-child) .tree-match::before,
  .bracket-tree-round:last-of-type .tree-match::after {
    width: 0.12rem;
  }

  .tree-slot {
    border-width: 1px;
    font-size: clamp(0.31rem, 1.55vw, 0.48rem);
    min-height: 0.9rem;
    padding: 0.06rem 0.08rem;
  }

  .tree-slot small {
    font-size: clamp(0.29rem, 1.35vw, 0.42rem);
    padding-left: 0.04rem;
  }

  .bracket-tree-winner {
    grid-template-columns: 0.42rem minmax(0, 1fr);
    min-width: 0;
  }

  .winner-line {
    width: 0.42rem;
  }

  .bracket-tree-winner strong {
    font-size: clamp(0.32rem, 1.55vw, 0.48rem);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bracket-tree-winner span {
    font-size: clamp(0.28rem, 1.25vw, 0.4rem);
  }

  .inner-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .inner-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .inner-section {
    width: min(100% - 1rem, 1180px);
  }

  .outline-btn {
    margin-left: 0;
  }

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

  .bowler-dashboard,
  .bowler-profile-card,
  .portal-stat-grid,
  .portal-pair-score-row {
    grid-template-columns: 1fr;
  }

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

  .membership-callout .btn {
    width: 100%;
  }

  .lane-score-board {
    grid-template-columns: 1fr;
  }

  .lane-pair-score-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="bracketResults"] .table-wrap {
    overflow-x: visible;
  }

  body[data-page="bracketResults"] th:first-child,
  body[data-page="bracketResults"] .bracket-games-cell {
    min-width: 5.4rem;
    white-space: nowrap;
  }

  body[data-page="bracketResults"] table {
    max-width: 100%;
    min-width: 0;
    width: max-content;
  }

  body[data-page="bracketResults"] thead {
    display: table-header-group;
  }

  body[data-page="bracketResults"] td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    padding: 0.36rem 0.16rem;
  }

  body[data-page="bracketResults"] th {
    font-size: 0.58rem;
    padding: 0.3rem 0.16rem;
    white-space: nowrap;
  }

  body[data-page="bracketResults"] th:nth-child(2),
  body[data-page="bracketResults"] td:nth-child(2) {
    text-align: center;
    width: 2.45rem;
  }

  body[data-page="bracketResults"] th:nth-child(3),
  body[data-page="bracketResults"] td:nth-child(3) {
    text-align: left;
    width: 3.15rem;
  }

  body[data-page="bracketResults"] th:nth-child(4),
  body[data-page="bracketResults"] td:nth-child(4) {
    text-align: left;
    width: 3.5rem;
  }

  body[data-page="bracketResults"] td.bracket-refund-amount {
    padding-left: 0.15rem;
    padding-right: 0.05rem;
  }

  body[data-page="bracketResults"] td.bracket-payout-amount {
    padding-left: 0.15rem;
    padding-right: 0.05rem;
  }

  body[data-page="bracketResults"] th:nth-child(5),
  body[data-page="bracketResults"] td:nth-child(5) {
    width: 4.35rem;
  }

  body[data-page="bracketResults"] td::before {
    content: none;
  }

  body[data-page="bracketResults"] td[data-label="Bowler"] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 9rem;
    text-align: left;
  }

  body[data-page="bracketResults"] .table-link {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="bracketResults"] td .button {
    font-size: 0.62rem;
    min-height: 1.7rem;
    padding: 0.22rem 0.4rem;
    white-space: nowrap;
  }

  .public-lane-grid {
    grid-template-columns: 1fr;
  }

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

  .lane-meta-grid,
  .lane-games-grid,
  .swiss-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .swiss-matchup-teams {
    grid-template-columns: 1fr;
  }

  .swiss-points-summary,
  .team-result-members div,
  .registration-admin-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="results"] main.inner-section > .table-wrap,
  body[data-page="standings"] .standings-score-wrap {
    overflow-x: visible;
  }

  body[data-page="results"] main.inner-section > .table-wrap table,
  body[data-page="standings"] .standings-score-table {
    font-size: clamp(0.34rem, 1.56vw, 0.6rem);
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  body[data-page="results"] main.inner-section > .table-wrap thead,
  body[data-page="standings"] .standings-score-table thead {
    display: table-header-group;
  }

  body[data-page="results"] main.inner-section > .table-wrap tbody,
  body[data-page="standings"] .standings-score-table tbody {
    display: table-row-group;
  }

  body[data-page="results"] main.inner-section > .table-wrap tr,
  body[data-page="standings"] .standings-score-table tr {
    display: table-row;
  }

  body[data-page="results"] main.inner-section > .table-wrap th,
  body[data-page="results"] main.inner-section > .table-wrap td,
  body[data-page="standings"] .standings-score-table th,
  body[data-page="standings"] .standings-score-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: table-cell;
    font-size: inherit;
    line-height: 1.05;
    min-width: 0;
    overflow: hidden;
    padding: 0.16rem 0.08rem;
    text-overflow: ellipsis;
    vertical-align: middle;
  }

  body[data-page="results"] main.inner-section > .table-wrap th,
  body[data-page="standings"] .standings-score-table th {
    font-size: clamp(0.32rem, 1.45vw, 0.54rem);
    white-space: normal;
  }

  body[data-page="results"] main.inner-section > .table-wrap td::before,
  body[data-page="standings"] .standings-score-table td::before {
    content: none;
  }

  body[data-page="results"] main.inner-section > .table-wrap th:first-child,
  body[data-page="results"] main.inner-section > .table-wrap td:first-child,
  body[data-page="standings"] .standings-score-table th:first-child,
  body[data-page="standings"] .standings-score-table td:first-child {
    width: 1.15rem;
  }

  body[data-page="results"] main.inner-section > .table-wrap .results-photo-head,
  body[data-page="results"] main.inner-section > .table-wrap .results-photo-cell,
  body[data-page="standings"] .standings-score-table .standings-photo-head,
  body[data-page="standings"] .standings-score-table .standings-photo-cell {
    padding-left: 0;
    padding-right: 0;
    width: 0.9rem;
  }

  body[data-page="results"] main.inner-section > .table-wrap th:nth-child(3),
  body[data-page="results"] main.inner-section > .table-wrap td:nth-child(3),
  body[data-page="standings"] .standings-score-table th:nth-child(3),
  body[data-page="standings"] .standings-score-table td:nth-child(3) {
    width: 17%;
  }

  body[data-page="results"] main.inner-section > .table-wrap td:nth-child(3),
  body[data-page="standings"] .standings-score-table td:nth-child(3) {
    font-weight: 900;
    white-space: normal;
    word-break: normal;
  }

  body[data-page="results"] main.inner-section > .table-wrap td:not(:nth-child(3)),
  body[data-page="results"] main.inner-section > .table-wrap th:not(:nth-child(3)),
  body[data-page="standings"] .standings-score-table td:not(:nth-child(3)),
  body[data-page="standings"] .standings-score-table th:not(:nth-child(3)) {
    text-align: center;
    white-space: nowrap;
  }

  body[data-page="results"] main.inner-section > .table-wrap th:nth-child(2),
  body[data-page="results"] main.inner-section > .table-wrap td:nth-child(2),
  body[data-page="standings"] .standings-score-table th:nth-child(2),
  body[data-page="standings"] .standings-score-table td:nth-child(2) {
    text-align: left;
  }

  body[data-page="results"] main.inner-section > .table-wrap th:nth-child(n + 4),
  body[data-page="results"] main.inner-section > .table-wrap td:nth-child(n + 4),
  body[data-page="standings"] .standings-score-table th:nth-child(n + 4),
  body[data-page="standings"] .standings-score-table td:nth-child(n + 4) {
    padding-left: 0.03rem;
    padding-right: 0.03rem;
  }

  body[data-page="results"] main.inner-section > .table-wrap .standings-bowler-thumb,
  body[data-page="standings"] .standings-score-table .standings-bowler-thumb {
    border-radius: 3px;
    height: 0.9rem;
    width: 0.9rem;
  }

  body[data-page="results"] main.inner-section > .table-wrap td[data-label="Total"],
  body[data-page="results"] main.inner-section > .table-wrap td[data-label="Payout"],
  body[data-page="standings"] .standings-score-table td[data-label="Total"],
  body[data-page="standings"] .standings-score-table td[data-label="Payout"] {
    color: white;
    font-weight: 900;
  }

  body[data-page="results"] main.inner-section > .table-wrap .team-result-detail td {
    display: table-cell;
    padding: 0.35rem;
  }

  body[data-page="results"] main.inner-section > .table-wrap .team-result-detail td::before {
    content: none;
  }
}

@media print {
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    margin: 0 !important;
  }

  body.print-brackets *,
  body.print-payouts * {
    visibility: hidden;
  }

  body:not(.print-brackets):not(.print-payouts) .inner-header,
  body:not(.print-brackets):not(.print-payouts) .inner-hero,
  body:not(.print-brackets):not(.print-payouts) .no-print,
  body:not(.print-brackets):not(.print-payouts) .print-card-header,
  body:not(.print-brackets):not(.print-payouts) .print-card-header button {
    display: none !important;
  }

  body:not(.print-brackets):not(.print-payouts) main.inner-section {
    display: block !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body:not(.print-brackets):not(.print-payouts) .printable-results {
    background: white !important;
    border: 0 !important;
    color: black !important;
    padding: 0 !important;
  }

  body:not(.print-brackets):not(.print-payouts) .printable-results,
  body:not(.print-brackets):not(.print-payouts) .printable-results * {
    color: black !important;
    filter: none !important;
    opacity: 1 !important;
    print-color-adjust: exact;
    -webkit-text-fill-color: black !important;
    -webkit-print-color-adjust: exact;
  }

  body:not(.print-brackets):not(.print-payouts) .printable-results .table-wrap {
    overflow: visible !important;
  }

  body:not(.print-brackets):not(.print-payouts) .printable-results table {
    border-collapse: collapse;
    color: black !important;
    font-size: 9.5pt;
    font-weight: 700 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body:not(.print-brackets):not(.print-payouts) .printable-results th,
  body:not(.print-brackets):not(.print-payouts) .printable-results td {
    background: white !important;
    border-bottom: 1.5px solid #000 !important;
    color: black !important;
    font-weight: 700 !important;
    padding: 4px 5px !important;
  }

  body:not(.print-brackets):not(.print-payouts) .printable-results th {
    background: white !important;
    border-bottom: 3px solid #000 !important;
    font-weight: 900 !important;
  }

  body:not(.print-brackets):not(.print-payouts) .handicap-game-detail {
    color: black !important;
  }

  body.print-brackets .inner-header,
  body.print-brackets .inner-hero,
  body.print-payouts .inner-header,
  body.print-payouts .inner-hero {
    display: none !important;
  }

  body.print-brackets main.inner-section,
  body.print-payouts main.inner-section {
    display: block !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.print-brackets main.inner-section > :not(.bracket-diagram-print-section),
  body.print-payouts main.inner-section > :not(.bracket-payout-print-section) {
    display: none !important;
  }

  .print-section,
  .print-section * {
    visibility: visible;
  }

  .print-section {
    background: white !important;
    border: 0 !important;
    color: black !important;
    display: block !important;
    break-after: auto;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    width: 100% !important;
  }

  .print-section:last-of-type {
    break-after: auto;
  }

  body.print-brackets .print-section:not(.bracket-diagram-print-section),
  body.print-payouts .print-section:not(.bracket-payout-print-section) {
    display: none !important;
    visibility: hidden !important;
  }

  body.print-brackets .bracket-diagram-print-section,
  body.print-brackets .bracket-diagram-print-section *,
  body.print-payouts .bracket-payout-print-section,
  body.print-payouts .bracket-payout-print-section * {
    visibility: visible !important;
  }

  .no-print,
  .no-print * {
    display: none !important;
    visibility: hidden !important;
  }

  .print-card-header h2 {
    display: none;
  }

  .print-report-title {
    display: block;
    border-bottom: 2px solid #111;
    margin-bottom: 8px;
    padding-bottom: 6px;
  }

  .print-report-title h1 {
    color: #111 !important;
    font-size: 16pt;
    margin: 0 0 2px;
  }

  .print-report-title p {
    color: #333 !important;
    font-size: 10pt;
    margin: 0;
  }

  .payout-summary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 8px;
  }

  .payout-summary-grid div {
    background: #f3f3f3 !important;
    border: 1px solid #333 !important;
    color: black !important;
    break-inside: avoid;
    padding: 5px 6px;
  }

  .payout-summary-grid span,
  .payout-summary-grid strong {
    color: black !important;
  }

  .print-section .table-wrap {
    overflow: visible;
  }

  .print-section table {
    border-collapse: collapse;
    color: black !important;
    font-size: 8.5pt;
    width: 100%;
  }

  .print-section th,
  .print-section td {
    background: white !important;
    border: 1px solid #333 !important;
    color: black !important;
    padding: 3px 4px;
  }

  .print-section th {
    background: #e9e9e9 !important;
    font-weight: 900;
    text-align: left;
  }

  .print-section .total {
    color: black !important;
    font-weight: 900;
    text-align: right;
  }

  .print-section .bracket-board-card {
    background: white !important;
    border: 0 !important;
    break-inside: avoid;
    color: black !important;
    padding: 0 0 5px !important;
  }

  .print-section .bracket-bowler-buttons {
    display: none !important;
  }

  .print-section .bracket-payout-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    margin: 2px 0 3px;
  }

  .print-section .bracket-payout-strip span {
    background: #f7f7f7 !important;
    border: 1px solid #777 !important;
    color: #111 !important;
    font-size: 5.4pt;
    gap: 0;
    line-height: 1.05;
    padding: 1px 2px;
  }

  .print-section .bracket-payout-strip strong {
    color: black !important;
    font-size: 6.6pt;
    line-height: 1.05;
  }

  .print-section .bracket-payout-strip small {
    color: #222 !important;
    font-size: 5pt;
    line-height: 1.05;
  }

  .print-section .bracket-tree {
    --line-color: #777;
    color: black !important;
    gap: 7px;
    grid-template-columns: repeat(var(--rounds), minmax(6.3rem, 1fr)) minmax(4rem, 0.62fr);
    margin-top: 2px;
    min-height: var(--print-tree-height);
    overflow: visible;
    padding: 1px 0 3px;
  }

  .print-section .bracket-tree-round {
    min-width: 6.3rem;
  }

  .print-section .tree-match {
    min-height: 2.55rem;
  }

  .print-section .tree-match::after,
  .print-section .bracket-tree-round:not(:first-child) .tree-match::before {
    width: 7px;
  }

  .print-section .tree-slot {
    min-height: 1.22rem;
    padding: 0.08rem 0.18rem;
  }

  .print-section .tree-slot {
    background: white !important;
    border-color: #777 !important;
    color: black !important;
  }

  .print-section .tree-slot span {
    font-size: 6.8pt;
  }

  .print-section .tree-slot small {
    color: #222 !important;
    font-size: 5.8pt;
    padding-left: 0.1rem;
  }

  .print-section .bracket-tree-winner {
    grid-template-columns: 1.35rem auto;
  }

  .print-section .bracket-tree-winner strong {
    font-size: 7pt;
  }

  .print-section .bracket-tree-winner span {
    font-size: 5.8pt;
  }

  .print-section .tree-slot.winner,
  .print-section .bracket-tree-winner span,
  .print-section .bracket-tree-winner strong {
    color: black !important;
  }

  @page {
    margin: 0.5in;
  }
}

/* Seattle Masters identity layer */
:root {
  --sm-ink: #080808;
  --sm-paper: #f8f5ef;
  --sm-red: #a00000;
  --sm-line: rgba(8, 8, 8, 0.16);
  --sm-gold: #c8942e;
  --bg: #080808;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(160, 0, 0, 0.24);
  --blue: var(--sm-red);
  --blue-hot: #d20d0d;
  --text: #111;
  --muted: #5c554d;
  --shadow: 0 18px 40px rgba(8, 8, 8, 0.14);
}

body {
  color: var(--sm-ink);
  font-family: "Segoe UI", Arial, system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 245, 239, 0.95)),
    repeating-linear-gradient(90deg, rgba(8, 8, 8, 0.035) 0 1px, transparent 1px 96px),
    var(--sm-paper);
}

body::before {
  opacity: 0.22;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(160, 0, 0, 0.12) 8% 8.2%, transparent 8.2% 100%),
    linear-gradient(90deg, transparent 0 92%, rgba(160, 0, 0, 0.12) 92% 92.2%, transparent 92.2% 100%);
  mix-blend-mode: multiply;
}

body::after {
  opacity: 0;
}

.topbar {
  grid-template-columns: 8.25rem minmax(0, 1fr) auto;
  min-height: 76px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--sm-line);
  box-shadow: 0 10px 30px rgba(8, 8, 8, 0.08);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 122px;
  height: 64px;
  filter: none;
}

.main-nav a {
  color: var(--sm-ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.main-nav a.active {
  color: var(--sm-red);
  border-bottom-color: var(--sm-red);
}

.portal {
  padding: 0 0 1.5rem;
}

.hero-shell {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 520px;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.96), rgba(8, 8, 8, 0.88)), var(--sm-ink);
  border: 0;
}

.hero-shell::before {
  background:
    linear-gradient(90deg, rgba(160, 0, 0, 0.9) 0 0.55rem, transparent 0.55rem calc(100% - 0.55rem), rgba(160, 0, 0, 0.9) calc(100% - 0.55rem)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08), transparent 45%);
  opacity: 1;
  mix-blend-mode: normal;
}

.hero-photo-panel {
  grid-template-columns: minmax(19rem, 0.92fr) minmax(14rem, 0.45fr);
  min-height: 520px;
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  background:
    linear-gradient(105deg, rgba(248, 245, 239, 1) 0 60%, rgba(248, 245, 239, 0.72) 60% 100%),
    url("assets/seattle-masters-event-banner.png") center / cover no-repeat;
  box-shadow: none;
}

.hero-photo-panel::before {
  background:
    radial-gradient(circle at 84% 18%, rgba(160, 0, 0, 0.13), transparent 18rem),
    linear-gradient(90deg, rgba(248, 245, 239, 0.96), rgba(248, 245, 239, 0.78));
}

.hero-photo-panel::after {
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(8, 8, 8, 0.08);
}

.hero-panel-logo {
  width: min(100%, 16rem);
  padding: 0.75rem;
  background: white;
  border: 1px solid rgba(8, 8, 8, 0.14);
  border-radius: 2px;
  box-shadow: 0 18px 34px rgba(8, 8, 8, 0.13);
}

.hero-copy h1 {
  max-width: 11ch;
  color: var(--sm-ink);
  font-family: "Arial Black", Impact, "Segoe UI", sans-serif;
  font-size: clamp(3rem, 6vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy h1 span,
.hero-location,
.kicker,
.stat-number,
.panel-heading a {
  color: var(--sm-red);
}

.hero-kicker {
  display: inline-flex;
  width: max-content;
  margin-bottom: 0.9rem;
  padding: 0.42rem 0.7rem;
  color: white;
  background: var(--sm-red);
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  letter-spacing: 0.08em;
}

.hero-location {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.04em;
}

.button.primary,
.status.open {
  background: var(--sm-red);
  color: white;
  box-shadow: 0 10px 24px rgba(160, 0, 0, 0.18);
}

.button.outline {
  color: var(--sm-ink);
  background: transparent;
  border-color: rgba(8, 8, 8, 0.32);
}

.lane-scene {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.1), rgba(8, 8, 8, 0.88)),
    radial-gradient(circle at 50% 28%, rgba(160, 0, 0, 0.28), transparent 15rem),
    linear-gradient(180deg, #171717, #050505);
}

.lane-scene::after {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.96), transparent 28%, transparent 72%, rgba(8, 8, 8, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 3.3rem, rgba(255, 255, 255, 0.05) 3.3rem 3.38rem),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 46%);
}

.skyline-needle,
.skyline-block,
.skyline-lanes {
  position: absolute;
  z-index: 2;
  display: block;
}

.skyline-needle {
  left: 50%;
  bottom: 32%;
  width: 0.48rem;
  height: 17rem;
  background: var(--sm-paper);
  transform: translateX(-50%);
  box-shadow: 0 -3.2rem 0 -0.08rem var(--sm-paper);
}

.skyline-needle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4rem;
  width: 6.8rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--sm-paper);
  transform: translateX(-50%);
}

.skyline-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5rem;
  width: 3.2rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--sm-paper);
  transform: translateX(-50%);
}

.skyline-block {
  bottom: 24%;
  width: 5rem;
  background: rgba(248, 245, 239, 0.9);
}

.skyline-block.one {
  left: 18%;
  height: 6.2rem;
}

.skyline-block.two {
  right: 18%;
  height: 7.8rem;
}

.skyline-block.three {
  right: 34%;
  height: 4.7rem;
}

.skyline-lanes {
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 36%;
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, transparent 49%, rgba(160, 0, 0, 0.85) 49.3% 50.7%, transparent 51%),
    repeating-linear-gradient(90deg, rgba(248, 245, 239, 0.14) 0 1px, transparent 1px 4.5rem),
    linear-gradient(180deg, rgba(200, 148, 46, 0.35), rgba(71, 39, 18, 0.88));
}

.spotlight-grid,
.tool-grid,
.dashboard-row,
.footer-band {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.spotlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.spotlight-card,
.tool-card,
.panel,
.mini-panel {
  color: var(--sm-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 241, 232, 0.96));
  border: 1px solid var(--sm-line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.spotlight-card {
  min-height: 176px;
  padding: 1.2rem;
}

.spotlight-card h2,
.panel h2,
.mini-panel h2,
.tool-card strong {
  color: var(--sm-ink);
  font-family: "Arial Black", Impact, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.spotlight-card p,
.spotlight-card ul,
.tool-card p,
.panel p,
.mini-panel p,
.stat-label {
  color: var(--muted);
}

.leader-card,
.champion-card,
.average-card,
.next-event-card {
  grid-template-columns: 1fr;
}

.bowler-portrait,
.award-plaque {
  display: none;
}

.tool-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.tool-card {
  grid-template-columns: 1fr;
  gap: 0.55rem;
  min-height: 132px;
  padding: 1rem;
}

.tool-icon {
  width: 2.4rem;
  color: var(--sm-red);
  background: rgba(160, 0, 0, 0.06);
  border-color: rgba(160, 0, 0, 0.16);
}

.champions-montage {
  display: grid;
  grid-template-columns: minmax(15rem, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(1.1rem, 3vw, 2.6rem);
  width: min(100% - 2rem, 1180px);
  margin: 1rem auto 0;
  padding: clamp(1.1rem, 2.6vw, 2.1rem);
  color: var(--sm-paper);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.97), rgba(8, 8, 8, 0.86)),
    radial-gradient(circle at 76% 22%, rgba(160, 0, 0, 0.34), transparent 20rem);
  background-size: 32px 100%, auto, auto;
  border-top: 5px solid var(--sm-red);
  box-shadow: 0 22px 48px rgba(8, 8, 8, 0.18);
  overflow: hidden;
}

.champions-poster {
  display: block;
  padding: 0;
  background: #090303;
  border: 1px solid rgba(248, 245, 239, 0.16);
  border-top: 5px solid var(--sm-red);
  box-shadow: 0 24px 56px rgba(8, 8, 8, 0.24);
}

.champions-graphic {
  margin: 0;
}

.champions-graphic img {
  display: block;
  width: 100%;
  height: auto;
}

.champions-copy {
  align-self: center;
}

.champions-copy .kicker {
  color: #ffdfdf;
}

.champions-copy h2 {
  max-width: 10ch;
  margin: 0;
  color: white;
  font-family: "Arial Black", Impact, "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 4.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.champions-copy p:not(.kicker) {
  max-width: 23rem;
  color: rgba(248, 245, 239, 0.78);
  font-weight: 700;
  line-height: 1.45;
}

.champion-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(7.8rem, 11vw, 10.6rem);
  gap: clamp(0.55rem, 1.1vw, 0.85rem);
  align-items: stretch;
}

.champion-tile {
  position: relative;
  grid-column: span 2;
  grid-row: span 1;
  min-height: 0;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(248, 245, 239, 0.16);
  border-radius: 7px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.champion-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.champion-portrait:not(.champion-feature) {
  grid-column: span 1;
  grid-row: span 2;
}

.champion-landscape {
  grid-column: span 3;
  grid-row: span 1;
}

.champion-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.06);
  transform: scale(1.01);
}

.champion-feature img {
  object-position: center 40%;
}

.champion-portrait:nth-child(2) img {
  object-position: center 28%;
}

.champion-portrait:nth-child(4) img {
  object-position: center 22%;
}

.champion-landscape img {
  object-position: center 38%;
}

.champion-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.9)),
    linear-gradient(90deg, rgba(160, 0, 0, 0.18), transparent 42%);
}

.champion-tile div {
  position: absolute;
  left: clamp(0.6rem, 1.1vw, 0.9rem);
  right: clamp(0.6rem, 1.1vw, 0.9rem);
  bottom: clamp(0.55rem, 1vw, 0.85rem);
  z-index: 1;
  display: grid;
  gap: 0.18rem;
}

.champion-tile span {
  color: #ffd9d9;
  font-size: clamp(0.62rem, 0.8vw, 0.74rem);
  font-weight: 950;
  text-transform: uppercase;
}

.champion-tile strong {
  color: white;
  font-family: "Arial Black", Impact, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.dashboard-row {
  gap: 1rem;
  margin-top: 1rem;
}

.event-row,
.standing-row {
  border-color: rgba(8, 8, 8, 0.1);
}

.event-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.event-note-grid div {
  display: grid;
  gap: 0.3rem;
  min-height: 5.4rem;
  padding: 0.9rem;
  background: rgba(160, 0, 0, 0.055);
  border: 1px solid rgba(160, 0, 0, 0.14);
}

.event-note-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.event-note-grid strong {
  align-self: end;
  color: var(--sm-ink);
  font-family: "Arial Black", Impact, "Segoe UI", sans-serif;
  line-height: 1.02;
  text-transform: uppercase;
}

.footer-band {
  margin-top: 1rem;
  background: var(--sm-ink);
  border: 0;
  border-top: 5px solid var(--sm-red);
}

.footer-band .title-sponsor-label {
  color: var(--sm-paper);
  text-shadow: none;
}

.site-footer {
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 1180px) {
  .hero-shell,
  .spotlight-grid,
  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .hero-photo-panel {
    margin: 0;
  }

  .lane-scene {
    display: none;
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .champions-montage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 0.65rem 0.85rem;
  }

  .hero-photo-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.3rem;
  }

  .hero-panel-logo {
    order: 0;
    width: min(100%, 12rem);
    justify-self: start;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 14vw, 4rem);
  }

  .spotlight-grid,
  .tool-grid,
  .dashboard-row,
  .footer-band {
    width: min(100% - 1.2rem, 1180px);
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .champions-montage {
    width: min(100% - 1.2rem, 1180px);
    padding: 1rem;
  }

  .champions-copy h2 {
    max-width: 12ch;
  }

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

  .champion-tile,
  .champion-feature,
  .champion-portrait,
  .champion-landscape {
    grid-column: auto;
    grid-row: auto;
  }

  .champion-portrait,
  .champion-feature {
    aspect-ratio: 4 / 5;
  }

  .champion-landscape {
    aspect-ratio: 16 / 10;
  }

  .event-note-grid {
    grid-template-columns: 1fr;
  }
}

/* Seattle Masters bowling-theme hero */
.topbar {
  grid-template-columns: 6.4rem minmax(0, 1fr) auto;
  background: rgba(3, 18, 43, 0.94);
  border-bottom: 1px solid rgba(74, 207, 112, 0.28);
  box-shadow: 0 14px 34px rgba(0, 10, 28, 0.28);
}

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

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 0 24px rgba(47, 198, 104, 0.3);
}

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: #4acf70;
  border-bottom-color: #4acf70;
}

.hero-shell {
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 16%, rgba(45, 137, 255, 0.28), transparent 24rem),
    radial-gradient(circle at 70% 72%, rgba(74, 207, 112, 0.2), transparent 22rem),
    linear-gradient(145deg, #00132f 0%, #020915 45%, #070707 100%);
}

.hero-shell::before {
  background:
    linear-gradient(90deg, rgba(74, 207, 112, 0.95) 0 0.42rem, transparent 0.42rem calc(100% - 0.42rem), rgba(42, 126, 255, 0.9) calc(100% - 0.42rem)),
    radial-gradient(circle at 50% 115%, rgba(244, 183, 48, 0.26), transparent 24rem);
}

.hero-photo-panel {
  position: relative;
  grid-template-columns: minmax(20rem, 0.92fr) minmax(19rem, 0.72fr);
  min-height: 620px;
  padding: clamp(2rem, 5vw, 5rem);
  background:
    linear-gradient(110deg, rgba(2, 10, 24, 0.96), rgba(2, 15, 38, 0.86) 48%, rgba(0, 32, 68, 0.72)),
    radial-gradient(circle at 74% 24%, rgba(74, 207, 112, 0.2), transparent 20rem);
  border-inline: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-photo-panel::before {
  background:
    linear-gradient(112deg, transparent 0 48%, rgba(255, 255, 255, 0.08) 48.1% 48.5%, transparent 48.6%),
    linear-gradient(68deg, transparent 0 55%, rgba(255, 255, 255, 0.06) 55.1% 55.45%, transparent 55.55%),
    repeating-linear-gradient(90deg, transparent 0 4rem, rgba(255, 255, 255, 0.045) 4rem 4.08rem);
}

.hero-photo-panel::after {
  background:
    linear-gradient(102deg, transparent 0 50%, rgba(74, 207, 112, 0.18) 50.2% 50.7%, transparent 50.9%),
    linear-gradient(78deg, transparent 0 62%, rgba(42, 126, 255, 0.18) 62.2% 62.7%, transparent 62.9%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.hero-copy {
  align-self: center;
  color: white;
}

.hero-kicker {
  color: #06101f;
  background: #4acf70;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(74, 207, 112, 0.22);
}

.hero-copy h1 {
  max-width: 11.5ch;
  color: white;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.hero-copy h1 span,
.hero-location {
  color: #4acf70;
}

.hero-location {
  font-weight: 850;
}

.hero-actions .button.primary {
  background: #4acf70;
  color: #06101f;
  box-shadow: 0 14px 28px rgba(74, 207, 112, 0.2);
}

.hero-actions .button.outline {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-brand-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: clamp(18rem, 34vw, 31rem);
  isolation: isolate;
}

.hero-brand-stage::before {
  content: "";
  position: absolute;
  inset: 9% 1% auto;
  height: 62%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 62%),
    conic-gradient(from 218deg, transparent 0 18deg, rgba(42, 126, 255, 0.72) 18deg 25deg, transparent 25deg 44deg, rgba(74, 207, 112, 0.72) 44deg 51deg, transparent 51deg);
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.92;
  z-index: -2;
}

.hero-brand-stage::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 3%;
  height: 38%;
  background:
    linear-gradient(104deg, transparent 0 18%, rgba(255, 255, 255, 0.9) 18.3% 19.2%, transparent 19.5% 100%),
    linear-gradient(76deg, transparent 0 80%, rgba(255, 255, 255, 0.86) 80.3% 81.2%, transparent 81.5% 100%),
    linear-gradient(100deg, transparent 0 32%, rgba(42, 126, 255, 0.7) 32.5% 35%, transparent 35.5% 100%),
    linear-gradient(80deg, transparent 0 65%, rgba(74, 207, 112, 0.7) 65.5% 68%, transparent 68.5% 100%);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  opacity: 0.68;
  z-index: -1;
}

.hero-panel-logo {
  width: min(100%, clamp(16rem, 31vw, 28rem));
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.34), 0 0 48px rgba(74, 207, 112, 0.22);
  filter: drop-shadow(0 0 16px rgba(42, 126, 255, 0.28));
}

.hero-lane-mark {
  position: absolute;
  bottom: 6%;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: #f4b730;
  box-shadow: 0 0 18px rgba(244, 183, 48, 0.75);
}

.hero-lane-mark.one {
  left: 36%;
}

.hero-lane-mark.two {
  left: 50%;
  transform: translateX(-50%);
}

.hero-lane-mark.three {
  right: 36%;
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .hero-shell {
    min-height: 0;
  }

  .hero-photo-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.25rem;
  }

  .hero-brand-stage {
    min-height: 18rem;
  }

  .hero-panel-logo {
    width: min(100%, 18rem);
    justify-self: center;
  }
}

/* Red Seattle Masters hero palette */
.topbar {
  background: rgba(12, 3, 3, 0.96);
  border-bottom-color: rgba(190, 0, 0, 0.42);
  box-shadow: 0 14px 34px rgba(40, 0, 0, 0.28);
}

.brand img {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 0 24px rgba(190, 0, 0, 0.34);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: #ff3a2e;
  border-bottom-color: #ff3a2e;
}

.hero-shell {
  background:
    radial-gradient(circle at 78% 16%, rgba(205, 0, 0, 0.32), transparent 24rem),
    radial-gradient(circle at 70% 72%, rgba(244, 183, 48, 0.12), transparent 22rem),
    linear-gradient(145deg, #190202 0%, #080303 48%, #050505 100%);
}

.hero-shell::before {
  background:
    linear-gradient(90deg, rgba(205, 0, 0, 0.95) 0 0.42rem, transparent 0.42rem calc(100% - 0.42rem), rgba(205, 0, 0, 0.88) calc(100% - 0.42rem)),
    radial-gradient(circle at 50% 115%, rgba(244, 183, 48, 0.18), transparent 24rem);
}

.hero-photo-panel {
  background:
    linear-gradient(110deg, rgba(12, 3, 3, 0.97), rgba(26, 4, 4, 0.9) 48%, rgba(68, 0, 0, 0.72)),
    radial-gradient(circle at 74% 24%, rgba(205, 0, 0, 0.22), transparent 20rem);
}

.hero-photo-panel::before {
  background:
    linear-gradient(112deg, transparent 0 48%, rgba(255, 255, 255, 0.08) 48.1% 48.5%, transparent 48.6%),
    linear-gradient(68deg, transparent 0 55%, rgba(255, 255, 255, 0.06) 55.1% 55.45%, transparent 55.55%),
    repeating-linear-gradient(90deg, transparent 0 4rem, rgba(255, 255, 255, 0.04) 4rem 4.08rem);
}

.hero-photo-panel::after {
  background:
    linear-gradient(102deg, transparent 0 50%, rgba(205, 0, 0, 0.22) 50.2% 50.7%, transparent 50.9%),
    linear-gradient(78deg, transparent 0 62%, rgba(244, 183, 48, 0.12) 62.2% 62.7%, transparent 62.9%);
}

.hero-kicker,
.hero-actions .button.primary {
  background: #c80000;
  color: white;
  box-shadow: 0 14px 28px rgba(200, 0, 0, 0.22);
}

.hero-copy h1 span,
.hero-location {
  color: #ff3a2e;
}

.hero-brand-stage::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 62%),
    conic-gradient(from 218deg, transparent 0 18deg, rgba(205, 0, 0, 0.78) 18deg 25deg, transparent 25deg 44deg, rgba(244, 183, 48, 0.48) 44deg 51deg, transparent 51deg);
}

.hero-brand-stage::after {
  background:
    linear-gradient(104deg, transparent 0 18%, rgba(255, 255, 255, 0.82) 18.3% 19.2%, transparent 19.5% 100%),
    linear-gradient(76deg, transparent 0 80%, rgba(255, 255, 255, 0.82) 80.3% 81.2%, transparent 81.5% 100%),
    linear-gradient(100deg, transparent 0 32%, rgba(205, 0, 0, 0.72) 32.5% 35%, transparent 35.5% 100%),
    linear-gradient(80deg, transparent 0 65%, rgba(244, 183, 48, 0.34) 65.5% 68%, transparent 68.5% 100%);
}

.hero-panel-logo {
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.38), 0 0 48px rgba(205, 0, 0, 0.24);
  filter: drop-shadow(0 0 16px rgba(205, 0, 0, 0.32));
}

.hero-lane-mark {
  background: #f4b730;
  box-shadow: 0 0 18px rgba(244, 183, 48, 0.75);
}

/* Clean white top treatment */
.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(8, 8, 8, 0.1);
  box-shadow: 0 10px 30px rgba(8, 8, 8, 0.08);
}

.brand img {
  background: transparent;
  border-radius: 10px;
  box-shadow: none;
}

.main-nav a {
  color: var(--sm-ink);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--sm-ink);
  border-bottom-color: var(--sm-ink);
}

.hero-shell {
  min-height: 560px;
  background: #ffffff;
}

.hero-shell::before {
  background: none;
}

.hero-photo-panel {
  grid-template-columns: minmax(20rem, 0.92fr) minmax(18rem, 0.68fr);
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    #ffffff;
  border-inline: 0;
  box-shadow: none;
}

.hero-photo-panel::before,
.hero-photo-panel::after,
.hero-brand-stage::before,
.hero-brand-stage::after {
  display: none;
}

.hero-copy {
  color: var(--sm-ink);
}

.hero-kicker {
  color: var(--sm-ink);
  background: #f4f4f4;
  border: 1px solid rgba(8, 8, 8, 0.12);
  box-shadow: none;
}

.hero-copy h1 {
  color: var(--sm-ink);
  text-shadow: none;
}

.hero-copy h1 span,
.hero-location {
  color: var(--sm-ink);
}

.hero-actions .button.primary {
  background: var(--sm-ink);
  color: white;
  box-shadow: 0 10px 24px rgba(8, 8, 8, 0.12);
}

.hero-actions .button.outline {
  color: var(--sm-ink);
  background: transparent;
  border-color: rgba(8, 8, 8, 0.26);
}

.hero-brand-stage {
  min-height: clamp(17rem, 32vw, 28rem);
}

.hero-panel-logo {
  width: min(100%, clamp(15rem, 29vw, 25rem));
  box-shadow: none;
  filter: none;
}

.hero-lane-mark {
  display: none;
}

/* Match the top to the main Seattle Masters palette */
.topbar {
  background: rgba(248, 245, 239, 0.96);
  border-bottom-color: rgba(160, 0, 0, 0.16);
  box-shadow: 0 10px 30px rgba(8, 8, 8, 0.08);
}

.brand img {
  border-radius: 8px;
  box-shadow: none;
}

.main-nav a {
  color: var(--sm-ink);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--sm-red);
  border-bottom-color: var(--sm-red);
}

.hero-shell {
  background:
    linear-gradient(180deg, rgba(248, 245, 239, 1), rgba(248, 245, 239, 0.94)),
    var(--sm-paper);
}

.hero-photo-panel {
  background:
    linear-gradient(105deg, rgba(248, 245, 239, 1) 0 58%, rgba(255, 255, 255, 0.92) 58% 100%),
    radial-gradient(circle at 82% 18%, rgba(160, 0, 0, 0.08), transparent 18rem);
}

.hero-kicker {
  color: white;
  background: var(--sm-red);
  border-color: transparent;
}

.hero-copy h1,
.hero-copy h1 span,
.hero-location {
  color: var(--sm-ink);
}

.hero-actions .button.primary {
  background: var(--sm-red);
  color: white;
  box-shadow: 0 10px 24px rgba(160, 0, 0, 0.16);
}

.hero-actions .button.outline {
  color: var(--sm-ink);
  border-color: rgba(8, 8, 8, 0.32);
}

.hero-panel-logo {
  box-shadow: 0 18px 36px rgba(8, 8, 8, 0.12);
}

.past-champions-page {
  width: min(100% - 2rem, 1180px);
}

.past-champions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.past-champion-card {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  border: 1px solid rgba(8, 8, 8, 0.12);
  border-radius: 8px;
  background: #080808;
  box-shadow: 0 18px 42px rgba(8, 8, 8, 0.14);
}

.past-champion-wide {
  grid-column: span 2;
}

.past-champion-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(1.04) contrast(1.04);
}

.past-champion-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.88));
}

.past-champion-card div {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
}

.past-champion-card span {
  color: #ffd9d9;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.past-champion-card h2 {
  margin: 0.18rem 0 0;
  color: white;
  font-family: "Arial Black", Impact, "Segoe UI", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.35rem);
  line-height: 0.95;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .past-champions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .past-champion-wide {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .past-champions-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  display: grid;
  gap: 0.08em;
  max-width: 10.8ch;
}

.hero-copy h1 span {
  display: block;
}

.hero-register-button {
  margin-top: 0.95rem;
  width: max-content;
}
