/* High-definition visual pass */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

svg { shape-rendering: geometricPrecision; }

/* The former film-grain layer made the screen appear compressed. */
.noise { display: none; }

.grid-floor {
  opacity: .075;
  background-image:
    linear-gradient(rgba(145, 58, 255, .65) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 58, 255, .65) 1px, transparent 1px);
  background-size: 64px 64px;
}

main {
  background:
    radial-gradient(circle at 76% 16%, rgba(82, 23, 127, .62), transparent 30%),
    linear-gradient(#08040e, #050207);
}

.planet {
  background: radial-gradient(circle at 36% 31%,
    #d4a6ff 0%, #8c3bd1 11%, #531582 31%, #250b37 57%, #0d0315 76%);
  box-shadow:
    inset -42px -32px 86px #030005,
    0 0 110px rgba(129, 36, 231, .34);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.diamond {
  background: rgba(7, 3, 12, .88);
  box-shadow: 0 0 50px rgba(217, 173, 85, .22);
  backdrop-filter: blur(12px);
  backface-visibility: hidden;
}

.redeem-card,
.activity {
  background: linear-gradient(145deg, #171020, #09050e);
  border-color: rgba(217, 173, 85, .28);
}

.float-card {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(16, 9, 23, .94);
}

.slot-slides {
  position: absolute;
  z-index: 0;
  top: 92px;
  right: 0;
  bottom: 0;
  width: 59%;
  overflow: hidden;
  pointer-events: none;
  opacity: .9;
  border-left: 1px solid rgba(217, 173, 85, .18);
  box-shadow: inset 34px 0 70px rgba(7, 3, 12, .72);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
}

.slot-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #08040e 0%, transparent 22%),
    linear-gradient(180deg, rgba(7, 3, 12, .03), rgba(7, 3, 12, .34));
}

.slot-slides img {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  object-fit: cover;
  opacity: 0;
  filter: blur(2.5px) brightness(.82) saturate(1.05) contrast(1.08);
  transform: scale(1.06);
  animation: slotCrossfade 18s infinite ease-in-out;
}

.slot-slides img:nth-child(2) { animation-delay: 6s; }
.slot-slides img:nth-child(3) { animation-delay: 12s; }

@keyframes slotCrossfade {
  0% { opacity: 0; transform: scale(1.06) translateX(2%); }
  8%, 28% { opacity: 1; }
  36%, 100% { opacity: 0; transform: scale(1.12) translateX(-2%); }
}

@media (max-width: 980px) {
  .slot-slides {
    top: 410px;
    width: 100%;
    height: 610px;
    opacity: .82;
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
  }
}

@media (max-width: 620px) {
  .slot-slides { top: 430px; height: 440px; opacity: .78; }
  .slot-slides img { filter: blur(3px) brightness(.74) saturate(1); }
}

/* Premium recent-activity panel */
.activity {
  padding: 24px 22px 22px;
  border-radius: 2px;
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 53, 255, .13), transparent 42%),
    linear-gradient(155deg, #171020, #0a060e 72%);
}

.activity::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(217, 173, 85, .11);
  transform: translate(5px, 5px);
}

.activity-titlebar {
  margin-bottom: 18px !important;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.activity-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.activity-heading > span:last-child { display: grid; gap: 3px; }
.activity-heading b { font: 600 12px var(--thai) !important; letter-spacing: 0 !important; }
.activity-heading small { color: #746c7d !important; font: 8px var(--thai) !important; }

.gift-badge {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #1a0d08;
  background: linear-gradient(145deg, var(--gold2), #a97024);
  box-shadow: 0 0 22px rgba(217, 173, 85, .16);
  transform: rotate(45deg);
}
.gift-badge::first-letter { transform: rotate(-45deg); }

.live-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid rgba(104, 234, 169, .25);
  border-radius: 20px;
  color: #74ecaf;
  background: rgba(104, 234, 169, .06);
  font-size: 8px;
  letter-spacing: 1.2px;
}
.live-badge i { width: 5px !important; height: 5px !important; }

#activity-list {
  gap: 8px;
  max-height: 418px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 92%, transparent 100%);
}
.activity-item {
  min-height: 62px;
  grid-template-columns: 41px 1fr auto;
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 7px;
  background: linear-gradient(100deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  transition: border-color .25s, background .25s, transform .25s;
}
.activity-item:hover {
  transform: translateX(3px);
  border-color: rgba(217, 173, 85, .25);
  background: linear-gradient(100deg, rgba(217, 173, 85, .06), rgba(139, 53, 255, .025));
}

.activity-icon {
  width: 41px;
  height: 41px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 8px 18px rgba(0, 0, 0, .22);
}
.tier-0 { background: linear-gradient(145deg, #7b30ce, #35104f); }
.tier-1 { background: linear-gradient(145deg, #d1a54e, #724517); color: #1b0f06; }
.tier-2 { background: linear-gradient(145deg, #a36cff, #4b1d83); }

.activity-info b { margin-bottom: 3px; color: #eee8f3; font-size: 11px; letter-spacing: .5px; }
.activity-info small { color: #82798a; font: 9px var(--thai); }
.activity-meta { display: grid; justify-items: end; gap: 6px; }
.activity-meta > small { color: #5f5766; font: 8px var(--thai); }
.activity-status {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid rgba(104, 234, 169, .2);
  border-radius: 12px;
  color: #6fe8aa;
  background: rgba(104, 234, 169, .06);
  font: 8px var(--thai);
  letter-spacing: 0;
}
.activity-status i { width: 4px; height: 4px; border-radius: 50%; background: #6fe8aa; box-shadow: 0 0 7px #6fe8aa; }

@media (max-width: 620px) {
  .activity { padding: 21px 15px 18px; }
  .activity-heading b { font-size: 11px !important; }
  .activity-heading small { max-width: 155px; }
  .activity-item { min-height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .slot-slides img { animation: none; }
  .slot-slides img:first-child { opacity: 1; }
}

/* Mobile-first conversion layout: code field stays in the first viewport. */
@media (max-width: 620px) {
  .hero { min-height: 445px; }
  .hero-copy { padding-top: 34px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.8px; }
  .eyebrow i { width: 28px; }
  h1 {
    margin: 15px 0 12px;
    font-size: clamp(42px, 13vw, 54px);
    line-height: .98;
    letter-spacing: -3px;
  }
  .hero-copy > p {
    max-width: 290px;
    margin: 0;
    font-size: 11px;
    line-height: 1.65;
  }
  .metrics { display: none; }
  .visual {
    width: 310px;
    top: 222px;
    right: -115px;
    transform: none;
    opacity: .62;
  }
  .visual .float-card { display: none; }
  .slot-slides {
    top: 205px;
    right: 0;
    width: 68%;
    height: 240px;
    opacity: .78;
    border-left: 0;
    mask-image: linear-gradient(90deg, transparent, #000 24%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%);
  }
  .slot-slides::after {
    background: linear-gradient(90deg, #08040e, transparent 48%), linear-gradient(180deg, transparent, #08040e 94%);
  }
  .redeem-zone { margin-top: -18px; }
  .redeem-card { padding: 24px 18px 22px; }
  .redeem-card header { margin-bottom: 20px; }
  .redeem-card header h2 { font-size: 21px; }
  .lock { width: 36px; height: 36px; }
  .code-input { height: 62px; }
  .code-input input { font-size: 18px; letter-spacing: 3px; }
  form button { height: 56px; }
  .trust { margin-top: 22px; padding-top: 18px; }
}
