/* =========================================================
   Vectra — prototype stylesheet
   Visual language taken from the in-game UI:
   frosted glass panels, thin white borders, ghost English type.
   ========================================================= */
:root {
  --navy-950: #050d16;
  --navy-900: #081522;
  --navy-800: #0d2033;
  --panel: rgba(18, 48, 78, .55);
  --glass: rgba(255, 255, 255, .09);
  --glass-strong: rgba(255, 255, 255, .16);
  --line: rgba(255, 255, 255, .32);
  --line-soft: rgba(255, 255, 255, .14);
  --text: #f3f7fb;
  --muted: rgba(243, 247, 251, .7);
  --accent: #7fd4ff;
  --accent-deep: #2f8fd6;
  --grass: #4fbf43;
  --flag: #e8463c;
  --radius: 6px;
  --font-sans: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Noto Sans TC", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* film grain over everything — hides upscaling softness of the placeholder renders */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-family: var(--font-display); font-weight: 500; letter-spacing: .28em;
  font-size: 13px; color: var(--accent); text-transform: uppercase; margin-bottom: 18px;
}
.sec-head { position: relative; z-index: 2; padding: 0 var(--gutter); text-align: center; }
.sec-head h2 { font-size: clamp(32px, 5vw, 64px); }
.sec-sub { color: var(--muted); margin-top: 16px; font-size: clamp(15px, 1.3vw, 18px); }

/* ---------- Glass ---------- */
.glass-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.25);
  overflow: hidden;
}
.ghost {
  position: absolute; left: 0; right: 0; top: 18px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.2vw, 60px);
  letter-spacing: .02em; line-height: 1; white-space: nowrap; overflow: hidden;
  color: rgba(255,255,255,.14); padding-left: 14px; pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: .04em;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-solid { background: var(--text); color: var(--navy-900); }
.btn-solid:hover { background: var(--accent); }
.btn-glass { border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: var(--glass-strong); border-color: rgba(255,255,255,.6); }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; margin-top: 22px; font-weight: 500; }
.link-arrow::after, .arrow {
  content: ""; display: inline-block; width: 30px; height: 1px; background: currentColor; position: relative;
  transition: width .35s;
}
.link-arrow:hover::after { width: 46px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--navy-950);
}
.pl-inner { width: min(320px, 70vw); text-align: center; }
.pl-logo { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: .4em; padding-left: .4em; }
.pl-meter { font-family: var(--font-display); font-size: 18px; color: var(--muted); margin: 8px 0 18px; }
.pl-meter .pl-num { color: var(--text); font-size: 22px; margin-right: 4px; }
.pl-bar { height: 1px; background: var(--line-soft); }
.pl-bar i { display: block; height: 100%; width: 0; background: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 16px; left: var(--gutter); right: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 60px; padding: 0 12px 0 22px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background .4s, border-color .4s, transform .5s cubic-bezier(.2,.8,.2,1);
}
.nav.is-solid {
  background: rgba(10, 28, 46, .5); border-color: var(--line-soft);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.nav.is-hidden { transform: translateY(-120%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: .3em; }
.brand-mark { width: 26px; height: 26px; color: var(--accent); }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; }
.nav-links a { position: relative; color: var(--muted); transition: color .3s; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--text); transform: scaleX(0); transition: transform .35s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line-soft); border-radius: 999px; font-family: var(--font-display); font-size: 15px; letter-spacing: .08em;
}
.lang-toggle i { width: 1px; height: 12px; background: var(--line); }
.lang-toggle span { color: rgba(255,255,255,.45); transition: color .3s; }
html[lang="zh-Hant"] .lang-toggle [data-lang="zh"], html[lang="en"] .lang-toggle [data-lang="en"] { color: var(--text); }

/* ---------- Pin meter ---------- */
.pin-meter {
  position: fixed; z-index: 40; right: var(--gutter); bottom: 28px;
  display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 12px; row-gap: 8px;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-display); opacity: 0; transform: translateY(20px);
}
.pm-label { font-family: var(--font-sans); font-size: 12px; color: var(--muted); }
.pm-value b { font-size: 26px; font-weight: 600; line-height: 1; margin-right: 4px; font-variant-numeric: tabular-nums; }
.pm-value small { font-size: 13px; color: var(--muted); }
.pm-track { grid-column: 1 / -1; height: 2px; background: var(--line-soft); position: relative; overflow: hidden; }
.pm-track i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.pin-meter.is-holed .pm-value b { color: var(--accent); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.hero-scene { position: absolute; inset: 0; }
.layer { position: absolute; inset: -6%; will-change: transform; }
.layer img, .layer svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.layer-sky { background: linear-gradient(180deg, #3d6fa6 0%, #4f86bd 45%, #84b2d6 80%, #b9d4e6 100%); }
.cloud { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,0)); filter: blur(6px); }
.c1 { width: 38vw; height: 9vw; top: 14%; left: -6%; animation: drift 60s linear infinite; }
.c2 { width: 26vw; height: 6vw; top: 6%; left: 30%; opacity: .6; animation: drift 80s linear infinite -20s; }
.c3 { width: 30vw; height: 7vw; top: 22%; left: 12%; opacity: .5; animation: drift 70s linear infinite -40s; }
@keyframes drift { from { transform: translateX(-10vw); } to { transform: translateX(40vw); } }
.layer-near img { object-position: center bottom; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,13,22,.55) 0%, rgba(5,13,22,.15) 45%, rgba(5,13,22,0) 70%),
    linear-gradient(180deg, rgba(5,13,22,.25) 0%, rgba(5,13,22,0) 25%, rgba(5,13,22,0) 70%, var(--navy-950) 100%);
}
.shot-path { fill: none; stroke: url(#tracerGrad); stroke-width: 2.4; stroke-linecap: round; filter: url(#glow); }
.shot-ball { fill: #fff; filter: url(#glow); }
.shot-land circle { fill: #fff; }
.shot-land .ripple { fill: none; stroke: #fff; stroke-width: 1; }

.hud-chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 8px 14px 8px 12px; border-left: 2px solid var(--text);
  background: rgba(14, 38, 60, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; color: var(--muted);
}
.hud-chip b { font-family: var(--font-display); font-size: 22px; color: var(--text); font-weight: 600; line-height: 1.1; }
.hud-chip b small { font-family: var(--font-sans); font-size: 13px; font-weight: 400; }
.chip-distance { position: absolute; left: 56%; top: 13%; opacity: 0; }

.hero-content {
  position: absolute; z-index: 5; left: var(--gutter); bottom: clamp(90px, 16vh, 170px);
  max-width: min(760px, 92vw);
}
.hero-title { font-size: clamp(42px, 7.2vw, 108px); font-weight: 700; letter-spacing: .02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
html[lang="en"] .hero-title { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; font-size: clamp(52px, 8.4vw, 128px); line-height: 1; }
.hero-sub { margin-top: 22px; max-width: 520px; color: var(--muted); font-size: clamp(15px, 1.25vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.scroll-hint {
  position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .2em; color: var(--muted);
}
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); animation: hint 2s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- MODES ---------- */
.modes { position: relative; min-height: 100vh; padding: 160px 0 180px; overflow: hidden; }
.modes-bg { position: absolute; inset: -10% 0; }
.modes-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) brightness(.8); transition: filter .8s; transform: scale(1.1); }
.modes-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-950) 0%, rgba(5,13,22,.25) 25%, rgba(5,13,22,.25) 75%, var(--navy-950) 100%); }
.ghost-band { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 2vw; pointer-events: none; }
.ghost-row {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(80px, 13vw, 220px); line-height: .9;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18);
}
.ghost-row.r2 { -webkit-text-stroke: 0; color: rgba(255,255,255,.06); }
.mode-cards {
  position: relative; z-index: 2; margin: 70px auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1180px;
  perspective: 1200px;
}
.mode-card { aspect-ratio: 3 / 4.2; transform-style: preserve-3d; transition: border-color .4s, background .4s; cursor: pointer; }
.mode-card:hover { border-color: rgba(255,255,255,.7); background: linear-gradient(160deg, rgba(255,255,255,.24), rgba(255,255,255,.08)); }
.mc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 26px 30px; transform: translateZ(40px); }
.mc-body h3 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 10px; }
html[lang="en"] .mc-body h3 { font-family: var(--font-display); font-weight: 600; }
.mc-sub { font-size: 15px; font-weight: 500; }
.mc-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.mode-card .arrow { margin-top: 22px; }
.mode-card:hover .arrow { width: 48px; }
.arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- EXPERIENCE (HUD) ---------- */
.experience { position: relative; }
.exp-stage { position: relative; height: 100vh; overflow: hidden; }
.exp-bg { position: absolute; inset: 0; }
.exp-bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 75%; }
.exp-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,13,22,.6) 0%, rgba(5,13,22,0) 18%), radial-gradient(ellipse at 60% 55%, rgba(5,13,22,0) 30%, rgba(5,13,22,.55) 100%); }
.hud {
  position: absolute; z-index: 3; color: var(--text); font-size: 12px;
  background: var(--panel); border: 1px solid rgba(255,255,255,.18); border-radius: 4px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.hud small { display: block; color: var(--muted); font-size: 11px; }
.hud b { font-weight: 500; }
.hud-score { left: 3vw; top: 110px; width: 300px; }
.hs-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-left: 3px solid var(--text); }
.hs-head b { font-size: 16px; }
.menu-ico { width: 14px; height: 10px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; position: relative; }
.menu-ico::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: #fff; }
.hs-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(47,143,214,.45); }
.hs-rank { font-family: var(--font-display); font-size: 18px; }
.hs-avatar { width: 22px; height: 22px; border-radius: 50%; background: #fff; position: relative; }
.hs-avatar::after { content: ""; position: absolute; left: 7px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: #2a4b6a; box-shadow: 0 8px 0 2px #2a4b6a; clip-path: inset(0 0 -6px 0); }
.hs-strokes { margin-left: auto; font-family: var(--font-display); font-size: 16px; }
.hud-distance { left: 52%; top: 26%; padding: 8px 14px; border: 0; border-left: 2px solid #fff; border-radius: 0; }
.hud-distance b { font-family: var(--font-display); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-distance b small { display: inline; font-family: var(--font-sans); font-size: 14px; color: var(--text); }
.hud-distance > span { display: block; color: var(--muted); }
.hud-map { right: 3vw; top: 100px; width: 170px; padding: 0 0 8px; overflow: hidden; }
.hm-head { display: flex; justify-content: space-between; padding: 6px 10px; font-size: 11px; }
.hm-head b { font-family: var(--font-display); font-size: 16px; }
.minimap { display: block; width: calc(100% - 16px); margin: 0 8px; border-radius: 3px; }
.hud-wind { right: 3vw; top: calc(100px + 360px); display: flex; align-items: center; gap: 10px; padding: 8px 12px; width: 170px; }
.wind-ico { width: 18px; height: 18px; border: 1.5px solid #fff; border-radius: 50%; position: relative; }
.wind-ico::after { content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 1.5px; background: #fff; box-shadow: 0 -3px 0 #fff; }
.hud-club {
  right: 3vw; bottom: 4vh; display: flex; align-items: center;
  background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.tee-dial {
  position: relative; z-index: 2; flex: none; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(120,150,130,.55), rgba(40,70,60,.75));
  border: 2px solid rgba(255,255,255,.45); box-shadow: 0 6px 20px rgba(0,0,0,.35), inset 0 0 0 5px rgba(255,255,255,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tee-ball {
  position: absolute; left: 50%; top: 18px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff 0 30%, #e6e9ea 60%, #b9bfc2 100%);
  box-shadow: inset -2px -3px 5px rgba(0,0,0,.18);
}
.tee-ball::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; opacity: .35;
  background: radial-gradient(circle, rgba(0,0,0,.35) 0 1px, transparent 1.5px) 0 0 / 5px 5px;
}
.tee-peg { position: absolute; left: 50%; top: 46px; width: 12px; height: 9px; margin-left: -6px; background: linear-gradient(#f2f2f2, #cfcfcf); clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%); }
.tee-tag {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  padding: 1px 10px; border-radius: 999px; background: rgba(20,40,45,.9); border: 1px solid rgba(255,255,255,.35);
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .08em;
}
.hud-club ul { display: grid; gap: 4px; margin-left: -18px; }
.hud-club li {
  position: relative; width: 210px; padding: 1px 30px 2px 30px;
  background: rgba(40, 88, 98, .62); border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hud-club li small { font-size: 10px; line-height: 1.2; color: rgba(255,255,255,.6); }
.hud-club li b { display: block; font-size: 13px; line-height: 1.3; }
.hud-club .chev { position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); }

.exp-copy {
  position: absolute; z-index: 4; left: 3vw; bottom: 4vh;
  width: min(400px, 40vw); padding: 26px 30px 20px;
  background: linear-gradient(160deg, rgba(8,21,34,.82), rgba(8,21,34,.6));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.exp-copy h2 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 22px; }
.exp-steps li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); opacity: .35; transition: opacity .5s; }
.exp-steps li.is-active { opacity: 1; }
.exp-steps li > span { font-family: var(--font-display); color: var(--accent); font-size: 15px; padding-top: 2px; }
.exp-steps b { font-size: 16px; }
.exp-steps p { font-size: 13px; color: var(--muted); }

/* ---------- COURSES ---------- */
.courses { position: relative; background: var(--navy-950); }
.courses-pin { position: relative; height: 100vh; overflow: hidden; }
.courses-head { position: absolute; left: 0; right: 0; top: 110px; text-align: left; pointer-events: none; z-index: 5; }
.courses-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.course-panel { position: relative; width: 100vw; height: 100%; overflow: hidden; flex: none; }
.cp-media { position: absolute; inset: 0; overflow: hidden; }
.cp-media img { position: absolute; top: 0; left: -10%; width: 120%; height: 100%; object-fit: cover; will-change: transform; }
.cp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,13,22,.75) 0%, rgba(5,13,22,.15) 50%, rgba(5,13,22,.45) 100%), linear-gradient(180deg, rgba(5,13,22,.7), rgba(5,13,22,0) 30%); }
.is-wip .cp-media img { filter: grayscale(1) brightness(.75) sepia(1) hue-rotate(165deg) saturate(1.8) blur(1.5px); }
.wire-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(rgba(127,212,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(127,212,255,.28) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(600px) rotateX(58deg) scale(2.2); transform-origin: 50% 100%;
  mask-image: linear-gradient(180deg, transparent 20%, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 70%);
}
.cp-num {
  position: absolute; right: var(--gutter); bottom: -4vw; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(160px, 30vw, 460px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35); will-change: transform;
}
.cp-info { position: absolute; z-index: 3; left: var(--gutter); bottom: 14vh; width: min(460px, 86vw); padding: 30px; }
.cp-info h3 { font-size: clamp(26px, 2.8vw, 40px); margin: 14px 0 12px; }
.cp-info p { color: var(--muted); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); }
.tags .tag-wip { border-color: var(--accent); color: var(--accent); }
.courses-progress { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 40px; height: 1px; background: var(--line-soft); }
.courses-progress i { position: absolute; inset: 0; background: var(--text); transform-origin: left; transform: scaleX(0); }

/* ---------- AUDIENCE ---------- */
.audience { position: relative; background: var(--navy-950); }
.aud-pin { position: relative; height: 100vh; overflow: hidden; }
.aud-panel { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4vw; padding: 100px var(--gutter) 60px; }
.aud-home { background: radial-gradient(ellipse at 30% 50%, #12304a 0%, var(--navy-950) 70%); }
.aud-owner { background: radial-gradient(ellipse at 30% 50%, #0f3a2a 0%, #04110c 70%); clip-path: inset(0 0 0 100%); }
.aud-copy h2 { font-size: clamp(32px, 4vw, 58px); margin-bottom: 30px; }
.ticks { display: grid; gap: 14px; margin-bottom: 36px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); font-size: clamp(15px, 1.2vw, 18px); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .65em; width: 16px; height: 1px; background: var(--accent); }
.aud-visual { position: relative; height: min(64vh, 560px); perspective: 1100px; }
/* simulator bay built in CSS 3D */
.bay { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-14deg) rotateX(4deg); }
.bay > div { position: absolute; }
.bay-screen { left: 12%; right: 12%; top: 12%; bottom: 26%; background: #000; border: 6px solid #1b2733; box-shadow: 0 0 80px rgba(127,212,255,.25); overflow: hidden; transform: translateZ(-60px); }
.bay-screen img { width: 100%; height: 100%; object-fit: cover; }
.bay-wall { top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, #0b1825, #18293a); }
.bay-left { left: -14%; transform: rotateY(68deg); transform-origin: left; }
.bay-right { right: -14%; transform: rotateY(-68deg); transform-origin: right; background: linear-gradient(270deg, #0b1825, #18293a); }
.bay-ceiling { left: 0; right: 0; top: -10%; height: 30%; background: linear-gradient(#0a1520, #142434); transform: rotateX(-70deg); transform-origin: top; }
.bay-floor { left: -6%; right: -6%; bottom: -6%; height: 44%; transform: rotateX(72deg); transform-origin: bottom; background: repeating-linear-gradient(90deg, #2f7d2a 0 18px, #2a7326 18px 36px); box-shadow: inset 0 40px 60px rgba(0,0,0,.6); }
.bay-mat { position: absolute; left: 40%; top: 40%; width: 20%; height: 30%; background: #3f9a39; border: 2px solid rgba(255,255,255,.5); }
/* real -> digital scan */
.scan { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.scan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-mesh { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.scan-mesh img { filter: grayscale(1) brightness(.8) contrast(1.2) sepia(1) hue-rotate(165deg) saturate(1.8); }
.scan-mesh .wire-grid { transform: perspective(500px) rotateX(60deg) scale(2.4); }
.scan-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--accent); box-shadow: 0 0 24px 4px rgba(127,212,255,.6); }
.scan-tag { position: absolute; top: 16px; font-family: var(--font-display); letter-spacing: .25em; font-size: 12px; padding: 4px 10px; background: rgba(0,0,0,.4); border-radius: 3px; }
.tag-l { left: 16px; } .tag-r { right: 16px; color: var(--accent); }

/* ---------- PLANS ---------- */
.plans { position: relative; padding: 180px 0; background: radial-gradient(ellipse at 50% 0%, #10283f 0%, var(--navy-950) 60%); }
.plan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1180px; margin: 70px auto 0; padding: 0 var(--gutter); perspective: 1200px; }
.plan-card { padding: 120px 30px 34px; min-height: 340px; transform-style: preserve-3d; }
.plan-card h3 { font-size: 28px; margin-bottom: 8px; }
.plan-card p { color: var(--muted); }
.plan-card.featured { border-color: rgba(127,212,255,.6); box-shadow: 0 30px 80px rgba(47,143,214,.25), inset 0 1px 0 rgba(255,255,255,.3); }
.soon { display: inline-block; margin-top: 40px; font-size: 13px; color: var(--accent); letter-spacing: .1em; }

/* ---------- FINALE ---------- */
.finale { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 160px var(--gutter) 120px; overflow: hidden; text-align: center; }
.finale-bg { position: absolute; inset: -10% 0; }
.finale-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.1); }
.finale-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-950) 0%, rgba(5,13,22,.4) 35%, rgba(5,13,22,.6) 100%); }
.finale-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hole-svg { width: 160px; height: 176px; margin-bottom: 20px; overflow: visible; }
.finale-shot { stroke: rgba(255,255,255,.7); stroke-width: 1.5; stroke-dasharray: 4 5; }
.flag { transform-origin: 112px 83px; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave { 0%,100% { transform: skewY(0) scaleX(1); } 50% { transform: skewY(4deg) scaleX(.92); } }
.finale-title { font-size: clamp(36px, 6vw, 88px); }
html[lang="en"] .finale-title, html[lang="en"] .sec-head h2, html[lang="en"] .aud-copy h2, html[lang="en"] .exp-copy h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
.finale .hero-cta { justify-content: center; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.contact-list small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .15em; }
.contact-list b { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: .04em; }

/* ---------- Footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 40px var(--gutter); border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 28px; }
.footer .brand { color: var(--text); font-size: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hud-map, .hud-wind { display: none; }
  .hud-score { left: auto; right: 3vw; }
}
@media (max-width: 860px) {
  .nav { top: 10px; height: 54px; padding: 0 8px 0 16px; }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .mode-cards, .plan-cards { grid-template-columns: 1fr; max-width: 480px; }
  .mode-card { aspect-ratio: auto; min-height: 240px; }
  .exp-copy { left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; transform: none; padding: 20px; }
  .exp-steps p { display: none; }
  .hud-score { top: 80px; width: 260px; }
  .hud-club { display: none; }
  .hud-distance { left: 40%; top: 34%; }
  .aud-panel { grid-template-columns: 1fr; align-content: center; gap: 30px; padding-top: 90px; }
  .aud-visual { height: 34vh; }
  .courses-head { top: 84px; }
  .cp-info { bottom: 90px; padding: 22px; }
  .pin-meter { right: 16px; bottom: 16px; padding: 8px 12px; }
  .pm-value b { font-size: 20px; }
}

/* Reduced motion: static, fully visible */
@media (prefers-reduced-motion: reduce) {
  .cloud, .flag, .scroll-hint i { animation: none; }
  .aud-owner { clip-path: none; position: relative; }
}

/* hero terrain wrapper (mouse parallax target) */
.terrain-inner { position: absolute; inset: 0; will-change: transform; }
.terrain-inner .chip-distance { position: absolute; transform: translate(14px, -110%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .chip-distance, .pin-meter { opacity: 1 !important; transform: none; }
  .aud-pin { height: auto; }
  .aud-panel { position: relative; min-height: 100vh; }
  .courses-pin { height: auto; }
  .courses-head { position: relative; top: 0; padding-top: 120px; }
  .courses-track { flex-direction: column; width: auto; }
  .course-panel { height: 100vh; }
}

/* hero: push terrain down to reveal more sky; fade the hard top edge of the render */
.layer-terrain { top: 7%; }
.terrain-inner img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%); mask-image: linear-gradient(180deg, transparent 0, #000 9%); }
.hero-sub { max-width: 560px; }

.pin-meter { transition: opacity .4s; }
body.hide-meter .pin-meter { opacity: 0 !important; }
.btn { white-space: nowrap; }
@media (max-width: 860px) {
  /* keep the ball and its landing point in frame on portrait screens */
  .terrain-inner { left: -45%; }
}
@media (max-width: 860px) {
  .terrain-inner .chip-distance { transform: translate(calc(-100% - 14px), -110%); border-left: 0; border-right: 2px solid var(--text); text-align: right; }
}

/* ---------- English accents (Chinese version only) ---------- */
.accent-en {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .2em; font-size: clamp(13px, 1.05vw, 16px); color: var(--muted);
}
.accent-en::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--accent); }
.sec-head .accent-en, .finale .accent-en { justify-content: center; }
.courses-head .accent-en { justify-content: flex-start; }
.exp-copy h2 + .accent-en { margin: -8px 0 20px; }
.aud-copy h2 + .accent-en { margin: -14px 0 28px; }
.step-en {
  display: block; font-style: normal; font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em; font-size: 11px; color: var(--accent); opacity: .8;
}
.nav-links a { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.25; }
.nav-links a::before {
  content: attr(data-en); order: 2; margin-top: 2px;
  font-family: var(--font-display); font-weight: 500; font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.4); transition: color .3s;
}
.nav-links a:hover::before, .nav-links a.is-active::before { color: var(--accent); }
html[lang="en"] .accent-en, html[lang="en"] .step-en, html[lang="en"] .nav-links a::before { display: none; }

/* ---------- Hero: English script title (both languages) ---------- */
:root { --font-script: "Kaushan Script", "Brush Script MT", cursive; }
html .hero-title, html[lang="en"] .hero-title {
  font-family: var(--font-script); font-weight: 400; letter-spacing: 0;
  font-size: clamp(48px, 7.6vw, 118px); line-height: 1.08;
  text-shadow: 0 6px 30px rgba(5, 13, 22, .35);
}
.hero-title .line { padding: .08em .18em .14em 0; margin-bottom: -.12em; }
.hero-title .line + .line { padding-left: .6em; }
.hero-accent {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .22em; font-size: clamp(14px, 1.4vw, 20px); color: var(--text);
}
.hero-accent::before { content: ""; flex: none; width: 44px; height: 1px; background: var(--accent); }

/* experience copy: compact so it clears the scoreboard on ~800px-tall screens */
.exp-copy h2 { font-size: clamp(22px, 2.1vw, 32px); margin-bottom: 16px; }
.exp-steps li { padding: 9px 0; }
.exp-steps li p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .5s; }
.exp-steps li.is-active p { max-height: 3.2em; opacity: 1; }

/* ---------- Tee/club HUD: closer match to the in-game panel ---------- */
.tee-dial {
  width: 96px; height: 96px;
  background: radial-gradient(circle at 50% 40%, rgba(190,205,200,.32), rgba(70,95,90,.45));
  border: 2px solid rgba(225,235,230,.65);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.06);
  overflow: hidden;
}
.tee-ball { top: 14px; width: 38px; height: 38px; margin-left: -19px; box-shadow: inset -3px -4px 6px rgba(0,0,0,.2), 0 3px 4px rgba(0,0,0,.15); }
.tee-ball::after { inset: 5px; background-size: 6px 6px; }
.tee-peg { top: 50px; width: 14px; height: 14px; margin-left: -7px; clip-path: polygon(0 0, 100% 0, 60% 30%, 58% 100%, 42% 100%, 40% 30%); }
.tee-tag {
  bottom: 9px; padding: 0 9px; border: 0; border-radius: 10px;
  background: rgba(18, 32, 36, .78); font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1.35;
}
.hud-club ul { gap: 3px; margin-left: -30px; }
.hud-club li {
  width: 218px; padding: 1px 30px 2px 36px;
  background: rgba(62, 108, 118, .5); border: 1px solid rgba(255,255,255,.12);
}
.hud-club li:nth-child(2) { width: 212px; }
.hud-club li:nth-child(3) { width: 206px; }
.hud-club li small { font-size: 10px; color: rgba(255,255,255,.7); }
.hud-club li b { font-weight: 400; font-size: 13px; padding-left: 12px; line-height: 1.25; }
.hud-club .chev { width: 6px; height: 6px; border-width: 1.5px; }
