/* ============================================================
   MR. CHEN — EL FORTUNE CLUB (rewards.html)
   Page styles · loads AFTER css/main.css and leans on its tokens.
   All borders & hard shadows: var(--chrome). Never black.
   ============================================================ */

/* ---------- current-page nav link ---------- */
/* ---------- shared: lucky coin mask ---------- */
.fc-coin {
  position: absolute; pointer-events: none;
  background: var(--yellow);
  -webkit-mask: url("../assets/icons/svg/coin-charm.svg") center / contain no-repeat;
  mask: url("../assets/icons/svg/coin-charm.svg") center / contain no-repeat;
}
/* inline coin glyph (rate pill, fortune rows) */
.fc-coin-ico {
  display: inline-block; width: 1.05em; height: 1.05em;
  vertical-align: -0.14em; flex: 0 0 auto;
  background: var(--mustard);
  -webkit-mask: url("../assets/icons/svg/coin-charm.svg") center / contain no-repeat;
  mask: url("../assets/icons/svg/coin-charm.svg") center / contain no-repeat;
}

/* ---------- hero: deep-green fortune field ---------- */
.hero.fc-hero { background: var(--green); min-height: 92svh; }
.hero.fc-hero::before {
  background: radial-gradient(ellipse 62% 52% at 50% 44%, rgba(14, 101, 52, .9) 0%, rgba(14, 101, 52, 0) 70%);
}
.fc-hero .hero__pattern { opacity: .05; filter: none; }
.fc-hero .hero__kicker { color: var(--yellow); }
.fc-hero .hero__sub { color: rgba(253, 246, 227, .92); }
.fc-word--orange { color: var(--orange); }

/* falling lucky coins — big flat masks bleeding off the field edges */
.fc-coins { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fc-coin--h1 { width: 220px; height: 220px; top: 11%; left: -64px; transform: rotate(-18deg); }
.fc-coin--h2 { width: 110px; height: 110px; top: 26%; left: 11%; transform: rotate(14deg); background: var(--mustard); animation: fc-coin-bob 6s ease-in-out infinite alternate; }
.fc-coin--h3 { width: 88px; height: 88px; top: 58%; left: 5%; transform: rotate(-32deg); }
.fc-coin--h4 { width: 260px; height: 260px; top: 15%; right: -88px; transform: rotate(22deg); }
.fc-coin--h5 { width: 128px; height: 128px; top: 46%; right: 12%; transform: rotate(-12deg); background: var(--mustard); animation: fc-coin-bob 7.5s ease-in-out infinite alternate; }
.fc-coin--h6 { width: 108px; height: 108px; bottom: 9%; left: 21%; transform: rotate(8deg); }
.fc-coin--h7 { width: 90px; height: 90px; top: 6%; right: 26%; transform: rotate(-8deg); }
.fc-coin--h8 { width: 76px; height: 76px; top: 6%; left: 34%; transform: rotate(30deg); background: var(--mustard); }
@keyframes fc-coin-bob {
  from { translate: 0 0; }
  to { translate: 0 -14px; }
}
@media (max-width: 700px) {
  .fc-coin--h2, .fc-coin--h5, .fc-coin--h6, .fc-coin--h8 { display: none; }
  .fc-coin--h1 { width: 150px; height: 150px; left: -52px; }
  .fc-coin--h4 { width: 170px; height: 170px; right: -60px; }
}

/* mobile photo chip: main.css parks it lower-LEFT (home page's wok corner);
   here that corner crowds the coins, so keep it whole, smaller, lower-RIGHT */
@media (max-width: 900px) {
  .fc-hero .hero__sticker {
    left: auto; right: clamp(1rem, 5vw, 3rem);
    bottom: clamp(4rem, 8vh, 6.5rem);
    width: 118px; height: 118px;
  }
  .fc-hero .hero__sticker-caption { left: auto; right: -0.5rem; }
}

/* honest launch banner — script sticker pill */
.fc-soon {
  display: inline-block;
  background: var(--yellow); color: var(--green);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.2;
  padding: .5rem 1.2rem .6rem;
  border: 3px solid var(--chrome); border-radius: 999px;
  box-shadow: 0 4px 0 var(--chrome);
  transform: rotate(-2deg);
  margin-top: clamp(1rem, 2.6svh, 1.8rem);
  max-width: min(92vw, 34rem);
}

/* ---------- how it works ---------- */
.fc-how {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem);
  max-width: 1400px; margin: 0 auto;
}
.fc-how__grid {
  list-style: none; counter-reset: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
}
.fc-step {
  position: relative; overflow: hidden;
  padding: clamp(1.8rem, 3.5vw, 3rem); padding-top: 150px;
  text-align: center;
  display: grid; gap: .8rem; justify-items: center; align-content: start;
  border: 3px solid var(--chrome); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--chrome);
  min-width: 0;
}
.fc-step h3 { font-family: var(--font-label); text-transform: uppercase; font-size: 1.25rem; }
.fc-step p { font-size: .97rem; line-height: 1.55; max-width: 30ch; }
.fc-step--orange { background: var(--orange); }
.fc-step--orange h3 { color: var(--ink); }
.fc-step--orange p { color: rgba(12, 11, 8, .88); }
.fc-step--yellow { background: var(--yellow); }
.fc-step--yellow h3 { color: var(--green); }
.fc-step--yellow p { color: rgba(12, 11, 8, .82); }
.fc-step--green { background: var(--green); }
.fc-step--green h3 { color: var(--yellow); }
.fc-step--green p { color: rgba(253, 246, 227, .88); }

/* oversized icon masks cropping off the card edges (template scale) */
.fc-step__icon { position: absolute; width: 212px; height: 212px; pointer-events: none; }
.fc-step__icon--coin {
  background: var(--yellow); top: -58px; left: -52px; transform: rotate(-12deg);
  -webkit-mask: url("../assets/icons/svg/coin-charm.svg") center / contain no-repeat;
  mask: url("../assets/icons/svg/coin-charm.svg") center / contain no-repeat;
}
.fc-step__icon--wok {
  background: var(--green); top: -58px; right: -52px; transform: rotate(10deg);
  -webkit-mask: url("../assets/icons/svg/wok.svg") center / contain no-repeat;
  mask: url("../assets/icons/svg/wok.svg") center / contain no-repeat;
}
.fc-step__icon--cookie {
  background: var(--yellow); top: -58px; left: -52px; transform: rotate(-9deg);
  -webkit-mask: url("../assets/icons/svg/fortune-cookie.svg") center / contain no-repeat;
  mask: url("../assets/icons/svg/fortune-cookie.svg") center / contain no-repeat;
}

/* step number — rotated coin badge, corner opposite the icon */
.fc-step__num {
  position: absolute; top: 1.1rem;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1;
  background: var(--cream); color: var(--chrome);
  border: 3px solid var(--chrome); border-radius: 50%;
  box-shadow: 0 4px 0 var(--chrome);
}
.fc-step--orange .fc-step__num { right: 1.1rem; transform: rotate(8deg); }
.fc-step--yellow .fc-step__num { left: 1.1rem; transform: rotate(-8deg); }
.fc-step--green .fc-step__num { right: 1.1rem; transform: rotate(6deg); }

.fc-step__script { font-size: 1.45rem; transform: rotate(-2deg); }
.fc-step--orange .fc-step__script { color: var(--cream); }
.fc-step--yellow .fc-step__script { color: var(--orange); }
.fc-step--green .fc-step__script { color: var(--yellow); }

@media (max-width: 820px) {
  .fc-how__grid { grid-template-columns: 1fr; }
}

/* ---------- menu of fortunes ---------- */
.fc-fortunes {
  position: relative;
  background: var(--green); color: var(--cream);
  overflow: clip;
  padding: calc(clamp(4rem, 9vw, 7rem) + 24px) clamp(1rem, 4vw, 3rem) calc(clamp(4rem, 9vw, 7rem) + 24px);
}
.fc-fortunes::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 24px; z-index: 3;
  background: var(--zigzag-down-cream) repeat-x; background-size: 48px 24px;
  pointer-events: none;
}
.fc-fortunes::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 24px; z-index: 3;
  background: var(--zigzag-up-cream) repeat-x; background-size: 48px 24px;
  pointer-events: none;
}
.fc-fortunes__pattern {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background: url("../assets/pattern/PATTERN.svg") 0 0 / 640px repeat;
}
.fc-fortunes .section-head { position: relative; z-index: 2; }
.fc-fortunes .section-head__title { color: var(--yellow); }
.fc-fortunes .section-head__sub { color: rgba(253, 246, 227, .85); }

/* earn-rate pill */
.fc-rate {
  position: relative; z-index: 2;
  width: max-content; max-width: 92vw;
  margin: clamp(1.8rem, 4vw, 2.6rem) auto 0;
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; justify-content: center;
  background: var(--yellow); color: var(--green);
  border: 3px solid var(--chrome); border-radius: 999px;
  box-shadow: 0 5px 0 var(--chrome);
  padding: .7rem 1.6rem .8rem;
  transform: rotate(1.5deg);
}
.fc-rate__label {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; font-size: .95rem;
}
.fc-rate__math { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.fc-rate__math .fc-coin-ico { background: var(--green); }

/* the fortunes board — cream menu card */
.fc-menu {
  position: relative; z-index: 2;
  max-width: 680px; margin: clamp(1.4rem, 3vw, 2rem) auto 0;
  background: var(--cream); color: var(--ink);
  border: 4px solid var(--chrome); border-radius: var(--radius);
  box-shadow: 0 10px 0 var(--chrome);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  transform: rotate(-1deg);
}
.fc-menu__list { list-style: none; display: grid; }
.fc-row {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .95rem 0;
}
.fc-row:first-child { padding-top: 0; }
.fc-row:last-child { padding-bottom: 0; }
/* dotted leader (the site's lead-row pattern) ties coin-cost to its reward */
.fc-row__coins { order: 1; }
.fc-row::before {
  content: ""; order: 2; flex: 1 1 1.5rem; min-width: 1.5rem;
  border-bottom: 3px dotted rgba(12, 11, 8, .35);
  transform: translateY(-5px);
}
.fc-row__what { order: 3; }
.fc-row__coins {
  display: flex; align-items: baseline; gap: .45rem; flex: 0 0 auto;
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1;
  color: var(--orange-deep);
}
.fc-row__coins .fc-coin-ico { align-self: center; }
.fc-row__coins small {
  font-family: var(--font-label); font-weight: 600; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(12, 11, 8, .55);
}
.fc-row__what { display: grid; gap: .2rem; text-align: right; min-width: 0; }
.fc-row__what strong {
  font-family: var(--font-label); font-weight: 700; font-size: 1.08rem;
  text-transform: uppercase; color: var(--green);
}
.fc-row__what small { font-size: .85rem; line-height: 1.4; color: rgba(12, 11, 8, .65); }
.fc-menu__note { text-align: center; margin-top: 1.6rem; display: grid; gap: .5rem; }
.fc-menu__note .script { font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--orange); transform: rotate(-1.5deg); }
.fc-menu__note small { font-size: .85rem; color: rgba(12, 11, 8, .6); }
@media (max-width: 520px) {
  .fc-row { flex-direction: column; align-items: flex-start; gap: .3rem; border-bottom: 2px dashed rgba(12, 11, 8, .3); }
  .fc-row::before { display: none; }
  .fc-row:last-child { border-bottom: 0; }
  .fc-row__what { text-align: left; }
}

/* ---------- member perks ---------- */
.fc-perks {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  max-width: 1200px; margin: 0 auto;
}
.fc-perks__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; margin-top: 4rem;
}
.fc-perks__grid > * { min-width: 0; }
.fc-perk {
  position: relative;
  border: 3px solid var(--chrome); border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--chrome);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: .9rem;
}
.fc-perk h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem); line-height: 1.05;
  text-transform: uppercase;
}
.fc-perk p { line-height: 1.6; max-width: 44ch; }
.fc-perk__script { font-size: 1.5rem; transform: rotate(-2deg); margin-top: auto; }

.fc-perk--yellow { background: var(--yellow); color: var(--ink); justify-content: center; }
.fc-perk--yellow h3 { color: var(--green); padding-right: 152px; }
.fc-perk--yellow p { color: rgba(12, 11, 8, .8); }
.fc-perk--yellow .fc-perk__script { color: var(--orange); margin-top: .2rem; }
.fc-perk__photo {
  position: absolute; top: -46px; right: -20px; z-index: 2;
  width: 170px; height: 170px;
  transform: rotate(8deg);
  pointer-events: none;
}
.fc-perk__photo img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--chrome);
  box-shadow: 0 6px 0 var(--chrome);
}

.fc-perk--orange { background: var(--orange); color: var(--cream); overflow: hidden; padding-top: 124px; }
.fc-perk--orange h3 { color: var(--ink); padding-right: 118px; }
.fc-perk--orange p { color: rgba(12, 11, 8, .88); }
.fc-perk--orange .fc-perk__script { color: var(--cream); }
/* oversized cookie mask — pushed well past the corner so the card edge
   crops through the glyph's body, never mid-stroke at the radius */
.fc-perk__icon {
  position: absolute; top: -84px; left: -80px;
  width: 248px; height: 248px; pointer-events: none;
  background: var(--yellow); transform: rotate(-14deg);
  -webkit-mask: url("../assets/icons/svg/fortune-cookie.svg") center / contain no-repeat;
  mask: url("../assets/icons/svg/fortune-cookie.svg") center / contain no-repeat;
}
/* small fortune-cookies chip balancing the flan photo on the pair */
.fc-perk--orange .fc-perk__photo {
  top: 1.3rem; right: 1.3rem; left: auto;
  width: 108px; height: 108px;
  transform: rotate(-7deg);
}
.fc-perk--orange .fc-perk__photo img { border-width: 3px; box-shadow: 0 4px 0 var(--chrome); }
@media (max-width: 900px) {
  .fc-perk__photo { width: 140px; height: 140px; top: -38px; right: -14px; }
  .fc-perk--yellow h3 { padding-right: 128px; }
}

/* ---------- faq ---------- */
.fc-faq {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) clamp(4rem, 9vw, 7rem);
  max-width: 1200px; margin: 0 auto;
}
.fc-faq__list {
  max-width: 760px; margin: clamp(2rem, 4.5vw, 3rem) auto 0;
  display: grid; gap: 1rem;
}
.fc-faq details {
  background: var(--white);
  border: 3px solid var(--chrome); border-radius: 18px;
  box-shadow: 0 5px 0 var(--chrome);
  overflow: clip;
}
.fc-faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-label); font-weight: 600; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: .03em;
  color: var(--green);
}
.fc-faq summary::-webkit-details-marker { display: none; }
.fc-faq summary:hover { background: var(--cream); }
.fc-faq summary:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: -4px;
  box-shadow: inset 0 0 0 7px rgba(12, 11, 8, .55);
}
/* coin toggle: plus flips to an X when open */
.fc-faq summary::after {
  content: ""; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--chrome);
  background:
    linear-gradient(var(--chrome), var(--chrome)) center / 13px 3px no-repeat,
    linear-gradient(var(--chrome), var(--chrome)) center / 3px 13px no-repeat,
    var(--yellow);
  box-shadow: 0 3px 0 var(--chrome);
  transition: transform .25s var(--ease-spring);
}
.fc-faq details[open] summary::after { transform: rotate(45deg); }
.fc-faq__a { padding: 0 1.3rem 1.25rem; }
.fc-faq__a p { line-height: 1.65; color: rgba(12, 11, 8, .78); max-width: 60ch; }
.fc-faq__a a { color: var(--orange-deep); font-weight: 600; }

/* ---------- join cta band ---------- */
.fc-join {
  position: relative;
  background: var(--orange); color: var(--cream);
  overflow: clip; text-align: center;
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1rem, 4vw, 3rem);
}
.fc-join::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 24px; z-index: 3;
  background: var(--zigzag-down-cream) repeat-x; background-size: 48px 24px;
  pointer-events: none;
}
.fc-join__pattern {
  position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background: url("../assets/pattern/PATTERN.svg") 0 0 / 640px repeat;
  filter: saturate(0) brightness(2.5);
}
.fc-join__deco { position: absolute; inset: 0; pointer-events: none; }
.fc-coin--j1 { width: 190px; height: 190px; left: -58px; top: 18%; transform: rotate(-16deg); background: var(--green); }
.fc-coin--j2 { width: 120px; height: 120px; left: 14%; bottom: 8%; transform: rotate(12deg); }
.fc-coin--j3 { width: 230px; height: 230px; right: -76px; top: 26%; transform: rotate(18deg); background: var(--green); }
.fc-coin--j4 { width: 104px; height: 104px; right: 16%; bottom: 10%; transform: rotate(-10deg); }
@media (max-width: 700px) {
  .fc-coin--j2, .fc-coin--j4 { display: none; }
  .fc-coin--j1 { width: 110px; height: 110px; left: -40px; top: 6%; }
  .fc-coin--j3 { width: 130px; height: 130px; right: -48px; top: 8%; }
}
.fc-join__inner {
  position: relative; z-index: 2;
  display: grid; justify-items: center; gap: clamp(1.4rem, 3vw, 2rem);
}
.fc-join__kicker { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--cream); transform: rotate(-2deg); }
.fc-join__stack { display: grid; }
.fc-join__row {
  font-family: var(--font-display); text-transform: uppercase;
  white-space: nowrap; line-height: .93; letter-spacing: .01em;
  font-size: clamp(2.9rem, 9.5vw, 8rem);
  text-shadow: 0.03em 0.03em 0 var(--chrome);
}
.fc-join__row--yellow { color: var(--yellow); }
.fc-join__row--cream { color: var(--cream); }
.fc-join__row:nth-child(1) { transform: translateX(-3%); }
.fc-join__row:nth-child(2) { transform: translateX(2.5%); }
.fc-join__row:nth-child(3) { transform: translateX(-1.5%); }
.fc-join__actions { display: flex; gap: 1rem 1.2rem; flex-wrap: wrap; justify-content: center; }
.fc-join__note { font-size: .95rem; line-height: 1.6; color: rgba(253, 246, 227, .88); max-width: 46ch; }
.fc-join__note a { color: var(--cream); font-weight: 600; }
.fc-join__note a:hover { color: var(--yellow); }

/* ---------- reveal choreography for page-specific elements ---------- */
html.js :is(.fc-soon, .fc-rate, .fc-menu, .fc-faq details) {
  opacity: 0; translate: 0 26px;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
}
html.js :is(.fc-soon, .fc-rate, .fc-menu, .fc-faq details).in-view { opacity: 1; translate: 0 0; }
html.revealed-all :is(.fc-soon, .fc-rate, .fc-menu, .fc-step, .fc-perk, .fc-faq details) {
  transition: none !important; opacity: 1; translate: 0 0;
}
html.js :is(.fc-step, .fc-perk) {
  opacity: 0; translate: 0 26px;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
}
html.js :is(.fc-step, .fc-perk).in-view { opacity: 1; translate: 0 0; }

/* ---------- capture mode & reduced motion ---------- */
html.capture .fc-coin { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .fc-coin { animation: none; }
  .fc-soon, .fc-rate, .fc-menu, .fc-step, .fc-perk, .fc-faq details { opacity: 1; translate: none; }
}
