:root {
  color-scheme: dark;
  --navy-950: #020817;
  --navy-900: #061126;
  --navy-850: #091933;
  --navy-800: #0d2142;
  --ink: #f7f8fb;
  --muted: #9eabc2;
  --gold-100: #fff4bd;
  --gold-300: #ffe06e;
  --gold-500: #ffbd2e;
  --gold-600: #f39a0d;
  --red: #ed2939;
  --blue: #174aa8;
  --line: rgba(255, 218, 102, 0.27);
  --shadow-gold: 0 18px 54px rgba(246, 173, 34, 0.2);
  --page-width: 1180px;
  --page-gutter: clamp(18px, 4vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(31, 75, 142, 0.24), transparent 26rem),
    linear-gradient(180deg, #030a1c 0%, var(--navy-950) 48%, #020715 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: clip;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.motion-ready .steps-list .step-card:nth-child(2).is-visible {
  transition-delay: 90ms;
}

.motion-ready .steps-list .step-card:nth-child(3).is-visible {
  transition-delay: 180ms;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: white;
  color: var(--navy-950);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.merdeka-ribbon {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 31fr 14fr 39fr 16fr;
  height: 5px;
}

.ribbon-red { background: var(--red); }
.ribbon-white { background: #fff; }
.ribbon-blue { background: var(--blue); }
.ribbon-yellow { background: #ffcf35; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  padding-block: 14px;
  animation: header-arrive 700ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.brand-logo {
  width: clamp(142px, 39vw, 194px);
  height: auto;
  animation: logo-arrive 850ms cubic-bezier(0.2, 0.75, 0.2, 1) both, logo-glow 4.8s ease-in-out 1.2s infinite;
  transform-origin: 50% 50%;
}

.header-badge {
  position: absolute;
  right: var(--page-gutter);
  top: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 7px 5px 8px;
  border: 1px solid rgba(255, 219, 103, 0.34);
  border-radius: 999px;
  color: var(--gold-300);
  background: rgba(7, 17, 37, 0.72);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  transform: translateY(-50%);
}

.header-badge-label {
  display: none;
}

.flag-pole {
  position: relative;
  display: block;
  width: 49px;
  padding-left: 4px;
  animation: flag-bob 3.4s ease-in-out infinite;
}

.flag-pole::before {
  position: absolute;
  z-index: 2;
  top: -3px;
  bottom: -4px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2a8, #b96f08);
  box-shadow: 0 0 6px rgba(255, 210, 76, 0.42);
  content: "";
}

.flag-pole::after {
  position: absolute;
  z-index: 3;
  top: -6px;
  left: -2px;
  width: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 7px rgba(255, 210, 76, 0.65);
  content: "";
}

.flag-wave {
  display: block;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
  animation: malaysia-flag-wave 1.8s ease-in-out infinite;
}

.merdeka-flag {
  width: 44px;
  height: 22px;
  border-radius: 1px 2px 2px 1px;
  filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.38));
}

.merdeka-number {
  position: absolute;
  z-index: 5;
  right: -3px;
  bottom: -7px;
  display: grid;
  width: 20px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #fff0a2;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe36f, #ed970d);
  box-shadow: 0 0 0 3px rgba(255, 199, 52, 0.13), 0 4px 8px rgba(0, 0, 0, 0.38);
  color: #061329;
  font-size: 0.55rem;
  font-weight: 950;
  line-height: 1;
  animation: merdeka-number-pulse 2.8s ease-in-out infinite;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  min-height: 570px;
  padding-top: clamp(42px, 11vw, 82px);
  padding-bottom: 72px;
  text-align: center;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 4% -25% auto;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 36, 83, 0.42), transparent 65%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -18%;
  bottom: 0;
  left: -18%;
  height: 43%;
  background: radial-gradient(ellipse at bottom, rgba(255, 181, 33, 0.15), transparent 67%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 800px);
  margin-inline: auto;
}

.hero-copy > .eyebrow,
.hero h1 > span,
.hero-description,
.hero-button,
.hero-footnote {
  animation: hero-rise 720ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero-copy > .eyebrow { animation-delay: 120ms; }
.hero h1 > span:nth-child(1) { animation-delay: 220ms; }
.hero h1 > span:nth-child(2) { animation-delay: 310ms; }
.hero h1 > span:nth-child(3) { animation-delay: 400ms; }
.hero-description { animation-delay: 500ms; }
.hero-button { animation-delay: 590ms; }
.hero-footnote { animation-delay: 680ms; }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold-500);
  font-size: clamp(0.75rem, 2.8vw, 0.94rem);
  font-weight: 900;
  letter-spacing: 0.19em;
  line-height: 1.4;
}

.eyebrow span {
  font-size: 1.1em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 9.1vw, 5.3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.99;
  text-wrap: balance;
}

.hero h1 > span {
  display: block;
  margin-bottom: 12px;
}

.hero h1 > span:nth-child(2) {
  font-size: 0.6em;
  font-weight: 720;
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.hero h1 strong {
  color: white;
  font-weight: 850;
}

.gold-text {
  color: var(--gold-300);
  background: linear-gradient(100deg, #ffb827 10%, #fff1a4 48%, #ff9f13 94%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .gold-text {
  margin-top: 20px;
  font-size: 0.83em;
  font-weight: 680;
  line-height: 1.02;
}

.typing-reward {
  display: grid !important;
  background: none;
  -webkit-background-clip: initial;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

.typing-sizer,
.typing-visual {
  grid-area: 1 / 1;
}

.typing-sizer {
  visibility: hidden;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.typing-visual {
  align-self: start;
}

.typing-output {
  display: inline;
  color: var(--gold-300);
  background: linear-gradient(100deg, #ffb827 10%, #fff1a4 48%, #ff9f13 94%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-caret {
  display: inline-block;
  width: 3px;
  height: 0.78em;
  margin-left: 0.08em;
  border-radius: 2px;
  opacity: 0;
  background: var(--gold-300);
  box-shadow: 0 0 10px rgba(255, 205, 65, 0.68);
  transform: translateY(0.04em);
}

.typing-reward.is-typing .typing-caret {
  opacity: 1;
  animation: typing-caret-blink 720ms steps(1, end) infinite;
}

.typing-reward.is-typing.is-settled .typing-caret {
  opacity: 0;
  animation: none;
  transition: opacity 240ms ease;
}

.hero-description {
  max-width: 630px;
  margin: 28px auto 24px;
  color: #b9c4d7;
  font-size: clamp(0.94rem, 4.2vw, 1.13rem);
}

.hero-description strong {
  color: white;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button::after {
  position: absolute;
  z-index: -1;
  top: -80%;
  bottom: -80%;
  left: -36%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  content: "";
  pointer-events: none;
  transform: skewX(-20deg) translateX(-220%);
  animation: button-shine 4.2s ease-in-out 1.4s infinite;
}

.button-primary {
  border: 1px solid #ffe789;
  background: linear-gradient(180deg, #ffe176 0%, #ffb62c 66%, #f49b0e 100%);
  box-shadow: 0 5px 0 #b96708, 0 14px 34px rgba(255, 177, 32, 0.18);
  color: #071430;
}

.button-secondary {
  border: 1px solid rgba(255, 217, 96, 0.68);
  background: rgba(8, 23, 50, 0.9);
  box-shadow: 0 13px 35px rgba(0, 0, 0, 0.27);
  color: var(--gold-300);
}

.button:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible,
.chest-button:focus-visible,
summary:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

.hero-button {
  width: min(100%, 520px);
}

.hero-footnote {
  margin: 18px auto 0;
  color: #77849c;
  font-size: 0.73rem;
}

.hero-emblem {
  position: absolute;
  z-index: 3;
  right: max(10px, 4vw);
  bottom: 14px;
  display: none;
  width: 144px;
  aspect-ratio: 1;
  align-content: center;
  border: 5px solid #ffe581;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd866, #ec9207);
  box-shadow: 0 0 0 12px rgba(255, 199, 60, 0.14), var(--shadow-gold);
  color: #07142d;
  transform: rotate(6deg);
  animation: emblem-float 4.2s ease-in-out 1s infinite;
}

.hero-emblem span {
  display: block;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.hero-emblem strong {
  display: block;
  margin-top: 2px;
  font-size: 2rem;
  line-height: 1;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  left: 50%;
  border: 1px solid rgba(255, 207, 74, 0.1);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-orbit-one {
  top: 12%;
  width: 620px;
  height: 350px;
  animation: orbit-turn 24s linear infinite;
}

.hero-orbit-two {
  top: 19%;
  width: 470px;
  height: 260px;
  border-style: dashed;
  animation: orbit-turn-reverse 19s linear infinite;
}

.hero-sparkles {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-sparkles i {
  position: absolute;
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: var(--gold-300);
  box-shadow: 0 0 8px var(--gold-300), 0 0 18px rgba(255, 185, 40, 0.72);
  animation: sparkle-drift 4.6s ease-in-out infinite;
}

.hero-sparkles i::before,
.hero-sparkles i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.hero-sparkles i::before { width: 15px; height: 1px; }
.hero-sparkles i::after { width: 1px; height: 15px; }
.hero-sparkles i:nth-child(1) { top: 15%; left: 8%; animation-delay: -0.4s; }
.hero-sparkles i:nth-child(2) { top: 27%; right: 10%; animation-delay: -2.1s; }
.hero-sparkles i:nth-child(3) { top: 52%; left: 3%; animation-delay: -3.4s; }
.hero-sparkles i:nth-child(4) { top: 68%; right: 6%; animation-delay: -1.2s; }
.hero-sparkles i:nth-child(5) { top: 81%; left: 19%; animation-delay: -2.8s; }
.hero-sparkles i:nth-child(6) { top: 12%; right: 29%; animation-delay: -3.8s; }
.hero-sparkles i:nth-child(7) { top: 38%; left: 17%; animation-delay: -1.8s; color: #ef3340; background: #ef3340; box-shadow: 0 0 12px rgba(239, 51, 64, 0.75); }
.hero-sparkles i:nth-child(8) { top: 74%; right: 23%; animation-delay: -0.9s; color: #3f74d7; background: #3f74d7; box-shadow: 0 0 12px rgba(63, 116, 215, 0.75); }

.treasure-section {
  position: relative;
  padding-top: 50px;
  padding-bottom: 92px;
  text-align: center;
}

.section-heading {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.assurance-card h2,
.final-cta-card h2 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.1rem);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.07;
  text-wrap: balance;
}

.section-heading > p:last-child {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 3.8vw, 1.08rem);
}

.treasure-stage {
  position: relative;
  width: min(100%, 820px);
  margin: 40px auto 16px;
  padding: 30px 0 6px;
}

.treasure-stage::before,
.treasure-stage::after {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 202, 55, 0.16);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.treasure-stage::before {
  width: 98%;
  height: 88%;
}

.treasure-stage::after {
  width: 72%;
  height: 66%;
  border-style: dashed;
}

.stage-glow {
  position: absolute;
  z-index: -2;
  right: 2%;
  bottom: 0;
  left: 2%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(241, 164, 20, 0.22), transparent 70%);
  filter: blur(14px);
}

.chest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(1px, 1.4vw, 16px);
}

.chest-button {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 0 0 8px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: transform 220ms ease, filter 220ms ease;
  animation: chest-float 4.2s ease-in-out infinite;
}

.chest-button:nth-child(2) {
  top: -16px;
  animation-delay: -1.35s;
}

.chest-button:nth-child(3) {
  animation-delay: -2.7s;
}

.chest-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 546 / 594;
  transform-origin: 50% 85%;
  transition: transform 220ms ease, filter 220ms ease;
}

.chest-visual::after {
  position: absolute;
  inset: 15%;
  border: 2px solid rgba(255, 224, 100, 0.86);
  border-radius: 50%;
  opacity: 0;
  content: "";
  pointer-events: none;
}

.chest-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 13px 10px rgba(0, 0, 0, 0.45));
}

.chest-button:hover .chest-visual {
  transform: translateY(-7px) scale(1.025);
}

.chest-button.is-selected .chest-visual {
  filter: drop-shadow(0 0 11px rgba(255, 220, 88, 0.9)) drop-shadow(0 0 28px rgba(255, 171, 27, 0.62));
  transform: translateY(-11px) scale(1.05);
}

.chest-button.is-selected .chest-label {
  border-color: #ffe172;
  background: var(--gold-500);
  box-shadow: 0 0 22px rgba(255, 185, 45, 0.38);
  color: #08142c;
}

.chest-button.is-celebrating .chest-visual::after {
  animation: selection-burst 650ms ease-out both;
}

.chest-button.is-celebrating .choice-mark {
  animation: choice-pop 480ms cubic-bezier(0.2, 0.85, 0.25, 1.35) both;
}

.choice-mark {
  position: absolute;
  top: 52%;
  left: 50%;
  display: grid;
  width: clamp(28px, 8vw, 44px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  opacity: 0;
  background: var(--gold-500);
  box-shadow: 0 4px 18px rgba(5, 10, 24, 0.55);
  color: var(--navy-950);
  font-size: clamp(0.85rem, 3vw, 1.2rem);
  font-weight: 950;
  transform: translate(-50%, -30%) scale(0.65);
  transition: opacity 180ms ease, transform 180ms ease;
}

.is-selected .choice-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.chest-label {
  position: relative;
  z-index: 3;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: -9px;
  padding: 7px clamp(12px, 4vw, 25px);
  border: 1px solid rgba(255, 210, 66, 0.5);
  border-radius: 999px;
  background: #081a3a;
  color: var(--gold-300);
  font-size: clamp(0.65rem, 2.7vw, 0.82rem);
  font-weight: 950;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.click-hint {
  position: absolute;
  z-index: 9;
  top: 42%;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 224, 108, 0.86);
  border-radius: 50%;
  opacity: 1;
  background: radial-gradient(circle at 45% 35%, rgba(27, 59, 109, 0.96), rgba(3, 13, 31, 0.96) 72%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 13px rgba(255, 195, 45, 0.24);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 260ms ease, transform 260ms ease;
}

.click-hint.is-dismissed {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
}

.tap-hand {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.48));
  transform-origin: 50% 15%;
  animation: tap-hand-motion 1.35s ease-in-out infinite;
}

.tap-ring {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 44px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 228, 112, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 196, 46, 0.48);
  transform: translate(-50%, -50%);
  animation: tap-ring-pulse 1.35s ease-out infinite;
}

.selection-result {
  display: grid;
  width: min(100%, 660px);
  min-height: 84px;
  align-content: center;
  margin: 20px auto 20px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(16, 38, 76, 0.76), rgba(6, 16, 34, 0.82));
}

.selection-message {
  margin: 0;
  color: var(--gold-300);
  font-size: 1rem;
  font-weight: 850;
}

.selection-note {
  margin: 5px 0 0;
  color: #bac5d8;
  font-size: 0.83rem;
}

.treasure-section > .button {
  width: min(100%, 380px);
}

.campaign-marquee {
  position: relative;
  z-index: 4;
  width: calc(100% + 12px);
  margin-left: -6px;
  overflow: hidden;
  border-block: 2px solid var(--gold-100);
  background: linear-gradient(90deg, #f5a51b, #ffe173 50%, #f5a51b);
  color: #07142d;
  transform: rotate(-0.8deg);
}

.campaign-marquee div {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  padding: 14px 20px;
  font-size: clamp(0.71rem, 2.6vw, 0.9rem);
  font-weight: 950;
  letter-spacing: 0.14em;
  white-space: nowrap;
  animation: marquee-drift 13s ease-in-out infinite alternate;
}

.campaign-marquee i {
  color: var(--red);
  font-style: normal;
}

.steps-section {
  padding-top: 118px;
  padding-bottom: 110px;
}

.steps-list {
  display: grid;
  gap: 16px;
  max-width: 960px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
}

.step-card {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 142px;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  padding: 23px 22px;
  border: 1px solid rgba(95, 127, 180, 0.32);
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(10, 31, 66, 0.94), rgba(5, 16, 36, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.step-card:nth-child(2) {
  border-color: rgba(255, 200, 50, 0.34);
}

.step-card::after {
  position: absolute;
  z-index: -1;
  top: -50px;
  right: -48px;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  content: "";
}

.step-icon {
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 19px;
  background: linear-gradient(145deg, #ffe274, #ffac21);
  color: var(--navy-950);
  font-size: 1.65rem;
  font-weight: 950;
  animation: icon-pulse 3.8s ease-in-out infinite;
}

.step-card:nth-child(2) .step-icon { animation-delay: -1.25s; }
.step-card:nth-child(3) .step-icon { animation-delay: -2.5s; }

.step-icon svg {
  width: 29px;
  fill: currentColor;
}

.step-icon-question {
  font-size: 2rem;
}

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

.step-copy strong,
.step-copy small {
  display: block;
}

.step-copy strong {
  position: relative;
  z-index: 2;
  font-size: clamp(1.02rem, 4.5vw, 1.32rem);
  font-weight: 650;
  line-height: 1.2;
}

.step-copy small {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.step-number {
  position: absolute;
  z-index: 0;
  top: 13px;
  right: 18px;
  color: rgba(255, 255, 255, 0.17);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.assurance-section {
  padding-top: 42px;
  padding-bottom: 118px;
}

.assurance-card {
  position: relative;
  isolation: isolate;
  max-width: 900px;
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(34px, 7vw, 74px) clamp(20px, 7vw, 78px);
  border: 1px solid rgba(255, 209, 65, 0.32);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 189, 45, 0.12), transparent 19rem),
    linear-gradient(145deg, #0c1d3b 0%, #051126 62%, #100b20 100%);
  text-align: center;
}

.assurance-card::before {
  position: absolute;
  z-index: -1;
  top: -80px;
  left: -80px;
  width: 240px;
  aspect-ratio: 1;
  border: 44px solid rgba(31, 76, 165, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 29px rgba(238, 42, 61, 0.08), 0 0 0 53px rgba(255, 255, 255, 0.04);
  content: "";
}

.assurance-card::after {
  position: absolute;
  z-index: -1;
  top: -35%;
  left: -25%;
  width: 45%;
  height: 170%;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 75, 0.08), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(18deg);
  animation: card-aurora 8s ease-in-out infinite;
}

.assurance-card > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(0.93rem, 3.7vw, 1.06rem);
}

.check-list {
  display: grid;
  gap: 15px;
  max-width: 560px;
  margin: 30px auto 34px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.check-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  color: #d6ddeb;
  font-size: 0.9rem;
}

.check-list span {
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 188, 39, 0.14);
  color: var(--gold-300);
  font-weight: 950;
}

.assurance-card .button {
  width: min(100%, 440px);
}

.final-cta {
  padding-bottom: 100px;
}

.final-cta-card {
  position: relative;
  isolation: isolate;
  max-width: 960px;
  margin-inline: auto;
  overflow: hidden;
  padding: clamp(38px, 8vw, 84px) clamp(20px, 7vw, 72px);
  border: 1px solid rgba(255, 214, 78, 0.46);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 21%, rgba(255, 205, 70, 0.09), transparent 18rem),
    linear-gradient(145deg, #102448 0%, #071229 51%, #180b1b 100%);
  text-align: center;
}

.final-cta-card::before {
  position: absolute;
  z-index: -1;
  top: 22%;
  left: 50%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 57, 0.15), transparent 66%);
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: final-glow 4.5s ease-in-out infinite;
}

.flag-beam {
  position: absolute;
  z-index: -1;
  width: 54%;
  height: 70px;
  opacity: 0.18;
  background: linear-gradient(180deg, var(--red) 0 25%, #fff 25% 50%, var(--blue) 50% 75%, #ffcb37 75%);
  filter: blur(1px);
  transform: rotate(-32deg);
}

.flag-beam-top {
  top: 3%;
  left: -16%;
}

.flag-beam-bottom {
  right: -15%;
  bottom: 5%;
}

.final-cta-card h2 {
  max-width: 720px;
  margin-inline: auto;
  text-transform: uppercase;
}

.reward-equation {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(12px, 4vw, 36px);
  align-items: center;
  max-width: 620px;
  margin: 36px auto;
}

.reward-equation > span {
  display: grid;
  min-width: 0;
  justify-items: center;
  justify-content: center;
  gap: 4px;
}

.reward-equation small {
  color: #9ca9c1;
  font-size: clamp(0.6rem, 2.5vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.reward-equation strong {
  display: block;
  color: var(--gold-300);
  font-size: clamp(1.7rem, 7vw, 3.5rem);
  line-height: 1;
}

.reward-equation i {
  color: #71809b;
  font-size: 1.6rem;
  font-style: normal;
}

.final-cta-card .button {
  width: min(100%, 560px);
}

.final-disclaimer {
  max-width: 620px;
  margin: 24px auto 0;
  color: #8794ab;
  font-size: 0.76rem;
}

.terms-section {
  padding-bottom: 104px;
}

.terms-section details {
  border-block: 1px solid rgba(132, 155, 190, 0.18);
}

.terms-section summary {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  color: #d5ddec;
  font-size: 1rem;
  font-weight: 800;
  list-style: none;
}

.terms-section summary::-webkit-details-marker {
  display: none;
}

.terms-section summary span {
  color: var(--gold-300);
  font-size: 1.8rem;
  transition: transform 180ms ease;
}

.terms-section details[open] summary span {
  transform: rotate(45deg);
}

.terms-content {
  max-width: 850px;
  padding: 0 0 30px;
  color: var(--muted);
  font-size: 0.84rem;
}

.terms-content ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 120px;
  border-top: 1px solid rgba(132, 155, 190, 0.14);
  color: #65728a;
  text-align: center;
}

.site-footer img {
  width: 154px;
  height: auto;
  margin-bottom: 14px;
}

.site-footer p {
  margin: 4px 0;
  font-size: 0.82rem;
}

.sticky-cta {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 218, 94, 0.48);
  background: rgba(3, 12, 29, 0.93);
  box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
}

.sticky-cta > div {
  min-width: 0;
}

.sticky-cta span,
.sticky-cta strong {
  display: block;
}

.sticky-cta span {
  overflow: hidden;
  color: #8794ac;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-cta strong {
  color: var(--gold-300);
  font-size: 1.35rem;
  line-height: 1.1;
}

.sticky-cta .button {
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.7rem;
  white-space: nowrap;
}

@media (hover: hover) {
  .step-card:hover {
    border-color: rgba(255, 210, 76, 0.48);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.04);
    transform: translateY(-6px);
  }
}

@keyframes header-arrive {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-arrive {
  from { opacity: 0; transform: translateX(-18px) scale(0.94); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 196, 40, 0)); }
  50% { filter: drop-shadow(0 0 12px rgba(255, 196, 40, 0.42)); }
}

@keyframes flag-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(1deg); }
}

@keyframes malaysia-flag-wave {
  0%, 100% { transform: perspective(90px) rotateY(0deg) skewY(0deg); filter: brightness(1); }
  35% { transform: perspective(90px) rotateY(-9deg) skewY(1.2deg); filter: brightness(1.08); }
  70% { transform: perspective(90px) rotateY(7deg) skewY(-0.8deg); filter: brightness(0.97); }
}

@keyframes merdeka-number-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(255, 199, 52, 0.11), 0 4px 8px rgba(0, 0, 0, 0.38); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(255, 199, 52, 0.06), 0 5px 12px rgba(255, 181, 28, 0.25); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes typing-caret-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0.18; }
}

@keyframes button-shine {
  0%, 58% { transform: skewX(-20deg) translateX(-220%); }
  78%, 100% { transform: skewX(-20deg) translateX(780%); }
}

@keyframes emblem-float {
  0%, 100% { transform: translateY(0) rotate(6deg); box-shadow: 0 0 0 12px rgba(255, 199, 60, 0.12), var(--shadow-gold); }
  50% { transform: translateY(-9px) rotate(3deg); box-shadow: 0 0 0 16px rgba(255, 199, 60, 0.08), 0 22px 62px rgba(246, 173, 34, 0.28); }
}

@keyframes orbit-turn {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes orbit-turn-reverse {
  from { transform: translateX(-50%) rotate(360deg); }
  to { transform: translateX(-50%) rotate(0deg); }
}

@keyframes sparkle-drift {
  0%, 100% { opacity: 0; transform: translateY(16px) rotate(0deg) scale(0.55); }
  35%, 60% { opacity: 0.9; }
  50% { transform: translateY(-9px) rotate(45deg) scale(1); }
}

@keyframes chest-float {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-7px) rotate(0.5deg); }
}

@keyframes selection-burst {
  0% { opacity: 0.9; transform: scale(0.45); }
  75% { opacity: 0.35; }
  100% { opacity: 0; transform: scale(1.45); }
}

@keyframes choice-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.25) rotate(-24deg); }
  70% { opacity: 1; transform: translate(-50%, -50%) scale(1.16) rotate(5deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

@keyframes tap-hand-motion {
  0%, 100% { transform: translateY(9px) rotate(-5deg) scale(0.96); }
  45% { transform: translateY(1px) rotate(-2deg) scale(1); }
  62% { transform: translateY(4px) rotate(-4deg) scale(0.98); }
}

@keyframes tap-ring-pulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.72); }
  32% { opacity: 0.9; }
  78%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

@keyframes marquee-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-5%); }
}

@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 190, 45, 0); transform: translateY(0); }
  50% { box-shadow: 0 0 0 7px rgba(255, 190, 45, 0.08); transform: translateY(-3px); }
}

@keyframes card-aurora {
  0%, 100% { opacity: 0; transform: translateX(-20%) rotate(18deg); }
  40%, 65% { opacity: 1; }
  80% { opacity: 0; transform: translateX(320%) rotate(18deg); }
}

@keyframes final-glow {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.88); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@media (min-width: 520px) {
  .header-badge,
  .hero-emblem {
    display: flex;
  }

  .header-badge {
    padding: 8px 13px;
  }

  .header-badge-label {
    display: inline;
  }

  .hero-emblem {
    display: block;
  }

  .chest-grid {
    gap: 12px;
  }

  .chest-button:nth-child(2) {
    top: -26px;
  }

  .step-card {
    grid-template-columns: 74px 1fr;
    gap: 24px;
    padding: 27px 30px;
  }

  .step-icon {
    width: 74px;
  }

  .sticky-cta {
    padding-inline: max(24px, calc((100vw - 680px) / 2));
  }
}

@media (min-width: 760px) {
  .site-header {
    min-height: 96px;
  }

  .hero {
    min-height: 680px;
    align-items: center;
    padding-top: 44px;
    padding-bottom: 110px;
  }

  .hero h1 span {
    margin-bottom: 17px;
  }

  .hero-emblem {
    right: var(--page-gutter);
    bottom: 75px;
  }

  .treasure-section {
    padding-top: 86px;
    padding-bottom: 140px;
  }

  .treasure-stage {
    margin-top: 62px;
  }

  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .step-card {
    min-height: 300px;
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: start;
  }

  .step-copy small {
    font-size: 0.88rem;
  }

  .reward-equation > span {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .step-number {
    top: 24px;
    right: 25px;
    font-size: 2.6rem;
  }

  .site-footer {
    padding-bottom: 64px;
  }

  .sticky-cta {
    display: none;
  }
}

@media (max-width: 380px) {
  :root {
    --page-gutter: 15px;
  }

  .hero {
    min-height: 540px;
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .treasure-stage {
    margin-top: 30px;
  }

  .chest-label {
    padding-inline: 10px;
  }

  .step-card {
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding-inline: 17px;
  }

  .step-icon {
    width: 56px;
  }

  .reward-equation {
    gap: 8px;
  }

  .reward-equation > span {
    display: block;
  }

  .reward-equation small,
  .reward-equation strong {
    display: block;
  }

  .sticky-cta .button {
    padding-inline: 13px;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .flag-pole,
  .flag-wave,
  .merdeka-number {
    animation: none !important;
    transform: none !important;
  }

  .tap-hand,
  .tap-ring {
    animation: none !important;
  }
}
