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

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background-color: #d6eefc;
  font-family: "Phudu", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid #0069be;
  outline-offset: 3px;
  border-radius: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===========================
   Page & Background (Desktop)
   =========================== */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: #d6eefc url("./assets/bg-pc.png") center top / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 1.8vw, 32px) clamp(16px, 3vw, 54px) clamp(16px, 2vw, 32px);
}

.container {
  width: 100%;
  max-width: 1620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===========================
   Hero Header (PC)
   =========================== */
.hero-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge-link {
  display: block;
  width: min(58%, 938px);
  position: relative;
  z-index: 3;
  transition: transform 0.2s ease;
}

.badge-link:hover {
  transform: translateY(-2px);
}

.badge-img {
  width: 100%;
  height: auto;
}

.hero-title {
  width: 100%;
  display: flex;
  justify-content: center;
  /* title-pc.png has built-in transparent top/bottom padding matching Figma overlap */
  margin-top: clamp(-74px, -4.6vw, -24px);
  margin-bottom: clamp(-74px, -4.6vw, -22px);
  pointer-events: none;
}

.title-img--pc {
  width: 100%;
  max-width: 1620px;
  height: auto;
}

.title-img--mobile {
  display: none;
}

/* ===========================
   Promo Card (PC)
   =========================== */
.promo-card {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 4px 2px rgba(0, 105, 190, 0.3);
  padding: clamp(18px, 1.8vw, 28px) clamp(16px, 1.4vw, 24px) clamp(16px, 1.6vw, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.promo-heading-wrap {
  width: min(85.2%, 1380px);
  margin-bottom: clamp(14px, 1.3vw, 22px);
}

.promo-heading--pc {
  width: 100%;
  height: auto;
}

.promo-heading--mobile {
  display: none;
}

.promo-grid--pc {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px) clamp(14px, 1.8vw, 30px);
  margin-bottom: clamp(16px, 1.5vw, 24px);
}

.promo-item-pc {
  display: block;
  border-radius: 12px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.promo-item-pc img {
  width: 100%;
  height: auto;
}

.promo-item-pc:hover {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.06) drop-shadow(0 6px 14px rgba(0, 82, 180, 0.28));
}

.promo-item-pc:active {
  transform: translateY(0) scale(0.99);
}

.promo-list-mobile {
  display: none;
}

/* ===========================
   CTA Button
   =========================== */
.cta-wrap {
  width: min(41.2%, 668px);
  display: flex;
  justify-content: center;
}

.cta-btn {
  display: block;
  width: 100%;
  border-radius: 999px;
  animation: ctaPulse 2.2s ease-in-out infinite;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-btn img {
  width: 100%;
  height: auto;
}

.cta-btn:hover {
  animation-play-state: paused;
  transform: scale(1.035);
  filter: brightness(1.06) drop-shadow(0 8px 18px rgba(245, 166, 0, 0.45));
}

.cta-btn:active {
  transform: scale(0.98);
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 10px rgba(245, 166, 0, 0.28));
  }
  50% {
    transform: scale(1.022);
    filter: drop-shadow(0 6px 16px rgba(245, 166, 0, 0.48));
  }
}

/* ===========================
   Access Gates Section (PC)
   =========================== */
.gates-section {
  width: 100%;
  margin-top: clamp(14px, 1.5vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gates-heading-wrap {
  width: min(83.2%, 1348px);
  margin-bottom: clamp(12px, 1.1vw, 18px);
}

.gates-heading--pc {
  width: 100%;
  height: auto;
}

.gates-heading--mobile {
  display: none;
}

.gates-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(8px, 0.7vw, 12px);
}

.gate-card {
  display: block;
  border-radius: 12px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.gate-card img {
  width: 100%;
  height: auto;
}

.gate-card:hover {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 8px 14px rgba(0, 105, 190, 0.28));
}

.gate-card:active {
  transform: translateY(0) scale(0.98);
}

/* ===========================
   Tablet (768px - 1024px)
   =========================== */
@media (max-width: 1024px) and (min-width: 768px) {
  .gates-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .cta-wrap {
    width: min(56%, 520px);
  }
}

/* ===========================
   Mobile (< 768px) — iPhone Figma Layout
   =========================== */
@media (max-width: 767px) {
  .page {
    background: #d6eefc url("./assets/bg-mobile.png") center top / cover no-repeat;
    align-items: flex-start;
    padding: 20px 14px 28px;
  }

  .container {
    max-width: 440px;
  }

  .badge-link {
    width: 100%;
    max-width: 412px;
  }

  .hero-title {
    margin-top: 16px;
    margin-bottom: 18px;
    width: 96%;
    max-width: 404px;
  }

  .title-img--pc {
    display: none;
  }

  .title-img--mobile {
    display: block;
    width: 100%;
    height: auto;
  }

  .promo-card {
    padding: 15px 14px 16px;
    border-radius: 12px;
  }

  .promo-heading-wrap {
    width: 100%;
    margin-bottom: 12px;
  }

  .promo-heading--pc {
    display: none;
  }

  .promo-heading--mobile {
    display: block;
    width: 100%;
    height: auto;
  }

  .promo-grid--pc {
    display: none;
  }

  .promo-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
  }

  .promo-item-mobile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 368 / 45;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.16s ease, filter 0.16s ease;
  }

  .promo-item-mobile:active {
    transform: scale(0.985);
    filter: brightness(1.06);
  }

  .promo-item-mobile__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  .promo-item-mobile__content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: clamp(8px, 2.8vw, 14px);
    padding: 0 clamp(10px, 3vw, 16px);
  }

  .promo-item-mobile__deposit {
    font-family: "Phudu", sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 6.2vw, 28px);
    line-height: 1;
    letter-spacing: 0.01em;
    color: #ffffff;
    text-align: right;
    text-shadow: 0 3px 4px rgba(0, 0, 0, 0.28);
    white-space: nowrap;
  }

  .promo-item-mobile__arrow {
    width: clamp(40px, 12.5vw, 54px);
    height: auto;
    transform: scaleY(-1);
    flex-shrink: 0;
  }

  .promo-item-mobile__bonus {
    font-family: "Phudu", sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 6.2vw, 28px);
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: left;
    white-space: nowrap;
    background: linear-gradient(180deg, #f4f83a 0%, #fbd701 53%, #f4f83a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
  }

  .cta-wrap {
    width: 88.5%;
    max-width: 326px;
  }

  .gates-section {
    margin-top: 20px;
  }

  .gates-heading-wrap {
    width: 93%;
    max-width: 372px;
    margin-bottom: 12px;
  }

  .gates-heading--pc {
    display: none;
  }

  .gates-heading--mobile {
    display: block;
    width: 100%;
    height: auto;
  }

  .gates-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn {
    animation: none;
  }
  .badge-link,
  .promo-item-pc,
  .promo-item-mobile,
  .cta-btn,
  .gate-card {
    transition: none;
  }
}
