/* realm website. Tokens mirror the app (realm/lib/design/tokens.dart): dark ink, lime, Syne + Lexend, glass. */

@font-face {
  font-family: 'Syne';
  src: url('assets/fonts/syne.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: 'Lexend';
  src: url('assets/fonts/lexend.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --lime-300: #dbff6b;
  --lime-400: #c8f135;
  --lime-500: #a9d116;
  --lime-glow: rgba(200, 241, 53, 0.35);
  --lime-tint: rgba(200, 241, 53, 0.14);

  --ink-950: #07080a;
  --ink-900: #0c0d10;
  --ink-850: #111317;
  --ink-800: #16181d;
  --ink-700: #1e2127;
  --ink-600: #2a2d35;

  --text-1: #ffffff;
  --text-2: #b9bcc4;
  --text-3: #8d919b;
  --on-accent: #0a0d02;
  --red: #ff5c6c;

  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.08);

  --r-common: #b9bcc4;
  --r-uncommon: #6fb6ff;
  --r-rare: #c8f135;
  --r-legendary: #c77dff;

  --display: 'Syne', ui-sans-serif, system-ui, sans-serif;
  --body: 'Lexend', ui-sans-serif, system-ui, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --gutter: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text-1);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* A faint map grid and two glows behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vmax 40vmax at 85% -10%, rgba(200, 241, 53, 0.10), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 60%, rgba(110, 123, 216, 0.10), transparent 60%),
    linear-gradient(var(--hairline) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--ink-900);
  -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.55));
          mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.55));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime-400); text-decoration: none; }
:focus-visible { outline: 2px solid var(--lime-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime-400); color: var(--on-accent); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.hl { color: var(--lime-400); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime-400); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-size: clamp(2.5rem, 9vw, 4.6rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.label {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-400);
  margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: var(--text-2); max-width: 34em; margin-top: 20px; }
.muted-lead { color: var(--text-2); font-size: 1.05rem; max-width: 32em; }
.muted { color: var(--text-3); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s var(--ease-out), background 0.2s, box-shadow 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--lime-400); color: var(--on-accent); box-shadow: 0 0 0 1px rgba(200, 241, 53, 0.5), 0 8px 28px var(--lime-glow); }
.btn-primary:hover { background: var(--lime-300); }
.btn-ghost { background: var(--glass); color: var(--text-1); border-color: var(--glass-border); }
.btn-ghost:hover { background: var(--glass-strong); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
          backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 13, 16, 0.72);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand img { width: 84px; height: auto; }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--text-2); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-1); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 44px 0 28px; overflow: hidden; }
.hero-in { display: grid; gap: 28px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 22px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-400); box-shadow: 0 0 12px var(--lime-400); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-row .btn { flex: 1 1 auto; }

.hero-cards { position: relative; height: 380px; margin: 0 auto; width: 100%; max-width: 420px; }
.hc {
  position: absolute;
  width: 46%;
  height: auto;
  left: 50%;
  top: 50%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6));
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.hc-1 { transform: translate(-108%, -46%) rotate(-12deg); z-index: 1; }
.hc-3 { transform: translate(8%, -46%) rotate(12deg); z-index: 1; }
.hc-2 { transform: translate(-50%, -54%); z-index: 2; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-50%, -58%); } }
.hero-glow {
  position: absolute;
  inset: 20% 15%;
  background: radial-gradient(closest-side, rgba(200, 241, 53, 0.28), transparent);
  filter: blur(30px);
  z-index: 0;
}

/* ---------------------------------------------------------------- sections */
.section { padding: 72px 0; }
.section h2 { margin-bottom: 28px; }
.split-head { display: grid; gap: 4px; margin-bottom: 32px; }
.split-head h2 { margin-bottom: 12px; }

.steps { display: grid; gap: 14px; }
.step { padding: 24px; position: relative; }
.step-n { position: absolute; top: 20px; right: 22px; font-family: var(--display); color: var(--text-3); font-size: 13px; letter-spacing: 0.1em; }
.step h3 { margin: 14px 0 8px; }
.step p, .promise p, .mode p { color: var(--text-2); font-size: 15px; }
.ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--lime-tint); stroke: var(--lime-400); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* cards rail */
.section-cards { overflow: hidden; }
.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 22px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.tile { margin: 0; flex: 0 0 58%; max-width: 240px; scroll-snap-align: center; }
.tile img { width: 100%; height: auto; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.55)); transition: transform 0.4s var(--spring); }
.tile:hover img { transform: translateY(-6px) rotate(-1.5deg); }
.tile figcaption { margin-top: 10px; text-align: center; }
.r { font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; }
.r-common { color: var(--r-common); }
.r-uncommon { color: var(--r-uncommon); }
.r-rare { color: var(--r-rare); }
.r-legendary { color: var(--r-legendary); }
.rail-hint { color: var(--text-3); font-size: 13px; }

/* modes */
.modes { display: grid; gap: 12px; }
.mode { padding: 20px 0; border-top: 1px solid var(--hairline); display: grid; gap: 8px; }
.tag { font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.mode:nth-child(1) .tag { color: var(--lime-400); }

/* privacy */
.promises { display: grid; gap: 14px; }
.promise { padding: 22px; }
.promise h3 { margin: 14px 0 6px; }

/* why */
.why { padding: 48px 0; }
.why-in { max-width: 860px; }
blockquote { margin: 0; }
blockquote p { font-family: var(--display); font-size: clamp(1.5rem, 4.6vw, 2.4rem); font-weight: 600; line-height: 1.22; letter-spacing: -0.02em; }
blockquote footer { margin-top: 22px; color: var(--text-3); font-size: 15px; }
blockquote footer::before { content: '— '; }

/* ---------------------------------------------------------------- join */
.join { scroll-margin-top: 60px; }
.join-in { display: grid; gap: 28px; align-items: start; }
.perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.perks li { position: relative; padding-left: 28px; color: var(--text-2); }
.perks li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 4px; background: var(--lime-400); box-shadow: 0 0 14px var(--lime-glow); }
.perks strong { color: var(--text-1); font-weight: 600; }
.dayone { display: none; }

.form-card { padding: 22px; }
.form-title { font-size: 1.4rem; margin-bottom: 18px; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
input[type='text'] {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming in */
  color: var(--text-1);
  background: var(--ink-950);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type='text']::placeholder { color: var(--text-3); }
input[type='text']:focus { outline: none; border-color: var(--lime-400); box-shadow: 0 0 0 3px var(--lime-tint); }
input[aria-invalid='true'] { border-color: var(--red); }
.input-at { position: relative; }
.input-at span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-at input { padding-left: 32px; }
.help { font-size: 13px; color: var(--text-3); margin-top: 8px; line-height: 1.5; }
.help em { color: var(--text-2); font-style: normal; font-weight: 500; }
.err { font-size: 13px; color: var(--red); margin-top: 6px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; margin: 0 !important; font-family: var(--body) !important; font-weight: 400 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 12px;
  border-radius: var(--radius);
  background: var(--ink-950);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--spring);
}
.choice-t { font-family: var(--display); font-weight: 600; font-size: 15px; }
.choice-s { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.choice:hover .choice-box { border-color: rgba(255, 255, 255, 0.25); }
.choice input:checked + .choice-box { border-color: var(--lime-400); background: var(--lime-tint); transform: scale(1.02); }
.choice input:checked + .choice-box .choice-t { color: var(--lime-400); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--lime-400); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-size: 14px; color: var(--red); text-align: center; }
.fine { font-size: 12.5px; color: var(--text-3); text-align: center; margin-top: 14px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(10, 13, 2, 0.3); border-top-color: var(--on-accent); animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { text-align: center; padding: 28px 6px; outline: none; }
.done h3 { font-size: 1.6rem; margin: 18px 0 10px; }
.done p { color: var(--text-2); margin-bottom: 22px; }
.done-mark { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--lime-400); display: grid; place-items: center; box-shadow: 0 0 40px var(--lime-glow); animation: pop 0.5s var(--spring); }
.done-mark svg { width: 30px; height: 30px; stroke: var(--on-accent); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

/* ---------------------------------------------------------------- faq */
.faq-in { max-width: 760px; }
details { border-top: 1px solid var(--hairline); }
details:last-child { border-bottom: 1px solid var(--hairline); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--lime-400); font-size: 24px; font-weight: 400; transition: transform 0.25s var(--ease-out); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--text-2); padding: 0 0 22px; max-width: 40em; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--hairline); padding: 36px 0 110px; }
.foot-in { display: grid; gap: 10px; justify-items: start; color: var(--text-2); font-size: 14px; }
.foot img { width: 72px; height: auto; margin-bottom: 6px; }

/* Mobile: a floating "Join the beta" until the form is on screen. */
.sticky-cta {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  padding: 15px;
  font-size: 16px;
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.sticky-cta.away { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- larger screens */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .tile { flex-basis: 36%; }
  .choices { gap: 12px; }
  .form-card { padding: 30px; }
  .cta-row .btn { flex: 0 0 auto; }
}

@media (min-width: 760px) {
  .nav-links { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .split-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
  .split-head .muted-lead { padding-bottom: 14px; }
  .tile { flex-basis: 24%; }
  .sticky-cta { display: none; }
  .foot { padding-bottom: 40px; }
  .foot-in { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .foot img { margin: 0; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .hero { padding: 72px 0 40px; }
  .hero-in { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .hero-cards { height: 520px; max-width: none; }
  .section { padding: 110px 0; }
  .promises { grid-template-columns: repeat(6, 1fr); }
  .promise { grid-column: span 2; }
  .promise:nth-child(4), .promise:nth-child(5) { grid-column: span 3; }
  .rail { padding-left: max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - 1160px) / 2 + var(--gutter))); }
  .tile { flex-basis: 200px; }
  .rail-hint { display: none; }
  .join-in { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .dayone { display: block; width: 210px; height: auto; aspect-ratio: 2 / 3; margin-top: 36px; transform: rotate(-6deg); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(255, 190, 80, 0.18)); }
  .form-card { padding: 36px; position: sticky; top: 84px; }
}

@media (hover: hover) and (min-width: 960px) {
  .hero-cards:hover .hc-1 { transform: translate(-118%, -46%) rotate(-16deg); }
  .hero-cards:hover .hc-3 { transform: translate(18%, -46%) rotate(16deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ================================================================ events, showcase, leaderboard */
.events-in, .duo { display: grid; gap: 40px; align-items: center; }
.ev-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ev-points li { position: relative; padding-left: 28px; color: var(--text-2); }
.ev-points li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 4px; background: var(--lime-400); box-shadow: 0 0 14px var(--lime-glow); }
.ev-points strong { color: var(--text-1); font-weight: 600; }

/* event visual */
.ev-visual { position: relative; padding-bottom: 70px; max-width: 440px; width: 100%; margin: 0 auto; }
.ev-panel { padding: 18px; width: 80%; }
.ev-top { display: flex; justify-content: space-between; align-items: center; }
.ev-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--glass-strong); color: var(--text-2); }
.ev-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime-400); }
.ev-title { font-family: var(--display); font-weight: 700; font-size: 1.45rem; margin-top: 14px; letter-spacing: -0.02em; }
.ev-meta { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.ev-map {
  position: relative; height: 120px; margin-top: 14px; border-radius: 12px; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 42%, rgba(110, 123, 216, 0.35) 43%, rgba(110, 123, 216, 0.35) 49%, transparent 50%),
    linear-gradient(var(--hairline) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px) 0 0 / 22px 22px,
    #0e1630;
}
.ev-pin, .ev-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.ev-pin { width: 14px; height: 14px; background: var(--lime-400); box-shadow: 0 0 16px var(--lime-400); border: 2px solid var(--ink-900); }
.ev-ring { width: 70px; height: 70px; border: 2px solid rgba(200, 241, 53, 0.6); background: rgba(200, 241, 53, 0.1); animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: translate(-50%, -50%) scale(0.4); opacity: 1; } to { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }
.ev-foot { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; font-size: 13px; color: var(--text-3); }
.ev-foot strong { color: var(--lime-400); font-weight: 500; }
.ev-card {
  position: absolute; right: 0; bottom: 0; width: 40%; aspect-ratio: 2 / 3; padding: 6px; border-radius: 14px;
  background: linear-gradient(150deg, #e9ff8f, var(--lime-400) 30%, #5d7a00 60%, var(--lime-300));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 22px 40px rgba(0, 0, 0, 0.6), 0 0 40px var(--lime-glow);
  transform: rotate(7deg); display: flex; flex-direction: column; gap: 5px;
}
.ev-art {
  position: relative; flex: 1; border-radius: 9px; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 30%, #6a2bd9, #1b0f45 60%, #07080a);
}
.beam { position: absolute; top: -10%; left: 50%; width: 22%; height: 90%; transform-origin: 50% 0; background: linear-gradient(rgba(219, 255, 107, 0.75), transparent); filter: blur(2px); mix-blend-mode: screen; }
.b1 { transform: translateX(-50%) rotate(-28deg); }
.b2 { transform: translateX(-50%); background: linear-gradient(rgba(255, 255, 255, 0.7), transparent); }
.b3 { transform: translateX(-50%) rotate(28deg); background: linear-gradient(rgba(199, 125, 255, 0.8), transparent); }
.crowd { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; fill: var(--ink-950); }
.ev-plate { display: flex; gap: 5px; height: 18%; }
.ev-plate span, .ev-plate b { background: var(--ink-950); border-radius: 6px; display: grid; place-items: center; font-family: var(--display); color: var(--lime-300); text-transform: uppercase; }
.ev-plate span { flex: 1; font-size: clamp(8px, 2.2vw, 11px); letter-spacing: 0.06em; text-align: center; padding: 0 4px; }
.ev-plate b { width: 26%; font-size: clamp(11px, 3vw, 16px); }

/* phone frame */
.phone { width: 100%; max-width: 340px; margin: 0 auto; padding: 9px; border-radius: 42px; background: linear-gradient(160deg, #2a2d35, #0c0d10 40%, #1e2127); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone-in { border-radius: 34px; background: var(--ink-900); padding: 26px 16px 22px; overflow: hidden; position: relative; }

/* profile + showcase */
.pf-head { display: flex; gap: 14px; align-items: center; }
.pf-avatar { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: linear-gradient(135deg, #6e7bd8, #b5504c); }
.pf-name { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.pf-handle { color: var(--text-3); font-size: 12.5px; }
.pf-title { font-family: var(--display); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime-400); margin-top: 3px; }
.pf-stats { font-size: 11px; color: var(--text-3); margin-top: 6px; white-space: nowrap; }
.pf-stats b { font-family: var(--display); color: var(--text-1); font-weight: 600; font-size: 12px; margin-left: 6px; }
.pf-stats b:first-child { margin-left: 0; }
.pf-tabs { display: flex; margin: 18px -16px 14px; border-bottom: 1px solid var(--hairline); }
.pf-tabs span { flex: 1; text-align: center; padding: 9px 0; font-size: 12.5px; color: var(--text-3); }
.pf-tabs span.on { color: var(--text-1); box-shadow: inset 0 -2px 0 var(--lime-400); }
.pf-tabs i { font-style: normal; color: var(--text-3); margin-left: 3px; }
.pf-index { padding: 11px 12px; border-radius: 12px; background: rgba(14, 15, 18, 0.55); border: 1px solid var(--glass-border); }
.pf-index-row { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 600; font-size: 12.5px; }
.pf-bar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); margin-top: 8px; }
.pf-bar span { display: block; height: 100%; border-radius: 2px; background: var(--lime-400); box-shadow: 0 0 8px var(--lime-400); }
.pf-label { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 10px; font-family: var(--display); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.pf-pill { letter-spacing: 0; text-transform: none; font-family: var(--body); font-size: 11px; color: var(--text-1); padding: 4px 10px; border-radius: 8px; background: rgba(14, 15, 18, 0.55); border: 1px solid var(--glass-border); }
.sc { position: relative; }
.sc-glow { position: absolute; left: 12%; right: 12%; top: 6%; height: 42%; background: radial-gradient(closest-side, rgba(200, 241, 53, 0.3), transparent); filter: blur(18px); }
.sc-head { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.sc-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc img { width: 100%; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.55)); transition: transform 0.35s var(--spring); }
.sc-head img { filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6)); }
.sc img:hover { transform: translateY(-4px); }

/* leaderboard */
.lb-title { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.03em; color: var(--lime-400); margin-bottom: 18px; }
.podium { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin-bottom: 14px; }
.pod-glow { position: absolute; left: 20%; right: 20%; top: -10%; height: 70%; background: radial-gradient(closest-side, rgba(200, 241, 53, 0.25), transparent); filter: blur(16px); }
.pod-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.av { display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 700; color: #fff; background: var(--c); }
.pod-step .av { width: 50px; height: 50px; font-size: 18px; }
.s2 .av { box-shadow: 0 0 0 2.5px var(--ink-900), 0 0 0 4.5px #c9ccd3; }
.s3 .av { box-shadow: 0 0 0 2.5px var(--ink-900), 0 0 0 4.5px #d68a3c; }
.s1 .av { width: 64px; height: 64px; font-size: 22px; box-shadow: 0 0 0 2.5px var(--ink-900), 0 0 0 4.5px var(--lime-400), 0 0 24px var(--lime-glow); }
.crown { width: 20px; height: 20px; fill: var(--lime-400); filter: drop-shadow(0 0 6px var(--lime-400)); margin-bottom: 6px; }
.nm { font-family: var(--display); font-weight: 600; font-size: 12.5px; margin-top: 10px; }
.pt { font-family: var(--display); font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.s1 .pt { color: var(--lime-400); }
.plinth { align-self: stretch; margin-top: 8px; border-radius: 10px 10px 0 0; border: 1px solid var(--glass-border); border-bottom: 0; background: linear-gradient(rgba(14, 15, 18, 0.9), transparent); -webkit-mask-image: linear-gradient(#000 25%, transparent); mask-image: linear-gradient(#000 25%, transparent); padding-top: 8px; font-family: var(--display); font-weight: 700; }
.s1 .plinth { height: 80px; font-size: 32px; color: var(--lime-400); border-color: rgba(200, 241, 53, 0.35); text-shadow: 0 0 14px rgba(200, 241, 53, 0.55); }
.s2 .plinth { height: 58px; font-size: 24px; color: #c9ccd3; }
.s3 .plinth { height: 44px; font-size: 24px; color: #d68a3c; }
.lb-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.lb-rows li { display: grid; grid-template-columns: 22px 30px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(14, 15, 18, 0.55); border: 1px solid var(--glass-border); font-size: 13px; }
.lb-rows b { font-family: var(--display); color: var(--text-3); font-size: 13px; }
.av.sm { width: 30px; height: 30px; font-size: 12px; }
.lb-rows .pts { font-family: var(--display); font-variant-numeric: tabular-nums; color: var(--text-2); }
.lb-rows li.gap { display: block; text-align: center; background: none; border: 0; padding: 0; color: var(--text-3); letter-spacing: 0.3em; line-height: 1; }
.lb-rows li.cut { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 2px 0; color: var(--lime-400); font-family: var(--display); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.lb-rows li.cut::before, .lb-rows li.cut::after { content: ''; flex: 1; border-top: 1px dashed rgba(200, 241, 53, 0.5); }
.lb-rows li.you { background: var(--lime-tint); border-color: rgba(200, 241, 53, 0.5); }
.lb-rows li.you b, .lb-rows li.you .who { color: var(--lime-400); font-weight: 600; }
.lb-rows li.you .av { color: var(--on-accent); }
.prize { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 16px 18px; border-radius: var(--radius); background: var(--lime-tint); border: 1px solid rgba(200, 241, 53, 0.25); }
.prize .ico { flex: none; }
.prize p { color: var(--text-2); }
.prize strong { font-family: var(--display); color: var(--lime-400); }

@media (min-width: 960px) {
  .events-in, .duo { grid-template-columns: 1fr 1fr; gap: 72px; }
  .duo-flip .phone { order: -1; }
  .ev-visual { max-width: 480px; }
}
@media (prefers-reduced-motion: reduce) { .ev-ring { display: none; } }

/* card rarity counts */
.odds { margin-top: -6px; margin-bottom: 30px; }
.odds-bar { display: flex; gap: 3px; height: 10px; border-radius: 999px; overflow: hidden; }
.odds-bar span { min-width: 6px; }
.o-common { background: var(--r-common); }
.o-uncommon { background: var(--r-uncommon); }
.o-rare { background: var(--r-rare); box-shadow: 0 0 10px var(--lime-glow); }
.o-legendary { background: var(--r-legendary); box-shadow: 0 0 10px rgba(199, 125, 255, 0.6); }
.o-chennai { background: transparent; border: 1.5px solid var(--sand, #ddb78a); }
.odds-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin: 16px 0 0; }
.odds-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.odds-list dt { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.odds-list dt i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.odds-list dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.odds-chennai { grid-column: 1 / -1; }
.odds-chennai dd { color: #ddb78a; }
@media (min-width: 760px) {
  .odds-list { grid-template-columns: repeat(5, 1fr); }
  .odds-chennai { grid-column: auto; }
  .odds-list div { flex-direction: column; align-items: flex-start; gap: 4px; border-bottom: 0; border-left: 1px solid var(--hairline); padding: 2px 0 2px 14px; }
}

/* what rarer cards unlock */
.perks-wrap { margin-top: 44px; }
.perks-title { font-size: clamp(1.3rem, 3.6vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.tiers { display: grid; gap: 14px; }
.tier { padding: 22px; display: grid; gap: 10px; align-content: start; }
.tier .r { justify-self: start; }
.tier h4 { font-family: var(--display); font-size: 1.1rem; font-weight: 600; margin: 4px 0 0; }
.tier p { color: var(--text-2); font-size: 15px; }
.tier-note { margin-top: 16px; color: var(--text-3); font-size: 14px; }
@media (min-width: 760px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
