:root {
  --ink: #111719;
  --muted: #5c6668;
  --paper: #f6f4ee;
  --panel: #ffffff;
  --line: #d9ded8;
  --clay: #d85935;
  --mint: #16b38a;
  --court: #0e8b91;
  --night: #172022;
  --sun: #f6c65b;
  --shadow: 0 28px 80px rgba(17, 23, 25, 0.18);
  --soft-shadow: 0 18px 46px rgba(17, 23, 25, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(17, 23, 25, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-logo {
  width: auto;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--night);
  background: var(--sun);
  border-radius: 8px;
  font-size: 0.84rem;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.site-nav a:hover {
  color: #fff;
}

.nav-action {
  display: none;
}

.header-cta,
.button,
.phone-screen button,
.confirm-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 820;
}

.header-cta {
  padding: 0 18px;
  color: var(--night);
  background: var(--sun);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: clamp(24px, 5vw, 70px);
  min-height: 96svh;
  padding: 138px clamp(18px, 5vw, 72px) 52px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(11, 18, 20, 0.92), rgba(11, 18, 20, 0.58) 48%, rgba(11, 18, 20, 0.28)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Padel_court.jpg/1280px-Padel_court.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 88px;
  background: linear-gradient(0deg, var(--paper), rgba(246, 244, 238, 0));
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background:
    linear-gradient(90deg, rgba(22, 179, 138, 0.16), rgba(216, 89, 53, 0.14)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 116px);
  pointer-events: none;
}

.hero-content,
.hero-console {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.9;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.22;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 1.6vw, 1.26rem);
}

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

.button {
  min-height: 50px;
  padding: 0 22px;
}

.button.primary {
  color: var(--night);
  background: var(--sun);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-console {
  padding: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.console-top,
.live-score,
.console-grid {
  display: grid;
  gap: 12px;
}

.console-top {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.console-top strong {
  padding: 7px 10px;
  color: var(--night);
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.78rem;
}

.live-score {
  margin-top: 18px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 12px;
}

.live-score span,
.console-grid span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
}

.live-score output {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 920;
  line-height: 1;
}

.console-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.console-grid span {
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -24px clamp(18px, 5vw, 72px) 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.signal-strip div {
  position: relative;
  z-index: 2;
  min-height: 132px;
  padding: 22px;
  background: var(--panel);
}

.signal-strip span,
.signal-strip strong {
  display: block;
}

.signal-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.signal-strip strong {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.section {
  padding: clamp(74px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.62fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-heading p:not(.eyebrow),
.split-section > div > p,
.final-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading.narrow {
  display: block;
  max-width: 840px;
  text-align: center;
  margin-right: auto;
  margin-left: auto;
}

.section-heading.narrow p:not(.eyebrow) {
  margin-top: 18px;
}

.admin-builder {
  background: var(--paper);
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: var(--night);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.builder-steps {
  display: grid;
  align-content: start;
  gap: 10px;
}

.builder-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.builder-step.active {
  color: #fff;
  background: rgba(22, 179, 138, 0.22);
  border-color: rgba(22, 179, 138, 0.34);
}

.builder-step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--night);
  background: var(--sun);
  border-radius: 8px;
  font-weight: 900;
}

.builder-panel {
  padding: clamp(18px, 3vw, 30px);
  background: #f7f8f4;
  border-radius: 14px;
}

.builder-header,
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.builder-header span,
.panel-head span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.builder-header > strong {
  padding: 8px 12px;
  color: var(--night);
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.86rem;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-form label,
.player-login label,
.tenup-search label {
  display: grid;
  gap: 7px;
}

.admin-form span,
.player-login span,
.tenup-search span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.player-login input,
.tenup-search input {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.builder-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.builder-summary article {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.builder-summary span,
.player-card-mini span,
.ranking-result span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.product-band {
  background: linear-gradient(180deg, var(--paper), #e8eee8);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.dashboard-sidebar {
  padding: 20px;
  background: var(--night);
  color: #fff;
}

.club-card {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.club-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--court);
  border-radius: 10px;
  font-weight: 900;
}

.club-card span:last-child {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.side-item {
  width: 100%;
  justify-content: flex-start;
  margin-top: 8px;
  padding: 13px 12px;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.side-item.active,
.side-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-main {
  padding: clamp(18px, 3vw, 30px);
  background: #f7f8f4;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
}

.toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.toolbar span:last-child {
  color: var(--muted);
}

.status-dot {
  width: 11px;
  height: 11px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(22, 179, 138, 0.14);
}

.icon-button {
  width: 44px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

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

.metric-grid article,
.court-board,
.seed-panel,
.payment-panel,
.score-widget,
.next-widget,
.format-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.metric-grid article {
  padding: 18px;
}

.metric-grid span,
.metric-grid small,
.court-card span,
.court-card small,
.board-head span,
.seed-list em,
.payment-row span,
.team-score span,
.widget-head span,
.next-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-grid strong {
  display: block;
  margin: 6px 0;
  font-size: 1.85rem;
  line-height: 1;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.62fr);
  gap: 12px;
  margin-top: 12px;
}

.court-board,
.seed-panel {
  padding: 18px;
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

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

.court-card {
  padding: 14px;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.court-card.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(14, 139, 145, 0.92), rgba(22, 179, 138, 0.88)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 1px, transparent 1px 48%);
  border-color: transparent;
}

.court-card strong,
.court-card small {
  display: block;
}

.court-card strong {
  margin: 8px 0 4px;
}

.court-card.active span,
.court-card.active small {
  color: rgba(255, 255, 255, 0.75);
}

.seed-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.seed-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px 10px;
  align-items: center;
  padding: 12px;
  background: #f7f8f4;
  border-radius: 10px;
}

.seed-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--sun);
  border-radius: 8px;
  font-weight: 900;
}

.seed-list em {
  font-style: normal;
}

.experience-photo-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  margin-top: clamp(24px, 5vw, 56px);
}

.experience-photo {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.experience-photo img,
.player-photo-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 16px;
  color: #fff;
  background: rgba(17, 23, 25, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.experience-photo span {
  display: block;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.experience-photo strong {
  display: block;
  margin-top: 4px;
}

.experience-copy {
  max-width: 620px;
}

.experience-copy p:not(.eyebrow),
.player-photo-story p:not(.eyebrow) {
  color: var(--muted);
}

.bracket-section {
  background: #f8f6ef;
}

.bracket-shell {
  padding: clamp(18px, 3vw, 30px);
  overflow-x: auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 238, 232, 0.92)),
    repeating-linear-gradient(90deg, rgba(14, 139, 145, 0.08) 0 1px, transparent 1px 68px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.bracket-meta,
.bracket-legend {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.bracket-meta {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(17, 23, 25, 0.1);
}

.bracket-meta span,
.match-code,
.champion-card span,
.bracket-legend span {
  color: var(--muted);
  font-size: 0.86rem;
}

.bracket-meta strong {
  color: var(--court);
}

.bracket-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(250px, 0.62fr) minmax(360px, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  min-width: 980px;
  padding: 34px 0 28px;
}

.bracket-map::before,
.bracket-map::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 145px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(14, 139, 145, 0.7), transparent);
  transform: translateY(-50%);
  pointer-events: none;
}

.bracket-map::before {
  left: 68px;
}

.bracket-map::after {
  right: 68px;
}

.bracket-side {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 0.9fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: center;
}

.right-side {
  grid-template-columns: minmax(170px, 0.9fr) minmax(170px, 1fr);
}

.bracket-round {
  display: grid;
  gap: 18px;
}

.semi-round {
  align-content: center;
}

.round-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  color: var(--night);
  background: var(--sun);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bracket-match {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
}

.bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 18px;
  height: 2px;
  background: rgba(14, 139, 145, 0.42);
}

.right-side .bracket-match::after {
  right: auto;
  left: -18px;
}

.final-node .bracket-match::after {
  display: none;
}

.bracket-match div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 28px;
  padding: 8px 10px;
  background: #f7f8f4;
  border-radius: 8px;
}

.bracket-match strong {
  font-size: 0.92rem;
}

.bracket-match em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.bracket-match.is-done {
  border-color: rgba(22, 179, 138, 0.5);
}

.bracket-match.is-live {
  border-color: var(--clay);
  box-shadow: 0 18px 46px rgba(216, 89, 53, 0.18);
}

.bracket-match.is-next {
  border-color: rgba(14, 139, 145, 0.36);
}

.final-node {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 18px;
  color: #fff;
  background: var(--night);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.final-node .round-label {
  color: var(--night);
  background: var(--mint);
}

.final-match {
  width: 100%;
  color: var(--ink);
  border-color: var(--sun);
}

.champion-card {
  width: 100%;
  padding: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
}

.champion-card span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
}

.champion-card strong {
  display: block;
  margin-top: 4px;
}

.bracket-legend {
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 23, 25, 0.1);
}

.bracket-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.done {
  background: var(--mint);
}

.legend-dot.live {
  background: var(--clay);
}

.legend-dot.next {
  background: var(--court);
}

.broadcast-section {
  background: var(--night);
  color: #fff;
}

.broadcast-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.broadcast-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.72fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: stretch;
}

.tv-frame {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(145deg, rgba(5, 8, 9, 0.98), rgba(17, 23, 25, 0.86)),
    repeating-linear-gradient(90deg, rgba(246, 198, 91, 0.08) 0 1px, transparent 1px 84px);
  border: 10px solid #050708;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.tv-frame::after {
  content: "";
  position: absolute;
  right: 20%;
  bottom: -28px;
  left: 20%;
  height: 28px;
  background: #050708;
  border-radius: 0 0 18px 18px;
}

.tv-topbar,
.tv-footer,
.share-link {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.tv-topbar span,
.tv-footer span,
.tv-main-match span {
  color: rgba(255, 255, 255, 0.62);
}

.tv-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.54fr);
  gap: 14px;
  margin: 22px 0;
}

.tv-main-match,
.tv-side-list div,
.public-link-panel {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}

.tv-main-match {
  padding: 22px;
}

.tv-main-match div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.tv-main-match strong {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
}

.tv-main-match em {
  color: var(--sun);
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-style: normal;
  font-weight: 950;
}

.tv-side-list {
  display: grid;
  gap: 10px;
}

.tv-side-list div {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.tv-side-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--night);
  background: var(--sun);
  border-radius: 8px;
  font-weight: 900;
}

.tv-side-list em {
  color: var(--mint);
  font-style: normal;
  font-weight: 900;
}

.tv-footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-footer strong {
  color: var(--sun);
}

.public-link-panel {
  padding: clamp(20px, 3vw, 28px);
}

.share-link {
  min-height: 56px;
  padding: 8px 8px 8px 16px;
  color: var(--ink);
  background: #fff;
  border-radius: 10px;
}

.share-link span {
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-link button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--night);
  background: var(--sun);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.broadcast-features {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.broadcast-features article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 4px 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.broadcast-features article > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--night);
  background: var(--mint);
  border-radius: 8px;
  font-weight: 900;
}

.broadcast-features p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.player-band {
  background: var(--night);
  color: #fff;
}

.player-band .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 32px);
  align-items: start;
}

.phone-card {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.phone-card > strong {
  font-size: 1.04rem;
}

.player-photo-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.66fr) minmax(0, 1fr);
  gap: clamp(18px, 5vw, 48px);
  align-items: center;
  margin-top: clamp(36px, 7vw, 84px);
  padding: clamp(18px, 4vw, 30px);
  color: var(--ink);
  background: #fbfaf6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.player-photo-story img {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.phone-screen {
  width: min(100%, 320px);
  min-height: 520px;
  padding: 20px;
  color: var(--ink);
  background: #fbfaf6;
  border: 10px solid #070b0c;
  border-radius: 34px;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.34);
}

.phone-card.highlighted {
  transform: translateY(28px);
}

.phone-time {
  display: block;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.phone-screen h3 {
  font-size: 1.45rem;
}

.phone-screen p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.qr-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 154px;
  height: 154px;
  padding: 14px;
  margin: 32px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.qr-block span {
  background:
    linear-gradient(90deg, var(--ink) 40%, transparent 0),
    linear-gradient(0deg, var(--ink) 36%, transparent 0);
  background-size: 18px 18px;
  border-radius: 5px;
}

.phone-screen button {
  width: 100%;
  margin-top: 18px;
  color: #fff;
  background: var(--court);
}

.match-ticket,
.score-confirm {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.match-ticket {
  margin-top: 26px;
}

.match-ticket span,
.match-ticket small,
.score-confirm span {
  display: block;
  color: var(--muted);
}

.match-ticket strong {
  display: block;
  margin: 8px 0;
  font-size: 1.25rem;
}

.score-confirm {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.score-confirm strong {
  color: var(--mint);
}

.score-confirm.muted strong {
  color: var(--clay);
}

.player-portal {
  background: #f8f6ef;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1fr) minmax(260px, 0.76fr);
  gap: 14px;
  align-items: stretch;
}

.login-panel,
.tenup-panel,
.registration-panel {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.tenup-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(232, 238, 232, 0.88)),
    repeating-linear-gradient(90deg, rgba(14, 139, 145, 0.08) 0 1px, transparent 1px 56px);
}

.tenup-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

.player-login,
.tenup-search {
  display: grid;
  gap: 12px;
}

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

.tenup-search button,
.player-login button,
.registration-panel button {
  min-height: 46px;
  padding: 0 16px;
  color: var(--night);
  background: var(--sun);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.tenup-search button {
  grid-column: 1 / -1;
}

.player-card-mini,
.ranking-result {
  margin-top: 16px;
  padding: 16px;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.player-card-mini small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.ranking-result {
  background: var(--night);
  color: #fff;
}

.ranking-result span,
.ranking-result dt {
  color: rgba(255, 255, 255, 0.62);
}

.ranking-result dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.ranking-result div {
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.ranking-result dt,
.ranking-result dd {
  margin: 0;
  font-size: 0.84rem;
}

.ranking-result dd {
  margin-top: 4px;
  font-weight: 900;
}

.registration-checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.registration-checklist div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.registration-checklist span {
  width: 14px;
  height: 14px;
  background: #e6e8e1;
  border-radius: 50%;
}

.registration-checklist .checked {
  color: var(--ink);
  font-weight: 800;
}

.registration-checklist .checked span {
  background: var(--mint);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.split-section h2 {
  margin-bottom: 18px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.feature-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 6px 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.feature-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--clay);
  border-radius: 10px;
  font-weight: 900;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
}

.payment-panel {
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

.payment-panel h3 {
  margin-bottom: 18px;
}

.payment-row,
.payment-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.payment-row strong {
  color: var(--mint);
}

.payment-row.pending strong {
  color: var(--clay);
}

.payment-total {
  margin-top: 14px;
  padding: 18px;
  color: #fff;
  background: var(--night);
  border: 0;
  border-radius: 12px;
}

.format-band {
  background: #e8eee8;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.format-grid article {
  padding: 22px;
}

.format-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 38px;
  color: #fff;
  background: var(--court);
  border-radius: 10px;
  font-weight: 900;
}

.format-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.demo-section {
  background: var(--paper);
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.7fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.score-widget,
.next-widget {
  padding: clamp(20px, 4vw, 32px);
  box-shadow: var(--soft-shadow);
}

.widget-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.widget-head strong {
  color: var(--clay);
}

.widget-head strong.is-ok {
  color: var(--mint);
}

.team-score {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 190px);
  gap: 16px;
  align-items: end;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.team-score label span {
  display: block;
  margin-bottom: 6px;
}

.team-score input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.confirm-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.confirm-button {
  padding: 0 14px;
  color: #fff;
  background: var(--night);
}

.confirm-button.is-confirmed {
  color: var(--night);
  background: var(--mint);
}

.progress-track {
  height: 10px;
  margin-top: 20px;
  overflow: hidden;
  background: #e6e8e1;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--clay), var(--mint));
  border-radius: inherit;
  transition: width 240ms ease;
}

.next-widget {
  background: var(--night);
  color: #fff;
}

.next-label {
  color: var(--sun);
  text-transform: uppercase;
  font-weight: 900;
}

.next-widget h3 {
  margin-top: 14px;
  font-size: 1.7rem;
}

.next-widget p {
  color: rgba(255, 255, 255, 0.7);
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.timeline-item {
  display: flex;
  gap: 12px;
  align-items: center;
  color: rgba(255, 255, 255, 0.58);
}

.timeline-item span {
  width: 13px;
  height: 13px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.timeline-item.done {
  color: #fff;
}

.timeline-item.done span {
  background: var(--mint);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0 clamp(18px, 5vw, 72px) clamp(38px, 6vw, 70px);
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 23, 25, 0.96), rgba(17, 23, 25, 0.72)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Padel_court.jpg/1280px-Padel_court.jpg") center / cover;
  border-radius: 18px;
}

.final-cta p {
  max-width: 720px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-logo {
  width: 190px;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 1080px) {
  .hero,
  .section-heading,
  .builder-layout,
  .experience-photo-grid,
  .broadcast-layout,
  .split-section,
  .player-photo-story,
  .portal-grid,
  .demo-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
  }

  .hero-console,
  .section-heading p:not(.eyebrow) {
    max-width: 760px;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .bracket-shell {
    margin-right: calc(clamp(18px, 5vw, 72px) * -1);
    margin-left: calc(clamp(18px, 5vw, 72px) * -1);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

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

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
  }

  .site-nav {
    position: absolute;
    top: 88px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 14px;
    background: var(--night);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    justify-content: stretch;
  }

  .site-nav a {
    padding: 10px;
  }

  .nav-action {
    display: block;
    color: var(--sun);
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.8rem);
  }

  .signal-strip,
  .admin-form,
  .builder-summary,
  .metric-grid,
  .live-layout,
  .phone-row,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .phone-card.highlighted {
    transform: none;
  }

  .court-list {
    grid-template-columns: 1fr;
  }

  .experience-photo {
    min-height: 420px;
  }

  .bracket-meta {
    display: grid;
    align-items: start;
  }

  .bracket-map {
    min-width: 900px;
  }

  .tv-scoreboard {
    grid-template-columns: 1fr;
  }

  .tv-footer,
  .share-link {
    display: grid;
    align-items: start;
  }

  .tenup-search,
  .ranking-result dl {
    grid-template-columns: 1fr;
  }

  .team-score,
  .confirm-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .console-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .signal-strip {
    margin-top: -6px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .feature-list article {
    grid-template-columns: 1fr;
  }
}
