/* MemorGi 官網：黑金夜場的狗展。深黑底、金色緞帶獎章、象牙色狗牌與參賽號碼牌；不放常駐動畫 */
@font-face { font-family: "Zen Maru Gothic"; src: url("/fonts/ZenMaruGothic-700.v202611242359.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-800.v202611242359.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-var.v202611242359.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
/* 中文頁的展示字：源樣圓體，繁中用台灣字形、簡中用簡體字形（子集只含那一語頁面用到的字） */
@font-face { font-family: "Resource Han Rounded TC"; src: url("/fonts/RHRTC-700.v202611242359.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Resource Han Rounded SC"; src: url("/fonts/RHRSC-700.v202611242359.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night-900: #0b0a09; --night-800: #121110; --night-700: #1a1816; --night-600: #2a2622; --night-500: #3d362e;
  --ivory: #f4efe6; --ivory-2: #e2dbcf; --ivory-3: #b5ab9b;
  --gold: #d4af6a; --gold-hi: #ecd29a; --gold-lo: #a8843f;
  --silver: #c9c6bf; --bronze: #b07a4a;
  --ink: #141414; --paper: #fffaf0;
  --r-s: 10px; --r-m: 18px; --r-l: 28px;
  --shadow-1: 0 2px 4px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .28);
  --shadow-2: 0 4px 10px rgba(0, 0, 0, .3), 0 28px 70px rgba(0, 0, 0, .38);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Zen Maru Gothic", system-ui, sans-serif;
  --num: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
:lang(zh-Hant) { --display: "Resource Han Rounded TC", "PingFang TC", "Zen Maru Gothic", sans-serif; --text: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", system-ui, sans-serif; }
:lang(zh-Hans) { --display: "Resource Han Rounded SC", "PingFang SC", "Zen Maru Gothic", sans-serif; --text: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", system-ui, sans-serif; }
/* 中文標題不用英文的負字距與 1.08 行高：方塊字擠在一起、兩行會疊；斷行照詞，不在詞中間斷 */
:lang(zh-Hant) :is(h1, h2, h3), :lang(zh-Hans) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.28; word-break: keep-all; overflow-wrap: anywhere; }
/* 中文內文不用 text-wrap: pretty：Safari 的 pretty 會整段重排，方塊字每行提早換行、右緣參差像斷行（11/22 iPhone 截圖） */
:lang(zh-Hant) .lead, :lang(zh-Hans) .lead, :lang(zh-Hant) p, :lang(zh-Hans) p { line-break: strict; text-wrap: wrap; }
:lang(zh-Hant) .tag, :lang(zh-Hans) .tag { letter-spacing: .04em; text-transform: none; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font: 17px/1.62 var(--text); color: var(--ivory); background: var(--night-800);
  background-image: radial-gradient(1200px 700px at 85% -120px, rgba(212, 175, 106, .13), transparent 70%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--night-500) var(--night-900); }
a { color: var(--gold-hi); text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:hover { color: #fff; }
img, video { max-width: 100%; height: auto; display: block; }
kbd, .kbd { font: 600 .82em/1 var(--mono); background: var(--paper); color: var(--ink); border-radius: 7px; padding: .32em .5em .28em; box-shadow: 0 2px 6px rgba(0,0,0,.28); white-space: nowrap; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: .5em; }
h3 { font-size: 1.32rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.lead { font-size: 1.16rem; color: var(--ivory-2); max-width: 62ch; }
.muted { color: var(--ivory-3); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.skip:hover { color: var(--ink); }

/* 頂列：實色，不用毛玻璃（捲動時不重算模糊） */
.top { position: sticky; top: 0; z-index: 40; background: rgba(18, 17, 16, .985); border-bottom: 1px solid rgba(212, 175, 106, .18); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ivory-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(244, 239, 230, .1); color: #fff; }
/* 三語切換：小字、低調，目前這一語用金字標出 */
.langs { display: flex; align-items: center; gap: 2px; color: var(--ivory-3); }
.langs svg { width: 17px; height: 17px; margin-right: 4px; flex: none; }
.langs a { color: var(--ivory-3); text-decoration: none; font: 600 .8rem/1 var(--text); padding: 8px 7px; border-radius: 999px; }
.langs a:hover { color: #fff; background: rgba(244, 239, 230, .08); }
.langs a[aria-current] { color: var(--gold-hi); }
.btn { --b: var(--gold); display: inline-flex; align-items: center; gap: .55em; font: 700 1.02rem/1 var(--display); color: var(--ink); background: var(--b); border: 0; border-radius: 999px; padding: .95em 1.5em; text-decoration: none; cursor: pointer; box-shadow: 0 10px 22px rgba(0, 0, 0, .35); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.btn:hover { color: var(--ink); background: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 18px 34px rgba(0, 0, 0, .42); }
.btn:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn.small { font-size: .9rem; padding: .7em 1.1em; }
.btn.ghost { background: rgba(244,239,230,.14); color: var(--ivory); box-shadow: none; }
.btn.ghost:hover { color: #fff; background: rgba(244,239,230,.24); }

/* 首屏：金色緞帶獎章（靜態圖）在標題後面，柯基站在頒獎台上 */
/* 1440×900 首屏要看得到片子的海報標題與播放鍵：hero 上下、標題字級、片框上方的距離都收緊 */
.hero { position: relative; isolation: isolate; padding: 28px 0 24px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--gold-hi); }
.hero h1 { font-size: clamp(2.6rem, 4.8vw, 4.1rem); }
.hero .lead { margin: 16px 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
/* Mac App Store 徽章：Apple 不准改或動畫徽章本身、四周留白至少高度的 1/4，所以 padding 就是那圈留白，會動的只有外面的光環 */
.mas { --ring: 236, 210, 154; position: relative; display: inline-block; padding: 14px; margin-left: -14px; border-radius: 24px; line-height: 0; isolation: isolate; }
.mas img { display: block; width: auto; height: 56px; }
.mas::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 1.5px solid rgba(var(--ring), .5); animation: mas-ring 2.8s var(--ease) infinite; transition: border-color .4s var(--ease); }
.mas:hover::before, .mas:focus-visible::before { border-color: rgba(var(--ring), 1); animation-duration: 1.2s; }
.mas:focus-visible { outline-offset: 4px; border-radius: 24px; }
.mas.on-gold { --ring: 20, 20, 20; }
@keyframes mas-ring { 0% { box-shadow: 0 0 0 0 rgba(var(--ring), .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(var(--ring), 0); } }
.sale { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 20px 0 0; padding: 9px 16px; border: 2px dashed var(--gold-lo); border-radius: 14px; background: var(--paper); color: var(--ink); font: 700 .95rem/1.25 var(--display); }
.sale b { color: #a3241b; text-transform: uppercase; letter-spacing: .04em; }
.sale-note { display: inline-block; margin: 0 0 18px; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: var(--gold-hi); font: 700 1rem/1.35 var(--display); }
.tag-new { gap: 7px; background: var(--gold); padding-left: 9px; }
.tag-new .mini { width: 20px; height: auto; margin: -4px 0 -6px; }
@media (prefers-reduced-motion: reduce) { .mas::before { animation: none; } }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; font: 700 .86rem/1 var(--display); color: var(--ink); background: var(--paper); border-radius: 999px; padding: 9px 15px; }
.tag:nth-child(4n+2) { background: var(--gold); } .tag:nth-child(4n+3) { background: var(--ivory-2); } .tag.tag-new { background: var(--gold-hi); }
.podium { position: relative; isolation: isolate; display: grid; place-items: center; }
.podium .dog { position: relative; width: 74%; margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
/* 號碼牌放在柯基正下方、不疊在牠身上（哲哥 11/18：別重疊） */
.placard { position: relative; margin-top: 14px; display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: 10px 18px 10px 12px; font: 800 .86rem/1.1 var(--num); letter-spacing: .08em; box-shadow: var(--shadow-1); rotate: -2deg; }
.placard b { display: block; font: 800 2.6rem/.95 var(--num); letter-spacing: 0; }
/* 首屏柯基從金框裡冒出頭：框在柯基後面，頭與耳朵高過框的上緣、前爪搭在下緣（哲哥 11/18）。框是網頁畫的，不是點陣圖 */
.portrait { position: relative; width: min(440px, 100%); margin-inline: auto; }
.portrait .frame { position: absolute; z-index: -1; inset: 40% 0 4% 0; border: 12px solid transparent; border-image: linear-gradient(135deg, #f7e3a6, #c99a45 35%, #f3d98f 55%, #a8843f 80%, #ecd29a) 1; background: radial-gradient(120% 90% at 50% 30%, #241f1a, #0b0a09 75%); box-shadow: 0 24px 44px rgba(0,0,0,.5); }
.portrait .frame::after { content: ""; position: absolute; inset: 6px; border: 1.5px solid rgba(236,210,154,.45); }
/* 第一名獎章別在金框左上角，不疊在柯基身上（哲哥 11/18：獎章放左上角） */
.portrait .medal-corner { position: absolute; z-index: 2; left: -11%; top: 4%; width: clamp(64px, 8vw, 104px); height: auto; rotate: -10deg; filter: drop-shadow(0 10px 16px rgba(0,0,0,.4)); }

/* 場地：Mac 螢幕框裡放實機影片 */
/* 外圈線往外 28px：上方留 44px 才不壓到 tag 列 */
.ring { margin: 44px auto 0; position: relative; max-width: 880px; }
.ring-frame { position: relative; border-radius: 22px; padding: 12px; background: linear-gradient(180deg, #2b2824, #12100e); box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255,255,255,.08); }
.ring-frame video, .ring-frame img { border-radius: 12px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--night-900); }
.ring-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: .92rem; color: var(--ivory-3); }
.ring-bar .keys { display: flex; gap: 6px; align-items: center; }
.ring-frame { position: relative; }
.ring-frame video.hero-film { aspect-ratio: 16 / 9; }
/* 首屏影片：不自動播，中間一顆播放鍵，按了才載入、有聲音播放 */
.play-big { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 96px; height: 96px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--gold); color: var(--ink); cursor: pointer; box-shadow: 0 14px 34px rgba(0,0,0,.45); transition: transform .4s var(--ease), background .4s var(--ease); }
/* 三角形的重心（(8+8+19.9)/3≈12）本來就在 24 格的正中間，不另外往右推 */
.play-big svg { width: 40px; height: 40px; }
.play-big:hover { background: var(--gold-hi); transform: scale(1.06); }
.play-big[hidden] { display: none; }
.ct-form .field[hidden] { display: none; }
.ring-lines { position: absolute; inset: -28px; border: 1px solid rgba(212,175,106,.28); border-radius: 40px; pointer-events: none; }

/* 區段 */
section { padding: 108px 0; position: relative; }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head p { color: var(--ivory-2); font-size: 1.1rem; max-width: 64ch; }   /* 一行約 64 個英文字、32 個中文字，寬螢幕不拉成一整條 */
.chalk-line { height: 0; border-top: 2px solid rgba(244,239,230,.14); margin: 0; }
.plane { isolation: isolate; overflow-x: clip; }
.plane.dusk { background: var(--night-700); } .plane.night { background: var(--night-900); }
.plane.gold { background: #dcbc78; color: var(--ink); }
.plane .chord { position: absolute; left: -4%; top: 0; width: 108%; max-width: none; height: auto; translate: 0 -52%; z-index: 2; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); }
.plane.gold h2, .plane.gold .prize .amount { color: var(--ink); }
.plane.gold .lead { color: #3a3118; }
.plane.gold .prize .amount small { color: #3a3118; }
.plane.gold .btn { --b: var(--ink); color: var(--paper); }
.plane.gold .btn:hover { background: var(--night-600); color: #fff; }
.plane.gold .btn.ghost { background: rgba(20,20,20,.12); color: var(--ink); }   /* DESIGN.md：金底上的次要鈕是墨色 12% */
.plane.gold .btn.ghost:hover { background: rgba(20,20,20,.2); color: var(--ink); }
.plane.gold a:not(.btn) { color: #4a3000; }
.plane .muted, .plane .sec-head p { color: var(--ivory-2); }

/* 今天的參賽者：卡片牆 */
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
@media (min-width: 1100px) { .entries { grid-template-columns: repeat(4, 1fr); } }   /* 8 張排成 4×2，不留一排 3 張的尾巴 */
.entry { position: relative; margin: 0; }
.entry img { border-radius: 14px; box-shadow: var(--shadow-1); width: 100%; aspect-ratio: 1; object-fit: cover; }
.entry figcaption { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font: 800 .92rem/1 var(--num); color: var(--ivory-3); letter-spacing: .06em; text-transform: uppercase; }
.entry .no { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 4px 8px 3px; font-weight: 800; font-size: 1.05rem; }
.entry .ribbon { position: absolute; top: -14px; right: -10px; width: 54px; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.day-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 28px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); border-radius: 999px; padding: 10px 16px; width: min(420px, 100%); box-shadow: var(--shadow-1); }
.search svg { width: 18px; height: 18px; flex: none; color: var(--gold-lo); }
.search input { border: 0; outline: 0; background: transparent; font: 600 1rem var(--text); color: var(--ink); width: 100%; caret-color: var(--gold-lo); }
.search input::placeholder { color: #6b6458; }
.entry[hidden] { display: none; }
.count { font: 800 .95rem var(--num); letter-spacing: .04em; color: var(--ivory-3); }

/* 卡型：左圖右文跨一條縫 */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; }
.kind { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: center; }
.kind figure { margin: 0; }
.kind:nth-child(4n+3) > figure, .kind:nth-child(4n+4) > figure { order: 2; }
.kind img { border-radius: 16px; box-shadow: var(--shadow-1); aspect-ratio: 1; object-fit: cover; object-position: top; width: 100%; background: var(--night-900); }
.kind h3 { display: flex; align-items: center; gap: 10px; }
.kind h3 i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.kind p { color: var(--ivory-2); margin: 6px 0 0; }
.kind img.sq { object-fit: contain; object-position: center; background: rgba(0,0,0,.25); padding: 10px; }

/* 兩種視窗：分段切換 */
.seg { display: inline-flex; padding: 5px; gap: 4px; background: rgba(0,0,0,.25); border-radius: 999px; margin-bottom: 26px; }
.seg button { min-height: 44px; font: 700 .95rem var(--display); color: var(--ivory-2); background: transparent; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease); }
.seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.seam { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: center; }
.seam > :last-child { background: rgba(0,0,0,.2); border-radius: var(--r-m); padding: 26px 28px; }
.stage { position: relative; }
.stage img { border-radius: 18px; box-shadow: var(--shadow-2); width: 100%; }
.stage img[hidden] { display: none; }

/* 兩種卡風：前後對照滑桿 */
.compare { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-2); --pos: 50%; aspect-ratio: 1980 / 1324; background: var(--night-900); touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .knob { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; }
.compare .knob::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: var(--gold-hi); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.compare .knob span { position: absolute; top: 50%; left: 0; translate: -50% -50%; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-1); display: grid; place-items: center; color: var(--ink); }
.compare .knob svg { width: 22px; height: 22px; }
.compare input { position: absolute; inset: 0; opacity: 0; cursor: ew-resize; width: 100%; height: 100%; margin: 0; }
.compare .lab { position: absolute; bottom: 14px; font: 700 .82rem var(--display); background: rgba(18,17,16,.85); color: var(--ivory); padding: 7px 12px; border-radius: 999px; }
.compare .lab.l { left: 14px; } .compare .lab.r { right: 14px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 28px; }
.duo h3 { margin-bottom: 6px; }
.duo p { color: var(--ivory-2); }

/* 主題：17 顆緞帶 */
.themes { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font: 700 .88rem var(--display); color: var(--ivory); background: rgba(0,0,0,.22); border: 0; border-radius: 999px; padding: 8px 14px 8px 8px; cursor: pointer; transition: background .4s var(--ease), transform .4s var(--ease); }
.chip:hover { transform: translateY(-1px); background: rgba(0,0,0,.32); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.chip i { width: 22px; height: 22px; border-radius: 50%; display: block; background: conic-gradient(var(--a) 0 50%, var(--b) 0 100%); box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.look-toggle { margin: 18px 0 0; }

/* 功能四項 */
.events { display: grid; gap: 90px; }
.event { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.event:nth-child(even) > figure { order: 2; }
.event figure { margin: 0; }
.event figure img { border-radius: 18px; box-shadow: var(--shadow-2); width: 100%; }
.event figcaption { font-size: .88rem; color: var(--ivory-3); margin-top: 10px; }
.event .keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.peek-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.peek-grid figure { margin: 0; }
.peek-grid img { border-radius: 12px; aspect-ratio: 1.55; object-fit: cover; object-position: top; box-shadow: var(--shadow-1); width: 100%; }
.peek-grid img.sq { object-fit: contain; object-position: center; background: rgba(0,0,0,.25); }
.peek-grid figcaption { font: 600 .82rem var(--display); color: var(--ivory-2); margin-top: 8px; }

/* iPhone */
.phones { display: flex; gap: 22px; justify-content: center; align-items: flex-end; margin-top: 40px; }
.phone { width: min(230px, 30vw); border-radius: 34px; padding: 8px; background: #0b0d0c; box-shadow: var(--shadow-2), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.phone img { border-radius: 27px; }
.phone:nth-child(2) { transform: translateY(-26px); }

/* 隱私：琺瑯牌清單 */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: rgba(0,0,0,.2); border-radius: 14px; padding: 14px 16px; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--gold-hi); margin-top: 2px; }

/* 價格：大緞帶 */
.prize { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
.prize .medal { width: 170px; height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.3)); }
.prize .amount { font: 800 clamp(3rem, 7vw, 5rem)/1 var(--display); letter-spacing: -.03em; color: var(--gold-hi); }
.prize .amount small { font-size: .3em; letter-spacing: 0; color: var(--ivory-2); margin-left: .4em; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; }
.faq details { background: rgba(0,0,0,.2); border-radius: 14px; }
.faq summary { cursor: pointer; font: 700 1.02rem/1.35 var(--display); padding: 16px 48px 16px 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23f7d97a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: rotate .4s var(--ease); }
.faq details[open] summary::after { rotate: 180deg; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ivory-2); }

/* 結尾 */
.close { text-align: center; padding-bottom: 60px; }
.close .dog { width: 260px; margin: 0 auto 10px; }
.close p { margin-inline: auto; }
.close .cta-row { justify-content: center; }

/* 頁尾 */
.foot { border-top: 1px solid rgba(244,239,230,.12); padding: 44px 0 60px; color: var(--ivory-3); font-size: .92rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot .foot-h { font: 700 .95rem var(--display); color: var(--ivory); margin: 0 0 10px; letter-spacing: normal; }   /* 頁尾小標用 h2（標題層級不跳級），樣子照舊 */
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--ivory-2); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

/* 說明書（Manual） */
.manual { display: grid; grid-template-columns: 260px 1fr; gap: 44px; padding: 48px 0 100px; align-items: start; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.toc a { display: flex; gap: 10px; align-items: baseline; color: var(--ivory-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: .94rem; }
.toc a b { font: 800 .95rem var(--num); color: var(--gold-hi); min-width: 3.2em; }
.toc a:hover, .toc a.on { background: rgba(244,239,230,.08); color: #fff; }
.man-head { margin-bottom: 30px; }
.man-head .search { margin-top: 22px; }
.man-sec { margin: 0 0 56px; }
.man-sec > h2 { font-size: 2rem; display: flex; gap: 14px; align-items: baseline; padding-bottom: 12px; border-bottom: 2px solid rgba(244,239,230,.14); margin-bottom: 18px; }
.man-sec > h2 b { font: 800 1.2rem var(--num); color: var(--ink); background: var(--gold); border-radius: 8px; padding: 6px 9px; white-space: nowrap; flex: none; }
.item { display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(244,239,230,.08); scroll-margin-top: 92px; }
.item .plate { align-self: start; text-align: center; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 7px 4px 6px; font: 800 .8rem/1 var(--num); letter-spacing: .1em; text-decoration: none; }
.item .plate b { display: block; font: 800 1.6rem/1.05 var(--num); letter-spacing: 0; }
.item h3 { margin: 2px 0 6px; }
.item p { color: var(--ivory-2); margin: 0; max-width: 62ch; }
.item .keys { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.item:target { background: linear-gradient(90deg, rgba(212,175,106,.12), transparent 70%); border-radius: 12px; }
.item[hidden], .man-sec[hidden] { display: none; }
.item figure { margin: 14px 0 0; }
.item figure img { border-radius: 12px; box-shadow: var(--shadow-1); max-width: 560px; width: 100%; }

/* 文件頁（隱私、404、聯絡） */
.doc { width: min(780px, 100% - 48px); margin: 56px auto 100px; background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 48px clamp(22px, 5vw, 56px); box-shadow: var(--shadow-2); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.doc h2 { font-size: 1.4rem; margin: 34px 0 8px; }
.doc p { color: #2e2a25; max-width: 64ch; }
.doc a { color: #8a5b00; }
.doc a:hover, a.plate:hover { color: #4a3000; }
.doc a.btn, .doc a.btn:hover { color: var(--ink); }
.doc .stamp { display: inline-block; margin-top: 4px; font: 800 .9rem var(--num); letter-spacing: .1em; color: var(--gold-hi); background: var(--ink); border-radius: 8px; padding: 6px 10px; rotate: -3deg; margin-bottom: 16px; }
.lost { text-align: center; }
.lost img { width: 280px; margin: 0 auto 8px; }

/* 聯絡表單 */
.ct-form { display: grid; gap: 18px; margin-top: 18px; }
.ct-form .field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.ct-form label, .ct-form legend { font: 700 .95rem var(--display); }
.ct-form small { font-weight: 600; color: #6f675b; margin-left: 6px; }
.ct-form input[type=text], .ct-form input[type=email], .ct-form textarea { font: 1rem var(--text); color: var(--ink); background: #fff; border: 1.5px solid #c9c2ad; border-radius: 12px; padding: 12px 14px; width: 100%; }
.ct-form input:focus, .ct-form textarea:focus { border-color: var(--gold-lo); outline: 3px solid rgba(212,175,106,.35); outline-offset: 0; }
.ct-form .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ct-form .opt { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #d8d0b8; border-radius: 999px; padding: 8px 14px; font: 600 .92rem var(--text); cursor: pointer; }
.ct-form .opt:has(input:checked) { border-color: var(--gold-lo); background: #fff3cf; }
.ct-form .opt input { accent-color: var(--gold-lo); }
.ct-form .hint { font-size: .86rem; color: #625a4f; margin: 0; }
.ct-form .hp { position: absolute; left: -9999px; }
.ct-form .btn { justify-self: start; }
.ct-status { margin: 0; font-weight: 600; }
.ct-privacy { font-size: .9rem; color: #554d43; }

/* 進場：先看得到，再慢慢浮上來 */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; }   /* 壓在頁首（40）下面 */

@media (max-width: 980px) {
  .hero-grid, .seam, .themes, .ledger, .event, .prize, .manual, .duo, .faq { grid-template-columns: 1fr; }
  .event:nth-child(even) > figure { order: 0; }
  .kinds { grid-template-columns: 1fr; }
  .peek-grid { grid-template-columns: 1fr 1fr; }
  .toc { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .prize { padding: 32px 24px; }
  .portrait { width: min(440px, 90%); }
  /* 手機首屏：柯基縮小，臉與號牌都落在第一個畫面裡（11/18 finish review） */
  @media (max-width: 640px) { .ring-bar { flex-direction: column; align-items: flex-start; } .podium { order: -1; } .portrait { width: min(300px, 82%); } .portrait .medal-corner { left: -12%; top: 18%; width: 60px; } .placard { margin-top: 4px; transform: scale(.85); } }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  /* 窄螢幕頁首的下載鈕只留圖示：第一屏要有購買入口（徽章在柯基下面，進不了 844） */
  .top .btn.small { padding: 0; width: 44px; height: 44px; justify-content: center; flex: none; }
  .top .btn.small .lbl { display: none; }
  .entries { grid-template-columns: 1fr 1fr; gap: 14px; }
  .entry figcaption { font-size: .8rem; }
  .toc { display: none; }
  .nav a:not(.keep) { display: none; }
  .top .wrap { gap: 8px; }
  .langs svg, .langs a[aria-current] { display: none; }
  .langs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
  .nav a, .langs a { white-space: nowrap; } .nav a { padding: 0 8px; }
  /* 頁首多了下載圖示：窄螢幕三語都只留說明書，常見問題在頁尾（留著的話 logo 會被擠小） */
  .nav a[href$="#faq"] { display: none; }
  .kind { grid-template-columns: .9fr 1.1fr; gap: 16px; } .kind > figure { order: 0 !important; }
  section { padding: 76px 0; }
  .phones { gap: 10px; } .phone:nth-child(3) { display: none; }
  .item { grid-template-columns: 1fr; gap: 10px; } .item .plate { justify-self: start; padding: 6px 10px; display: flex; gap: 8px; align-items: baseline; }
  .foot .wrap { grid-template-columns: 1fr; }
  .foot ul { gap: 0; } .foot ul a { display: inline-block; padding: 12px 0; }
  /* 手機上每個點得到的東西至少 44 點高（polish 11/18 量：logo 32、Manual／FAQ 41、搜尋 41、隱私連結 19） */
  .brand { min-height: 44px; } .nav a { min-height: 44px; display: inline-flex; align-items: center; } .search { min-height: 44px; } #privacy .ledger a:not(.btn) { display: inline-block; padding: 12px 0; }
  .ring-lines { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
