:root {
  color-scheme: light;
  --bg: #f3fbfb;
  --ink: #050505;
  --muted: #536268;
  --line: rgba(5, 5, 5, 0.12);
  --panel: rgba(255, 255, 255, 0.74);
  --cyan: #02dce7;
  --cyan-soft: rgba(2, 220, 231, 0.16);
  --green: #02bfc9;
  --clay: #02dce7;
  --blue: #0c7a84;
  --shadow: 0 28px 80px rgba(0, 190, 205, 0.14), 0 20px 54px rgba(5, 5, 5, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at 16% 14%, rgba(2, 220, 231, 0.24), transparent 28%),
    radial-gradient(circle at 85% 22%, rgba(5, 5, 5, 0.06), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4fbfb 48%, #e9f7f8 100%);
  background-size: 130% 130%, 120% 120%, 100% 100%;
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.sports-backdrop {
  filter: drop-shadow(0 18px 34px rgba(2, 190, 202, 0.1));
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.equipment {
  animation: equipment-drift 14s ease-in-out infinite;
  fill: rgba(255, 255, 255, 0.2);
  opacity: 0.5;
  position: absolute;
  stroke: rgba(12, 122, 132, 0.5);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.equipment-ball {
  height: 128px;
  left: clamp(14px, 6vw, 92px);
  top: clamp(22px, 9vh, 96px);
}

.equipment-bat {
  animation-delay: -4s;
  height: 150px;
  right: clamp(8px, 8vw, 110px);
  top: clamp(64px, 13vh, 138px);
  transform: rotate(12deg);
}

.equipment-football {
  animation-delay: -7s;
  bottom: clamp(28px, 12vh, 118px);
  height: 116px;
  left: clamp(12px, 10vw, 160px);
  stroke: rgba(5, 5, 5, 0.32);
}

.equipment-racket {
  animation-delay: -2s;
  bottom: clamp(16px, 7vh, 84px);
  height: 150px;
  right: clamp(18px, 11vw, 156px);
  transform: rotate(-12deg);
}

.equipment-whistle {
  animation-delay: -10s;
  height: 108px;
  left: 50%;
  top: clamp(18px, 5vh, 48px);
  transform: translateX(-50%) rotate(-8deg);
}

.equipment-cone {
  animation-delay: -5s;
  bottom: clamp(18px, 5vh, 54px);
  height: 126px;
  left: 50%;
  opacity: 0.34;
  stroke: rgba(2, 190, 202, 0.5);
  transform: translateX(-50%) rotate(5deg);
}

button,
input {
  font: inherit;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 56px);
  place-items: center;
  position: relative;
  z-index: 1;
}

.checkout {
  animation: card-arrive 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  backdrop-filter: blur(22px);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 450px);
  isolation: isolate;
  max-width: 1060px;
  min-height: min(680px, calc(100vh - 36px));
  overflow: visible;
  position: relative;
  width: 100%;
}

.checkout::before {
  background:
    radial-gradient(circle at 9% 14%, rgba(2, 220, 231, 0.2), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(12, 122, 132, 0.14), transparent 28%),
    radial-gradient(circle at 16% 88%, rgba(5, 5, 5, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(2, 220, 231, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  box-shadow: 0 28px 82px rgba(2, 190, 202, 0.13);
  content: "";
  inset: -26px;
  opacity: 0.92;
  position: absolute;
  z-index: -1;
}

.visual-panel {
  background:
    linear-gradient(160deg, rgba(3, 12, 14, 0.58), rgba(2, 220, 231, 0.08)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(2, 220, 231, 0.26) 58%, rgba(255, 255, 255, 0.22));
  border-radius: 8px 0 0 8px;
  min-height: 480px;
  overflow: hidden;
  position: relative;
}

.visual-panel::before {
  animation: grid-drift 18s linear infinite;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(120deg, black, transparent 76%);
  position: absolute;
}

.texture {
  animation: soft-tilt 7s ease-in-out infinite;
  aspect-ratio: 1;
  background:
    repeating-linear-gradient(90deg, rgba(2, 220, 231, 0.18) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  bottom: 11%;
  left: 10%;
  opacity: 0.72;
  position: absolute;
  transform: rotate(-8deg);
  width: min(54%, 340px);
}

.receipt-float {
  animation: float-note 5.4s ease-in-out infinite;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 22px;
  position: absolute;
  right: 12%;
  top: 18%;
  width: min(48%, 260px);
}

.receipt-float span {
  background: rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  display: block;
  height: 10px;
}

.receipt-float span:nth-child(2) {
  width: 72%;
}

.receipt-float span:nth-child(3) {
  background: rgba(255, 255, 255, 0.44);
  width: 46%;
}

.brand-strip {
  animation: about-hover 7.2s ease-in-out infinite;
  align-content: center;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 190, 205, 0.12);
  display: grid;
  gap: 4px;
  justify-items: center;
  left: 32px;
  padding: 12px 14px;
  position: absolute;
  right: 32px;
  top: 30px;
  z-index: 3;
}

.brand-name {
  color: rgba(5, 5, 5, 0.88);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2.35vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  text-shadow: 0 10px 26px rgba(2, 220, 231, 0.18);
}

.brand-subtitle {
  color: rgba(5, 5, 5, 0.52);
  display: block;
  font-size: 0.54rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.payment-panel {
  align-content: center;
  background: var(--panel);
  border-radius: 0 8px 8px 0;
  display: grid;
  gap: 13px;
  padding: clamp(20px, 3.2vw, 32px);
}

.amount-block {
  display: grid;
  gap: 8px;
}

.kicker,
.about-label,
.about-block p,
.field span,
.summary span {
  color: var(--muted);
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 4.8rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
  transform-origin: left center;
}

h1.amount-pop {
  animation: amount-pop 360ms cubic-bezier(0.2, 0.9, 0.25, 1.35);
}

.about-block {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.visual-panel .about-block {
  animation: about-hover 6.4s ease-in-out infinite;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 50px rgba(0, 190, 205, 0.1);
  left: 32px;
  max-width: 340px;
  position: absolute;
  right: 32px;
  top: 128px;
  z-index: 2;
}

.about-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.about-block p {
  font-size: 0.94rem;
  line-height: 1.5;
  margin: 0;
}

.visual-panel .about-block p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.visual-panel .about-label,
.visual-panel .about-block p {
  color: rgba(255, 255, 255, 0.84);
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-points span {
  background: rgba(102, 123, 88, 0.1);
  border: 1px solid rgba(102, 123, 88, 0.18);
  border-radius: 999px;
  color: #4e6045;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1;
  padding: 8px 10px;
  transition: background 160ms ease, transform 160ms ease;
}

.about-points span:hover {
  transform: translateY(-2px);
}

.visual-panel .about-points span {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(2, 220, 231, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

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

.field span,
.frequency-block > span,
.summary span {
  font-size: 0.82rem;
}

input {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 0 15px;
  width: 100%;
}

input:focus {
  border-color: rgba(2, 220, 231, 0.68);
  box-shadow: 0 0 0 4px rgba(2, 220, 231, 0.14);
}

.summary {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 12px 0;
}

.summary div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.summary div:last-child {
  margin-top: 4px;
}

.summary strong {
  font-weight: 650;
}

.amount-choices,
.frequency-options,
.payment-methods {
  display: grid;
  gap: 8px;
}

.amount-choices {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 9px;
}

.payment-methods {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.frequency-block {
  display: grid;
  gap: 8px;
}

.frequency-block > span {
  color: var(--muted);
}

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

.choice-bubble,
.frequency-button,
.method-tab {
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 650;
  justify-content: center;
  min-height: 38px;
  overflow: visible;
  padding: 0 12px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-bubble:hover,
.frequency-button:hover,
.method-tab:hover {
  transform: translateY(-2px);
}

.choice-bubble.is-tapping,
.frequency-button.is-tapping,
.method-tab.is-tapping,
.apple-pay-button.is-tapping,
.payment-submit-button.is-tapping {
  animation: tap-squish 260ms ease;
}

.choice-popular {
  display: grid;
  gap: 1px;
  line-height: 1;
  padding: 6px 8px;
}

.choice-popular::before {
  animation: badge-bounce 2.6s ease-in-out infinite;
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(102, 123, 88, 0.22);
  color: #fff;
  content: "Most popular";
  font-size: 0.58rem;
  font-weight: 800;
  left: 50%;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 7px;
  position: absolute;
  text-transform: uppercase;
  top: -13px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.choice-popular small {
  display: none;
}

.choice-bubble.is-selected,
.frequency-button.is-selected,
.method-tab.is-selected {
  background: rgba(5, 5, 5, 0.86);
  border-color: rgba(2, 220, 231, 0.48);
  color: #fff;
  box-shadow: 0 10px 22px rgba(2, 220, 231, 0.16);
}

.choice-popular.is-selected::before {
  background: rgba(2, 190, 202, 0.92);
  box-shadow: 0 10px 22px rgba(2, 220, 231, 0.22);
}

.payment-methods {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.frequency-options {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.frequency-button {
  background: transparent;
  border-color: transparent;
  min-height: 34px;
}

.method-tab {
  background: transparent;
  border-color: transparent;
  min-height: 34px;
}

.payment-details {
  animation: panel-in 260ms ease both;
  display: grid;
  gap: 10px;
}

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

.is-hidden {
  display: none;
}

.apple-pay-button,
.payment-submit-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 650;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  width: 100%;
}

.apple-pay-button {
  background: #050505;
  color: #fff;
  font-size: 1.05rem;
  margin-top: 2px;
  box-shadow: inset 0 0 0 1px rgba(2, 220, 231, 0.18);
}

.payment-submit-button {
  background: rgba(5, 5, 5, 0.86);
  box-shadow: inset 0 0 0 1px rgba(2, 220, 231, 0.2);
  color: #fff;
  font-size: 1rem;
  margin-top: 2px;
}

.apple-pay-button:hover,
.payment-submit-button:hover,
.method-tab:hover {
  box-shadow: 0 14px 28px rgba(2, 220, 231, 0.14);
  transform: translateY(-1px);
}

@keyframes card-arrive {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 44px 44px, 44px 44px;
  }
}

@keyframes soft-tilt {
  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

@keyframes float-note {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(9px) rotate(1deg);
  }
}

@keyframes about-hover {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes amount-pop {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.045);
  }
}

@keyframes badge-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}

@keyframes tap-squish {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(0.96);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes equipment-drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 760px) {
  .sports-backdrop {
    opacity: 0.58;
  }

  .equipment-ball {
    height: 96px;
    left: -24px;
    top: 38px;
  }

  .equipment-bat {
    height: 122px;
    right: -30px;
    top: 72px;
  }

  .equipment-football,
  .equipment-racket {
    display: none;
  }

  .equipment-whistle {
    height: 88px;
    left: 64%;
    top: 22px;
  }

  .equipment-cone {
    bottom: 18px;
    height: 96px;
    left: 8%;
  }

  .page-shell {
    align-items: stretch;
    padding: 10px;
  }

  .checkout {
    border-radius: 8px;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .checkout::before {
    inset: -14px;
  }

  .visual-panel {
    border-radius: 8px 8px 0 0;
    min-height: 360px;
  }

  .payment-panel {
    border-radius: 0 0 8px 8px;
  }

  .brand-strip {
    left: 18px;
    padding: 13px 12px;
    right: 18px;
    top: 18px;
  }

  .brand-name {
    font-size: clamp(1.26rem, 7vw, 1.75rem);
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .visual-panel .about-block {
    left: 18px;
    max-width: none;
    right: 18px;
    top: 98px;
  }

  .payment-panel {
    gap: 13px;
    padding: 22px 18px 24px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .receipt-float {
    right: 24px;
    top: 28px;
    width: 210px;
  }

  .texture {
    bottom: -24px;
    left: 22px;
    width: 210px;
  }
}

@media (max-width: 520px) {
  .sports-backdrop {
    opacity: 0.44;
  }

  .page-shell {
    min-height: auto;
    padding: 0;
  }

  body {
    min-height: auto;
  }

  .checkout {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  .checkout::before {
    border-radius: 0;
    inset: 0;
  }

  .visual-panel {
    border-radius: 0;
    min-height: 390px;
  }

  .payment-panel {
    border-radius: 0;
  }

  .brand-strip {
    left: 14px;
    right: 14px;
    top: 14px;
  }

  .visual-panel .about-block {
    left: 14px;
    right: 14px;
    top: 94px;
  }

  .visual-panel .about-block p {
    font-size: 0.86rem;
  }

  .about-points {
    gap: 6px;
  }

  .about-points span {
    font-size: 0.72rem;
    padding: 7px 9px;
  }

  .payment-panel {
    padding: 22px 16px 28px;
  }

  .amount-choices {
    gap: 10px 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 10px;
  }

  .choice-bubble {
    min-height: 42px;
  }

  .frequency-options,
  .payment-methods {
    gap: 4px;
  }

  .frequency-button,
  .method-tab {
    font-size: 0.82rem;
    padding: 0 8px;
  }

  .inline-fields {
    grid-template-columns: 1fr;
  }

  input {
    min-height: 48px;
  }
}
