:root {
  --bg: #080a10;
  --panel: rgba(24, 27, 38, 0.94);
  --panel-2: #1a1d29;
  --text: #ffffff;
  --muted: rgba(236, 239, 247, 0.68);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #f13724;
  --accent-hover: #ff4a34;
  --gold: #ffc94f;
  --radius: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { min-height: 100vh; }

button, input { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 156, 255, 0.08), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(38, 232, 150, 0.08), transparent 30%),
    var(--bg);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 82px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 9, 15, 0.94);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
}

.brand {
  color: white;
  text-decoration: none;
  font-size: clamp(23px, 6vw, 34px);
  font-weight: 900;
  letter-spacing: -1.8px;
}

.season-pill {
  padding: 10px 15px;
  border-radius: 999px;
  color: #111;
  background: linear-gradient(90deg, #ff8b3d, #ffd443 35%, #45cf79 70%, #23bde7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.app-main {
  min-height: 100vh;
  padding-top: 82px;
}

.screen {
  display: none;
  position: relative;
  min-height: calc(100vh - 82px);
  overflow: hidden;
}

.screen.active {
  display: block;
  animation: fadeUp .38s ease both;
}

.centered-screen.active {
  display: grid;
  place-items: center;
  padding: 34px 18px;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(16, 28, 46, 0.3), rgba(10, 10, 17, 0.18)),
    url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1600&q=85")
    center/cover no-repeat;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(8, 9, 16, 0.18) 0%,
      rgba(8, 9, 16, 0.5) 44%,
      rgba(8, 9, 16, 0.96) 100%);
}

.screen-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  padding: 52px 0 68px;
  text-align: center;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid rgba(255, 194, 75, 0.44);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(48, 34, 15, 0.8);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.hero-content h1 {
  margin: 46px 0 22px;
  font-size: clamp(43px, 11vw, 76px);
  line-height: 1.02;
  letter-spacing: -3.2px;
  font-weight: 900;
  text-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.gradient-text {
  background: linear-gradient(90deg, #ff8a44, #ffd443 36%, #5bcc68 68%, #12c0a3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(16px, 4.2vw, 23px);
  line-height: 1.62;
}

.entry-card {
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: 0 24px 70px rgba(0,0,0,.38);
}

.entry-card input {
  display: block;
  width: 100%;
  height: 92px;
  padding: 0 26px;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
  font-size: 18px;
}

.entry-card input::placeholder { color: rgba(255,255,255,.46); }

.primary-button {
  min-height: 78px;
  border: 0;
  color: white;
  background: var(--accent);
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.primary-button:hover { background: var(--accent-hover); }
.primary-button:active { transform: scale(.99); }
.primary-button:disabled { opacity: .42; cursor: not-allowed; }

.entry-card .primary-button { width: 100%; }

.microcopy {
  margin: 15px auto 0;
  max-width: 520px;
  color: rgba(255,255,255,.42);
  font-size: 12px;
  line-height: 1.5;
}

.panel {
  width: min(560px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
  text-align: center;
}

.panel h2 {
  margin: 8px 0 12px;
  font-size: clamp(29px, 8vw, 46px);
  line-height: 1.05;
  letter-spacing: -1.8px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.muted {
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.6;
}

.spinner {
  width: 62px;
  height: 62px;
  margin: 4px auto 24px;
  border: 6px solid rgba(255,255,255,.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}

.progress-track {
  height: 10px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8c3d, #ffd443, #42cd76);
  transition: width .22s ease;
}

.avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 26px;
  background: linear-gradient(145deg, #ff8748, #f0cb43 48%, #35c98a);
  color: #111;
  font-size: 27px;
  font-weight: 900;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.reward-card {
  min-height: 112px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: white;
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.reward-card strong,
.reward-card span { display: block; }

.reward-card strong { font-size: 22px; }
.reward-card span { margin-top: 6px; color: var(--muted); font-size: 13px; }

.reward-card.selected {
  border-color: var(--gold);
  background: rgba(255, 201, 79, .11);
  box-shadow: inset 0 0 0 1px rgba(255,201,79,.2);
}

.full-width { width: 100%; border-radius: 18px; }

.text-button {
  margin-top: 14px;
  padding: 10px;
  border: 0;
  color: rgba(255,255,255,.58);
  background: transparent;
  cursor: pointer;
}

.task-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  text-align: left;
}

.task-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}

.task-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.task-box {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,.32);
  border-radius: 8px;
}

.task-item input:checked + .task-box {
  border-color: #45d483;
  background: #45d483;
  box-shadow: inset 0 0 0 5px var(--panel-2);
}

.task-item strong { display: block; }
.task-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #07120c;
  background: #4fda8d;
  font-size: 38px;
  font-weight: 900;
}

.reference-box {
  margin: 24px 0;
  padding: 16px;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255,255,255,.03);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .site-header { height: 74px; padding: 0 16px; }
  .app-main { padding-top: 74px; }
  .screen { min-height: calc(100vh - 74px); }
  .season-pill { padding: 9px 12px; font-size: 10px; }
  .hero-content { padding-top: 42px; }
  .hero-content h1 { margin-top: 42px; }
  .panel { padding: 24px 18px; }
  .reward-grid { grid-template-columns: 1fr; }
  .reward-card { min-height: 82px; }
  .status-row { flex-direction: column; align-items: center; }
}


/* Fixed reward */
.fixed-reward {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgba(255, 201, 79, 0.6);
  border-radius: 18px;
  background: rgba(255, 201, 79, 0.1);
}
.fixed-reward span,
.fixed-reward strong { display: block; }
.fixed-reward span {
  margin-bottom: 8px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}
.fixed-reward strong {
  font-size: 30px;
  color: #fff;
}

/* Instructions screen */
.instructions-screen.active {
  display: block;
  min-height: calc(100vh - 82px);
}
.instructions-bg {
  position: fixed;
  inset: 82px 0 0;
  background:
    linear-gradient(135deg, rgba(16, 28, 46, 0.18), rgba(10, 10, 17, 0.12)),
    url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1600&q=85")
    center/cover no-repeat;
  z-index: 0;
}
.instructions-shade {
  position: fixed;
  inset: 82px 0 0;
  background: rgba(7, 8, 14, .72);
  z-index: 1;
}
.instructions-wrap {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 48px 0 72px;
}
.instructions-card,
.verify-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background: rgba(14, 15, 22, .96);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.instructions-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 34px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.instructions-title-row h2 {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: -1.5px;
}
.points-pill {
  padding: 12px 18px;
  border-radius: 999px;
  color: #18bf75;
  background: rgba(0, 118, 76, .18);
  font-weight: 800;
  white-space: nowrap;
}
.instruction-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 38px 34px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.instruction-step:last-child { border-bottom: 0; }
.step-number {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}
.step-one { background: linear-gradient(145deg, #ff6a37, #ef1f1f); }
.step-two { background: linear-gradient(145deg, #16c3a7, #0b92dd); }
.step-three { background: linear-gradient(145deg, #ffc343, #ff6a35); }
.step-copy h3 {
  margin: 4px 0 10px;
  font-size: clamp(22px, 5vw, 31px);
}
.step-copy p {
  margin: 0;
  color: rgba(235,237,244,.64);
  font-size: clamp(16px, 3.8vw, 21px);
  line-height: 1.55;
}
.app-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  color: #fff;
  background: rgba(255,255,255,.04);
  text-decoration: none;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  color: #111;
  background: linear-gradient(145deg, #ff8748, #f4d34a 48%, #31d08b);
  font-weight: 900;
}
.app-link strong,
.app-link span { display: block; }
.app-link span {
  margin-top: 3px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
.code-card {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #1a1c25;
}
.event-code {
  padding: 25px 18px;
  text-align: center;
  font-size: clamp(26px, 6vw, 38px);
  font-weight: 900;
  letter-spacing: 4px;
}
.copy-button {
  width: 100%;
  min-height: 74px;
  border: 0;
  color: #fff;
  background: #05b56f;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.copy-button.copied { background: #13965f; }
.verify-card {
  margin-top: 28px;
  padding: 30px;
  text-align: center;
}
.verify-card p {
  margin: 0 auto 22px;
  max-width: 590px;
  color: rgba(235,237,244,.66);
  font-size: clamp(16px, 3.8vw, 20px);
  line-height: 1.55;
}
.verify-button {
  width: 100%;
  min-height: 82px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #06b96f;
  font-size: clamp(18px, 4.4vw, 24px);
  font-weight: 900;
  cursor: pointer;
}
.different-account {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  color: rgba(255,255,255,.65);
  background: rgba(10,11,16,.7);
  cursor: pointer;
}

@media (max-width: 600px) {
  .instructions-bg,
  .instructions-shade { inset-top: 74px; }
  .instructions-wrap { padding-top: 28px; }
  .instructions-title-row {
    padding: 22px 20px;
  }
  .instructions-title-row {
    align-items: flex-start;
  }
  .instruction-step {
    grid-template-columns: 62px 1fr;
    gap: 18px;
    padding: 28px 20px;
  }
  .step-number {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 24px;
  }
  .verify-card { padding: 24px 18px; }
}


/* 10K Points loading badge */
.reward-loading-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(100%, 590px);
  margin: 26px auto;
  padding: 24px 28px;
  border: 2px solid rgba(255, 190, 55, .28);
  border-radius: 999px;
  color: #ffc94f;
  background:
    linear-gradient(90deg, rgba(255, 177, 42, .10), rgba(255, 201, 79, .05)),
    rgba(42, 31, 17, .82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 106, .08),
    0 18px 42px rgba(0, 0, 0, .22);
  font-size: clamp(24px, 5.5vw, 38px);
  font-weight: 900;
  letter-spacing: .3px;
}

.reward-star {
  display: inline-block;
  font-size: 1.18em;
  line-height: 1;
  animation: rewardPulse 1.45s ease-in-out infinite;
}

.reward-loading-pill::after {
  content: "";
  display: inline-block;
  width: 1.1em;
  text-align: left;
  animation: loadingDots 1.4s steps(4, end) infinite;
}

@keyframes rewardPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.18); }
}

@keyframes loadingDots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%, 100% { content: "..."; }
}

@media (max-width: 520px) {
  .reward-loading-pill {
    gap: 12px;
    padding: 20px 18px;
    font-size: clamp(21px, 6.8vw, 30px);
  }
}


/* Verification failure popup/card */
.verification-failure {
  margin-top: 28px;
  padding: 28px 26px;
  border: 1px solid rgba(255, 62, 62, .48);
  border-radius: 22px;
  background: rgba(74, 18, 25, .44);
  color: #ff6b72;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 86, 86, .06);
  animation: failureReveal .32s ease both;
}

.verification-failure[hidden] {
  display: none;
}

.failure-x {
  margin-bottom: 14px;
  color: #ff2020;
  font-size: 58px;
  line-height: .8;
  font-weight: 900;
}

.verification-failure p {
  margin: 0;
  color: #ff747b;
  font-size: clamp(16px, 3.8vw, 20px);
  line-height: 1.6;
}

.verification-failure strong,
.verification-failure b {
  color: #fff;
}

.verification-failure ol {
  margin: 22px 0;
  padding-left: 26px;
  color: #ff747b;
  font-size: clamp(16px, 3.8vw, 19px);
  line-height: 1.7;
}

@keyframes failureReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
