.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--lime);
  color: var(--ink);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.ladder-page .desktop-nav a[aria-current="page"] {
  color: var(--purple);
}

.ladder-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.ladder-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: 64px 0 72px;
}

.ladder-hero__copy h1 {
  max-width: 720px;
  margin-top: 22px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.08;
  color: var(--white);
}

.ladder-hero__copy p {
  max-width: 560px;
  margin-top: 18px;
  color: #d7d9e3;
  font-size: 1.05rem;
  line-height: 1.7;
}

.ladder-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ladder-hero__fee {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 420px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(227, 236, 18, 0.35);
  background: rgba(227, 236, 18, 0.1);
  color: #eef0d8;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ladder-hero__fee strong {
  color: var(--lime);
  font-size: 1.02rem;
}

.ladder-hero__ghost,
.ladder-side__rules {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.ladder-hero__ghost:hover,
.ladder-side__rules:hover {
  color: var(--purple);
  background: var(--lime);
  border-color: var(--lime);
}

.ladder-spots {
  padding: 28px 30px 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.ladder-spots__kicker {
  margin: 0;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.ladder-spots__count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 6px;
  line-height: 1;
}

.ladder-spots__count strong {
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.ladder-spots__count span {
  color: #b8bdcd;
  font-size: 1.4rem;
  font-weight: 700;
}

.ladder-spots__label {
  margin: 0 0 18px;
  color: #d7d9e3;
  font-size: 0.95rem;
}

.ladder-spots__bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.ladder-spots__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
}

.ladder-spots__wait {
  margin: 14px 0 0;
  color: var(--lime);
  font-size: 0.88rem;
  font-weight: 700;
}

.ladder-roster {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ladder-roster__title {
  margin: 0;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.ladder-roster__hook {
  margin: 8px 0 0;
  color: #d7d9e3;
  font-size: 0.9rem;
  font-weight: 600;
}

.ladder-roster__empty {
  margin: 10px 0 0;
  color: #b8bdcd;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ladder-roster__scroll {
  max-height: 168px;
  margin-top: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(227, 236, 18, 0.55) rgba(255, 255, 255, 0.08);
}

.ladder-roster__scroll::-webkit-scrollbar {
  width: 6px;
}

.ladder-roster__scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(227, 236, 18, 0.55);
}

.ladder-roster__row {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  line-height: 1.35;
}

.ladder-roster__row:last-child {
  border-bottom: 0;
}

.ladder-roster__pos {
  color: var(--lime);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ladder-roster__name {
  color: #f4f5f0;
  font-weight: 600;
}

.ladder-fee-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e6e8c8;
  background: #f7f8ef;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ladder-fee-note strong {
  color: var(--navy);
}

.ladder-courts {
  padding: 56px 0 8px;
  background:
    radial-gradient(circle at 12% 20%, rgba(196, 255, 77, 0.12), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(21, 38, 48, 0.06), transparent 36%),
    var(--cream, #f6f4ee);
}

.ladder-courts__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.ladder-courts__copy h2 {
  margin-top: 8px;
  max-width: 18ch;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  color: var(--navy);
}

.ladder-courts__copy .ladder-lead {
  max-width: 42ch;
}

.ladder-courts__points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ladder-courts__points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.5;
}

.ladder-courts__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(196, 255, 77, 0.28);
}

.ladder-courts__gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 14px;
  align-items: stretch;
  min-height: 320px;
}

.ladder-courts__shot {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy);
  box-shadow: 0 18px 40px rgba(21, 38, 48, 0.14);
}

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

.ladder-courts__shot--wide {
  min-height: 280px;
}

.ladder-courts__shot--tall {
  min-height: 280px;
}

.ladder-section {
  padding: 56px 0 80px;
}

.ladder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: start;
  gap: clamp(28px, 4vw, 48px);
}

.ladder-form-card,
.ladder-info-card,
.rules-preview,
.success-card {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ladder-form-card h2,
.ladder-info-card h2,
.success-card h1 {
  margin-top: 8px;
}

.ladder-lead,
.ladder-info-card p,
.success-card p {
  margin-top: 10px;
  color: var(--slate);
  line-height: 1.65;
}

.ladder-banner {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ladder-banner.waitlist {
  color: #7a4a00;
  background: #fff4d6;
  border: 1px solid #f0d48a;
}

.ladder-banner.ok {
  color: #0f5132;
  background: #d1f4e0;
  border: 1px solid #a3e4c1;
}

.ladder-banner.error {
  color: #8a1f16;
  background: #fdecea;
  border: 1px solid #f3c4bf;
}

.ladder-form {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.ladder-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--purple);
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  color: var(--ink);
  background: #fbfcf8;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(38, 16, 109, 0.09);
}

.field.is-invalid input,
.field.is-invalid .check {
  border-color: #c9372c;
}

.field-hint {
  color: var(--slate);
  font-size: 0.78rem;
}

.field-error {
  color: #b42318;
  font-size: 0.8rem;
  font-weight: 600;
}

.field--age {
  max-width: 180px;
}

.field--age input {
  text-align: right;
}

.field.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 8px 10px;
}

.field.check .field-error,
.consent-rules-link {
  grid-column: 2;
  justify-self: start;
}

.field.check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--purple);
}

.field.check label {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}

.text-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--purple);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ladder-form .submit {
  width: 100%;
  margin-top: 4px;
}

.ladder-info-card {
  color: var(--white);
  background: var(--navy);
}

.ladder-info-card h2 {
  color: var(--white);
  font-size: 1.7rem;
}

.ladder-facts {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ladder-facts li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}

.ladder-facts__n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--purple);
  background: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
}

.ladder-facts p {
  margin: 4px 0 0;
  color: #c9ccda;
  font-size: 0.9rem;
}

.ladder-side__rules {
  margin-top: 26px;
  width: 100%;
}

.rules-preview {
  margin-top: 18px;
}

.rules-preview summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--purple);
}

.rules-preview summary::-webkit-details-marker {
  display: none;
}

.rules-preview__toggle {
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 700;
}

.rules-preview[open] .rules-preview__toggle {
  display: none;
}

.rules-preview[open] summary::after {
  content: "Κλείσιμο";
  color: var(--slate);
  font-size: 0.82rem;
  font-weight: 700;
}

.rules-preview__body {
  margin-top: 18px;
}

.rules-stack {
  display: grid;
  gap: 10px;
}

.rules-acc {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fcfdf8;
  overflow: hidden;
}

.rules-acc > summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.rules-acc > summary::-webkit-details-marker {
  display: none;
}

.rules-acc__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--purple);
  background: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
}

.rules-acc__title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
}

.rules-acc__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.rules-acc[open] .rules-acc__chev {
  transform: rotate(-135deg);
}

.rules-acc__body {
  padding: 0 18px 18px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.65;
}

.rules-acc__body h3 {
  margin: 16px 0 8px;
  font-size: 1rem;
}

.rules-acc__body ul,
.rules-acc__body ol {
  margin: 0 0 12px;
  padding-left: 1.15rem;
}

.rules-acc__body li + li {
  margin-top: 6px;
}

.rules-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.rules-table th,
.rules-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.rules-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rules-table thead {
  background: var(--navy);
  color: var(--white);
}

.rules-table tbody tr:last-child td {
  border-bottom: 0;
}

.rules-table .highlight {
  color: var(--purple);
  font-weight: 800;
}

.rules-table .muted {
  color: var(--slate);
  font-weight: 500;
}

.rules-callout {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f5ff;
  border-left: 4px solid var(--purple);
}

.rules-callout.warn {
  background: #fff7df;
  border-left-color: #d4b400;
}

.rules-callout.danger {
  background: #fdecea;
  border-left-color: #c9372c;
}

.rules-callout.accent {
  background: #f7fde3;
  border-left-color: var(--lime-hover);
}

.rules-callout p {
  margin-top: 8px;
}

.rules-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}

.rules-modal[hidden] {
  display: none;
}

.rules-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 10, 46, 0.62);
}

.rules-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(88vh, 920px);
  display: flex;
  flex-direction: column;
  margin: auto;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(10, 6, 32, 0.35);
}

.rules-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.rules-modal__head h2 {
  margin-top: 6px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

.rules-modal__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--purple);
  background: var(--cream);
  cursor: pointer;
}

.rules-modal__scroll {
  overflow-y: auto;
  padding: 18px 22px 24px;
}

.ladder-success {
  padding: 56px 0 80px;
}

.success-card {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.success-card__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: var(--purple);
  background: var(--lime);
}

.success-card.is-waitlist .success-card__icon {
  color: #7a4a00;
  background: #ffe08a;
}

.success-card__place {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--navy);
}

.success-card__note {
  margin-top: 12px;
}

.success-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.success-card .ladder-hero__ghost {
  color: var(--purple);
  border-color: var(--purple);
}

.ladder-admin-bar {
  background: var(--navy);
  color: var(--white);
}

.ladder-admin-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  min-height: 48px;
  font-size: 0.88rem;
  font-weight: 700;
}

.ladder-admin-bar a {
  color: var(--lime);
}

.ladder-admin-bar__user {
  margin-left: auto;
  color: #c9ccda;
  font-weight: 600;
}

.ladder-admin-bar__logout {
  color: var(--white) !important;
}

.admin-wrap {
  padding: 32px 0 64px;
}

.admin-panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-meta {
  margin: 8px 0 18px;
  color: var(--slate);
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-toolbar input,
.admin-toolbar select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcf8;
}

.admin-toolbar input {
  min-width: min(280px, 100%);
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th.num,
.admin-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.admin-table tbody tr:hover {
  background: #f7f8ef;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-ok {
  color: #0f5132;
  background: #d1f4e0;
}

.badge-wait {
  color: #7a4a00;
  background: #ffe08a;
}

.admin-delete-form {
  margin: 0;
}

.admin-delete-btn {
  height: 36px;
  padding-inline: 12px;
  font-size: 0.78rem;
  color: #8a1f16;
  background: #fdecea;
  border-color: #f3c4bf;
}

.admin-delete-btn:hover {
  color: #fff;
  background: #c0392b;
  border-color: #c0392b;
}

.login-card {
  width: min(420px, 100%);
  margin: 48px auto 72px;
}

.login-card .submit {
  width: 100%;
  margin-top: 8px;
}

.admin-meta--warn {
  color: #8a1f16;
  font-weight: 700;
}

body.modal-open {
  overflow: hidden;
}

.flash-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.flash-modal[hidden] {
  display: none !important;
}

.flash-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 30, 0.72);
}

.flash-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: var(--white, #fff);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.flash-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #f1f2ea;
  cursor: pointer;
}

.flash-modal__icon {
  width: 64px;
  height: 64px;
  margin: 4px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.flash-modal--ok .flash-modal__icon {
  color: #0f5132;
  background: #d1f4e0;
}

.flash-modal--error .flash-modal__icon {
  color: #8a1f16;
  background: #fdecea;
}

.flash-modal__icon .icon {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.flash-modal__dialog h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.2;
  color: var(--navy);
}

.flash-modal__message {
  margin: 12px 0 0;
  color: var(--slate);
  line-height: 1.6;
}

.flash-modal__details {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.flash-modal__details li {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f8ef;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.45;
}

.flash-modal__ok {
  margin-top: 20px;
  min-width: 140px;
}

.flash-modal--ok .flash-modal__ok {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}

@media (max-width: 720px) {
  .flash-modal {
    padding: 0;
    align-items: end;
  }

  .flash-modal__dialog {
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 960px) {
  .ladder-hero__grid,
  .ladder-layout,
  .ladder-form__grid,
  .ladder-courts__grid {
    grid-template-columns: 1fr;
  }

  .ladder-courts__gallery {
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 240px;
  }

  .field--age {
    max-width: none;
  }

  .ladder-hero__grid {
    padding: 42px 0 48px;
  }
}

@media (max-width: 720px) {
  .rules-modal {
    padding: 0;
    align-items: stretch;
  }

  .rules-modal__dialog {
    width: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
  }

  .success-card__actions .button {
    width: 100%;
  }

  .ladder-admin-bar__user {
    margin-left: 0;
  }

  .ladder-courts {
    padding: 40px 0 0;
  }

  .ladder-courts__gallery {
    grid-template-columns: 1fr;
  }

  .ladder-courts__shot--wide,
  .ladder-courts__shot--tall {
    min-height: 220px;
  }

  .ladder-courts__shot--tall {
    max-height: 360px;
  }
}
