:root {
  color-scheme: light;
  --ink: #110b0d;
  --muted: #806f68;
  --line: #ead6a6;
  --paper: #18070a;
  --white: #ffffff;
  --gold: #f6c956;
  --gold-soft: #fff3c3;
  --red: #98070c;
  --red-bright: #d81018;
  --black: #10090a;
  --panel: #fffaf0;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(246, 201, 86, 0.16), transparent 28rem),
    linear-gradient(180deg, #4f0508 0, #170608 34rem, #10090a 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.hero {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 229, 151, 0.26), transparent 18rem),
    #8f070b;
}

.hero__media {
  width: 100%;
  min-height: min(92svh, 760px);
  background:
    url("assets/sinfutbol-flyer.jpg") center top / contain no-repeat,
    #9b060b;
}

.hero__content {
  width: 100%;
  padding: 20px 18px 24px;
  border-top: 1px solid rgba(246, 201, 86, 0.34);
  background:
    linear-gradient(180deg, rgba(16, 9, 10, 0.96), rgba(25, 7, 9, 1)),
    #10090a;
  color: var(--white);
  text-shadow: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 14px;
  font-size: clamp(2rem, 11vw, 4.2rem);
  line-height: 0.96;
  font-weight: 800;
  color: #fff8df;
}

.hero__copy {
  max-width: 34rem;
  margin-bottom: 20px;
  color: #fff6dd;
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 700;
}

.hero__facts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.hero__facts span {
  flex: 0 0 auto;
  border: 1px solid rgba(246, 201, 86, 0.72);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(246, 201, 86, 0.12);
  color: #fff3c3;
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.event-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #3d0709;
  border-top: 1px solid rgba(246, 201, 86, 0.38);
  border-bottom: 1px solid rgba(246, 201, 86, 0.38);
}

.event-strip div {
  min-width: 0;
  background: linear-gradient(180deg, #fff7d7, #f0c95f);
  padding: 13px 8px;
  text-align: center;
}

.event-strip span {
  display: block;
  color: #5f090c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-strip strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #12090a;
  font-size: 0.95rem;
}

.signup {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 28px;
}

.form-intro {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
  border: 1px solid rgba(246, 201, 86, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(152, 7, 12, 0.95), rgba(16, 9, 10, 0.98)),
    var(--black);
  color: var(--white);
  padding: 16px 14px;
  box-shadow: var(--shadow);
}

.form-intro p {
  margin: 4px 0 0;
  color: #fff2c7;
  font-size: 0.92rem;
  line-height: 1.42;
}

.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.country-badge {
  display: inline-grid;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(246, 201, 86, 0.8);
  border-radius: 999px;
  background: rgba(255, 243, 195, 0.12);
  color: #fff8df;
  padding: 0 13px;
  font-size: 0.86rem;
  font-weight: 800;
}

.form-section,
.checkout {
  margin: 0 0 14px;
  border: 1px solid rgba(246, 201, 86, 0.46);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(255, 247, 219, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
}

.form-section {
  padding: 18px 14px;
}

.section-heading {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.step {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #12090a;
  background: linear-gradient(180deg, #fff3c3, #f0bc3c);
  color: #14090a;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(152, 7, 12, 0.92);
}

h2 {
  margin-bottom: 4px;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #250b0d;
}

.section-heading p,
.checkout p {
  margin-bottom: 0;
  color: #6f3325;
  font-size: 0.92rem;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: #2b1110;
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d8bd76;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input:focus,
select:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 4px rgba(216, 16, 24, 0.16);
}

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

.players-toolbar span {
  color: #6f3325;
  font-size: 0.9rem;
  font-weight: 800;
}

.player-meter {
  height: 8px;
  overflow: hidden;
  margin: -2px 0 12px;
  border-radius: 999px;
  background: #ead6a6;
}

.player-meter span {
  display: block;
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-bright), var(--gold));
  transition: width 180ms ease;
}

.ghost-button,
.remove-player {
  min-height: 44px;
  border: 1px solid #d8bd76;
  border-radius: 8px;
  background: #fff4c8;
  color: #6d080b;
  padding: 0 13px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ghost-button:active,
.remove-player:active {
  transform: translateY(1px) scale(0.99);
}

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

.player-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.remove-player {
  width: 44px;
  padding: 0;
  background: #fff8e0;
  color: var(--red);
}

.checkout {
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
  border-color: rgba(246, 201, 86, 0.6);
  background:
    linear-gradient(180deg, rgba(28, 8, 10, 0.98), rgba(74, 5, 8, 0.98)),
    var(--black);
  box-shadow: var(--shadow);
  color: var(--white);
}

.checkout h2 {
  color: #fff8df;
}

.checkout p {
  color: #fff0bd;
}

.summary {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  border: 1px solid rgba(246, 201, 86, 0.42);
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 12px;
}

.summary span {
  color: #f8d879;
  font-size: 0.82rem;
  font-weight: 700;
}

.summary strong {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pay-button {
  width: 100%;
  min-height: 56px;
  border: 1px solid #fff0b5;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe27b, #df9b1f);
  color: #14090a;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 6px 0 #72070a, 0 16px 28px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.pay-button:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #72070a, 0 10px 20px rgba(0, 0, 0, 0.22);
}

.pay-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.fine-print {
  margin-top: 10px;
  color: #ffeab0;
  text-align: center;
  font-size: 0.78rem;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 18px;
  left: 14px;
  z-index: 3;
  display: none;
  border-radius: 8px;
  background: #13090a;
  color: var(--white);
  padding: 13px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(246, 201, 86, 0.44);
  box-shadow: var(--shadow);
}

.toast.is-visible {
  display: block;
}

@media (min-width: 720px) {
  .hero {
    display: grid;
    min-height: 76vh;
    grid-template-columns: minmax(320px, 0.72fr) minmax(360px, 1fr);
    align-items: stretch;
  }

  .hero__content {
    display: grid;
    align-content: end;
    padding: 54px 48px 58px;
    background:
      radial-gradient(circle at 30% 20%, rgba(246, 201, 86, 0.16), transparent 18rem),
      linear-gradient(90deg, #10090a, #4b0508);
  }

  .hero__media {
    background:
      url("assets/sinfutbol-flyer.jpg") center / contain no-repeat,
      #9b060b;
  }

  .signup {
    padding: 28px 24px 48px;
  }

  .form-intro {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 18px 20px;
  }

  .form-section,
  .checkout {
    padding: 22px;
  }

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

  .field-grid label:first-child:last-child,
  .field-grid label:first-child:nth-last-child(3) {
    grid-column: auto;
  }

  .toast {
    right: 22px;
    left: auto;
    width: min(360px, calc(100vw - 44px));
  }
}
