:root {
  color-scheme: dark;
  --bg: #050816;
  --bg-2: #09111f;
  --primary: #dfff4f;
  --accent: #b6ff00;
  --glow: rgba(223,255,79,.35);
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.13);
  --line: rgba(255,255,255,.16);
  --text: #f8fbff;
  --muted: rgba(248,251,255,.72);
  --soft: rgba(248,251,255,.5);
  --max: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "SF Pro Display", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 12%, rgba(223,255,79,.15), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(97,172,255,.12), transparent 26rem),
    linear-gradient(145deg, #050816 0%, #09111f 54%, #03050c 100%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img, svg { display: block; max-width: 100%; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.ambient span {
  position: absolute;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(46px);
  mix-blend-mode: screen;
}

.ambient span:nth-child(1) {
  left: -8rem;
  top: 8rem;
  background: radial-gradient(circle, rgba(223,255,79,.22), transparent 68%);
  animation: ambientA 18s var(--ease) infinite alternate;
}

.ambient span:nth-child(2) {
  right: -10rem;
  top: 16rem;
  background: radial-gradient(circle, rgba(92,191,255,.14), transparent 68%);
  animation: ambientB 22s var(--ease) infinite alternate;
}

.ambient span:nth-child(3) {
  left: 30%;
  bottom: -18rem;
  background: radial-gradient(circle, rgba(182,255,0,.16), transparent 70%);
  animation: ambientC 20s var(--ease) infinite alternate;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,8,22,.56);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
}

.brand img {
  width: 40px;
  height: 40px;
  padding: 4px;
  border: 1px solid rgba(223,255,79,.34);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
  box-shadow: 0 0 42px rgba(223,255,79,.18), inset 0 1px 0 rgba(255,255,255,.24);
}

.brand span { font-size: 20px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  transition: .28s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: var(--glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  padding: clamp(54px, 8vw, 96px) 0 72px;
  display: block;
}

.match-night::before {
  content: "";
  position: absolute;
  inset: 8% -18% 2%;
  z-index: -1;
  border-radius: 60px;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    radial-gradient(circle at 28% 18%, rgba(223,255,79,.2), transparent 28rem),
    radial-gradient(circle at 78% 45%, rgba(89,163,255,.15), transparent 30rem),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
  mask-image: radial-gradient(circle at 50% 38%, black, transparent 76%);
  animation: nightBreath 16s var(--ease) infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding-top: 4vh;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid rgba(223,255,79,.34);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(223,255,79,.09);
  box-shadow: 0 0 42px rgba(223,255,79,.15), inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  font-size: 12px;
  font-weight: 950;
}

h1, h2, h3 {
  margin: 0;
  line-height: .98;
  letter-spacing: 0;
}

h1 {
  margin-top: 20px;
  font-size: clamp(78px, 15vw, 176px);
  font-weight: 1000;
  background: linear-gradient(180deg, #fff 0%, #eaffad 45%, #8290a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 70px rgba(223,255,79,.2);
}

h2 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 78px);
  font-weight: 980;
}

h3 {
  font-size: 22px;
  font-weight: 920;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(248,251,255,.77);
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  position: relative;
  min-height: 52px;
  padding: 0 22px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 950;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 22%, rgba(255,255,255,.46), transparent 64%);
  transition: .7s var(--ease);
}

.button:hover {
  transform: translateY(-2px) scale(1.015);
}

.button:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.button.primary {
  color: #07101d;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 20px 70px rgba(223,255,79,.3), inset 0 1px 0 rgba(255,255,255,.6);
}

.button.secondary {
  color: var(--text);
  border-color: rgba(255,255,255,.17);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.match-orbit {
  position: relative;
  min-height: 640px;
  margin-top: -70px;
}

.field-map {
  position: absolute;
  left: 7%;
  right: 4%;
  top: 120px;
  height: 420px;
  border: 1px solid rgba(223,255,79,.18);
  border-radius: 36px;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(circle at 24% 38%, rgba(223,255,79,.15), transparent 20rem),
    radial-gradient(circle at 82% 68%, rgba(91,170,255,.13), transparent 22rem),
    rgba(255,255,255,.035);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 40px 130px rgba(0,0,0,.32);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  transform: rotate(-2deg);
}

.field-line.center {
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(transparent, rgba(255,255,255,.28), transparent);
}

.field-map::before,
.field-map::after {
  content: "";
  position: absolute;
  top: 50%;
  border: 1px solid rgba(255,255,255,.24);
  transform: translateY(-50%);
}

.field-map::before {
  left: 12%;
  width: 28%;
  height: 52%;
  border-radius: 0 999px 999px 0;
}

.field-map::after {
  right: 12%;
  width: 28%;
  height: 52%;
  border-radius: 999px 0 0 999px;
}

.player-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 28px rgba(223,255,79,.7);
  animation: playerPulse 2.8s var(--ease) infinite alternate;
}

.p1 { left: 24%; top: 32%; }
.p2 { left: 38%; top: 58%; animation-delay: .2s; }
.p3 { left: 55%; top: 42%; animation-delay: .4s; }
.p4 { left: 70%; top: 64%; animation-delay: .6s; }
.p5 { left: 80%; top: 28%; animation-delay: .8s; }

.phone-preview {
  position: absolute;
  right: 8%;
  top: 18px;
  width: min(390px, 36vw);
  min-width: 320px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 46px;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.05));
  box-shadow: 0 58px 150px rgba(0,0,0,.56), 0 0 90px rgba(223,255,79,.18), inset 0 1px 0 rgba(255,255,255,.32);
  transform: rotate(2.5deg);
  animation: floatPhone 7s var(--ease) infinite alternate;
}

.phone-preview::before,
.match-ticket::before,
.card::before,
.notice::before,
.page-card::before,
.faq details::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(130deg, rgba(255,255,255,.22), transparent 36%, rgba(223,255,79,.08), transparent 78%);
  opacity: .72;
}

.phone-preview::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 5px;
  left: 50%;
  top: 24px;
  z-index: 4;
  border-radius: 999px;
  background: rgba(2,5,12,.72);
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  min-height: 612px;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 22% 5%, rgba(223,255,79,.29), transparent 17rem),
    radial-gradient(circle at 88% 22%, rgba(91,170,255,.18), transparent 16rem),
    linear-gradient(180deg, rgba(20,30,52,.98), rgba(5,8,22,.98));
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .36;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

.app-top,
.app-card {
  position: relative;
  z-index: 2;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 22px 12px;
}

.avatar-dot {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8feaff);
  box-shadow: 0 0 34px rgba(223,255,79,.32);
}

.app-card {
  margin: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 60px rgba(0,0,0,.26);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.match-visual {
  position: relative;
  height: 178px;
  border-radius: 22px;
  background:
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(135deg, rgba(223,255,79,.34), rgba(91,170,255,.18), rgba(255,255,255,.04));
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 48px rgba(223,255,79,.12);
}

.match-visual::before,
.match-visual::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255,255,255,.42);
}

.match-visual::before {
  inset: 18px;
  border-radius: 18px;
  opacity: .48;
}

.match-visual::after {
  inset: 34px 56px;
  border-radius: 50%;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.meta {
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.meta strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.match-ticket {
  position: absolute;
  z-index: 4;
  width: 250px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.045));
  box-shadow: 0 26px 90px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.match-ticket strong,
.match-ticket span {
  position: relative;
  display: block;
}

.match-ticket strong { margin-bottom: 6px; font-size: 15px; }
.match-ticket span { color: var(--soft); font-size: 13px; }
.ticket-a { left: 2%; top: 240px; transform: rotate(-5deg); }
.ticket-b { left: 30%; bottom: 36px; transform: rotate(3deg); }
.ticket-c { right: 2%; bottom: 120px; transform: rotate(-2deg); }

.section {
  padding: 96px 0;
}

.story-section {
  padding-top: 130px;
}

.section-header {
  max-width: 820px;
  margin-bottom: 40px;
}

.story-intro {
  margin-left: auto;
  margin-right: 7%;
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
}

.story-board {
  display: grid;
  grid-template-columns: .8fr 1.15fr .9fr;
  grid-auto-rows: minmax(170px, auto);
  gap: 18px;
  align-items: stretch;
}

.card,
.notice,
.page-card,
.faq details {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
  box-shadow: 0 24px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.story-card {
  min-height: 220px;
  padding: 26px;
  border-radius: 28px;
  transition: transform .34s var(--ease), border-color .34s var(--ease), box-shadow .34s var(--ease);
}

.story-card:hover,
.notice:hover,
.page-card:hover,
.faq details:hover {
  transform: translateY(-5px);
  border-color: rgba(223,255,79,.28);
  box-shadow: 0 34px 110px rgba(0,0,0,.36), 0 0 54px rgba(223,255,79,.12), inset 0 1px 0 rgba(255,255,255,.24);
}

.large-card {
  grid-column: 1 / span 2;
  grid-row: span 2;
  min-height: 380px;
  padding: 34px;
}

.map-card { margin-top: 70px; }
.roster-card { grid-column: 2 / span 2; }
.profile-card { transform: translateY(-46px); }
.trust-card { min-height: 260px; }
.delete-card { transform: translateY(38px); }

.sport-line,
.mini-map,
.roster-strip,
.level-ring,
.trust-pulse,
.data-thread {
  position: relative;
  display: block;
  margin-bottom: 24px;
}

.sport-line {
  height: 170px;
  border-radius: 24px;
  background:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px),
    radial-gradient(circle at 28% 50%, rgba(223,255,79,.32), transparent 9rem),
    rgba(255,255,255,.05);
  background-size: 36px 36px, 36px 36px, auto, auto;
}

.sport-line::before,
.sport-line::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  width: 30%;
  border: 2px solid rgba(255,255,255,.34);
}

.sport-line::before { left: 22px; border-radius: 0 999px 999px 0; }
.sport-line::after { right: 22px; border-radius: 999px 0 0 999px; }

.mini-map {
  height: 94px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 48%, var(--primary) 0 5px, transparent 6px),
    radial-gradient(circle at 72% 38%, rgba(143,234,255,.9) 0 4px, transparent 5px),
    linear-gradient(135deg, rgba(223,255,79,.2), rgba(255,255,255,.04));
}

.roster-strip {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.roster-strip i {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(223,255,79,.9), rgba(143,234,255,.55));
  box-shadow: 0 0 34px rgba(223,255,79,.18);
}

.level-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 72%, rgba(255,255,255,.12) 72%);
  box-shadow: 0 0 44px rgba(223,255,79,.18);
}

.level-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #0a1120;
}

.trust-pulse {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 1px solid rgba(223,255,79,.35);
  box-shadow: 0 0 0 18px rgba(223,255,79,.05), 0 0 42px rgba(223,255,79,.18);
}

.data-thread {
  height: 72px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 18% 50%, var(--primary) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.7) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 50%, rgba(143,234,255,.8) 0 5px, transparent 6px),
    linear-gradient(90deg, transparent 17%, rgba(255,255,255,.24) 18% 82%, transparent 83%);
}

.card p,
.legal-body p,
.legal-body li {
  color: var(--muted);
}

.split-band {
  display: grid;
  grid-template-columns: 1.1fr .82fr;
  gap: 18px;
  align-items: end;
}

.notice {
  min-height: 230px;
  padding: 30px;
  border-radius: 30px;
}

.split-band .notice:nth-child(2) {
  transform: translateY(46px);
}

.legal-hero {
  padding: 86px 0 40px;
}

.legal-body {
  max-width: 900px;
  padding-bottom: 82px;
}

.legal-body section {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.legal-body h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.legal-body h3 { margin-top: 18px; }
.legal-body ul { padding-left: 20px; }

.page-card {
  margin-top: 28px;
  padding: 28px;
  border-radius: 26px;
}

.faq details {
  border-radius: 20px;
  padding: 18px 20px;
}

.faq details + details { margin-top: 12px; }
.faq summary { position: relative; cursor: pointer; font-weight: 900; }

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(5,8,22,.74));
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.footer-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.footer-links a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}

.footer-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.small { color: var(--soft); font-size: 13px; }

/* Public player profile */
.public-profile-page {
  background:
    radial-gradient(circle at 50% 12%, rgba(223,255,79,.12), transparent 26rem),
    radial-gradient(circle at 86% 42%, rgba(78,164,255,.12), transparent 28rem),
    linear-gradient(155deg, #050816, #09111f 56%, #03050c);
}

.profile-stage {
  position: relative;
  width: min(980px, calc(100% - 32px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 72px 0 110px;
}

.profile-field {
  position: absolute;
  inset: 120px -18vw auto;
  height: 580px;
  z-index: -1;
  overflow: hidden;
  border: 1px solid rgba(223,255,79,.13);
  border-radius: 44px;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 22% 52%, rgba(223,255,79,.1), transparent 20rem),
    rgba(255,255,255,.018);
  background-size: 48px 48px, 48px 48px, auto, auto;
  transform: rotate(-2deg);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.profile-field::before,
.profile-field::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 62%;
  border: 1px solid rgba(255,255,255,.16);
  transform: translateY(-50%);
}

.profile-field::before { left: 8%; border-radius: 0 999px 999px 0; }
.profile-field::after { right: 8%; border-radius: 999px 0 0 999px; }

.profile-field i {
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 2;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 26px rgba(223,255,79,.7);
  animation: playerPulse 2.8s var(--ease) infinite alternate;
}

.profile-field i:nth-child(1) { left: 20%; top: 34%; }
.profile-field i:nth-child(2) { left: 42%; top: 67%; animation-delay: .3s; }
.profile-field i:nth-child(3) { right: 32%; top: 27%; animation-delay: .6s; }
.profile-field i:nth-child(4) { right: 18%; top: 62%; animation-delay: .9s; }

.profile-state {
  min-height: 620px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.profile-state[hidden],
.player-profile[hidden] { display: none; }

.profile-loader {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255,255,255,.11);
  border-top-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(223,255,79,.17);
  animation: profileSpin .9s linear infinite;
}

.profile-loading p { color: var(--muted); font-weight: 750; }

.profile-error {
  max-width: 620px;
  margin: 0 auto;
}

.profile-error-code {
  color: var(--primary);
  font-size: 14px;
  font-weight: 950;
}

.profile-error h1 {
  margin: 8px 0 18px;
  font-size: clamp(48px, 8vw, 86px);
}

.profile-error p {
  max-width: 480px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.player-profile {
  position: relative;
  isolation: isolate;
}

.player-identity {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  width: min(780px, 100%);
  margin: 0 auto 42px;
}

.player-avatar-ring {
  --profile-progress: 0deg;
  position: relative;
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) var(--profile-progress), rgba(255,255,255,.09) 0);
  box-shadow: 0 0 72px rgba(223,255,79,.18);
}

.player-avatar-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: #09111f;
}

.player-avatar {
  position: relative;
  width: 146px;
  height: 146px;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: #08101d;
  background: linear-gradient(145deg, var(--primary), #8feaff);
  font-size: 42px;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-level {
  position: absolute;
  left: 50%;
  bottom: -7px;
  z-index: 3;
  min-width: 62px;
  padding: 6px 10px;
  border: 3px solid #09111f;
  border-radius: 999px;
  color: #07101d;
  background: var(--primary);
  text-align: center;
  font-size: 11px;
  font-weight: 1000;
  transform: translateX(-50%);
}

.player-kicker {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.player-name-block h1 {
  margin: 0;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .95;
}

.player-location {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
}

.player-location strong { color: var(--text); }

.player-sports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.player-sports span {
  padding: 7px 10px;
  border: 1px solid rgba(223,255,79,.23);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(223,255,79,.075);
  font-size: 10px;
  font-weight: 950;
}

.profile-scoreboard {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
  box-shadow: 0 28px 100px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.2);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.profile-scoreboard div {
  position: relative;
  padding: 24px 12px;
  text-align: center;
}

.profile-scoreboard div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24%;
  bottom: 24%;
  width: 1px;
  background: rgba(255,255,255,.1);
}

.profile-scoreboard strong,
.profile-scoreboard span { display: block; }
.profile-scoreboard strong { font-size: 25px; }
.profile-scoreboard span { color: var(--soft); font-size: 11px; font-weight: 800; }

.profile-content-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.xp-panel,
.sport-performance,
.profile-signature {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow: 0 24px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.19);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.xp-panel {
  padding: 26px;
  border-radius: 28px;
}

.xp-panel-copy,
.performance-heading,
.reliability-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.xp-panel-copy span,
.performance-heading span,
.reliability-row span { color: var(--soft); font-size: 12px; font-weight: 800; }
.xp-panel-copy strong { font-size: 14px; }
.xp-panel-copy b { color: var(--primary); }

.xp-track {
  height: 10px;
  margin: 22px 0 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.xp-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #8feaff);
  box-shadow: 0 0 22px rgba(223,255,79,.44);
  transition: width .9s var(--ease);
}

.reliability-row {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.reliability-row strong { color: var(--primary); }

.sport-performance {
  padding: 26px;
  border-radius: 28px;
}

.performance-heading { margin-bottom: 18px; }
.performance-heading strong { color: var(--primary); font-size: 12px; }

.sport-stat-list {
  display: grid;
  gap: 9px;
}

.sport-stat-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 15px 16px 15px 21px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.05);
}

.sport-stat-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(223,255,79,.5);
}

.sport-stat-row span { color: var(--soft); font-size: 12px; }
.sport-stat-row b { color: var(--primary); font-size: 13px; }
.sport-padel::before { background: #8feaff; }
.sport-basketball::before { background: #ffb24d; }
.sport-urban::before { background: #ff7cc8; }

.empty-sport-stats {
  margin: 0;
  padding: 22px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  text-align: center;
  font-size: 13px;
}

.profile-signature {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border-radius: 28px;
}

.profile-signature img {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  object-fit: cover;
}

.profile-signature strong,
.profile-signature span { display: block; }
.profile-signature span { color: var(--soft); font-size: 12px; }

@keyframes profileSpin { to { transform: rotate(360deg); } }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero [data-reveal] {
  opacity: 1;
  transform: none;
}

@keyframes ambientA { to { transform: translate3d(6rem, 3rem, 0) scale(1.12); } }
@keyframes ambientB { to { transform: translate3d(-5rem, 5rem, 0) scale(1.1); } }
@keyframes ambientC { to { transform: translate3d(3rem, -5rem, 0) scale(1.14); } }
@keyframes nightBreath { to { transform: translateY(-18px) scale(1.025); opacity: .92; } }
@keyframes playerPulse { to { transform: scale(1.35); opacity: .72; } }
@keyframes floatPhone { to { transform: rotate(-1.5deg) translateY(-16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .match-orbit {
    min-height: 980px;
    margin-top: 24px;
  }

  .field-map {
    left: 0;
    right: 0;
    top: 80px;
  }

  .phone-preview {
    top: 0;
    right: 50%;
    width: min(390px, 88vw);
    min-width: 0;
    transform: translateX(50%) rotate(1deg);
  }

  .ticket-a { left: 0; top: 620px; }
  .ticket-b { left: auto; right: 0; bottom: 120px; }
  .ticket-c { left: 18%; right: auto; bottom: 16px; }

  .story-board {
    grid-template-columns: 1fr 1fr;
  }

  .large-card,
  .roster-card {
    grid-column: 1 / -1;
  }

  .profile-card,
  .delete-card,
  .split-band .notice:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(9,17,31,.86);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 30px 90px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.16);
  }

  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 10px; }

  .split-band,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .profile-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .main, .nav, .footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    min-height: auto;
    padding: 42px 0 54px;
  }

  h1 { font-size: clamp(70px, 21vw, 102px); }

  .hero-actions {
    flex-direction: column;
  }

  .button { width: 100%; }

  .match-orbit {
    min-height: 1120px;
  }

  .field-map {
    top: 120px;
    height: 520px;
  }

  .phone-preview {
    width: 100%;
    border-radius: 38px;
  }

  .phone-screen {
    min-height: 520px;
    border-radius: 30px;
  }

  .match-visual { height: 150px; }

  .match-ticket {
    width: min(100%, 340px);
  }

  .ticket-a { top: 650px; }
  .ticket-b { top: 790px; bottom: auto; }
  .ticket-c { left: 0; top: 930px; bottom: auto; }

  .story-section {
    padding-top: 64px;
  }

  .story-intro {
    margin-right: 0;
  }

  .story-board {
    grid-template-columns: 1fr;
  }

  .large-card {
    min-height: 340px;
  }

  .section {
    padding: 66px 0;
  }

  .profile-stage {
    width: min(100% - 24px, 980px);
    padding: 48px 0 76px;
  }

  .player-identity {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
    text-align: center;
  }

  .player-avatar-ring {
    width: 158px;
    height: 158px;
  }

  .player-avatar {
    width: 130px;
    height: 130px;
  }

  .player-name-block h1 {
    font-size: clamp(48px, 16vw, 70px);
  }

  .player-location,
  .player-sports {
    justify-content: center;
  }

  .profile-scoreboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-scoreboard div:nth-child(3)::before { display: none; }
  .profile-scoreboard div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }

  .sport-stat-row {
    grid-template-columns: 1fr auto;
  }

  .sport-stat-row span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .profile-signature {
    grid-template-columns: 52px 1fr;
  }

  .profile-signature .button {
    grid-column: 1 / -1;
  }
}
