:root {
  --ink: #17251f;
  --muted: #68756e;
  --cream: #fff8e8;
  --paper: #fffdf8;
  --red: #df3b32;
  --red-deep: #b92125;
  --gold: #ffc95e;
  --gold-light: #ffe7a9;
  --green: #17694a;
  --line: rgba(23, 37, 31, .12);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--cream); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 214, 117, .36), transparent 33rem),
    linear-gradient(180deg, #fff9ea 0%, #fffdf8 58%, #f7f2e8 100%);
  letter-spacing: 0;
}

body.landing-active { overflow: hidden; }

button, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; overflow: hidden; }

.landing-page {
  position: fixed; z-index: 100; inset: 0; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; color: #102c27; background: #bdf578;
  opacity: 1; visibility: visible; transition: opacity .45s ease, transform .7s cubic-bezier(.2,.8,.2,1), visibility .45s;
}
.landing-page[hidden] { display: none; }
.landing-page.leaving { opacity: 0; visibility: hidden; transform: translateY(-7%) scale(1.025); pointer-events: none; }
.landing-rays { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.landing-rays::before, .landing-rays::after { content: ""; position: absolute; inset: 0; }
.landing-rays::before {
  background: conic-gradient(from 225deg at 50% 39%, rgba(255,255,255,.18) 0 13deg, transparent 13deg 43deg, rgba(255,255,255,.13) 43deg 66deg, transparent 66deg 128deg, rgba(57,148,102,.1) 128deg 150deg, transparent 150deg 213deg, rgba(255,255,255,.16) 213deg 242deg, transparent 242deg 298deg, rgba(57,148,102,.08) 298deg 325deg, transparent 325deg 360deg);
}
.landing-rays::after {
  opacity: .33; background-image: radial-gradient(rgba(16,44,39,.24) .65px, transparent .65px); background-size: 7px 7px;
}
.landing-topline {
  position: relative; z-index: 3; min-height: 84px; padding: 28px clamp(24px, 4vw, 58px);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.landing-wordmark { font-size: clamp(23px, 2.6vw, 34px); font-weight: 950; letter-spacing: 4px; }
.landing-center {
  position: relative; z-index: 3; width: min(100%, 600px); min-height: 560px; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.landing-title { position: absolute; left: -9999px; }
.open-prompt {
  position: relative; z-index: 7; margin-bottom: 34px; min-width: 238px; min-height: 75px; padding: 0 30px;
  color: #fff; background: #102c27; border: 0; border-radius: 8px; box-shadow: 0 12px 28px rgba(16,44,39,.16);
  font-size: 24px; font-weight: 900; cursor: pointer; animation: promptFloat 1.8s ease-in-out infinite;
}
.open-prompt i { position: absolute; left: 50%; bottom: -17px; width: 34px; height: 18px; background: #102c27; clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateX(-50%); }
.eth-orb {
  position: relative; z-index: 6; width: 168px; height: 168px; padding: 0; display: grid; place-items: center;
  color: #fff; background: #17694f; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 17px rgba(255,255,255,.13), 0 22px 45px rgba(23,105,79,.2); transition: transform .2s ease;
}
.eth-orb:hover { transform: scale(1.045); }
.eth-orb:focus-visible, .open-prompt:focus-visible, .tap-cursor:focus-visible { outline: 4px solid #fff; outline-offset: 7px; }
.orb-ring { position: absolute; inset: -29px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; animation: ringPulse 2.2s ease-out infinite; }
.orb-gem { position: relative; width: 72px; height: 92px; display: block; object-fit: contain; filter: invert(1) drop-shadow(0 5px 5px rgba(0,0,0,.12)); }
.orb-spark { position: absolute; right: -27px; width: 12px; height: 4px; background: #102c27; border-radius: 999px; }
.spark-one { top: 43px; transform: rotate(-72deg); }
.spark-two { top: 65px; right: -34px; }
.spark-three { top: 86px; transform: rotate(65deg); }
.tap-cursor {
  position: absolute; z-index: 8; top: 52%; left: calc(50% + 59px); width: 90px; height: 90px; padding: 0;
  color: #fff; background: transparent; border: 0; font-size: 70px; line-height: 1; cursor: pointer;
  filter: grayscale(1) brightness(3) drop-shadow(3px 4px 0 #102c27); transform: rotate(-25deg); animation: tapMotion 1.15s ease-in-out infinite;
}
.landing-prize { min-height: 118px; margin-top: 40px; display: flex; align-items: baseline; justify-content: center; color: #102c27; font-variant-numeric: tabular-nums; }
.landing-prize strong { font-size: clamp(84px, 11vw, 130px); line-height: .95; font-weight: 950; }
.landing-caption { margin: 11px 0 0; color: rgba(16,44,39,.72); font-size: clamp(18px, 2vw, 28px); }
.landing-bottom { position: relative; z-index: 3; padding: 26px 24px 30px; display: flex; align-items: center; justify-content: center; gap: 14px; color: rgba(16,44,39,.62); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.bottom-line { width: 54px; height: 1px; background: rgba(16,44,39,.28); }
.landing-cross { position: absolute; z-index: 2; width: 15px; height: 15px; opacity: .4; }
.landing-cross::before, .landing-cross::after { content: ""; position: absolute; background: #17694f; border-radius: 2px; }
.landing-cross::before { left: 6px; width: 3px; height: 15px; }
.landing-cross::after { top: 6px; width: 15px; height: 3px; }
.cross-one { left: 12%; top: 31%; transform: rotate(21deg); }
.cross-two { right: 11%; bottom: 20%; transform: rotate(-14deg) scale(.7); }

.reward-page { display: none; min-height: 100vh; opacity: 0; transform: translateY(20px); }
.reward-page.active { display: block; animation: rewardPageIn .65s .18s ease forwards; }
.reward-page[aria-hidden="false"] { display: block; }

.topbar {
  width: min(100% - 40px, 1120px);
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 30px; height: 30px; display: grid; place-items: center;
  color: #fff; background: var(--ink); transform: rotate(45deg); border-radius: 7px;
}
.brand-mark::first-letter { transform: rotate(-45deg); }

.experience { position: relative; width: min(100% - 32px, 1120px); margin: 0 auto; padding: 54px 0 70px; }
.intro { text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: 2.4px; }
h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: 0; }
h1 span { color: var(--red); }
.subtitle { margin: 18px 0 0; color: var(--muted); font-size: 16px; }

.prize-stage { position: relative; height: 450px; margin-top: 8px; display: grid; place-items: center; isolation: isolate; }
.halo { position: absolute; border-radius: 50%; border: 1px solid rgba(223, 59, 50, .1); z-index: -1; }
.halo-one { width: 360px; height: 360px; animation: breathe 3s ease-in-out infinite; }
.halo-two { width: 460px; height: 460px; border-color: rgba(223, 59, 50, .05); animation: breathe 3s .5s ease-in-out infinite; }

.envelope {
  position: relative; width: 270px; height: 190px; margin-top: 76px; padding: 0; border: 0;
  background: transparent; cursor: pointer; perspective: 1000px; transition: transform .2s ease;
}
.envelope:hover { transform: translateY(-4px); }
.envelope:active { transform: scale(.98); }
.envelope:focus-visible { outline: 3px solid var(--green); outline-offset: 10px; border-radius: 10px; }
.envelope-shadow { position: absolute; left: 9%; right: 9%; bottom: -16px; height: 30px; background: rgba(86, 34, 23, .2); filter: blur(18px); border-radius: 50%; }
.envelope-back, .envelope-front, .envelope-flap {
  position: absolute; inset: 0; display: block; border-radius: 11px;
}
.envelope-back { background: linear-gradient(145deg, #f05542, #c7292d); box-shadow: 0 24px 50px rgba(147, 38, 30, .23); }
.envelope-front {
  z-index: 4; overflow: hidden; background: linear-gradient(155deg, #e23e34 0%, #bd252a 100%);
  clip-path: polygon(0 14%, 50% 60%, 100% 14%, 100% 100%, 0 100%);
}
.envelope-front::before, .envelope-front::after { content: ""; position: absolute; bottom: -55px; width: 230px; height: 180px; background: rgba(255,255,255,.035); transform: rotate(45deg); }
.envelope-front::before { left: -112px; }
.envelope-front::after { right: -112px; }
.envelope-flap {
  z-index: 6; height: 120px; transform-origin: top; background: linear-gradient(165deg, #f65a45, #d73231);
  clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 5px 4px rgba(83, 15, 12, .14));
  transition: transform .8s cubic-bezier(.2,.75,.18,1);
}
.seal {
  position: absolute; z-index: 7; left: 50%; top: 76px; width: 58px; height: 58px; margin-left: -29px;
  display: grid; place-items: center; border-radius: 50%; color: #96531a;
  background: linear-gradient(145deg, #ffe096, #e9a932); border: 4px solid rgba(255,255,255,.25);
  box-shadow: 0 7px 15px rgba(88, 38, 10, .22); transition: transform .45s ease, opacity .3s ease;
}
.seal span { font-size: 20px; transform: rotate(45deg); }
.envelope-card {
  position: absolute; z-index: 3; left: 24px; right: 24px; top: 13px; height: 160px; padding-top: 23px;
  display: flex; flex-direction: column; align-items: center; color: var(--ink); background: var(--paper);
  border: 1px solid rgba(255, 201, 94, .6); border-radius: 9px; box-shadow: 0 8px 24px rgba(88,38,10,.14);
  transition: transform 1s .25s cubic-bezier(.2,.8,.2,1);
}
.envelope-card strong { margin-top: 7px; font-size: 18px; }
.envelope-card small { margin-top: 2px; color: #a87831; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.eth-gem { position: relative; width: 38px; height: 50px; display: block; }
.eth-gem::before, .eth-gem::after { content: ""; position: absolute; left: 3px; width: 32px; background: var(--ink); }
.eth-gem::before { top: 0; height: 28px; clip-path: polygon(50% 0, 100% 100%, 50% 74%, 0 100%); }
.eth-gem::after { bottom: 0; height: 19px; opacity: .78; clip-path: polygon(0 0, 50% 26%, 100% 0, 50% 100%); }

.tap-hint {
  position: absolute; z-index: 10; left: 50%; top: -58px; transform: translateX(-50%); white-space: nowrap;
  padding: 11px 17px; color: #fff; background: var(--ink); border-radius: 8px; font-size: 14px; font-weight: 800;
  box-shadow: 0 10px 25px rgba(23,37,31,.2); animation: nudge 1.7s ease-in-out infinite;
}
.tap-hint::after { content: ""; position: absolute; left: 50%; bottom: -8px; border: 8px solid transparent; border-top-color: var(--ink); border-bottom: 0; transform: translateX(-50%); }
.finger { margin-right: 5px; }

.amount-panel {
  position: absolute; top: 102px; z-index: 2; text-align: center; opacity: 0; transform: translateY(22px) scale(.92);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.amount-panel > p { margin: 0 0 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.amount-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-variant-numeric: tabular-nums; }
.amount { min-width: 185px; font-size: 68px; line-height: 1; font-weight: 900; }
.unit { color: var(--red); font-size: 20px; font-weight: 900; }
.rolling-status { margin-top: 13px; display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--green); font-size: 12px; font-weight: 800; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink .8s ease-in-out infinite; }

.progress-wrap { position: absolute; z-index: 9; bottom: 20px; width: min(320px, 80vw); display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity .3s ease; }
.progress-track { flex: 1; height: 6px; overflow: hidden; background: rgba(23,37,31,.1); border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: inherit; }
.countdown { min-width: 29px; color: var(--muted); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }

.coin { position: absolute; z-index: 0; display: grid; place-items: center; border-radius: 50%; color: #9d6417; background: linear-gradient(145deg, #ffe69b, #eab03d); border: 4px solid #fff2c7; box-shadow: 0 8px 20px rgba(118,75,13,.13); opacity: .7; }
.coin-one { width: 54px; height: 54px; left: calc(50% - 220px); top: 105px; transform: rotate(-16deg); }
.coin-two { width: 38px; height: 38px; right: calc(50% - 200px); top: 175px; transform: rotate(18deg); }

.prize-stage.opening .tap-hint, .prize-stage.opened .tap-hint { opacity: 0; pointer-events: none; animation: none; }
.prize-stage.opening .envelope, .prize-stage.opened .envelope { cursor: default; transform: translateY(105px) scale(.78); }
.prize-stage.opening .envelope-flap, .prize-stage.opened .envelope-flap { transform: rotateX(178deg); z-index: 2; }
.prize-stage.opening .seal, .prize-stage.opened .seal { transform: scale(.2) rotate(90deg); opacity: 0; }
.prize-stage.opening .envelope-card, .prize-stage.opened .envelope-card { transform: translateY(-80px); }
.prize-stage.opening .amount-panel, .prize-stage.opened .amount-panel { opacity: 1; transform: translateY(0) scale(1); }
.prize-stage.opening .progress-wrap { opacity: 1; }
.prize-stage.opened .progress-wrap { opacity: 0; }
.prize-stage.opened .amount { animation: rewardPop .7s cubic-bezier(.2,1.5,.4,1); color: var(--red); }
.prize-stage.opened .status-dot { animation: none; background: var(--gold); }

.claim-panel {
  width: min(100%, 620px); max-height: 0; margin: 0 auto; padding: 0 32px; overflow: hidden; opacity: 0;
  background: rgba(255,255,255,.72); border: 1px solid rgba(23,37,31,.1); border-radius: 8px;
  box-shadow: 0 22px 60px rgba(68, 52, 22, .08); transform: translateY(24px);
  transition: max-height .9s ease, opacity .5s ease, transform .7s ease, padding .7s ease;
}
.claim-panel.visible { max-height: 720px; margin-top: -12px; padding: 30px 32px 28px; opacity: 1; transform: translateY(0); }
.claim-heading { display: flex; align-items: center; gap: 14px; }
.check-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-weight: 900; }
.claim-kicker { margin: 0 0 2px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.claim-heading h2 { margin: 0; font-size: 25px; }
.terms-box { margin: 24px 0 19px; padding: 16px 18px; background: #fff7df; border-left: 3px solid var(--gold); border-radius: 0 7px 7px 0; }
.terms-box p { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.terms-box strong { font-size: 15px; line-height: 1.65; }
.claim-panel label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
textarea {
  width: 100%; resize: none; padding: 14px 15px; color: var(--ink); background: rgba(255,255,255,.8);
  border: 1px solid rgba(23,37,31,.16); border-radius: 7px; outline: none; line-height: 1.6; transition: border-color .2s, box-shadow .2s;
}
textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,105,74,.1); }
textarea.valid { border-color: var(--green); background: rgba(235,249,241,.75); }
textarea.invalid { border-color: var(--red); }
.input-meta { min-height: 30px; padding-top: 7px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.input-meta .good { color: var(--green); font-weight: 800; }
.input-meta .bad { color: var(--red); font-weight: 800; }
.claim-button {
  width: 100%; min-height: 52px; padding: 0 19px; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; background: var(--ink); border: 0; border-radius: 7px; font-weight: 900; cursor: pointer; transition: transform .2s, opacity .2s, background .2s;
}
.claim-button:not(:disabled):hover { transform: translateY(-2px); background: var(--green); }
.claim-button:disabled { opacity: .32; cursor: not-allowed; }
.claim-button .arrow { font-size: 22px; }
.disclaimer { margin: 15px 0 0; color: #8b928e; font-size: 10px; line-height: 1.6; text-align: center; }

.success-toast {
  position: fixed; z-index: 30; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: min(calc(100% - 32px), 380px);
  padding: 15px 18px; display: flex; align-items: center; gap: 12px; color: #fff; background: var(--ink); border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23,37,31,.26); opacity: 0; pointer-events: none; transform: translate(-50%, 24px); transition: .35s ease;
}
.success-toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-check { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink); background: var(--gold); border-radius: 50%; font-weight: 900; }
.success-toast strong, .success-toast small { display: block; }
.success-toast strong { font-size: 14px; }
.success-toast small { margin-top: 2px; color: rgba(255,255,255,.66); font-size: 11px; }

.confetti { position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; top: 40%; width: 8px; height: 14px; opacity: 0; animation: confettiFly 1.8s ease-out forwards; }

@keyframes breathe { 50% { transform: scale(1.045); opacity: .5; } }
@keyframes nudge { 50% { transform: translate(-50%, -7px); } }
@keyframes blink { 50% { opacity: .25; transform: scale(.7); } }
@keyframes rewardPop { 0% { transform: scale(.75); } 60% { transform: scale(1.13); } 100% { transform: scale(1); } }
@keyframes confettiFly {
  0% { opacity: 1; transform: translate(0,0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}
@keyframes promptFloat { 50% { transform: translateY(-7px); } }
@keyframes ringPulse { 0% { opacity: .7; transform: scale(.88); } 75%, 100% { opacity: 0; transform: scale(1.18); } }
@keyframes tapMotion { 50% { transform: translate(-8px, -9px) rotate(-25deg); } }
@keyframes rewardPageIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
  .landing-topline { min-height: 68px; padding: 22px 22px; }
  .landing-wordmark { font-size: 24px; letter-spacing: 3px; }
  .landing-center { min-height: 520px; justify-content: center; transform: translateY(-7px); }
  .open-prompt { min-width: 202px; min-height: 65px; margin-bottom: 30px; font-size: 21px; }
  .eth-orb { width: 142px; height: 142px; }
  .orb-gem { transform: scale(.84); }
  .tap-cursor { top: 50%; left: calc(50% + 45px); width: 72px; height: 72px; font-size: 58px; }
  .landing-prize { min-height: 87px; margin-top: 34px; }
  .landing-prize strong { font-size: 84px; }
  .landing-caption { margin-top: 13px; font-size: 19px; }
  .landing-bottom { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .topbar { width: calc(100% - 32px); height: 62px; }
  .experience { width: calc(100% - 24px); padding-top: 36px; }
  h1 { font-size: 38px; }
  .subtitle { font-size: 14px; }
  .prize-stage { height: 410px; }
  .halo-one { width: 300px; height: 300px; }
  .halo-two { width: 390px; height: 390px; }
  .envelope { width: 236px; height: 166px; }
  .envelope-card { left: 21px; right: 21px; height: 140px; padding-top: 16px; }
  .envelope-flap { height: 106px; }
  .seal { top: 67px; width: 52px; height: 52px; margin-left: -26px; }
  .amount-panel { top: 85px; }
  .amount { min-width: 151px; font-size: 57px; }
  .unit { font-size: 17px; }
  .prize-stage.opening .envelope, .prize-stage.opened .envelope { transform: translateY(100px) scale(.74); }
  .claim-panel.visible { margin-top: 0; padding: 24px 20px 22px; }
  .claim-heading h2 { font-size: 22px; }
  .coin-one { left: 8px; }
  .coin-two { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Reward protocol redesign */
.reward-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #f0f5f1;
  background: #080c0a;
}
.reward-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154, 255, 126, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 255, 126, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.reward-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 35%, rgba(91, 255, 158, .08), transparent 30rem);
}
.reward-page.active {
  display: block;
  opacity: 1;
  transform: none;
  animation: none;
}

.reward-page .topbar {
  position: relative;
  z-index: 5;
  width: min(100% - 48px, 1240px);
  height: 78px;
  border-bottom-color: rgba(214, 255, 199, .13);
}
.reward-page .brand { gap: 12px; }
.protocol-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #9aff7e;
  border-radius: 3px;
  box-shadow: 0 0 24px rgba(154, 255, 126, .16);
}
.protocol-mark img { width: 17px; height: 23px; filter: none; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy strong { color: #f2f7f3; font-size: 13px; }
.brand-copy small { color: #789184; font-size: 8px; font-weight: 800; letter-spacing: 1.6px; }

.reward-page .experience {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1240px);
  padding: 52px 0 90px;
}
.reward-page .intro { text-align: left; }
.reward-page .eyebrow {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aff7e;
  font-size: 9px;
  letter-spacing: 2.2px;
}
.reward-page .eyebrow span { width: 28px; height: 1px; background: #9aff7e; opacity: .45; }
.reward-page h1 {
  max-width: 760px;
  color: #f3f7f4;
  font-size: clamp(36px, 5vw, 68px);
  line-height: .99;
}
.reward-page h1 span:first-child { color: #f3f7f4; }
.reward-page h1 span:last-child { color: #9aff7e; }
.reward-page .subtitle { margin-top: 17px; color: #7f9187; font-size: 13px; }

.reward-page .prize-stage {
  position: relative;
  height: 590px;
  margin-top: 42px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(210, 255, 198, .14);
  border-radius: 4px;
  background: #0b110e;
  isolation: isolate;
  box-shadow: 0 35px 90px rgba(0,0,0,.35), inset 0 0 90px rgba(61, 255, 138, .025);
}
.tech-mesh {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image:
    linear-gradient(rgba(137, 255, 175, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 255, 175, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, #000, transparent 77%);
}
.tech-mesh::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(154, 255, 126, .13);
}
.tech-mesh::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(154, 255, 126, .13);
}
.scan-beam {
  position: absolute;
  z-index: 15;
  left: 7%;
  right: 7%;
  top: 20%;
  height: 1px;
  pointer-events: none;
  background: #9aff7e;
  box-shadow: 0 0 15px #9aff7e, 0 8px 35px rgba(154,255,126,.22);
  opacity: .55;
  animation: scanStage 3.3s linear infinite;
}
.stage-corner { position: absolute; z-index: 10; width: 34px; height: 34px; opacity: .65; }
.corner-tl { left: 18px; top: 18px; border-left: 1px solid #9aff7e; border-top: 1px solid #9aff7e; }
.corner-tr { right: 18px; top: 18px; border-right: 1px solid #9aff7e; border-top: 1px solid #9aff7e; }
.corner-bl { left: 18px; bottom: 18px; border-left: 1px solid #9aff7e; border-bottom: 1px solid #9aff7e; }
.corner-br { right: 18px; bottom: 18px; border-right: 1px solid #9aff7e; border-bottom: 1px solid #9aff7e; }
.telemetry {
  position: absolute;
  z-index: 11;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #52665b;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 1.2px;
  writing-mode: vertical-rl;
}
.telemetry i { width: 3px; height: 3px; background: #ff9f43; border-radius: 50%; }
.telemetry-left { left: 20px; transform: translateY(-50%) rotate(180deg); }
.telemetry-right { right: 20px; transform: translateY(-50%); }

.reward-page .halo {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(154, 255, 126, .16);
  border-radius: 50%;
}
.reward-page .halo::before, .reward-page .halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #9aff7e;
  box-shadow: 0 0 12px #9aff7e;
}
.reward-page .halo::before { left: 8%; top: 12%; width: 5px; height: 5px; }
.reward-page .halo::after { right: 12%; bottom: 7%; width: 3px; height: 3px; }
.reward-page .halo-one { width: 370px; height: 370px; animation: techOrbit 12s linear infinite; }
.reward-page .halo-two { width: 500px; height: 500px; border-color: rgba(79, 203, 255, .09); animation: techOrbit 18s linear reverse infinite; }
.orbit-node { position: absolute; z-index: 1; border: 1px solid rgba(154,255,126,.32); background: #0d1712; transform: rotate(45deg); }
.node-one { left: calc(50% - 260px); top: 34%; width: 12px; height: 12px; box-shadow: 0 0 16px rgba(154,255,126,.35); }
.node-two { right: calc(50% - 280px); top: 47%; width: 8px; height: 8px; border-color: rgba(79,203,255,.55); }
.node-three { left: calc(50% - 205px); bottom: 18%; width: 6px; height: 6px; border-color: rgba(255,159,67,.55); }

.reward-page .amount-panel {
  top: 62px;
  z-index: 9;
  width: 100%;
  color: #f4f8f5;
}
.reward-page .amount-panel > p {
  margin-bottom: 7px;
  color: #82968a;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.reward-page .amount-row { gap: 12px; }
.reward-page .amount {
  min-width: 268px;
  color: #f4f8f5;
  font-size: 86px;
  font-weight: 750;
  letter-spacing: 0;
  text-shadow: 0 0 30px rgba(154,255,126,.08);
}
.reward-page .unit { color: #9aff7e; font-size: 18px; letter-spacing: 1px; }
.reward-page .rolling-status { margin-top: 11px; color: #84f0c1; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.reward-page .status-dot { background: #ff9f43; box-shadow: 0 0 10px rgba(255,159,67,.65); }

.reward-page .envelope {
  width: 286px;
  height: 196px;
  margin-top: 180px;
  filter: drop-shadow(0 28px 38px rgba(0,0,0,.5));
}
.reward-page .envelope:hover { transform: none; }
.reward-page .envelope-shadow { background: rgba(0,0,0,.65); }
.reward-page .envelope-back {
  background: #121b16;
  border: 1px solid rgba(154,255,126,.32);
  border-radius: 4px;
  box-shadow: inset 0 0 36px rgba(154,255,126,.035);
}
.reward-page .envelope-front {
  background: linear-gradient(150deg, #101a14 0%, #17251d 100%);
  border: 1px solid rgba(154,255,126,.22);
  border-radius: 4px;
  clip-path: polygon(0 14%, 50% 61%, 100% 14%, 100% 100%, 0 100%);
}
.reward-page .envelope-front::before, .reward-page .envelope-front::after { background: rgba(154,255,126,.022); }
.reward-page .envelope-flap {
  height: 124px;
  background: #1a2a20;
  border-top: 1px solid rgba(154,255,126,.42);
  border-radius: 4px;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.28));
}
.reward-page .seal {
  top: 78px;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  color: #08100b;
  background: #9aff7e;
  border: 0;
  box-shadow: 0 0 26px rgba(154,255,126,.35);
}
.reward-page .envelope-card {
  left: 25px;
  right: 25px;
  top: 12px;
  height: 168px;
  padding-top: 26px;
  color: #0c120e;
  background: #eef4ef;
  border: 0;
  border-radius: 3px;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.card-eth-mark { width: 37px; height: 48px; object-fit: contain; }
.reward-page .envelope-card strong { margin-top: 9px; font-size: 15px; letter-spacing: 1px; }
.reward-page .envelope-card small { color: #587063; font-size: 7px; letter-spacing: 1.7px; }
.reward-page .tap-hint {
  top: -48px;
  padding: 8px 12px;
  color: #09110b;
  background: #9aff7e;
  border: 1px solid #c6ffb6;
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(154,255,126,.18);
  font-size: 9px;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.reward-page .tap-hint::after { border-top-color: #9aff7e; }
.reward-page .progress-wrap { bottom: 31px; width: min(460px, 68vw); gap: 15px; }
.reward-page .progress-track { height: 3px; background: rgba(255,255,255,.09); border-radius: 0; }
.reward-page .progress-track span { background: #9aff7e; border-radius: 0; box-shadow: 0 0 12px rgba(154,255,126,.4); }
.reward-page .countdown { color: #a4b5aa; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; }

.reward-page .prize-stage.opening .envelope,
.reward-page .prize-stage.opened .envelope { transform: translateY(115px) scale(.72); }
.reward-page .prize-stage.opening .envelope-card,
.reward-page .prize-stage.opened .envelope-card { transform: translateY(-86px); }
.reward-page .prize-stage.opened .amount { color: #9aff7e; text-shadow: 0 0 30px rgba(154,255,126,.25); }
.reward-page .prize-stage.opened .status-dot { background: #9aff7e; box-shadow: 0 0 10px rgba(154,255,126,.65); }
.reward-page .prize-stage.opened .scan-beam { opacity: .12; animation-duration: 7s; }

.reward-page .claim-panel {
  width: 100%;
  max-height: 0;
  margin: 22px auto 0;
  padding: 0 34px;
  color: #edf3ef;
  background: #0d1410;
  border: 1px solid rgba(210,255,198,.14);
  border-radius: 4px;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.reward-page .claim-panel.visible {
  max-height: 780px;
  margin-top: 22px;
  padding: 32px 34px 24px;
}
.reward-page .claim-heading { padding-bottom: 25px; border-bottom: 1px solid rgba(210,255,198,.1); }
.reward-page .check-icon {
  position: relative;
  width: 46px;
  height: 46px;
  color: #071008;
  background: #9aff7e;
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(154,255,126,.18);
}
.reward-page .check-icon::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(8,16,10,.3); }
.reward-page .check-icon span { position: relative; z-index: 1; }
.reward-page .claim-kicker { color: #9aff7e; font-size: 9px; letter-spacing: 1.7px; }
.reward-page .claim-heading h2 { color: #f4f8f5; font-size: 27px; }
.claim-content {
  padding-top: 27px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
  gap: 48px;
  align-items: start;
}
.reward-page .terms-box {
  margin: 0;
  padding: 3px 0 3px 20px;
  background: transparent;
  border-left: 2px solid #ff9f43;
  border-radius: 0;
}
.reward-page .terms-box p { margin-bottom: 12px; color: #789084; font-size: 10px; letter-spacing: .4px; }
.reward-page .terms-box strong { color: #dce8e0; font-size: 15px; line-height: 1.75; font-weight: 550; }
.claim-form { min-width: 0; }
.reward-page .claim-panel label { color: #93a69b; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.reward-page textarea {
  min-height: 94px;
  color: #f0f5f1;
  background: #080d0a;
  border-color: rgba(211,255,199,.17);
  border-radius: 3px;
  font-size: 13px;
}
.reward-page textarea:focus { border-color: #9aff7e; box-shadow: 0 0 0 2px rgba(154,255,126,.09); }
.reward-page textarea.valid { border-color: #9aff7e; background: rgba(154,255,126,.035); }
.reward-page .input-meta { color: #65786d; font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; }
.reward-page .input-meta .good { color: #9aff7e; }
.reward-page .input-meta .bad { color: #ff806f; }
.reward-page .claim-button {
  min-height: 50px;
  color: #071008;
  background: #9aff7e;
  border: 1px solid #caffba;
  border-radius: 3px;
  box-shadow: 0 0 24px rgba(154,255,126,.1);
}
.reward-page .claim-button:not(:disabled):hover { color: #071008; background: #b9ffa5; }
.reward-page .claim-button:disabled { color: #839188; background: #1b2520; border-color: rgba(255,255,255,.05); opacity: 1; }
.reward-page .disclaimer { margin-top: 23px; color: #56675d; border-top: 1px solid rgba(210,255,198,.07); padding-top: 16px; }
.reward-page .success-toast { color: #071008; background: #9aff7e; border: 1px solid #caffba; border-radius: 3px; }
.reward-page .toast-check { color: #9aff7e; background: #0a110d; }
.reward-page .success-toast small { color: rgba(7,16,8,.62); }
.reward-page .confetti-piece { width: 5px; height: 10px; }

@keyframes scanStage {
  0% { top: 11%; opacity: 0; }
  10%, 90% { opacity: .52; }
  100% { top: 88%; opacity: 0; }
}
@keyframes techOrbit { to { transform: rotate(360deg); } }

/* Layered envelope shell */
.reward-page .envelope {
  perspective: 1100px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 32px 34px rgba(0,0,0,.48));
}
.reward-page .envelope-shadow {
  left: 4%;
  right: 4%;
  bottom: -26px;
  height: 38px;
  background: rgba(0,0,0,.84);
  filter: blur(20px);
}
.reward-page .envelope-back {
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(145deg, #203b2b 0%, #112319 48%, #0b1710 100%);
  border: 1px solid rgba(176,255,149,.52);
  border-radius: 5px;
  box-shadow: inset 0 1px rgba(255,255,255,.12), inset 0 0 48px rgba(154,255,126,.08), 0 0 30px rgba(80,255,138,.08);
}
.reward-page .envelope-back::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(185,255,161,.13);
  border-radius: 2px;
}
.reward-page .envelope-liner {
  position: absolute;
  z-index: 2;
  inset: 4px;
  display: block;
  background: linear-gradient(155deg, #416444, #172e20 68%);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  opacity: .72;
}
.reward-page .envelope-card {
  z-index: 3;
  left: 9%;
  right: 9%;
  top: 12px;
  height: 168px;
  padding-top: 29px;
  overflow: hidden;
  color: #101911;
  background: linear-gradient(145deg, #f5f8f1 0%, #e3ece1 100%);
  border: 1px solid rgba(232,255,220,.9);
  border-radius: 5px 5px 3px 3px;
  clip-path: polygon(0 0,100% 0,100% 79%,50% 100%,0 79%);
  box-shadow: 0 14px 34px rgba(0,0,0,.4), inset 0 0 0 5px rgba(30,65,42,.035);
  transition: transform 1.05s .25s cubic-bezier(.17,.75,.24,1), box-shadow .7s ease;
}
.reward-page .envelope-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(54,101,63,.16);
  pointer-events: none;
}
.reward-page .envelope-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 21%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66,116,68,.18), transparent);
}
.reward-page .card-chip {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 19px;
  height: 3px;
  transform: translateX(-50%);
  background: #88a980;
  border-radius: 10px;
}
.reward-page .card-eth-mark {
  position: relative;
  z-index: 1;
  width: 39px;
  height: 53px;
  margin-top: 2px;
  filter: none;
}
.reward-page .envelope-card strong {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: #14251a;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 2px;
}
.reward-page .envelope-card small {
  position: relative;
  z-index: 1;
  color: #5e7962;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 1.9px;
}
.reward-page .card-code {
  position: absolute;
  bottom: 24px;
  color: #718475;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  letter-spacing: 1.4px;
}
.reward-page .envelope-fold {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  pointer-events: none;
}
.reward-page .fold-left {
  z-index: 4;
  background: linear-gradient(115deg, #273e2d, #14251a 78%);
  clip-path: polygon(0 12%, 51% 52%, 0 100%);
}
.reward-page .fold-right {
  z-index: 4;
  background: linear-gradient(245deg, #314934, #17271c 77%);
  clip-path: polygon(100% 12%, 49% 52%, 100% 100%);
}
.reward-page .envelope-front {
  z-index: 5;
  overflow: hidden;
  background: linear-gradient(145deg, #314d35 0%, #172c1d 52%, #102117 100%);
  clip-path: polygon(0 27%, 50% 59%, 100% 27%, 50% 100%);
  filter: drop-shadow(0 -1px 1px rgba(172,255,148,.5));
}
.reward-page .envelope-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(136deg, transparent 49.7%, rgba(182,255,150,.22) 50%, transparent 50.4%);
  opacity: .65;
}
.reward-page .envelope-front::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: linear-gradient(42deg, transparent 49.5%, rgba(0,0,0,.28) 50%, transparent 50.5%);
}
.reward-page .envelope-front i { display: none; }
.reward-page .envelope-flap {
  z-index: 6;
  height: 122px;
  transform-origin: 50% 0;
  backface-visibility: visible;
  background: linear-gradient(160deg, #405e43 0%, #253b29 72%, #1b3021 100%);
  clip-path: polygon(0 0,100% 0,50% 100%);
  border-top: 1px solid rgba(204,255,177,.52);
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.4));
}
.reward-page .seal {
  z-index: 8;
  top: 67px;
  width: 43px;
  height: 43px;
  margin-left: -21px;
  color: #d6ffbd;
  background: #1b3321;
  border: 1px solid rgba(199,255,168,.82);
  box-shadow: 0 0 0 4px rgba(24,48,30,.85), 0 0 20px rgba(154,255,126,.3);
}
.reward-page .seal span { font-size: 15px; }
.reward-page .prize-stage.opening .envelope-card,
.reward-page .prize-stage.opened .envelope-card {
  transform: translateY(-113px) rotateX(5deg) scale(1.03);
}
.reward-page .prize-stage.opening .envelope-flap,
.reward-page .prize-stage.opened .envelope-flap { transform: rotateX(180deg); }
.reward-page .prize-stage.opening .seal,
.reward-page .prize-stage.opened .seal { transform: scale(.25) rotate(100deg); opacity: 0; }

@media (max-width: 760px) {
  .reward-page .envelope-card { top: 12px; height: 140px; padding-top: 22px; }
  .reward-page .card-eth-mark { width: 33px; height: 43px; }
  .reward-page .envelope-card strong { font-size: 14px; }
  .reward-page .envelope-card small { font-size: 6px; }
  .reward-page .card-code { bottom: 19px; }
  .reward-page .seal { top: 57px; width: 37px; height: 37px; margin-left: -18px; }
  .reward-page .prize-stage.opening .envelope-card,
  .reward-page .prize-stage.opened .envelope-card { transform: translateY(-98px) rotateX(5deg) scale(1.03); }
}

@media (max-width: 760px) {
  .reward-page .topbar { width: calc(100% - 28px); height: 66px; }
  .protocol-mark { width: 32px; height: 32px; }
  .brand-copy strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .brand-copy small { font-size: 7px; }
  .reward-page .experience { width: calc(100% - 24px); padding: 34px 0 60px; }
  .reward-page h1 { font-size: 39px; }
  .reward-page .subtitle { max-width: 320px; line-height: 1.5; }
  .reward-page .prize-stage { height: 540px; margin-top: 30px; }
  .telemetry { display: none; }
  .reward-page .halo-one { width: 300px; height: 300px; }
  .reward-page .halo-two { width: 410px; height: 410px; }
  .reward-page .amount-panel { top: 58px; }
  .reward-page .amount { min-width: 190px; font-size: 64px; }
  .reward-page .unit { font-size: 14px; }
  .reward-page .envelope { width: 236px; height: 164px; margin-top: 170px; }
  .reward-page .envelope-flap { height: 104px; }
  .reward-page .envelope-card { left: 21px; right: 21px; height: 140px; padding-top: 18px; }
  .reward-page .seal { top: 66px; width: 48px; height: 48px; margin-left: -24px; }
  .reward-page .prize-stage.opening .envelope,
  .reward-page .prize-stage.opened .envelope { transform: translateY(107px) scale(.72); }
  .reward-page .progress-wrap { bottom: 25px; width: min(320px, 76vw); }
  .reward-page .claim-panel.visible { padding: 25px 20px 20px; }
  .claim-content { grid-template-columns: 1fr; gap: 26px; }
  .reward-page .claim-heading h2 { font-size: 22px; }
  .reward-page .terms-box strong { font-size: 13px; }
}
