/* 2026 人氣金U獎 消費者票選 — 前台樣式
   v2.1：黑底，hero 上半部全寬綠色光暈（Uber Eats 綠 #06C167），強調金 #F5C518；以手機版面為主設計 */

:root {
  --black: #000000;        /* 頁面底色維持黑；綠色只留在 hero 上半部的光暈 */
  --bg-deep: #0a0d0b;
  --surface: #0c0f0d;
  --surface-2: #14181a;
  --line: #24292b;
  --green: #06c167;
  --green-dim: #05a558;
  --green-glow: rgba(6, 193, 103, 0.22);
  --gold: #f5c518;
  --gold-dim: rgba(245, 197, 24, 0.14);
  --text: #ffffff;
  --muted: #9aa3a8;
  --muted-2: #6e777c;
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: 'UberMoveText', 'UberMove', 'Uber Move Text', 'Uber Move', 'Noto Sans TC', system-ui, -apple-system,
    'Segoe UI', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--green); text-decoration: none; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 前台公告（後台「活動設定 → 前台公告」填了才出現）───────── */
.site-notice {
  background: var(--gold); color: #1a1400;
  font-size: 13px; font-weight: 700; line-height: 1.5;
}
.site-notice .wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; min-height: 40px;
}
.site-notice span { flex: 1; }
.site-notice button {
  background: none; border: none; color: inherit; opacity: 0.6;
  font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 6px;
}
.site-notice button:hover { opacity: 1; background: rgba(0, 0, 0, 0.1); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.brand-logo { height: 22px; width: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 22px; font-weight: 700; font-size: 14px;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), opacity 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.btn-primary { background: var(--green); color: #00230e; }
.btn-primary:hover:not(:disabled) { background: #08d673; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: #1c2124; }
.btn-gold { background: var(--gold); color: #2a2000; }
.btn-gold:hover { background: #ffd43a; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; padding: 52px 0 68px; text-align: center; overflow: hidden; }
/* 綠色光暈：100% 寬，從 hero 頂端往下淡出，到 hero 一半就消失 */
.hero { background: linear-gradient(180deg, rgba(6, 193, 103, 0.42) 0%, rgba(6, 193, 103, 0) 50%); }
.hero > .wrap { position: relative; z-index: 1; }


.hero-title {
  margin: 26px 0 0; font-weight: 900; line-height: 1.02; letter-spacing: -0.02em;
  font-size: clamp(38px, 5.4vw, 76px);
}
.hero-title .gold { color: var(--gold); }
.hero-title .green { color: var(--gold); display: block; }
/* 官方 logo（白色 SVG）：標題改用 logo，活動名稱以副標呈現 */
.hero-logo { width: min(70%, 360px); height: auto; margin: 0 auto; }
.hero-title:has(.hero-logo) .green { margin-top: 18px; font-size: clamp(18px, 2.6vw, 28px); letter-spacing: 0; }

.hero-lede { margin: 20px auto 0; max-width: 46ch; color: #e6f7ee; font-size: 15px; }
.hero-lede strong { color: var(--text); }
.hero-lede .accent { color: var(--gold); }

.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 倒數 */
.countdown { margin-top: 42px; display: flex; gap: 10px; justify-content: center; align-items: center; }
.cd-unit {
  min-width: 78px; padding: 12px 6px 9px;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius);
}
.cd-num { font-size: 27px; font-weight: 800; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-unit.gold .cd-num { color: var(--gold); }
.cd-label { font-size: 11px; color: var(--muted); }
.cd-sep { color: var(--muted-2); font-size: 20px; font-weight: 700; }
.countdown-caption { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 56px 0; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; }
.section h2 { margin: 8px 0 28px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.02em; }

.section-rules { padding: 40px 0 8px; }
.section-rules h2 { margin: 0 0 16px; font-size: clamp(20px, 3vw, 28px); }
/* 三步驟：純文字列表，不用卡片 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 640px; }
.steps li { display: flex; align-items: flex-start; gap: 10px; }
.step-icon { flex: none; font-size: 18px; line-height: 1.5; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.steps strong { color: var(--text); font-weight: 800; }
.link-btn {
  margin-top: 12px; background: none; border: none; padding: 4px 0;
  color: var(--gold); font-size: 13px; font-weight: 700;
}

/* ── Vote toolbar ─────────────────────────────────────────── */
/* 錨點捲動時要讓開 sticky header + toolbar，否則第一排卡片會被蓋住 */
#vote { scroll-margin-top: calc(var(--header-h) + 110px); }
#submitBar { scroll-margin-top: calc(var(--header-h) + 110px); }
#rules { scroll-margin-top: var(--header-h); }

.vote-toolbar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(0, 0, 0, 0.94); backdrop-filter: blur(12px);
  padding: 12px 0; border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.vote-toolbar.stuck { border-bottom-color: var(--line); }
.toolbar-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.award-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(245, 197, 24, 0.5); background: var(--gold-dim);
  color: var(--gold); border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 800;
}
.remain-label { color: var(--muted); font-size: 13px; }
.dots { display: inline-flex; gap: 6px; }
.dot {
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg-deep); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 10px; color: transparent;
  transition: all 0.2s var(--ease);
}
.dot.filled { background: var(--green); border-color: var(--green); color: #00230e; }
.remain-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 分區快捷鍵：手機可左右滑 */
.zone-nav {
  display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.zone-nav::-webkit-scrollbar { display: none; }
.zone-tab {
  flex: none; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}
.zone-tab.done { background: var(--green); border-color: var(--green); color: #00230e; }

/* ── Podium ───────────────────────────────────────────────── */
.podium-label {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  margin: 26px 0 12px;
}
.podium-label::before { content: ''; width: 18px; height: 1px; background: var(--muted-2); }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.podium-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px;
}
.podium-card.rank-1 { border-color: rgba(245, 197, 24, 0.55); box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.12), 0 8px 30px rgba(245, 197, 24, 0.07); }
.medal { font-size: 19px; }
.podium-thumb {
  width: 40px; height: 40px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-size: 20px; overflow: hidden;
}
.podium-thumb img { width: 100%; height: 100%; object-fit: cover; }
.podium-body { min-width: 0; flex: 1; }
.podium-cat { font-size: 10px; color: var(--muted-2); }
.podium-name { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-votes { font-size: 12px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.podium-card.rank-1 .podium-votes { color: var(--gold); }
.bar { height: 3px; background: rgba(0, 0, 0, 0.25); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--green); border-radius: 2px; transition: width 0.6s var(--ease); }
.podium-card.rank-1 .bar > i { background: var(--gold); }

/* ── Status banner ────────────────────────────────────────── */
.status-banner {
  margin: 22px 0 0; padding: 16px 22px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(6, 193, 103, 0.05), rgba(6, 193, 103, 0.16));
  border: 1px solid rgba(6, 193, 103, 0.3);
  text-align: right; font-size: 14px; font-weight: 700;
}
.status-banner.warn { background: rgba(245, 197, 24, 0.08); border-color: rgba(245, 197, 24, 0.3); color: var(--gold); }

/* ── Candidate grid ───────────────────────────────────────── */
.cand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* 分區區塊：4 / 8 / 8 / 12 家，四欄剛好整排排滿 */
#zoneList { margin-top: 24px; }
.zone { margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 110px); }
.zone-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.zone-emoji {
  width: 46px; height: 46px; border-radius: 13px; flex: none; font-size: 24px;
  display: grid; place-items: center; background: var(--gold-dim); border: 1px solid rgba(245, 197, 24, 0.35);
}
.zone-title { min-width: 0; flex: 1; }
.zone-label { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
.zone-title h3 { margin: 0; font-size: clamp(18px, 2.4vw, 23px); font-weight: 900; letter-spacing: -0.01em; }
.zone-pick { color: var(--muted-2); font-size: 12px; font-weight: 700; text-align: right; max-width: 40%; }
.zone-pick.has { color: var(--gold); }
.cand-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cand-card:hover { border-color: #3a4144; transform: translateY(-2px); }
.cand-card.picked { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.45); }

.cand-media {
  position: relative; aspect-ratio: 16 / 9;
  display: grid; place-items: center; font-size: 52px;
  background: #1a1a1a;
}
/* 桌機：有 16:9 主視覺就鋪滿、logo 疊在左下；沒有主視覺就把 logo 置中 */
.cand-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cand-logo { display: grid; place-items: center; }
.cand-logo img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }
.has-cover .cand-logo {
  position: absolute; left: 10px; bottom: 10px; width: 52px; height: 52px; font-size: 28px;
  border-radius: 12px; overflow: hidden; background: #141414; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.has-cover .cand-logo img { width: 100%; height: 100%; border-radius: 0; }
.cand-cat {
  position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 700; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(4px); color: #e6f7ee;
}

.cand-body { padding: 16px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cand-name { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.cand-desc { color: var(--muted); font-size: 12px; margin-bottom: 12px; min-height: 2.6em; }
.cand-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cand-votes { color: var(--gold); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cand-rank {
  display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 5px;
  background: var(--surface-2); color: var(--text); font-size: 11px; font-weight: 700; vertical-align: 1px;
}
.cand-share { color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.cand-gap { color: #ffcf8a; font-size: 11px; margin-top: 7px; }
.cand-action { padding: 0 16px 16px; }
.cand-check, .m-only { display: none; } /* 手機版才出現 */

.vote-btn {
  width: 100%; border-radius: 10px; padding: 11px; font-weight: 700; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  transition: all 0.15s var(--ease);
}
.vote-btn:hover:not(:disabled) { background: #1d2326; border-color: var(--green); color: var(--green); }
.vote-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.vote-btn.chosen { background: var(--green); border-color: var(--green); color: #00230e; opacity: 1; }
.vote-btn.chosen:disabled { cursor: default; }

/* 頁點只在手機的左右滑版面出現 */
.swipe-dots { display: none; }

/* ── Submit bar ───────────────────────────────────────────── */
.submit-bar {
  padding: 26px 30px; border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.submit-bar h3 { margin: 0 0 4px; font-size: 21px; font-weight: 900; }
.submit-bar p { margin: 0; color: var(--muted); font-size: 13px; }
#submitBtn { box-shadow: 0 8px 28px rgba(6, 193, 103, 0.28); }
.submit-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.turnstile-slot { min-height: 65px; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  margin-top: 72px; padding: 38px 0 44px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-deep);
  text-align: center; font-size: 12px; color: var(--muted-2); line-height: 2;
}
.site-footer strong { color: #fff; font-size: 13px; }
.site-footer a { color: var(--gold); }
.footer-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(3px); padding: 20px;
  animation: fade 0.18s var(--ease);
}
.modal {
  width: min(100%, 420px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 30px; text-align: center;
  animation: pop 0.22s var(--ease);
}
.modal-emoji { font-size: 44px; line-height: 1; }
.modal h3 { margin: 16px 0 10px; font-size: 22px; font-weight: 900; }
.modal p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.modal .btn { width: 100%; margin-top: 22px; }
.modal .btn-ghost { margin-top: 10px; }
.modal a.btn { display: block; text-decoration: none; text-align: center; }
.modal-close { margin-top: 14px; background: none; border: none; color: var(--muted-2); font-size: 12px; padding: 6px 12px; }
.modal-close:hover { color: var(--text); }
.modal-rules { text-align: left; }
.modal-rules ol { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.9; }

/* 送出後的感謝頁：綠底；原本綠色的主按鈕改黑底，避免和底色融在一起 */
.modal.modal-thanks { background: var(--green); border-color: var(--green); color: #000; }
.modal.modal-thanks h3 { color: #000; }
.modal.modal-thanks p { color: #000; font-size: 14px; font-weight: 500; }
.modal.modal-thanks .btn-primary { background: #000; color: var(--text); }
.modal.modal-thanks .btn-primary:hover:not(:disabled) { background: #14181a; }
.modal.modal-thanks .btn-ghost { background: #fff; color: #000; border-color: #fff; }
.modal.modal-thanks .btn-ghost:hover { background: #eef2ef; }
.modal.modal-thanks .modal-close { color: #000; font-weight: 700; text-decoration: underline; }
.modal.modal-thanks .modal-close:hover { color: #000; }

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 95;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 22px; font-size: 13px; font-weight: 700;
  animation: fade 0.18s var(--ease);
}
.toast.err { border-color: rgba(255, 107, 107, 0.5); color: var(--danger); }

/* 活動未開始 / 已結束 覆蓋層 */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--black); padding: 24px; text-align: center; }
.gate h2 { font-size: clamp(28px, 5vw, 46px); font-weight: 900; margin: 18px 0 12px; }
.gate p { color: var(--muted); margin: 0 auto; max-width: 42ch; }
.gate .countdown { justify-content: center; }

/* ── 投票 dock：捲動時浮在畫面底部，捲到底停進送出卡 ───────────
   dock 和送出卡在同一個 .vote-flow 裡，position: sticky 讓它在列表間浮著，
   捲到送出卡時自然落回原位（轉場完全跟著手指走，不靠 JS 算位置）。
   .docked 由 app.js 在兩者貼合時加上，只負責外觀：去陰影、接成同一張卡。 */
#zoneList { margin-bottom: 52px; }
.vote-dock {
  position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70;
  padding: 12px 18px;
  background: rgba(16, 20, 18, 0.96); backdrop-filter: blur(12px);
  border: 1px solid var(--gold); border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    border-radius 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.vote-dock.docked {
  background: var(--surface); border-color: var(--line); border-bottom-color: transparent;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: none;
}
/* 停好之後下面就是送出按鈕，「前往送出」淡出但保留位置，高度不變才不會在落定瞬間跳一下 */
#dockGo { transition: opacity 0.2s var(--ease), visibility 0.2s; }
.vote-dock.docked #dockGo { opacity: 0; visibility: hidden; }
.dock-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dock-remain { display: flex; align-items: baseline; gap: 8px; }
.dock-remain strong { font-size: 26px; font-weight: 900; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.dock-remain span { font-size: 13px; font-weight: 700; color: var(--muted); }
.dock-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.dock-pick {
  display: flex; flex-direction: column; min-width: 0;
  padding: 5px 8px; border-radius: 9px; color: var(--muted-2);
  border: 1px dashed var(--line);
}
.dock-pick.has { border: 1px solid var(--green); background: rgba(6, 193, 103, 0.14); color: var(--text); }
.dock-zone { font-size: 10px; font-weight: 700; color: var(--gold); line-height: 1.4; }
.dock-name { font-size: 12px; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 有 dock 時，送出卡接在 dock 下面當下半部 */
.vote-dock:not([hidden]) + .submit-bar {
  border-top: 1px dashed var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── RWD：以手機為主（spec §2.1 三段）──────────────────────── */
@media (max-width: 900px) {
  .podium { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  :root { --header-h: 56px; }
  body { font-size: 14px; }
  .brand-logo { height: 18px; }
  .hero-logo { width: min(62%, 230px); }
  .hero { padding: 28px 0 32px; }
  .hero-title { margin-top: 8px; }
  .hero-lede { margin-top: 14px; font-size: 14px; }
  .hero-actions { margin-top: 20px; gap: 10px; flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1 1 0; padding: 13px 10px; font-size: 15px; }
  .countdown { margin-top: 22px; gap: 6px; }
  .cd-unit { min-width: 58px; padding: 8px 4px 6px; }
  .cd-num { font-size: 20px; }
  .cd-sep { font-size: 16px; }

  .section-rules { padding: 24px 0 4px; }
  .steps p { font-size: 14px; }

  .toolbar-row { gap: 8px; }
  .award-chip { padding: 5px 12px; font-size: 12px; }
  .remain-label { display: none; }

  /* 排行榜 TOP 3：三欄縮小版 */
  .podium-label { margin: 18px 0 10px; }
  .podium-card { flex-direction: column; align-items: center; text-align: center; padding: 10px 6px; gap: 6px; position: relative; }
  .medal { position: absolute; top: 4px; left: 6px; font-size: 15px; }
  .podium-body { width: 100%; }
  .podium-cat { display: none; }
  .podium-name { font-size: 12px; }

  /* 店家卡：手機改橫列，圖 | 名稱票數 | 投票鈕，一頁看得到 6～7 家 */
  .zone { margin-bottom: 28px; }
  .zone-head { margin-bottom: 10px; padding-bottom: 10px; gap: 10px; }
  .zone-emoji { width: 38px; height: 38px; font-size: 20px; border-radius: 11px; }
  .zone-pick { max-width: 36%; font-size: 11px; }
  /* 每區一次 2 家（上下兩張），左右滑看下一組；露出下一組邊緣提示可以滑 */
  .cand-grid {
    grid-template-columns: none; grid-template-rows: repeat(2, auto);
    grid-auto-flow: column; grid-auto-columns: 88%; gap: 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cand-grid::-webkit-scrollbar { display: none; }
  .cand-grid .cand-card { scroll-snap-align: start; }
  .swipe-dots { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
  .swipe-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: all 0.2s var(--ease); }
  .swipe-dots i.on { width: 18px; background: var(--gold); }
  .swipe-dots span { margin-left: auto; font-size: 11px; color: var(--muted-2); }
  /* 手機卡片：logo 左、店名＋投票鈕同列，票數與進度條在店名下，文案獨立一列用滿全寬、不截斷 */
  .cand-card {
    display: grid; grid-template-columns: 56px 1fr auto; column-gap: 12px; row-gap: 4px;
    grid-template-areas:
      "media name  action"
      "media stats stats"
      "media bar   bar"
      "desc  desc  desc";
    align-items: center; padding: 12px; border-radius: var(--radius);
  }
  .cand-body { display: contents; }
  .cand-media { grid-area: media; align-self: start; }
  .cand-name { grid-area: name; }
  .cand-stats { grid-area: stats; justify-content: flex-start; }
  .cand-card .bar { grid-area: bar; margin: 0; }
  .cand-desc { grid-area: desc; margin: 6px 0 0; }
  .cand-action { grid-area: action; align-self: start; }
  .cand-card:hover { transform: none; }
  .cand-media { aspect-ratio: 1; width: 56px; border-radius: 12px; font-size: 28px; overflow: hidden; }
  .cand-cat { display: none; }
  /* 手機只顯示 logo */
  .cand-cover { display: none; }
  .cand-logo, .has-cover .cand-logo { position: static; width: 100%; height: 100%; border-radius: 0; box-shadow: none; background: none; font-size: inherit; }
  .cand-logo img { width: 100%; height: 100%; border-radius: 0; }
  .cand-name { font-size: 15px; line-height: 1.3; }
  .cand-desc { min-height: 0; font-size: 12.5px; line-height: 1.55; }
  .cand-gap { display: none; } /* 左右滑的卡片較窄，這行會折成兩行把卡片撐高，手機上不顯示 */
  .cand-action { padding: 0; }
  .m-hide { display: none; }
  /* 手機不放投票按鈕：整張卡片可點，右上角空心圈表示可選、選了變綠色 ✓ */
  .m-only { display: inline; }
  .vote-btn { display: none; }
  .cand-action { justify-self: end; }
  .cand-check {
    display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
    border-radius: 50%; border: 2px solid #4a5357; background: transparent;
    color: #00230e; font-size: 14px; font-weight: 900; line-height: 1;
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
  }
  .cand-check.on { background: var(--green); border-color: var(--green); }
  .cand-card:not(.locked) { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .cand-card:not(.locked):active { transform: scale(0.98); background: var(--surface-2); transition-duration: 0.08s; }
  /* 從沒選過的人：第一區的空心圈輕輕亮起，提示可以點 */
  .hint-pick #zoneList .zone:first-of-type .cand-check:not(.on) { animation: check-hint 1.8s var(--ease) infinite; }

  #zoneList { margin-bottom: 32px; }
  .vote-dock { padding: 10px 12px; }
  .submit-bar { padding: 20px; flex-direction: column; align-items: stretch; text-align: center; }
  .submit-bar .btn { width: 100%; }
  .submit-actions { flex-direction: column; align-items: center; }
  .submit-actions > * { width: 100%; }
  .status-banner { text-align: center; }

}

@keyframes check-hint {
  0%, 100% { border-color: #4a5357; box-shadow: 0 0 0 0 rgba(6, 193, 103, 0); }
  50% { border-color: var(--green); box-shadow: 0 0 0 5px rgba(6, 193, 103, 0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .hint-pick #zoneList .zone .cand-check { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

.btn-promo { flex-direction: column; gap: 2px; padding-top: 12px; padding-bottom: 12px; text-align: center; }
.btn-promo .promo-main { display: block; font-size: 18px; font-weight: 900; line-height: 1.3; }
.btn-promo .promo-sub { display: block; font-size: 12px; font-weight: 600; line-height: 1.4; }
