/* 2027 台灣燈會 APP Prototype
   Style: pastel-consumer (tasteskill, seed 1570146133), brand kept: white ground + orange actions.
   Faces: Manrope for figures and Latin, Noto Sans TC for Chinese text. */

:root {
  --ground: #f4f4f2;
  --surface: #ffffff;
  --raised: #f7f7f5;
  --active: #eeeeec;
  --border: #e8e8e6;
  --rule: #f0f0ee;
  --control: #d1d5db;
  --text: #151515;
  --muted: #5c5f62;
  --faint: #6b6b6b;

  --accent: #c2470a;          /* actions: white label 5.0:1 */
  --accent-press: #a83d08;
  --accent-data: #e0661c;     /* the one data hue */
  --accent-pale: #fff0e5;
  --accent-ink: #7a2a04;

  --positive: #247b50;  --pill-positive-bg: #dcfae5;  --pill-positive-ink: #04250e;
  --negative: #c4242a;  --pill-negative-bg: #ffedea;  --pill-negative-ink: #831c1e;
  --pill-warning-bg: #fffbeb;  --pill-warning-ink: #92400e;  --pill-warning-line: #fde68a;
  --pill-neutral-bg: #efefed;  --pill-neutral-ink: #3d3f42;

  /* category tints: pale tile, ink the dark of its own hue */
  --c-eat-bg: #ffe8d9;  --c-eat: #7a2e0a;
  --c-wear-bg: #fde3ee;  --c-wear: #7d1d4a;
  --c-stay-bg: #dcf1ff;  --c-stay: #0a3a80;
  --c-move-bg: #e4eaf1;  --c-move: #26364d;
  --c-tour-bg: #e2f4e6;  --c-tour: #12502a;
  --c-shop-bg: #fff1c2;  --c-shop: #634500;
  --c-fun-bg: #d8f3f1;  --c-fun: #0c4a46;

  --radius-card: 20px;  --radius-inner: 10px;  --radius-chip: 8px;  --radius-tiny: 5px;
  --font: "Manrope", "Noto Sans TC", system-ui, sans-serif;
  --fs-title: 24px;  --fs-section: 18px;  --fs-kpi: 28px;  --fs-body: 15px;  --fs-small: 13px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; font-family: "Manrope", "Noto Sans TC", sans-serif; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────── Desktop shell: presenter + stage ───────── */
.shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); min-height: 100vh; }
.stage, .dash, .content, .panel { min-width: 0; }
.presenter {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 20px 32px;
  height: 100vh; position: sticky; top: 0; overflow-y: auto;
}
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.brand-sub { font-size: 13px; color: var(--muted); }
.notice {
  background: var(--pill-warning-bg); border: 1px solid var(--pill-warning-line); color: var(--pill-warning-ink);
  font-size: 13px; border-radius: var(--radius-inner); padding: 10px 12px; margin-bottom: 20px;
}
.p-section { margin-bottom: 24px; }
.p-section h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.flow { background: var(--raised); border-radius: var(--radius-inner); padding: 12px; margin-bottom: 8px; }
.flow-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.flow-title { font-weight: 600; font-size: 14px; }
.flow-run { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 13px; padding: 4px 0; }
.flow-steps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.flow-step {
  border: 0; background: var(--surface); border-radius: var(--radius-tiny); font-size: 12px; padding: 3px 7px; color: var(--muted);
}
.flow-step:hover { color: var(--text); background: var(--active); }
.flow-step.on { background: var(--text); color: #fff; }
.screen-index { display: grid; grid-template-columns: 1fr; gap: 2px; }
.screen-link {
  display: flex; gap: 10px; align-items: baseline; border: 0; background: none; text-align: left;
  padding: 6px 8px; border-radius: var(--radius-chip); font-size: 14px; color: var(--text);
}
.screen-link .code { color: var(--faint); font-size: 12px; width: 34px; flex: none; }
.screen-link:hover { background: var(--raised); }
.screen-link.on { background: var(--active); font-weight: 600; }
.role-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.role-btn { border: 1px solid var(--control); background: var(--surface); border-radius: var(--radius-chip); padding: 8px 4px; font-size: 13px; }
.role-btn.on { border-color: var(--text); background: var(--text); color: #fff; }
.reset { margin-top: 8px; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 4px 0; }

.stage { display: flex; align-items: flex-start; justify-content: center; padding: 32px 24px; gap: 32px; }
.stage-note { max-width: 260px; padding-top: 40px; color: var(--muted); font-size: 14px; }
.stage-note strong { color: var(--text); display: block; font-size: 22px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.stage-note .code { font-size: 13px; color: var(--faint); margin-bottom: 4px; }

/* ───────── Phone ───────── */
.phone {
  width: 390px; height: 820px; flex: none;
  border: 10px solid #1b1b1b; border-radius: 52px; background: var(--surface);
  overflow: hidden; position: relative; display: flex; flex-direction: column;
}
.statusbar { height: 34px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 26px 0; font-size: 13px; font-weight: 600; }
.statusbar .dots { display: flex; gap: 4px; }
.statusbar .dots i { width: 14px; height: 9px; border-radius: 2px; background: var(--text); display: block; }
.statusbar .dots i:first-child { width: 9px; }
.appbar { height: 52px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 12px; }
.appbar h1 { font-size: 18px; font-weight: 600; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar.solo h1 { padding-left: 8px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; color: var(--text); }

.icon-btn:active { background: var(--active); }
.content { flex: 1; overflow-y: auto; padding: 4px 16px 24px; scrollbar-width: thin; }
.content.flush { padding-left: 0; padding-right: 0; }
.tabbar { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); background: var(--surface); padding: 6px 4px 18px; }
.tab { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--faint); padding: 6px 0; min-height: 48px; }
.tab.on { color: var(--accent); font-weight: 600; }


.tab.scan .scan-dot { width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.footer-bar { flex: none; padding: 12px 16px 22px; border-top: 1px solid var(--border); background: var(--surface); }

svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic.sm { width: 16px; height: 16px; }

/* ───────── Components ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  transition: background .12s, transform .08s;
}

.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--control); }

.btn.dark { background: var(--text); }

.btn[disabled] { background: var(--active); color: var(--faint); cursor: not-allowed; transform: none; }
.btn.sm { min-height: 36px; font-size: 14px; padding: 0 14px; }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 8px 0; font-size: 14px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px; }
.card + .card, .block + .block { margin-top: 12px; }
.card.tint { background: var(--raised); border-color: transparent; }
.card h2, .block h2 { font-size: var(--fs-section); font-weight: 600; margin: 0 0 4px; line-height: 1.35; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 10px; }
.sec-head h2 { font-size: var(--fs-section); font-weight: 600; margin: 0; }
.meta { color: var(--muted); font-size: var(--fs-small); }
.lead { color: var(--muted); margin: 4px 0 0; }

.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill.pos { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.pill.neg { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.pill.warn { background: var(--pill-warning-bg); color: var(--pill-warning-ink); box-shadow: inset 0 0 0 1px var(--pill-warning-line); }
.pill.neu { background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.pill.acc { background: var(--accent-pale); color: var(--accent-ink); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.rows .row:first-child { border-top: 0; }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 500; }
.row-btn { width: 100%; border: 0; background: none; text-align: left; padding: 0; }

.row .time { width: 52px; flex: none; font-weight: 600; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--raised); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; border-radius: 999px; min-height: 36px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); font-weight: 600; }
.utabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin: 16px 0 12px; overflow-x: auto; }
.utabs button { border: 0; background: none; padding: 10px 0; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.utabs button.on { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input { width: 100%; height: 48px; border: 1px solid var(--control); border-radius: 12px; padding: 0 14px; background: var(--surface); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 16px 0 6px; }
.otp input { width: 100%; min-width: 0; padding: 0; height: 54px; text-align: center; font-size: 22px; font-weight: 600; border: 1px solid var(--control); border-radius: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--rule); }
.check:first-child { border-top: 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check .t { font-weight: 500; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 20px; }
.steps i { height: 4px; border-radius: 4px; background: var(--active); }
.steps i.on { background: var(--accent); }

/* hero */
.hero { position: relative; border-radius: var(--radius-card); overflow: hidden; background: #2b3a3a; color: #fff; }
.hero svg { display: block; width: 100%; height: auto; }
.hero.tall svg { height: 380px; }
.hero .cap { position: absolute; left: 16px; right: 16px; top: 14px; }
.hero .cap .t { font-size: 22px; font-weight: 600; line-height: 1.25; margin: 0; }
.hero .cap .s { font-size: 14px; margin-top: 2px; opacity: .92; }
.hero .tag { position: absolute; right: 12px; bottom: 10px; font-size: 11px; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 999px; }

.shortcuts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 16px; }
.sc { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; padding: 6px 0; border-radius: 12px; }

.sc .ico { width: 48px; height: 48px; border-radius: 16px; background: var(--accent-pale); color: var(--accent-ink); display: grid; place-items: center; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat {
  border: 0; border-radius: 16px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: transform .08s;
}
.cat:active { transform: scale(.97); }
.cat .big { font-size: 24px; font-weight: 600; line-height: 1.1; }
.cat .small { font-size: 12px; white-space: nowrap; }
.cat.on { box-shadow: inset 0 0 0 2px currentColor; }
.cat-eat { background: var(--c-eat-bg); color: var(--c-eat); }
.cat-wear { background: var(--c-wear-bg); color: var(--c-wear); }
.cat-stay { background: var(--c-stay-bg); color: var(--c-stay); }
.cat-move { background: var(--c-move-bg); color: var(--c-move); }
.cat-tour { background: var(--c-tour-bg); color: var(--c-tour); }
.cat-shop { background: var(--c-shop-bg); color: var(--c-shop); }
.cat-fun { background: var(--c-fun-bg); color: var(--c-fun); }
.chip-row { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 8px; padding-bottom: 2px; }
.chip { border: 1px solid var(--control); background: var(--surface); border-radius: 999px; height: 36px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }

.shop-card { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; text-align: left; }
.shop-card:first-child { border-top: 0; }

.thumb { width: 64px; height: 64px; border-radius: var(--radius-inner); flex: none; display: grid; place-items: center; font-size: 12px; text-align: center; line-height: 1.3; }
.photo-ph {
  border-radius: var(--radius-inner); display: grid; place-items: center; text-align: center; font-size: 13px;
  border: 1px dashed currentColor;
}
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 200px; margin: 0 16px; }
.gallery .photo-ph:first-child { grid-row: 1 / 3; }
.gallery.g1 { grid-template-columns: 1fr; }
.gallery.g2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.gallery.g2 .photo-ph:first-child { grid-row: auto; }

.kv { display: grid; grid-template-columns: 76px 1fr; gap: 8px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* stamp card — the signature element */
.stampcard { background: var(--accent-pale); color: var(--accent-ink); border-radius: var(--radius-card); padding: 16px; }
.stampcard .head { display: flex; justify-content: space-between; align-items: baseline; }
.stampcard .head .t { font-weight: 600; font-size: 17px; }
.stampcard .count { font-size: 28px; font-weight: 600; }
.stampcard .count small { font-size: 16px; font-weight: 500; opacity: .8; }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 10px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(122,42,4,.35); display: grid; place-items: center; text-align: center; font-size: 12px; line-height: 1.25; position: relative; }
.stamp.got { border: 0; background: var(--accent); color: #fff; transform: rotate(-8deg); }
.stamp.got .z { font-size: 26px; font-weight: 600; line-height: 1; }
.stamp.new { animation: stampIn .5s cubic-bezier(.2,.9,.3,1.3); }
@keyframes stampIn { from { transform: scale(1.8) rotate(-20deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }
.stampcard .rule { font-size: 13px; }

/* coupon */
.coupon { border-radius: var(--radius-card); border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.coupon + .coupon { margin-top: 12px; }
.coupon .top { padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.coupon .top .main { flex: 1; min-width: 0; }
.coupon .top .title { font-weight: 600; font-size: 16px; }
.coupon .bot { border-top: 1px dashed var(--control); padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.coupon.used { background: var(--raised); }
.coupon.used .title { color: var(--muted); }
.coupon.locked .title { color: var(--muted); }
.coupon-btn { width: 100%; border: 0; background: none; padding: 0; text-align: left; display: block; }

.gift-ph { width: 56px; height: 56px; flex: none; border-radius: var(--radius-inner); background: var(--c-shop-bg); color: var(--c-shop); display: grid; place-items: center; font-size: 11px; text-align: center; line-height: 1.2; }

.qr-box { background: var(--surface); border-radius: var(--radius-card); border: 1px solid var(--border); padding: 20px; text-align: center; }
.qr-box svg { width: 200px; height: 200px; display: block; margin: 0 auto 10px; }
.qr-box .code { font-size: 15px; letter-spacing: .04em; font-weight: 600; }
.qr-box.dim svg { opacity: .18; }
.used-stamp { display: inline-block; border: 2px solid var(--muted); color: var(--muted); font-weight: 600; padding: 2px 10px; border-radius: 6px; transform: rotate(-6deg); margin-bottom: 8px; }

/* scanner */
.scanner { background: #121212; color: #fff; margin: 0 -16px; padding: 24px 16px 20px; text-align: center; }
.viewfinder { width: 220px; height: 220px; margin: 0 auto 12px; position: relative; }
.viewfinder i { position: absolute; width: 36px; height: 36px; border: 3px solid #fff; }
.viewfinder i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.viewfinder i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.viewfinder i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.viewfinder i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.viewfinder .line { position: absolute; left: 16px; right: 16px; height: 2px; background: var(--accent-data); top: 50%; animation: sweep 2.2s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: translateY(-80px); } to { transform: translateY(80px); } }
.scanner .meta { color: #c9c9c9; }
.sim-list .row-btn { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.sim-list .row-btn:first-child { border-top: 0; }

/* result */
.result { text-align: center; padding: 24px 8px 8px; }
.result .badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.result .badge svg { width: 36px; height: 36px; stroke-width: 2.2; }
.result.ok .badge { background: var(--pill-positive-bg); color: var(--positive); }
.result.bad .badge { background: var(--pill-negative-bg); color: var(--negative); }
.result.warn .badge { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
.result.neu .badge { background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.result h2 { font-size: 22px; margin: 0 0 4px; }

/* board mock */
.board { background: #24302c; color: #fff; border-radius: 16px; padding: 18px; }
.board .bt { font-size: 22px; font-weight: 600; line-height: 1.25; }
.board .qrw { background: #fff; border-radius: 12px; padding: 10px; width: 150px; margin: 14px 0; }
.board .qrw svg { width: 130px; height: 130px; display: block; }
.board-grid { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; }
.board dl { margin: 0; font-size: 13px; }
.board dt { opacity: .75; }
.board dd { margin: 0 0 8px; }
.post { width: 18px; height: 36px; background: #6b5a4a; margin: 0 auto; }

/* map */
.mapwrap { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); }
.mapwrap svg { display: block; width: 100%; height: auto; }
.map-zone { cursor: pointer; }


/* member */
.member-card { background: var(--text); color: #fff; border-radius: var(--radius-card); padding: 18px; display: flex; gap: 16px; align-items: center; }
.member-card .qrmini { background: #fff; border-radius: 10px; padding: 6px; width: 86px; height: 86px; flex: none; border: 0; }
.member-card .qrmini svg { width: 74px; height: 74px; display: block; }
.member-card .name { font-size: 18px; font-weight: 600; }
.member-card .meta { color: #cfcfcf; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--raised); border-radius: var(--radius-card); margin-top: 12px; }
.stat3 button { border: 0; background: none; padding: 14px 8px; text-align: left; border-left: 1px solid var(--border); border-radius: 0; }
.stat3 button:first-child { border-left: 0; }
.stat3 .v { font-size: 22px; font-weight: 600; }
.stat3 .l { font-size: 13px; color: var(--muted); }


/* sheet + toast */
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; z-index: 10; }
.sheet { background: var(--surface); width: 100%; border-radius: 24px 24px 0 0; padding: 20px 16px 28px; box-shadow: 0 -8px 24px rgba(0,0,0,.12); animation: up .2s ease-out; }
.sheet h2 { margin: 0 0 6px; font-size: 18px; }
.sheet .url { background: var(--raised); border-radius: var(--radius-inner); padding: 10px 12px; font-size: 14px; margin: 12px 0 16px; word-break: break-all; }
.sheet .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { position: absolute; left: 16px; right: 16px; bottom: 96px; background: var(--text); color: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14px; z-index: 11; box-shadow: 0 8px 24px rgba(0,0,0,.18); animation: up .2s ease-out; }

/* staff mode */
.staff-band { background: #1f2a26; color: #fff; padding: 8px 16px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; flex: none; }
.staff-band button { border: 0; background: none; color: #fff; text-decoration: underline; font-size: 13px; padding: 4px 0; }

/* ───────── Dashboard (desktop) ───────── */
.dash { width: 100%; max-width: 1240px; background: var(--surface); border-radius: 20px; border: 1px solid var(--border); overflow: hidden; }
.dash-top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.dash-top .brand { margin: 0; }
.dash-top nav { display: flex; gap: 4px; margin-left: 24px; flex: 1; flex-wrap: wrap; }
.dash-top nav button { border: 0; background: none; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.dash-top nav button.on { background: var(--active); color: var(--text); font-weight: 600; }
.dash-body { padding: 24px; }
.dash-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-title h1 { font-size: 26px; font-weight: 600; margin: 0; }
.finding { margin: 6px 0 0; font-size: 15px; max-width: 70ch; }
.finding b { font-weight: 600; }
.grid6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: start; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span4 { grid-column: span 4; } .span6 { grid-column: span 6; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.panel-head h2 { font-size: 17px; font-weight: 600; margin: 0; }
.goal { font-size: 13px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.kpis > div { padding: 0 16px; border-left: 1px solid var(--border); }
.kpis > div:first-child { padding-left: 0; border-left: 0; }
.kpis .l { font-size: 13px; color: var(--muted); }
.kpis .v { font-size: var(--fs-kpi); font-weight: 600; line-height: 1.25; }
.kpis .s { font-size: 13px; color: var(--muted); }
.kpis.two { grid-template-columns: repeat(2, 1fr); }
.barlist { display: grid; gap: 10px; }
.barlist .bl-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 14px; }
.barlist .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.barlist .fill { height: 100%; background: var(--accent-data); border-radius: 4px; }
.barlist .fill.mute { background: #b9b9b5; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: "Manrope", sans-serif; font-size: 11px; fill: var(--muted); }
.funnel { display: grid; gap: 12px; }
.funnel .f-row .lab { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.funnel .bar { height: 26px; border-radius: 6px; background: var(--accent-data); }
.funnel .bar.b2 { background: #f0a06a; }
.funnel .bar.b3 { background: #f7cba8; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
.tbl td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tr:last-child td { border-bottom: 0; }
.fb { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; }
.fb li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ───────── Narrow screens: the phone is the screen ───────── */
.menu-fab { display: none; }
@media (max-width: 1100px) {
  .stage-note { display: none; }
  .grid6 { grid-template-columns: 1fr 1fr; }
  .span2, .span3, .span4 { grid-column: span 1; } .span6 { grid-column: 1 / -1; }
  .span4.wide { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .presenter { display: none; position: fixed; inset: 0; z-index: 50; height: auto; }
  .presenter.open { display: block; }
  .menu-fab {
    display: flex; align-items: center; gap: 6px; position: fixed; right: 12px; bottom: 92px; z-index: 40;
    border: 0; background: var(--text); color: #fff; border-radius: 999px; padding: 10px 14px; font-size: 13px;
  }
  .stage { padding: 0; display: block; }
  .phone { max-width: 100%; }
  .phone { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .dash { border-radius: 0; border: 0; }
  .dash-body { padding: 16px; }
  .dash-top { flex-wrap: wrap; padding: 12px 16px; }
  .dash-top nav { margin-left: 0; order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .dash-top nav button { white-space: nowrap; }
  .grid6 { grid-template-columns: 1fr; }
  .span2, .span3, .span4, .span4.wide, .span6 { grid-column: 1 / -1; }
  .kpis { grid-template-columns: 1fr; }
  .kpis > div { padding: 8px 0; border-left: 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .kpis > div:first-child { border-top: 0; }
  .kpis .s { display: none; }
  .kpis .v { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .tbl .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── Fit, swipe, autoplay ───────── */
:root { --s: 1; }
.shell.phone-mode { height: 100vh; overflow: hidden; }
.shell.phone-mode .stage { height: 100vh; align-items: flex-start; }
.phone-wrap { width: calc(390px * var(--s)); height: calc(820px * var(--s)); flex: none; }
.phone-wrap .phone { transform: scale(var(--s)); transform-origin: top left; }
/* every cursor inside the phone is a touch point; it shrinks and warms while pressed */
.phone, .phone * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='rgba(0,0,0,0.2)' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 16 16, pointer !important; user-select: none; -webkit-user-select: none; }
.phone :active, .phone .dragging, .phone .dragging * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='10' fill='rgba(194,71,10,0.45)' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 16 16, pointer !important; }
.phone .content, .phone .chip-row, .phone .utabs { scrollbar-width: none; overscroll-behavior: contain; }
.phone .content::-webkit-scrollbar, .phone .chip-row::-webkit-scrollbar, .phone .utabs::-webkit-scrollbar { display: none; }

#finger {
  position: fixed; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; z-index: 100; pointer-events: none;
  background: rgba(21,21,21,.28); border: 2px solid #fff; opacity: 0;
  transition-property: transform, opacity; transition-timing-function: cubic-bezier(.3,.7,.3,1);
}
#finger.on { opacity: 1; }
#finger::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
#finger.press { background: rgba(194,71,10,.45); }
#finger.press::after { animation: ripple .45s ease-out; }
@keyframes ripple { from { transform: scale(.8); opacity: .9; } to { transform: scale(2); opacity: 0; } }

#player {
  position: fixed; right: 24px; bottom: 24px; width: 320px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
#player[hidden] { display: none; }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; }
.pl-title { font-weight: 600; }
.pl-say { font-size: 16px; margin: 6px 0 10px; min-height: 48px; }
.pl-track { height: 4px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.pl-track i { display: block; height: 100%; background: var(--accent-data); transition: width .3s; }
.pl-btns { display: flex; gap: 8px; margin-top: 12px; }
.pl-btns button { flex: 1; min-height: 36px; border: 1px solid var(--control); background: var(--surface); border-radius: 999px; font-size: 14px; }
.pl-btns button:hover { background: var(--raised); }
.pl-btns button:first-child { background: var(--text); border-color: var(--text); color: #fff; }

/* what the camera sees */
.viewfinder i, .viewfinder .line { z-index: 2; }
.vf-obj { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.vf-qr { background: #fff; border-radius: 6px; padding: 4px; }
.vf-qr svg { display: block; width: 100%; height: auto; }
.vf-t { font-size: 11px; line-height: 1.3; font-weight: 600; margin-bottom: 6px; }
.vf-code { font-size: 11px; margin-top: 4px; opacity: .85; }
.vf-board { width: 150px; background: #24302c; color: #fff; border-radius: 10px; padding: 10px; transform: rotate(-4deg) perspective(400px) rotateY(8deg); text-align: left; }
.vf-board .vf-qr { width: 104px; }
.vf-ad { width: 130px; background: #f2e14c; color: #1a1a1a; border-radius: 8px; padding: 10px; transform: rotate(5deg); }
.vf-ad .vf-qr { width: 96px; }
.vf-phone { width: 108px; background: #0d0d0d; border: 2px solid #4a4a4a; border-radius: 22px; padding: 7px; transform: rotate(5deg); }
.vf-screen { background: #fff; color: var(--text); border-radius: 15px; padding: 10px 8px 8px; text-align: center; }
.vf-screen .vf-qr { width: 78px; margin: 0 auto; padding: 0; }

@media (max-width: 860px) {
  .phone-wrap { width: 100%; height: 100dvh; }
  .phone-wrap .phone { transform: none; }
  #player { left: 12px; right: 12px; width: auto; bottom: 96px; padding: 12px; }
  .pl-say { min-height: 0; }
}

/* ───────── Motion: transform and opacity only ───────── */
.phone input { user-select: text; -webkit-user-select: text; }
@keyframes inPush { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inBack { from { transform: translateX(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inTab { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.appbar.enter-push h1 { animation: inPush .32s cubic-bezier(.2,.8,.2,1); }
.appbar.enter-back h1 { animation: inBack .32s cubic-bezier(.2,.8,.2,1); }
.content.enter-push { animation: inPush .34s cubic-bezier(.2,.8,.2,1); }
.content.enter-back { animation: inBack .34s cubic-bezier(.2,.8,.2,1); }
.content.enter-tab { animation: inTab .28s ease-out; }
/* the blocks of a new page arrive one after another */
.content[class*="enter-"] > * { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
.content[class*="enter-"] > *:nth-child(2) { animation-delay: .06s; }
.content[class*="enter-"] > *:nth-child(3) { animation-delay: .12s; }
.content[class*="enter-"] > *:nth-child(4) { animation-delay: .18s; }
.content[class*="enter-"] > *:nth-child(5) { animation-delay: .24s; }
.content[class*="enter-"] > *:nth-child(6) { animation-delay: .30s; }
.content[class*="enter-"] > *:nth-child(n+7) { animation-delay: .34s; }

/* feedback on every control */
.sc, .cat, .shop-card, .coupon-btn, .row-btn, .chip, .tab, .stat3 button, .qrmini, .icon-btn, .seg button, .map-zone { transition: transform .12s ease, background-color .15s; }
.sc:active, .cat:active, .shop-card:active, .coupon-btn:active, .row-btn:active, .chip:active, .stat3 button:active, .qrmini:active { transform: scale(.96); }
.tab:active { transform: scale(.9); }

.sc .ico { transition: transform .15s ease; }
.tab.on svg { animation: bump .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 0% { transform: scale(.8); } 100% { transform: scale(1); } }
.tab.scan .scan-dot { transition: transform .15s; }


/* results land with a small overshoot, the tick draws itself */
.result .badge { animation: pop .5s cubic-bezier(.3,1.5,.5,1) both; }
.result h2 { animation: rise .4s .12s cubic-bezier(.2,.8,.2,1) both; }
.result .lead { animation: rise .4s .18s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result.ok .badge path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .4s .25s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.coupon:not(.used) .pill.pos { animation: pop .45s .2s cubic-bezier(.3,1.5,.5,1) both; }
.qr-box:not(.dim) svg { animation: pop .5s cubic-bezier(.3,1.3,.5,1) both; }
.used-stamp { animation: stampDown .45s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes stampDown { from { transform: scale(2) rotate(-14deg); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
.stampcard .count { display: inline-block; }
.stamp:not(.got) { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.96); } }

/* the hero: lanterns sway, the picture drifts */
.lan { animation: sway 3s ease-in-out infinite alternate; transform-box: view-box; }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }
.hero img { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translateX(-1.5%); } to { transform: scale(1.12) translateX(1.5%); } }

/* camera: the code in view breathes like a handheld shot */
.vf-board, .vf-phone, .vf-ad { animation: handheld 3.2s ease-in-out infinite alternate; }
@keyframes handheld { from { translate: -3px 2px; } to { translate: 3px -2px; } }

/* sheets and the presenter */
.scrim { animation: fadeIn .2s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
.toast { animation: up .25s cubic-bezier(.2,.8,.2,1); }
.flow-step, .screen-link, .role-btn, .flow-run { transition: background-color .15s, color .15s, transform .1s; }
.flow-step:active, .screen-link:active, .role-btn:active { transform: scale(.97); }
#player { animation: rise .3s cubic-bezier(.2,.8,.2,1); }

/* dashboard: charts grow in, panels rise */
.dash-body .panel { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.dash-body .panel:nth-child(2) { animation-delay: .06s; }
.dash-body .panel:nth-child(3) { animation-delay: .12s; }
.dash-body .panel:nth-child(4) { animation-delay: .18s; }
.dash-body .panel:nth-child(5) { animation-delay: .24s; }
.dash-body .panel:nth-child(6) { animation-delay: .30s; }
.chart rect { transform-box: fill-box; transform-origin: bottom; animation: growY .7s cubic-bezier(.2,.8,.2,1) both; }
.chart rect:nth-of-type(2n) { animation-delay: .04s; }
.chart rect:nth-of-type(3n) { animation-delay: .08s; }
@keyframes growY { from { transform: scaleY(0); } }
.barlist .fill, .funnel .bar { transform-origin: left; animation: growX .8s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes growX { from { transform: scaleX(0); } }
.panel { transition: transform .15s; }

/* ───────── Real photographs ───────── */
.hero.photo { height: 220px; background: #1b2422; }
.hero.tall.photo { height: 380px; }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; animation: slide 16s linear infinite; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; animation: drift 16s ease-in-out infinite; }
.slide figcaption { position: absolute; left: 16px; bottom: 12px; font-size: 12px; color: #fff; background: rgba(0,0,0,.42); padding: 2px 8px; border-radius: 999px; }
@keyframes slide { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; } }
@keyframes drift { 0% { transform: scale(1.02); } 30% { transform: scale(1.1) translateX(-1.5%); } 100% { transform: scale(1.1) translateX(-1.5%); } }
/* a neutral scrim under the title, the one allowed exception */
.hero.photo::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none; } /* taste-skill-ignore: neutral scrim over a photo */
.hero.photo .cap { z-index: 2; }
.hero.photo .tag { z-index: 2; bottom: 12px; }
.hero .cap .t { text-shadow: none; }
.zthumb { position: relative; overflow: hidden; padding: 0; }
.zthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zthumb b { position: relative; color: #fff; font-size: 18px; background: rgba(0,0,0,.4); border-radius: 6px; padding: 0 6px; }
.zcard { padding: 0; overflow: hidden; }
.zcard .zphoto { height: 120px; overflow: hidden; }
.zcard .zphoto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }

.zcard > :not(.zphoto) { margin-left: 16px; margin-right: 16px; }
.zcard > :last-child { margin-bottom: 16px; }
.zcard > div:nth-child(2) { margin-top: 12px; }
.zhero { position: relative; height: 190px; border-radius: var(--radius-card); overflow: hidden; margin-bottom: 14px; }
.zhero img { width: 100%; height: 100%; object-fit: cover; display: block; animation: drift 16s ease-in-out infinite alternate; }
.zhero .tag { position: absolute; right: 10px; bottom: 10px; font-size: 11px; background: rgba(0,0,0,.45); color: #fff; padding: 2px 8px; border-radius: 999px; }
.credits { font-size: 12px; color: var(--muted); margin: 24px 0 8px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .slide:first-child { opacity: 1; } }

/* ───────── Shop and gift photographs ───────── */
.thumb.pic { position: relative; overflow: hidden; padding: 0; background: var(--raised); }
.thumb.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb.pic .cat-tag { position: absolute; left: 4px; top: 4px; font-size: 11px; font-weight: 600; line-height: 1; padding: 3px 5px; border-radius: 5px; }
.gallery { position: relative; }
.gallery .pic { margin: 0; overflow: hidden; border-radius: var(--radius-inner); background: var(--raised); }
.gallery .pic:first-child { grid-row: 1 / 3; }
.gallery.g2 .pic:first-child, .gallery.g1 .pic:first-child { grid-row: auto; }
.gallery .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }

.gal-tag { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; border-radius: 999px; }
.gift-ph { overflow: hidden; padding: 0; }
.gift-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.credit-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.credit-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.credit-list li:first-child { border-top: 0; }
.credit-list img { width: 48px; height: 36px; object-fit: cover; border-radius: 5px; flex: none; }
.credit-list b { color: var(--text); font-weight: 500; }

/* the map fills the rest of the screen in the map view */
.content.mapmode { display: flex; flex-direction: column; }
.content.mapmode > div:last-child { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mapwrap.full { flex: 1; min-height: 440px; position: relative; }
.mapwrap.full svg { width: 100%; height: 100%; }
.map-note { position: absolute; left: 10px; bottom: 10px; font-size: 11px; background: rgba(255,255,255,.9); color: var(--muted); padding: 3px 8px; border-radius: 999px; }

/* opened on a real phone: no fake clock or battery, the device shows its own */
@media (max-width: 860px) {
  .statusbar { display: none; }
  .appbar { padding-top: env(safe-area-inset-top); height: calc(52px + env(safe-area-inset-top)); }
  .tabbar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* ───────── Home entries: a bento of the festival's own pictures ───────── */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 96px; gap: 8px; margin-top: 14px; }
.bento .sc {
  position: relative; overflow: hidden; border: 0; border-radius: 16px; padding: 10px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0; text-align: left;
  transition: transform .14s ease;
}
.bento .sc:active { transform: scale(.96); }
.bento .b-wide { grid-column: span 2; }
.bento .b-txt { position: relative; z-index: 1; display: flex; flex-direction: column; line-height: 1.25; }
.bento .b-txt b { font-size: 16px; font-weight: 600; }
.bento .b-txt small { font-size: 12px; opacity: .92; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bento .b-photo { color: #fff; background: #2a2a2a; }
.bento .b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }

/* a neutral scrim keeps the label readable on any photo */
.bento .b-photo::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.34); }
.bento .b-stamp { background: var(--accent); color: #fff; justify-content: space-between; }
.bento .b-stamp .b-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; animation: pulse 2.4s ease-in-out infinite; }
.bento .b-stamp .b-txt small { font-size: 14px; font-weight: 600; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.bento .b-plain { background: var(--accent-pale); color: var(--accent-ink); justify-content: space-between; }
.bento .b-plain .b-ico { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.bento .sc .ico { display: none; }

/* ───────── Home entries: six photo circles in two rows ───────── */
.circles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; margin-top: 16px; }
.circles .sc { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 0; border-radius: 16px; transition: transform .14s ease; }
.circles .sc:active { transform: scale(.94); }
.circles .ring { position: relative; width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: var(--accent-pale); margin-bottom: 6px; }
.circles .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; transition: transform .5s ease; }

.circles .sc b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.circles .sc small { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* stamps: the ring is the progress, the one entry in the brand colour */
.circles .ring.stamp { background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--accent-pale) 0); } /* taste-skill-ignore: progress ring, not decoration */
.circles .ring-in { width: 100%; height: 100%; border-radius: 50%; background: var(--accent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid #fff; }
.circles .ring-in i { font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.1; }
.circles .badge-n { position: absolute; right: -2px; top: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--negative); color: #fff; font-size: 12px; font-style: normal; font-weight: 600; display: grid; place-items: center; border: 2px solid #fff; animation: pop .45s cubic-bezier(.3,1.5,.5,1); }
.stamp.got .z { font-size: 17px; }

/* main lantern card: the goat, and a reserved slot for licensed Disney artwork */
.mainlantern { margin-top: 14px; }
.ml-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ml-grid figure { margin: 0; }
.ml-grid img { width: 100%; height: 150px; object-fit: cover; object-position: center 30%; border-radius: var(--radius-inner); display: block; }
.ml-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ml-slot { height: 150px; border: 2px dashed var(--control); border-radius: var(--radius-inner); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 8px; background: var(--raised); }
.ml-slot b { font-size: 15px; }
.ml-slot span { font-size: 12px; color: var(--muted); }
.hero .slide img { object-position: center 35%; }

/* transport */
.tlist { margin: 10px 0; }
.trow { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.tlist .trow:first-child { border-top: 0; }
.tmain { flex: 1; min-width: 0; }
.tmain .title { font-weight: 500; }
.tico { width: 40px; height: 40px; border-radius: 50%; background: var(--c-move-bg); color: var(--c-move); display: grid; place-items: center; flex: none; }
.tcap { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.cap-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.cap-bar i { display: block; height: 100%; background: var(--c-move); border-radius: 3px; transform-origin: left; animation: growX .8s cubic-bezier(.2,.8,.2,1) both; }
.cap-bar i.low { background: var(--pill-warning-ink); }
.cap-bar i.full { background: var(--negative); }

/* ───────── Home entries: filled two-tone icons, each on a pale tint of its own hue ───────── */
.circles .ring { display: grid; place-items: center; padding: 0; }
.circles .big-ic { width: 40px; height: 40px; transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.circles .c-lantern { background: #ffe5d6; }
.circles .c-map { background: #d8f3ec; }
.circles .c-gift { background: #fde3ee; }
.circles .c-bus { background: #dcebff; }
.circles .c-survey { background: #fff1c2; }
.circles .ring-in .big-ic { width: 30px; height: 30px; margin-bottom: -2px; }

.circles .sc:active .big-ic { transform: scale(.92); }
.circles .c-lantern .big-ic { transform-origin: 50% 0; animation: sway 3s ease-in-out infinite alternate; }

.tcount { text-align: right; flex: none; line-height: 1.2; }
.tcount b { display: block; font-size: 20px; font-weight: 600; }
.tcount span { font-size: 12px; color: var(--muted); }

/* the tab bar sits above the scrolling content, so the raised scan button is never covered */
.tabbar { position: relative; z-index: 5; }
.footer-bar { position: relative; z-index: 5; }

/* prototype version stamp */
.ver { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ver.center { text-align: center; margin: 20px 0 4px; }

/* ───────── Stamp card: each zone has its own seal ───────── */
.stamp { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1.2; }
.stamp .stamp-ic { width: 34%; height: auto; color: var(--accent-ink); opacity: .32; margin-bottom: 3px; }
.stamp .sn { font-size: 12px; font-weight: 600; }
.stamp .ss { font-size: 11px; opacity: .8; }
.stamp.got { box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px rgba(255,255,255,.55); }
.stamp.got .stamp-ic { color: #fff; opacity: 1; width: 40%; }
.stamp.got .sn { font-size: 13px; }
.stamp.got .blades { transform-origin: 16px 13px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
