:root {
  --ink: #263126;
  --muted: #687167;
  --cream: #f3efe5;
  --paper: rgba(255, 253, 247, .74);
  --green: #314735;
  --lemon: #e4c957;
  --line: rgba(38, 49, 38, .13);
  --serif: "Noto Serif TC", "Songti TC", Georgia, serif;
  --sans: Inter, "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: 0 24px 80px rgba(31, 43, 32, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 82% 8%, rgba(229, 204, 93, .24), transparent 28rem),
    radial-gradient(circle at 7% 70%, rgba(139, 164, 127, .2), transparent 32rem),
    var(--cream);
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.portal-header {
  position: sticky;
  z-index: 20;
  top: max(10px, env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 28px));
  min-height: 68px;
  margin: 10px auto 0;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  background: rgba(255, 253, 247, .62);
  box-shadow: 0 16px 50px rgba(35, 48, 34, .09), inset 0 1px 0 #fff;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}
.portal-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.portal-brand-mark { display: grid; width: 42px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: white; background: var(--green); font-family: var(--serif); }
.portal-brand strong, .portal-brand small { display: block; }
.portal-brand strong { font: 600 15px/1.2 var(--serif); letter-spacing: .08em; }
.portal-brand small { margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: .2em; }
.portal-nav { display: flex; align-items: center; gap: 8px; }
.portal-nav a { padding: 10px 13px; border-radius: 999px; text-decoration: none; font-size: 13px; }
.portal-nav a:hover, .portal-nav a[aria-current="page"] { background: rgba(49, 71, 53, .09); }
.portal-nav .nav-primary { color: #fff; background: var(--green); }

.portal-main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 58px 0 90px; }
.portal-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 36px; align-items: end; margin-bottom: 42px; }
.eyebrow { margin: 0 0 12px; color: #6d776b; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.portal-hero h1, .success-card h1 { max-width: 720px; margin: 0; font: 500 clamp(2.65rem, 7vw, 5.8rem)/1.03 var(--serif); letter-spacing: -.055em; }
.portal-hero h1 em { color: #718269; font-weight: 400; }
.portal-lede { max-width: 620px; margin: 23px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-note { align-self: end; padding: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.8; }
.hero-note strong { display: block; margin-bottom: 4px; color: var(--ink); font: 500 18px var(--serif); }

.glass-card {
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
}
.order-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .72fr); gap: 22px; align-items: start; }
.order-panel, .form-panel { padding: clamp(22px, 4vw, 38px); }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.panel-heading h2 { margin: 0; font: 500 clamp(1.7rem, 4vw, 2.5rem) var(--serif); }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.product-picks { display: grid; gap: 12px; }
.campaign-context { margin: -4px 0 20px; padding: 18px 20px; border-left: 3px solid var(--lemon); border-radius: 0 16px 16px 0; background: rgba(230, 204, 86, .12); }
.campaign-context strong, .campaign-context span { display: block; }
.campaign-context strong { font: 500 19px var(--serif); }
.campaign-context span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.pick-card { display: grid; grid-template-columns: 68px 1fr auto; gap: 15px; align-items: center; min-height: 94px; padding: 13px; border: 1px solid var(--line); border-radius: 21px; background: rgba(255,255,255,.44); }
.pick-visual { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 16px; color: var(--green); background: linear-gradient(145deg, #f4df81, #d7b74d); font: 500 24px var(--serif); }
.pick-visual img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.pick-card h3 { margin: 0; font: 500 17px var(--serif); }
.pick-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.pick-price { margin-top: 7px; color: #53614f; font-size: 12px; }
.quantity { display: grid; grid-template-columns: 34px 34px 34px; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6); }
.quantity button { height: 34px; border: 0; color: var(--ink); background: transparent; }
.quantity output { text-align: center; font-size: 13px; font-weight: 700; }
.pick-card[aria-disabled="true"] { opacity: .48; }

.selection-summary { display: flex; justify-content: space-between; gap: 18px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.selection-summary span { color: var(--muted); font-size: 12px; }
.selection-summary strong { font-size: 16px; }
.form-panel { position: sticky; top: 105px; }
.form-panel h2 { margin: 0 0 22px; font: 500 2rem var(--serif); }
.auth-gate { margin: 0 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.42); }
.auth-gate strong { display: block; margin-bottom: 5px; font: 500 16px var(--serif); }
.auth-gate p { margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.google-button { min-height: 44px; }
.signed-in { display: none; align-items: center; justify-content: space-between; gap: 12px; }
.signed-in.is-visible { display: flex; }
.signed-in span { min-width: 0; }
.signed-in strong, .signed-in small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signed-in small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.signed-in button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.65); font-size: 11px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { display: grid; gap: 7px; margin-bottom: 15px; color: #4e594d; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
label .optional { color: #8a9288; font-weight: 400; }
.fulfillment-fieldset { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.fulfillment-fieldset legend { margin-bottom: 8px; color: #4e594d; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.fulfillment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fulfillment-option { position: relative; display: block; margin: 0; cursor: pointer; }
.fulfillment-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fulfillment-option span { display: block; min-height: 78px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.38); transition: border-color .2s, background .2s, transform .2s; }
.fulfillment-option input:checked + span { border-color: rgba(49,71,53,.58); background: rgba(218,229,210,.72); box-shadow: inset 0 0 0 1px rgba(49,71,53,.12); }
.fulfillment-option input:focus-visible + span { outline: 2px solid var(--lemon); outline-offset: 3px; }
.fulfillment-option:active span { transform: scale(.985); }
.fulfillment-option strong, .fulfillment-option small { display: block; }
.fulfillment-option strong { color: var(--ink); font: 500 15px var(--serif); }
.fulfillment-option small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.fulfillment-option.is-disabled { display: none; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: rgba(255,255,255,.6);
  padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(49, 71, 53, .55); box-shadow: 0 0 0 4px rgba(49, 71, 53, .08); }
textarea { resize: vertical; }
.birthday-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delivery-fields { margin: -2px 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.3); }
.address-grid { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.delivery-note { margin: -3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.check-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.35); line-height: 1.55; }
.check-row input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--green); }
.button-primary { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; width: 100%; margin-top: 6px; border: 0; border-radius: 999px; color: white; background: var(--green); box-shadow: 0 14px 30px rgba(49,71,53,.2); font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.button-primary:disabled { cursor: not-allowed; opacity: .48; }
.form-status { min-height: 21px; margin: 12px 0 0; color: #9b3d35; font-size: 12px; line-height: 1.6; }
.privacy-note { color: var(--muted); font-size: 11px; line-height: 1.65; }
.hp-field, .submit-target { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }

.simple-page { display: grid; min-height: calc(100vh - 98px); place-items: center; padding: 50px 0; }
.success-card { width: min(720px, 100%); padding: clamp(30px, 7vw, 70px); text-align: center; }
.success-mark { display: grid; width: 70px; aspect-ratio: 1; place-items: center; margin: 0 auto 28px; border-radius: 50%; color: #fff; background: var(--green); font-size: 28px; }
.success-card h1 { margin-inline: auto; font-size: clamp(2.3rem, 7vw, 4.8rem); }
.success-id { margin: 26px auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.42); }
.success-id strong { display: block; margin-top: 5px; font-size: 20px; letter-spacing: .08em; }
.success-copy { max-width: 540px; margin: 0 auto 24px; color: var(--muted); line-height: 1.8; }
.action-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.action-row a { padding: 13px 19px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 13px; }

.member-layout { display: grid; grid-template-columns: .76fr 1.24fr; gap: 24px; align-items: start; }
.member-aside { padding: 32px; }
.member-aside h1, .campaign-copy h1 { margin: 0; font: 500 clamp(2.4rem, 6vw, 5.5rem)/1.08 var(--serif); letter-spacing: -.05em; }
.member-aside p { color: var(--muted); line-height: 1.8; }
.member-perks { display: grid; gap: 10px; margin-top: 28px; }
.member-perks div { padding: 16px; border-top: 1px solid var(--line); }
.member-perks strong, .member-perks span { display: block; }
.member-perks span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.login-state { margin-bottom: 20px; padding: 14px; border-radius: 15px; color: #53614f; background: rgba(218, 229, 210, .55); font-size: 12px; line-height: 1.6; }

.campaign-card { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; min-height: 610px; }
.campaign-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 7vw, 84px); }
.campaign-copy p { max-width: 570px; color: var(--muted); line-height: 1.85; }
.campaign-art { position: relative; min-height: 420px; background: linear-gradient(145deg, #334a37, #15281b); }
.campaign-art::before { content: "✦"; position: absolute; inset: 50% auto auto 50%; color: #f0d56a; font: 400 clamp(8rem, 20vw, 18rem) var(--serif); transform: translate(-50%, -50%); text-shadow: 0 0 70px rgba(240,213,106,.3); }
.campaign-art::after { content: "BIRTHDAY BLOOMS"; position: absolute; right: 22px; bottom: 24px; color: rgba(255,255,255,.65); font-size: 10px; letter-spacing: .25em; writing-mode: vertical-rl; }
.campaign-terms { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.7; }

.limited-main { width: min(1180px, calc(100% - 32px)); }
.limited-loading { min-height: 52vh; display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.limited-empty { max-width: 760px; margin: 6vh auto; padding: clamp(32px, 8vw, 80px); }
.limited-empty h1, .limited-copy h1 { margin: 0; font: 500 clamp(2.7rem, 7vw, 6.3rem)/1.03 var(--serif); letter-spacing: -.055em; }
.limited-empty h1 em { color: #718269; font-weight: 400; }
.limited-empty > p:not(.eyebrow) { max-width: 560px; color: var(--muted); line-height: 1.8; }
.limited-experience { display: grid; gap: 76px; }
.limited-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); min-height: 670px; overflow: hidden; }
.limited-media { min-height: 520px; background: #d9ded3; }
.limited-media img { width: 100%; height: 100%; object-fit: cover; }
.limited-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 6vw, 72px); }
.limited-copy h1 { margin-bottom: 18px; font-size: clamp(2.7rem, 6vw, 5.6rem); }
.limited-copy > strong { color: #52614f; font: 500 20px/1.5 var(--serif); }
.limited-copy > p:not(.eyebrow):not(.limited-dates) { margin: 20px 0 0; color: var(--muted); line-height: 1.85; }
.limited-dates { order: -1; margin: 0 0 12px; color: #60705d; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.limited-primary { width: max-content; min-width: 180px; margin-top: 28px; padding: 0 24px; }
.limited-section-heading { max-width: 650px; margin-bottom: 28px; }
.limited-section-heading h2, .limited-terms h2 { margin: 0; font: 500 clamp(2rem, 5vw, 3.6rem) var(--serif); }
.limited-section-heading p { color: var(--muted); line-height: 1.75; }
.limited-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.limited-product { display: grid; grid-template-columns: 180px 1fr; min-height: 230px; overflow: hidden; border: 1px solid rgba(255,255,255,.74); border-radius: 28px; background: var(--paper); box-shadow: 0 18px 55px rgba(31,43,32,.09), inset 0 1px 0 #fff; }
.limited-product-image { min-height: 230px; display: grid; place-items: center; color: var(--green); background: linear-gradient(145deg, #e7d580, #c9b355); font: 500 52px var(--serif); }
.limited-product-image img { width: 100%; height: 100%; object-fit: cover; }
.limited-product-copy { display: flex; flex-direction: column; padding: 24px; }
.limited-product-copy h3 { margin: 0; font: 500 22px var(--serif); }
.limited-product-copy p { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.7; }
.limited-product-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.limited-product-copy > div strong { color: #53614f; font-size: 13px; }
.limited-product-copy a { color: var(--green); font-size: 12px; font-weight: 700; text-underline-offset: 4px; }
.limited-terms { padding: clamp(26px, 5vw, 52px); }
.limited-terms p { max-width: 760px; margin-bottom: 0; color: var(--muted); line-height: 1.85; white-space: pre-line; }
.empty-products { margin: 0; padding: 28px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 18px; }

.portal-footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 820px) {
  .portal-header { min-height: 62px; padding-left: 13px; }
  .portal-brand span:last-child, .portal-nav a:not(.nav-primary) { display: none; }
  .portal-main { padding-top: 38px; }
  .portal-hero, .order-layout, .member-layout, .campaign-card, .limited-hero { grid-template-columns: 1fr; }
  .portal-hero { gap: 12px; }
  .hero-note { padding-inline: 0; }
  .form-panel { position: static; }
  .campaign-art { grid-row: 1; min-height: 300px; }
  .limited-media { min-height: 420px; }
  .limited-copy { padding: 34px 26px 40px; }
  .limited-product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .portal-main { width: min(100% - 20px, 1120px); }
  .portal-hero h1 { font-size: clamp(2.55rem, 14vw, 4.2rem); }
  .order-panel, .form-panel, .member-aside { padding: 20px 16px; border-radius: 24px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .fulfillment-options { grid-template-columns: 1fr; }
  .address-grid { grid-template-columns: 1fr; gap: 0; }
  .pick-card { grid-template-columns: 54px 1fr; }
  .pick-visual { width: 54px; height: 54px; }
  .quantity { grid-column: 1 / -1; width: 100%; grid-template-columns: 1fr 44px 1fr; }
  .campaign-copy { padding: 30px 20px; }
  .limited-experience { gap: 48px; }
  .limited-main { width: min(100% - 20px, 1180px); }
  .limited-product { grid-template-columns: 1fr; }
  .limited-product-image { min-height: 240px; }
}

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