/* MemorGi 官網：狗展日（show day）。草地、白色場地線、緞帶獎章、琺瑯狗牌、參賽號碼牌 */
@font-face { font-family: "Zen Maru Gothic"; src: url("/fonts/ZenMaruGothic-700.v202611180322.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/BarlowCondensed-800.v202611180322.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-var.v202611180322.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --turf-900: #0f2a1b; --turf-800: #163a26; --turf-700: #1d4a31; --turf-600: #26603f; --turf-500: #2f7a4d;
  --chalk: #f7f4ea; --chalk-2: #e4ece0; --chalk-3: #b9cdbd;
  --gold: #e6b53e; --gold-hi: #f7d97a; --gold-lo: #b8861f;
  --blue: #3b6fe0; --red: #db4a3c; --purple: #8a5ad6; --rose: #f08aa6;
  --ink: #18241c; --paper: #fffaf0;
  --light: 0;              /* 捲動時 0 → 1：早上的場地 → 黃昏頒獎 */
  --r-s: 10px; --r-m: 18px; --r-l: 28px;
  --shadow-1: 0 2px 4px rgba(6, 20, 12, .25), 0 12px 32px rgba(6, 20, 12, .28);
  --shadow-2: 0 4px 10px rgba(6, 20, 12, .3), 0 28px 70px rgba(6, 20, 12, .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;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font: 17px/1.62 var(--text); color: var(--chalk); background: var(--turf-800);
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(247, 217, 122, calc(.10 + var(--light) * .22)), transparent 60%),
    radial-gradient(90% 70% at -10% 30%, rgba(59, 111, 224, calc(.16 - var(--light) * .12)), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 64px, rgba(0,0,0,.03) 64px 128px),
    linear-gradient(180deg, var(--turf-700), var(--turf-900));
  background-attachment: fixed;
  -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(--turf-500) var(--turf-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(--chalk-2); max-width: 62ch; }
.muted { color: var(--chalk-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; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); background: rgba(15, 42, 27, .72); border-bottom: 1px solid rgba(247, 244, 234, .12); }
.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: 30px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--chalk-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(247, 244, 234, .1); color: #fff; }
.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(6, 20, 12, .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(6, 20, 12, .42); }
.btn:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(6, 20, 12, .3); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn.small { font-size: .9rem; padding: .7em 1.1em; }
.btn.ghost { background: rgba(247,244,234,.14); color: var(--chalk); box-shadow: none; }
.btn.ghost:hover { color: #fff; background: rgba(247,244,234,.24); }

/* 首屏：緞帶獎章（WebGL）在標題後面，柯基站在頒獎台上 */
.hero { position: relative; isolation: isolate; padding: 56px 0 40px; overflow: clip; }
#rosette, .rosette-flat { position: absolute; top: 2%; left: -12%; width: min(820px, 70vw); height: auto; aspect-ratio: 1; z-index: -1; pointer-events: none; opacity: .3; max-width: none; }
.gl-on .rosette-flat { display: none; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--gold-hi); }
.hero .lead { margin: 22px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta-hint { font-size: .9rem; color: var(--chalk-3); max-width: 34ch; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 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+1) { background: var(--gold); } .tag:nth-child(4n+2) { background: var(--chalk-2); }
.podium { position: relative; display: grid; place-items: center; }
.podium .dog { width: min(440px, 100%); filter: drop-shadow(0 26px 30px rgba(0,0,0,.38)); transform-origin: 50% 90%; animation: bob 5.5s var(--ease) infinite alternate; }
.placard { position: absolute; right: 4%; bottom: 10%; background: var(--paper); color: var(--ink); border-radius: 12px; padding: 10px 14px 9px; font: 800 .86rem/1.1 var(--num); letter-spacing: .08em; box-shadow: var(--shadow-1); rotate: 4deg; }
.placard b { display: block; font: 800 2.6rem/.95 var(--num); letter-spacing: 0; }
@keyframes bob { to { transform: translateY(-10px) rotate(-1.2deg); } }

/* 場地：Mac 螢幕框裡放實機影片 */
.ring { margin: 56px auto 0; position: relative; }
.ring-frame { position: relative; border-radius: 22px; padding: 12px; background: linear-gradient(180deg, #2a2f2c, #111513); 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(--turf-900); }
.ring-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: .92rem; color: var(--chalk-3); }
.ring-bar .keys { display: flex; gap: 6px; align-items: center; }
.ring-lines { position: absolute; inset: -28px -28px -28px -28px; border: 2px dashed rgba(247,244,234,.2); 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(--chalk-2); font-size: 1.1rem; }
.chalk-line { height: 0; border-top: 2px solid rgba(247,244,234,.14); margin: 0; }
.plane { isolation: isolate; overflow-x: clip; }
.plane.blue { background: #1f3f8f; } .plane.red { background: #7d2a22; } .plane.purple { background: #3f2a78; }
.plane.gold { background: var(--gold); 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: #2c3b31; color: #fff; }
.plane.gold .btn.ghost { background: rgba(24,36,28,.12); color: var(--ink); }
.plane.gold .btn.ghost:hover { background: rgba(24,36,28,.22); color: var(--ink); }
.plane.gold a:not(.btn) { color: #4a3000; }
.plane .muted, .plane .sec-head p { color: rgba(247,244,234,.86); }

/* 今天的參賽者：卡片牆 */
.entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.entry { position: relative; margin: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.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(--chalk-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: 54px; }
.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(--turf-600); }
.search input { border: 0; outline: 0; background: transparent; font: 600 1rem var(--text); color: var(--ink); width: 100%; caret-color: var(--red); }
.search input::placeholder { color: #55625a; }
.entry[hidden] { display: none; }
.count { font: 800 .95rem var(--num); letter-spacing: .04em; color: var(--chalk-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(--turf-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(--chalk-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 { font: 700 .95rem var(--display); color: var(--chalk-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(--turf-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(15,42,27,.8); color: var(--chalk); 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(--chalk-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; font: 700 .88rem var(--display); color: var(--chalk); 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(--chalk-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(--chalk-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: 210px; height: 210px; }
.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(--chalk-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(--chalk-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(247,244,234,.12); padding: 44px 0 60px; color: var(--chalk-3); font-size: .92rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot h4 { font: 700 .95rem var(--display); color: var(--chalk); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--chalk-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(--chalk-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(247,244,234,.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(247,244,234,.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; }
.item { display: grid; grid-template-columns: 86px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(247,244,234,.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(--chalk-2); margin: 0; max-width: 70ch; }
.item .keys { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.item:target { background: linear-gradient(90deg, rgba(247,217,122,.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: #2f3b33; }
.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(--paper); background: var(--turf-600); 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: #6b766d; 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(230,181,62,.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: #5d6a61; 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: #4d5a51; }

/* 進場：先看得到，再慢慢浮上來 */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); filter: blur(6px); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

@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; }
  .podium .dog { width: min(320px, 80%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .btn { display: none; }
  #rosette, .rosette-flat { top: -6%; left: -40%; width: 130vw; opacity: .26; }
  .entries { grid-template-columns: 1fr 1fr; gap: 14px; }
  .entry figcaption { font-size: .8rem; }
  .toc { display: none; }
  .nav a:not(.keep) { 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; }
  .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; filter: none; }
}
