:root {
  --rh: #00c805;
  --rh-deep: #00a304;
  --rh-dark: #008c03;
  --rh-dim: #8fd98f;
  --rh-wash: #e8f9e8;
  --rh-burst: #6bcf6b;
  --ink: #0b0e11;
  --ink-soft: #5b6168;
  --line: #d7e0d7;
  --card: #ffffff;
  --bg: #f4f7f4;
  --font: "DM Sans", system-ui, sans-serif;
  --font-price: "IBM Plex Mono", ui-monospace, monospace;
}

.price {
  font-family: var(--font-price);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  font-size: 1.05em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

@media (max-height: 780px) {
  html,
  body {
    overflow: auto;
  }
}

body {
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.45;
  background: var(--bg);
}

.shell {
  position: relative;
  z-index: 1;
  height: 100dvh;
  height: 100vh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1rem;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 0.65rem;
  min-height: 0;
}

.top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--rh);
  color: #000;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-mark img {
  display: block;
  width: 20px;
  height: 20px;
}

.brand-word {
  flex: 1;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.social {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

.btn-social[hidden] {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem 1.5rem;
  align-items: center;
  min-height: 0;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  min-height: 260px;
}

.burst {
  position: absolute;
  width: min(340px, 70vw);
  height: min(340px, 70vw);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    var(--rh) 0deg 12deg,
    var(--rh-burst) 12deg 24deg
  );
  mask-image: radial-gradient(circle, #000 28%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 72%);
  opacity: 0.95;
  z-index: 0;
}

.block-stage {
  --s: 132px;
  position: relative;
  z-index: 1;
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
  perspective: 560px;
  perspective-origin: 50% 45%;
}

.block-scene {
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
}

.lucky-block {
  width: var(--s);
  height: var(--s);
  position: relative;
  transform-style: preserve-3d;
  animation: spin-y 9s linear infinite;
}

@keyframes spin-y {
  from { transform: rotateX(-26deg) rotateY(0deg); }
  to { transform: rotateX(-26deg) rotateY(360deg); }
}

.face {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--s);
  height: var(--s);
  box-sizing: border-box;
  border: 4px solid #000;
  background: var(--rh);
  display: grid;
  place-items: center;
  backface-visibility: hidden;
}

/* corner pixels like the reference */
.face i {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  image-rendering: pixelated;
}
.face i:nth-child(2) { top: 8px; left: 8px; }
.face i:nth-child(3) { top: 8px; right: 8px; }
.face i:nth-child(4) { bottom: 8px; left: 8px; }
.face i:nth-child(5) { bottom: 8px; right: 8px; }

.feather {
  width: 54px;
  height: 54px;
  background: #000;
  mask: url("assets/robinhood-feather.svg") center / contain no-repeat;
  -webkit-mask: url("assets/robinhood-feather.svg") center / contain no-repeat;
}

.face.front  { transform: translateZ(66px); background: #00d106; }
.face.back   { transform: rotateY(180deg) translateZ(66px); background: var(--rh-deep); }
.face.right  { transform: rotateY(90deg) translateZ(66px); background: var(--rh-dark); }
.face.left   { transform: rotateY(-90deg) translateZ(66px); background: #00b304; }
.face.top    { transform: rotateX(90deg) translateZ(66px); background: #2ae02a; }
.face.bottom { transform: rotateX(-90deg) translateZ(66px); background: #007a02; }

.hero-copy .kicker {
  display: inline-flex;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--rh-wash);
  color: var(--rh-dark);
  border: 1px solid #b7e8b7;
}

.kicker.on { background: #d8f8d8; color: #067006; }
.kicker.off { background: #ffe3e3; color: #9b1c1c; border-color: #f0b4b4; }

.hero-copy h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lede {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 38ch;
}

.lede strong {
  color: var(--ink);
}

.lede em {
  font-style: normal;
  font-weight: 700;
  color: var(--rh-dark);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
}

.btn {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.2;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  background: var(--card);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--rh);
  color: #041404;
  border-color: var(--rh-deep);
}

.btn-primary .price {
  font-size: 0.95rem;
}

.btn-ghost,
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
}

.wallet-line {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.toast {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.8rem;
  max-width: 42ch;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.95rem;
}

.toast.win { background: #e7fbe7; border-color: #9fd89f; }
.toast.lose { background: #fff4e8; border-color: #f0c9a0; }
.toast.err { background: #ffecec; border-color: #f0b0b0; }

.rules {
  padding: 0.7rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  max-height: 16vh;
  overflow: auto;
}

.rules h2 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.rules ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.rules li { margin-bottom: 0.2rem; }

.rules code {
  font-family: var(--font-price);
  font-size: 0.8em;
  background: var(--rh-wash);
  color: var(--rh-dark);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

.supply {
  min-width: 0;
}

.supply-track {
  height: 10px;
  background: #dde8dd;
  border-radius: 999px;
  overflow: hidden;
}

.supply-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rh-deep), var(--rh));
  border-radius: 999px;
  transition: width 0.5s ease;
}

.supply-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.foot {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  word-break: break-all;
}

@media (max-width: 720px) {
  body { overflow: auto; }

  .shell {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto auto auto auto;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }

  .social {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    order: 3;
  }

  .top { flex-wrap: wrap; }

  .block-stage {
    --s: 110px;
    width: 200px;
    height: 200px;
  }

  .face.front  { transform: translateZ(55px); }
  .face.back   { transform: rotateY(180deg) translateZ(55px); }
  .face.right  { transform: rotateY(90deg) translateZ(55px); }
  .face.left   { transform: rotateY(-90deg) translateZ(55px); }
  .face.top    { transform: rotateX(90deg) translateZ(55px); }
  .face.bottom { transform: rotateX(-90deg) translateZ(55px); }

  .feather { width: 44px; height: 44px; }
  .rules { max-height: none; text-align: left; }
}

@media (max-height: 700px) and (min-width: 721px) {
  .hero-copy h1 { font-size: 1.55rem; }
  .lede { font-size: 0.95rem; margin-bottom: 0.7rem; }
  .btn-primary { padding: 0.65rem 0.9rem; }
}
