:root {
  --charcoal: #11171d;
  --text: #edf5f8;
  --accent: #65def5;
  --yellow: #ffdc61;
  --surface: #1e292f;
  --soft: #273842;
  --line: #455965;
  --mute: #bbccd5;
  --ink: #10181c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter',system-ui,-apple-system,sans-serif;
  background: var(--charcoal);
  color: var(--text);
  overflow-x: hidden;
}

/* Page layout */
.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
}

/* Ticker */
.ticker {
  background: #0b1116;
  color: var(--accent);
  overflow: hidden;
  white-space: nowrap;
  padding: 5px 0;
  border-bottom: 2px solid #4ba0b6;
}

.ticker div {
  display: inline-block;
  animation: slide 17s linear infinite;
  font: 600 10px/1 'IBM Plex Mono',monospace;
  letter-spacing: 2px;
}

.ticker span {
  padding: 0 14px;
}

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

/* Hero */
.dark {
  position: relative;
  padding: 14px 18px 54px;
  background:
    radial-gradient(ellipse at 76% -10%, #245263, transparent 67%),
    linear-gradient(125deg, #202d35, var(--charcoal) 75%);
}

.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 12px, #b9e6ed14 12px 13px);
  mask-image: linear-gradient(125deg, transparent 24%, #000);
}

.dz {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.boxico {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 4px;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 2px 2px 0 #29798b;
}

.boxico svg {
  width: 16px;
  height: 16px;
  fill: var(--ink);
}

.logo b {
  font: 800 13px/1.1 'Inter',sans-serif;
  letter-spacing: -.2px;
  display: block;
}

.logo i {
  font: 500 8px/1.3 'IBM Plex Mono',monospace;
  font-style: normal;
  color: var(--mute);
  letter-spacing: 1.3px;
  display: block;
  margin-top: 1px;
}

/* Headline and product image */
.hero {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.hero-copy {
  container-type: inline-size;
}

h1 {
  font-family: 'Archivo Black',sans-serif;
  font-size: clamp(25px,7.4vw,40px);
  line-height: 1.02;
  letter-spacing: -.9px;
  color: var(--text);
  margin-top: 10px;
  text-transform: uppercase;
}

h1 em {
  font-style: normal;
  color: var(--accent);
}

h1 .title-line {
  font-size: min(1em, calc(11cqi + 1px));
  white-space: nowrap;
}

h1 .title-line--long {
  font-size: min(1em, calc(8cqi + .6px));
}

.sub {
  margin-top: 8px;
  font-size: clamp(12.5px,3.6vw,15px);
  line-height: 1.4;
  color: var(--mute);
  font-weight: 500;
  max-width: 30ch;
}

.shot {
  width: 104px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  flex: none;
  border: 2px solid #749ba8;
  box-shadow: 4px 4px 0 #0d1720;
  background: linear-gradient(150deg, #d4e6e9, #8aaeb8);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}

/* Overlapping sheet */
.sheet {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #1a242b, var(--charcoal) 70%);
  border-radius: 10px 10px 0 0;
  margin-top: -38px;
  padding: 16px 16px 20px;
  flex: 1;
  box-shadow: 0 -1px 0 #55737d, 0 -5px 16px #080e1570;
}

.sheet::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: #5b7886;
}

.sh {
  max-width: 560px;
  margin: 0 auto;
}

.notice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 9px 11px;
  margin-top: 6px;
}

.notice svg {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  flex: none;
  margin-top: 1px;
}

.notice p {
  font-size: 12.3px;
  line-height: 1.42;
  color: var(--text);
  font-weight: 500;
}

/* Claim and gift counts */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 11px;
}

.card {
  border: 1.5px solid var(--line);
  border-radius: 5px;
  padding: 10px 9px;
  text-align: center;
  background: var(--surface);
  box-shadow: 0 2px 0 #0a1319;
}

.ct {
  font: 600 8px/1 'IBM Plex Mono',monospace;
  letter-spacing: 1.2px;
  color: var(--mute);
  text-transform: uppercase;
}

/* countdown */
.clock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  margin-top: 8px;
}

.u {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.un {
  font: 700 19px/1 'IBM Plex Mono',monospace;
  color: var(--text);
  background: #101a21;
  box-shadow: inset 0 0 0 1px #425b68;
  border-radius: 5px;
  padding: 6px 5px;
  min-width: 31px;
}

.ul {
  font: 500 7px/1 'IBM Plex Mono',monospace;
  color: var(--mute);
  letter-spacing: .6px;
}

.cl {
  font: 700 16px/1 'IBM Plex Mono',monospace;
  color: var(--accent);
  padding-top: 7px;
}

.window {
  margin-top: 7px;
  font: 500 8px/1.4 'IBM Plex Mono',monospace;
  color: var(--mute);
  letter-spacing: .2px;
}

/* flip counter */
.flip {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
}

.fd {
  position: relative;
  width: 27px;
  height: 37px;
  overflow: hidden;
  border-radius: 5px;
  background: #101a21;
  box-shadow: inset 0 0 0 1px #425b68;
}

.fd::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #bbd7e342;
  z-index: 2;
}

.fd span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 21px/1 'IBM Plex Mono',monospace;
  color: var(--accent);
}

.fd span.out {
  animation: fo .34s ease-in forwards;
}

.fd span.in {
  animation: fi .34s ease-out forwards;
}

@keyframes fo {
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@keyframes fi {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.of {
  margin-top: 7px;
  font: 600 8px/1 'IBM Plex Mono',monospace;
  color: var(--mute);
  letter-spacing: .6px;
}

/* Availability banner */
.alarm {
  margin-top: 10px;
  border-radius: 4px;
  padding: 11px 12px;
  background: linear-gradient(105deg, #233d47, #26323c);
  color: var(--text);
  text-align: center;
  box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px #496571;
  animation: glow 1.9s ease-in-out infinite;
}

@keyframes glow {
  0%,100% {
    box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px #496571;
  }
  50% {
    box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px #81a1ae;
  }
}

.alarm b {
  display: block;
  font-family: 'Archivo Black',sans-serif;
  font-size: clamp(14px,4.2vw,18px);
  letter-spacing: -.3px;
  line-height: 1.1;
}

.alarm span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #d2e7ed;
}

/* buttons */
.btn {
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  font-family: 'Inter',sans-serif;
  cursor: pointer;
  border: none;
  font-size: clamp(15px,4.3vw,17px);
  font-weight: 800;
  letter-spacing: -.1px;
}

.b1 {
  margin-top: 13px;
  padding: 18px 14px;
  font-size: clamp(18px, 5vw, 21px);
  color: var(--ink);
  background: linear-gradient(110deg, var(--yellow), #ffbb33);
  box-shadow: 0 4px 0 #825611, 0 6px 20px #ffcc4540, inset 0 0 0 1px #fff3ae;
  position: relative;
  overflow: hidden;
  animation: bb 2.1s ease-in-out infinite;
}

@keyframes bb {
  0%,100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.b1::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, #fff8d75c, transparent);
  animation: sh 2.8s infinite;
}

@keyframes sh {
  0% {
    left: -70%;
  }
  55% {
    left: 130%;
  }
  100% {
    left: 130%;
  }
}

.b1:active {
  transform: scale(.985);
  animation: none;
}

.b1 small {
  display: block;
  font: 600 12px/1.3 'Inter',sans-serif;
  letter-spacing: 0;
  opacity: .92;
  margin-top: 5px;
}

.b2 {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--mute);
  border: 1.5px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.b2:active {
  background: var(--soft);
}

.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 11px;
  font: 500 10.5px/1 'IBM Plex Mono',monospace;
  color: var(--mute);
  letter-spacing: .2px;
}

.secure svg {
  width: 12px;
  height: 12px;
  fill: var(--accent);
  flex: none;
}

/* decline modal */
.mask {
  position: fixed;
  inset: 0;
  display: none;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border: 0;
  background: transparent;
  padding: 22px;
  overflow: auto;
}

.mask::backdrop {
  background: #071218c7;
  backdrop-filter: blur(4px);
  animation: fade .2s ease;
}

.mask[open] {
  display: flex;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  margin: auto;
  background: linear-gradient(180deg, var(--soft), var(--surface));
  box-shadow: 0 0 0 1px var(--line), 6px 6px 0 #080f16;
  border-radius: 8px;
  padding: 20px 18px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  animation: pop .24s cubic-bezier(.2,1.3,.5,1);
}

@keyframes pop {
  from {
    transform: scale(.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal h2 {
  font-family: 'Archivo Black',sans-serif;
  font-size: 19px;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -.4px;
}

.modal p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mute);
  font-weight: 500;
}

.modal .b1 {
  margin-top: 14px;
}

.modal .b2 {
  margin-top: 7px;
}

@media(min-width:760px) {
  .dark {
    padding: 16px 40px 56px;
  }
  .hero {
    grid-template-columns: 1fr 180px;
    gap: 26px;
  }
  .shot {
    width: 180px;
  }
  h1 {
    font-size: 42px;
  }
  .sheet {
    border-radius: 12px 12px 0 0;
    padding: 18px 40px 26px;
  }
  .sh {
    max-width: 620px;
  }
}

@media(max-height:660px) {
  .dark {
    padding-top: 10px;
    padding-bottom: 48px;
  }
  .hero {
    margin-top: 11px;
  }
  h1 {
    font-size: clamp(21px,6.2vw,30px);
  }
  .sub {
    font-size: 12px;
    margin-top: 6px;
  }
  .notice {
    padding: 7px 10px;
  }
  .notice p {
    font-size: 11.3px;
  }
  .card {
    padding: 8px 7px;
  }
  .b1 {
    padding: 16px 14px;
    margin-top: 9px;
  }
  .b2 {
    padding: 10px 14px;
  }
  .secure {
    margin-top: 8px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .ticker div,.alarm,.b1,.b1::after,.mask::backdrop,.modal,.fd span {
    animation: none;
  }
  .fd span.out {
    display: none;
  }
}
