:root {
  --navy: #0d2036; --navy-2: #14304d; --gold: #c9a54a; --gold-l: #e8cf86; --parch: #efe2c0; --teal-l: #5fc2b8;
  --bg: #0b1a2c; --ink: #efe2c0; --muted: rgba(239,226,192,.72); --line: rgba(232,207,134,.25);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-l); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
  background: rgba(11,26,44,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--parch); text-decoration: none; font-weight: 700; letter-spacing: .5px; }
.mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(180deg, #ffe7a3, #c9a54a); color: #2b1d06; font-weight: 800; }
.top nav { display: flex; gap: 16px; font-size: 15px; } .top nav a { color: var(--parch); text-decoration: none; opacity: .85; } .top nav a[aria-current] { color: var(--gold-l); opacity: 1; }

.hero { padding: 72px 0 48px; }
.hero .kick { color: var(--teal-l); letter-spacing: 2px; font-size: 14px; }
.hero h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.15; margin-top: 8px; color: #fff6dc; }
.hero .lead { margin-top: 16px; font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 40em; }
.hero.wenlu { margin: 16px -16px 0; padding: 120px 24px 40px; border-radius: 0 0 24px 24px; background-size: cover; background-position: center 35%; text-align: center; }
.hero.wenlu .lead { margin: 12px auto 0; color: rgba(255,246,220,.9); }
.app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 12px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.store { padding: 10px 18px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.3); font-size: 15px; text-decoration: none; }
.store.soon { opacity: .75; }
.free { margin-top: 12px; color: var(--gold-l); font-weight: 600; }
@media (max-width: 600px) { br.wide { display: none; } }

h2 { font-size: clamp(22px, 3.4vw, 28px); color: #fff1c4; margin-bottom: 18px; }
section { margin: 48px 0; }

.game-card { display: block; position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #0f2238; color: var(--ink); text-decoration: none; transition: transform .2s; }
.game-card:hover { transform: translateY(-3px); }
.game-art { height: clamp(180px, 34vw, 340px); background-size: cover; background-position: center 35%; }
.game-body { display: flex; gap: 14px; align-items: flex-start; padding: 18px 18px 12px; }
.game-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.game-body h3 { font-size: 22px; color: #fff6dc; }
.game-body p { color: var(--muted); margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .tags i { font-style: normal; font-size: 13px; padding: 1px 10px; border-radius: 999px; border: 1px solid rgba(95,194,184,.5); color: #a6efe4; }
.go { display: block; padding: 0 18px 18px; color: var(--gold-l); font-weight: 600; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.values div { padding: 16px; border-radius: 14px; background: rgba(239,226,192,.05); border: 1px solid var(--line); }
.values b { display: block; color: var(--gold-l); font-size: 18px; } .values span { color: var(--muted); font-size: 15px; }

.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 28px; scrollbar-width: thin; }
.shots img { flex: none; width: min(240px, 62vw); border-radius: 18px; scroll-snap-align: start; border: 1px solid var(--line); }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feats div { padding: 18px; border-radius: 16px; background: rgba(239,226,192,.05); border: 1px solid var(--line); }
.feats h3 { color: var(--gold-l); font-size: 19px; margin-bottom: 6px; } .feats p { color: var(--muted); font-size: 15.5px; }
.season-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.season-row figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0f2238; }
.season-row img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.season-row figcaption { padding: 10px 12px; font-weight: 600; display: flex; justify-content: space-between; } .season-row small { color: var(--teal-l); font-weight: 400; }
.price { margin-top: 14px; font-size: 14px; color: var(--muted); }
.contact p { color: var(--muted); } .contact a { font-size: 20px; font-weight: 600; }

.foot { border-top: 1px solid var(--line); padding: 24px 16px 40px; text-align: center; color: var(--muted); font-size: 14px; }
.foot p + p { margin-top: 6px; } .foot a { color: var(--muted); }

/* ---------- 11-06 完整版 ---------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; }
.btn.gold { color: #2b1d06; background: linear-gradient(180deg, #ffe9a8, #e8b84a 60%, #d09a2c); box-shadow: 0 4px 0 #8a6a1c; }
.btn.ghost { color: var(--parch); border: 1px solid var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero.studio { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.hero-art img { width: clamp(140px, 22vw, 240px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 30px rgba(120,230,180,.35)); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
@media (max-width: 640px) { .hero.studio { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art img { width: 120px; } .hero { padding-top: 40px; } }
.game-art { position: relative; }
.pill { position: absolute; left: 14px; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(11,26,44,.82); border: 1px solid var(--gold); color: var(--gold-l); font-size: 13px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.news-list time { color: var(--teal-l); font-variant-numeric: tabular-nums; }
.mail { font-size: 22px; font-weight: 700; }
.small { font-size: 14px; } .muted { color: var(--muted); }
.store { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; padding: 8px 18px; }
.store small { font-size: 11px; opacity: .8; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: s; }
.steps li { position: relative; padding: 18px 16px 16px 58px; border-radius: 16px; background: rgba(239,226,192,.05); border: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ffe7a3, #c9a54a); color: #2b1d06; font-weight: 800; }
.steps b { display: block; color: var(--gold-l); font-size: 18px; } .steps span { color: var(--muted); font-size: 15px; }
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.subjects div { padding: 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(95,194,184,.10), rgba(95,194,184,.03)); border: 1px solid rgba(95,194,184,.3); }
.subjects b { font-size: 19px; color: #fff1c4; } .subjects em { font-style: normal; float: right; color: var(--teal-l); font-weight: 700; }
.subjects span { display: block; clear: both; margin-top: 4px; color: var(--muted); font-size: 15px; }
.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cast figure { margin: 0; padding: 16px 12px; border-radius: 16px; background: rgba(239,226,192,.05); border: 1px solid var(--line); text-align: center; }
.cast img { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 8px; image-rendering: pixelated; }
.cast img.tall { object-fit: cover; object-position: top; border-radius: 12px; }
.cast b { display: block; font-size: 18px; color: #fff6dc; } .cast span { display: block; font-size: 13px; color: var(--teal-l); }
.cast q { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); quotes: "「" "」"; }
.season-row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.season-row small.ok { color: var(--gold-l); }
.wrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; border-radius: 14px; overflow: hidden; }
.cmp th, .cmp td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp th { color: var(--muted); font-weight: 600; background: rgba(239,226,192,.05); }
.cmp th.full, .cmp td:nth-child(3) { color: #ffe7a3; }
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0 10px; }
.price-cards div { position: relative; padding: 18px; border-radius: 16px; background: rgba(239,226,192,.05); border: 1px solid var(--line); }
.price-cards .best { border-color: var(--gold-l); background: linear-gradient(180deg, rgba(232,207,134,.16), rgba(232,207,134,.04)); }
.price-cards i { position: absolute; top: -11px; right: 14px; font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffe7a3, #e8b84a); color: #3b2a10; }
.price-cards b { display: block; color: var(--gold-l); } .price-cards strong { display: block; font-size: 28px; color: #fff4d2; margin: 2px 0; } .price-cards span { color: var(--muted); font-size: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; color: #fff1c4; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--gold-l); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: var(--muted); }
.cta-end { text-align: center; padding: 32px 16px; border-radius: 20px; background: radial-gradient(120% 100% at 50% 0%, rgba(95,194,184,.15), transparent 70%); }
.cta-end img { margin: 0 auto 8px; image-rendering: pixelated; }
.cta-end p { color: var(--muted); margin-top: 6px; }
.cta-end.lost { margin-top: 64px; } .cta-end.lost h1 { font-size: 30px; color: #fff6dc; }
/* 文件頁（隱私政策、支援） */
body.doc { background: #0e1d30; }
.article { max-width: 760px; padding-top: 32px; padding-bottom: 32px; }
.article h1 { font-size: 30px; color: #fff6dc; }
.article h2 { margin: 2em 0 .5em; padding-top: .8em; border-top: 1px solid var(--line); font-size: 21px; }
.article p, .article li { margin: .45em 0; color: rgba(239,226,192,.9); }
.article .box { border: 1px solid rgba(95,194,184,.4); background: rgba(95,194,184,.08); border-radius: 12px; padding: 12px 16px; margin: 1.2em 0; }
.article b { color: var(--gold-l); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article th, .article td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.article th { color: var(--muted); }
.article code { background: rgba(239,226,192,.1); padding: 1px 6px; border-radius: 6px; }
/* 排版微調 */
.about .values, .parents .values { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.contact a { font-size: inherit; font-weight: inherit; } .contact a.mail { font-size: 22px; font-weight: 700; }
.shots img { width: min(200px, 58vw); }
.season-row figcaption { font-size: 14.5px; gap: 6px; } .season-row small { white-space: nowrap; }

/* ---------- 工作室首頁（Zenk Studio 是工作室，問路是作品之一；Hiram 11-06） ---------- */
.studio-hero { position: relative; margin: 0 -16px; padding: clamp(80px, 14vw, 150px) 16px clamp(70px, 10vw, 120px); text-align: center; overflow: hidden; }
.studio-hero .sky { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 28% 64%, #fff7 50%, transparent 51%),
    radial-gradient(2px 2px at 41% 18%, #fffa 50%, transparent 51%), radial-gradient(1px 1px at 57% 40%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 73% 14%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 86% 52%, #fff7 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 28%, #fffb 50%, transparent 51%), radial-gradient(1px 1px at 7% 76%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 72%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 35% 38%, #fff6 50%, transparent 51%),
    radial-gradient(60% 70% at 50% 110%, rgba(40,110,105,.55), transparent 70%),
    linear-gradient(180deg, #0b1a2c, #11253f 70%, #0b1a2c); }
.studio-hero .kick { letter-spacing: 3px; font-size: 13px; }
.wordmark { font-family: "Inter Display", "Inter", system-ui, sans-serif; font-weight: 800; letter-spacing: -1px; font-size: clamp(52px, 11vw, 112px); line-height: 1; margin: 18px 0 0; color: #fff6dc; }
.studio-hero .lead { margin: 22px auto 0; font-size: clamp(18px, 2.6vw, 22px); color: rgba(255,246,220,.85); }
.cta-row.center { justify-content: center; }
.game-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 760px) { .game-grid { grid-template-columns: 1fr; } }
.game-card.next { display: flex; flex-direction: column; border-style: dashed; background: transparent; }
.next-art { flex: 1; min-height: 180px; display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(239,226,192,.03) 0 12px, transparent 12px 24px); }
.next-art span { font-size: 64px; font-weight: 800; color: rgba(232,207,134,.35); }
.about .intro { color: var(--muted); max-width: 46em; margin-bottom: 20px; font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.contact-grid div { padding: 18px; border-radius: 16px; background: rgba(239,226,192,.05); border: 1px solid var(--line); }
.contact-grid b { display: block; color: var(--gold-l); font-size: 18px; } .contact-grid span { display: block; color: var(--muted); font-size: 15px; margin: 2px 0 8px; }
.contact-grid a.mail { font-size: 19px; }
/* 作品頁頂端：工作室 › 作品 */
.crumb { display: flex; align-items: center; gap: 8px; }
.crumb .sep { opacity: .45; }
.crumb .game { color: var(--gold-l); font-weight: 700; text-decoration: none; }
.by { color: var(--muted); font-size: 14px; }
.studio-hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.top nav a { white-space: nowrap; }
@media (max-width: 600px) {
  .crumb .brand { font-size: 0; gap: 0; } .crumb .brand .mark { font-size: 16px; }
  .crumb + nav a:not(:last-child) { display: none; }
  body:not(.doc) .crumb + nav a:last-child { display: inline; }
}
