/* ibloom_island — 小島 slime 店 */
:root {
  --cream: #fff9f1;
  --sand: #ffe9cc;
  --paper: #ffffff;
  --ink: #1d2b55;
  --ink-2: #4a5680;
  --blue: #2f4fb3;
  --sea: #6cc6f5;
  --sea-2: #bfe8ff;
  --heart: #ef3b4f;
  --pink: #ffd0dc;
  --cocoa: #8a5a3c;
  --tabby: #a9a9b3;
  --mint: #c9f2df;
  --butter: #fff1b8;
  --line: rgba(29, 43, 85, .14);
  --shadow: 0 6px 0 rgba(29, 43, 85, .08), 0 14px 30px rgba(29, 43, 85, .10);
  --r: 26px;
  --font: "Huninn", "Fredoka", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --display: "Fredoka", "Huninn", "PingFang HK", system-ui, sans-serif;
  --script: "Pacifico", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6;
  background-color: var(--cream);
  background-image: radial-gradient(rgba(47, 79, 179, .07) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 11px 20px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink); transition: transform .12s, box-shadow .12s; text-decoration: none;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.heart { background: var(--heart); color: #fff; }
.btn.wa { background: #25d366; color: #0b3d1f; }
.btn.small { padding: 7px 14px; font-size: .9rem; box-shadow: 0 3px 0 var(--ink); }
.btn.ghost { box-shadow: none; border-color: var(--line); background: rgba(255,255,255,.7); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.chip {
  border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 14px;
  font-weight: 700; cursor: pointer; white-space: nowrap; font-size: .92rem;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 頂部 ---------- */
.marquee { background: var(--ink); color: #fff; font-size: .88rem; overflow: hidden; white-space: nowrap; }
.marquee span { display: inline-block; padding: 7px 0 7px 100%; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 249, 241, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 2px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 10px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--blue); }
.brand img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; object-position: 50% 45%; background: #fff; }
.brand b { font-family: var(--script); font-weight: 400; font-size: 1.35rem; line-height: 1; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: var(--sand); }
.cart-btn { margin-left: auto; position: relative; }
.cart-btn .count {
  position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 5px;
  background: var(--heart); color: #fff; font-size: .78rem; display: grid; place-items: center; border: 2px solid var(--cream);
}
.cart-btn .count:empty { display: none; }
@media (min-width: 860px) { .nav { display: flex; } .cart-btn { margin-left: 8px; } }

/* ---------- 限時優惠 ---------- */
.flash {
  background: repeating-linear-gradient(-45deg, #ffe066 0 14px, #ffd23a 14px 28px);
  border-bottom: 2px solid var(--ink); text-align: center; padding: 8px 12px; font-weight: 700; font-size: .95rem;
}
.flash code { background: #fff; border: 2px dashed var(--ink); border-radius: 8px; padding: 1px 8px; cursor: pointer; font-family: var(--display); }
.flash .cd { font-family: var(--display); font-variant-numeric: tabular-nums; background: var(--ink); color: #fff; border-radius: 8px; padding: 1px 8px; margin-left: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 26px 0 0; overflow: hidden; }
.hero .wrap { display: grid; gap: 18px; align-items: center; }
.hero h1 { font-family: var(--font); font-size: clamp(2.1rem, 8.5vw, 3.6rem); line-height: 1.15; margin: 0; letter-spacing: .5px; }
.hero h1 .pop { color: var(--heart); display: inline-block; animation: popword 2.4s ease-in-out infinite; }
@keyframes popword { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(1.22) rotate(-4deg); } 84% { transform: scale(.96); } }
.hero .script { font-family: var(--script); color: var(--blue); font-size: 1.5rem; display: block; margin-bottom: 4px; }
.hero p.lead { font-size: 1.08rem; color: var(--ink-2); margin: 12px 0 18px; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding: 0; list-style: none; }
.badges li { background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 700; }
.island { position: relative; width: min(420px, 92vw); margin: 0 auto; aspect-ratio: 1 / 1; }
.island .sticker {
  position: absolute; left: 50%; top: 4%; width: 74%; transform: translateX(-50%) rotate(-3deg);
  border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow); overflow: hidden; background: #fff;
  animation: bob 4s ease-in-out infinite; z-index: 2;
}
.island .sticker img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@keyframes bob { 50% { transform: translateX(-50%) rotate(2deg) translateY(-8px); } }
.island svg.sea { position: absolute; left: -6%; right: -6%; bottom: 0; width: 112%; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.floaty { position: absolute; z-index: 3; pointer-events: none; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(8deg); } }
.hero-blob {
  position: absolute; z-index: 4; right: -2%; bottom: 10%; width: 30%; max-width: 140px; aspect-ratio: 1.2; cursor: pointer;
  border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent;
}
.hero-blob span.tip { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .78rem; border-radius: 10px; padding: 2px 8px; white-space: nowrap; }
.hero-blob .goo { width: 100%; height: 100%; display: block; transition: transform .25s cubic-bezier(.3, 1.8, .4, 1); }
.hero-blob:active .goo, .hero-blob.squish .goo { transform: scale(1.25, .7) translateY(10%); transition-duration: .08s; }
@media (min-width: 860px) {
  .hero { padding-top: 46px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 30px; }
}

/* ---------- 區塊 ---------- */
.section { padding: 46px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 22px; }
.section-head .eyebrow { font-family: var(--script); color: var(--blue); font-size: 1.25rem; }
.section-head h2 { margin: 2px 0 6px; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.25; }
.section-head p { margin: 0; color: var(--ink-2); }
.wave-top { display: block; width: 100%; height: 28px; margin-bottom: -1px; }
.band { background: var(--sea-2); }
.band-sand { background: var(--sand); }

/* ---------- 產品 ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; justify-content: flex-start; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .filters { justify-content: center; flex-wrap: wrap; } }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); border: 2px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .2s;
}
.card:hover { transform: translateY(-3px) rotate(-.4deg); }
.card .pic { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, #fff, var(--sand)); cursor: pointer; border: 0; padding: 0; width: 100%; }
.card .pic img, .card .pic svg { width: 100%; height: 100%; object-fit: cover; }
.card .pic:active svg { transform: scale(1.06, .94); }
.card .tag { position: absolute; top: 10px; left: 10px; background: var(--heart); color: #fff; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 2px solid #fff; }
.card .tag.limited { background: var(--ink); left: auto; right: 10px; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.card .en { font-family: var(--display); font-size: .78rem; color: var(--ink-2); letter-spacing: .3px; }
.card .meta { font-size: .8rem; color: var(--ink-2); display: flex; gap: 6px; flex-wrap: wrap; }
.card .meta span { background: var(--cream); border-radius: 8px; padding: 0 6px; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--blue); }
.price small { font-size: .75rem; color: var(--ink-2); font-weight: 500; }
.stock-low { color: var(--heart); font-size: .8rem; font-weight: 700; }
.card.out .pic { filter: grayscale(.7) opacity(.7); }
.card.out .row .btn { pointer-events: none; }
.add {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--heart); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 3px 0 var(--ink); flex: none;
}
.add:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.add:disabled { background: var(--tabby); }
.demo-note { text-align: center; font-size: .85rem; color: var(--ink-2); margin-top: 16px; }

/* ---------- Modal / 抽屜 ---------- */
.scrim { position: fixed; inset: 0; background: rgba(29, 43, 85, .45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; overscroll-behavior: contain;
  background: var(--cream); border-radius: 26px 26px 0 0; border-top: 3px solid var(--ink);
  transform: translateY(105%); padding: 0 16px 24px;
  visibility: hidden; transition: transform .28s cubic-bezier(.2, .9, .3, 1), visibility 0s .28s;
}
.sheet.on { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .9, .3, 1); }
.sheet .grab { position: sticky; top: 0; background: var(--cream); padding: 10px 0 8px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.sheet .grab h2 { margin: 0; font-size: 1.25rem; flex: 1; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; }
@media (min-width: 760px) {
  .sheet { left: auto; top: 0; width: 440px; max-height: none; border-radius: 26px 0 0 26px; border-top: 0; border-left: 3px solid var(--ink); transform: translateX(105%); }
  .sheet.center { left: 50%; right: auto; top: 50%; bottom: auto; width: min(760px, calc(100vw - 40px)); max-height: 88vh; border-radius: 26px; border: 3px solid var(--ink); transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; transition: transform .22s, opacity .22s, visibility 0s .22s; }
  .sheet.center.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; transition: transform .22s, opacity .22s; }
}

/* 產品詳情 */
.pd { display: grid; gap: 14px; }
@media (min-width: 760px) { .pd { grid-template-columns: 1fr 1fr; } }
.pd .gallery { border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #fff, var(--sand)); aspect-ratio: 1; position: relative; }
.pd .gallery img, .pd .gallery svg, .pd .gallery video { width: 100%; height: 100%; object-fit: cover; }
.pd .thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.pd .thumbs button { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); padding: 0; flex: none; cursor: pointer; background: #fff; }
.pd .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes label { cursor: pointer; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 6px 14px; background: #fff; font-weight: 700; }
.sizes input:checked + span { border-color: var(--ink); background: var(--butter); }
.sizes input:focus-visible + span { outline: 3px solid var(--sea); }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 36px; height: 36px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.qty output { min-width: 28px; text-align: center; font-family: var(--display); font-weight: 700; }

/* 購物車 */
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 2px dashed var(--line); }
.cart-line .mini { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; background: #fff; border: 2px solid var(--line); }
.cart-line .mini svg, .cart-line .mini img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .nm { font-weight: 700; line-height: 1.3; }
.cart-line .sz { font-size: .82rem; color: var(--ink-2); }
.cart-empty { text-align: center; padding: 30px 0; color: var(--ink-2); }
.field { display: grid; gap: 4px; margin: 10px 0; }
.field > span { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; font-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; background: #fff; cursor: pointer; }
.radio-list label:has(input:checked) { border-color: var(--ink); background: var(--butter); }
.radio-list small { display: block; color: var(--ink-2); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; text-transform: uppercase; }
.totals { background: #fff; border-radius: 18px; border: 2px solid var(--line); padding: 12px 14px; margin: 14px 0; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .disc { color: var(--heart); }
.totals .grand { font-size: 1.25rem; font-weight: 700; border-top: 2px dashed var(--line); margin-top: 6px; padding-top: 6px; font-family: var(--display); }
.notes-warn { color: var(--heart); font-size: .88rem; }
.fps-box { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.not-edible { background: #fff0f2; border: 2px solid var(--heart); color: #a3142a; border-radius: 16px; padding: 8px 12px; font-size: .9rem; font-weight: 700; }

/* 浮動購物車（手機） */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; display: none;
  border-radius: 999px; padding: 12px 18px; box-shadow: 0 4px 0 var(--ink), 0 10px 26px rgba(29,43,85,.3);
}
.fab.on { display: inline-flex; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 90; opacity: 0; transition: .25s; pointer-events: none; font-weight: 700; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 示範模式 */
.demo-bar { background: #fff3c4; border-top: 2px dashed #c9a400; text-align: center; font-size: .85rem; padding: 8px 16px; }

/* ---------- 試搓 slime ---------- */
.lab { display: grid; gap: 16px; align-items: start; }
@media (min-width: 860px) { .lab { grid-template-columns: 1.4fr 1fr; } }
.lab-stage { position: relative; background: #fff; border-radius: 30px; border: 3px solid var(--ink); box-shadow: var(--shadow); overflow: hidden; touch-action: none; height: clamp(280px, 78vw, 430px); }
.lab-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.lab-stage canvas:active { cursor: grabbing; }
.lab-hud { position: absolute; left: 12px; top: 10px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; font-weight: 700; }
.lab-hud .pops { font-family: var(--display); font-size: 1.4rem; background: rgba(255,255,255,.8); border-radius: 14px; padding: 0 10px; }
.lab-hud .hint { font-size: .82rem; background: rgba(29,43,85,.8); color: #fff; border-radius: 12px; padding: 2px 10px; align-self: start; }
.lab-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.lab-panel { background: #fff; border-radius: 24px; border: 2px solid var(--line); padding: 14px; display: grid; gap: 12px; }
.lab-panel h3 { margin: 0; font-size: 1rem; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; display: flex; align-items: center; gap: 6px; background: #fff; cursor: pointer; font-weight: 700; font-size: .88rem; }
.swatches button i { width: 26px; height: 26px; border-radius: 50%; display: block; border: 2px solid rgba(0,0,0,.08); }
.swatches button[aria-pressed="true"] { border-color: var(--ink); background: var(--butter); }
.progress { height: 14px; border-radius: 99px; background: var(--cream); border: 2px solid var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sea), var(--blue)); transition: width .3s; }
.reward { background: var(--mint); border: 2px dashed #2e9e6a; border-radius: 16px; padding: 10px 12px; font-weight: 700; display: none; }
.reward.on { display: block; animation: popin .4s cubic-bezier(.3, 1.8, .4, 1); }
.reward code { font-family: var(--display); background: #fff; border-radius: 8px; padding: 0 8px; border: 2px solid #2e9e6a; cursor: pointer; }
@keyframes popin { from { transform: scale(.6); opacity: 0; } }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 玩法 / 保養 ---------- */
.how { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 860px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how div { background: #fff; border-radius: 22px; padding: 14px; border: 2px solid var(--line); text-align: center; }
.how b { display: block; font-size: 1.1rem; }
.how .ic { font-size: 2rem; display: block; }
.care { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 700px) { .care { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .care { grid-template-columns: repeat(3, 1fr); } }
.care div { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.8); border-radius: 18px; padding: 12px 14px; }
.care .ic { font-size: 1.6rem; line-height: 1; }
.care b { display: block; }
.safety { margin-top: 18px; background: #fff; border: 3px solid var(--heart); border-radius: 22px; padding: 14px 16px; }
.safety h3 { margin: 0 0 6px; color: var(--heart); }
.safety ul { margin: 0; padding-left: 20px; }

/* ---------- 印仔卡 / 推薦 ---------- */
.club { display: grid; gap: 16px; }
@media (min-width: 860px) { .club { grid-template-columns: 1fr 1fr; } }
.panel { background: #fff; border-radius: var(--r); border: 2px solid var(--line); box-shadow: var(--shadow); padding: 18px; }
.panel h3 { margin: 0 0 4px; font-size: 1.2rem; }
.panel p { margin: 4px 0 10px; color: var(--ink-2); }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0; }
.stamps i { aspect-ratio: 1; border-radius: 50%; border: 3px dashed var(--line); display: grid; place-items: center; font-style: normal; font-size: 1.5rem; background: var(--cream); }
.stamps i.on { border: 3px solid var(--heart); background: #fff0f2; animation: popin .35s; }
.refcode { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: 2px; color: var(--blue); background: var(--sea-2); border-radius: 14px; padding: 4px 14px; display: inline-block; }

/* ---------- 遊戲 ---------- */
.game { position: relative; background: linear-gradient(180deg, #e6f6ff, #bfe8ff); border-radius: 30px; border: 3px solid var(--ink); overflow: hidden; height: 380px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.game .bubble { position: absolute; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 32% 30%, #fff 0 12%, rgba(255,255,255,.4) 13% 30%, var(--c, rgba(108,198,245,.55)) 60%, rgba(47,79,179,.35)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); animation: rise linear forwards; }
.game .bubble.popped { animation: burst .25s forwards; pointer-events: none; }
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(var(--rise, -460px)); } }
@keyframes burst { to { transform: scale(1.6); opacity: 0; } }
.game .over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: rgba(255,249,241,.86); padding: 20px; }
.game .over h3 { margin: 0 0 6px; font-size: 1.4rem; }
.game .score { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; font-family: var(--display); font-weight: 700; font-size: 1.2rem; z-index: 2; pointer-events: none; }
.game .plus { position: absolute; font-family: var(--display); font-weight: 700; color: var(--blue); pointer-events: none; animation: plus .6s forwards; }
@keyframes plus { to { transform: translateY(-30px); opacity: 0; } }
.games-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .games-grid { grid-template-columns: 1.3fr 1fr; } }
.quiz-q { font-weight: 700; margin: 6px 0 10px; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opts button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 12px; cursor: pointer; font-weight: 700; }
.quiz-opts button.right { background: var(--mint); border-color: #2e9e6a; }
.quiz-opts button.wrong { background: #ffe1e6; border-color: var(--heart); }
.match-result { display: flex; gap: 12px; align-items: center; }
.match-result .pic { width: 110px; flex: none; }

/* ---------- 返圖牆 ---------- */
.wall { columns: 2; column-gap: 12px; }
@media (min-width: 860px) { .wall { columns: 4; } }
.wall figure { break-inside: avoid; margin: 0 0 12px; background: #fff; padding: 8px 8px 10px; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(var(--rot, -1deg)); }
.wall figure img { border-radius: 4px; }
.wall figcaption { font-size: .82rem; margin-top: 6px; text-align: center; }
.wall .empty { aspect-ratio: 1; display: grid; place-items: center; background: var(--cream); border-radius: 4px; font-size: 2.2rem; }

/* ---------- 格仔舖 ---------- */
.booth { display: grid; gap: 14px; align-items: center; }
@media (min-width: 760px) { .booth { grid-template-columns: 1fr auto; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 18px; border: 2px solid var(--line); padding: 2px 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "＋"; color: var(--blue); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 12px; color: var(--ink-2); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #dfe6ff; padding: 36px 0 90px; margin-top: 30px; }
footer .wrap { display: grid; gap: 14px; text-align: center; }
footer a { color: #fff; }
footer .script { font-family: var(--script); font-size: 1.8rem; color: #fff; }
footer .not-edible { background: rgba(239,59,79,.15); color: #ffd0d7; border-color: #ff7d8d; }
.share-preview { width: 100%; max-width: 270px; margin: 0 auto; border-radius: 18px; border: 2px solid var(--line); }

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

/* 窄機：網格唔好俾內容撐闊 */
.club, .lab, .games-grid, .pd, .booth, .hero .wrap { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) {
  .club { grid-template-columns: 1fr 1fr; }
  .lab { grid-template-columns: 1.4fr 1fr; }
  .games-grid { grid-template-columns: 1.3fr 1fr; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; }
}
@media (min-width: 760px) { .pd { grid-template-columns: 1fr 1fr; } .booth { grid-template-columns: 1fr auto; } }

.price.ask { font-size: .95rem; color: #1a8a4a; }
.add.ask { background: #25d366; color: #0b3d1f; font-size: 1.05rem; }

/* 試搓：產品揀選（每款都玩得） */
.lab-kinds { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.lab-kinds button { width: 74px; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 4px 2px 6px; cursor: pointer; display: grid; justify-items: center; gap: 0; font-size: .72rem; font-weight: 700; line-height: 1.15; }
.lab-kinds button .mini { width: 48px; height: 48px; display: block; }
.lab-kinds button .mini svg { width: 100%; height: 100%; }
.lab-kinds button span:last-child { max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-kinds button[aria-pressed="true"] { border-color: var(--ink); background: var(--butter); }
.lab-feel { margin: 0; font-size: .88rem; background: var(--cream); border-radius: 14px; padding: 8px 10px; }
.lab-feel small { color: var(--ink-2); }
.lab-name { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(255,255,255,.85); border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: .9rem; pointer-events: none; white-space: nowrap; }

/* 杯蓋插畫：完整顯示個圓 */
.card .pic img, .pd .gallery img, .cart-line .mini img { object-fit: contain; padding: 5%; }
.thanks-card { max-width: 760px; margin: 18px auto 0; border-radius: 22px; box-shadow: var(--shadow); width: 100%; }

/* 冒險島入口 */
.adv-banner { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; background: linear-gradient(120deg, #2f4fb3, #6cc6f5); border: 3px solid var(--ink); border-radius: 24px; padding: 12px 16px; margin-bottom: 16px; box-shadow: 0 5px 0 var(--ink); }
.adv-banner img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; object-position: 50% 45%; flex: none; }
.adv-banner span { flex: 1; display: grid; gap: 2px; }
.adv-banner b { font-size: 1.2rem; }
.adv-banner small { opacity: .92; }
.adv-banner em { font-style: normal; font-weight: 700; background: #e8343f; border: 2px solid #fff; border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
@media (max-width: 520px) { .adv-banner { flex-wrap: wrap; } .adv-banner em { width: 100%; text-align: center; } }

.adv-banner.roll { background: linear-gradient(120deg, #ff7aa2, #ffcf3a); }

.adv-banner.shop3d { background: linear-gradient(120deg, #e8343f, #ff9fb8); }
.adv-banner.jet { background: linear-gradient(120deg, #0a8fb8, #2ec4c9); }

/* ===== 2026-11-14 網站背景：藍色油畫底＋紅白帳篷＋紅黃花邊（素材由 art/bg/site_bg_ref.jpg 剪出） ===== */
body.painted {
  background: #1d3aa8 url(../assets/bg/blue_paint.webp) repeat;
  background-size: 520px auto;
}
@media (min-width: 900px) { body.painted { background-size: 680px auto; } }
body.painted .awning {
  height: 56px; background: url(../assets/bg/awning_top.webp) repeat-x left top / auto 100%;
  position: relative; z-index: 2;
}
@media (min-width: 900px) { body.painted .awning { height: 72px; } }
body.painted .bg-deco { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
body.painted .bg-deco img { position: absolute; display: block; filter: drop-shadow(0 2px 2px rgba(0, 0, 40, .25)); }
body.painted .topbar, body.painted main, body.painted footer { position: relative; z-index: 1; }
body.painted .topbar { position: sticky; z-index: 40; }
body.painted main { padding: 6px 0 10px; }
body.painted .section { padding: 10px 0; }
body.painted .hero { padding: 14px 0 0; overflow: visible; }
/* 每個內容區變成奶白色「貼紙」，白邊 + 陰影，好似 logo 嗰朵雲 */
body.painted .hero > .wrap,
body.painted main > .section > .wrap {
  width: min(1120px, calc(100% - 24px));
  background-color: var(--cream);
  background-image: radial-gradient(rgba(47, 79, 179, .07) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  border: 5px solid #fff; border-radius: 30px;
  box-shadow: 0 6px 0 rgba(12, 24, 80, .35), 0 14px 30px rgba(0, 0, 40, .35);
  padding: 26px 16px;
}
body.painted .hero > .wrap { padding-bottom: 20px; }
body.painted .section.band, body.painted .section.band-sand { background: none; }
body.painted .section.band > .wrap { background-color: #e6f6ff; }
body.painted .section.band-sand > .wrap { background-color: var(--sand); }
@media (min-width: 700px) {
  body.painted .hero > .wrap, body.painted main > .section > .wrap { padding: 34px 30px; }
  body.painted .section { padding: 14px 0; }
}
/* 頁尾：紅黃花邊 */
body.painted footer { background: #e3070b; color: #fff; margin-top: 70px; }
body.painted footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -62px; height: 64px;
  background: url(../assets/bg/scallop_bottom.webp) repeat-x left bottom / auto 100%;
}
body.painted footer .not-edible { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .7); }
/* 區塊標題：Gemini 畫嘅油畫雲朵字（assets/titles/*.webp，原圖 art/gemini/titles_sheet_v1.jpeg） */
.section-head h2.title-art { margin: 0 0 6px; line-height: 0; }
.section-head h2.title-art img { display: block; margin: 0 auto; max-width: 100%; height: auto; filter: drop-shadow(0 4px 6px rgba(29, 43, 85, .18)); }
@media (max-width: 420px) { .section-head h2.title-art img { max-width: 92%; } }
