:root {
  --bg: #050505;
  --panel: #101313;
  --panel-2: #161a1a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f7f4;
  --muted: #a0aba3;
  --green: #63f277;
  --green-deep: #1d6128;
  --green-soft: rgba(99, 242, 119, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(99, 242, 119, 0.12), transparent 28%),
    radial-gradient(circle at 10% 55%, rgba(99, 242, 119, 0.08), transparent 20%),
    radial-gradient(circle at 90% 70%, rgba(99, 242, 119, 0.08), transparent 18%),
    var(--bg);
  min-height: 100vh;
}

body.cursor-active,
body.cursor-active a,
body.cursor-active button,
body.cursor-active input,
body.cursor-active select,
body.cursor-active textarea,
body.cursor-active label {
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

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

.ball-cursor {
  --cursor-x: -100px;
  --cursor-y: -100px;
  --cursor-scale: 0.9;
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(var(--cursor-x), var(--cursor-y)) scale(var(--cursor-scale));
  transition: opacity 180ms ease, filter 180ms ease;
  background:
    radial-gradient(circle at 35% 35%, rgba(141, 255, 164, 0.42), rgba(99, 242, 119, 0.2) 58%, rgba(99, 242, 119, 0.06) 100%);
  box-shadow:
    0 0 0 1px rgba(99, 242, 119, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 0 24px rgba(99, 242, 119, 0.18);
  backdrop-filter: blur(2px);
}

.ball-cursor.is-visible {
  opacity: 1;
}

.ball-cursor.is-hovering {
  --cursor-scale: 1.18;
  filter: drop-shadow(0 0 10px rgba(99, 242, 119, 0.22));
}

.ball-cursor.is-pressing {
  --cursor-scale: 0.92;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  margin-top: 18px;
  background: rgba(10, 12, 11, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  display: block;
  width: 90px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
  background: transparent;
}

.nav a,
.footer a,
.footer p,
.section-heading p,
.hero-copy p,
.profile-card p,
.stat-card p,
.qr-card p,
.cta-card p {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 8px;
  color: var(--text);
  white-space: nowrap;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.nav-badge-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

.nav-badge strong {
  color: #e1b74f;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a,
.login-button,
.nav-button,
.primary-btn,
.ghost-btn,
.store-chip,
.footer a {
  transition: 180ms ease;
}

.nav a,
.footer a {
  text-decoration: none;
}

.nav a:hover,
.footer a:hover {
  color: var(--text);
}

.nav-button,
.primary-btn,
.ghost-btn,
.store-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
}

.login-button,
.nav-button,
.primary-btn {
  color: #061009;
  background: linear-gradient(135deg, #8efe9e, #4ad967);
  box-shadow: 0 14px 28px rgba(78, 230, 102, 0.24);
}

.login-button {
  padding: 12px 18px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font: inherit;
}

.nav-button {
  padding: 12px 18px;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.primary-btn {
  padding: 15px 22px;
  border: 0;
  cursor: pointer;
}

.primary-btn:hover,
.login-button:hover,
.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(78, 230, 102, 0.3);
}

.login-button:hover {
  color: #061009;
}

.nav-button:hover {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 242, 119, 0.35);
}

.login-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 20px;
  width: min(360px, calc(100vw - 36px));
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(19, 23, 21, 0.98), rgba(11, 13, 12, 0.98));
  border: 1px solid rgba(99, 242, 119, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.login-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.login-form label {
  display: grid;
  gap: 8px;
}

.login-form span {
  color: #d9ddd9;
  font-size: 0.92rem;
}

.login-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0d0b;
  color: var(--text);
  padding: 14px 15px;
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.login-form input:focus {
  border-color: rgba(99, 242, 119, 0.42);
  box-shadow: 0 0 0 4px rgba(99, 242, 119, 0.08);
}

.login-submit {
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  color: #061009;
  background: linear-gradient(135deg, #8efe9e, #4ad967);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(78, 230, 102, 0.22);
}

.login-submit:hover {
  transform: translateY(-1px);
}

.ghost-btn {
  padding: 15px 22px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-btn:hover,
.store-chip:hover {
  border-color: rgba(99, 242, 119, 0.4);
  background: rgba(99, 242, 119, 0.08);
}

main {
  padding: 42px 0 48px;
}

section {
  margin-bottom: 72px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72vh;
  padding: 36px 0 12px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 8% 18% 14% 18%;
  border-radius: 30px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.hero::after {
  left: 50%;
  bottom: 7%;
  width: 420px;
  height: 140px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(99, 242, 119, 0.22);
  filter: blur(44px);
  animation: heroGlow 6s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 700px);
  padding: clamp(32px, 5vw, 58px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 14%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(145, 255, 165, 0.48), rgba(99, 242, 119, 0.18) 48%, rgba(99, 242, 119, 0) 72%);
  filter: blur(16px);
  opacity: 0.75;
  z-index: -1;
  animation: orbDrift 14s ease-in-out infinite;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 28%);
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(99, 242, 119, 0.1);
  border: 1px solid rgba(99, 242, 119, 0.22);
  color: #a8f7b2;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.hero h1,
.section-heading h2,
.cta-card h2 {
  margin: 0;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 720px;
}

.hero-copy p {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 22px auto 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-top: 4px;
}

.glass-card,
.profile-card,
.achievement-card {
  background: linear-gradient(180deg, rgba(27, 31, 30, 0.95), rgba(14, 17, 16, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.narrow {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.section-heading h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading p {
  margin-top: 14px;
  line-height: 1.7;
}

.finder-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.finder-form,
.qr-card,
.cta-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.finder-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.finder-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finder-form label span {
  color: #d3d7d3;
  font-size: 0.92rem;
}

.finder-form input,
.finder-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0c0f0f;
  color: var(--text);
  padding: 14px 15px;
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.finder-form input:focus,
.finder-form select:focus {
  border-color: rgba(99, 242, 119, 0.4);
  box-shadow: 0 0 0 4px rgba(99, 242, 119, 0.08);
}

.finder-form input[type="date"],
.finder-form input[type="time"] {
  color-scheme: dark;
}

.finder-form input[type="date"]::-webkit-calendar-picker-indicator,
.finder-form input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(84%) sepia(35%) saturate(738%) hue-rotate(68deg) brightness(101%) contrast(95%);
}

.full {
  width: 100%;
  grid-column: 1 / -1;
  margin-top: 8px;
}

.qr-card {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 100%;
  background: transparent;
}

.qr-box {
  width: clamp(180px, 26vw, 300px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  margin-bottom: 0;
  background: transparent;
}

.qr-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.store-chip {
  padding: 12px 16px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  margin-top: 12px;
}

.qr-action {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-text {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8ddd8;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr-store-text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.feature-moments {
  max-width: 760px;
  margin: 0 auto 72px;
}

.moments-panel {
  padding: 18px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(24, 27, 28, 0.98), rgba(18, 21, 22, 0.98));
}

.moments-panel h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.moment-row {
  margin-bottom: 14px;
}

.moment-row:last-child {
  margin-bottom: 0;
}

.moment-row h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.moment-row h3 span {
  font-size: 1.05rem;
}

.moment-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.moment-thumb {
  position: relative;
  min-height: 132px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #1a1d1e;
}

.moment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.74);
}

.moment-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(99, 242, 119, 0.12), transparent 34%);
}

.play-mark {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--green);
  border: 2px solid var(--green);
  background: rgba(12, 18, 13, 0.48);
  box-shadow: 0 0 0 4px rgba(99, 242, 119, 0.12);
}

.stats-preview-card {
  min-height: 100%;
  display: grid;
  gap: 12px;
  align-content: start;
  border-radius: 20px;
  max-width: 380px;
  justify-self: center;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 14%, rgba(99, 242, 119, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(30, 33, 34, 0.98), rgba(23, 26, 27, 0.98));
}

.stats-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-preview-head h3 {
  margin: 0;
  font-size: 1.9rem;
}

.stats-preview-head span {
  color: var(--green);
  font-size: 1.45rem;
  line-height: 1;
}

.stats-preview-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.stats-preview-top small,
.mini-metric small,
.distance-mini small {
  display: block;
  color: #8f9992;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-preview-top .rating {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 3.4rem;
  line-height: 0.92;
}

.stats-preview-top .mvp {
  text-align: right;
}

.stats-preview-top .mvp strong {
  color: #e4e9e4;
  font-size: 1.15rem;
}

.stats-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mini-metric {
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.04);
}

.mini-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 2.05rem;
  line-height: 1;
}

.mini-metric .green {
  color: var(--green);
}

.distance-mini {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(99, 242, 119, 0.28);
  background: rgba(99, 242, 119, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.distance-mini strong {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: 2.15rem;
  line-height: 1;
}

.distance-mini span {
  color: var(--green);
  font-size: 2rem;
  line-height: 1;
}

.stats-achievement {
  display: block;
  margin-bottom: 72px;
}

.stats-achievement-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(400px, 0.92fr);
  gap: clamp(16px, 1.8vw, 26px);
  align-items: start;
  width: 100%;
}

.achievement-panel {
  padding: 20px 18px 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 86% 14%, rgba(99, 242, 119, 0.11), transparent 26%),
    linear-gradient(180deg, rgba(28, 31, 32, 0.98), rgba(20, 23, 24, 0.98));
  overflow: hidden;
  min-width: 0;
}

.achievement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.achievement-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
}

.achievement-head span {
  color: var(--green);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.achievement-track {
  display: flex;
  align-items: end;
  gap: 12px;
  overflow: hidden;
  padding: 2px 0 8px;
  min-width: 0;
}

.showcase-card {
  flex: 0 0 clamp(132px, 16vw, 180px);
  border-radius: 14px;
  overflow: hidden;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.24));
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 0.72 / 1;
  object-fit: cover;
  display: block;
}

.achievement-progress {
  width: min(180px, 44%);
  margin: 8px auto 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.achievement-progress .fill {
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #26cc5d, #4ef06f);
}

.achievement-meta {
  margin: 0;
  text-align: center;
  color: #747d77;
  font-size: clamp(1.45rem, 2.7vw, 2.2rem);
  line-height: 1.05;
}

.achievement-meta strong {
  color: var(--green);
  font-size: 1.15em;
}

.achievement-meta span {
  color: #7f8782;
  font-size: 0.58em;
  margin-left: 2px;
  margin-right: 8px;
}

.moments-side-panel {
  padding: 20px 18px 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 12%, rgba(99, 242, 119, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(28, 31, 32, 0.98), rgba(20, 23, 24, 0.98));
  min-width: 0;
}

.moments-side-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
}

.moments-group {
  margin-bottom: 16px;
}

.moments-group:last-child {
  margin-bottom: 0;
}

.moments-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.moments-group-head h3 {
  margin: 0;
  font-size: 0.96rem;
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: 0.01em;
}

.moments-group-head span {
  color: var(--green);
  font-size: 1.4rem;
  line-height: 1;
}

.moments-grid-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}

.moment-card-side {
  position: relative;
  min-height: 0;
  aspect-ratio: 1.22 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #202525;
}

.moment-card-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.72);
}

.moment-card-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(99, 242, 119, 0.12), transparent 34%);
}

.play-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--green);
  color: var(--green);
  font-size: 1rem;
  background: rgba(10, 18, 11, 0.38);
  box-shadow: 0 0 0 5px rgba(99, 242, 119, 0.1);
}

@media (min-width: 1101px) {
  .stats-achievement {
    max-width: min(calc(100% - 18px), 1360px);
    margin-inline: auto;
  }
}

@media (max-width: 1320px) and (min-width: 1101px) {
  .stats-achievement-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
    gap: 16px;
  }

  .achievement-panel,
  .moments-side-panel {
    padding: 18px 16px 16px;
  }

  .achievement-head h2,
  .moments-side-panel h2 {
    font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  }

  .showcase-card {
    flex-basis: clamp(118px, 13vw, 156px);
  }

  .moment-card-side {
    border-radius: 14px;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 26px;
}

.stat-card strong {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: #9cffac;
  margin-bottom: 18px;
}

.profile-stack {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 22px;
  align-items: center;
}

.profile-card {
  position: relative;
  border-radius: 28px;
  padding: 18px 18px 24px;
  text-align: center;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(99, 242, 119, 0.14);
  filter: blur(34px);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  transform: translateY(18px);
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: auto 18% -32px 18%;
  height: 90px;
  background: rgba(99, 242, 119, 0.22);
  filter: blur(24px);
}

.profile-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 0.72 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
  transition: transform 260ms ease, filter 260ms ease;
}

.profile-card.featured {
  transform: translateY(12px) scale(1.02);
  padding-block: 36px;
}

.profile-card.featured img {
  aspect-ratio: 0.72 / 1;
}

.profile-card:hover {
  transform: translateY(-10px);
  border-color: rgba(99, 242, 119, 0.22);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
}

.profile-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.profile-card:hover img {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 18px 26px rgba(99, 242, 119, 0.12));
}

.profile-card.featured:hover {
  transform: translateY(2px) scale(1.03);
}

.profile-card.side {
  padding: 18px;
}

.profile-card.side::before,
.profile-card.side::after {
  display: none;
}

.match-history-card {
  text-align: left;
}

.match-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.match-history-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.match-history-head a {
  color: var(--green);
  font-size: 0.9rem;
  text-decoration: none;
}

.match-history-list {
  display: grid;
  gap: 12px;
}

.match-history-item {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-date {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8f9992;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #57e46a;
  flex: none;
}

.dot.yellow {
  background: #f0be14;
}

.match-row-ui {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
}

.match-score-ui {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.match-state {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.win-text {
  color: var(--green);
}

.draw-text {
  color: #b9bfba;
}

.match-watch {
  justify-self: end;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(99, 242, 119, 0.24);
  background: rgba(99, 242, 119, 0.1);
  color: var(--green);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.match-watch:hover {
  background: rgba(99, 242, 119, 0.16);
}

.cards {
  position: relative;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.achievement-card {
  position: relative;
  padding: 18px;
  border-radius: 24px;
  text-align: center;
  overflow: hidden;
  min-height: 280px;
  transform-style: preserve-3d;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.achievement-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: opacity 240ms ease;
}

.achievement-card::after {
  content: "";
  position: absolute;
  inset: auto 18% -28px 18%;
  height: 80px;
  background: rgba(99, 242, 119, 0.18);
  filter: blur(26px);
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms ease;
  transform: translateY(12px);
}

.achievement-card.gold::before { background: linear-gradient(180deg, rgba(255, 221, 126, 0.28), transparent 50%); }
.achievement-card.emerald::before { background: linear-gradient(180deg, rgba(136, 255, 188, 0.28), transparent 50%); }
.achievement-card.copper::before { background: linear-gradient(180deg, rgba(255, 174, 123, 0.28), transparent 50%); }
.achievement-card.silver::before { background: linear-gradient(180deg, rgba(221, 229, 237, 0.24), transparent 50%); }
.achievement-card.blue::before { background: linear-gradient(180deg, rgba(125, 212, 255, 0.3), transparent 50%); }

.achievement-card img {
  position: relative;
  width: 100%;
  max-width: 210px;
  z-index: 1;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
  transition: transform 260ms ease, filter 260ms ease;
}

.achievement-card span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 14px;
  font-weight: 700;
}

.achievement-card:hover {
  transform: translateY(-16px) scale(1.02);
  border-color: rgba(99, 242, 119, 0.22);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
}

.achievement-card:hover::before {
  opacity: 0.72;
}

.achievement-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.achievement-card:hover img {
  transform: translateY(-10px) scale(1.04);
  filter: drop-shadow(0 24px 34px rgba(99, 242, 119, 0.14));
}

.cta-card {
  text-align: center;
  padding: 48px 24px;
  background:
    linear-gradient(180deg, rgba(26, 29, 28, 0.95), rgba(12, 14, 13, 0.98)),
    radial-gradient(circle at top center, rgba(99, 242, 119, 0.15), transparent 36%);
}

.cta-card .eyebrow {
  margin-bottom: 16px;
}

.cta-card h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.02;
  max-width: 760px;
  margin-inline: auto;
}

.cta-card .primary-btn {
  margin-top: 22px;
  padding: clamp(14px, 2vw, 18px) clamp(24px, 3vw, 34px);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0 54px;
  border-top: 1px solid var(--line);
}

.footer strong {
  display: block;
  margin-bottom: 12px;
}

.footer a {
  display: block;
  margin-bottom: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(44px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.floating-card {
  animation: hoverCard 5s ease-in-out infinite;
}

@keyframes hoverCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes heroGlow {
  0%, 100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(0.95);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes orbDrift {
  0% {
    transform: translate(0, 0) scale(0.92);
  }
  25% {
    transform: translate(260px, 36px) scale(1.04);
  }
  50% {
    transform: translate(330px, 170px) scale(0.96);
  }
  75% {
    transform: translate(90px, 220px) scale(1.05);
  }
  100% {
    transform: translate(0, 0) scale(0.92);
  }
}

@media (pointer: coarse) {
  .ball-cursor {
    display: none;
  }
}

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

  .stats {
    grid-template-columns: 1fr;
  }

  .stats-achievement-layout {
    grid-template-columns: 1fr;
  }

  .feature-moments {
    max-width: 100%;
  }

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

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .profile-card.featured {
    transform: none;
  }

  .match-row-ui {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .match-watch {
    justify-self: start;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(calc(100% - 18px), var(--container));
  }

  .topbar {
    border-radius: 26px;
    padding: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-logo {
    width: 96px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .nav-badge {
    width: 100%;
    justify-content: center;
    padding-right: 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
  }

  .login-panel {
    right: 50%;
    transform: translate(50%, -10px);
  }

  .login-panel.is-open {
    transform: translate(50%, 0);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 13vw, 4.2rem);
  }

  .finder-form {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 34px 18px;
  }

  .cta-card h2 {
    font-size: clamp(1.7rem, 9vw, 2.5rem);
  }

  .cta-card .primary-btn {
    width: 100%;
    margin-top: 18px;
  }

  .match-history-item {
    padding: 12px;
    border-radius: 16px;
  }

  .match-score-ui {
    font-size: 1.7rem;
  }

  .match-state {
    font-size: 0.92rem;
  }

  .achievement-card img {
    max-width: 150px;
  }

  .hero::before {
    inset: 0;
    border-radius: 24px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero::after {
    width: 280px;
    height: 110px;
  }

  .hero-copy::before {
    width: 140px;
    height: 140px;
    animation-duration: 12s;
  }
}
