:root {
  --charcoal: #251a16;
  --cream: #fff1d0;
  --amber: #ffcf6a;
  --rust: #8d2e21;
  --surface: #342720;
  --soft: #443127;
  --line: #795947;
  --mute: #dec4a6;
  --ink: #2d1c15;
}

* {
  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(--cream);
  overflow-x: hidden;
}

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

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

.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 13% -15%, #fff9e8, transparent 69%),
    linear-gradient(112deg, var(--cream) 18%, #f0c47d);
}

.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image: radial-gradient(circle, #73432570 .8px, transparent 1px);
  background-size: 7px 7px;
  mask-image: linear-gradient(145deg, transparent 17%, #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(--ink);
}

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

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

.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: #70503d;
  letter-spacing: 1.3px;
  display: block;
  margin-top: 1px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff4d5a6;
  border: 1px solid #986a4f;
  border-radius: 999px;
  padding: 5px 9px;
  font: 600 8.5px/1 'IBM Plex Mono',monospace;
  color: #6e3024;
  letter-spacing: .9px;
  white-space: nowrap;
}

.pdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rust);
  animation: blink 1.4s infinite;
}

@keyframes blink {
  50% {
    opacity: .25;
  }
}

/* headline + image as a LEFT-RIGHT pair inside the dark zone */
.hero {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

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

.tag {
  display: inline-block;
  background: var(--rust);
  color: var(--cream);
  font: 800 9.5px/1 'IBM Plex Mono',monospace;
  letter-spacing: 1.5px;
  padding: 5px 9px;
  border-radius: 2px;
  transform: rotate(-1.5deg);
  box-shadow: 3px 3px 0 var(--charcoal);
}

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

h1 em {
  font-style: normal;
  color: var(--rust);
  text-shadow: 1px 1px 0 #e5a35a90;
}

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

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

.shot {
  width: 104px;
  height: 122px;
  border-radius: 6px;
  overflow: hidden;
  flex: none;
  border: 2px solid var(--charcoal);
  box-shadow: 5px 5px 0 #9e5734;
  transform: rotate(2.2deg);
  background: linear-gradient(150deg, #fff1d7, #e2b784);
}

.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, #32231d, var(--charcoal) 65%);
  border-radius: 10px 10px 0 0;
  margin-top: -38px;
  padding: 16px 16px 20px;
  flex: 1;
  box-shadow: 0 -2px 0 #8a563c, 0 -5px 14px #39211531;
}

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

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

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

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

.notice p {
  font-size: 12.3px;
  line-height: 1.42;
  color: var(--cream);
  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 #1c120f;
}

.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(--cream);
  background: #1f1613;
  box-shadow: inset 0 0 0 1px #6c4d3d;
  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(--amber);
  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: #1f1613;
  box-shadow: inset 0 0 0 1px #6c4d3d;
}

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

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

.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, var(--rust), #a93f2b);
  color: var(--cream);
  text-align: center;
  box-shadow: 0 3px 0 #1d130f, inset 0 0 0 1px #e38766ad;
  animation: glow 1.9s ease-in-out infinite;
}

@keyframes glow {
  0%,100% {
    box-shadow: 0 3px 0 #1d130f, inset 0 0 0 1px #e38766ad;
  }
  50% {
    box-shadow: 0 3px 0 #1d130f, inset 0 0 0 1px #ffc394d6;
  }
}

.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: #ffdfbc;
}

/* 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: 11px;
  padding: 16px 14px;
  color: var(--ink);
  background: linear-gradient(100deg, var(--amber), #f1ac45);
  box-shadow: 0 4px 0 #120e0b, inset 0 0 0 1px #ffe3a2;
  position: relative;
  overflow: hidden;
  animation: bb 2.1s ease-in-out infinite;
}

.sheet .btn.b1 {
  background-image: linear-gradient(130deg, #3dfb2a, #14a301);
}

@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, #fff2bf58, 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(--amber);
  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(--amber);
  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: #1d120ec7;
  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 #100c0a;
  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(--cream);
  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;
    height: 206px;
  }
  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;
  }
  .shot {
    width: 88px;
    height: 102px;
  }
  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: 13px 14px;
    margin-top: 9px;
  }
  .b2 {
    padding: 10px 14px;
  }
  .secure {
    margin-top: 8px;
  }
}

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