/* 風格參考「超越圈圈循環群島」：薄荷綠的海、米白紙底、墨綠黑字、檸檬黃重點、膠囊按鈕、細框圓角卡片 */
:root {
  --paper: #f6f5ec;
  --card: #ffffff;
  --ink: #1e241e;
  --muted: #5d685a;
  --line: #d8dbcd;
  --yellow: #f2e636;
  --on-yellow: #1e241e;
  --sea: #bfe3d8;
  --sea-deep: #8fc9b9;
  --sand: #efe0ad;
  --grass: #a3cf7c;
  --tree: #5f9b55;
  --live: #d2432c;
  --ok: #2f7a45;
  --done: #7d8a78;
  --pending: #fff7a8;
  --f-display: "Huninn", "Noto Sans TC", system-ui, sans-serif;
  --f-body: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
button, select, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
mark.pending { background: var(--pending); color: #6b5d00; border-radius: 6px; padding: 0 4px; font-weight: 700; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- 品牌列 ---------- */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 18px; padding-bottom: 8px; }
.brand { font-family: var(--f-display); font-size: 24px; line-height: 1.2; }
.brand small { display: block; font-family: var(--f-body); font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.countdown { display: flex; gap: 8px; flex-wrap: wrap; }
.countdown .unit { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; min-width: 70px; text-align: center; }
.countdown b { display: block; font-family: var(--f-num); font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: var(--muted); }
.countdown .msg { font-weight: 700; }

/* ---------- 首頁 ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; padding-top: 12px; padding-bottom: 16px; }
.eyebrow, .org { margin: 0; font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.welcome { display: inline-block; margin: 8px 0 0; padding: 4px 14px; background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 700; font-size: 15px; }
.hero h1 { font-family: var(--f-display); font-weight: 400; margin: 6px 0 4px; font-size: clamp(30px, 5vw, 46px); line-height: 1.25; word-break: keep-all; }
.hero h1 span { white-space: nowrap; }
.note { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: var(--yellow); color: var(--on-yellow); padding: 14px 18px; border-radius: 18px; }
.banner strong { font-family: var(--f-display); font-weight: 400; font-size: 19px; }
.landed { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.landed:empty { display: none; }
.landed b { font-family: var(--f-num); color: var(--ink); }
.cta { border: 0; background: var(--on-yellow); color: var(--yellow); padding: 10px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* 首頁「美麗島」小動畫 */
.hero-island { justify-self: center; width: min(380px, 100%); text-align: center; }
.ih { width: 100%; height: auto; display: block; }
.ih-caption { margin: 4px 0 0; font-family: var(--f-display); font-size: 18px; }
.ih-caption small { display: block; font-family: var(--f-body); font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.ih-island { animation: ih-float 5s ease-in-out infinite; }
.ih-loop { transform-origin: 0 0; animation: ih-spin 30s linear infinite; }
.ih-sun { transform-origin: 128px -128px; animation: ih-spin 40s linear infinite; }
.ih-dot { fill: var(--live); stroke: #fff; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ih-pulse 2.4s ease-in-out infinite; }
.ih-boat { animation: ih-bob 3.2s ease-in-out infinite; }
.ih-boat2 { animation-duration: 4s; animation-delay: -1s; }
.ih-cloud { animation: ih-drift 14s ease-in-out infinite alternate; }
.ih-cloud2 { animation-duration: 18s; animation-delay: -6s; }
.ih-birds { animation: ih-fly 9s ease-in-out infinite alternate; }
.ih-waves { animation: ih-wave 4s ease-in-out infinite alternate; }
@keyframes ih-float { 0%, 100% { transform: translate(0, 4px); } 50% { transform: translate(0, -4px); } }
@keyframes ih-spin { to { transform: rotate(360deg); } }
@keyframes ih-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .55; } }
@keyframes ih-bob { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -5px; rotate: 3deg; } }
@keyframes ih-drift { to { translate: 34px 0; } }
@keyframes ih-fly { to { translate: 50px 14px; } }
@keyframes ih-wave { to { translate: 12px 0; } }
.pop-island { width: 170px; margin: 0 auto 8px; }

/* 登島證（用專屬連結登入時出現在首頁；passes.html 預覽全部） */
.pass-wrap { margin-top: 14px; }
.pass-wrap .pass { justify-self: start; }
.pass { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px #0000000f; max-width: 460px; width: 100%; justify-self: center; }
.pass-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; background: var(--sea); padding: 10px 16px; font-family: var(--f-display); font-size: 17px; }
.pass-head small { font-family: var(--f-num); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.pass-body { display: grid; grid-template-columns: 116px 1fr; gap: 14px; padding: 16px 16px 46px; align-items: start; }
.pass-photo { width: 116px; height: 140px; border-radius: 16px; overflow: hidden; background: var(--sea); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.pass-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.pass-photo b { font-family: var(--f-display); font-weight: 400; font-size: 34px; }
.pass-info h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pass-nick { font-family: var(--f-body); font-size: 13px; font-weight: 700; border-radius: 999px; padding: 1px 10px; background: var(--paper); border: 1px solid var(--line); }
.pass-nick.n-chief { background: var(--yellow); border-color: var(--yellow); }
.pass-nick.n-build { background: #dff0d2; border-color: #c2e0aa; color: #2f5d2a; }
.pass-nick.n-patrol { background: #d6ece6; border-color: var(--sea-deep); color: #245a4d; }
.pass-nick.n-guide { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pass-meta { margin: 4px 0 2px; font-size: 13px; color: var(--muted); }
.pass-org { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.pass-intro { margin: 0 0 8px; font-size: 15px; line-height: 1.6; }
.pass-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pass-tags span { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; background: var(--paper); }
.pass-stamp { position: absolute; right: 14px; bottom: 22px; width: 68px; height: 68px; border-radius: 50%; border: 3px solid var(--live); color: var(--live); display: grid; place-content: center; text-align: center; font-family: var(--f-display); font-size: 16px; line-height: 1.1; rotate: -14deg; opacity: .85; pointer-events: none; }
.pass-stamp small { display: block; font-family: var(--f-num); font-size: 9px; margin-top: 2px; }
.pass-foot { border-top: 1px dashed var(--line); padding: 6px 16px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.pass-link { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--ink); }
/* 彩虹登島證（member.theme: "rainbow"） */
.pass-rainbow { --rb: linear-gradient(90deg, #e8453c, #f39a2b, #f2e636, #4cb35e, #3b82d6, #8e5bb5); border: 0; padding: 4px; background: var(--rb); }
.pass-rainbow > * { background: var(--card); }
.pass-rainbow .pass-head { border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0; background: linear-gradient(90deg, #fbd9d6, #fde6c6, #fbf6c2, #d6efd9, #d3e4f7, #e6daf1); }
.pass-rainbow .pass-head span::after { content: " 🌈"; }
.pass-rainbow .pass-foot { border-radius: 0 0 calc(var(--radius) - 4px) calc(var(--radius) - 4px); }
.pass-rainbow .pass-photo { border: 0; padding: 4px; background: var(--rb); box-shadow: none; }
.pass-rainbow .pass-photo img { border-radius: 12px; }
.pass-rainbow .pass-tags span:nth-child(6n+1) { background: #fbd9d6; border-color: #e8453c; }
.pass-rainbow .pass-tags span:nth-child(6n+2) { background: #fde6c6; border-color: #f39a2b; }
.pass-rainbow .pass-tags span:nth-child(6n+3) { background: #fbf6c2; border-color: #d9c81e; }
.pass-rainbow .pass-tags span:nth-child(6n+4) { background: #d6efd9; border-color: #4cb35e; }
.pass-rainbow .pass-tags span:nth-child(6n+5) { background: #d3e4f7; border-color: #3b82d6; }
.pass-rainbow .pass-tags span:nth-child(6n+6) { background: #e6daf1; border-color: #8e5bb5; }
@media (max-width: 640px) { .pass-body { grid-template-columns: 92px 1fr; } .pass-photo { width: 92px; height: 112px; } .pass-info h3 { font-size: 22px; } }

/* ---------- 按鈕（膠囊形） ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.btn-sky { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-line { background: var(--card); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- 上島路線（四站） ---------- */
.climb { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.climb ol { list-style: none; margin: 0 auto; padding: 10px 16px; max-width: 1120px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.climb a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--muted); font-size: 14px; border: 1px solid var(--line); background: var(--card); padding: 4px 14px 4px 6px; border-radius: 999px; }
.climb .flag { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-family: var(--f-num); font-size: 13px; color: var(--muted); }
.climb li.done a { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.climb li.done .flag { background: var(--yellow); color: var(--on-yellow); }

/* ---------- 區塊卡片 ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 48px; display: grid; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; scroll-margin-top: 70px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.3; }
.camp-tag { font-size: 12px; letter-spacing: .12em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; background: var(--paper); }
.hint { color: var(--muted); margin: 0 0 14px; font-size: 15px; }

/* ---------- 報告播放器 ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.tab { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 14px; font-size: 14px; }
.tab.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; min-height: 460px; }

/* 巡迴台灣島地圖 */
.map { position: relative; height: 480px; border-radius: var(--radius); overflow: hidden; background: var(--sea); touch-action: none; }
.map canvas { display: block; cursor: grab; }
.map-fallback { display: none; }
.map.no-map { background: none; height: auto; touch-action: auto; }
.map.no-map .map-fallback { display: block; border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; max-height: 440px; margin: 0 auto; }
.map.no-map .map-legend, .map.no-map .map-hint { display: none; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 2px 12px 2px 8px; font-family: var(--f-display); font-size: 14px; white-space: nowrap; background: var(--paper); color: var(--ink); box-shadow: 0 2px 6px #0002; }
.map-pin i { width: 9px; height: 9px; border-radius: 50%; background: var(--done); flex: none; }
.map-pin.s-巡迴中 i { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 25%, transparent); }
.map-pin.s-即將到訪 i { background: #c9b800; }
.map-pin.is-focus { background: var(--ink); color: var(--paper); z-index: 2; }
.map-pin.is-focus i { box-shadow: 0 0 0 2px var(--paper); }
.map-me { position: absolute; left: 0; top: 0; background: var(--yellow); color: var(--on-yellow); font-family: var(--f-display); font-size: 14px; padding: 2px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px #0003; pointer-events: none; z-index: 3; }
.map-legend { position: absolute; left: 12px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.map-legend span { background: var(--paper); padding: 2px 10px; border-radius: 999px; }
.map-legend i, .chip i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
i.s-已完成 { background: var(--done); }
i.s-巡迴中 { background: var(--live); }
i.s-即將到訪 { background: #c9b800; }
.map-hint { position: absolute; right: 12px; top: 10px; margin: 0; background: var(--paper); color: var(--muted); border-radius: 999px; padding: 2px 10px; font-size: 12px; box-shadow: 0 1px 4px #0002; pointer-events: none; }
.county-pop { position: absolute; right: 10px; top: 40px; bottom: 44px; width: min(300px, calc(100% - 20px)); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; font-size: 15px; z-index: 3; }
.county-pop h4 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.county-pop ul { list-style: none; margin: 6px 0 0; padding: 0; }
.county-pop > ul > li { padding: 8px 0; border-top: 1px dashed var(--line); }
.county-pop > ul > li.is-on b { background: var(--pending); }
.county-pop ul ul li { margin-top: 4px; font-size: 14px; }
.county-pop small { color: var(--muted); }
.pop-sum { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.pop-x { position: absolute; right: 10px; top: 6px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); }
.chip { display: inline-block; font-size: 11px; border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; background: var(--card); }
.chip.s-已完成 { background: var(--paper); }
.chip.s-巡迴中 { background: var(--live); color: #fff; border-color: var(--live); }
.chip.s-即將到訪 { background: var(--yellow); border-color: var(--yellow); }

/* 導覽員說話 */
.chapter { margin: 0; font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.stage h3 { margin: 2px 0 10px; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.3; }
.bubble { background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; min-height: 92px; }
.bubble .face { float: left; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin: 2px 10px 2px 0; border: 2px solid var(--yellow); }
.playing .bubble .face { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.bubble p { margin: 0; font-size: 18px; }
.bubble .rest { color: transparent; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; animation: pop .4s ease both; }
.stat b { display: block; font-family: var(--f-num); font-size: 24px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.stat mark.pending { font-family: var(--f-body); font-size: 16px; }
.stat b { white-space: nowrap; }
.stat span { display: block; line-height: 1.4; }
/* 財務圖表 */
.chart:empty { display: none; }
.chart { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; }
.chart-h { margin: 6px 0 6px; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.split { display: flex; height: 34px; border-radius: 999px; overflow: hidden; gap: 2px; }
.split span { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; white-space: nowrap; min-width: 0; padding: 0 8px; }
.split .seg-0 { background: var(--sea-deep); color: var(--ink); }
.split .seg-1 { background: var(--tree); color: #fff; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 9em) 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.hb-label small { display: block; color: var(--muted); font-size: 11px; }
.hb-track { height: 10px; background: var(--paper); border-radius: 999px; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.map-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; background: var(--sea); }
.embed-open { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--ink); }
.hb-val { font-family: var(--f-num); font-size: 12px; font-variant-numeric: tabular-nums; }
.points { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.points li { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; background: var(--card); animation: pop .4s ease both; }
.points li::before { content: "●"; color: var(--tree); margin-right: 8px; font-size: 10px; vertical-align: 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.start { position: absolute; inset: 0; border: 0; border-radius: var(--radius); background: color-mix(in srgb, var(--ink) 55%, transparent); color: var(--paper); display: flex; align-items: center; justify-content: center; gap: 16px; font-family: var(--f-display); font-size: 26px; }
.start small { display: block; font-family: var(--f-body); font-size: 14px; opacity: .85; }
.start-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font-size: 28px; }

.bar { height: 8px; background: var(--line); border-radius: 999px; margin: 14px 0 10px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--ink); transition: width .3s linear; }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctl { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 15px; }
.ctl-main { background: var(--ink); border-color: var(--ink); color: var(--paper); font-size: 19px; }
.count { color: var(--muted); font-family: var(--f-num); font-size: 14px; }
.voice { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 15px; }
.voice input { width: 20px; height: 20px; accent-color: var(--ink); }
.chapters { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chapters button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--muted); }
.chapters button.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chapters button.seen:not(.is-on) { color: var(--ink); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* ---------- 提案 ---------- */
.prop { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; background: var(--paper); }
.prop summary { list-style: none; padding: 12px 16px; font-weight: 700; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.prop summary::-webkit-details-marker { display: none; }
.prop summary::after { content: "＋"; margin-left: auto; color: var(--muted); }
.prop[open] summary::after { content: "－"; }
.prop .tick { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; font-size: 13px; color: var(--paper); }
.prop.read .tick { background: var(--ink); border-color: var(--ink); }
.choice.ask { border-style: dashed; font-weight: 500; }
.prop-body { padding: 0 16px 14px; }
.prop-body p { margin: 0 0 8px; }
.attach { color: var(--muted); font-size: 14px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.choice { border: 1px solid var(--ink); background: var(--card); border-radius: 999px; padding: 6px 18px; min-height: 44px; font-weight: 700; }
.choice[aria-pressed="true"][data-v="贊成"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.choice[aria-pressed="true"][data-v="有疑問"] { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); }
.choice[aria-pressed="true"][data-v="反對"] { background: var(--live); border-color: var(--live); color: #fff; }

/* ---------- 點子廣場（意向票） ---------- */
.vote { display: grid; gap: 14px; max-width: 640px; }
.vote label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.vote select, .vote textarea { font-weight: 400; font-size: 17px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.pick { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 12px; margin: 0; }
.pick legend { font-weight: 700; font-size: 15px; padding: 0 6px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 14px; min-height: 40px; }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.summary { background: var(--paper); border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; font-size: 15px; }
.summary ol { margin: 6px 0 0; padding-left: 22px; }
.form-msg { margin: 0; font-weight: 700; }

/* 點子廣場發言牆 */
.wall-box { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.wall-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sub-h { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.wall-box .hint { margin: 0; }
.wall-box textarea { font-size: 17px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); resize: vertical; }
.wall-send { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wall-count { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 16px; padding-top: 8px; }
/* 發言便利貼：方形、膠帶、陰影、微微歪斜，顏色依類型 */
.wnote { position: relative; background: #fff3a3; border-radius: 3px 3px 16px 3px; padding: 20px 16px 14px; min-height: 160px; display: grid; gap: 8px; align-content: start; box-shadow: 0 8px 14px rgba(30, 36, 30, .14), 0 1px 2px rgba(30, 36, 30, .1); animation: pop .4s ease both; }
.wnote::before { content: ""; position: absolute; top: -9px; left: 50%; width: 70px; height: 20px; translate: -50% 0; rotate: -3deg; background: rgba(255, 255, 255, .65); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.wnote:nth-child(4n+1) { rotate: -1.6deg; }
.wnote:nth-child(4n+2) { rotate: 1.2deg; }
.wnote:nth-child(4n+3) { rotate: -.6deg; }
.wnote:nth-child(4n) { rotate: 1.8deg; }
.wnote p { margin: 0; font-family: var(--f-display); font-size: 19px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.wnote small { color: var(--muted); font-weight: 700; }
.wnote .w-who { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-family: var(--f-body); font-size: 14px; font-weight: 700; color: var(--ink); white-space: normal; }
.w-who img, .w-who b { width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover; object-position: 50% 25%; border: 2px solid #fff; box-shadow: 0 1px 3px #0003; }
.w-who b { display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 400; font-size: 12px; }
.w-who small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
body.wall-full .w-who img, body.wall-full .w-who b { width: 44px; height: 44px; }
body.wall-full .wnote .w-who { font-size: 16px; }
.wnote .chip { justify-self: start; background: rgba(255, 255, 255, .7); border-color: transparent; }
.wnote.t-建議 { background: #d9f0c4; }
.wnote.t-提問 { background: #cfe9f3; }
.wnote.t-點子 { background: #fff3a3; }
.wnote.t-推薦贊助夥伴 { background: #ffdcca; }
.wnote.t-贊助 { background: var(--yellow); box-shadow: 0 0 0 3px var(--ink), 0 10px 18px rgba(30, 36, 30, .2); }
.w-amt { font-family: var(--f-num); font-size: 24px; line-height: 1.2; }
.wall-amount { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
.wall-amount input { font: inherit; font-weight: 400; font-size: 18px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); max-width: 240px; }
/* 全島歡呼 */
.cheer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow: auto; background: color-mix(in srgb, var(--paper) 88%, var(--yellow)); padding: 16px; transition: opacity .5s; }
.cheer.cheer-out { opacity: 0; }
.cheer-card { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 16px; background: var(--card); border: 3px solid var(--ink); border-radius: 22px; padding: 12px 24px; text-align: center; animation: cheer-pop .6s cubic-bezier(.3,1.6,.5,1) both; }
.cheer-top { font-family: var(--f-display); font-size: 18px; }
.cheer-name { font-family: var(--f-display); font-size: clamp(28px, 5vw, 40px); }
.cheer-card h2 { margin: 6px 0 2px; font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 7vw, 48px); }
.cheer-amt { font-family: var(--f-num); font-size: clamp(24px, 4.5vw, 36px); }
.cheer-thanks { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.cheer-wrap { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; width: min(900px, 100%); max-height: 100%; }
.cheer-mid { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.cr-big { animation-duration: .5s; }
.cr.cr-big img, .cr.cr-big b { width: min(30vh, 220px); height: min(30vh, 220px); border: 6px solid var(--yellow); box-shadow: 0 8px 20px #0003; font-size: 48px; }
.cr.cr-big small { font-size: 18px; padding: 2px 14px; background: var(--yellow); }
@media (max-width: 640px) { .cr.cr-big img, .cr.cr-big b { width: 32vw; height: 32vw; font-size: 28px; border-width: 4px; } .cr.cr-big small { font-size: 14px; } .cheer-mid { gap: 10px; flex-wrap: nowrap; } .cheer-island { width: 54vw; } }
.cheer-island { width: min(44vh, 70vw); animation: cheer-pop .7s .15s cubic-bezier(.3,1.4,.5,1) both; }
.cheer-island .ih-loop { animation-duration: 6s; }
.cheer-crowd { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px 12px; }
.cr { display: grid; justify-items: center; gap: 2px; animation: cr-jump .55s calc(var(--i) * 60ms) ease-in-out infinite alternate; }
.cr img, .cr b { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 8px #0003; object-fit: cover; object-position: 50% 25%; }
.cr b { display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--f-display); font-weight: 400; font-size: 18px; }
.cr small { font-size: 12px; font-weight: 700; background: var(--card); border-radius: 999px; padding: 0 8px; }
.cr-hero { animation-duration: .45s; }
.cr-hero img, .cr-hero b { width: 80px; height: 80px; border: 4px solid var(--yellow); font-size: 24px; }
.cr-hero small { font-size: 14px; background: var(--yellow); }
@keyframes cr-jump { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-16px) rotate(4deg); } }
@media (max-width: 640px) { .cr img, .cr b { width: 44px; height: 44px; font-size: 15px; } .cr small { font-size: 11px; } }
@keyframes cheer-pop { from { transform: scale(.4) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.wall-full-btn { min-height: 38px; padding: 4px 14px; font-size: 14px; }

/* 投影模式：整個畫面只顯示點子廣場 */
body.wall-full { overflow: hidden; }
body.wall-full .wall-box { position: fixed; inset: 0; z-index: 30; margin: 0; padding: 24px clamp(16px, 4vw, 48px); overflow: auto; background: var(--sea); border: 0; align-content: start; }
body.wall-full .wall-box > :is(.hint, #wallTypes, textarea, .wall-send) { display: none; }
body.wall-full .sub-h { font-size: 34px; }
body.wall-full .wall { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 22px; padding-top: 10px; }
body.wall-full .wnote p { font-size: 24px; }
body.wall-full .wnote { min-height: 190px; }

/* ---------- 終點：守島人會議 ---------- */
.summit { background: var(--card); }
.info { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 14px; }
.info dt { color: var(--muted); font-size: 14px; }
.info dd { margin: 0; font-weight: 700; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rules { margin: 0; padding: 10px 0 0 20px; color: var(--muted); font-size: 14px; border-top: 1px dashed var(--line); }

.summit-pop { position: fixed; inset: 0; background: #0008; display: grid; place-items: center; z-index: 20; padding: 16px; }
.summit-card { background: var(--card); border-radius: 20px; padding: 22px; max-width: 380px; text-align: center; animation: pop .4s ease both; }
.summit-card h2 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; }
.confetti { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 21; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 32px; }

/* ---------- 手機 ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-island { width: 72%; order: -1; }
  .stage { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .map { height: 320px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .card { padding: 16px; }
  .brand { font-size: 20px; }
  .county-pop { top: 36px; bottom: 36px; }
  .stage h3 { font-size: 22px; }
  .bubble { min-height: 0; }
  .bubble p { font-size: 17px; }
  .map-pin { font-size: 12px; padding: 1px 10px 1px 7px; }
  /* 台詞較長時，播放鈕黏在畫面底部，隨時能暫停 */
  .controls { position: sticky; bottom: 0; z-index: 3; background: var(--card); margin: 0 -16px; padding: 8px 16px; border-top: 1px solid var(--line); }
  .climb a { font-size: 12px; padding: 3px 10px 3px 5px; }
  .voice { margin-left: 0; }
}

/* ---------- 登島儀式 ---------- */
body.landing-on { overflow: hidden; }
.landing { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 40%, #d6efe7, var(--sea) 60%, var(--sea-deep)); display: flex; flex-direction: column; align-items: center; justify-content: safe center; padding: 16px; overflow: auto; transition: opacity .6s ease, transform .6s ease; }
.landing.ld-out { opacity: 0; transform: scale(1.15); pointer-events: none; }
.ld-stage { width: min(560px, 100%); display: grid; justify-items: center; text-align: center; gap: 6px; }
.ld-eyebrow { margin: 0; font-size: 11px; letter-spacing: .2em; color: var(--muted); animation: ld-fade .8s ease both; }
.ld-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 7vw, 52px); animation: ld-fade .8s .1s ease both; }
.ld-scene { position: relative; width: min(300px, 70vw); aspect-ratio: 1; }
.ld-island { width: 100%; animation: ld-rise 1.2s .2s cubic-bezier(.2,.8,.2,1) both; }
.ld-boat { position: absolute; width: 22%; left: -10%; bottom: 8%; animation: ld-sail 1.8s .4s ease-out both; }
.ld-hello { margin: 4px 0 0; font-family: var(--f-display); font-size: 22px; min-height: 1.5em; animation: ld-fade .6s .6s ease both; }
.ld-pass { width: 100%; display: grid; justify-items: center; animation: ld-slide .7s 1.9s cubic-bezier(.2,.8,.2,1) both; }
.ld-pass .pass { text-align: left; }
.ld-pass .pass-stamp { animation: ld-stamp .45s 2.7s cubic-bezier(.3,1.6,.5,1) both; }
.ld-go { margin-top: 10px; border: 0; background: var(--ink); color: var(--yellow); font-weight: 700; font-size: 18px; padding: 12px 28px; border-radius: 999px; animation: ld-fade .6s 2.4s ease both; }
.ld-skip { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; }
@keyframes ld-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ld-rise { from { opacity: 0; transform: translateY(30px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes ld-sail { from { transform: translate(-60%, 10%) rotate(-4deg); opacity: 0; } 20% { opacity: 1; } to { transform: translate(120%, -20%) rotate(2deg); } }
@keyframes ld-slide { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes ld-stamp { from { opacity: 0; transform: scale(2.6); } to { opacity: .85; transform: scale(1); } }
@media (max-width: 640px) { .ld-scene { width: 56vw; } .ld-hello { font-size: 19px; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
