/* ==========================================================================
   Venture Vault — registration portal
   Mobile-first. Palette sampled from the official poster.
   ========================================================================== */

:root {
  --bg: #070d33;
  --bg-2: #0b1648;
  --bg-3: #102070;
  --surface: rgba(24, 38, 110, 0.55);
  --surface-solid: #111d5e;
  --surface-2: rgba(255, 255, 255, 0.05);
  --field: rgba(6, 12, 44, 0.65);
  --line: rgba(150, 170, 255, 0.18);
  --line-strong: rgba(150, 170, 255, 0.32);

  --text: #f5f7ff;
  --muted: #b3bde6;
  --dim: #8591c4;

  --gold: #f2d16b;
  --gold-deep: #e2b93f;
  --teal: #2ee6b6;
  --pink: #ff6bb5;
  --purple: #a78bfa;
  --danger: #ff7a9a;
  --danger-bg: rgba(255, 90, 130, 0.12);
  --ok-bg: rgba(46, 230, 182, 0.1);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 12px;
  --gutter: 20px;
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(40, 80, 220, 0.55), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(120, 70, 200, 0.28), transparent 60%),
    linear-gradient(180deg, #0c1a5e 0%, #0a1550 40%, #070d33 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--gold); }
strong { font-weight: 600; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.container.narrow { max-width: 680px; }

.t-teal { color: var(--teal); }
.t-gold { color: var(--gold); }
.t-pink { color: var(--pink); }
.t-purple { color: var(--purple); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono-sm { font-family: var(--mono); font-size: 0.85rem; word-break: break-all; }

/* ---------- decorative backdrop ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.dial {
  position: absolute;
  width: 150vw; max-width: 980px;
  aspect-ratio: 1 / 1;
  right: -55vw; top: 60px;
  opacity: 0.55;
}
.dial-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-ticks { fill: none; stroke: rgba(170, 190, 255, 0.28); stroke-width: 14; stroke-dasharray: 2 13; }
.dial-ring { fill: none; stroke: rgba(170, 190, 255, 0.18); stroke-width: 1.5; }
.dial-ring--thick { stroke: rgba(90, 120, 255, 0.16); stroke-width: 48; }
.dial-hub { fill: rgba(170, 190, 255, 0.22); }
.dial-handle { fill: rgba(170, 190, 255, 0.14); }
.market-line {
  position: absolute; left: 0; width: 100%; top: 120px; height: 520px; opacity: 0.55;
}
.market-line polyline { fill: none; stroke: #1fa3a3; stroke-width: 3; vector-effect: non-scaling-stroke; }
.market-line polygon { fill: #1fb3a8; }

/* Backdrop motion (reel-style "living" vault dial). Only transform/opacity are animated on
   whole layers, so the browser composites them on the GPU without repainting the SVGs. */
.dial-layer--ticks   { animation: dialSpin 30s linear infinite; will-change: transform; }
.dial-layer--markers { animation: dialSpin 60s linear infinite; will-change: transform; }
.dial-layer--rings   { animation: dialBreathe 9s ease-in-out infinite alternate; }
.dial-layer--thick   { animation: dialGlow 7s ease-in-out infinite alternate; }
.dial-layer--hub     { animation: dialHub 6s ease-in-out infinite alternate; }
.market-line .market-flow {
  stroke: #6ff0dc; stroke-width: 4; stroke-linecap: round;
  vector-effect: none; /* dashes + pathLength don't render with non-scaling-stroke in Chromium */
  stroke-dasharray: 90 910; stroke-dashoffset: 1000;
  opacity: 0.8;
  animation: marketFlow 10s linear infinite;
}
.market-line polygon { animation: marketTip 5s ease-in-out infinite alternate; }

@keyframes dialSpin    { to { transform: rotate(360deg); } }
@keyframes dialBreathe { from { transform: scale(1); } to { transform: scale(1.015); } }
@keyframes dialGlow    { from { opacity: 1; } to { opacity: 0.7; } }
@keyframes dialHub     { from { transform: scale(1); opacity: 0.85; } to { transform: scale(1.12); opacity: 1; } }
@keyframes marketFlow  { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes marketTip   { from { opacity: 0.75; } to { opacity: 1; } }

/* ---------- top bar ---------- */
.topbar { padding-top: max(18px, env(safe-area-inset-top)); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-iitj { width: 48px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-kicker { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.22em; color: var(--muted); white-space: nowrap; }
.brand-presents { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; }
.brand-ecell { width: 64px; height: auto; flex: none; }

/* ---------- hero ---------- */
.hero { padding-top: 40px; padding-bottom: 12px; }
.tagline {
  margin: 0 0 6px;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(0.8rem, 3.4vw, 1.25rem);
  letter-spacing: 0.16em;
}
.hero-title {
  margin: 0;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-size: clamp(3.2rem, 19vw, 11.5rem);
}
.hero-title span { display: block; }
.hero-venture { color: #fff; }
.hero-vault { color: var(--gold); }
.hero-sub {
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 4.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 28ch;
}

.prize-row { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.prize-box {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--gold); color: #0b1648;
  padding: 12px 20px 12px 18px;
  border-radius: 10px;
  box-shadow: 10px 10px 0 var(--teal);
}
.prize-amount { font-weight: 800; font-size: clamp(2.3rem, 12vw, 4.5rem); line-height: 1; letter-spacing: -0.03em; }
.prize-label { font-weight: 800; font-size: clamp(0.85rem, 3.6vw, 1.3rem); line-height: 1.05; letter-spacing: 0.08em; }
.prize-tease { margin: 6px 0 0; font-size: clamp(1rem, 4.4vw, 1.5rem); font-weight: 500; line-height: 1.35; }

.cta-row { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.closed-pill {
  margin: 0; padding: 10px 16px; border-radius: 999px;
  background: var(--danger-bg); border: 1px solid rgba(255, 122, 154, 0.4); color: #ffd1dc; font-weight: 500;
}

/* ---------- sections ---------- */
.section { padding-top: 64px; }
.section--cta { padding-bottom: 32px; }
.eyebrow {
  margin: 0 0 6px; font-family: var(--mono); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.22em; color: var(--gold);
}
.section-title { margin: 0 0 22px; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }

.rounds { display: grid; gap: 16px; }
.round {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: 6px 6px var(--radius) var(--radius);
  /* Slightly more opaque instead of backdrop-filter: a blur over the animated backdrop would be
     re-computed every frame and makes phones/laptops lag. Looks the same. */
  background: linear-gradient(180deg, rgba(40, 58, 140, 0.72), rgba(24, 36, 104, 0.66));
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.round--teal { --c: var(--teal); }
.round--purple { --c: var(--purple); }
.round--pink { --c: var(--pink); background: linear-gradient(180deg, rgba(70, 40, 120, 0.55), rgba(44, 28, 100, 0.5)); }
.round-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.round-no { font-family: var(--mono); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.16em; color: var(--c); }
.round-head svg { width: 28px; height: 28px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round h3 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
.round p { margin: 0; color: var(--muted); }

.details {
  margin: 0; display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden;
  background: rgba(8, 16, 60, 0.45);
}
.details > div { padding: 16px 18px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.details > div:nth-child(2n) { border-right: 0; }
.details > div:nth-last-child(-n+2) { border-bottom: 0; }
.details dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.2em; color: var(--gold); }
.details dd { margin: 4px 0 0; font-weight: 800; font-size: clamp(1.15rem, 5vw, 1.9rem); line-height: 1.2; }
.fineprint { margin: 18px 0 0; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }

.final-cta {
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(242, 209, 107, 0.14), rgba(46, 230, 182, 0.08) 60%, rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(242, 209, 107, 0.3);
}
.final-cta h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 5.4vw, 2rem); line-height: 1.2; font-weight: 800; }
.final-cta p { margin: 0; color: var(--muted); }

.partners { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.partner-inicio { width: 64px; height: auto; border-radius: 12px; border: 1px solid rgba(242, 209, 107, 0.25); }
.partners p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }
.partners strong { color: var(--text); }
.partners span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--gold); color: #0b1648; box-shadow: 0 10px 30px -10px rgba(242, 209, 107, 0.6); }
.btn-primary:hover { background: #f7dc86; }
.btn-secondary { background: rgba(255, 255, 255, 0.06); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn-xl { --h: 60px; padding: 0 30px; font-size: 1.08rem; letter-spacing: 0.08em; font-weight: 800; box-shadow: 8px 8px 0 var(--teal); }
.btn-xl:hover { box-shadow: 10px 10px 0 var(--teal); transform: translate(-1px, -1px); }
.btn-lg { --h: 56px; letter-spacing: 0.06em; font-weight: 800; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(11, 22, 72, 0.3); border-top-color: #0b1648;
  animation: spin .8s linear infinite;
}
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(255, 255, 255, 0.25); border-top-color: #fff; }

.link-btn {
  background: none; border: 0; padding: 10px 4px; min-height: 44px;
  color: var(--gold); font-weight: 600; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn[disabled] { color: var(--dim); text-decoration: none; cursor: default; }
.link-btn.is-loading { opacity: 0.7; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- register view ---------- */
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin: 28px 0 18px; padding: 8px 12px 8px 8px; min-height: 44px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-weight: 500; font-size: 0.9rem;
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.page-title { margin: 0 0 8px; font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; }

.page-lead { margin: 0 0 22px; color: var(--muted); font-size: 0.98rem; line-height: 1.5; max-width: 52ch; }

.card {
  /* No backdrop-filter (see .round): opaque enough that the moving dial never distracts. */
  background: linear-gradient(180deg, rgba(30, 46, 130, 0.84), rgba(16, 28, 96, 0.84));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card { padding: 22px 18px 24px; }
.state-card { padding: 34px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.state-card p { margin: 0; }
.state-title { font-size: 1.2rem; font-weight: 700; }
.state-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 209, 107, 0.12); }
.state-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.state-card .btn { margin-top: 8px; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stepper { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.stepper--3 { grid-template-columns: repeat(3, 1fr); }
.stepper li { display: flex; flex-direction: column; gap: 8px; font-size: 0.75rem; color: var(--dim); font-weight: 500; }
.stepper li::before { content: ''; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); transition: background-color .35s var(--ease); }
.stepper .dot { display: none; }
.stepper li.is-done::before { background: var(--teal); }
.stepper li.is-current::before { background: var(--gold); }
.stepper li.is-current { color: var(--text); }
.stepper li.is-done { color: var(--muted); }

.step-title { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.25; outline: none; }
.step-sub { margin: 6px 0 20px; color: var(--muted); font-size: 0.95rem; }
.step { animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 16px; }
.field label, .field .label { display: block; margin-bottom: 7px; font-weight: 500; font-size: 0.92rem; }
.req { color: var(--gold); }
.opt { color: var(--dim); font-weight: 400; font-size: 0.82rem; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font-size: 16px; /* prevents iOS zoom */
  background: var(--field); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #6773a8; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242, 209, 107, 0.16); }
.field input[readonly] { background: rgba(255, 255, 255, 0.04); color: var(--muted); border-style: dashed; }
.field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2d16b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select option { background: #0b1648; color: var(--text); }
.field .is-invalid, .field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); background-color: rgba(255, 90, 130, 0.06); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: 0.85rem; line-height: 1.4; }
.field-error:empty { display: none; }
.hint { margin: 6px 0 0; color: var(--dim); font-size: 0.82rem; line-height: 1.45; }

.affix { display: flex; align-items: stretch; }
.affix-pre {
  display: grid; place-items: center; padding: 0 14px; min-height: 52px;
  background: rgba(255, 255, 255, 0.06); border: 1.5px solid var(--line-strong); border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); font-weight: 600;
}
.affix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.grid-2 { display: grid; gap: 0 14px; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.92rem; line-height: 1.45; }
.notice svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; margin-top: 1px; }
.notice--ok { background: var(--ok-bg); border: 1px solid rgba(46, 230, 182, 0.35); color: #c9fff0; }

.alert {
  padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.92rem; line-height: 1.5;
  background: var(--danger-bg); border: 1px solid rgba(255, 122, 154, 0.45); color: #ffdbe4;
  animation: stepIn .25s var(--ease);
}
.alert--info { background: rgba(242, 209, 107, 0.1); border-color: rgba(242, 209, 107, 0.4); color: #fff1c7; }

/* Mobile: primary action on top, full width; secondary below. */
.step-actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 22px; }
.step-actions .btn { width: 100%; }

.member-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 14px 4px; margin: 0 0 14px;
  background: rgba(6, 12, 44, 0.3);
}
.member-card legend {
  padding: 0 8px; margin-left: -4px; font-family: var(--mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; color: var(--gold);
}
.member-card--captain { border-color: rgba(46, 230, 182, 0.4); background: rgba(46, 230, 182, 0.05); }
.captain-tag {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: 1px;
  background: rgba(46, 230, 182, 0.14); border: 1px solid rgba(46, 230, 182, 0.45); color: var(--teal);
  font-size: 0.66rem; letter-spacing: 0.12em;
}

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.review { display: grid; gap: 14px; }
.review-block { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: rgba(6, 12, 44, 0.35); }
.review-label { font-family: var(--mono); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.18em; color: var(--gold); margin: 0 0 6px; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.review-head .review-label { margin: 0; }
.review-head .link-btn { min-height: 36px; padding: 6px 2px; font-size: 0.85rem; }
.review-team { margin: 0; font-size: 1.3rem; font-weight: 800; word-break: break-word; }
.review-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.review-list li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 8px; }
.review-list .n { font-family: var(--mono); color: var(--gold); font-weight: 700; padding-top: 1px; }
.review-list .who { font-weight: 600; word-break: break-word; }
.review-list .who small { color: var(--teal); font-weight: 600; font-size: 0.75rem; margin-left: 6px; letter-spacing: .04em; }
.review-list .meta { grid-column: 2; color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; line-height: 1.45; }
.review-kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 0.92rem; }
.review-kv dt { color: var(--dim); }
.review-kv dd { margin: 0; overflow-wrap: anywhere; }

.privacy { display: flex; gap: 10px; align-items: flex-start; margin: 16px 4px 40px; color: var(--dim); font-size: 0.82rem; line-height: 1.5; }
.privacy svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--teal); stroke-width: 2; margin-top: 2px; }

/* ---------- success ---------- */
.success-card { margin: 36px 0 48px; padding: 30px 20px 26px; text-align: center; }
.success-check { width: 72px; height: 72px; margin: 0 auto 14px; }
.success-check circle { fill: rgba(46, 230, 182, 0.12); stroke: var(--teal); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) forwards; }
.success-check path { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-title { margin: 0; font-family: var(--mono); font-size: clamp(1rem, 4.6vw, 1.3rem); letter-spacing: 0.1em; color: var(--teal); font-weight: 700; outline: none; }
.success-lead { margin: 8px 0 22px; color: var(--muted); }

.ticket {
  text-align: left; border-radius: var(--radius); padding: 20px 18px;
  background: linear-gradient(160deg, #0c1a5e 0%, #0a1448 100%);
  border: 1px solid rgba(242, 209, 107, 0.35);
  position: relative; overflow: hidden;
}
.ticket::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  border: 18px solid rgba(242, 209, 107, 0.07);
}
.ticket-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.ticket-label { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.2em; color: var(--muted); font-weight: 700; }
.ticket-id-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ticket-id { font-family: var(--mono); font-weight: 700; font-size: clamp(2.2rem, 11vw, 3.2rem); color: var(--gold); letter-spacing: 0.04em; line-height: 1.1; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px;
  background: rgba(242, 209, 107, 0.12); border: 1px solid rgba(242, 209, 107, 0.35); color: var(--gold); font-weight: 600; font-size: 0.85rem;
}
.copy-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.ticket-team { font-size: 1.35rem; font-weight: 800; line-height: 1.25; word-break: break-word; }
.ticket-members { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.ticket-members li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-weight: 600; line-height: 1.35; }
.ticket-members .roll { font-family: var(--mono); font-weight: 700; color: var(--gold); font-size: 0.92rem; letter-spacing: 0.04em; }
.ticket-members .sep { color: var(--dim); }
.ticket-divider { border-top: 2px dashed rgba(150, 170, 255, 0.25); margin: 4px -18px 16px; }
.ticket-event-name { display: block; font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.ticket-grid { margin: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 26px; }
.ticket-grid dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; color: var(--gold); }
.ticket-grid dd { margin: 0; font-weight: 700; }
.keep-note { margin: 20px 0 4px; font-weight: 600; }
.success-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }

/* ---------- footer ---------- */
.footer { margin-top: auto; border-top: 1px solid var(--line); padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 0.82rem; }
.footer-inner { display: flex; flex-direction: column; gap: 4px; }
.footer p { margin: 0; }
.footer a { color: var(--muted); }
body.has-sticky .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- sticky CTA (mobile, home) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px max(var(--gutter), env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7, 13, 51, 0), rgba(7, 13, 51, 0.92) 35%);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { letter-spacing: 0.08em; font-weight: 800; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(3, 6, 25, 0.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-panel {
  width: 100%; max-width: 420px; max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h2 { margin: 0; font-size: 1.1rem; }
.modal-panel img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.modal-panel p { text-align: center; margin: 10px 0; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

.noscript { position: fixed; inset: auto 0 0 0; background: var(--danger); color: #fff; padding: 14px; text-align: center; font-weight: 600; }

/* ==========================================================================
   Tablet (≥ 640px)
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .brand-iitj { width: 58px; }
  .brand-ecell { width: 78px; }
  .brand-kicker { font-size: 0.78rem; }
  .brand-presents { font-size: 1.05rem; }
  .hero { padding-top: 56px; }
  .prize-row { flex-direction: row; align-items: center; gap: 36px; }
  .cta-row { flex-direction: row; align-items: center; gap: 22px; }
  .final-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 30px 32px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 30px 32px 32px; }
  .step-actions { flex-direction: row; gap: 12px; }
  .step-actions .btn { width: auto; }
  .step-actions .btn-primary { flex: 1; }
  .step-actions .btn-ghost { flex: none; }
  .stepper .dot { display: none; }
  .stepper li { font-size: 0.82rem; }
  .success-card { padding: 40px 40px 34px; }
  .ticket { padding: 24px 26px; }
  .ticket-divider { margin-left: -26px; margin-right: -26px; }
  .success-actions { flex-direction: row; justify-content: center; }
  .sticky-cta { display: none; }
  body.has-sticky .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .dial { width: 110vw; right: -40vw; top: 40px; }
}

@media (min-width: 900px) {
  .rounds { grid-template-columns: repeat(3, 1fr); }
  .round h3 { font-size: 1.25rem; }
}

/* ==========================================================================
   Desktop (≥ 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .hero { padding-top: 64px; }
  .dial { width: 900px; right: -140px; top: 90px; opacity: 0.6; }
  .market-line { top: 150px; height: 600px; }
  .round { padding: 26px 26px 30px; }
  .round h3 { font-size: 1.45rem; }
  .round:hover { transform: translateY(-4px); border-color: var(--line-strong); }
  .details { grid-template-columns: repeat(4, 1fr); }
  .details > div { border-bottom: 0; padding: 20px 24px; }
  .details > div:nth-child(2n) { border-right: 1px solid var(--line-strong); }
  .details > div:last-child { border-right: 0; }
  .section { padding-top: 88px; }
  .page-title { margin-bottom: 26px; }
}

/* Phones: calmer, fewer animated layers (saves battery/GPU). */
@media (max-width: 639px) {
  .dial-layer--ticks   { animation-duration: 45s; }
  .dial-layer--markers { animation-duration: 90s; }
  .dial-layer--rings, .dial-layer--thick, .market-line polygon { animation: none; }
  .market-line .market-flow { animation-duration: 14s; opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  .dial-layer, .market-line polygon { animation: none !important; will-change: auto; }
  .market-line .market-flow { display: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
