:root {
  --bg: #f7efe5;
  --surface: rgba(255, 249, 240, 0.86);
  --surface-strong: #fff8ef;
  --ink: #1f1722;
  --muted: #6b5c67;
  --gold: #f7b500;
  --gold-deep: #d88700;
  --red: #f25c54;
  --red-deep: #cb3f38;
  --green: #2f9f72;
  --line: rgba(31, 23, 34, 0.08);
  --shadow: 0 18px 50px rgba(73, 42, 16, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(242, 92, 84, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(247, 181, 0, 0.24), transparent 35%),
    linear-gradient(180deg, #fff7ed 0%, #f6ecdf 48%, #f1e6d8 100%);
  color: var(--ink);
  font-family: "Outfit", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

body {
  display: flex;
  justify-content: center;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 12px;
}

.phone-frame {
  width: min(100%, 430px);
  min-height: calc(100vh - 48px);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(255, 246, 235, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 22px 18px 94px;
  position: relative;
  overflow: hidden;
}

.phone-frame::before,
.phone-frame::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  z-index: 0;
}

.phone-frame::before {
  width: 180px;
  height: 180px;
  background: rgba(247, 181, 0, 0.14);
  top: -40px;
  right: -60px;
}

.phone-frame::after {
  width: 140px;
  height: 140px;
  background: rgba(242, 92, 84, 0.12);
  bottom: 120px;
  left: -70px;
}

.topbar,
.screen,
.bottom-nav {
  position: relative;
  z-index: 1;
}

.topbar,
.section-head,
.section-head.compact,
.cta-row,
.wallet-grid,
.profile-summary {
  display: flex;
  gap: 12px;
}

.topbar,
.section-head {
  align-items: center;
  justify-content: space-between;
}

.topbar {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.05;
}

h2 {
  font-size: 28px;
  line-height: 1.08;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

h4 {
  font-size: 18px;
}

.screen {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.screen.active {
  display: flex;
}

.hero-card,
.ticker-card,
.wallet-card,
.prize-showcase,
.blindbox-card,
.seven-day-card,
.video-card,
.list-card,
.profile-summary article,
.page-head {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 26px rgba(73, 42, 16, 0.08);
}

.hero-card {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(242, 92, 84, 0.98), rgba(216, 135, 0, 0.95)),
    #f37b58;
  color: #fff8f4;
}

.hero-copy p:last-child {
  margin-top: 10px;
  color: rgba(255, 248, 244, 0.85);
}

.badge,
.cost-tag,
.prize-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.ticker-card,
.prize-showcase,
.blindbox-card,
.seven-day-card,
.video-card,
.list-card,
.page-head {
  padding: 18px;
}

.blindbox-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ticker-card {
  display: grid;
  gap: 10px;
}

.ticker-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 28px;
  min-width: max-content;
  animation: ticker 14s linear infinite;
}

.ticker-inner span {
  color: var(--ink);
  font-size: 14px;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.wallet-grid {
  align-items: stretch;
}

.wallet-card {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wallet-card strong {
  font-size: 30px;
}

.wallet-card.gold {
  background: linear-gradient(180deg, rgba(247, 181, 0, 0.16), rgba(255, 248, 230, 0.92));
}

.wallet-card.cash {
  background: linear-gradient(180deg, rgba(242, 92, 84, 0.13), rgba(255, 245, 243, 0.92));
}

.prize-grid,
.price-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.prize-card,
.price-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.price-card.active {
  border-color: rgba(242, 92, 84, 0.42);
  background: linear-gradient(135deg, rgba(242, 92, 84, 0.12), rgba(247, 181, 0, 0.16));
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(242, 92, 84, 0.12);
}

.prize-card {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prize-card.muted {
  opacity: 0.8;
}

.prize-tag {
  align-self: flex-start;
  background: rgba(31, 23, 34, 0.08);
}

.blindbox-stage {
  position: relative;
  margin: 12px 0 12px;
  overflow: visible;
  padding: 4px 0;
  --impact-x: 50%;
  --impact-y: 50%;
  --hammer-x: calc(50% + 32px);
  --hammer-y: 24px;
}

.blindbox-screen-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.blindbox-hammer {
  position: absolute;
  width: 104px;
  height: 104px;
  left: var(--hammer-x);
  top: var(--hammer-y);
  opacity: 0;
  transform: rotate(42deg) translateY(-24px);
  transform-origin: 72% 72%;
  mix-blend-mode: normal;
  filter: drop-shadow(0 12px 16px rgba(128, 64, 8, 0.18));
}

.blindbox-screen-flash,
.blindbox-screen-ring {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.blindbox-screen-flash {
  background: radial-gradient(circle at var(--impact-x) var(--impact-y), rgba(255, 255, 255, 0.92), rgba(255, 204, 76, 0.22) 42%, rgba(239, 63, 91, 0.1) 58%, transparent 74%);
}

.blindbox-screen-ring {
  position: absolute;
  left: calc(var(--impact-x) - 110px);
  top: calc(var(--impact-y) - 110px);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(255, 207, 82, 0.84);
  box-shadow: 0 0 30px rgba(239, 63, 91, 0.16);
  transform: scale(0.3);
}

.blindbox-screen-shards {
  position: absolute;
  inset: 0;
}

.blindbox-screen-shards span {
  position: absolute;
  width: 18px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, #fff0b3, #ffbd24 52%, #ef3f5b);
  opacity: 0;
  transform: translateY(0) rotate(0deg);
}

.blindbox-screen-shards span:nth-child(1) {
  top: var(--impact-y);
  left: var(--impact-x);
}

.blindbox-screen-shards span:nth-child(2) {
  top: calc(var(--impact-y) + 12px);
  left: calc(var(--impact-x) + 22px);
}

.blindbox-screen-shards span:nth-child(3) {
  top: calc(var(--impact-y) - 8px);
  left: calc(var(--impact-x) - 20px);
}

.blindbox-screen-shards span:nth-child(4) {
  top: calc(var(--impact-y) + 20px);
  left: calc(var(--impact-x) + 8px);
}

.blindbox-screen-shards span:nth-child(5) {
  top: calc(var(--impact-y) + 16px);
  left: calc(var(--impact-x) - 30px);
}

.blindbox-screen-shards span:nth-child(6) {
  top: calc(var(--impact-y) + 26px);
  left: calc(var(--impact-x) + 34px);
}

.blindbox-stage.is-smashing .blindbox-hammer {
  animation: hammerDrop 720ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.blindbox-stage.is-smashing .blindbox-screen-flash {
  animation: screenFlash 420ms ease-out 260ms forwards;
}

.blindbox-stage.is-smashing .blindbox-screen-ring {
  animation: screenRing 620ms ease-out 260ms forwards;
}

.blindbox-stage.is-smashing .blindbox-screen-shards span {
  animation: shardBurst 860ms ease-out 260ms forwards;
}

.blindbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 2;
}

.blindbox-cell {
  position: relative;
  min-height: 156px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  padding: 0;
  cursor: pointer;
}

.blindbox-cell::before {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 14px;
  height: 10px;
  border-radius: 999px;
  background: rgba(91, 35, 31, 0.18);
  filter: blur(8px);
  transform: translateY(6px);
}

.blindbox-cell:hover {
  transform: translateY(-2px);
}

.blindbox-cell.selected {
  transform: translateY(-3px);
}

.blindbox-cell.selected .blindbox-cell-body {
  box-shadow:
    0 0 0 4px rgba(255, 207, 82, 0.72),
    0 0 26px rgba(255, 198, 65, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset -10px 0 18px rgba(122, 20, 45, 0.16),
    0 16px 26px rgba(196, 39, 62, 0.24);
}

.blindbox-cell-body {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 7px;
  top: 28px;
  bottom: 20px;
  left: 18px;
  right: 18px;
  align-content: start;
  padding: 38px 10px 12px;
  border-radius: 12px 12px 15px 15px;
  background:
    linear-gradient(90deg, rgba(126, 24, 46, 0.18), transparent 18%, transparent 82%, rgba(126, 24, 46, 0.18)),
    linear-gradient(180deg, #ff667a 0%, #ef3f5b 56%, #d92143 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset -10px 0 18px rgba(122, 20, 45, 0.16),
    0 14px 24px rgba(196, 39, 62, 0.2);
  overflow: hidden;
  z-index: 3;
  transform: perspective(180px) rotateX(0deg);
  transform-origin: bottom center;
}

.blindbox-cell-body::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -9px;
  right: -9px;
  height: 30px;
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(90deg, rgba(121, 57, 15, 0.14), transparent 16%, transparent 84%, rgba(121, 57, 15, 0.14)),
    linear-gradient(180deg, #ffe28a, #ffbf2f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 5px 10px rgba(141, 55, 28, 0.14);
}

.blindbox-cell-body::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 13px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
    linear-gradient(180deg, #fff2a8, #ffd756 58%, #ffbc24);
  box-shadow: 0 0 0 1px rgba(135, 69, 14, 0.06);
}

.blindbox-cell-body strong,
.blindbox-cell-body em {
  display: block;
  position: relative;
  z-index: 1;
  text-align: center;
}

.blindbox-cell-body strong {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 2px 6px rgba(116, 20, 44, 0.22);
}

.blindbox-cell-body em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 6px rgba(116, 20, 44, 0.18);
}

.blindbox-cell-prize {
  position: absolute;
  inset: 14px 18px 18px;
  display: none;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.88);
  z-index: 4;
}

.blindbox-cell-prize img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(75, 24, 35, 0.18));
}

.blindbox-cell-burst {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 184, 0.88), rgba(255, 196, 73, 0.18) 42%, rgba(239, 63, 91, 0.08) 60%, transparent 72%);
  opacity: 0;
  transform: scale(0.5);
  z-index: 0;
}

.blindbox-cell-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blindbox-cell-particles span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, #fff3b0, #ffcc4d 58%, #ef3f5b);
  opacity: 0;
  transform: translateY(0) scale(0.4);
}

.blindbox-cell-particles span:nth-child(1) {
  top: 28px;
  left: 20px;
}

.blindbox-cell-particles span:nth-child(2) {
  top: 24px;
  right: 18px;
}

.blindbox-cell-particles span:nth-child(3) {
  top: 44px;
  left: 50%;
}

.blindbox-cell-particles span:nth-child(4) {
  top: 58px;
  right: 34px;
}

.blindbox-cell.is-opening .blindbox-cell-body {
  animation: packageCrack 620ms ease-out forwards;
}

.blindbox-cell.is-opening .blindbox-cell-burst {
  animation: blindboxBurst 680ms ease-out forwards;
}

.blindbox-cell.is-opening .blindbox-cell-particles span {
  animation: blindboxParticle 820ms ease-out forwards;
}

.blindbox-cell.is-revealed .blindbox-cell-prize {
  display: none;
}

.blindbox-cell.is-revealed .blindbox-cell-body {
  opacity: 0;
}

.prize-reveal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.34), transparent 18%),
    rgba(20, 12, 16, 0.68);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.prize-reveal-core {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(300px, 86vw);
  text-align: center;
  color: #fff;
  transform: translateY(18px) scale(0.86);
  opacity: 0;
}

.prize-reveal-core .eyebrow {
  color: #ffe27a;
}

.prize-reveal-core img {
  width: min(190px, 54vw);
  height: min(190px, 54vw);
  object-fit: contain;
  filter:
    drop-shadow(0 0 22px rgba(255, 215, 86, 0.72))
    drop-shadow(0 20px 28px rgba(0, 0, 0, 0.22));
}

.prize-reveal-core h3,
.prize-reveal-core p {
  margin: 0;
}

.prize-reveal-core h3 {
  font-size: 28px;
  line-height: 1.12;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.prize-reveal-core p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.prize-reveal-core .primary-button {
  margin-top: 8px;
  min-width: 150px;
}

.prize-explosion {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.prize-explosion::before,
.prize-explosion::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
}

.prize-explosion::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 211, 77, 0.58) 34%, rgba(239, 63, 91, 0.14) 58%, transparent 72%);
}

.prize-explosion::after {
  border: 4px solid rgba(255, 221, 94, 0.82);
  box-shadow: 0 0 42px rgba(239, 63, 91, 0.24);
}

.prize-explosion span {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 18px;
  height: 12px;
  border-radius: 3px;
  opacity: 0;
  background: linear-gradient(135deg, #fff7b0, #ffca36 55%, #ef3f5b);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) scale(0.65);
}

.prize-explosion span:nth-child(1) { --angle: 0deg; }
.prize-explosion span:nth-child(2) { --angle: 30deg; }
.prize-explosion span:nth-child(3) { --angle: 60deg; }
.prize-explosion span:nth-child(4) { --angle: 90deg; }
.prize-explosion span:nth-child(5) { --angle: 120deg; }
.prize-explosion span:nth-child(6) { --angle: 150deg; }
.prize-explosion span:nth-child(7) { --angle: 180deg; }
.prize-explosion span:nth-child(8) { --angle: 210deg; }
.prize-explosion span:nth-child(9) { --angle: 240deg; }
.prize-explosion span:nth-child(10) { --angle: 270deg; }
.prize-explosion span:nth-child(11) { --angle: 300deg; }
.prize-explosion span:nth-child(12) { --angle: 330deg; }

.prize-reveal.is-active .prize-reveal-core {
  animation: prizeRevealPop 620ms cubic-bezier(0.18, 1, 0.32, 1) forwards;
}

.prize-reveal.is-active .prize-explosion::before {
  animation: prizeBlast 520ms ease-out forwards;
}

.prize-reveal.is-active .prize-explosion::after {
  animation: prizeRing 720ms ease-out 80ms forwards;
}

.prize-reveal.is-active .prize-explosion span {
  animation: prizeShard 820ms ease-out 80ms forwards;
}

@keyframes hammerDrop {
  0% {
    opacity: 0;
    transform: rotate(42deg) translate(24px, -36px) scale(0.92);
  }
  20% {
    opacity: 1;
  }
  60% {
    opacity: 1;
    transform: rotate(-10deg) translate(-18px, 132px) scale(1.04);
  }
  100% {
    opacity: 0;
    transform: rotate(-24deg) translate(-40px, 180px) scale(1);
  }
}

@keyframes screenFlash {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes screenRing {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.48);
  }
}

@keyframes shardBurst {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.6);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-88px) rotate(150deg) scale(1.2);
  }
}

@keyframes packageCrack {
  0% {
    opacity: 1;
    transform: perspective(180px) rotateX(0deg) translateY(0) scale(1);
  }
  34% {
    transform: perspective(180px) rotateX(-3deg) translateY(-2px) scale(1.03);
  }
  55% {
    transform: perspective(180px) rotateX(5deg) translateY(1px) scale(0.98);
  }
  100% {
    opacity: 0.2;
    transform: perspective(180px) rotateX(16deg) translateY(10px) scale(0.82);
  }
}

@keyframes blindboxBurst {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes blindboxParticle {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.4);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-48px) scale(1.1);
  }
}

@keyframes blindboxPrizeReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.72);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes prizeRevealPop {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.78);
  }
  62% {
    opacity: 1;
    transform: translateY(-8px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes prizeBlast {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.14);
  }
  38% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.42);
  }
}

@keyframes prizeRing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.62);
  }
}

@keyframes prizeShard {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) scale(0.65);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(180px) scale(1.05);
  }
}

.blindbox-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(31, 23, 34, 0.08);
}

.blindbox-feedback-copy {
  display: grid;
  gap: 6px;
}

.blindbox-feedback-copy h4,
.blindbox-feedback-copy p {
  margin: 0;
}

.blindbox-feedback-copy p:last-child {
  font-size: 13px;
  color: var(--muted);
}

.blindbox-updates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.blindbox-update-chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 23, 34, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #875127;
}

.blindbox-update-chip.negative {
  color: #b64c22;
  background: rgba(255, 238, 230, 0.82);
}

.blindbox-update-chip.positive {
  color: #1d8a63;
  background: rgba(233, 255, 244, 0.92);
}

.hint,
.warning-note,
.list-row em,
.guide-list span,
.modal-list li,
.fake-form span,
.address-card p {
  color: var(--muted);
}

.hint,
.warning-note {
  font-size: 13px;
  line-height: 1.5;
}

.warning-note {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(242, 92, 84, 0.08);
  border-radius: 14px;
}

.day-track,
.guide-list,
.record-list {
  display: grid;
  gap: 10px;
}

.day-track {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.day-chip {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  font-size: 14px;
}

.day-chip.active {
  background: rgba(247, 181, 0, 0.15);
}

.day-chip.current {
  background: rgba(242, 92, 84, 0.12);
}

.page-head {
  display: grid;
  gap: 8px;
}

.video-placeholder {
  height: 210px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(31, 23, 34, 0.6), rgba(242, 92, 84, 0.4)),
    url("https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=1200&q=80") center/cover;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
}

.play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 30px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid white;
}

.guide-list div,
.record-row,
.address-card {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-summary article {
  padding: 18px 12px;
  text-align: center;
}

.profile-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
}

.list-card {
  display: grid;
  gap: 12px;
}

.list-row {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.list-row span {
  font-weight: 700;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.nav-item,
.price-card {
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active,
.text-button:active,
.nav-item:active,
.price-card:active {
  transform: scale(0.98);
}

.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
}

.primary-button {
  width: 100%;
  color: #fff9f2;
  background: linear-gradient(135deg, var(--red), var(--gold-deep));
  box-shadow: 0 12px 24px rgba(242, 92, 84, 0.24);
}

.secondary-button {
  background: rgba(31, 23, 34, 0.06);
  color: var(--ink);
}

.ghost-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(31, 23, 34, 0.12);
}

.ghost-button.small {
  padding: 10px 14px;
}

.text-button {
  background: transparent;
  color: var(--red);
  padding: 0;
  font-weight: 700;
}

.cost-tag {
  background: rgba(247, 181, 0, 0.14);
  color: var(--gold-deep);
}

.cta-row {
  margin-top: 6px;
}

.cta-row > * {
  flex: 1;
}

.bottom-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 251, 246, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  box-shadow: 0 16px 30px rgba(73, 42, 16, 0.1);
}

.nav-item {
  padding: 12px 10px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(242, 92, 84, 0.14), rgba(247, 181, 0, 0.16));
  color: var(--ink);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 15, 13, 0.48);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 10;
}

.overlay.hidden {
  display: none;
}

.modal {
  display: none;
  width: min(100%, 420px);
}

#onboardingModal {
  width: min(100%, 430px);
}

.modal.active {
  display: block;
}

.modal-card {
  background: linear-gradient(180deg, #fffaf3 0%, #fff4e6 100%);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 22px 48px rgba(24, 15, 13, 0.22);
  display: grid;
  gap: 16px;
}

.onboarding-step,
.onboarding-stage {
  display: none;
}

.onboarding-step.active,
.onboarding-stage.active {
  display: grid;
}

.onboarding-shell {
  min-height: min(88vh, 860px);
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(255, 223, 119, 0.38), transparent 26%),
    linear-gradient(180deg, #e60012 0%, #ff4a20 34%, #ff6032 65%, #ff341f 100%);
  box-shadow: 0 30px 80px rgba(72, 16, 4, 0.35);
  position: relative;
}

.onboarding-stage {
  min-height: inherit;
}

.onboarding-stage[data-step="draw"] {
  position: relative;
  align-content: start;
  gap: 18px;
  padding: 18px 18px 26px;
}

.festival-spark,
.festival-spark::before,
.festival-spark::after {
  position: absolute;
  border-radius: 50%;
}

.festival-spark {
  width: 130px;
  height: 130px;
  border: 2px solid rgba(255, 212, 123, 0.28);
  opacity: 0.8;
}

.festival-spark::before,
.festival-spark::after {
  content: "";
  inset: 22px;
  border: 2px solid rgba(255, 225, 156, 0.24);
}

.spark-left {
  top: 120px;
  left: -54px;
}

.spark-right {
  top: 56px;
  right: -48px;
}

.festival-coins {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.festival-coins span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4c1, #ffd04f 62%, #ff9a00);
  box-shadow: 0 8px 18px rgba(255, 184, 0, 0.35);
  animation: coinFloat 3.2s ease-in-out infinite;
}

.festival-coins span:nth-child(1) {
  top: 118px;
  left: 46px;
}

.festival-coins span:nth-child(2) {
  top: 168px;
  right: 34px;
  animation-delay: 0.4s;
}

.festival-coins span:nth-child(3) {
  top: 322px;
  left: 18px;
  animation-delay: 0.8s;
}

.festival-coins span:nth-child(4) {
  top: 428px;
  right: 16px;
  animation-delay: 1.2s;
}

@keyframes coinFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.78;
  }
  50% {
    transform: translateY(-12px) rotate(24deg);
    opacity: 1;
  }
}

.onboarding-hero {
  display: grid;
  gap: 14px;
  color: #fff9ea;
  text-align: center;
  position: relative;
  z-index: 1;
}

.developer-line {
  font-size: 12px;
  color: rgba(255, 242, 211, 0.78);
}

.onboarding-title {
  display: grid;
  gap: 8px;
}

.onboarding-title strong {
  font-size: clamp(34px, 10vw, 56px);
  line-height: 1;
  color: #fffdf4;
  text-shadow:
    0 2px 0 #ffb63a,
    0 4px 0 #ff9f1a,
    0 10px 22px rgba(136, 29, 9, 0.36);
}

.onboarding-title span {
  font-size: 18px;
  font-weight: 700;
  color: #ffe7b8;
}

.onboarding-marquee {
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8ea, #fff2d3);
  border: 4px solid rgba(255, 177, 83, 0.65);
  box-shadow: 0 10px 22px rgba(132, 24, 5, 0.18);
  padding: 12px 0;
}

.onboarding-marquee-inner {
  display: inline-flex;
  gap: 36px;
  min-width: max-content;
  white-space: nowrap;
  color: #b93a18;
  font-weight: 700;
  animation: marquee 12s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-45%);
  }
}

.lottery-frame {
  position: relative;
  margin-top: 4px;
  padding: 20px;
  border-radius: 32px;
  background: linear-gradient(180deg, #fff6d7 0%, #ffd98f 24%, #ff4830 25%, #ff2018 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    0 16px 34px rgba(117, 20, 3, 0.28);
}

.lottery-frame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ff2c16, #f40f12);
  box-shadow: inset 0 0 0 2px rgba(255, 219, 147, 0.55);
}

.bulb-track {
  position: absolute;
  display: flex;
  gap: 12px;
  z-index: 2;
}

.bulb-track span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd259;
  box-shadow: 0 0 10px rgba(255, 231, 142, 0.62);
  animation: bulbBlink 1s ease-in-out infinite alternate;
}

.bulb-track span:nth-child(even) {
  animation-delay: 0.4s;
}

.bulb-top,
.bulb-bottom {
  left: 38px;
  right: 38px;
  justify-content: space-between;
}

.bulb-top {
  top: 12px;
}

.bulb-bottom {
  bottom: 12px;
}

.bulb-left,
.bulb-right {
  top: 38px;
  bottom: 38px;
  flex-direction: column;
  justify-content: space-between;
}

.bulb-left {
  left: 12px;
}

.bulb-right {
  right: 12px;
}

@keyframes bulbBlink {
  from {
    opacity: 0.5;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

.lottery-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lottery-cell,
.lottery-trigger {
  min-height: 118px;
  border-radius: 22px;
  padding: 14px 10px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(246, 93, 31, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lottery-cell {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.94), rgba(255, 251, 240, 0.96));
  box-shadow: 0 8px 18px rgba(170, 33, 16, 0.12);
  color: #b74f28;
  align-content: start;
  gap: 6px;
}

.lottery-media {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.lottery-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(110, 34, 10, 0.12));
}

.lottery-cell em {
  font-style: normal;
  font-size: 12px;
  color: #d57a4f;
}

.lottery-cell strong {
  font-size: 19px;
  line-height: 1.1;
  color: #bb3f1c;
}

.lottery-cell.active {
  background:
    radial-gradient(circle at top, rgba(255, 247, 205, 1), rgba(255, 219, 97, 0.98) 58%, rgba(255, 189, 44, 1));
  box-shadow:
    0 0 0 3px rgba(255, 248, 212, 0.78),
    0 18px 36px rgba(255, 173, 25, 0.38);
  transform: translateY(-2px) scale(1.03);
}

.lottery-cell.active strong,
.lottery-cell.active em {
  color: #d62800;
}

.lottery-cell.target {
  position: relative;
}

.lottery-cell.target::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  border: 2px solid rgba(255, 244, 187, 0.88);
  opacity: 0.72;
}

.lottery-trigger {
  align-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #ffe87a, #ffcf38 42%, #ffb100);
  color: #d11b00;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.66),
    0 14px 24px rgba(176, 36, 5, 0.28);
}

.lottery-trigger:disabled {
  cursor: default;
}

.lottery-trigger.is-spinning {
  animation: triggerPulse 700ms ease-in-out infinite alternate;
}

@keyframes triggerPulse {
  from {
    transform: scale(1);
    filter: brightness(1);
  }
  to {
    transform: scale(1.03);
    filter: brightness(1.04);
  }
}

.trigger-main {
  font-size: 24px;
  font-weight: 800;
}

.trigger-sub {
  font-size: 14px;
  font-weight: 700;
}

.lottery-frame.celebrating {
  animation: frameCelebrate 820ms ease-in-out 2;
}

@keyframes frameCelebrate {
  0%,
  100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.015);
  }
  68% {
    transform: scale(0.994);
  }
}

.onboarding-status-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 245, 220, 0.18);
  border: 1px solid rgba(255, 233, 179, 0.28);
  color: #fff7e1;
}

.onboarding-status-card .eyebrow {
  color: #ffe299;
}

.onboarding-status-card p:last-child {
  color: rgba(255, 245, 220, 0.88);
}

.festive-panel {
  margin: auto 18px;
  align-self: center;
}

.result-panel {
  text-align: center;
}

.result-panel p:last-of-type {
  color: var(--muted);
}
}

.fake-form {
  display: grid;
  gap: 12px;
}

.fake-form label {
  display: grid;
  gap: 8px;
}

.fake-form input,
.fake-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  padding: 14px 16px;
  color: var(--ink);
  resize: none;
}

.result-banner {
  border-radius: 18px;
  padding: 18px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.result-banner.success {
  background: rgba(47, 159, 114, 0.14);
  color: var(--green);
}

.result-banner.muted {
  background: rgba(31, 23, 34, 0.06);
}

.modal-list {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 10px;
}

.record-list {
  margin-top: -4px;
}

.record-row {
  justify-content: space-between;
  align-items: center;
}

.record-row em {
  font-style: normal;
}

.address-card {
  display: grid;
  gap: 6px;
}

@media (max-width: 420px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    min-height: 100vh;
    border-radius: 0;
    padding-top: 18px;
  }

  .wallet-grid,
  .cta-row,
  .profile-summary {
    grid-template-columns: 1fr;
    display: grid;
  }

  .prize-grid,
  .day-track,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .blindbox-grid {
    gap: 10px;
  }

  .blindbox-cell {
    min-height: 126px;
  }

  .blindbox-cell-body {
    top: 26px;
    bottom: 14px;
    left: 10px;
    right: 10px;
    padding: 30px 6px 10px;
    border-radius: 15px 15px 18px 18px;
  }

  .blindbox-cell-body strong {
    font-size: 12px;
  }

  .blindbox-cell-body em {
    font-size: 10px;
    line-height: 1.15;
  }

  .blindbox-cell-body::before {
    height: 24px;
  }

  .blindbox-cell-prize img {
    width: 54px;
    height: 54px;
  }

  .blindbox-hammer {
    width: 88px;
    height: 88px;
  }
}
