:root {
  --navy: #0b303c;
  --ink: #142f39;
  --muted: #71828a;
  --green: #16815d;
  --lime: #d9ef8b;
  --cream: #f6f7f2;
  --line: #e4e9e3;
  --gold: #af8535;
  --white: #fff;
  --red: #b4413c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea,
a {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #74ad87;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 9px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 12px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 10px;
  color: var(--green);
  margin-bottom: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: grid;
  gap: 18px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 17px;
  background: white;
  color: var(--ink);
  font-weight: 600;
  min-height: 44px;
  line-height: 1.3;
  transition: 0.15s;
}
.btn:hover:not(:disabled) {
  border-color: #9db8aa;
  background: #f1f6f1;
}
.btn.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn.primary:hover:not(:disabled) {
  background: #106647;
}
.btn.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.btn.danger {
  color: var(--red);
}
.btn.small {
  font-size: 12px;
  min-height: 36px;
  padding: 8px 12px;
}
.btn.icon {
  padding: 9px;
}
.link {
  color: var(--green);
  background: none;
  border: none;
  font-weight: 600;
  padding: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  border-radius: 5px;
  padding: 5px 8px;
  background: #edf1ed;
  color: #61736c;
  font-weight: 600;
  white-space: nowrap;
}
.badge.green {
  background: #e5f3eb;
  color: #1c7e53;
}
.badge.gold {
  background: #f9efd7;
  color: #9a752a;
}
.badge.red {
  background: #fbe9e5;
  color: #aa453d;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.card-header h2,
.card-header h3 {
  margin: 0;
}
.empty {
  text-align: center;
  padding: 35px 20px;
  color: var(--muted);
}
.empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 6px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
.search {
  width: 100%;
  border: 1px solid #dce4dd;
  border-radius: 7px;
  background: white;
  min-height: 44px;
  padding: 11px 13px;
  color: var(--ink);
  font-weight: 400;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 13px 0;
  font-size: 13px;
  line-height: 1.6;
}
.check input {
  margin-top: 4px;
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}
.hint {
  padding: 13px 16px;
  background: #f3f7ed;
  border: 1px solid #e3ebd7;
  border-radius: 8px;
  color: #596b50;
  font-size: 12px;
  line-height: 1.7;
}
.warn {
  background: #fff6e6;
  border-color: #f1dfbb;
  color: #926e2d;
}
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.section-title p {
  margin: 0;
}
.section-title h1 {
  margin-top: 3px;
}
.page {
  max-width: 1450px;
  margin: 0 auto;
  padding: 32px 36px 48px;
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 228px;
  background: var(--navy);
  color: #b8cbc9;
  display: flex;
  flex-direction: column;
  padding: 25px 18px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 28px;
  color: white;
}
.brand img {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  object-fit: cover;
}
.brand strong {
  font-size: 24px;
  letter-spacing: 3px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #94b5b0;
  margin-top: 3px;
}
.side-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #75958f;
  padding: 17px 14px 11px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 7px;
  margin-bottom: 5px;
  font-size: 13px;
}
.nav:hover {
  color: white;
  background: #16404a;
}
.nav.active {
  background: #1b6554;
  color: white;
}
.nav.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  margin-left: auto;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #2c4c52;
  padding-top: 20px;
}
.side-motto {
  font-size: 17px;
  color: #d5e6b2;
  padding: 12px 14px;
  font-style: italic;
}
.side-motto small {
  display: block;
  font-size: 10px;
  color: #8eaaa5;
  font-style: normal;
  margin-top: 8px;
}
.workspace {
  margin-left: 228px;
}
.topbar {
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 36px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.tournament-context {
  max-width: 670px;
  min-width: 0;
}
.tournament-context small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}
.tournament-context strong {
  font-size: 13px;
  line-height: 1.5;
  display: block;
  overflow-wrap: anywhere;
}
.top-right {
  margin-left: auto;
  display: flex;
  gap: 16px;
  align-items: center;
}
.avatar {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #e9efe5;
  color: #52754d;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
}
.user small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.user {
  font-size: 12px;
  white-space: nowrap;
}
.mobile-nav {
  display: none;
}
.hero {
  background: var(--navy);
  color: white;
  border-radius: 13px;
  min-height: 224px;
  display: flex;
  position: relative;
  overflow: hidden;
  margin-bottom: 23px;
}
.hero-copy {
  padding: 31px;
  position: relative;
  z-index: 1;
  width: 68%;
}
.hero .eyebrow {
  color: #bfd887;
  font-size: 10px;
}
.hero h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.hero p {
  color: #b3c8c4;
  font-size: 12px;
  margin-bottom: 21px;
  max-width: 400px;
}
.hero .btn {
  background: var(--lime);
  color: #1c4b34;
  border: 0;
}
.court-art {
  position: absolute;
  right: -32px;
  top: 12px;
  width: 310px;
  height: 235px;
  transform: rotate(-23deg);
  border: 2px solid #6c8c77;
  background: #1e6654;
  opacity: 0.75;
  box-shadow:
    0 0 0 26px #164a45,
    0 0 0 28px #42685d;
}
.court-art:before {
  content: "";
  position: absolute;
  inset: 35px;
  border: 2px solid #a8b9a0;
  background: linear-gradient(
    90deg,
    transparent 49.5%,
    #a8b9a0 49.5%,
    #a8b9a0 50.5%,
    transparent 50.5%
  );
}
.court-art:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 49%;
  height: 3px;
  background: #d6e4ba;
  box-shadow: 0 3px 6px #163f36;
}
.pickleball {
  position: absolute;
  right: 210px;
  bottom: -25px;
  background: var(--lime);
  width: 81px;
  height: 81px;
  border-radius: 50%;
  transform: rotate(25deg);
  box-shadow: 0 12px 40px #0004;
  background-image: radial-gradient(circle, #658f3f 3px, transparent 4px);
  background-size: 19px 19px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}
.stat {
  padding: 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
}
.stat .ico {
  position: absolute;
  right: 19px;
  top: 20px;
  border-radius: 8px;
  background: #f0f4ec;
  padding: 9px;
  color: var(--green);
  height: 38px;
}
.stat strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  margin: 14px 0 6px;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.stat small {
  color: var(--muted);
  font-size: 10px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.steps {
  display: grid;
  gap: 0;
}
.step {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eff2ec;
}
.step:last-child {
  border: 0;
  padding-bottom: 0;
}
.step-no {
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.step.done .step-no {
  background: #e9f4e9;
  color: var(--green);
  border-color: #d0e3cf;
}
.step.current .step-no {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.step h4 {
  font-size: 12px;
  margin: 0 0 4px;
}
.step p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.step .badge {
  margin-left: auto;
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px 16px;
  margin-bottom: 23px;
}
.details small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 7px;
}
.details b {
  font-size: 12px;
  font-weight: 600;
}
.footer-note {
  color: #8a9895;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 25px 0 0;
}
.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar .search {
  max-width: 280px;
}
.tabs {
  display: flex;
  gap: 6px;
  background: #eaf0e8;
  padding: 4px;
  border-radius: 8px;
  width: max-content;
  max-width: 100%;
  overflow: auto;
}
.tab {
  padding: 9px 14px;
  border: 0;
  background: none;
  border-radius: 6px;
  color: #6b7f73;
  white-space: nowrap;
  font-size: 12px;
}
.tab.active {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 3px #182d1610;
  font-weight: 700;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 12px;
}
th {
  text-align: left;
  padding: 13px 14px;
  background: #f7f9f4;
  color: #718176;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
td {
  padding: 14px;
  border-bottom: 1px solid #edf1ea;
}
tr:last-child td {
  border: 0;
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.table-card .card-header {
  padding: 21px 24px 0;
}
td.name {
  font-weight: 600;
  font-size: 13px;
}
.player-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff3e9;
  color: #6e8860;
  display: inline-grid;
  place-items: center;
  margin-right: 9px;
  font-size: 10px;
}
.group-tag {
  color: #7b8b75;
  background: #f0f4ec;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
}
.draw-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}
.player-list {
  padding: 16px 0;
  max-height: 540px;
  overflow: auto;
}
.player-list h3 {
  padding: 0 20px 12px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}
.player-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 12px;
  color: var(--ink);
  min-height: 38px;
}
.player-option.selected {
  background: #e7f3e8;
  border-left: 3px solid var(--green);
  padding-left: 17px;
  color: var(--green);
  font-weight: 700;
}
.player-option.used {
  opacity: 0.4;
}
.player-option .badge {
  margin-left: auto;
  font-size: 9px;
  padding: 3px 6px;
}
.draw-center {
  text-align: center;
  padding: 24px 10px;
}
.wheel {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  margin: 15px auto 22px;
  position: relative;
  background: conic-gradient(
    #1c7659 0deg 45deg,
    #ede2bc 45deg 90deg,
    #123d4b 90deg 135deg,
    #e1eeb1 135deg 180deg,
    #1c7659 180deg 225deg,
    #ede2bc 225deg 270deg,
    #123d4b 270deg 315deg,
    #e1eeb1 315deg 360deg
  );
  border: 8px solid #bd9f55;
  box-shadow:
    0 0 0 3px #e6d9ae,
    0 10px 30px #0f44351a;
  display: grid;
  place-items: center;
}
.wheel:before {
  content: "▼";
  position: absolute;
  top: -27px;
  font-size: 30px;
  color: #b9933f;
  z-index: 2;
  filter: drop-shadow(0 2px 1px #fff);
}
.wheel-core {
  width: 86px;
  height: 86px;
  border: 4px solid #e4c674;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  line-height: 1.6;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 3px 15px #0004;
  z-index: 1;
}
.wheel.spinning {
  animation: spin 1.5s cubic-bezier(0.15, 0.7, 0.2, 1);
}
@keyframes spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(1080deg);
  }
}
.result-band {
  border-radius: 9px;
  padding: 16px;
  background: #ebf4df;
  border: 1px solid #d9e8cb;
  text-align: center;
  margin-top: 14px;
}
.result-band small {
  display: block;
  font-size: 10px;
  color: #67845b;
  margin-bottom: 6px;
}
.result-band strong {
  font-size: 15px;
}
.group-card {
  padding: 0;
  overflow: hidden;
}
.group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 21px;
  background: #eaf1e2;
}
.group-head h3 {
  margin: 0;
  letter-spacing: 1px;
  font-size: 13px;
}
.group-card:nth-child(2) .group-head {
  background: #e4eff4;
}
.group-card:nth-child(3) .group-head {
  background: #f6edda;
}
.group-card:nth-child(4) .group-head {
  background: #eee9f4;
}
.group-member {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 21px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.group-member > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #f3f5ef;
  color: #7b8b77;
  font-size: 11px;
}
.group-member strong {
  display: block;
  margin-bottom: 4px;
}
.group-member small {
  font-size: 10px;
  color: var(--muted);
}
.match-card {
  padding: 19px;
}
.match-meta {
  font-size: 10px;
  color: #829188;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.opponents {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.opponent {
  flex: 1;
  min-width: 0;
}
.opponent strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}
.opponent small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}
.versus {
  color: #b1bbaa;
  font-size: 11px;
}
.match-score {
  font-size: 22px;
  letter-spacing: 1px;
  font-weight: 700;
}
.match-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  gap: 8px;
}
.bracket {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
  align-items: center;
  min-width: 650px;
}
.bracket-col {
  display: grid;
  gap: 18px;
}
.bracket-col h3 {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-align: center;
}
.bracket-match {
  background: white;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 8px;
}
.bracket-match small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.bracket-team {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 11px;
}
.bracket-team + div {
  border-top: 1px solid var(--line);
}
.awards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}
.award {
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
  flex: 1;
}
.award.gold {
  background: #fcf6e7;
  border-color: #e8d8ad;
}
.medal {
  font-size: 34px;
  margin-bottom: 12px;
}
.award h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #917839;
}
.award strong {
  font-size: 15px;
}
.tournament-list {
  max-width: 1150px;
  margin: 0 auto;
  padding: 46px 35px;
}
.tournament-list .section-title {
  margin: 38px 0;
}
.tournament-card {
  display: flex;
  flex-direction: column;
  min-height: 256px;
  padding: 25px;
  position: relative;
}
.tournament-card h2 {
  font-size: 19px;
  line-height: 1.5;
  margin: 18px 0 14px;
  overflow-wrap: anywhere;
}
.tournament-card .card-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tournament-date {
  font-size: 12px;
  color: var(--muted);
}
.tournament-icon {
  width: 42px;
  height: 42px;
  background: #f0f5e8;
  border-radius: 10px;
  color: var(--green);
  display: grid;
  place-items: center;
}
.top-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.top-logo strong {
  font-size: 25px;
  letter-spacing: 3px;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-visual {
  background: var(--navy);
  color: white;
  padding: 55px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-visual h1 {
  font-size: 52px;
  line-height: 1.15;
  max-width: 470px;
  font-weight: 650;
}
.login-visual p {
  color: #b8cec6;
}
.login-visual .court-art {
  right: -70px;
  top: 45%;
  width: 420px;
  height: 320px;
  opacity: 0.3;
}
.login-copy {
  z-index: 1;
  position: relative;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.login-box {
  width: 100%;
  max-width: 370px;
}
.login-box h2 {
  font-size: 29px;
  margin-bottom: 8px;
}
.login-box .btn {
  width: 100%;
  margin-top: 8px;
}
.login-box .hint {
  margin-top: 26px;
}
.score-page {
  max-width: 620px;
  margin: 0 auto;
  padding: 25px 20px;
}
.score-title {
  text-align: center;
  margin-bottom: 17px;
}
.score-title h1 {
  font-size: 22px;
  margin: 8px 0;
}
.score-title p {
  font-size: 11px;
  margin: 0;
}
.score-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.score-team {
  padding: 18px 12px 13px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-team.serving {
  background: #13754f;
  color: white;
  border-color: #13754f;
  box-shadow: 0 0 0 3px #c8df9f66;
}
.score-team h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
.score-team small {
  font-size: 11px;
  min-height: 30px;
  line-height: 1.5;
}
.score-team .digits {
  font-size: 72px;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -3px;
  margin: 8px 0;
}
.serve-label {
  font-size: 9px;
  letter-spacing: 0.7px;
  font-weight: 700;
  background: #ffffff20;
  border-radius: 20px;
  padding: 5px 8px;
}
.score-info {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  margin: 13px 0;
}
.point-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  min-height: 98px;
  padding: 12px;
  margin: 0 0 10px;
  box-shadow: 0 5px 13px #126a4a1a;
}
.point-btn strong {
  font-size: 34px;
  display: block;
  letter-spacing: -1px;
}
.point-btn small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}
.serve-btn {
  width: 100%;
  min-height: 51px;
  font-size: 15px;
  margin-bottom: 13px;
}
.score-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.score-actions .btn {
  width: 100%;
  min-height: 48px;
}
.save-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  color: var(--green);
  margin-top: 12px;
}
.history-list {
  max-height: 300px;
  overflow: auto;
  margin-top: 20px;
}
.history-entry {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.public-shell .page {
  max-width: 1400px;
}
.public-bar {
  background: var(--navy);
  color: white;
  padding: 22px 35px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.public-bar h1 {
  font-size: 20px;
  letter-spacing: 0;
  margin: 0;
  line-height: 1.5;
}
.public-bar img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
}
.public-tabs {
  display: flex;
  justify-content: center;
  padding: 20px;
}
.public-tabs .tabs {
  background: #e4eada;
}
dialog {
  border: 0;
  border-radius: 14px;
  width: min(560px, calc(100vw - 28px));
  padding: 27px;
  color: var(--ink);
  box-shadow: 0 30px 100px #00251540;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #092f3bb3;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 20px;
}
dialog .close {
  float: right;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0;
  min-height: 30px;
  min-width: 30px;
  font-size: 23px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  line-height: 1.6;
  min-height: 16px;
}
.secret {
  font-family: monospace;
  overflow-wrap: anywhere;
  background: #edf3e8;
  padding: 18px;
  border-radius: 8px;
  user-select: all;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 14px 23px;
  border-radius: 9px;
  box-shadow: 0 6px 30px #001c3322;
  display: none;
  max-width: 90vw;
  font-size: 12px;
  line-height: 1.6;
}
#toast.visible {
  display: block;
}
.initial {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--green);
}
.mobile-brand {
  display: none;
}
.offline-strip {
  background: #fff0dc;
  color: #8b5c1e;
  padding: 10px;
  text-align: center;
  font-size: 12px;
}
.print-title {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1600px) {
  .page {
    padding-top: 40px;
  }
  .hero {
    min-height: 250px;
  }
  .hero-copy {
    padding: 36px;
  }
  .stats {
    gap: 24px;
  }
  .stat {
    padding: 24px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 196px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 196px;
  }
  .page {
    padding: 27px 24px;
  }
  .topbar {
    padding: 16px 24px;
  }
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .draw-layout {
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 10px;
  }
  .wheel {
    width: 190px;
    height: 190px;
  }
  .player-option {
    padding: 10px 12px;
  }
  .hero-copy {
    width: 75%;
  }
  .hero h2 {
    font-size: 26px;
  }
  .court-art {
    right: -100px;
  }
  .user {
    display: none;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .stat .ico {
    right: 12px;
  }
  .stat strong {
    font-size: 26px;
  }
  .dashboard-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 25px;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    padding: 13px 17px;
    gap: 10px;
    min-height: 76px;
  }
  .tournament-context strong {
    font-size: 11px;
  }
  .tournament-context small {
    font-size: 8px;
  }
  .top-right {
    gap: 8px;
  }
  .top-right > .badge,
  .top-right .avatar {
    display: none;
  }
  .topbar .btn {
    padding: 8px 10px;
    min-width: 68px;
    font-size: 10px;
  }
  .page {
    padding: 22px 17px 85px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    background: white;
    border-top: 1px solid var(--line);
    padding: 8px 3px max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav a {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-direction: column;
    font-size: 8px;
    color: #758a7b;
    padding: 4px;
  }
  .mobile-nav a.active {
    color: var(--green);
  }
  .mobile-nav svg {
    width: 19px;
    height: 19px;
  }
  .mobile-brand {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }
  .section-title {
    align-items: flex-start;
    margin-bottom: 21px;
  }
  .section-title p {
    font-size: 11px;
  }
  .section-title .row {
    gap: 7px;
  }
  .section-title .btn {
    font-size: 10px;
    padding: 9px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
  }
  .hero {
    min-height: 235px;
  }
  .hero-copy {
    padding: 24px;
    width: 90%;
  }
  .hero h2 {
    font-size: 25px;
    max-width: 250px;
  }
  .hero p {
    max-width: 230px;
    font-size: 11px;
  }
  .court-art {
    width: 230px;
    height: 185px;
    right: -135px;
    top: 70px;
    opacity: 0.45;
  }
  .pickleball {
    width: 55px;
    height: 55px;
    right: 20px;
    bottom: -10px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    margin: 12px 0 4px;
  }
  .stat .ico {
    top: 15px;
    padding: 7px;
    height: 32px;
  }
  .stat .ico svg {
    width: 17px;
    height: 17px;
  }
  .stat span {
    font-size: 10px;
  }
  .stat small {
    font-size: 9px;
  }
  .dashboard-grid,
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .card {
    padding: 20px;
  }
  .table-card {
    padding: 0;
  }
  .step {
    padding: 14px 0;
  }
  .tournament-list {
    padding: 25px 17px 45px;
  }
  .tournament-list .section-title {
    margin: 32px 0 22px;
  }
  .tournament-list .section-title .btn {
    font-size: 11px;
  }
  .top-logo strong {
    font-size: 21px;
  }
  .top-logo img {
    width: 40px;
    height: 40px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-visual {
    display: none;
  }
  .login-form {
    padding: 30px 24px;
    min-height: 100vh;
  }
  .login-box:before {
    content: "";
    display: block;
    background: url("/assets/logo.jpeg") center/cover;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-bottom: 30px;
  }
  .draw-layout {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .draw-center {
    grid-column: 1/3;
    grid-row: 1;
    padding: 8px;
  }
  .player-list {
    max-height: 280px;
    padding: 14px 0;
  }
  .player-list h3 {
    padding: 0 12px 9px;
    font-size: 11px;
  }
  .player-option {
    font-size: 11px;
    padding: 9px 12px;
  }
  .player-option .badge {
    font-size: 8px;
  }
  .wheel {
    width: 210px;
    height: 210px;
    margin: 16px auto 20px;
  }
  .draw-center .muted {
    font-size: 11px;
  }
  .card-header {
    margin-bottom: 17px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar .search {
    max-width: none;
  }
  .tabs {
    width: 100%;
  }
  .tab {
    padding: 9px 12px;
    font-size: 11px;
    flex: 1;
  }
  .awards {
    flex-direction: column;
    gap: 12px;
  }
  .award {
    padding: 18px;
  }
  .medal {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .score-page {
    padding: 17px 14px 90px;
  }
  .score-team {
    min-height: 177px;
    padding: 14px 9px 11px;
  }
  .score-team .digits {
    font-size: 65px;
  }
  .score-title h1 {
    font-size: 20px;
  }
  .score-title p {
    font-size: 10px;
  }
  .point-btn {
    min-height: 88px;
  }
  .point-btn strong {
    font-size: 31px;
  }
  .score-cards {
    gap: 10px;
  }
  .score-team small {
    font-size: 10px;
  }
  .public-bar {
    padding: 18px;
    align-items: flex-start;
    gap: 13px;
  }
  .public-bar h1 {
    font-size: 15px;
  }
  .public-bar img {
    width: 40px;
    height: 40px;
  }
  .public-bar .btn {
    font-size: 10px;
    padding: 8px;
  }
  .public-tabs {
    padding: 16px;
  }
  .public-shell .page {
    padding-bottom: 30px;
  }
  dialog {
    padding: 23px;
  }
  .section-title .btn svg {
    width: 16px;
    height: 16px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .mobile-nav,
  .btn,
  .toolbar,
  .footer-note,
  .public-tabs,
  #toast,
  dialog {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  .page {
    padding: 0;
  }
  .print-title {
    display: block;
    font-size: 20px;
    margin-bottom: 20px;
  }
  .card {
    break-inside: avoid;
  }
  .hero {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
  body {
    background: white;
  }
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .score-page {
    max-width: 600px;
  }
  .table-wrap {
    overflow: visible;
  }
}
.score-actions .grid2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 760px) {
  .workspace:has(.score-page) .mobile-nav {
    display: none;
  }
  .score-page {
    padding-bottom: 40px;
  }
}

.mobile-group-tabs{display:none}
@media(max-width:760px){
.mobile-group-tabs{display:flex;margin-bottom:12px}.mobile-group-tabs button{min-height:48px;font-size:14px}
.draw-layout{display:flex;flex-direction:column}.draw-layout .player-list{order:0;max-height:none;overflow:visible}.draw-center{order:1}.draw-layout[data-active-group="1"] .player-list[data-group="2"],.draw-layout[data-active-group="2"] .player-list[data-group="1"]{display:none}
.player-option{min-height:50px;font-size:15px;padding:10px 16px}.player-option.selected:after{content:'✓';margin-left:auto;font-weight:bold}.player-list h3{font-size:14px}.player-option .badge{font-size:11px}.wheel{width:150px;height:150px;margin:18px auto}.draw-center>.btn{display:flex;width:100%;margin:10px 0}.draw-center{padding:12px 0}.topbar{position:relative}.page{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.mobile-nav{padding-bottom:max(10px,env(safe-area-inset-bottom))}input,select,textarea{font-size:16px!important}.table-wrap{max-width:100%;overflow:auto}.section-title{flex-wrap:wrap}.card{min-width:0}.draw-layout~.table-card table,.draw-layout~.table-card tbody{display:block}.draw-layout~.table-card thead{display:none}.draw-layout~.table-card tr{display:flex;flex-wrap:wrap;padding:12px;border-bottom:1px solid var(--line)}.draw-layout~.table-card td{border:0;padding:7px;white-space:normal}.draw-layout~.table-card td:first-child{width:100%;font-weight:bold}
}
