/* TuPlay campaign surfaces. Shared product colours come from :root in index.html. */
:root {
  --blush: #ffb7e8;
  --brand-font: 'DM Sans', Arial, sans-serif;
  --brand-gutter: clamp(20px, 5vw, 72px);
  --brand-width: 1320px;
}
.playbill {
  position: relative;
  overflow: hidden;
  font-family: var(--brand-font);
}
.hero.volley { display: block; background: var(--blush); color: var(--blue); }
.toss { background: var(--blue); color: var(--paper); }
.playbill-inner {
  max-width: var(--brand-width);
  margin-inline: auto;
  position: relative;
  padding: clamp(32px, 4vw, 56px) var(--brand-gutter);
}
.playbill-copy { position: relative; width: 48%; }
.playbill h1 {
  font: 500 clamp(86px, 10vw, 152px)/.84 var(--brand-font);
  letter-spacing: -.075em;
  text-transform: none;
  margin: 0 0 28px;
}
.toss h1 { font-size: clamp(74px, 8.8vw, 130px); }
.playbill-copy p {
  max-width: 37ch;
  margin: 0;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.45;
  color: inherit;
}
.volley .playbill-copy p { color: var(--ink); }
.playbill-art {
  position: absolute;
  width: 50%;
  height: 100%;
  right: 3%;
  bottom: 0;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}
.toss .playbill-art { height: 111%; bottom: -12%; }
.playbill-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.brand-button, .brand-link {
  font: 700 16px/1.25 var(--brand-font);
  border: 0;
  min-height: 44px;
}
.brand-button { background: var(--blue); color: white; padding: 13px 20px; border-radius: 7px; }
.brand-link { background: transparent; padding: 8px 0; color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.brand-button:hover { background: var(--ink); }
.brand-link:hover { color: var(--ink); }
.brand-button:focus-visible, .brand-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
main:has(> #about:not(.hidden)) { max-width: none; padding: 0; }
.about-story, .about-clubs {
  max-width: var(--brand-width);
  margin: auto;
  padding: clamp(32px,5vw,72px) var(--brand-gutter);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 6%;
}
#about h2 { font: 500 clamp(32px,4.2vw,62px)/1.04 var(--brand-font); letter-spacing: -.055em; margin: 0; }
.about-story p, .about-clubs p { margin: 0 0 16px; max-width: 56ch; font-size: 18px; line-height: 1.6; }
.about-clubs { border-top: 1px solid var(--line); align-items: center; }
.about-clubs p { margin: 12px 0 0; }
.about-clubs .brand-link { justify-self: start; }
@media (max-width: 650px) {
  .playbill-inner { padding-block: 28px; }
  .playbill-copy { width: 100%; }
  .playbill h1 { font-size: clamp(66px,17vw,105px); margin: 0 0 32px; }
  .toss h1 { font-size: clamp(52px,13vw,78px); }
  .playbill-art { top: 8px; right: 1%; width: 45%; height: clamp(139px,36vw,202px); }
  .toss .playbill-art { height: clamp(128px,31vw,174px); top: 0; right: 0; }
  .playbill-copy p { max-width: 46ch; }
  .playbill-actions { gap: 14px; margin-top: 18px; }
  .about-story, .about-clubs { grid-template-columns: 1fr; gap: 18px; }
}

.hero.volley {
  background: var(--blue);
  color: var(--paper);
  isolation: isolate;
}
.hero.volley::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 145%;
  height: 195%;
  left: 40%;
  top: -100%;
  background: var(--purple);
  border-radius: 50%;
  transform: rotate(-24deg);
}
.discover-bill {
  max-width: var(--brand-width);
  margin: auto;
  display: grid;
  grid-template-columns: 59% 41%;
  padding-inline: var(--brand-gutter);
  container-type: inline-size;
}
.bill-copy { align-self: center; padding-block: clamp(42px, 6vw, 82px); }
.bill-copy h1 {
  font: 500 13.9cqw/.97 var(--brand-font);
  letter-spacing: -.077em;
  white-space: nowrap;
  margin: 0;
}
.bill-copy h1 span:last-child { color: var(--blush); }
.bill-copy p {
  margin: 15px 0 0;
  color: var(--paper);
  font: 500 clamp(17px,1.6vw,23px)/1.35 var(--brand-font);
}
.bill-copy .playbill-actions { margin-top: 18px; gap: 16px; }
.bill-copy .brand-button { background: var(--blush); color: var(--ink); }
.bill-copy .brand-button:hover { background: white; }
.bill-copy .brand-link { color: white; }
.discover-bill button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.hero-players {
  position: relative;
  align-self: stretch;
  overflow: hidden;
}
.hero-players .playbill-art {
  inset: auto 0 0 auto;
  width: 100%;
  height: 96%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  transition: opacity .55s ease-in-out;
}
.hero-players .art-toss { height: 103%; bottom: -7%; }
.hero-players .art-volley { height: 100%; object-position: center; }
.hero-players .art-point { object-position: center bottom; }
.hero-players .current-player { opacity: 1; }
@media (max-width: 650px) {
  .discover-bill { display: block; }
  .bill-copy { padding-block: 24px 0; }
  .bill-copy h1 { font-size: 23cqw; }
  .bill-copy p { margin-top: 8px; }
  .bill-copy .playbill-actions { margin-top: 12px; }
  .hero-players {
    height: clamp(205px, 57vw, 295px);
    margin: 12px calc(0px - var(--brand-gutter)) 0 0;
  }
  .hero-players .playbill-art { width: 83%; }
  .hero-players .art-volley { width: 100%; object-position: 64% center; }
  .hero-players .art-toss { height: 128%; top: 0; object-position: center top; }
  .hero-players .art-point { width: 91%; height: 100%; object-position: right bottom; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-players .playbill-art { transition: none; }
}

.session-heading, .account-actions, .footer-links { display: flex; align-items: center; gap: 12px; }
.session-heading { justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.session-heading h2 { margin: 0; font: 500 clamp(32px,4vw,58px)/1.05 var(--brand-font); letter-spacing: -.055em; }
#sports { margin: 0; gap: 2px; }
#sports button { background: transparent; color: var(--ink); border: 0; border-radius: 0; border-bottom: 3px solid transparent; min-height: 44px; padding: 9px 14px; }
#sports button.selected { color: var(--blue); border-bottom-color: currentColor; }
#session-search .search-shell {
  padding: 20px 0; margin: 16px 0; background: transparent;
  box-shadow: none; border: 0; border-block: 1px solid var(--line); border-radius: 0;
}
.search-shortcuts { margin: 0 0 20px; gap: 7px; }
.search-shortcuts button {
  min-height: 44px; border-radius: 7px; background: white; color: var(--ink);
  border: 1px solid #bfb6d0; font: 500 15px var(--brand-font);
}
.search-shortcuts button[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.search-shortcuts button[aria-pressed="true"]::before { content: "✓"; margin-right: 5px; }
.search-shell label, .result-filters label { color: #50475e; font-size: 14px; letter-spacing: 0; }
.search-shell input, .search-shell select, .result-filters select {
  min-width: 0; min-height: 50px; background-color: white; border: 1px solid #bfb6d0;
  border-radius: 6px; font: 500 16px var(--brand-font); color: var(--ink); padding: 10px 12px;
}
.search-shell select, .result-filters select {
  appearance: none; padding-right: 32px;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23002fa7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.search-shell select:hover, .result-filters select:hover { border-color: var(--blue); }
.search-shell .search .btn { border-radius: 6px; }
.account-actions { gap: 8px; margin-left: auto; }
header .header-alert, header #account-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; border: 0; border-radius: 7px; padding: 8px 12px;
  font: 600 15px var(--brand-font); white-space: nowrap;
}
header .header-alert { background: transparent; color: var(--blue); }
header .header-alert:hover { background: #f2edfc; }
header #account-button { background: var(--blue); color: white; padding-inline: 18px; }
header #account-button:hover { background: var(--ink); }
footer { display: block; padding: 0; }
.footer-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  max-width: var(--brand-width); margin: auto; gap: 24px; padding: 20px var(--brand-gutter);
}
.footer-links { gap: 24px; }
.footer-inner .logo { line-height: 1; }
.footer-links .feedback-link { min-height: 44px; }
@media (max-width: 740px) {
  .footer-inner { grid-template-columns: auto 1fr; gap: 8px 20px; }
  .footer-links { grid-column: 1 / -1; flex-wrap: wrap; gap: 4px 20px; }
  .session-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  header .header-alert, header #account-button { font-size: 14px; padding-inline: 8px; }
  header .account-actions { gap: 2px; }
  header .account-actions .btn.outline { padding-inline: 6px; }
  .search-shortcuts { display: grid; grid-template-columns: repeat(2,1fr); }
}
@media (forced-colors: active) {
  .search-shell select, .result-filters select { appearance: auto; }
}

.search-tools, .players-tools, .players-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.search-tools { margin-bottom: 20px; }
.search-tools .search-shortcuts, .players-tools .tabs { margin: 0; }
.text-action {
  padding: 8px 0; min-height: 44px; border: 0; background: transparent; color: var(--blue);
  font: 600 15px var(--brand-font); text-decoration: underline; text-underline-offset: 4px;
}
.players-heading { padding: 12px 0 clamp(24px,4vw,48px); border-bottom: 2px solid var(--blue); }
.players-heading h2 {
  margin: 0; color: var(--blue); font: 500 clamp(48px,7vw,96px)/1 var(--brand-font);
  letter-spacing: -.065em; text-transform: none;
}
.players-heading p { max-width: 48ch; margin: 14px 0 0; font-size: clamp(16px,1.6vw,20px); }
.players-tools { padding: 20px 0; }
.players-tools h3, .players-empty h3, .game-info h3 {
  margin: 0; font: 600 clamp(21px,2.1vw,30px)/1.14 var(--brand-font);
  letter-spacing: -.035em; text-transform: none;
}
#game-sports { gap: 2px; }
#game-sports button {
  border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  background: transparent; color: var(--ink); padding: 8px 12px;
}
#game-sports .selected { color: var(--blue); border-bottom-color: currentColor; }
.game-card {
  padding: 24px 0; display: grid; gap: 14px 24px;
  grid-template-columns: minmax(110px,.65fr) minmax(0,2fr) minmax(170px,1fr);
  border-top: 1px solid var(--line); overflow-wrap: anywhere;
}
.game-when, .game-response { display: grid; align-content: start; justify-items: start; gap: 6px; }
.game-when strong { color: var(--blue); font: 600 30px/1 var(--brand-font); letter-spacing: -.045em; }
.game-when time, .game-spaces { font-weight: 650; }
.game-info h3 { margin: 5px 0; }
.game-info p, .game-response p { margin: 0; }
.game-info > span, .game-when > span { color: var(--muted); font-size: 14px; }
.game-response .game-actions { margin: 2px 0 0; }
.game-spaces { color: var(--blue); }
.players-empty { padding: clamp(20px,3vw,36px); background: #f0eafb; border-left: 4px solid var(--purple); }
.players-empty p { margin: 8px 0 0; }
.players-empty .btn { margin-top: 16px; }
@media (max-width: 650px) {
  .game-card { grid-template-columns: minmax(84px,auto) minmax(0,1fr); gap: 14px; }
  .game-response { grid-column: 2; }
  .players-tools { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .search-tools .search-shortcuts { width: 100%; }
  .search-tools { gap: 0; }
}

/* Native dialogs share a masthead and a separately scrolling form surface. */
#modal {
  width: min(520px,calc(100vw - 32px)); max-width: none;
  max-height: min(90dvh,860px); padding: 0; border: 0;
  border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: 0 20px 80px #14112b38; overflow: hidden;
}
#modal[open] { display: flex; flex-direction: column; }
#modal::backdrop { background: rgb(20 17 43 / .56); }
.dialog-head {
  flex: none; display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 12px; padding: 20px 22px;
  background: #efe8fc; color: var(--blue);
}
.dialog-head .tuplay-symbol { width: 32px; height: 32px; }
#dialog-title {
  margin: 0; font: 500 clamp(26px,4vw,36px)/1.04 var(--brand-font);
  letter-spacing: -.055em; text-transform: none; overflow-wrap: anywhere;
}
#dialog-title:focus { outline: none; }
#modal .modal-close {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0 0 2px;
  border-radius: 50%; border: 0; color: var(--blue); background: transparent; font: 400 30px/1 var(--brand-font);
}
#modal .modal-close:hover { background: white; }
#modal-body { padding: 24px; overflow: auto; overscroll-behavior: contain; min-height: 0; }
#modal-body > :first-child { margin-top: 0; }
#modal-body > :last-child { margin-bottom: 0; }
#modal-body label { color: var(--ink); font: 600 14px/1.4 var(--brand-font); }
#modal-body :is(input:not([type=checkbox]):not([type=hidden]),select,textarea) {
  display: block; min-width: 0; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid #b7aec7; border-radius: 7px; background-color: white; color: var(--ink);
  font: 400 16px/1.4 var(--brand-font);
}
#modal-body :is(input:not([type=checkbox]),select) { min-height: 44px; }
#modal-body textarea { resize: vertical; }
#modal-body select {
  appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='m2 2 5 5 5-5' fill='none' stroke='%23002fa7' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: right 12px center;
}
#modal-body :is(input,textarea,select):focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
#modal-body .task-form { display: grid; gap: 16px; }
#modal-body .task-form :is(p,label) { margin: 0; }
#modal-body .formrow { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#modal-body .dialog-intro { color: #483f57; font: 400 16px/1.45 var(--brand-font); }
#modal-body .form-note { color: #574d64; font: 400 14px/1.45 var(--brand-font); }
#modal-body .task-submit { border-radius: 7px; min-height: 46px; font: 600 16px var(--brand-font); }
#modal-body .form-error { color: #941643; }
#modal-body .form-error:empty { display: none; }
.auth-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; }
@media (max-width: 560px) {
  #modal { width: 100%; margin: auto auto 0; max-height: 94dvh; border-radius: 18px 18px 0 0; }
  .dialog-head { padding: 13px 16px; gap: 8px; }
  #modal-body { padding: 20px 18px max(20px,env(safe-area-inset-bottom)); }
}
@media (max-width: 410px) {
  #modal-body .formrow { grid-template-columns: minmax(0,1fr); }
}
@media (forced-colors: active) {
  #modal { border: 1px solid CanvasText; }
  #modal-body select { appearance: auto; }
}

/* Player sign-in and onboarding */
#modal:has(.auth-entry,#google-registration,#profile-form) {
  background: #fff; border-radius: 22px; width: min(460px,calc(100vw - 24px));
}
#modal:has(.auth-entry,#google-registration,#profile-form) .dialog-head {
  background: white; color: var(--ink); gap: 10px; padding: 26px 26px 0;
}
#modal:has(.auth-entry,#google-registration,#profile-form) #dialog-title {
  font-size: clamp(23px,4vw,29px); font-weight: 600; letter-spacing: -.045em;
}
#modal:has(.auth-entry,#google-registration,#profile-form) .modal-close {
  width: 36px; height: 36px; background: #f5f4f8; color: #514e60; font-size: 24px;
}
#modal:has(.auth-entry,#google-registration,#profile-form) #modal-body { padding: 22px 28px 26px; }
#modal-body #google-sign-in {
  display: grid; grid-template-columns: 20px 1fr 20px; align-items: center;
  width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #747775;
  border-radius: 10px; background: white; color: #1f1f1f;
  font: 500 15px/1.4 Roboto,Arial,sans-serif; cursor: pointer;
}
#modal-body #google-sign-in:hover:enabled { background: #f7f8fc; }
#modal-body #google-sign-in img { object-fit: contain; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:19px 0; color:#655f71; font-size:13px; }
.auth-divider::before,.auth-divider::after { content:''; height:1px; flex:1; background:#e6e3ec; }
#auth-credentials,#registration-profile,#google-registration,#profile-form { display:grid; gap:15px; }
#registration-profile { border:0; margin:0; padding:0; min-inline-size:0; }
#modal-body .auth-entry [hidden] { display:none; }
#modal-body :is(.auth-entry,#google-registration,#profile-form) :is(input:not([type=checkbox]),select) { border-color:#c6c2d0; border-radius:9px; }
#modal-body :is(.auth-entry,#google-registration,#profile-form) .task-submit { border-radius:10px; width:100%; }
#modal-body .consent-list { display:grid; gap:11px; border-top:1px solid #e6e3ec; padding-top:15px; }
#modal-body label.consent-row { display:grid; grid-template-columns:18px 1fr; align-items:start; gap:10px; font-weight:400; }
#modal-body label.consent-row input { width:17px; height:17px; min-height:0; margin:2px 0 0; padding:0; accent-color:var(--blue); }
.consent-row small { font:inherit; color:#655f71; }
.auth-entry .auth-switch { border-top:1px solid #e6e3ec; padding-top:15px; margin-top:18px; font-size:14px; }
@media (max-width:560px) {
  #modal:has(.auth-entry,#google-registration,#profile-form) { width:100%; border-radius:20px 20px 0 0; }
  #modal:has(.auth-entry,#google-registration,#profile-form) .dialog-head { padding:20px 20px 0; }
  #modal:has(.auth-entry,#google-registration,#profile-form) #modal-body { padding:18px 20px max(22px,env(safe-area-inset-bottom)); }
}

.footer-links { flex-wrap:wrap; }
.footer-links a.feedback-link { display:inline-flex;align-items:center; }

.registration-actions {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 4px 16px;
  justify-content: start;
  margin-top: 20px;
}
.registration-actions .btn { grid-column: 1 / -1; justify-self: start; }
.registration-actions .text-action { min-height: 44px; padding: 0 4px; }
@media (max-width: 480px) {
  .registration-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .registration-actions .btn { justify-self: stretch; }
}
.account-wrap{max-width:1024px;margin:auto;padding:32px 20px 64px}.account-wrap h1{font-size:clamp(32px,5vw,52px);margin:12px 0;color:#002fa7}.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:16px;margin-top:24px}.account-grid section{background:white;border:1px solid #e3dcf2;border-radius:14px;padding:20px;display:flex;flex-direction:column;align-items:stretch;gap:12px}.account-grid h2{margin:0 0 8px}.account-wrap .task-form{max-width:620px}.account-wrap .task-form label{display:grid;gap:6px}.account-wrap input,.account-wrap select{min-height:44px}.account-identity{overflow-wrap:anywhere}
.account-wrap .task-form{display:grid;gap:16px;background:#fff;padding:20px;border:1px solid #e3dcf2;border-radius:12px}.account-wrap .task-form label{font-weight:600}.account-wrap .task-form input,.account-wrap .task-form select{width:100%;border:1px solid #bdb2cb;border-radius:7px;padding:8px;font:inherit}.account-wrap .formrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px}
:is(#account,#score-guide) .account-wrap{max-width:1160px;padding:clamp(20px,4vw,54px) 20px}:is(#account-content>h1,.player-overview h1,#score-guide-title){font:600 clamp(27px,4vw,44px)/1.1 var(--brand-font);letter-spacing:-.045em;text-transform:none;color:var(--ink);margin:8px 0 22px}.play-banner{display:flex;align-items:center;position:relative;overflow:hidden;min-height:200px;padding:28px clamp(20px,4vw,48px);background:#002fa7;color:white;border-radius:14px}.play-banner>div{position:relative;z-index:1}.play-banner h2{font:500 clamp(42px,7vw,76px)/1 var(--brand-font);margin:0 0 22px;letter-spacing:-.06em;color:#ffb7e8}.play-banner img{position:absolute;right:0;height:118%;width:47%;object-fit:contain;object-position:70% 15%}.play-primary,.play-link,.play-league{font:700 15px/1.35 var(--brand-font);cursor:pointer}.play-primary{border:0;background:#002fa7;color:#fff;border-radius:8px;min-height:44px;padding:10px 18px}.play-link{min-height:44px;color:#002fa7;background:transparent;border:0;padding:7px 4px;text-align:left}.play-banner .play-primary{background:#ffb7e8;color:#14112b}.play-banner .play-link{color:#fff;margin-left:12px}.play-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(220px,1fr);gap:clamp(18px,4vw,48px);margin-top:22px}.play-section{padding:20px 0;border-top:1px solid #d4cbe4}.play-section>header,.play-line,.play-league{position:static;display:flex;align-items:center;justify-content:space-between;gap:14px;background:transparent;color:inherit;border:0;padding:0;height:auto;box-shadow:none}.play-section h2{margin:0;font:650 23px/1.2 var(--brand-font);letter-spacing:-.035em}.play-section p,.play-line small,.play-line p{color:#575167}.play-section details{margin-top:12px}.play-section summary{cursor:pointer;font-weight:600}.play-layout aside .play-link{display:block}.play-line,.play-league{padding:14px 0;border-bottom:1px solid #e3dcf2;width:100%;text-align:left}.play-line h3{font:600 18px/1.35 var(--brand-font);margin:4px 0}.play-line p{margin:0;font-size:14px}.play-line b{white-space:nowrap}.play-line button{display:block}.play-table{width:100%;border-collapse:collapse;margin:12px 0}.play-table :is(td,th){text-align:left;padding:9px 4px;border-bottom:1px solid #e3dcf2}#result-seats label{margin:8px 0}.play-banner button:focus-visible{outline:3px solid white}@media(max-width:680px){.play-layout{grid-template-columns:1fr}.play-banner{min-height:175px}.play-banner img{width:32%;opacity:.72}.play-banner .play-link{display:block;margin-left:0}.play-section>header{align-items:baseline}}
.player-avatar{width:54px;height:54px;flex:0 0 54px;border-radius:50%;object-fit:cover;background:#ffb7e8;color:#002fa7;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.player-avatar.small{width:30px;height:30px;flex-basis:30px;font-size:11px}.player-initials{font-size:20px}.play-identity{display:flex;align-items:center;gap:16px;margin-bottom:20px}.play-identity h2{margin:0}.play-identity .player-avatar{width:70px;height:70px;flex-basis:70px}.avatar-editor{text-align:center}.avatar-editor .player-avatar{width:112px;height:112px;flex-basis:112px;font-size:32px}.play-teams{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.play-teams>span{display:inline-flex;align-items:center;gap:5px}.play-teams em{font-style:normal;color:#575167;font-size:14px}.play-learn{display:inline-block;margin-top:8px;color:#002fa7;font-weight:700}.league-thumb{width:42px;height:42px;border-radius:8px;object-fit:cover}.play-league{justify-content:flex-start}.play-league>span{display:grid;gap:2px}.play-league small{font:400 13px var(--brand-font);color:#575167}.league-cover{width:100%;max-height:230px;object-fit:cover;border-radius:12px;margin-bottom:12px}.table-player{display:inline-flex;align-items:center;gap:8px}.player-suggestions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.player-suggestions .play-link{border:1px solid #e3dcf2;border-radius:7px;padding:8px 10px}.score-help{color:#575167;font-size:13px;line-height:1.45}.league-image-form{display:grid;gap:10px;margin:12px 0}.league-image-form label{display:grid;gap:6px}.league-image-form input{min-height:44px}
.avatar-button{border:0;background:transparent;border-radius:50%;padding:0;cursor:pointer;position:relative}.avatar-button::after{content:'＋';position:absolute;right:-2px;bottom:-1px;width:24px;height:24px;border-radius:50%;background:#002fa7;color:#fff;font:700 18px/23px var(--brand-font);box-shadow:0 0 0 3px #f8f6fc}.avatar-button:focus-visible{outline:3px solid #002fa7;outline-offset:5px}.score-entry{border-top:1px solid #e3dcf2;margin-top:12px;padding-top:14px}.score-entry h3{margin:0}.score-entry>p{margin:5px 0 12px}.scoreboard-head{display:grid;grid-template-columns:1fr 1fr;gap:38px;color:#575167;font-size:13px;font-weight:700;margin-bottom:6px}.score-rows{display:grid;gap:8px}.score-row{display:grid;grid-template-columns:58px minmax(0,1fr) 20px minmax(0,1fr) 64px;align-items:center;gap:7px}.score-row input{min-height:48px;text-align:center;font-size:20px;font-weight:700}.score-row .score-remove{font-size:12px;min-height:34px}.score-total{color:#575167;font-size:13px}.play-identity .avatar-button .player-avatar{width:70px;height:70px;flex-basis:70px}@media(max-width:480px){.score-row{grid-template-columns:50px minmax(0,1fr) 14px minmax(0,1fr) 52px}.score-row .score-remove{padding-inline:0;font-size:11px}.scoreboard-head{gap:28px}}
#session-search > .band{display:none!important}
.rating-summary{display:flex;gap:16px;flex-wrap:wrap}.play-identity{flex-wrap:wrap}.rating-cell{display:grid;justify-items:center;gap:4px}.rating-ring{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:conic-gradient(var(--level) var(--arc),#e0dcec 0)}.rating-ring span{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:white;font:700 19px var(--brand-font)}.rating-cell small{color:#514960}.court-scoreboard fieldset,.court-recorder{border:1px solid #c9bee1;border-radius:14px;padding:16px;background:#f7f4ff}.court-scoreboard legend{font-weight:700;color:#002fa7}.score-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.score-pair label,.court-recorder label{min-width:0;overflow-wrap:anywhere}.account-wrap .score-pair input,.court-recorder input{font-size:32px;text-align:center;font-weight:700;color:#002fa7;min-height:58px}.court-scoreboard{display:grid;gap:12px}#new-alert [hidden],#new-game [hidden]{display:none!important}

.score-guide-intro { max-width: 68ch; }
.score-guide-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
#score-guide .play-section p { max-width: 70ch; }
#score-guide pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--paper); }
@media (max-width: 700px) {
  .score-guide-pair { grid-template-columns: 1fr; gap: 0; }
}

.player-overview { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-bottom: 28px; }
.player-overview .play-identity { flex-wrap: nowrap; margin: 0; min-width: 0; }
#account .player-overview h1 { margin: 0; overflow-wrap: anywhere; }
.player-ratings { position: relative; padding: 14px 20px 18px; background: white; border: 1px solid #e3dcf2; border-radius: 12px; }
.score-heading { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.score-heading h2 { font: 650 19px/1.2 var(--brand-font); letter-spacing: -.035em; margin: 0; }
.score-help-tip summary { display: grid; place-items: center; width: 38px; height: 38px; cursor: pointer; list-style: none; color: var(--blue); }
.score-help-tip summary::-webkit-details-marker { display: none; }
.score-help-tip summary span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font: bold 14px/1 var(--brand-font); }
.score-help-body { position: absolute; z-index: 3; top: 53px; left: 14px; width: min(340px, calc(100% - 28px)); box-sizing: border-box; padding: 16px; background: white; border: 1px solid #cfc4df; border-radius: 8px; box-shadow: 0 5px 22px #14112b20; }
.score-help-body p { margin: 0 0 10px; }
.player-ratings .rating-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 22px; }
.player-ratings .rating-cell { display: grid; align-content: start; min-width: 94px; gap: 2px; }
.player-ratings .rating-ring { margin: 6px 0; }
.rating-sport { font-size: 16px; }
.rating-level { font-weight: 600; font-size: 14px; }
.player-ratings .rating-scale { font-size: 12px; }
.player-ratings .rating-ring { flex: none; width: 52px; height: 52px; }
.player-ratings .rating-ring span { width: 44px; height: 44px; font-size: 16px; }
.player-ratings #share-level { margin-top: 10px; }
@media (max-width: 700px) {
  .player-overview { display: grid; gap: 20px; }
  .player-ratings { padding: 8px 14px 16px; }
  .player-ratings .rating-summary { gap: 12px; }

}
@media (max-width: 360px) {
  .player-ratings .rating-summary { grid-template-columns: 1fr; }
}
#score-guide .guide-reader { max-width: 760px; margin: auto; }
.guide-intro { max-width: 62ch; margin: 0 0 24px; line-height: 1.55; }
.sport-guide { min-width: 0; border: 0; padding: 0; margin: 0; }
.sport-guide > input, .sport-guide legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sport-guide > label { display: inline-flex; padding: 10px 20px; margin: 0 4px 14px 0; border-radius: 24px; border: 1px solid #c7bfd9; cursor: pointer; font-weight: 650; }
.sport-guide > input:checked + label { background: var(--blue); color: white; border-color: var(--blue); }
.sport-guide > input:focus-visible + label { outline: 3px solid #ad3589; outline-offset: 3px; }
.sport-reading { display: none; }
#guide-padel:checked ~ .guide-padel, #guide-pickle:checked ~ .guide-pickle { display: block; }
.guide-feature { position:relative; overflow:hidden; isolation:isolate; background:#172fa3; color:white; border-radius:14px; padding:clamp(18px,4vw,32px); }
.guide-feature > div { width:65%; }
.guide-feature h2, .guide-questions h2, .sport-reading h3 { font: 650 23px/1.18 var(--brand-font); letter-spacing:-.035em; margin:0; }
.guide-feature strong { display:block; font:700 clamp(44px,8vw,70px)/1.1 var(--brand-font); letter-spacing:-.06em; color:#ffb7e8; }
.guide-feature p { margin:8px 0 0; line-height:1.45; }
.guide-feature img { position:absolute; z-index:-1; width:39%; height:97%; right:-2%; bottom:0; object-fit:contain; object-position:bottom right; }
.sport-reading h3, .guide-questions h2 { margin:26px 0 10px; }
.sport-reading > p, .guide-questions p { line-height:1.55; }
.level-list { margin:0 0 20px; }
.level-list > div { display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid #ded8eb; }
.level-list dd { margin:0; font-variant-numeric:tabular-nums; font-weight:650; }
.guide-reader details { padding:13px 0; border-bottom:1px solid #ded8eb; }
.guide-reader summary, .player-help summary { cursor:pointer; font-weight:650; }
.player-help details { padding:8px 0; }
.share-preview { width:min(100%,250px); margin:0 auto 18px; }
.share-preview img { display:block; width:100%; border-radius:12px; }
.share-networks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.share-hint { font-size:14px; line-height:1.45; }

#search-output {scroll-margin-top:5.5rem}
#search-feedback {margin:1rem 0;color:#17142c}
#search-feedback[hidden],#search-feedback [hidden] {display:none}
#search-feedback #result-note {margin:0;font:600 clamp(1.05rem,2vw,1.4rem)/1.35 "DM Sans",sans-serif;color:inherit}
#search-meter {display:block;width:min(100%,22rem);height:.45rem;margin-top:.6rem;accent-color:#1830ad}
#retry-search {margin-top:.5rem}
#slot-filters summary {cursor:pointer;padding:.7rem 0;font-weight:600;color:#1830ad}
#slot-filters .results-count {display:none}
#search-output:focus:not(:focus-visible) {outline:none}
@media (max-width:740px){
 #search-output.has-search {min-height:65svh;scroll-margin-top:5rem}
 #search-feedback {padding-top:.4rem}
}

header .header-inbox {
  position: relative; flex: 0 0 44px; height: 44px; display: grid; place-items: center;
  background: #eee9fb; color: var(--blue); border: 0; border-radius: 50%; cursor: pointer;
}
header .header-inbox[hidden] { display: none; }
.header-inbox strong {
  position: absolute; top: -3px; right: -4px; min-width: 20px; padding: 1px 4px;
  border: 2px solid white; border-radius: 20px; color: var(--ink); background: #ffb7e8;
  font: 700 12px/16px var(--brand-font);
}
.event-sheet { width: min(100%, 48rem); color: var(--ink); }
.event-mast { padding: clamp(20px,4vw,36px); border-radius: 16px 16px 0 0; background: var(--blue); color: #fff; }
.event-tags, .inbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.event-tags { font-weight: 600; }
.event-tags strong { padding: 4px 10px; color: var(--ink); background: #ffb7e8; border-radius: 20px; font-size: .875rem; }
#account-content .event-mast h1 { margin: 18px 0 10px; max-width: 24ch; font: 600 clamp(2rem,4.4vw,3.25rem)/1.04 var(--brand-font); text-transform: none; letter-spacing: -.045em; color: white; overflow-wrap: anywhere; }
.event-mast p, .event-meta dd, .inbox-toolbar p { margin: 0; }
.event-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 0 24px; border: 1px solid #ddd6ed; border-radius: 0 0 16px 16px; background: white; }
.event-meta div { min-width: 0; padding: clamp(12px,2.5vw,24px); overflow-wrap: anywhere; }
.event-meta div + div { border-left: 1px solid #ddd6ed; }
.event-meta dt, .applicant small { color: #5a506c; font-size: .875rem; }
.event-meta dd:first-of-type { font-weight: 700; margin: 4px 0; }
.event-sheet h2, .game-prefs h2, .event-tools h2 { font-size: 1.4rem; margin: 0 0 12px; }
.join-review h2 span { display: inline-grid; place-items: center; vertical-align: middle; min-width: 1.6rem; height: 1.6rem; border-radius: 50%; font-size: .9rem; background: #eee9fb; color: var(--blue); }
.applicant { border: 1px solid #dcd6ec; border-radius: 12px; padding: clamp(16px,2.5vw,24px); margin-bottom: 12px; background: white; }
#account-content .applicant h3 { font: 700 1.15rem/1.3 var(--brand-font); text-transform: none; margin: 0; }
.applicant blockquote { margin: 12px 0; padding: 0 0 0 12px; border-left: 3px solid #ffb7e8; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.event-sheet .game-actions, #inbox-list .game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.event-sheet .game-actions .btn { width: auto; min-width: 0; flex: 0 1 auto; padding: 10px 16px; min-height: 44px; }
@media(max-width: 560px) {
  header .account-actions { max-width: 100%; flex-wrap: wrap; }
  #account:has(.event-sheet) .account-wrap { padding-inline: 0; }
}
.event-tools { margin-top: 24px; border-top: 1px solid #ddd6ed; padding-top: 20px; }
.event-tools .text-action { margin-left: auto; }
.inbox-toolbar, #inbox-list { max-width: 48rem; }
#inbox-list .message { padding: 16px 20px; background: white; border: 1px solid #ddd6ed; }
#inbox-list .message.mine { border-left: 4px solid var(--blue); }
.game-prefs label { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.game-prefs input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); }
.play-destinations{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:12px;margin:18px 0 24px}
.play-destinations button,.alert-watch{background:#fff;color:var(--ink);border:1px solid #dbd4ec;border-radius:12px;padding:18px;text-align:left}
.play-destinations button{display:grid;gap:5px;cursor:pointer;border-top:4px solid var(--blue)}.play-destinations button:hover{background:#f1ecff}
.play-destinations b,.alert-watch strong{font:700 1.1rem var(--brand-font)}.play-destinations span,.alert-watch small{font:400 .95rem var(--brand-font);color:#534a65}
.watch-home{max-width:49rem}.watch-head{padding:clamp(18px,4vw,32px);background:var(--blue);color:white;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;border-radius:14px;margin-bottom:20px}
#account-content .watch-head h1{font:600 clamp(2rem,5vw,3.6rem)/1 var(--brand-font);text-transform:none;letter-spacing:-.05em;margin:0;color:white}
.watch-head p{margin:.45rem 0 0}.watch-head .btn{background:#ffb7e8;color:var(--ink)}.watch-home h2{font:650 1.5rem var(--brand-font)}
.alert-watch{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:10px 0}.alert-watch p{margin:6px 0}
.watch-delivery,.game-chat{padding:16px;background:white;border:1px solid #dbd4ec;border-radius:12px;margin:18px 0}
.watch-delivery summary,.game-chat summary{cursor:pointer;font-weight:700;color:var(--blue)}.watch-home fieldset{padding:18px;background:white;border:1px solid #dbd4ec;border-radius:12px}.watch-home legend{font-weight:700}.watch-home form{max-width:none}
.reviewed-player{background:white;padding:12px 16px;border-radius:8px;margin:8px 0}.reviewed-player blockquote{margin:6px 0 0;padding-left:12px;border-left:3px solid #ffb7e8;white-space:pre-wrap}
.game-chat time{display:block;font-size:.8rem;color:#544866}.game-chat textarea{width:100%}

.staff-view-banner{position:sticky;top:0;z-index:100;background:#21143a;color:white;padding:10px 5%;display:flex;align-items:center;justify-content:space-between;gap:10px}.staff-view-banner button{font:inherit;background:white;color:#182884;border:0;border-radius:6px;padding:8px 12px;cursor:pointer}

.game-prefs fieldset{margin:0;padding:1rem;border:1px solid #d9d4ee;border-radius:12px}.game-prefs legend{font-weight:650;padding:0 .35em}.channel-options{display:flex;flex-wrap:wrap;gap:1rem}.channel-options label{display:inline-flex;align-items:center;gap:.35em}
