:root {
  --green: #079244;
  --green-dark: #057235;
  --ink: #0b1020;
  --muted: #667085;
  --line: #dfe5ef;
  --panel: #ffffff;
  --soft: #f5f8fc;
  --blue: #315cf6;
  --orange: #ff8b1a;
  --red: #f33d5b;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(7, 146, 68, 0.1), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(49, 92, 246, 0.08), transparent 25rem),
    linear-gradient(180deg, #ffffff 0%, #f5f9fc 54%, #eef5f3 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 3.6rem;
  padding: 0 2.7rem;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(210, 218, 230, 0.75);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-ball {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #1abd66, #04783a);
  box-shadow: 0 0.5rem 1.5rem rgba(7, 146, 68, 0.22);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 4rem);
  font-weight: 750;
}

.nav a {
  position: relative;
  padding: 1.15rem 0;
}

.nav .active {
  color: var(--green);
}

.nav .active::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 0.2rem;
  content: "";
  border-radius: 999px;
  background: var(--green);
}

.try-button,
.primary-action,
.generate-button {
  border: 0;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  background: linear-gradient(180deg, #0daa52, #057c39);
  box-shadow: 0 0.7rem 1.4rem rgba(7, 146, 68, 0.24);
}

.try-button {
  padding: 0.58rem 1.15rem;
  border-radius: 0.65rem;
}

main {
  flex: 1;
  width: min(120rem, calc(100% - 5.4rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.8rem 0 1rem;
}

.hero-copy {
  max-width: 43rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-weight: 850;
}

.hero h1 {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 span {
  position: relative;
  color: var(--green);
  white-space: nowrap;
}

.hero h1 span::after {
  position: absolute;
  right: 0;
  bottom: -0.18em;
  left: 0;
  height: 0.18em;
  content: "";
  border: solid var(--green);
  border-width: 0 0 0.12em;
  border-radius: 50%;
}

.hero-text {
  max-width: 43rem;
  margin: 1.6rem 0 1.9rem;
  color: #596173;
  font-size: 1.2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.8rem;
  min-height: 3.4rem;
  padding: 0 1.55rem;
  border-radius: 0.75rem;
}

.ghost-action {
  color: #1d2939;
  font-weight: 800;
  cursor: pointer;
  background: #fff;
  border: 1px solid #cbd5e1;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.stadium {
  position: relative;
  width: min(100%, 39rem);
  min-height: 23rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  background:
    linear-gradient(125deg, rgba(4, 15, 45, 0.42), rgba(4, 15, 45, 0.9)),
    radial-gradient(circle at 35% 72%, rgba(255, 255, 255, 0.8), transparent 0.2rem),
    linear-gradient(145deg, #132f65, #06142e 48%, #0a442b);
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.2);
}

.stadium::before {
  position: absolute;
  top: 4.6rem;
  left: 3.8rem;
  width: 12rem;
  height: 17rem;
  content: "";
  background:
    radial-gradient(circle at 50% 16%, #f2c29c 0 1.3rem, transparent 1.35rem),
    linear-gradient(90deg, transparent 0 2.2rem, #193c91 2.2rem 9.8rem, transparent 9.8rem),
    linear-gradient(120deg, transparent 0 4.1rem, #ffffff 4.1rem 4.6rem, transparent 4.65rem),
    linear-gradient(62deg, transparent 0 6.2rem, #193c91 6.2rem 7.2rem, transparent 7.25rem),
    linear-gradient(105deg, transparent 0 8.2rem, #111827 8.2rem 9rem, transparent 9.05rem);
  filter: drop-shadow(0 1.2rem 1.8rem rgba(0, 0, 0, 0.35));
}

.stadium::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  left: -4rem;
  height: 9rem;
  content: "";
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 0.08rem, transparent 0.08rem 5rem),
    linear-gradient(180deg, #19a15a, #066431);
  transform: perspective(16rem) rotateX(48deg);
}

.floodlight {
  position: absolute;
  top: 4.5rem;
  width: 12rem;
  height: 8rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), transparent 58%);
  opacity: 0.7;
}

.floodlight.one {
  left: -2rem;
}

.floodlight.two {
  right: -2rem;
}

.pitch-line {
  position: absolute;
  right: 3rem;
  bottom: 3.2rem;
  left: 3rem;
  height: 4.6rem;
  border: 0.14rem solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: perspective(18rem) rotateX(64deg);
}

.player-card {
  position: absolute;
  top: 4rem;
  right: 2.3rem;
  width: min(50%, 19.5rem);
  padding: 1.2rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.9rem;
  background: rgba(4, 15, 45, 0.78);
  backdrop-filter: blur(10px);
}

.ai-badge {
  display: inline-grid;
  width: 2.7rem;
  height: 2.25rem;
  margin-right: 0.5rem;
  place-items: center;
  border-radius: 0.42rem;
  background: var(--green);
  font-size: 1.35rem;
  font-weight: 900;
}

.player-card p {
  margin: 1rem 0 0.7rem;
}

.progress {
  height: 0.42rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.progress span {
  display: block;
  width: 85%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #13d865, #91f0ba);
}

.player-card ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  color: #dce7ff;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 35.5rem;
  gap: 2.4rem;
  align-items: start;
  padding-top: 0.6rem;
  padding-bottom: 4rem;
}

.main-column {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.panel,
.result-card {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, 0.07);
}

.generator {
  padding: 1.35rem 1.7rem 0.85rem;
}

.section-title,
.side-title,
.card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title span {
  width: 0.25rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--green);
}

h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

.section-title h2,
.side-title h2,
.capability h2 {
  font-size: 1.35rem;
}

.match-form {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr) minmax(13rem, 0.85fr) auto;
  gap: 1rem;
  align-items: end;
  margin-top: 1.2rem;
}

.match-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.match-form input,
.match-form select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  border: 1px solid #d4dce8;
  border-radius: 0.75rem;
  background: #fff;
  outline: none;
}

.match-form input:focus,
.match-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.22rem rgba(7, 146, 68, 0.12);
}

.versus {
  padding-bottom: 0.84rem;
  font-size: 1.35rem;
}

.generate-button {
  min-height: 3.25rem;
  padding: 0 1.35rem;
  white-space: nowrap;
  border-radius: 0.72rem;
}

.helper {
  margin: 0.8rem 0 0;
  color: #8a94a6;
  text-align: center;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.result-card {
  min-height: 9.3rem;
  padding: 1.1rem 1.35rem;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.result-card:hover {
  border-color: rgba(7, 146, 68, 0.25);
  transform: translateY(-0.1rem);
  box-shadow: 0 1.15rem 2.5rem rgba(15, 23, 42, 0.09);
}

.card-head {
  margin-bottom: 0.7rem;
}

.number {
  display: inline-grid;
  min-width: 2.25rem;
  height: 1.7rem;
  place-items: center;
  color: #fff;
  font-weight: 900;
  border-radius: 0.35rem;
  background: var(--green);
}

.card-head h3 {
  flex: 1;
  font-size: 1.14rem;
}

.icon {
  color: var(--green);
}

.result-card ul {
  display: grid;
  gap: 0.38rem;
  padding-left: 1.15rem;
  margin: 0;
  color: #344054;
  line-height: 1.55;
}

.players {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.player {
  min-width: 0;
  padding: 0.85rem;
  border-radius: 0.65rem;
  background: linear-gradient(180deg, #f4f7fb, #eef2f7);
}

.avatar,
.player-photo {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.45rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #193c91, #101828);
  color: #fff;
  font-weight: 900;
}

.player-photo {
  display: block;
  object-fit: cover;
  object-position: center top;
  background: #d8dee9;
}

.player strong,
.player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player small {
  margin-top: 0.12rem;
  color: var(--muted);
}

.side-column {
  display: grid;
  gap: 1.6rem;
  min-width: 0;
}

.side-column .panel {
  padding: 1.6rem;
}

.schedule-panel {
  border-color: rgba(7, 146, 68, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.95)),
    #fff;
}

.side-title {
  justify-content: space-between;
  margin-bottom: 1rem;
}

.side-title button {
  color: #475467;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.match-list {
  display: grid;
  gap: 0.7rem;
}

.pager {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}

.pager button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: #0b1020;
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid #d4dce8;
  border-radius: 0.6rem;
  background: #fff;
}

.pager button:not(:disabled):hover {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.pager button:disabled {
  color: #a5adba;
  cursor: not-allowed;
  background: #f2f5f9;
}

.pager span {
  color: #667085;
  font-weight: 850;
  text-align: center;
}

.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.25rem 0.8rem;
  align-items: center;
  min-height: 7.8rem;
  padding: 0.9rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 0.65rem 1.3rem rgba(15, 23, 42, 0.05);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.match.active {
  border-color: rgba(7, 146, 68, 0.45);
  box-shadow: 0 0 0 0.18rem rgba(7, 146, 68, 0.08);
}

.match:hover {
  transform: translateY(-0.08rem);
  box-shadow: 0 0.85rem 1.5rem rgba(15, 23, 42, 0.08);
}

.tag {
  justify-self: start;
  padding: 0.25rem 0.55rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  border-radius: 0.35rem;
}

.red {
  background: var(--red);
}

.orange {
  background: var(--orange);
}

.green {
  background: #12a150;
}

.blue {
  background: var(--blue);
}

.time {
  grid-column: 2 / 4;
  color: #667085;
}

.flag-img {
  width: 3.1rem;
  height: 2.15rem;
  justify-self: center;
  object-fit: cover;
  border-radius: 0.25rem;
  box-shadow: 0 0.3rem 0.7rem rgba(15, 23, 42, 0.16);
}

.match b {
  grid-column: 2;
  grid-row: 2 / 4;
  font-size: 1.15rem;
}

.capability h2 {
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.feature-grid article {
  min-height: 8.8rem;
  padding: 1rem 0.8rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff, #eef8f3);
}

.feature-grid article:nth-child(2) {
  background: linear-gradient(180deg, #ffffff, #eef4ff);
}

.feature-grid article:nth-child(3) {
  background: linear-gradient(180deg, #ffffff, #f7f0ff);
}

.feature-grid article:nth-child(4) {
  background: linear-gradient(180deg, #ffffff, #fff3e8);
}

.feature-grid span {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 2rem;
}

.feature-grid strong {
  display: block;
  margin-bottom: 0.35rem;
}

.feature-grid p {
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
  margin-top: auto;
  padding: 1.35rem 2.7rem;
  color: #667085;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.site-footer > div {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-footer a:hover {
  color: var(--green);
}

@media (max-width: 1100px) {
  .workspace,
  .hero {
    grid-template-columns: 1fr;
  }

  .side-column {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }

  .nav {
    display: none;
  }

  main {
    width: min(100% - 2rem, 72rem);
  }

  .hero {
    gap: 2rem;
    padding-top: 1.5rem;
  }

  .match-form,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .versus {
    padding: 0;
    text-align: center;
  }

  .players,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .player-card {
    width: 56%;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.2rem;
  }

  .brand-ball {
    width: 2.2rem;
    height: 2.2rem;
  }

  .try-button {
    padding: 0.65rem 0.8rem;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .stadium {
    min-height: 20rem;
  }

  .player-card {
    top: 2rem;
    right: 1rem;
    width: calc(100% - 2rem);
  }

  .players,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 1rem;
  }
}
