/* =========================================================
   永禎幸運果園 Young Zen Lucky Garden — Design System
   Brand: natural / premium food brand / botanical & wood
   ========================================================= */

:root {
  /* ---- Brand green ---- */
  --green-900: #1E3714;
  --green-800: #27491B;
  --green-700: #326024;
  --green-600: #3E7A2A;
  --green-500: #4C9233;
  --green-400: #6FAE45;
  --green-300: #9ECB79;
  --green-200: #CBE5B4;
  --green-100: #E7F2DC;
  --green-50:  #F3F8EC;

  /* ---- Cream / paper ---- */
  --cream-000: #FFFDF9;
  --cream-100: #FBF6EB;
  --cream-200: #F5EEDD;
  --cream-300: #EDE2C9;

  /* ---- Wood ---- */
  --wood-100: #F0DDB4;
  --wood-200: #E3C58C;
  --wood-400: #C89A5C;
  --wood-600: #A67940;
  --wood-800: #7C5834;
  --wood-900: #543B24;

  /* ---- Ink / text ---- */
  --ink-900: #2A2620;
  --ink-700: #4B4438;
  --ink-500: #6E6656;
  --ink-300: #A79C86;
  --ink-100: #E4DBC9;

  /* ---- Fruit accents (used sparingly: balls, icons, confetti) ---- */
  --fruit-lemon:  #F2C94C;
  --fruit-orange: #EFA45B;
  --fruit-peach:  #F1B6AA;
  --fruit-lime:   #A9CE6A;
  --fruit-mango:  #F0B23C;

  --white: #FFFFFF;
  --shadow-rgb: 60, 48, 24;

  /* ---- Elevation ---- */
  --shadow-sm: 0 2px 8px rgba(var(--shadow-rgb), .08);
  --shadow-md: 0 10px 30px rgba(var(--shadow-rgb), .12);
  --shadow-lg: 0 24px 60px rgba(var(--shadow-rgb), .18);

  /* ---- Radius ---- */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* ---- Type ---- */
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, sans-serif;
  --font-display: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, sans-serif;

  /* ---- Motion ---- */
  --ease-soft: cubic-bezier(.22,.9,.32,1);
  --ease-out-back: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: .22s;
  --dur-med: .45s;
  --dur-slow: .8s;

  --header-h: 84px;
  --container-w: 1240px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}
svg { stroke: currentColor; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Top announcement bar
   ========================================================= */
.topbar {
  background: var(--green-700);
  color: var(--cream-000);
}
.topbar p {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 9px 32px;
  font-size: 13px;
  letter-spacing: .02em;
  text-align: center;
}
.topbar__arrow { opacity: .8; margin-left: 2px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 249, .82);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(var(--shadow-rgb), .07);
  transition: box-shadow var(--dur-fast) var(--ease-soft);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; }
.brand__text {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--green-800);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand__text em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--green-500);
  margin-top: 2px;
}

.nav ul { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease-soft);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--green-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-soft);
}
.nav a:hover { color: var(--green-700); }
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-700);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { background: var(--green-100); color: var(--green-700); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke-linecap: round; }
.icon-btn__badge {
  position: absolute; top: 3px; right: 3px;
  background: var(--fruit-orange);
  color: var(--white);
  font-size: 9.5px; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%;
  display: grid; place-items: center;
}

.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform var(--dur-fast), opacity var(--dur-fast); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft), background var(--dur-fast), color var(--dur-fast), opacity var(--dur-fast);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke-linecap: round; }
.btn--primary {
  background: linear-gradient(180deg, var(--green-500), var(--green-600));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(60, 122, 42, .32), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(60, 122, 42, .4), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary:active { transform: translateY(0); }
.btn--primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--lg { padding: 17px 38px; font-size: 17px; }
.btn--ghost {
  background: transparent;
  color: var(--green-700);
  border: 1.6px solid var(--green-300);
}
.btn--ghost:hover { background: var(--green-50); border-color: var(--green-500); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 76px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -8%, var(--green-100), transparent 60%),
    linear-gradient(180deg, var(--cream-000), var(--cream-100) 60%);
}
.hero__ambient { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob--1 { width: 380px; height: 380px; right: -80px; top: -60px; background: radial-gradient(circle at 30% 30%, var(--fruit-lemon), transparent 70%); opacity: .35; }
.blob--2 { width: 300px; height: 300px; left: -100px; bottom: 40px; background: radial-gradient(circle at 30% 30%, var(--green-200), transparent 70%); }
.blob--3 { width: 220px; height: 220px; right: 12%; bottom: -60px; background: radial-gradient(circle at 30% 30%, var(--fruit-peach), transparent 70%); opacity: .3; }
.leaf-float { position: absolute; width: 46px; opacity: .5; animation: floatY 7s ease-in-out infinite; }
.leaf-float--1 { top: 18%; left: 6%; animation-delay: -1.5s; }
.leaf-float--2 { bottom: 12%; left: 42%; width: 30px; animation-delay: -3.4s; }
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(0deg);} 50% { transform: translateY(-16px) rotate(8deg);} }

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr);
  align-items: center;
  gap: 40px;
}

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--green-100);
  color: var(--green-700);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.badge-pill svg { width: 16px; height: 16px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.22;
  color: var(--ink-900);
  letter-spacing: .01em;
}
.hero__title-sub {
  display: block;
  font-size: .62em;
  font-weight: 700;
  color: var(--green-700);
  margin-top: 6px;
}

.hero__desc {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-500);
  font-weight: 500;
}

.hero__features { display: flex; gap: 30px; margin-top: 34px; }
.hero__features li { display: flex; align-items: center; gap: 10px; }
.hero__feature-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-50);
  color: var(--green-600);
  flex: none;
}
.hero__feature-icon svg { width: 21px; height: 21px; fill: none; stroke-linecap: round; }
.hero__features strong { display: block; font-size: 14px; color: var(--ink-900); font-weight: 700; }
.hero__features small { display: block; font-size: 11.5px; color: var(--ink-300); margin-top: 1px; }

.hero__cta-row { margin-top: 38px; }
.hero__cta-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-300); }

/* ---------- Hero stage / gumball machine ---------- */
.hero__stage { position: relative; display: flex; justify-content: center; }

.event-date-card {
  position: absolute;
  top: 4px; right: 6%;
  z-index: 3;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--cream-300);
  animation: floatY 6s ease-in-out infinite;
}
.event-date-card__label { display: block; font-size: 11.5px; font-weight: 700; color: var(--green-600); letter-spacing: .06em; margin-bottom: 4px; }
.event-date-card__range { display: block; font-size: 13px; font-weight: 700; color: var(--ink-900); line-height: 1.5; }

.machine-wrap { position: relative; width: min(440px, 92%); padding-top: 40px; }
.machine-shadow {
  position: absolute;
  left: 50%; bottom: -6px;
  width: 70%; height: 26px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(var(--shadow-rgb), .28), transparent 72%);
  filter: blur(2px);
}

.machine { position: relative; width: 100%; }

/* glass dome */
.machine__dome {
  position: relative;
  width: 82%;
  margin: 0 auto;
  aspect-ratio: 1 / 0.92;
  border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
  background:
    radial-gradient(120% 90% at 30% 18%, rgba(255,255,255,.85), rgba(255,255,255,0) 40%),
    linear-gradient(180deg, rgba(230, 245, 225, .55), rgba(255,255,255,.18) 60%, rgba(200, 225, 200, .35));
  border: 2px solid rgba(255,255,255,.9);
  box-shadow:
    inset 0 -14px 30px rgba(120, 150, 90, .18),
    inset 0 12px 20px rgba(255,255,255,.7),
    0 18px 34px rgba(var(--shadow-rgb), .16);
  overflow: hidden;
  z-index: 2;
}
.machine__glass-shine {
  position: absolute;
  top: 6%; left: 10%;
  width: 34%; height: 60%;
  background: linear-gradient(120deg, rgba(255,255,255,.85), rgba(255,255,255,0) 70%);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}
.machine__balls { position: absolute; inset: 0; transform-origin: 50% 50%; }
.machine__dome.is-spinning .machine__balls { animation: domeSpin .85s linear infinite; }
.machine__dome.is-spinning { animation: domeWobble .85s ease-in-out infinite; }
@keyframes domeSpin { to { transform: rotate(360deg); } }
@keyframes domeWobble { 0%,100% { transform: scale(1); } 50% { transform: scale(1.015); } }

.fruit-ball {
  position: absolute;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset -4px -6px 10px rgba(0,0,0,.14), inset 3px 4px 6px rgba(255,255,255,.55), 0 3px 6px rgba(var(--shadow-rgb), .18);
  animation: ballBob 3.6s ease-in-out infinite;
}
.fruit-ball svg { width: 55%; height: 55%; }
@keyframes ballBob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(6deg); } }

.machine__lid {
  position: relative;
  width: 30%;
  height: 20px;
  margin: -8px auto 0;
  background: linear-gradient(180deg, var(--wood-200), var(--wood-400));
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  z-index: 3;
}
.machine__knob {
  width: 34px; height: 16px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--wood-100), var(--wood-400));
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-sm);
}

.machine__neck {
  width: 20%;
  height: 26px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--green-400), var(--green-600));
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
}

.machine__cabinet {
  position: relative;
  width: 96%;
  margin: 0 auto;
  padding: 30px 22px 26px;
  border-radius: 26px 26px 20px 20px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.035) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, var(--wood-200), var(--wood-600) 90%);
  box-shadow: var(--shadow-lg), inset 0 2px 0 rgba(255,255,255,.35);
}
.machine__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  width: fit-content;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.9);
  color: var(--green-600);
  box-shadow: var(--shadow-sm);
}
.machine__plate svg { width: 18px; height: 18px; }
.machine__plate span { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--green-700); }

.machine__coinslot {
  width: 46px; height: 10px;
  margin: 0 auto 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--green-800), var(--green-600));
  box-shadow: inset 0 1px 3px rgba(0,0,0,.4);
}

.machine__chute {
  position: relative;
  width: 118px;
  height: 66px;
  margin: 0 auto;
  border-radius: 50% 50% 18px 18px / 60% 60% 18px 18px;
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
  box-shadow: inset 0 4px 10px rgba(0,0,0,.25), var(--shadow-sm);
  display: grid;
  place-items: end center;
  overflow: hidden;
}
.machine__chute-hole {
  width: 68px; height: 30px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #1c2e14, #0d1609 75%);
  box-shadow: inset 0 3px 6px rgba(0,0,0,.6);
}
.machine__flap {
  position: absolute;
  bottom: 4px; left: 50%;
  width: 54px; height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--wood-100), var(--wood-400));
  border-radius: 0 0 8px 8px;
  transform-origin: top center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-soft);
}
.machine__flap.is-open { transform: translateX(-50%) rotateX(-100deg); }

.machine__leg { position: absolute; bottom: -16px; width: 20px; height: 20px; border-radius: 6px; background: var(--wood-800); }
.machine__leg--l { left: 12%; }
.machine__leg--r { right: 12%; }

/* dispensed ball travelling out of chute */
.dispensed-ball {
  position: absolute;
  left: 50%; bottom: 64px;
  width: 46px; height: 46px;
  margin-left: -23px;
  border-radius: 50%;
  z-index: 5;
  display: grid; place-items: center;
  box-shadow: inset -4px -6px 10px rgba(0,0,0,.14), inset 3px 4px 6px rgba(255,255,255,.55), 0 8px 16px rgba(var(--shadow-rgb), .25);
}
.dispensed-ball svg { width: 55%; height: 55%; }

.burst {
  position: absolute;
  left: 50%; bottom: 60px;
  width: 4px; height: 4px;
  z-index: 6;
  pointer-events: none;
}
.burst__ray {
  position: absolute;
  left: 0; top: 0;
  width: 5px; height: 46px;
  margin-left: -2.5px;
  background: linear-gradient(180deg, var(--fruit-lemon), transparent);
  border-radius: 3px;
  transform-origin: 50% 0;
  opacity: 0;
}
.burst__ray:nth-child(1){ transform: rotate(0deg);} .burst__ray:nth-child(2){ transform: rotate(45deg);}
.burst__ray:nth-child(3){ transform: rotate(90deg);} .burst__ray:nth-child(4){ transform: rotate(135deg);}
.burst__ray:nth-child(5){ transform: rotate(180deg);} .burst__ray:nth-child(6){ transform: rotate(225deg);}
.burst__ray:nth-child(7){ transform: rotate(270deg);} .burst__ray:nth-child(8){ transform: rotate(315deg);}

.burst.is-active .burst__ray { animation: rayPulse .7s var(--ease-soft) forwards; }
@keyframes rayPulse {
  0% { opacity: 0; height: 10px; }
  40% { opacity: .9; height: 56px; }
  100% { opacity: 0; height: 70px; }
}

/* fruit shell crack halves (reuses .dispensed-ball position via JS-set vars) */
.shell-half {
  position: absolute;
  width: 46px; height: 23px;
  border-radius: 46px 46px 0 0;
  z-index: 6;
  pointer-events: none;
}
.shell-half--bottom { border-radius: 0 0 46px 46px; }

/* =========================================================
   Result modal
   ========================================================= */
.result-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.result-modal[hidden] { display: none; }
.result-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 26, 18, .5);
  backdrop-filter: blur(4px);
  animation: fadeIn var(--dur-med) var(--ease-soft);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.result-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: linear-gradient(180deg, var(--cream-000), var(--cream-100));
  border-radius: var(--r-lg);
  padding: 44px 34px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-300);
  overflow: hidden;
  animation: cardRise .55s var(--ease-out-back);
}
@keyframes cardRise { from { opacity: 0; transform: translateY(46px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }

.result-card__close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-500);
}
.result-card__close:hover { background: var(--green-50); color: var(--green-700); }
.result-card__close svg { width: 17px; height: 17px; }

.confetti-zone { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.confetti-piece { position: absolute; top: -12px; border-radius: 2px; opacity: 0; }

.result-card__eyebrow { position: relative; font-size: 15px; font-weight: 700; color: var(--green-600); letter-spacing: .04em; }
.result-card__prize-icon {
  position: relative;
  width: 84px; height: 84px;
  margin: 16px auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-50);
  box-shadow: inset 0 -6px 10px rgba(120,150,90,.18);
}
.result-card__prize-icon svg { width: 46px; height: 46px; }
.result-card__title { position: relative; font-size: 26px; font-weight: 900; color: var(--ink-900); }
.result-card__desc { position: relative; margin-top: 10px; font-size: 13.5px; color: var(--ink-500); line-height: 1.6; }
.result-card__code {
  position: relative;
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: 1.4px dashed var(--green-300);
  color: var(--green-700);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .05em;
}
.result-card__actions { position: relative; display: flex; gap: 12px; margin-top: 24px; }
.result-card__actions .btn { flex: 1; padding: 13px 16px; font-size: 14.5px; }
.result-card__fine { position: relative; margin-top: 18px; font-size: 10.8px; color: var(--ink-300); line-height: 1.6; }

/* =========================================================
   Section title (shared)
   ========================================================= */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 900;
  color: var(--ink-900);
  margin-bottom: 48px;
}
.section-title--left { justify-content: flex-start; margin-bottom: 10px; }
.section-title__leaf { width: 22px; height: 22px; color: var(--green-400); }
.section-title__leaf--r { transform: scaleX(-1); }

/* =========================================================
   Activity flow
   ========================================================= */
.flow { padding: 100px 0; background: var(--cream-100); }
.flow__grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 8px; }
.flow-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 34px 22px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--cream-300);
  position: relative;
  transition: transform var(--dur-med) var(--ease-soft), box-shadow var(--dur-med) var(--ease-soft);
}
.flow-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.flow-card__num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-600); color: var(--white);
  font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.flow-card__icon {
  width: 64px; height: 64px;
  margin: 10px auto 18px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: grid; place-items: center;
}
.flow-card__icon svg { width: 30px; height: 30px; fill: none; stroke-linecap: round; }
.flow-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.flow-card p { font-size: 13px; color: var(--ink-500); line-height: 1.6; }
.flow__arrow { display: flex; align-items: center; justify-content: center; color: var(--green-300); }
.flow__arrow svg { width: 22px; height: 22px; }

/* =========================================================
   Prizes
   ========================================================= */
.prizes { padding: 100px 0; background: linear-gradient(180deg, var(--cream-100), var(--cream-000)); }
.prizes__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.prize-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 22px 16px 20px;
  text-align: center;
  border: 1px solid var(--cream-300);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-soft), box-shadow var(--dur-med) var(--ease-soft);
}
.prize-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.prize-card__photo {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.prize-card__photo svg { width: 46%; height: 46%; position: relative; z-index: 1; }
.prize-card__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.5), rgba(255,255,255,0) 55%);
}
.prize-card__name { font-size: 13.5px; font-weight: 700; color: var(--ink-900); line-height: 1.5; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.prize-card__odds {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--green-50);
  color: var(--green-600);
  font-size: 11.5px;
  font-weight: 700;
}
.prizes__disclaimer { margin-top: 30px; text-align: center; font-size: 12px; color: var(--ink-300); }

/* =========================================================
   Rules
   ========================================================= */
.rules { padding: 90px 0; background: var(--green-800); color: var(--cream-000); position: relative; overflow: hidden; }
.rules::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 90% 10%, rgba(255,255,255,.06), transparent 60%);
}
.rules__inner { position: relative; display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; align-items: start; }
.rules__head .section-title { color: var(--cream-000); }
.rules__head .section-title__leaf { color: var(--green-300); }
.rules__head p { color: rgba(255,255,255,.68); font-size: 14.5px; max-width: 320px; line-height: 1.7; }
.rules__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.rules__list li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 18px 20px; }
.rules__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--green-200); }
.rules__icon svg { width: 18px; height: 18px; fill: none; stroke-linecap: round; }
.rules__list p { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.9); }

/* =========================================================
   Mobile mockups
   ========================================================= */
.mockups { padding: 100px 0 110px; background: var(--cream-000); }
.mockups__head { text-align: center; margin-bottom: 52px; }
.chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: var(--wood-100);
  color: var(--wood-900);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.mockups__head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; }
.mockups__head p { margin-top: 10px; font-size: 14px; color: var(--ink-500); }

.mockups__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.mockup {
  text-align: center;
}
.mockup__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9/18.5;
  border-radius: 34px;
  background: var(--ink-900);
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.mockup__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--cream-100);
  display: flex;
  flex-direction: column;
}
.mockup__notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 46%; height: 16px; border-radius: 10px; background: var(--ink-900); z-index: 5;
}
.mockup__caption { margin-top: 16px; font-size: 12.5px; color: var(--ink-500); }
.mockup__caption strong { display: block; font-size: 13.5px; color: var(--ink-900); font-weight: 800; margin-bottom: 3px; }

/* mini recreations inside phone screens */
.mscreen { flex: 1; display: flex; flex-direction: column; }
.mscreen__topbar { height: 22px; background: var(--green-700); flex: none; }
.mscreen__header { height: 34px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: rgba(255,253,249,.9); }
.mscreen__logo { width: 14px; height: 14px; color: var(--green-600); }
.mscreen__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cream-300); }
.mscreen__hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: linear-gradient(180deg, var(--cream-000), var(--green-50)); text-align: center; }
.mscreen__hero h5 { font-size: 12px; font-weight: 900; color: var(--ink-900); line-height: 1.4; }
.mscreen__hero span { font-size: 8.5px; color: var(--ink-500); }
.mscreen__machine { width: 58px; height: 58px; margin: 4px auto; position: relative; }
.mscreen__machine--spin svg { animation: domeSpin 1s linear infinite; transform-origin: 50% 40%; }
.mscreen__btn { margin-top: 6px; padding: 6px 16px; border-radius: 999px; background: var(--green-600); color: #fff; font-size: 9.5px; font-weight: 800; }
.mscreen__result { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; background: linear-gradient(180deg, var(--cream-000), var(--cream-100)); }
.mscreen__badge { font-size: 10px; font-weight: 800; color: var(--green-600); }
.mscreen__amount { font-size: 20px; font-weight: 900; color: var(--ink-900); }
.mscreen__list { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--cream-000); }
.mscreen__row { display: flex; gap: 8px; align-items: flex-start; background: var(--green-50); border-radius: 10px; padding: 8px 10px; }
.mscreen__row i { width: 14px; height: 14px; border-radius: 50%; background: var(--green-500); flex: none; margin-top: 2px; }
.mscreen__row span { font-size: 8.5px; color: var(--ink-700); line-height: 1.5; }
.mscreen__coupon { margin: auto 14px; padding: 14px; border-radius: 14px; border: 1.4px dashed var(--green-300); background: var(--green-50); text-align: center; }
.mscreen__coupon b { display: block; font-size: 15px; color: var(--green-700); font-weight: 900; }
.mscreen__coupon small { font-size: 8px; color: var(--ink-500); }
.mscreen__code { margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--white); text-align: left; font-size: 8.5px; color: var(--ink-500); box-shadow: var(--shadow-sm); }
.mscreen__code b { display: block; color: var(--ink-900); font-size: 10px; margin-bottom: 4px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--cream-200); border-top: 1px solid var(--cream-300); padding-top: 64px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer__brand p { margin-top: 16px; font-size: 12.5px; color: var(--ink-500); line-height: 1.9; }
.footer__col h4 { font-size: 14px; font-weight: 800; margin-bottom: 16px; color: var(--ink-900); }
.footer__col p { font-size: 12.8px; color: var(--ink-500); line-height: 2.1; }
.footer__col a:hover { color: var(--green-700); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--green-700); box-shadow: var(--shadow-sm); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--cream-300);
  padding: 20px 32px 26px;
  font-size: 11.8px; color: var(--ink-300);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .prizes__grid { grid-template-columns: repeat(3, 1fr); }
  .rules__inner { grid-template-columns: 1fr; }
  .rules__list { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--cream-000); transform: translateX(100%); transition: transform var(--dur-med) var(--ease-soft); overflow-y: auto; padding: 20px 0; z-index: 39; }
  .nav.is-open { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 32px; }
  .nav a { display: block; width: 100%; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--cream-300); }
  .nav-toggle { display: flex; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__content { text-align: center; }
  .hero__features { justify-content: center; }
  .hero__cta-row { display: flex; flex-direction: column; align-items: center; }
  .hero__stage { margin-top: 40px; }

  .flow__grid { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); margin: -4px 0; }

  .prizes__grid { grid-template-columns: repeat(2, 1fr); }
  .mockups__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .topbar p { font-size: 11.5px; padding: 8px 16px; }
  .hero { padding: 48px 0 70px; }
  .hero__title { font-size: 30px; }
  .hero__features { flex-direction: column; align-items: flex-start; gap: 16px; }
  .event-date-card { position: static; margin: 0 auto 20px; width: fit-content; }
  .rules__list { grid-template-columns: 1fr; }
  .result-card { padding: 36px 22px 26px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
}
