:root {
  --bg: #030a12;
  --pitch: #0a1f14;
  --panel: rgba(12, 28, 22, 0.85);
  --border: rgba(52, 211, 153, 0.18);
  --text: #f0fdf4;
  --muted: #86a89a;
  --gold: #fbbf24;
  --green: #22c55e;
  --cyan: #22d3ee;
  --fire: #f97316;
  --violet: #a78bfa;
  --radius: 16px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

button {
  font-family: inherit;
  cursor: pointer;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(34, 197, 94, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(251, 191, 36, 0.08), transparent 50%),
    linear-gradient(180deg, #030a12 0%, #051510 100%);
  pointer-events: none;
  z-index: -1;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #67e8f9; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.squad-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(3, 10, 18, 0.88);
  border-bottom: 1px solid var(--border);
}
.squad-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #15803d);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.brand span {
  background: linear-gradient(90deg, var(--green), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--green), #16a34a);
  color: #052e16;
  box-shadow: 0 8px 28px rgba(34, 197, 94, 0.25);
}
.btn-outline {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: rgba(34,197,94,0.45); color: var(--green); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px dashed rgba(134,168,154,0.35);
  cursor: not-allowed;
  opacity: 0.85;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.coming-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.chip strong { color: var(--gold); }

/* Pitch preview */
.pitch-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto 48px;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255,255,255,0.04) 49px, rgba(255,255,255,0.04) 50px),
    linear-gradient(180deg, #0d2818, #0a1f12);
  border: 2px solid rgba(34, 197, 94, 0.25);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), inset 0 0 80px rgba(34,197,94,0.06);
  overflow: hidden;
}
.pitch-wrap::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  pointer-events: none;
}
.pitch-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 50%;
}
.slot-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 8% 6%;
  gap: 8px;
}
.player-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px dashed rgba(34,197,94,0.35);
  font-size: 0.65rem;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s;
}
.player-slot.filled {
  border-style: solid;
  border-color: rgba(251,191,36,0.5);
  background: rgba(251,191,36,0.08);
  color: var(--gold);
  font-weight: 700;
}
.player-slot .pos { font-size: 0.55rem; opacity: 0.7; margin-top: 2px; }
.pitch-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3,10,18,0.55);
  backdrop-filter: blur(2px);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
}

/* Sections */
section { padding: 48px 0; }
.section-head {
  text-align: center;
  margin-bottom: 32px;
}
.section-head h2 { font-size: 1.75rem; margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 0.95rem; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.panel h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel p, .panel li { color: var(--muted); font-size: 0.88rem; }
.panel ul { padding-left: 18px; }
.panel li { margin-bottom: 6px; }
.panel .highlight { color: var(--gold); font-weight: 700; }

/* Flow steps */
.flow {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}
.flow-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
  padding: 16px 10px;
}
.flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-weight: 700;
}
.flow-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 1px solid var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--green);
}
.flow-step strong { display: block; font-size: 0.88rem; margin-bottom: 4px; }
.flow-step span { font-size: 0.75rem; color: var(--muted); }

/* Leaderboard pie */
.prize-bars { display: flex; flex-direction: column; gap: 10px; }
.prize-row {
  display: grid;
  grid-template-columns: 100px 1fr 48px;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}
.prize-row label { color: var(--muted); }
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}
.prize-row .pct { color: var(--gold); font-weight: 700; text-align: right; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.star-card {
  aspect-ratio: 3/4;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(34,197,94,0.08), rgba(0,0,0,0.65));
  border: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.star-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251,191,36,0.45);
}
.star-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.star-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  z-index: 2;
}
.star-meta {
  position: relative;
  z-index: 1;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(3,10,18,0.92) 35%, rgba(3,10,18,0.98));
}
.star-card .rating {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(0,0,0,0.55);
  padding: 2px 6px;
  border-radius: 6px;
}
.star-card .flag { display: none; }
.star-card .name { font-weight: 800; font-size: 0.85rem; line-height: 1.2; }
.star-card .role { font-size: 0.68rem; color: var(--muted); margin-top: 4px; }
.star-id {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(0,0,0,0.55);
  padding: 2px 6px;
  border-radius: 6px;
}
.card-pos-tabs { margin-bottom: 16px; }
.star-toolbar { margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.star-pos-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.star-pos-tabs .star-pos-btn {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 38px;
  white-space: nowrap;
  box-shadow: none;
}
.star-pos-tabs .star-pos-btn.btn-outline {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--text);
}
.star-pos-tabs .star-pos-btn.btn-outline:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.55);
  color: var(--green);
  transform: translateY(-1px);
}
.star-pos-tabs .star-pos-btn.active,
.star-pos-tabs .star-pos-btn.btn-primary {
  background: linear-gradient(135deg, var(--green), #16a34a);
  color: #052e16;
  border: none;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}
.star-pos-tabs .star-pos-btn.active:hover,
.star-pos-tabs .star-pos-btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.38);
}
.star-pos-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
}
.star-pos-tabs .star-pos-btn.btn-outline .star-pos-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.star-pos-tabs .star-pos-btn.active .star-pos-count,
.star-pos-tabs .star-pos-btn.btn-primary .star-pos-count {
  background: rgba(5, 46, 22, 0.22);
  color: #052e16;
}
.star-search {
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font: inherit;
}
.star-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.star-q {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}
.star-q:hover { border-color: var(--green); color: var(--green); }

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 640px) { .roadmap { grid-template-columns: 1fr; } }
.road-item {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px dashed rgba(167,139,250,0.35);
  background: rgba(167,139,250,0.06);
  text-align: center;
}
.road-item .icon { font-size: 1.8rem; margin-bottom: 8px; }
.road-item h4 { font-size: 0.95rem; margin-bottom: 6px; }
.road-item p { font-size: 0.78rem; color: var(--muted); }

.cta {
  text-align: center;
  padding: 56px 0 72px;
}
.cta h2 { font-size: 1.6rem; margin-bottom: 10px; }
.cta p { color: var(--muted); margin-bottom: 24px; }
.cta-note {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.foot-links { display: flex; justify-content: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
