/* TCE Brand Guidelines v9.9.1 — cny.tceacademy.org */
:root {
  --navy: #1A2E44;
  --teal: #76AEBB;
  --teal-deep: #4A8A99;
  --teal-dark: #2F6573;
  --teal-light: #A6CDD6;
  --gold: #C9A84C;
  --box-gold: #DDBA63;
  --cream: #FAF4E6;
  --off-white: #F7F4ED;
  --body: #333333;
  --mid-grey: #6B6B6B;
  --white: #FFFFFF;
  --f-h1: 'battery-park', 'Battery Park', 'Oswald', 'Impact', sans-serif;
  --f-h2: 'dazzle-unicase', 'Dazzle Unicase', 'Dazzle Unicase Bold', 'Playfair Display SC', Georgia, serif;
  --f-h3: 'hwt-artz', 'HWT Artz', 'HWTArtzW00-Regular', 'Oswald', 'Arial Black', sans-serif;
  --f-body: 'Nunito TCE', 'nunito', 'Nunito', system-ui, 'Helvetica Neue', Arial, sans-serif;
  --f-zh: 'Noto Serif SC', 'Songti SC', serif;
  --bevel-dark: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 2px 1px rgba(255,255,255,.26),
                inset 3px 3px 6px rgba(255,255,255,.14), inset -3px -4px 7px rgba(0,0,0,.55);
  --btn-bevel-dark: 0 4px 12px rgba(0,0,0,.30), var(--bevel-dark);
  --white-press: inset 0 3px 6px rgba(26,46,68,.30), inset 0 1px 1px rgba(26,46,68,.20), inset 0 -1px 0 #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: 17px; line-height: 1.6; color: var(--body); background: var(--off-white); }
img { max-width: 100%; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Keys: raised dark, as on theofficialtce.com */
.key { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 4px; background: var(--teal-dark); color: var(--white); font: 700 16px/1.2 var(--f-body);
  text-decoration: none; cursor: pointer; box-shadow: var(--bevel-dark); transition: background .2s, box-shadow .2s; }
.key:hover { background: var(--navy); color: var(--white); box-shadow: var(--btn-bevel-dark); }
.key:active { background: var(--teal); color: var(--navy); box-shadow: var(--white-press); }
.key[disabled] { opacity: .6; cursor: wait; }
.key-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 5; background: rgba(247,244,237,.94); backdrop-filter: saturate(1.2) blur(6px); border-bottom: 1px solid rgba(26,46,68,.12); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { display: block; width: auto; height: 52px; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a:not(.key) { color: var(--navy); font-weight: 700; text-decoration: none; padding: 10px 4px; }
.top nav a:not(.key):hover { text-decoration: underline; }

/* Hero */
.hero { padding: 40px 0 24px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; }
.eyebrow { margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--teal-dark); }
h1 { margin: 0; font-family: var(--f-h1); font-weight: 400; font-size: clamp(52px, 7vw, 84px); line-height: .95; letter-spacing: .02em; color: var(--navy); }
.zh { margin: 10px 0 18px; font-family: var(--f-zh); font-weight: 600; font-size: 26px; letter-spacing: .35em; color: var(--navy); }
.lead { margin: 0 0 22px; font-weight: 600; font-size: 19px; line-height: 1.55; color: var(--navy); max-width: 34em; }
.price-row { display: flex; align-items: center; gap: 28px; margin: 0 0 26px; }
.price { margin: 0; display: flex; flex-direction: column; }
.price .amt { font-family: var(--f-h3); font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: .04em; color: var(--navy); }
.price .per { font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--body); margin-top: 6px; }
.when { margin: 0; padding-left: 28px; border-left: 2px solid var(--gold); font-size: 15px; line-height: 1.45; color: var(--body); }
.when strong { font-size: 18px; color: var(--navy); }
.hero-art { position: relative; width: 100%; aspect-ratio: 1000 / 700; }

/* ------- 3D box: sleeve + tray (panel art drawn at 4 px = 1 mm) ------- */
.stage { position: absolute; left: 0; top: 0; width: 1000px; height: 700px; transform-origin: 0 0; }
.cam { position: absolute; left: 50%; top: 50%; width: 0; height: 0; perspective: 3600px; }
.scene { position: absolute; left: -870px; top: -560px; width: 1740px; height: 1120px; transform-style: preserve-3d;
  transform: scale(.56) rotateX(44deg) rotateZ(14deg); }
.grp { position: absolute; transform-style: preserve-3d; }
.sleeve { left: 0; top: 0; width: 1480px; height: 460px; }
.tray { left: 260px; top: 650px; width: 1480px; height: 460px; }
.shadow { position: absolute; border-radius: 14px; background: rgba(26,46,68,.20); box-shadow: 0 0 60px 34px rgba(26,46,68,.18); }
.sh-sleeve { left: 16px; top: 16px; width: 1448px; height: 428px; }
.sh-tray { left: 276px; top: 666px; width: 1448px; height: 428px; }
.f-top { position: absolute; left: 0; top: 0; width: 1480px; height: 460px; transform: translateZ(140px); }
.f-front { position: absolute; left: 0; top: 460px; width: 1480px; height: 140px; transform-origin: 0 0; transform: translateZ(140px) rotateX(-90deg); }
.f-end { position: absolute; left: 0; top: 0; width: 460px; height: 140px; transform-origin: 0 0;
  transform: translateX(1480px) translateY(460px) translateZ(140px) rotateZ(-90deg) rotateX(-90deg); }
.face { position: relative; overflow: hidden; background: var(--box-gold); }
.face.top { width: 1480px; height: 460px; }
.face.side { width: 1480px; height: 140px; }
.face.end { width: 460px; height: 140px; }
.end-in { position: absolute; left: 6px; right: 6px; top: 6px; bottom: 6px; background: #A8843C; box-shadow: inset 0 16px 20px rgba(40,25,0,.45); }
.shade { position: absolute; inset: 0; pointer-events: none; }
.s12 { background: rgba(30,20,0,.12); }
.s22 { background: rgba(20,12,0,.26); }
.abs { position: absolute; }
.pine { left: 110px; top: 35px; }
.top-logo { left: 626px; top: 93px; width: 228px; height: 113px; }
.top-title { left: 450px; top: 268px; width: 580px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; color: var(--navy); }
.t-name { font-family: var(--f-h3); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: .16em; padding-left: .16em; text-transform: uppercase; }
.t-zh { display: flex; align-items: center; gap: 14px; font-family: var(--f-zh); font-weight: 600; font-size: 20px; line-height: 1; letter-spacing: .4em; }
.t-zh span[lang] { padding-left: .4em; }
.rule { display: block; width: 56px; height: 1px; background: var(--navy); }
.t-small { font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; }
.top-greet { left: 1238px; top: 80px; width: 84px; height: 300px; display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; font-family: var(--f-zh); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: .18em; color: var(--navy); }
.side-row { inset: 0; display: flex; align-items: center; justify-content: center; gap: 26px; color: var(--navy); }
.s-name { font-family: var(--f-h3); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: .2em; text-transform: uppercase; }
.s-zh { font-family: var(--f-zh); font-weight: 600; font-size: 24px; line-height: 1; letter-spacing: .3em; }
.s-small { font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: .3em; text-transform: uppercase; }
.dia { display: block; width: 9px; height: 9px; background: var(--navy); transform: rotate(45deg); }
.t-floor { position: absolute; left: 0; top: 0; width: 1480px; height: 460px; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); background: #D2AD58; transform: translateZ(1px); }
.cell { box-shadow: inset 0 0 38px rgba(90,60,10,.45); }
.tarts { position: absolute; left: 0; top: 0; width: 1480px; height: 460px; transform: translateZ(4px); }
.tart { position: absolute; width: 330px; height: 180px; background: url(assets/tart.png) center / contain no-repeat; filter: drop-shadow(0 8px 6px rgba(60,40,0,.35)); }
.wall { position: absolute; left: 0; top: 0; height: 136px; transform-origin: 0 0; }
.w-back { width: 1480px; transform: translateZ(136px) rotateX(-90deg); background: linear-gradient(#E8CC80, #C49E4C); }
.w-front { width: 1480px; top: 460px; transform: translateZ(136px) rotateX(-90deg); background: #C8A658; }
.div-long { width: 1480px; top: 230px; transform: translateZ(136px) rotateX(-90deg); background: linear-gradient(#EED48E, #CFAA56); }
.w-left { width: 460px; transform: translateY(460px) translateZ(136px) rotateZ(-90deg) rotateX(-90deg); background: linear-gradient(#D8B765, #B8913F); }
.w-right { width: 460px; transform: translateX(1480px) translateY(460px) translateZ(136px) rotateZ(-90deg) rotateX(-90deg); background: #B48E3D; }
.div-x { width: 460px; transform: translateX(var(--x)) translateY(460px) translateZ(136px) rotateZ(-90deg) rotateX(-90deg); background: linear-gradient(#DFC171, #C19A48); }

/* Bands */
.band { background: var(--cream); padding: 64px 0; }
h2 { margin: 0 0 24px; font-family: var(--f-h2); font-weight: 700; font-size: clamp(32px, 4vw, 42px); line-height: 1.15; color: var(--teal-deep); }
h3 { margin: 0 0 10px; font-family: var(--f-h3); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border-left: 4px solid var(--teal); border-radius: 6px; padding: 24px; box-shadow: 0 2px 8px rgba(118,174,187,.18); }
.card p { margin: 0; }

/* Reservation */
.reserve { padding: 72px 0 80px; background: var(--white); }
.reserve-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.facts li { padding-left: 18px; position: relative; }
.facts li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.form { display: grid; gap: 18px; background: var(--off-white); border: 1px solid rgba(26,46,68,.14); border-radius: 8px; padding: 28px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.fld { display: grid; align-content: start; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fld > span, .fld legend { font-weight: 700; font-size: 15px; color: var(--navy); padding: 0; }
.fld em { font-style: normal; font-weight: 600; color: var(--mid-grey); }
input, textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--mid-grey); border-radius: 4px; background: var(--white); font: 400 17px/1.4 var(--f-body); color: var(--body); }
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus { outline: 3px solid var(--teal); outline-offset: 0; border-color: var(--teal-dark); }
input[aria-invalid="true"] { border-color: #B02E2E; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pill span { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: var(--bevel-dark); }
.pill input:checked + span { background: var(--white); color: var(--navy); box-shadow: var(--white-press), 0 0 0 1px rgba(26,46,68,.22); }
.pill input:focus-visible + span { outline: 3px solid var(--teal-dark); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.consent input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--teal-dark); }
.form .key { justify-self: start; }
.status { margin: 0; min-height: 1.6em; font-weight: 700; color: var(--navy); }
.status.err { color: #B02E2E; }
.status.ok { color: var(--teal-dark); }

/* Footer */
.foot { background: var(--navy); color: var(--white); padding: 40px 0; font-size: 15px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot p { margin: 0 0 6px; }
.foot .tag { font-family: var(--f-h3); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.foot a { color: var(--teal-light); }
.foot a:hover { color: var(--white); }

@media (max-width: 900px) {
  .hero-in, .reserve-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; margin: 0 -12px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .top nav a:not(.key) { display: none; }
  .price-row { gap: 18px; }
  .form { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Pre-order (until 31 Dec 2026, SGT) vs regular price — html.regular is set by an inline script */
html:not(.regular) [data-regular] { display: none !important; }
html.regular [data-early] { display: none !important; }
.flag { align-self: flex-start; margin-bottom: 10px; padding: 6px 12px; border-radius: 999px; background: var(--navy); color: var(--white);
  font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; box-shadow: var(--bevel-dark); }
@media (max-width: 560px) {
  .price-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .when { padding-left: 0; padding-top: 12px; border-left: 0; border-top: 2px solid var(--gold); }
}

/* ===== Festive CNY layer (12 Nov): navy + gold, lattice, key-fret, seal ===== */
:root {
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='32'%3E%3Cpath d='M20 0L40 16L20 32L0 16Z' fill='none' stroke='%23C9A84C' stroke-opacity='.11' stroke-width='1'/%3E%3Cpath d='M15 19Q20 24 25 19' fill='none' stroke='%23C9A84C' stroke-opacity='.09' stroke-width='1'/%3E%3C/svg%3E");
  --fret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-width='1.5'%3E%3Cpath d='M0 1.5H22M0 20.5H22'/%3E%3Cpath d='M0 16H6V6H16V12H11V9M16 16H22'/%3E%3C/g%3E%3C/svg%3E");
}
header.top { background: rgba(26,46,68,.97); border-bottom: 1px solid rgba(201,168,76,.4); backdrop-filter: none; }
.top nav a:not(.key) { color: var(--white); }
.top nav a:not(.key):hover { color: var(--gold); }
.key-gold { background: var(--gold); color: var(--navy); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.18); }
.key-gold:hover { background: #D8BB66; color: var(--navy); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.18), 0 4px 12px rgba(0,0,0,.28); }
.key-gold:active { background: var(--white); color: var(--navy); box-shadow: var(--white-press); }

.hero { position: relative; padding: 48px 0 0; color: var(--cream);
  background-color: var(--navy);
  background-image: radial-gradient(ellipse 55% 70% at 74% 50%, rgba(221,186,99,.24), rgba(221,186,99,0) 70%), var(--lattice); }
.hero-in { padding-bottom: 44px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); }
.zh-row { display: flex; align-items: center; gap: 18px; margin: 12px 0 18px; }
.hero .zh { margin: 0; color: var(--gold); }
.seal { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 4px;
  background: #B02E2E; color: var(--cream); font-family: var(--f-zh); font-weight: 600; font-size: 19px; line-height: 1.05; text-align: center;
  transform: rotate(-4deg); box-shadow: inset 0 0 0 3px #B02E2E, inset 0 0 0 4px rgba(250,244,230,.7); }
.hero .lead { color: var(--cream); }
.hero .flag { background: var(--gold); color: var(--navy); box-shadow: none; }
.hero .price .amt { color: var(--white); }
.hero .price .per { color: var(--teal-light); }
.hero .when { color: var(--cream); border-left-color: var(--gold); }
.hero .when strong { color: var(--gold); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.countdown { margin: 0; font-weight: 700; font-size: 15px; color: var(--teal-light); }
.countdown:empty { display: none; }
.hero .shadow { background: rgba(0,0,0,.34); box-shadow: 0 0 60px 34px rgba(0,0,0,.30); }
.fret { height: 22px; background: var(--fret) repeat-x 0 0 / 22px 22px; }

.ribbon { margin: 0 0 36px; }
.ribbon-art { position: relative; width: 100%; aspect-ratio: 1480 / 460; overflow: hidden; border-radius: 4px; box-shadow: 0 18px 40px rgba(26,46,68,.22); background: var(--box-gold); }
.ribbon-face { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ribbon figcaption { margin-top: 14px; font-size: 15px; color: var(--body); max-width: 62ch; }

.timeline { background: var(--white); padding: 64px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { padding: 24px; background: var(--off-white); border-top: 3px solid var(--gold); border-radius: 0 0 6px 6px; }
.steps .num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%;
  background: var(--navy); color: var(--white); font: 800 18px/1 var(--f-body); box-shadow: var(--bevel-dark); }
.steps p { margin: 0; }

.gifting { padding: 72px 0; color: var(--cream); background-color: var(--navy); background-image: var(--lattice); }
.gifting-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.gifting .eyebrow { color: var(--gold); }
.gifting h2 { color: var(--teal); }
.gifting .lead { color: var(--cream); }
.asks { list-style: none; counter-reset: ask; margin: 0; padding: 0; display: grid; gap: 14px; }
.asks li { counter-increment: ask; position: relative; padding: 16px 18px 16px 66px; border: 1px solid rgba(201,168,76,.4); border-radius: 6px; background: rgba(255,255,255,.04); color: var(--cream); }
.asks li::before { content: counter(ask); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; }
.asks strong { color: var(--white); }
.foot { padding: 0 0 40px; }
.foot .fret { margin-bottom: 36px; }

@media (max-width: 900px) {
  .steps, .gifting-in { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Gold + red (12 Nov, Matthew: "maybe no navy? just gold and red?") =====
   The page re-points the navy/teal tokens to lacquer red and gold. The box artwork
   (.hero-art, .ribbon-art) keeps its own colours until the box colour is decided. */
body { --navy: #6E1414; --teal-dark: #8E1B1B; --teal-deep: #8E1B1B; --teal: #DDBA63; --teal-light: #EBD28F; --red: #8E1B1B; --red-deep: #6E1414; }
.hero-art, .ribbon-art { --navy: #1A2E44; --teal-dark: #2F6573; --teal: #76AEBB; --teal-light: #A6CDD6; }
header.top { background: rgba(110,20,20,.97); border-bottom-color: rgba(221,186,99,.5); }
.hero { background-color: var(--red); background-image: radial-gradient(ellipse 55% 70% at 74% 50%, rgba(235,210,143,.26), rgba(235,210,143,0) 70%), var(--lattice); }
.hero .eyebrow, .gifting .eyebrow { color: var(--box-gold); }
.hero .zh { color: var(--box-gold); }
.hero .when strong { color: var(--box-gold); }
.hero .flag { background: var(--box-gold); color: var(--red-deep); }
.key-gold { background: var(--box-gold); color: var(--red-deep); }
.key-gold:hover { background: #EBD28F; color: var(--red-deep); }
.seal { background: var(--box-gold); color: var(--red-deep); box-shadow: inset 0 0 0 3px var(--box-gold), inset 0 0 0 4px rgba(110,20,20,.6); }
.hero .shadow { background: rgba(40,0,0,.34); box-shadow: 0 0 60px 34px rgba(40,0,0,.30); }
.gifting { background-color: var(--red); }
.gifting h2 { color: #EBD28F; }
.asks li { border-color: rgba(221,186,99,.5); background: rgba(255,255,255,.05); }
.asks li::before { background: var(--box-gold); color: var(--red-deep); }
.steps li { border-top-color: var(--box-gold); }
.card { border-left-color: var(--red); box-shadow: 0 2px 8px rgba(142,27,27,.10); }
.band { background: var(--cream); }
.foot { background: var(--red-deep); }
.foot .tag { color: var(--box-gold); }
.facts li::before { background: var(--red); }
.form { border-color: rgba(142,27,27,.18); }

/* Box: gold, with lacquer-red sides and a red 恭贺新禧 cartouche (Matthew 12 Nov: "a small side in red to be auspicious") */
.face.side { background: #8E1B1B; }
.face.side .side-row { color: #DDBA63; }
.face.side .dia { background: #DDBA63; }
.top-greet { color: #DDBA63; }
/* Box linework + text: maroon instead of navy (Matthew 12 Nov) */
.hero-art, .ribbon-art { --navy: #6E1414; }
/* Version 1 = Gold & Maroon, no red sides (Matthew 12 Nov: "1 box version with no red side") */
.face.side { background: var(--box-gold); }
.face.side .side-row { color: #6E1414; }
.face.side .dia { background: #6E1414; }
.top-greet { color: #6E1414; }

/* ===== Swinging lanterns, 恭喜 | 发财 (Matthew 12 Nov) ===== */
.lanterns { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lstring { position: absolute; top: 0; width: 92px; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0; animation: swing 4.8s ease-in-out infinite alternate;
  filter: drop-shadow(10px 20px 14px rgba(40,0,0,.5)); }
.lstring.left { left: max(10px, calc(50% - 712px)); }
.lstring.right { right: max(10px, calc(50% - 712px)); animation-duration: 5.4s; animation-delay: -2.6s; }
.cord { display: block; width: 2px; height: 34px; background: linear-gradient(#E9C976, #A8843C); }
.cord.short { height: 12px; }
.lan { position: relative; width: 92px; height: 120px; }
.lan::before { content: ''; position: absolute; left: -46px; right: -46px; top: -34px; bottom: -34px;
  background: radial-gradient(closest-side, rgba(255,170,95,.42), rgba(255,170,95,0)); }
.lan svg { position: relative; display: block; width: 100%; height: 100%; }
.lan-zh { font-family: var(--f-zh); font-weight: 600; font-size: 36px; fill: #FBE5A6; stroke: #6A0C0C; stroke-width: .7px; paint-order: stroke; }
.tassel { display: block; width: 34px; height: 61px; margin-top: -2px; }
@keyframes swing { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@media (prefers-reduced-motion: reduce) { .lstring { animation: none; } }
@media (max-width: 1359px) {
  .lstring { transform-origin: 50% 0; scale: .62; translate: 0 0; }
  .lstring.left { left: -8px; }
  .lstring.right { right: -8px; }
  .hero-in { padding-left: 72px; padding-right: 72px; }
}
@media (max-width: 900px) {
  .lstring { scale: .42; }
  .lstring.left { left: -18px; }
  .lstring.right { right: -18px; }
  .hero-in { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 20px; }
}

/* ===== Dragon background + motion (12 Nov) ===== */
.hero { background-image: radial-gradient(ellipse 55% 70% at 74% 50%, rgba(235,210,143,.22), rgba(235,210,143,0) 70%); }
.hero::before { content: ''; position: absolute; inset: -4% -3%; pointer-events: none; z-index: 0;
  background: url(assets/dragon-gold.webp) center 38% / cover no-repeat; opacity: .42;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.7) 35%, #000 70%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.7) 35%, #000 70%);
  animation: drift 22s ease-in-out infinite alternate; }
.hero-in, .hero .fret { position: relative; z-index: 1; }
@keyframes drift { from { transform: translate3d(-1.2%, 0, 0) scale(1.02); } to { transform: translate3d(1.2%, -1.2%, 0) scale(1.05); } }
.h1-sub { display: block; margin-top: 12px; font-family: var(--f-body); font-weight: 700; font-size: 15px; line-height: 1.3; letter-spacing: .2em; text-transform: uppercase; color: #EBD28F; }
.hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; } .hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; } .hero-copy > *:nth-child(5) { animation-delay: .32s; }
.hero-copy > *:nth-child(6) { animation-delay: .40s; } .hero-copy > *:nth-child(7) { animation-delay: .48s; }
.hero-art { animation: rise 1.1s .2s cubic-bezier(.2,.7,.2,1) both; }
.cam { animation: float 6s ease-in-out infinite alternate; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { from { translate: 0 -6px; } to { translate: 0 6px; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.key-gold { position: relative; overflow: hidden; }
.key-gold::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.faq { background: var(--cream); padding: 64px 0; }
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--white); border: 1px solid rgba(142,27,27,.16); border-radius: 6px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative; font-weight: 800; color: var(--red-deep); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 22px; font-weight: 700; color: var(--red); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; }
.zh-summary { margin: 22px 0 0; max-width: 860px; font-family: var(--f-zh); font-weight: 600; color: var(--red-deep); }
@media (max-width: 900px) { .hero-art { width: auto; margin: 6px 40px 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero::before, .cam, .hero-copy > *, .hero-art, .key-gold::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Realistic box shadows (12 Nov): light from the top left, behind the boxes =====
   Cast shadow = the box's own outline projected onto the table (footprint + its top face
   shifted away from the light), dark at the base and fading out, blurred on a wrapper so
   the clip-path edge is softened. Contact shadow = the tight dark line where box meets table. */
.shadow { display: none; }
.cast { position: absolute; filter: blur(14px); }
.cast i { position: absolute; inset: 0; }
.cs-sleeve { left: 0; top: 0; width: 1570px; height: 520px; }
.cs-sleeve i { clip-path: polygon(0 0, 1480px 0, 1570px 60px, 1570px 520px, 90px 520px, 0 460px);
  background: linear-gradient(162deg, rgba(25,0,0,.62) 0%, rgba(25,0,0,.42) 55%, rgba(25,0,0,.16) 100%); }
.cs-tray { left: 260px; top: 650px; width: 1568px; height: 518px; }
.cs-tray i { clip-path: polygon(0 0, 1480px 0, 1568px 58px, 1568px 518px, 88px 518px, 0 460px);
  background: linear-gradient(162deg, rgba(25,0,0,.6) 0%, rgba(25,0,0,.4) 55%, rgba(25,0,0,.15) 100%); }
.contact { position: absolute; background: rgba(15,0,0,.55); filter: blur(5px); border-radius: 6px; }
.ct-sleeve { left: -3px; top: -3px; width: 1486px; height: 466px; }
.ct-tray { left: 257px; top: 647px; width: 1486px; height: 466px; }
/* Light on the faces: brighter towards the top left, a little occlusion low on the sides. */
.f-top::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.14), rgba(255,255,255,0) 45%, rgba(0,0,0,.06)); }
.f-front .shade.s12 { background: linear-gradient(rgba(30,20,0,.06), rgba(30,20,0,.24)); }
.f-end .shade.s22 { background: linear-gradient(rgba(20,12,0,.22), rgba(20,12,0,.38)); }
.w-front { background: linear-gradient(#CDAA5B, #A9883F); }
.w-right { background: linear-gradient(#B8923F, #94742E); }
/* Shadows as SVG (a CSS blur inside the 3D scene does not paint in Chrome) */
.cast { filter: none; width: 1480px; height: 460px; }
.cs-sleeve { left: 0; top: 0; }
.cs-tray { left: 260px; top: 650px; }
.shade-svg { position: absolute; left: -80px; top: -80px; overflow: visible; }

/* ===== Box realism (12 Nov: "the gift box is what people will buy … more realistic box with shadows") ===== */
/* Board thickness: rims along the top edges of the tray walls and dividers. */
.rim { position: absolute; transform: translateZ(136px); background: linear-gradient(90deg, #F3DC97, #E4C677); }
.rim-out { background: linear-gradient(90deg, #E9CF86, #D4B262); }
/* Edge light: the lid's top edges catch the light, the far edges fall away. */
.face.top { box-shadow: inset 0 3px 0 rgba(255,250,225,.45), inset 3px 0 0 rgba(255,250,225,.35), inset 0 -2px 0 rgba(60,35,0,.22), inset -2px 0 0 rgba(60,35,0,.22); }
.face.side { box-shadow: inset 0 2px 0 rgba(255,250,225,.35), inset 0 -3px 0 rgba(40,20,0,.25); }
/* Soft-touch sheen across the lid. */
.f-top::after { background:
  linear-gradient(118deg, rgba(255,255,255,0) 28%, rgba(255,250,230,.16) 40%, rgba(255,255,255,0) 54%),
  linear-gradient(125deg, rgba(255,255,255,.12), rgba(255,255,255,0) 45%, rgba(0,0,0,.08)); }
/* Paper grain on every printed face. */
.face::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .32 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Tarts sit in their compartments. */
.tart { filter: drop-shadow(0 10px 7px rgba(60,35,0,.42)) drop-shadow(0 2px 2px rgba(60,35,0,.3)); }
.cell { box-shadow: inset 0 0 42px rgba(80,50,5,.5), inset 14px 10px 26px rgba(80,50,5,.28); }
.shade-svg { left: -80px; top: -80px; }
/* keep the warm glow off the box's shadow side */
.hero { background-image: radial-gradient(ellipse 50% 60% at 66% 40%, rgba(235,210,143,.20), rgba(235,210,143,0) 70%); }

/* ===== Two box sizes (box of 8: dividers; box of 16: open tray, overlapping tarts) ===== */
.t-open { background: #D2AD58; box-shadow: inset 0 0 50px rgba(80,50,5,.5), inset 18px 12px 30px rgba(80,50,5,.25); }
.tart { background-size: contain; background-position: center; background-repeat: no-repeat; }
.tart-stack { filter: drop-shadow(-10px 6px 7px rgba(60,35,0,.45)) drop-shadow(0 2px 2px rgba(60,35,0,.3)); }
.top-greet { width: 84px; height: 300px; }

/* ===== Two products (12 Nov): box of 8 S$18, box of 16 S$28 ===== */
.price-row { gap: 0; }
.price-row .price + .price { margin-left: 28px; padding-left: 28px; border-left: 2px solid var(--box-gold); }
.price .flag { margin-bottom: 8px; }
.avail { margin: -8px 0 22px; font-weight: 700; font-size: 15px; color: #EBD28F; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 0 0 40px; }
.product { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(110,20,20,.10); display: flex; flex-direction: column; }
.product img { display: block; width: 100%; height: auto; background: linear-gradient(#F7F1E3, #EFE6D2); }
.p-body { padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-body h3, .p-body p { margin: 0; }
.p-price { font-size: 15px; color: var(--body); }
.p-price span { font-family: var(--f-h3); font-weight: 700; font-size: 34px; line-height: 1; color: var(--red); margin-right: 4px; }
.p-body .key { align-self: flex-start; margin-top: auto; }
.dl { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: #EBD28F; text-decoration: underline; text-underline-offset: 3px; }
.dl:hover { color: #FFFFFF; }
@media (max-width: 900px) { .products { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .price-row { flex-direction: row; align-items: flex-start; }
  .price-row .price + .price { margin-left: 18px; padding-left: 18px; }
}
