*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --green: #0f6848;
  --deep-green: #063f31;
  --cream: #fff8ef;
  --paper: #fff3e5;
  --gold: #b78838;
  --gold-light: #f2d48a;
  --text: #1a1a1a;
  --muted: #6f6254;
  --line: rgba(183, 136, 56, 0.38);
  --danger: #c84d2f;
}

html {
  min-height: 100%;
  background: #efe8de;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: Inter, "SF Pro Text", Arial, sans-serif;
  background: #efe8de;
  display: flex;
  justify-content: center;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.mobile-page {
  width: min(100vw, 430px);
  min-height: 100vh;
  background: var(--cream);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 40px rgba(35, 24, 12, 0.18);
}

.hero {
  position: relative;
  min-height: 582px;
  padding: 36px 24px 24px;
  background:
    radial-gradient(circle at 88% 45%, rgba(241, 205, 122, 0.38) 0 16%, transparent 38%),
    linear-gradient(180deg, #fffaf2 0%, #fff5eb 58%, #f6e5d1 100%);
}

.hero-svga {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 582px;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.16;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 5;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 3px solid var(--green);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 22px;
  font-style: italic;
  line-height: 1;
}

.brand-name {
  font-weight: 900;
  font-size: 27px;
  font-style: italic;
  letter-spacing: 0;
}

.hero-title {
  position: relative;
  z-index: 4;
  margin: 74px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 0.94;
}

.hero-title span {
  display: block;
  font-size: clamp(56px, 16vw, 74px);
  font-weight: 700;
}

.hero-title em {
  display: block;
  font-size: clamp(51px, 14vw, 66px);
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}

.hero-art {
  position: absolute;
  right: -18px;
  top: 210px;
  width: 235px;
  height: 265px;
  z-index: 2;
  pointer-events: none;
}

.hero-art .gold-haze {
  position: absolute;
  right: 4px;
  top: 5px;
  width: 215px;
  height: 215px;
  object-fit: contain;
  opacity: 0.58;
  animation: floatSoft 4.2s ease-in-out infinite;
}

.reward-card {
  position: absolute;
  right: 24px;
  top: 34px;
  width: 170px;
  height: 152px;
  display: grid;
  place-items: center;
  color: #fff6ce;
  text-align: center;
  filter: drop-shadow(0 18px 18px rgba(87, 61, 31, 0.25));
  animation: floatPrize 3.8s ease-in-out infinite;
}

.reward-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, #b9842e 0%, #e5c06c 42%, #8f6428 100%);
  clip-path: polygon(25% 0, 75% 0, 100% 30%, 91% 78%, 50% 100%, 9% 78%, 0 30%);
  border: 1px solid rgba(255, 244, 181, 0.65);
}

.reward-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 31px;
  height: 2px;
  background: rgba(255, 245, 181, 0.55);
  box-shadow: 0 83px 0 rgba(255, 245, 181, 0.44);
}

.reward-card strong {
  position: relative;
  z-index: 2;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  line-height: 0.9;
  color: #fff6c8;
  text-shadow: 0 4px 2px rgba(88, 55, 18, 0.28);
}

.reward-card span {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff2bf;
}

.gift-box {
  position: absolute;
  right: 18px;
  bottom: 8px;
  width: 164px;
  height: 82px;
  border-radius: 6px 6px 16px 16px;
  background: linear-gradient(145deg, #143d31 0%, #082b25 100%);
  box-shadow: 0 18px 18px rgba(34, 29, 19, 0.2);
}

.gift-box::before {
  content: "";
  position: absolute;
  inset: -18px 10px auto;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #3b3120 0 9%, #121f19 10% 56%, transparent 58%);
  opacity: 0.92;
}

.feature-list {
  position: relative;
  z-index: 3;
  margin-top: 66px;
  width: 54%;
  display: grid;
  gap: 16px;
}

.feature-row {
  display: grid;
  grid-template-columns: 55px 1px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 56px;
}

.feature-row + .feature-row {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
}

.feature-icon img {
  width: 30px;
  height: 30px;
  filter: sepia(1) saturate(0.9) hue-rotate(350deg) brightness(1.1);
}

.feature-rule {
  width: 1px;
  height: 43px;
  background: var(--line);
}

.feature-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.22;
}

.feature-row strong {
  color: var(--green);
}

.cta-primary {
  width: 100%;
  min-height: 61px;
  border: 2px solid #d9bb79;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2), 0 14px 22px rgba(6, 63, 49, 0.18);
  animation: pulseCta 2s ease-in-out infinite;
}

.hero .cta-primary {
  position: relative;
  z-index: 5;
  margin-top: 20px;
  width: min(318px, 100%);
}

.cta-primary .arrow {
  color: #d9b15f;
  font-size: 34px;
  line-height: 1;
}

.section {
  padding: 20px 16px;
}

.register-section {
  margin-top: -2px;
  background: linear-gradient(180deg, #f3e2cd 0%, #0f6848 100%);
  padding-top: 18px;
  padding-bottom: 24px;
}

.card {
  border-radius: 8px;
  background: #fff7ed;
  box-shadow: 0 12px 24px rgba(61, 40, 16, 0.14);
  overflow: hidden;
}

.card-header {
  min-height: 54px;
  padding: 15px 18px;
  color: #7b4a06;
  font-size: 16px;
  font-weight: 800;
  background: #f6dfac;
}

.timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px 16px 4px;
  color: #71460a;
  font-weight: 800;
}

.timer-boxes {
  display: flex;
  gap: 8px;
}

.timer-box {
  min-width: 66px;
  height: 28px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #ffe28d;
  font-variant-numeric: tabular-nums;
}

.form-card {
  padding-bottom: 18px;
}

.form-grid {
  display: grid;
  gap: 13px;
  padding: 15px 16px 8px;
}

.field-row {
  min-height: 54px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.field-row input {
  width: 100%;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--green);
  background: transparent;
  font-size: 16px;
}

.field-row input::placeholder {
  color: rgba(15, 104, 72, 0.48);
}

.send-code {
  flex: 0 0 94px;
  height: 44px;
  border: 0;
  border-left: 1px solid rgba(15, 104, 72, 0.18);
  background: transparent;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.send-code:disabled,
.register-button:disabled,
.download-action:disabled {
  opacity: 0.68;
  cursor: default;
}

.register-button {
  width: calc(100% - 32px);
  min-height: 62px;
  margin: 14px 16px 0;
  border: 0;
  border-radius: 31px;
  color: #fff;
  background: linear-gradient(90deg, #0c553d 0%, #16865b 100%);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(6, 63, 49, 0.22);
}

.bonus-note {
  width: calc(100% - 72px);
  min-height: 38px;
  margin: 0 auto -2px;
  border-radius: 19px 19px 8px 8px;
  background: linear-gradient(90deg, #d6a953 0%, #fff0b8 100%);
  color: #563807;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.withdraw-card {
  margin-top: 16px;
  height: 344px;
}

.withdraw-list {
  height: 286px;
  padding: 14px 16px;
  overflow: hidden;
}

.withdraw-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: withdrawScroll 12s linear infinite;
}

.withdraw-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0d4bd;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.withdraw-copy {
  min-width: 0;
}

.withdraw-copy b {
  display: block;
  font-size: 14px;
}

.withdraw-copy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.withdraw-amount {
  color: var(--green);
  font-weight: 900;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.trust-section {
  padding-top: 0;
  background: var(--green);
  padding-bottom: 28px;
}

.trust-card {
  padding: 0 16px 18px;
  background: #fffaf2;
}

.trust-title {
  margin: 0 -16px 18px;
  min-height: 66px;
  border-radius: 8px 8px 35px 35px;
  background: linear-gradient(180deg, #f6dfac 0%, #fff7e8 100%);
  display: grid;
  place-items: center;
  text-align: center;
}

.trust-title b {
  display: block;
  font-size: 15px;
}

.trust-title span {
  color: var(--green);
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 900;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-tile {
  min-height: 138px;
  border-radius: 8px;
  background: #fff;
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-tile img {
  width: 40px;
  height: 40px;
}

.trust-tile b {
  color: var(--green);
  font-size: 14px;
}

.trust-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.32;
}

.testimonial {
  margin-top: 16px;
  padding: 0 16px 16px;
}

.testimonial-body {
  padding: 16px;
}

.user-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.user-line img:first-child {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.user-line b {
  display: block;
  font-size: 14px;
}

.user-line span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.rating {
  margin-left: auto;
  width: 86px;
  height: 14px;
}

.testimonial p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.api-toast {
  position: fixed;
  left: calc(50% - min(50vw, 215px) + 24px);
  right: calc(50% - min(50vw, 215px) + 24px);
  z-index: 9999;
  min-height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(6, 63, 49, 0.94);
  color: #fff;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.api-toast.is-visible {
  display: flex;
}

.download-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #fffaf2 0%, #fff0df 44%, #0f6848 100%);
}

.download-hero {
  position: relative;
  min-height: 492px;
  padding: 70px 16px 0;
  text-align: center;
}

.success-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.success-lockup img {
  width: 56px;
  height: 56px;
}

.bonus-card {
  position: relative;
  width: 100%;
  max-width: 373px;
  height: 285px;
  margin: 28px auto 0;
}

.bonus-card > img {
  width: 100%;
  height: 100%;
  display: block;
}

.bonus-card .reserved {
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  color: #a56e10;
  font-weight: 900;
  font-size: 20px;
}

.bonus-card .amount {
  position: absolute;
  top: 57px;
  left: 0;
  right: 0;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 900;
}

.bonus-card .caption {
  position: absolute;
  top: 137px;
  left: 44px;
  right: 44px;
  color: #8b6a33;
  font-size: 12px;
  line-height: 1.25;
}

.download-svga {
  width: 375px;
  height: 132px;
  position: absolute;
  left: 50%;
  top: 352px;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: visible;
}

.download-svga canvas {
  display: block;
  transform: scale(0.333333) !important;
  transform-origin: 0 0 !important;
}

.download-action {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 385px;
  min-height: 66px;
  border: 0;
}

.download-content {
  padding: 0 16px 28px;
}

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

@keyframes floatPrize {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-8px) rotate(1.5deg); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(9px) scale(1.03); }
}

@keyframes withdrawScroll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1 * var(--withdraw-distance, 560px))); }
}

@media (max-width: 360px) {
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-title span {
    font-size: 54px;
  }

  .hero-title em {
    font-size: 48px;
  }

  .hero-art {
    right: -34px;
  }

  .feature-list {
    width: 58%;
  }

  .feature-row {
    grid-template-columns: 50px 1px minmax(0, 1fr);
    gap: 10px;
  }

  .feature-row p {
    font-size: 13px;
  }

  .cta-primary {
    font-size: 21px;
  }
}
