/* 極速快車手 Ultimate 官方網站（R86 改版）：夜間街頭＋精品車廠風格。只用本機字型、不載入外部資源。 */
:root {
  --bg: #07090d; --bg2: #0c1016; --surface: #11161e; --surface2: #171e28;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .16);
  --text: #eef2f6; --soft: #c3cbd5; --muted: #8b96a5;
  --accent: #ff6a1f; --accent-hi: #ff8a45; --cyan: #57c8f2;
  --ok: #3ecf80; --bad: #ff5a4a;
  --gold: #f3c64b; --silver: #c9d3dd; --bronze: #d99a62;
  --bar-speed: #ff6a1f; --bar-accel: #f3c64b; --bar-crash: #57c8f2; --bar-boost: #b48cff;
  --r: 10px; --r-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head: 68px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.75; letter-spacing: .01em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p a, .ticks a, .faq a { color: var(--accent-hi); text-decoration: underline; text-decoration-color: rgba(255, 138, 69, .4); text-underline-offset: 3px; }
p a:hover, .ticks a:hover, .faq a:hover { text-decoration-color: currentColor; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 106, 31, .35); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---- 字級 ---- */
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 800; letter-spacing: .02em; }
.h-xl { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.2; }
.h-lg { font-size: clamp(24px, 2.8vw, 34px); }
.h-md { font-size: 22px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .24em; color: var(--accent); }
.eyebrow::before { content: ''; display: inline-block; width: 22px; height: 2px; background: currentColor; vertical-align: middle; margin: -3px 10px 0 0; }

/* ---- 按鈕 ---- */
.btn {
  --bc: var(--line2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--bc); background: transparent;
  color: var(--text); font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-decoration: none;
  cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), border-color .25s, background-color .25s, box-shadow .25s, color .25s;
}
.btn:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.primary { border-color: transparent; background: var(--accent); color: #fff; box-shadow: 0 6px 22px -8px rgba(255, 106, 31, .7); }
.btn.primary::after {           /* 滑過時一道光掃過 */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.btn.primary:hover { background: var(--accent-hi); box-shadow: 0 10px 28px -8px rgba(255, 106, 31, .85); }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.ghost { background: rgba(7, 9, 13, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.btn.wide { width: 100%; }
.more-link { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--soft); text-decoration: none; white-space: nowrap; }
.more-link::after { content: ''; display: inline-block; width: 18px; height: 1px; background: currentColor; margin-left: 10px; vertical-align: middle; transition: width .3s var(--ease); }
.more-link:hover { color: var(--text); }
.more-link:hover::after { width: 30px; }

/* ---- 上方選單 ---- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--head); transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.top.solid, body:not(.at-home) .top { background: rgba(7, 9, 13, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.top-in { height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
.brand-ult { font-size: 12px; font-weight: 800; font-style: italic; letter-spacing: .28em; color: var(--soft); }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav a { position: relative; padding: 8px 12px; text-decoration: none; color: var(--soft); font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on { color: var(--text); }
.nav .m-only { display: none; }
.top-act { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.status { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--soft); white-space: nowrap; margin-right: 6px; }
.status .dot, .meta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status.up .dot, .meta-dot.up { background: var(--ok); box-shadow: 0 0 0 3px rgba(62, 207, 128, .2); }
.status.down .dot, .meta-dot.down { background: var(--bad); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 50%; background: rgba(7, 9, 13, .4); cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

main { min-height: 70vh; }
.page:not(#p-home) { padding-bottom: 72px; }

/* ---- 首頁：主視覺 ---- */
.hero { position: relative; min-height: min(100svh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero { align-items: center; }
.hero-bg { position: absolute; inset: -60px; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(36px) saturate(1.2) brightness(.55); transform: scale(1.1); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(7, 9, 13, .92) 0%, rgba(7, 9, 13, .7) 45%, rgba(7, 9, 13, .35) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 13, 0) 35%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-top: calc(var(--head) + 56px); padding-bottom: clamp(56px, 9vh, 104px); }
.hero-copy { min-width: 0; }
.hero-art { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1); transition: transform .6s var(--ease); will-change: transform; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .1), transparent 35%); pointer-events: none; }
.hero-title { display: flex; flex-direction: column; margin: 0 0 22px; }
.ht-zh { font-size: clamp(44px, 6.4vw, 92px); font-weight: 900; line-height: 1.04; letter-spacing: .06em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.ht-en { margin-top: 10px; font-size: clamp(15px, 1.9vw, 22px); font-weight: 800; font-style: italic; letter-spacing: .62em; color: var(--accent);
  display: flex; align-items: center; gap: 16px; }
.ht-en::after { content: ''; height: 2px; width: clamp(60px, 14vw, 180px); background: linear-gradient(90deg, var(--accent), transparent); }
.hero-lead { max-width: 33em; margin: 0 0 32px; font-size: clamp(16px, 1.5vw, 18px); color: var(--soft); line-height: 1.9; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin: 36px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.hero-meta b { color: var(--text); font-weight: 700; margin-left: 6px; }
.hero-meta .sep { display: inline-block; width: 1px; height: 12px; background: var(--line2); margin: 0 8px; }
.hero-lines { position: absolute; left: 0; bottom: 12%; width: 40%; height: 60px; pointer-events: none; z-index: -1; }
.hero-lines i { position: absolute; left: 0; height: 1px; background: linear-gradient(270deg, transparent, rgba(255, 138, 69, .7)); }
.hero-lines i:nth-child(1) { top: 0; width: 70%; } .hero-lines i:nth-child(2) { top: 22px; width: 100%; opacity: .6; } .hero-lines i:nth-child(3) { top: 44px; width: 45%; opacity: .4; }

/* 開場：只有主視覺文字淡入一次 */
.js .intro { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .intro:nth-child(2) { animation-delay: .08s; } .js .intro:nth-child(3) { animation-delay: .16s; }
.js .intro:nth-child(4) { animation-delay: .24s; } .js .intro:nth-child(5) { animation-delay: .32s; }
.js .hero-art.intro { animation: art 1.1s var(--ease) .15s forwards; transform: translateX(30px) scale(.98); }
@keyframes art { to { opacity: 1; transform: none; } }
.js .hero-lines i { transform: scaleX(0); transform-origin: left; animation: line 1.4s var(--ease) .35s forwards; }
.js .hero-lines i:nth-child(2) { animation-delay: .5s; } .js .hero-lines i:nth-child(3) { animation-delay: .65s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line { to { transform: scaleX(1); } }

/* 捲動進場：只有區塊層級，淡入＋小位移 */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---- 首頁：三步驟（橫向） ---- */
.start { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.start li + li { border-left: 1px solid var(--line); }
.start a { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 28px 28px 28px 4px; text-decoration: none; height: 100%; transition: background-color .3s; }
.start li + li a { padding-left: 28px; }
.start .no { grid-row: span 2; font-size: 38px; font-weight: 900; font-style: italic; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); transition: -webkit-text-stroke-color .3s, color .3s; }
.start .st-h { font-size: 18px; font-weight: 800; }
.start .st-p { color: var(--muted); font-size: 14px; }
.start a:hover { background: linear-gradient(180deg, rgba(255, 106, 31, .07), transparent); }
.start a:hover .no { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

/* ---- 首頁：特色（非對稱） ---- */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: center; padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(80px, 11vw, 140px); }
.feature-art { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 8 / 5; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.feature-art::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-art:hover img { transform: scale(1.04); }
.feature-art::before { content: ''; position: absolute; left: -1px; top: 24px; bottom: 24px; width: 3px; background: var(--accent); z-index: 1; }
.feature-text .h-xl { margin-bottom: 28px; }
.flist { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.flist li { counter-increment: f; border-top: 1px solid var(--line); }
.flist li:last-child { border-bottom: 1px solid var(--line); }
.flist a { display: grid; grid-template-columns: 40px 1fr; padding: 18px 0; text-decoration: none; transition: padding-left .35s var(--ease); }
.flist a::before { content: '0' counter(f); grid-row: span 2; font-size: 13px; font-weight: 800; color: var(--accent); padding-top: 4px; }
.flist b { font-size: 18px; }
.flist span { color: var(--muted); font-size: 15px; }
.flist a:hover { padding-left: 8px; }
.flist a:hover b { color: var(--accent-hi); }

/* ---- 首頁：消息＋城戰 ---- */
.split { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(80px, 10vw, 120px); align-items: start; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px auto 1fr; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline li.muted { display: block; }
.timeline .date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.timeline .txt { text-decoration: none; min-width: 0; overflow-wrap: anywhere; transition: color .2s; }
.timeline .txt:hover { color: var(--accent-hi); }
.split-cb { position: relative; padding: 32px; border-radius: var(--r-lg); background:
  radial-gradient(120% 90% at 100% 0%, rgba(255, 106, 31, .18), transparent 60%), var(--surface); border: 1px solid var(--line); overflow: hidden; }
.split-cb::after { content: ''; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px; border: 1px solid rgba(255, 106, 31, .25); border-radius: 50%; pointer-events: none; }
.cb-big { margin: 4px 0 6px; font-size: clamp(26px, 3vw, 34px); font-weight: 900; letter-spacing: .04em; line-height: 1.25; }
.cb-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.live { color: var(--accent); font-weight: 800; }

/* ---- 首頁：車庫橫向 ---- */
.garage { padding: clamp(64px, 8vw, 96px) 0; background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); }
.garage .sec-head { margin-bottom: 6px; }
#g-note { margin: 0 0 22px; min-height: 1.5em; }
.rail { --pad: max(24px, calc((100vw - 1200px) / 2 + 24px)); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px var(--pad) 18px; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.rail:focus-visible { outline-offset: -2px; }
.rcar { flex: 0 0 236px; scroll-snap-align: start; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .35s var(--ease), border-color .35s; }
.rcar:hover { transform: translateY(-4px); border-color: rgba(255, 106, 31, .45); }
.rcar .thumb { width: 72px; height: 72px; margin-bottom: 14px; }
.rcar .nm { font-weight: 800; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.rcar .md { color: var(--muted); font-size: 13px; margin-bottom: 12px; overflow-wrap: anywhere; }
.rcar .sp { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); }
.rcar .sp b { font-size: 26px; font-style: italic; color: var(--text); font-variant-numeric: tabular-nums; }
.rail .empty { padding: 20px 0; }

/* ---- 首頁：頒獎台 ---- */
.podium-sec { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); }
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.podium li { padding: 26px 24px 8px 0; min-width: 0; }
.podium li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.podium li.muted { grid-column: 1 / -1; padding-left: 0; border: 0; }
.podium .pl { font-size: 13px; font-weight: 800; letter-spacing: .2em; }
.podium .p1 .pl { color: var(--gold); } .podium .p2 .pl { color: var(--silver); } .podium .p3 .pl { color: var(--bronze); }
.podium .t { display: block; margin: 6px 0 4px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; font-style: italic; font-variant-numeric: tabular-nums; line-height: 1.1; }
.podium .p1 .t { font-size: clamp(36px, 4.6vw, 60px); }
.podium .nm { font-weight: 700; overflow-wrap: anywhere; }
.podium .car { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }

/* ---- 首頁：收尾大圖 ---- */
.world { position: relative; isolation: isolate; overflow: hidden; }
.world-img { width: 100%; aspect-ratio: 1024 / 340; min-height: 240px; object-fit: cover; object-position: 50% 50%; }
.world-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 9, 13, 0) 22%, rgba(7, 9, 13, 0) 55%, var(--bg) 100%); }
.world-in { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; margin-top: -40px; padding-bottom: clamp(72px, 9vw, 112px); }

/* ---- 內頁標題 ---- */
.phead { position: relative; padding: calc(var(--head) + clamp(40px, 6vw, 72px)) 0 clamp(28px, 4vw, 44px); margin-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 140% at 85% 0%, rgba(87, 200, 242, .09), transparent 60%), radial-gradient(50% 120% at 10% 0%, rgba(255, 106, 31, .08), transparent 60%); }
.phead-p { margin: 14px 0 0; max-width: 40em; color: var(--soft); }
.foot-note { color: var(--muted); font-size: 13px; margin-top: 18px; }

/* ---- 通用面板 ---- */
.panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.card { margin-bottom: 18px; }
.card h2 { font-size: 22px; margin-bottom: 12px; }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; }
.card.empty { padding: 40px 16px; }
.err { color: var(--bad); }
.sub { color: var(--muted); font-size: 14px; margin: -4px 0 14px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 22px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 2px; background: var(--accent); }

/* ---- 註冊 ---- */
.join { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.join .panel { max-width: 640px; }
.fld { display: block; margin-bottom: 18px; font-weight: 700; font-size: 15px; }
.fld input { display: block; width: 100%; margin-top: 8px; min-height: 48px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
.fld input:hover { border-color: rgba(255, 255, 255, .3); }
.fld input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 106, 31, .2); }
.fld small { display: block; margin-top: 6px; font-weight: 400; font-size: 13px; color: var(--muted); }
.fld .q { color: var(--accent-hi); }
.qrow { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.qrow input { margin-top: 0; max-width: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 16px; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.warn { color: var(--gold); background: rgba(243, 198, 75, .08); border: 1px solid rgba(243, 198, 75, .25); border-radius: var(--r); padding: 10px 14px; }
.msg { min-height: 1.6em; margin: 6px 0 14px; font-size: 15px; color: var(--soft); }
.msg.bad { color: var(--bad); }
.done { text-align: left; }
.ok-big { font-size: 30px; font-weight: 900; color: var(--ok); margin: 0 0 8px; }
.join-side { padding-top: 8px; }
.join-side .h-md { margin-bottom: 12px; }
.join-side .ticks { margin-bottom: 18px; color: var(--soft); }

/* ---- 下載 ---- */
.dl { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg);
  background: linear-gradient(100deg, rgba(255, 106, 31, .14), rgba(255, 106, 31, 0) 55%), var(--surface); border: 1px solid rgba(255, 106, 31, .3); }
.dl-file { display: flex; align-items: center; gap: 16px; min-width: 0; }
.dl-file b { display: block; font-size: 19px; overflow-wrap: anywhere; }
.dl-file span { display: block; }
.dl-ico { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--accent); position: relative; }
.dl-ico::before { content: ''; position: absolute; left: 22px; top: 11px; width: 4px; height: 18px; background: #fff; border-radius: 2px; }
.dl-ico::after { content: ''; position: absolute; left: 16px; top: 21px; width: 12px; height: 12px; border-right: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(45deg); border-radius: 2px; }
.flow { list-style: none; margin: clamp(36px, 5vw, 56px) 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.flow li { position: relative; padding-top: 18px; border-top: 2px solid var(--line2); }
.flow li:first-child { border-top-color: var(--accent); }
.flow .no { display: block; font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--accent); }
.flow b { display: block; font-size: 18px; margin: 4px 0; }
.flow span:last-child { color: var(--muted); font-size: 15px; }
.faq-h { margin-bottom: 12px; }
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent-hi); }
.faq details p { margin: 0 0 18px; color: var(--soft); }

/* ---- 新手指南 ---- */
.guide-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--head) + 24px); display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc a { padding: 8px 0 8px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.guide { max-width: 760px; }
.guide section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.guide section:last-child { border-bottom: 0; }
.guide .h-md { margin-bottom: 12px; }
.guide p { margin: 0 0 12px; color: var(--soft); }
.guide .ticks { color: var(--soft); }

/* ---- 公告 ---- */
.notice-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r); margin-bottom: 18px; }
.notice-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--soft); }
.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 14px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head) + 24px); }
.news li:first-child { border-top: 0; }
.news .row { display: flex; gap: 12px; align-items: baseline; }
.news li.more .row { cursor: pointer; }
.news li.more .row .txt::after { content: ' ▸'; color: var(--muted); }
.news li.more.open .row .txt::after { content: ' ▾'; }
.news li.more .row:hover .txt { color: var(--accent-hi); }
.news li.target { background: rgba(255, 106, 31, .08); border-radius: var(--r); padding-left: 12px; padding-right: 12px; }
.news .detail { margin: 10px 0 4px; }
.news .detail-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; margin-bottom: 10px; color: var(--soft); }
.news .detail .btn { color: #fff; background: var(--accent); border-color: transparent; text-decoration: none; }
.tag { flex: none; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--soft); white-space: nowrap; }
.tag.t-更新 { color: var(--gold); border-color: rgba(243, 198, 75, .35); }
.tag.t-活動 { color: var(--ok); border-color: rgba(62, 207, 128, .35); }
.tag.t-維護 { color: var(--bad); border-color: rgba(255, 90, 74, .35); }
.news .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.news .date { flex: none; color: var(--muted); font-size: 14px; }

/* ---- 城區爭奪戰 ---- */
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cb { background: var(--surface); padding: 18px 20px; min-width: 0; transition: background-color .25s; }
.cb:hover { background: var(--surface2); }
.cb.major { background: linear-gradient(135deg, rgba(255, 106, 31, .14), transparent 70%), var(--surface); }
.cb .ch { color: var(--muted); font-size: 13px; }
.cb .crew { font-weight: 800; font-size: 18px; margin: 2px 0; overflow-wrap: anywhere; }
.cb .crew.none { color: var(--muted); font-weight: 400; font-size: 15px; }

/* ---- 排行榜 ---- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; }
.seg button, .pill { font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 0 18px; min-height: 40px; cursor: pointer; transition: color .2s, background-color .25s; }
.seg button:hover, .pill:hover { color: var(--text); }
.seg button.on, .pill.on { color: #fff; background: var(--accent); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.pill { font-size: 14px; min-height: 36px; border: 1px solid var(--line2); }
.pill.on { border-color: transparent; }
table.rk { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rk th, .rk td { text-align: left; padding: 12px 10px; border-top: 1px solid var(--line); }
.rk th { color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .06em; border-top: 0; }
.rk tbody tr { transition: background-color .2s; }
.rk tbody tr:hover { background: rgba(255, 255, 255, .03); }
.rk td.n, .rk th.n { text-align: right; }
.rk .pos { width: 52px; font-weight: 900; font-style: italic; color: var(--muted); }
.rk tr.p1 .pos { color: var(--gold); } .rk tr.p2 .pos { color: var(--silver); } .rk tr.p3 .pos { color: var(--bronze); }
.rk .who { font-weight: 700; overflow-wrap: anywhere; }
.rk .who small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.card select, .filters select, .filters input { min-height: 44px; padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: inherit; }

/* ---- 圖鑑 ---- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input[type=search] { flex: 1 1 240px; min-width: 0; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); }
.count { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.car { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; min-width: 0; transition: border-color .3s, transform .3s var(--ease); }
.car:hover { border-color: rgba(255, 106, 31, .4); transform: translateY(-2px); }
.car-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; min-width: 0; }
.car-head > div { min-width: 0; }
.thumb { width: 64px; height: 64px; flex: none; border-radius: var(--r); background: var(--bg2); object-fit: contain; }
.thumb.ph { display: grid; place-items: center; font-size: 26px; }
.car-name { font-weight: 800; overflow-wrap: anywhere; }
.car-model { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge { font-size: 12px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line2); color: var(--soft); }
.stats { display: grid; grid-template-columns: auto 1fr 36px; gap: 5px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.stats > span:nth-child(3n) { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; }
.b-speed i { background: var(--bar-speed); } .b-accel i { background: var(--bar-accel); }
.b-crash i { background: var(--bar-crash); } .b-boost i { background: var(--bar-boost); }
.price { margin-top: 12px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.part { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface); min-width: 0; }
.part .thumb { width: 48px; height: 48px; }
.part .info { flex: 1; min-width: 0; }
.part .nm { font-weight: 700; overflow-wrap: anywhere; }
.part .meta { color: var(--muted); font-size: 13px; }
.part .price { margin: 0; flex: none; }
.list .empty { grid-column: 1 / -1; background: var(--surface); }
.more { display: flex; margin: 24px auto 0; }

/* ---- 頁尾 ---- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.foot-brand img { height: 40px; width: auto; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: flex-end; }
.foot-nav a { color: var(--soft); text-decoration: none; font-size: 14px; padding: 8px 0; }
.foot-nav a:hover { color: var(--accent-hi); }
.foot-p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }

/* ---- 平板 ---- */
@media (max-width: 1080px) {
  .top-in { gap: 16px; }
  .nav a { padding: 8px 8px; font-size: 14px; }
  .nav a::after { left: 8px; right: 8px; }
  .status .st-text { display: none; }
  .status { margin-right: 0; }
  .split { grid-template-columns: 1fr; }
  .join { grid-template-columns: 1fr; }
}
/* 選單收進按鈕 */
@media (max-width: 900px) {
  :root { --head: 60px; }
  .wrap, .top-in { padding: 0 16px; }
  .rail { --pad: 16px; }
  .brand img { height: 34px; }
  .brand-ult { display: none; }
  .menu-btn { display: block; }
  .d-only { display: none; }
  .nav { position: fixed; top: var(--head); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100svh - var(--head)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .menu-open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .menu-open .top { background: var(--bg); }
  .nav .m-first { order: -1; }
  .nav .m-only { display: block; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a.on { color: var(--accent-hi); }
  .feature { grid-template-columns: 1fr; }
  .hero-in { grid-template-columns: 1fr; padding-top: calc(var(--head) + 28px); }
  .hero-art { order: -1; max-width: 640px; }
  .start { grid-template-columns: 1fr; }
  .start li + li { border-left: 0; border-top: 1px solid var(--line); }
  .start a, .start li + li a { padding: 20px 4px; }
  .guide-wrap { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .toc a { border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px; margin: 0; font-size: 14px; }
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .podium { grid-template-columns: 1fr; }
  .podium li, .podium li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
}
/* 手機 */
@media (max-width: 560px) {
  body { font-size: 15px; }
  .top-act .btn.sm { padding: 0 14px; }
  .hero { min-height: 0; }
  .hero-art { border-radius: var(--r); }
  .ht-en { letter-spacing: .4em; }
  .cta .btn { flex: 1 1 100%; }
  .hero-lines { display: none; }
  .timeline li { grid-template-columns: auto 1fr; }
  .timeline .date { grid-column: 1 / -1; font-size: 13px; }
  .split-cb { padding: 24px; }
  .rcar { flex-basis: 200px; }
  .hide-s { display: none; }
  .rk th, .rk td { padding: 10px 6px; }
  .rk .pos { width: 40px; }
  .seg { display: flex; border-radius: var(--r-lg); }
  .seg button { flex: 1 1 auto; padding: 0 12px; }
  .grid, .list { grid-template-columns: 1fr; }
  .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb { padding: 14px; }
  .cb .crew { font-size: 16px; }
  .world-in { margin-top: 0; }
  .news .row { flex-wrap: wrap; }
  .news .date { width: 100%; order: 3; font-size: 13px; }
  .qrow input { max-width: none; flex: 1; }
}
@media (max-width: 380px) {
  .status { display: none; }
}
/* 不支援滑鼠懸停的裝置：不做懸停位移 */
@media (hover: none) {
  .rcar:hover, .car:hover { transform: none; }
  .flist a:hover { padding-left: 0; }
  .feature-art:hover img { transform: none; }
}
/* 減少動態效果 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .intro, .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-lines i { transform: none; }
}
