/* ============ 脆卜寶 CBB — 港式霓虹招牌主題 ============ */
:root {
  --cream: #fff4dc;
  --paper: #fbe9c4;
  --red: #c4232b;
  --red-dark: #8e1b1b;
  --gold: #f6b830;
  --bulb: #ffe680;
  --green: #17704d;
  --green-dark: #0d4f36;
  --brown: #4a2414;
  --pink: #f7a8c4;
  --pink-soft: #ffd9e6;
  --blue: #5aa9e6;
  --wa: #25d366;
  --radius: 22px;
  --shadow: 0 6px 0 var(--brown), 0 14px 28px rgba(74, 36, 20, .25);
  --font: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --font-en: "Fredoka", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--brown);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }  /* iPhone Safari 預設 button 字係藍色 → 跟返主題色 */
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  border: 3px solid var(--brown); border-radius: 999px;
  padding: .7em 1.4em; font-weight: 900; font-size: 1.02rem; text-decoration: none;
  box-shadow: 0 4px 0 var(--brown); transition: transform .12s, box-shadow .12s, filter .2s;
  background: #fff; color: var(--brown);
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brown); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(180deg, #e2343c, var(--red)); color: #fff; }
.btn-ghost { background: var(--cream); }
.btn-whatsapp { background: linear-gradient(180deg, #3ee07f, #1fb457); color: #fff; width: 100%; font-size: 1.12rem; }
.btn.small { padding: .4em 1em; font-size: .88rem; }
.icon-btn { border: 0; background: none; font-size: 1.4rem; color: inherit; padding: .2em .4em; }

/* ---------- Top ---------- */
.preview-bar { background: #222; color: #fff; text-align: center; padding: .5em; font-size: .85rem; }
.preview-bar button { margin-left: .6em; border-radius: 99px; border: 0; padding: .2em .8em; }

.announce { background: var(--red-dark); color: var(--bulb); overflow: hidden; white-space: nowrap; font-weight: 700; font-size: .9rem; }
.announce-track { display: inline-block; padding: .45em 0; animation: ticker 22s linear infinite; }
.announce-track span { padding: 0 3em; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem clamp(.8rem, 3vw, 2rem);
  background: rgba(255, 244, 220, .92); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--brown);
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; }
.brand-sign {
  font-family: var(--font-en); font-weight: 700; color: #fff; background: var(--red);
  border: 3px solid var(--gold); border-radius: 10px; padding: .05em .45em; letter-spacing: .05em;
  box-shadow: 0 0 0 2px var(--brown), 0 0 14px rgba(246, 184, 48, .8);
  animation: neon 3s infinite;
}
.brand-name { font-weight: 900; font-size: 1.35rem; }
@keyframes neon { 0%, 100% { box-shadow: 0 0 0 2px var(--brown), 0 0 14px rgba(246,184,48,.8); } 47% { box-shadow: 0 0 0 2px var(--brown), 0 0 22px rgba(246,184,48,1); } 50% { box-shadow: 0 0 0 2px var(--brown), 0 0 4px rgba(246,184,48,.3); } }
.nav { display: flex; gap: 1.1rem; margin-left: auto; font-weight: 700; }
.nav a { text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .2s; border-radius: 3px; }
.nav a:hover::after { transform: scaleX(1); }
.cart-btn {
  position: relative; border: 3px solid var(--brown); background: var(--gold); border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.35rem; box-shadow: 0 3px 0 var(--brown);
}
.cart-count {
  position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; border-radius: 12px;
  background: var(--red); color: #fff; font: 700 .8rem/20px var(--font-en); border: 2px solid #fff;
}
.cart-btn.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.3) rotate(-8deg); } 60% { transform: scale(.9) rotate(5deg); } }
@media (max-width: 640px) { .nav { display: none; } .cart-btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 2rem; }
.sunburst {
  position: absolute; left: 50%; top: 38%; width: 220vmax; height: 220vmax; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, #f6d9a3 0 9deg, #fbe7bf 9deg 18deg);
  animation: spin 90s linear infinite; opacity: .9;
}
@keyframes spin { to { rotate: 360deg; } }
.hero-stage { position: relative; height: min(62vh, 560px); min-height: 340px; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem; display: none; }
.no-3d #hero-canvas, .no-3d .sound-btn, .no-3d .hero-hint { display: none; }
.no-3d .hero-fallback { display: block; }
.hero-hint {
  position: absolute; left: 50%; bottom: 10px; translate: -50% 0;
  background: #fff; border: 3px solid var(--brown); border-radius: 99px; padding: .35em 1em; font-weight: 700;
  box-shadow: 0 3px 0 var(--brown); animation: float 2.4s ease-in-out infinite; white-space: nowrap; font-size: .95rem;
  transition: opacity .5s;
}
.hero-hint.hide { opacity: 0; pointer-events: none; }
@keyframes float { 50% { transform: translateY(-6px); } }
.sound-btn { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--brown); background: #fff; font-size: 1.2rem; box-shadow: 0 3px 0 var(--brown); }
.pop-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pop {
  position: absolute; translate: -50% -50%; font-weight: 900; font-size: clamp(1.2rem, 3vw, 1.8rem); color: #fff;
  -webkit-text-stroke: 6px var(--brown); paint-order: stroke fill; white-space: nowrap;
  animation: pop 1s ease-out forwards;
}
@keyframes pop { 0% { transform: scale(.3) rotate(-10deg); opacity: 0; } 20% { transform: scale(1.2) rotate(4deg); opacity: 1; } 100% { transform: translateY(-70px) scale(1); opacity: 0; } }

/* 霓虹燈泡招牌 */
.marquee-sign {
  position: relative; z-index: 2; max-width: 900px; margin: -1rem auto 0; padding: 0 1rem;
}
.marquee-inner {
  position: relative; display: flex; align-items: center; gap: 1rem; justify-content: center;
  background: linear-gradient(180deg, #fff8e6, var(--paper)); border: 4px solid var(--brown);
  border-radius: 28px; padding: 1.8rem 1.4rem; text-align: center;
  box-shadow: 0 0 0 10px var(--red), 0 0 0 14px var(--brown), 0 18px 36px rgba(74,36,20,.35);
}
.marquee-inner::before, .marquee-inner::after {
  content: ""; position: absolute; inset: -11px; border-radius: 34px; pointer-events: none;
  --dot: radial-gradient(circle, var(--bulb) 0 4px, rgba(255,230,128,.4) 5px, transparent 7px);
  background:
    var(--dot) 0 0 / 26px 12px repeat-x,
    var(--dot) 0 100% / 26px 12px repeat-x,
    var(--dot) 0 0 / 12px 26px repeat-y,
    var(--dot) 100% 0 / 12px 26px repeat-y;
  animation: bulbs 1.1s steps(1) infinite;
}
.marquee-inner::after { inset: -11px; background-position: 13px 0, 13px 100%, 0 13px, 100% 13px; animation-delay: .55s; }
@keyframes bulbs { 0% { opacity: 1; } 50% { opacity: .25; } }
.marquee-text h1 {
  margin: 0; font-weight: 900; font-size: clamp(1.5rem, 5vw, 2.8rem); letter-spacing: .04em; line-height: 1.2;
  color: #2a1209; text-shadow: 3px 3px 0 #fff;
}
.hk-flag { display: inline-grid; place-items: center; width: 1.35em; height: .95em; background: var(--red); color: #fff; border-radius: 4px; font-size: .8em; vertical-align: .08em; transform: rotate(-4deg); }
.handle { font-family: var(--font-en); font-weight: 700; font-size: clamp(1.1rem, 3.2vw, 1.7rem); margin: .4rem 0 1.1rem; background: linear-gradient(transparent 55%, #ffe59a 55%); display: inline-block; padding: 0 .3em; }
.side-sign {
  writing-mode: vertical-rl; font-weight: 900; color: #fff; background: var(--red); border: 3px solid var(--gold);
  border-radius: 10px; padding: .6em .25em; font-family: var(--font-en); letter-spacing: .15em;
  box-shadow: 0 0 0 3px var(--brown), 0 0 16px rgba(246,184,48,.7); font-size: 1.1rem;
}
@media (max-width: 560px) { .side-sign { display: none; } }

.checker-strip { height: 34px; background: repeating-conic-gradient(var(--green) 0 25%, var(--cream) 0 50%) 0 0 / 34px 34px; border-block: 3px solid var(--brown); }

/* ---------- Sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 3.2rem clamp(1rem, 4vw, 2rem); }
.section-green {
  max-width: none; background: radial-gradient(circle at 20% 10%, #1f8a5e, var(--green-dark)); color: #fff;
  border-block: 4px solid var(--brown); position: relative;
}
.section-green > * { max-width: 1080px; margin-inline: auto; }
.bubble-title { display: flex; justify-content: center; gap: .35rem; margin: 0 0 .6rem; flex-wrap: wrap; }
.bubble-title span {
  display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8434a, var(--red-dark)); color: #fff7d6;
  border: 3px solid var(--gold); box-shadow: 0 0 0 3px var(--brown), 0 4px 0 3px var(--brown);
  font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 900;
  animation: wobble 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .15s);
}
.bubble-title span:nth-child(2) { --i: 1; } .bubble-title span:nth-child(3) { --i: 2; } .bubble-title span:nth-child(4) { --i: 3; } .bubble-title span:nth-child(5) { --i: 4; }
@keyframes wobble { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-4px) rotate(-4deg); } 75% { transform: translateY(2px) rotate(3deg); } }
.section-sub { text-align: center; font-weight: 700; margin: 0 0 2rem; opacity: .85; }
.small-title { font-size: 1.15rem; }

/* ---------- Pack cards ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; }
.pack {
  position: relative; background: #fffaf0; border: 4px solid var(--brown); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .9rem;
  transition: transform .2s;
}
.pack:hover { transform: translateY(-4px) rotate(-.4deg); }
.pack.sold-out { filter: grayscale(.8); opacity: .7; }
.pack-tag { position: absolute; top: -14px; right: 16px; background: var(--gold); border: 3px solid var(--brown); border-radius: 99px; padding: .1em .8em; font-weight: 900; font-size: .85rem; rotate: 4deg; }
.price-label { display: flex; align-items: stretch; border: 3px solid var(--brown); border-radius: 999px; overflow: hidden; font-weight: 900; align-self: flex-start; box-shadow: 0 3px 0 var(--brown); }
.price-label .pl-name { background: var(--red); color: #fff; padding: .25em .8em; font-size: 1.15rem; }
.price-label .pl-desc { background: #fff; padding: .25em .7em; display: grid; place-items: center; }
.price-label .pl-price { background: var(--red-dark); color: var(--bulb); padding: .25em .8em; font-family: var(--font-en); font-size: 1.25rem; }
.slots { display: flex; gap: .55rem; flex-wrap: wrap; }
.slot {
  width: 74px; height: 74px; border-radius: 18px; border: 3px dashed #c9a27a; background: var(--cream);
  display: grid; place-items: center; position: relative; font-size: .78rem; color: #a07850; font-weight: 700;
  transition: transform .15s, border-color .15s;
}
.slot.filled { border-style: solid; border-color: var(--brown); background: #fff; cursor: pointer; }
.slot.filled:hover::after { content: "✕"; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.slot.random { border-style: solid; border-color: var(--brown); background: repeating-linear-gradient(45deg, #ffe9a8 0 8px, #ffd6e4 8px 16px); color: var(--brown); font-size: 1.6rem; }
.slot.pop-in { animation: popIn .35s; }
@keyframes popIn { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } }
.slot img, .chip img { width: 100%; height: 100%; object-fit: contain; }
.slot .emoji { font-size: 2.2rem; }
.slot-smalls { display: flex; align-items: center; gap: .25rem; font-size: 1.3rem; padding-left: .2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  position: relative; display: flex; align-items: center; gap: .3rem; padding: .2rem .65rem .2rem .25rem;
  border: 2.5px solid var(--brown); border-radius: 999px; background: #fff; font-weight: 700; font-size: .9rem;
  transition: transform .12s, background .2s;
}
.chip:hover { background: var(--pink-soft); transform: translateY(-2px); }
.chip:active { transform: scale(.94); }
.chip .ch-pic { width: 34px; height: 34px; display: grid; place-items: center; font-size: 1.4rem; }
.chip:disabled { opacity: .4; text-decoration: line-through; }
.chip .stock { position: absolute; top: -9px; right: -6px; font-size: .62rem; background: var(--gold); border: 2px solid var(--brown); border-radius: 99px; padding: 0 .35em; }
.chip .stock.out { background: #999; color: #fff; }
.pack-tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.pack-tools .btn { font-size: .85rem; padding: .35em .9em; box-shadow: 0 3px 0 var(--brown); }
.pack-tools .btn.on { background: var(--pink); }
.pack-foot { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.qty { display: flex; align-items: center; border: 3px solid var(--brown); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: var(--cream); width: 36px; height: 38px; font-weight: 900; font-size: 1.15rem; }
.qty span { min-width: 34px; text-align: center; font-family: var(--font-en); font-weight: 700; font-size: 1.1rem; }
.pack-foot .btn { flex: 1; }
.pack-hint { font-size: .82rem; margin: -.3rem 0 0; color: #9a6b44; min-height: 1.2em; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin: 1.5rem auto 1rem; }
.steps li { background: rgba(255,255,255,.1); border: 3px dashed rgba(255,230,128,.6); border-radius: var(--radius); padding: 1.2rem; position: relative; }
.steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--brown); font: 700 1.4rem var(--font-en); border: 3px solid var(--brown); }
.steps h3 { margin: .7rem 0 .3rem; color: var(--bulb); }
.steps p { margin: 0; opacity: .9; }
.reply-hours { text-align: center; font-weight: 700; color: var(--bulb); }

/* ---------- Tips ---------- */
.tips-board { max-width: 720px; margin: 1.5rem auto 0; background: linear-gradient(#fffaf0, var(--paper)); border: 4px solid var(--brown); border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 0 0 8px var(--red), 0 0 0 11px var(--brown), 0 16px 30px rgba(74,36,20,.25); }
.tips-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .7rem; counter-reset: tip; }
.tips-list li { display: flex; align-items: center; gap: .8rem; background: #fff; border: 3px solid var(--brown); border-radius: 999px; padding: .5rem 1rem .5rem .5rem; font-weight: 700; counter-increment: tip; }
.tips-list li::before { content: counter(tip); display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font: 700 1.1rem var(--font-en); }
.tips-list .tip-icon { font-size: 1.4rem; }
.tag-ribbon { text-align: center; background: var(--red); color: #fff; font-weight: 900; padding: .55em 1em; border-radius: 8px; border: 3px solid var(--brown); clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%); }

/* ---------- My orders ---------- */
.my-orders-list { display: grid; gap: .6rem; }
.my-order { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; background: #fff; border: 3px solid var(--brown); border-radius: 16px; padding: .7rem 1rem; }
.my-order .mo-id { font-family: var(--font-en); font-weight: 700; }
.my-order .mo-items { flex: 1 1 240px; font-size: .9rem; }
.my-order .btn { padding: .3em .9em; font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 1.4rem auto 0; display: grid; gap: .8rem; }
.faq details { background: #fff; border: 3px solid var(--brown); border-radius: 18px; padding: .9rem 1.2rem; box-shadow: 0 4px 0 var(--brown); }
.faq summary { font-weight: 900; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "＋"; color: var(--red); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { margin: .6rem 0 0; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer { background: var(--brown); color: var(--cream); text-align: center; padding: 2.5rem 1rem 6rem; }
.footer-banner { width: 100%; max-width: 640px; margin: 0 auto 1.4rem; border-radius: 16px; }
.footer-links { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.footer-links a { background: var(--cream); color: var(--brown); text-decoration: none; font-weight: 700; padding: .45em 1.1em; border-radius: 99px; }
.footer-note { opacity: .7; font-size: .85rem; }

/* ---------- Mobile bar ---------- */
.mobile-bar {
  position: fixed; left: .8rem; right: .8rem; bottom: calc(.8rem + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--brown); color: var(--cream); border-radius: 999px; padding: .45rem .45rem .45rem 1.2rem; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: slideUp .35s;
}
@keyframes slideUp { from { transform: translateY(120%); } }
@media (min-width: 900px) { .mobile-bar { left: auto; width: 360px; } }

/* ---------- Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgba(42,18,9,.5); z-index: 40; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 50;
  background: var(--cream); border-left: 4px solid var(--brown); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2,.9,.3,1.1);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; background: var(--red); color: #fff; border-bottom: 4px solid var(--brown); }
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; }
.drawer-foot { border-top: 3px dashed var(--brown); padding: .8rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); background: var(--paper); display: grid; gap: .5rem; }
.cart-empty { text-align: center; padding: 2rem 1rem; font-weight: 700; }
.cart-empty .big { font-size: 3rem; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: .7rem; align-items: center; background: #fff; border: 3px solid var(--brown); border-radius: 16px; padding: .55rem; margin-bottom: .6rem; }
.cart-line .cl-pic { width: 56px; height: 56px; display: grid; place-items: center; font-size: 2rem; background: var(--cream); border-radius: 12px; }
.cart-line .cl-pic img { width: 100%; height: 100%; object-fit: contain; }
.cart-line .cl-name { font-weight: 900; }
.cart-line .cl-chars { font-size: .82rem; opacity: .8; }
.cart-line .cl-right { text-align: right; display: grid; gap: .3rem; justify-items: end; }
.cart-line .cl-price { font-family: var(--font-en); font-weight: 700; }
.cart-line .qty button { width: 28px; height: 28px; font-size: 1rem; }
.cart-line .qty span { min-width: 24px; font-size: .95rem; }
.order-form fieldset { border: 0; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .55rem; }
.order-form legend { font-weight: 900; margin-bottom: .4rem; }
.order-form label { display: grid; gap: .25rem; font-size: .88rem; font-weight: 700; }
.order-form label.full { margin-top: 1.1rem; }
.order-form input, .order-form select, .order-form textarea {
  font: inherit; font-weight: 500; padding: .6em .8em; border: 2.5px solid var(--brown); border-radius: 12px; background: #fff; color: var(--brown); width: 100%;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.order-form .invalid { border-color: var(--red); background: #fff0f0; }
.radio-cards { display: grid; gap: .45rem; }
.radio-card { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: .6rem !important; background: #fff; border: 2.5px solid var(--brown); border-radius: 14px; padding: .55rem .7rem; cursor: pointer; }
.radio-card input { width: auto !important; margin-top: .25em; accent-color: var(--red); }
.radio-card.disabled { opacity: .45; cursor: not-allowed; }
.radio-card:has(input:checked) { background: var(--pink-soft); box-shadow: 0 3px 0 var(--brown); }
.radio-card small { display: block; font-weight: 500; opacity: .75; }
.radio-card .rc-fee { margin-left: auto; font-family: var(--font-en); white-space: nowrap; }
.sub-fields { display: grid; gap: .5rem; padding: .7rem; border-radius: 14px; background: rgba(255,255,255,.6); border: 2px dashed #c9a27a; }
.promo-row { display: flex; gap: .5rem; }
.promo-row .btn { padding: .4em 1em; box-shadow: 0 3px 0 var(--brown); }
.promo-msg { margin: 0; font-size: .85rem; font-weight: 700; min-height: 1em; }
.promo-msg.ok { color: var(--green); } .promo-msg.bad { color: var(--red); }
.totals { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; font-weight: 700; }
.totals dt { opacity: .8; } .totals dd { margin: 0; text-align: right; font-family: var(--font-en); }
.totals .grand { font-size: 1.35rem; color: var(--red); opacity: 1; border-top: 2px solid var(--brown); padding-top: .3rem; margin-top: .2rem; }
.totals .free { color: var(--green); }
.ship-progress { grid-column: 1 / -1; font-size: .8rem; font-weight: 700; }
.ship-progress .bar { height: 8px; border-radius: 8px; background: #ead2a6; overflow: hidden; margin-top: .2rem; border: 1.5px solid var(--brown); }
.ship-progress .bar i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--red) 0 6px, #e8434a 6px 12px); transition: width .4s; }
.form-error { margin: 0; color: var(--red); font-weight: 700; font-size: .88rem; min-height: 0; }
.form-error:empty { display: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(42,18,9,.55); padding: 1rem; animation: fade .2s; }
.modal-card { background: var(--cream); border: 4px solid var(--brown); border-radius: 26px; padding: 1.6rem; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 0 0 8px var(--red), 0 0 0 11px var(--brown); animation: popIn .4s; }
.modal-emoji { font-size: 2.6rem; }
.modal-card h2 { margin: .3rem 0; }
.pay-box { background: #fff; border: 2.5px dashed var(--brown); border-radius: 14px; padding: .8rem; margin: 1rem 0; text-align: left; font-size: .92rem; line-height: 1.6; }
.modal-actions { display: grid; gap: .6rem; }

/* ---------- Toast & flyer ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; translate: -50% 0; z-index: 70; background: var(--brown); color: #fff; padding: .7em 1.3em; border-radius: 99px; font-weight: 700; opacity: 0; transform: translateY(20px); transition: .3s; pointer-events: none; text-align: center; max-width: 90vw; }
.toast.show { opacity: 1; transform: none; }
.flyer { position: fixed; z-index: 80; width: 54px; height: 54px; pointer-events: none; display: grid; place-items: center; font-size: 2rem; }
.flyer img { width: 100%; height: 100%; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
