@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-900.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page-width: 390px;
  --page-height: 840px;
  --page-scale: 1;
  --page-shell-width: 390px;
  --page-shell-height: 840px;
  --gold: #ffda6b;
  --gold-line: rgba(244, 183, 58, 0.86);
  --panel-top: rgba(3, 20, 42, 0.93);
  --panel-bottom: rgba(2, 9, 22, 0.93);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #03070d;
}

body {
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
img {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  width: var(--page-shell-width);
  height: var(--page-shell-height);
  margin: 0 auto;
  overflow: visible;
}

.campaign-page {
  position: relative;
  width: var(--page-width);
  height: var(--page-height);
  overflow: hidden;
  transform: scale(var(--page-scale));
  transform-origin: top left;
  color: #f8f9fb;
  background: #05080e;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.safe-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 41px;
  padding: 7px 0 0 15px;
  background: #070a0b;
}

.back-button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.back-button img {
  display: block;
  width: 28px;
  height: 28px;
}

.main-content {
  position: absolute;
  inset: 41px 0 0;
  height: 799px;
  overflow: hidden;
  background: #03070d;
}

.hero-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 455px;
  overflow: hidden;
  pointer-events: none;
}

.hero-scene img {
  position: absolute;
  top: -70px;
  left: -1.9px;
  width: 393.7px;
  height: 525px;
  max-width: none;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  top: 26px;
  left: 20px;
  width: 220px;
}

.hero-copy h1,
.hero-copy p,
.reward-highlight p,
.step-card h2,
.step-card p,
.panel h2,
.panel p,
.panel ul {
  margin: 0;
}

.hero-copy h1 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  color: #fbfcff;
  font-size: 34px;
  font-weight: 900;
  line-height: 32.3px;
  letter-spacing: -0.8px;
  white-space: nowrap;
}

.hero-copy h1 strong {
  color: var(--gold);
  font: inherit;
}

.hero-copy > p {
  margin-top: 12px;
  color: #f8f9fb;
  font-size: 15px;
  font-weight: 800;
  line-height: 15px;
  white-space: nowrap;
}

.reward-highlight {
  position: absolute;
  top: 135px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.reward-amount {
  display: flex;
  align-items: flex-end;
  height: 53px;
  gap: 4px;
}

.coin-large {
  display: block;
  width: 53px;
  height: 53px;
  filter: drop-shadow(0 0 8px rgba(249, 190, 50, 0.55));
}

.amount-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.amount-copy > span,
.amount-unit {
  color: #f8f9fb;
  font-size: 13px;
  font-weight: 800;
  line-height: 14.95px;
}

.amount-copy strong {
  color: transparent;
  font-size: 36px;
  font-weight: 900;
  line-height: 30.38px;
  background: linear-gradient(180deg, #fff 0%, #ffea65 37.019%, #ff9000 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.amount-unit {
  padding-bottom: 0;
}

.campaign-dates {
  position: relative;
  display: flex;
  align-items: center;
  width: 232px;
  height: 26px;
  gap: 8px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 47, 109, 0.93), rgba(66, 95, 149, 0.93));
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.32), inset 0 0 18px rgba(20, 77, 170, 0.18);
}

.campaign-dates img {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.campaign-dates span {
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 13.92px;
  white-space: nowrap;
}

.content-stack {
  position: absolute;
  top: 250px;
  left: 0;
  display: flex;
  width: 390px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.how-to {
  display: flex;
  align-items: center;
  width: 390px;
  height: 186px;
  gap: 12px;
  padding: 0 14px;
}

.step-rail {
  position: relative;
  display: grid;
  width: 35px;
  height: 186px;
  margin: 0;
  padding: 8px 2px 21px;
  list-style: none;
  grid-template-rows: 31px 28px 31px 36px 31px;
}

.step-rail::before,
.step-rail::after {
  position: relative;
  left: 15px;
  z-index: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, #ffda6b, rgba(255, 215, 103, 0.6) 50%, rgba(255, 212, 98, 0.4) 75%, rgba(255, 202, 83, 0.2));
}

.step-rail::before {
  grid-row: 2;
}

.step-rail::after {
  grid-row: 4;
}

.step-rail li {
  position: relative;
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(6, 13, 25, 0.9);
  box-shadow: 0 0 13px rgba(255, 198, 71, 0.45);
  font-size: 18px;
  font-weight: 800;
  line-height: normal;
  place-items: center;
}

.step-rail li:nth-child(1) {
  grid-row: 1;
}

.step-rail li:nth-child(2) {
  grid-row: 3;
}

.step-rail li:nth-child(3) {
  grid-row: 5;
}

.step-cards {
  display: flex;
  width: 315px;
  flex-direction: column;
  gap: 8px;
}

.step-card,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom));
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.32), inset 0 0 18px rgba(20, 77, 170, 0.18);
}

.step-card {
  display: flex;
  width: 315px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
}

.step-card-short {
  height: 50px;
}

.step-card-tall {
  height: 70px;
}

.step-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border: 1px solid rgba(244, 183, 58, 0.5);
  border-radius: 8px;
  place-items: center;
}

.step-icon img {
  display: block;
  object-fit: contain;
}

.step-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.step-copy h2 {
  color: #fbfcff;
  font-size: 14px;
  font-weight: 800;
  line-height: 16px;
}

.step-copy p {
  padding-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 500;
  line-height: 12.65px;
}

.rewards-panel {
  display: flex;
  width: 362px;
  height: 138px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 9px;
}

.ornamented-heading {
  display: flex;
  height: 18px;
  align-items: center;
  gap: 8px;
}

.ornamented-heading h2,
.rules-panel h2 {
  color: var(--gold);
  font-size: 17px;
  font-weight: 800;
  line-height: 17px;
  white-space: nowrap;
}

.ornament {
  display: flex;
  width: 92px;
  height: 8px;
  align-items: center;
  gap: 4px;
}

.ornament::after {
  width: 80px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, #f4b73a, rgba(244, 183, 58, 0));
}

.ornament-left {
  transform: rotate(180deg);
}

.ornament img {
  display: block;
  width: 8px;
  height: 8px;
}

.reward-chests {
  display: flex;
  height: 59px;
  gap: 10px;
  padding-top: 2px;
}

.chest-slice {
  position: relative;
  display: block;
  height: 57px;
  overflow: hidden;
}

.chest-slice img {
  position: absolute;
  top: 0;
  height: 57px;
  max-width: none;
}

.chest-1 {
  width: 64px;
}

.chest-1 img {
  left: 0.58px;
  width: 282.84px;
}

.chest-2 {
  width: 59px;
}

.chest-2 img {
  left: -61.42px;
  width: 282.84px;
}

.chest-3,
.chest-4 {
  width: 60px;
}

.chest-3 img {
  left: -120.42px;
  width: 282.84px;
}

.chest-4 img {
  left: -178.42px;
  width: 282.84px;
}

.chest-5 {
  width: 45px;
}

.chest-5 img {
  left: -242.42px;
  width: 282.84px;
}

.reward-summary {
  height: 19px;
  padding-top: 3px;
  color: #f8f9fb;
  font-size: 14px;
  font-weight: 800;
  line-height: 15.4px;
  text-align: center;
  white-space: nowrap;
}

.reward-summary strong {
  color: var(--gold);
  font-weight: 900;
}

.rules-panel {
  width: 362px;
  height: 109px;
  border-radius: 9px;
}

.rules-panel .compass {
  position: absolute;
  top: 22px;
  left: 239px;
  width: 128px;
  height: 90px;
  opacity: 0.7;
  object-fit: contain;
}

.rules-panel header {
  position: absolute;
  top: 11px;
  left: 15px;
  display: flex;
  width: 328px;
  align-items: center;
  gap: 10px;
}

.rules-panel header img {
  display: block;
  width: 21px;
  height: 21px;
}

.rules-panel ul {
  position: absolute;
  top: 42px;
  left: 15px;
  display: grid;
  gap: 7px;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  line-height: 13.2px;
  list-style: none;
  white-space: nowrap;
}

.campaign-footer {
  width: 390px;
  height: 62px;
  padding: 8px 14px 4px;
}

.play-button {
  position: relative;
  width: 362px;
  height: 50px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 236, 155, 0.92);
  border-radius: 8px;
  color: #080808;
  background: linear-gradient(180deg, #ffe27b 0%, #e8a72c 50%, #d48a19 100%);
  box-shadow: 0 0 8px rgba(247, 180, 43, 0.48), inset 0 0 14px rgba(255, 255, 255, 0.34);
  cursor: pointer;
  font-size: 23px;
  font-weight: 900;
  line-height: 23px;
}

.play-button:active {
  filter: brightness(0.96);
}

.back-button:focus-visible,
.play-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
