/* css/geminids.css — Landing page Geminids 2026 (kế thừa ngôn ngữ thiết kế teaser TrekRadar) */
:root {
    --ink: #03050c;
    --ink-2: #0a1222;
    --text: #f1f5f9;
    --muted: #a5b4c8;
    --dim: #6b7a90;
    --ice: #7dd3fc;
    --amber: #fbbf24;
    --gold-2: #fde68a;
    --dawn: #fb923c;
    --danger: #f87171;
    --line: rgba(148, 163, 184, 0.18);
    --glass: rgba(5, 9, 19, 0.74);
    --font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Nhãn nhỏ: chữ thường không chân (không dùng chữ đơn cách — trông máy móc) */
    --mono: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --gutter: clamp(16px, 4vw, 56px);
    color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html { background: var(--ink); }
body { touch-action: none; background: var(--ink); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
.mono { font-family: var(--mono); letter-spacing: 0.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
b { font-weight: 600; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; cursor: grab; }
#gl:active { cursor: grabbing; }
.grain {
    position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(125% 95% at 50% 45%, transparent 58%, rgba(1, 2, 8, 0.7) 100%); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; transition: opacity 0.9s ease, visibility 0.9s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 22px; }
.loader-sun { width: 88px; height: 88px; border-radius: 50%; border: 1px solid rgba(251, 191, 36, 0.35); position: relative; overflow: hidden; box-shadow: 0 0 40px rgba(251, 191, 36, .15) inset; }
.loader-sun span { position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(251, 191, 36, 0.5), transparent 28%); animation: spin 1.6s linear infinite; }
.loader-brand { font-size: 22px; font-weight: 500; }
.loader-brand i { font-size: 26px; }
.loader-sun em { position: absolute; left: 18%; top: 22%; width: 46%; height: 1.5px; background: linear-gradient(90deg, transparent, #fff); transform: rotate(32deg); transform-origin: right center; animation: streak 1.8s ease-in infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes streak { 0% { opacity: 0; transform: rotate(32deg) translateX(-30px) scaleX(.2); } 40% { opacity: 1; } 100% { opacity: 0; transform: rotate(32deg) translateX(30px) scaleX(1); } }
.loader-text { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.8; }
.loader-text b { color: var(--amber); font-weight: 500; }
.toast { position: fixed; left: 50%; top: max(122px, calc(env(safe-area-inset-top) + 110px)); transform: translate(-50%, -6px); z-index: 60; font-size: 13px; color: var(--text); padding: 11px 18px; border-radius: 999px; background: rgba(5, 9, 19, .88); border: 1px solid rgba(251, 191, 36, .35); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; white-space: nowrap; }
.toast b { color: var(--amber); font-weight: 600; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Chọn điểm ---------- */
.site-switch { position: fixed; left: 50%; top: max(20px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 31; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(5, 9, 19, .72); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-switch button { font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: background .25s, color .25s; white-space: nowrap; }
.site-switch button:hover { color: var(--text); }
.site-switch button.on { background: var(--amber); color: #1a1204; font-weight: 600; }
.site-switch .gps svg { opacity: .85; }
body.rebuilding .site-switch { pointer-events: none; opacity: .7; }

/* ---------- Topbar ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); padding-top: max(18px, env(safe-area-inset-top)); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; font-size: 15px; }
.brand svg.sun { color: var(--amber); }
.brand-name { font-family: var(--font); font-weight: 600; font-size: 16px; letter-spacing: 0; }
.brand-name i, .loader-brand i, .display i.gold { font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--amber); }
.brand-name i { font-size: 19px; margin-left: 2px; }
.brand small { font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav-route { font-size: 10.5px; color: var(--muted); }
.btn-ghost, .btn-solid { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.btn-ghost { border: 1px solid rgba(241, 245, 249, 0.28); background: rgba(4, 7, 15, 0.45); }
.btn-ghost:hover { border-color: var(--text); background: rgba(241, 245, 249, 0.08); }
.btn-solid { background: var(--amber); color: #1a1204; }
.btn-solid:hover { background: var(--gold-2); transform: translateY(-1px); }

/* ---------- HUD ---------- */
.hud { position: fixed; left: var(--gutter); bottom: max(22px, env(safe-area-inset-bottom)); z-index: 15; font-size: 10.5px; color: var(--muted); display: grid; gap: 4px; pointer-events: none; }
.hud-row { display: flex; gap: 10px; align-items: baseline; }
.hud-k { color: var(--dim); }
#hud-clock { color: var(--text); }
#hud-hr { color: var(--amber); }
.hud-tag { color: var(--ice); font-size: 9.5px; }
.hud-unit { color: var(--dim); }
body.interactive .hud { display: none; }

.rail { position: fixed; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 15; font-size: 10px; }
.rail ol { list-style: none; display: grid; gap: 14px; justify-items: end; }
.rail li { display: flex; align-items: center; gap: 10px; color: var(--dim); cursor: pointer; transition: color .3s; }
.rail li .rl { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap; }
.rail li i { width: 14px; height: 1px; background: currentColor; transition: width .35s; }
.rail li.on { color: var(--text); }
.rail li.on i { width: 34px; background: var(--amber); }
.rail li.on .rl, .rail li:hover .rl { opacity: 1; transform: none; }
body.interactive .rail { top: 34%; }

/* ---------- Nhãn ---------- */
.labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.sky-label, .peak-label { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .5s ease; will-change: transform, opacity; white-space: nowrap; }
.sky-label.on, .peak-label.on { opacity: 1; }
.sky-label b { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; font-weight: 600; }
.sky-label span { font-family: var(--mono); font-size: 9px; color: var(--muted); margin-left: 6px; }
.sky-label.radiant { translate: -50% -50%; display: grid; justify-items: center; }
.sky-label.radiant i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(251, 191, 36, .75); box-shadow: 0 0 18px rgba(251, 191, 36, .35); position: relative; }
.sky-label.radiant i::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(251, 191, 36, .3); animation: spin 16s linear infinite; }
.sky-label.radiant b { color: var(--amber); margin-top: 8px; }
.sky-label.radiant span { margin: 2px 0 0; }
.sky-label.star b { color: rgba(220, 230, 245, .8); font-size: 9px; }
.sky-label.moon { translate: -50% 0; }
.sky-label.moon b { color: #e2e8f0; }
.sky-label.compass { translate: -50% -100%; }
.sky-label.compass b { color: rgba(241, 245, 249, .55); font-size: 10px; padding: 3px 6px; border-radius: 6px; background: rgba(3, 5, 12, .4); }
.sky-label.obs { translate: -50% -100%; display: grid; justify-items: center; padding-bottom: 6px; }
.sky-label.obs b { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0; padding: 6px 10px 2px; background: rgba(4, 8, 18, .84); border: 1px solid rgba(251, 191, 36, .5); border-bottom: 0; border-radius: 10px 10px 0 0; }
.sky-label.obs span { margin: 0; padding: 0 10px 6px; background: rgba(4, 8, 18, .84); border: 1px solid rgba(251, 191, 36, .5); border-top: 0; border-radius: 0 0 10px 10px; color: var(--amber); }
.sky-label.obs i { order: 3; width: 1px; height: 34px; background: linear-gradient(var(--amber), transparent); }
.peak-label { translate: -50% -100%; display: grid; justify-items: center; gap: 1px; padding-bottom: 14px; }
.peak-label::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 1px; height: 12px; background: linear-gradient(rgba(125, 211, 252, .7), transparent); }
.peak-label b { font-size: 11.5px; font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.peak-label span { font-family: var(--mono); font-size: 9px; color: var(--ice); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }

/* ---------- Chương ---------- */
main { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.ch { position: absolute; inset: 0; pointer-events: none; }
.ch.active .cta-row, .ch.active button, .ch.active a, .ch.active .tour-cards { pointer-events: auto; }
.block { will-change: opacity, transform; max-width: 560px; position: relative; text-shadow: 0 2px 30px rgba(2, 5, 12, 0.6); }
.stick { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 var(--gutter); overflow: hidden; }
.stick.center { justify-content: center; text-align: center; }
.stick.center .block { max-width: 1080px; }
.stick.left { justify-content: flex-start; }
.stick.top { align-items: flex-start; padding-top: max(96px, 12vh); }
.stick::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s ease; }
.ch.active .stick::before { opacity: 1; }
.ch-watch .stick::before, .ch-site .stick::before, .ch-detail .stick::before, .ch-cloud .stick::before {
    background: linear-gradient(90deg, rgba(3, 5, 12, 0.84) 0%, rgba(3, 5, 12, 0.5) 32%, rgba(3, 5, 12, 0) 60%);
}
.ch-night .stick::before, .ch-dark .stick::before { background: linear-gradient(160deg, rgba(3, 5, 12, 0.72) 0%, rgba(3, 5, 12, 0) 38%); }
.ch-tour .stick::before { background: radial-gradient(80% 70% at 50% 55%, rgba(3, 5, 12, 0.62), rgba(3, 5, 12, 0.15)); }

.kicker { font-size: 11.5px; color: var(--amber); margin-bottom: 22px; letter-spacing: .14em; }
.line { display: block; overflow: hidden; padding: 0.3em 0; margin: -0.3em 0; }
.line > span { display: inline-block; will-change: transform; }
.display { font-family: var(--serif); font-weight: 700; font-size: clamp(56px, 10vw, 172px); line-height: 0.95; letter-spacing: -0.01em; }
.display .gold { background: linear-gradient(100deg, #fff7d6 0%, var(--amber) 45%, var(--dawn) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display.sm { font-size: clamp(38px, 6vw, 96px); }
.title { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 5.4vw, 80px); line-height: 1.04; letter-spacing: -0.01em; margin-bottom: 24px; }
.title.sm { font-size: clamp(30px, 3.8vw, 58px); margin-bottom: 16px; }
.lede { font-size: clamp(15px, 1.5vw, 20px); color: var(--muted); margin-top: 26px; }
.lede b { color: var(--text); }
.body { font-size: clamp(14.5px, 1.15vw, 16.5px); line-height: 1.65; color: var(--muted); }
.body + .body { margin-top: 12px; }
.body b { color: var(--text); }
.stats { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.stats dt { font-size: 9.5px; color: var(--dim); margin-bottom: 6px; }
.stats dd { font-family: var(--serif); font-size: 24px; font-weight: 600; font-variant-numeric: lining-nums; }
.note { font-size: 9.5px; color: var(--dim); margin-top: 16px; line-height: 1.6; }

/* Hero */
.ch-hero .stick { align-items: flex-end; padding-bottom: 14vh; }
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.countdown { display: flex; gap: 12px; margin-top: 26px; }
.countdown span { display: grid; justify-items: center; min-width: 66px; padding: 10px 8px 8px; border-radius: 12px; background: rgba(5, 9, 19, 0.55); border: 1px solid rgba(251, 191, 36, 0.22); }
.countdown b { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--text); letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; }
.countdown i { font-style: normal; font-size: 9px; color: var(--dim); margin-top: 2px; }
.countdown > b { color: var(--amber); font-size: 14px; }
.scroll-hint { position: absolute; right: var(--gutter); bottom: 16vh; font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; font-family: var(--mono); letter-spacing: .08em; pointer-events: auto; }
body:not([data-ch="hero"]) .scroll-hint { opacity: 0; pointer-events: none; }
.scroll-hint { transition: opacity .5s; }
.scroll-hint i { width: 1px; height: 56px; background: linear-gradient(var(--amber), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* So sánh Bortle */
.cmp { display: flex; gap: 10px; margin: 6px 0 16px; }
.cmp-btn { display: grid; gap: 3px; text-align: left; padding: 12px 16px; border-radius: 14px; background: rgba(5, 9, 19, 0.6); border: 1px solid var(--line); min-width: 150px; transition: border-color .3s, background .3s; }
.cmp-btn span { font-size: 9.5px; color: var(--dim); }
.cmp-btn strong { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.cmp-btn em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.cmp-btn em b { font-size: 22px; color: var(--text); font-weight: 600; }
.cmp-btn.on { border-color: var(--amber); background: rgba(30, 22, 6, 0.7); }
.cmp-btn.on em b { color: var(--amber); }
#btn-city.on { border-color: #fb923c; background: rgba(40, 18, 6, 0.72); }
#btn-city.on em b { color: #fb923c; }

/* Chú thích mốc */
.sim-caption { position: fixed; right: calc(var(--gutter) + 80px); top: max(96px, 12vh); z-index: 16; width: min(340px, 40vw); padding: 14px 16px 15px; border-radius: 14px; background: var(--glass); border: 1px solid rgba(251, 191, 36, .3); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .5s, transform .5s; }
.sim-caption.on { opacity: 1; transform: none; }
body:not(.interactive) .sim-caption { opacity: 0 !important; }
.cap-k { font-size: 10px; color: var(--amber); }
.cap-t { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-top: 6px; }
.cap-p { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---------- Bảng mô phỏng ---------- */
.panel {
    position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 25;
    width: min(980px, calc(100vw - 2 * var(--gutter)));
    transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
    padding: 14px 16px 12px; border-radius: 18px;
    background: rgba(4, 7, 15, 0.8); border: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: opacity .6s ease, transform .6s ease;
    touch-action: pan-x;
}
body.interactive .panel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.p-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-clock { display: flex; align-items: baseline; gap: 10px; }
.p-clock b { font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: 0; font-variant-numeric: lining-nums tabular-nums; }
.p-clock span { font-size: 10px; color: var(--muted); }
.p-ctrl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(251, 191, 36, .5); display: grid; place-items: center; }
.icon-btn i { width: 10px; height: 12px; border-left: 3px solid var(--amber); border-right: 3px solid var(--amber); }
.icon-btn.paused i { width: 0; height: 0; border: 0; border-left: 11px solid var(--amber); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { font-size: 10.5px; padding: 8px 12px; color: var(--muted); }
.seg button.on { background: var(--amber); color: #1a1204; }
.tog { font-size: 10.5px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tog.on { border-color: var(--ice); color: var(--ice); background: rgba(125, 211, 252, .08); }
.p-rows { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.p-chips { display: flex; align-items: center; gap: 8px; }
.p-chips .k { font-size: 9.5px; color: var(--dim); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { font-family: var(--mono); font-size: 10.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip-btn em { font-style: normal; color: var(--amber); margin-left: 3px; font-size: 9px; }
.chip-btn.on { border-color: var(--text); color: var(--text); background: rgba(241, 245, 249, .08); }
.p-chart { position: relative; margin-top: 8px; height: 42px; }
#hr-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#hr-chart .hr-area { fill: rgba(251, 191, 36, .16); stroke: var(--amber); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
#hr-chart .hr-city { fill: none; stroke: #fb923c; stroke-width: 1.2; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .4s; }
body.city #hr-chart .hr-city, body[data-ch="dark"] #hr-chart .hr-city { opacity: .9; }
#hr-chart .mk line { stroke: rgba(241, 245, 249, .22); stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
#hr-chart .mk text, #hr-chart .tk { font-family: var(--mono); font-size: 8px; fill: rgba(200, 212, 228, .7); }
#hr-chart .tk { text-anchor: middle; fill: var(--dim); }
#hr-cursor { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#time-slider { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.p-stats { display: grid; grid-template-columns: auto auto auto 1fr; gap: 6px 28px; margin-top: 10px; align-items: end; }
.p-stats dt { font-size: 9px; color: var(--dim); }
.p-stats dd { font-size: 13px; color: var(--text); margin-top: 3px; letter-spacing: 0.02em; }
.p-stats .big { font-size: 24px; font-weight: 600; color: var(--amber); font-family: var(--serif); letter-spacing: 0; font-variant-numeric: lining-nums; margin-right: 3px; }
.p-stats .wide dd { color: var(--muted); }
.p-stats .wide b { color: var(--text); font-weight: 500; }

/* ---------- Tour ---------- */
.ch-tour .stick { align-items: center; padding-top: 70px; }
.tour-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(20px, 4vh, 36px); text-align: left; text-shadow: none; }
.tour-card { padding: 18px 18px 14px; border-radius: 18px; background: rgba(5, 9, 19, 0.78); border: 1px solid rgba(125, 211, 252, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tour-card.gold { border-color: rgba(251, 191, 36, 0.45); }
.tour-card header { display: flex; justify-content: space-between; align-items: center; }
.t-region { font-size: 10px; color: var(--ice); }
.tour-card.gold .t-region { color: var(--amber); }
.t-bortle { font-size: 10px; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(125, 211, 252, .4); color: var(--ice); }
.tour-card.gold .t-bortle { border-color: rgba(251, 191, 36, .5); color: var(--amber); }
.tour-card h3 { font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: 0; margin-top: 4px; }
.t-note { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.batch { padding: 10px 12px 12px; border-radius: 14px; background: rgba(241, 245, 249, 0.04); border: 1px solid var(--line); margin-top: 10px; }
.b-head { display: flex; justify-content: space-between; align-items: baseline; }
.b-nights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.b-night { display: grid; gap: 1px; padding: 7px 6px; border-radius: 10px; background: rgba(241, 245, 249, .05); border: 1px solid var(--line); text-align: center; transition: border-color .25s, background .25s; }
.b-night span { font-size: 10.5px; color: var(--muted); }
.b-night b { font-size: 13.5px; font-weight: 600; }
.b-night:hover { border-color: var(--ice); }
.b-night.best { border-color: rgba(251, 191, 36, .6); background: rgba(251, 191, 36, .1); }
.b-night.best b { color: var(--amber); }
.t-dark { font-size: 10px; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(125, 211, 252, .4); color: var(--ice); }
.tour-card.gold .t-dark { border-color: rgba(251, 191, 36, .5); color: var(--amber); }
.batch.peak { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.45); }
.b-name { font-size: 10px; color: var(--muted); }
.batch.peak .b-name { color: var(--amber); }
.b-date { font-family: var(--serif); font-size: 23px; font-weight: 700; justify-self: end; font-variant-numeric: lining-nums; }
.batch.peak .b-date { color: var(--amber); }

.finale .cta-row { display: flex; justify-content: center; gap: 14px; margin-top: clamp(16px, 3vh, 28px); flex-wrap: wrap; }

.step-hint { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 15; font-size: 10px; color: var(--muted); pointer-events: none; }
body.interactive .step-hint { bottom: auto; top: max(24px, env(safe-area-inset-top)); }
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; opacity: 0; transition: opacity .8s ease 1s; pointer-events: none; padding: 24px var(--gutter) 14px; font-size: 9px; color: var(--dim); text-align: center; line-height: 1.6; }
body.at-end .foot, body[data-ch="site"] .foot, body[data-ch="detail"] .foot { opacity: 1; }
body[data-ch="site"] .step-hint, body[data-ch="detail"] .step-hint { bottom: max(56px, env(safe-area-inset-bottom)); }
body.at-end .step-hint, body.at-end .hud { opacity: 0 !important; }
body[data-ch="site"] .hud, body[data-ch="detail"] .hud { display: none; }

/* ---------- Điện thoại ---------- */
@media (max-width: 760px) {
    .topnav-route, .rail { display: none; }
    .stick, .stick.left { justify-content: flex-start; align-items: flex-end; padding-bottom: 20vh; }
    .stick.top { align-items: flex-start; padding-top: 78px; padding-bottom: 0; }
    .stick.center { align-items: center; padding-bottom: 0; }
    .block { max-width: 100%; }
    .hide-m { display: none; }
    .display { font-size: clamp(54px, 17vw, 78px); }
    .display.sm { font-size: clamp(30px, 9.5vw, 44px); }
    .title { font-size: clamp(34px, 10vw, 46px); }
    .title.sm { font-size: 28px; margin-bottom: 8px; }
    .stats { gap: 20px; }
    .stats dd { font-size: 18px; }
    .countdown span { min-width: 56px; padding: 8px 6px 6px; }
    .countdown b { font-size: 21px; }
    .hud { display: none; }
    .ch-watch .stick::before, .ch-site .stick::before, .ch-detail .stick::before, .ch-cloud .stick::before { background: linear-gradient(0deg, rgba(3, 5, 12, 0.88) 0%, rgba(3, 5, 12, 0.45) 45%, rgba(3, 5, 12, 0) 72%); }
    .sim-caption { left: var(--gutter); right: var(--gutter); width: auto; top: 236px; padding: 9px 12px 10px; }
    body[data-ch="dark"] .sim-caption { display: none; }
    .cap-p { display: none; }
    .cap-t { font-size: 14px; margin-top: 3px; }
    .ch-night .title.sm, .ch-dark .title.sm { font-size: 24px; }
    .panel { padding: 9px 10px 8px; border-radius: 14px; width: calc(100vw - 16px); bottom: max(8px, env(safe-area-inset-bottom)); }
    .p-top { flex-wrap: nowrap; gap: 6px; }
    .p-clock { flex-direction: column; gap: 0; }
    .p-clock b { font-size: 21px; }
    .p-clock span { font-size: 8.5px; }
    .p-ctrl { flex-wrap: nowrap; gap: 5px; }
    .icon-btn { width: 32px; height: 32px; }
    .seg button, .tog { padding: 7px 6px; font-size: 9.5px; letter-spacing: .02em; white-space: nowrap; }
    #btn-lines { display: none; }
    .p-rows { flex-direction: column; gap: 6px; margin-top: 8px; }
    .p-chips .k { display: none; }
    .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .chips::-webkit-scrollbar { display: none; }
    .chip-btn { flex: none; padding: 6px 9px; font-size: 10px; }
    .p-chart { height: 25px; margin-top: 6px; }
    #hr-chart .mk text, #hr-chart .tk { display: none; }
    .p-stats { grid-template-columns: repeat(3, 1fr); gap: 2px 10px; margin-top: 8px; }
    .p-stats .m-hide { display: none; }
    .p-stats .wide { grid-column: 1 / -1; }
    .p-stats .wide dd { font-size: 10.5px; }
    .p-stats dd.big { font-size: 18px; }
    .hero-copy { padding-right: 26px; }
    .cmp-btn { min-width: 0; flex: 1; padding: 10px 12px; }
    .cmp-btn em b { font-size: 18px; }
    .tour-cards { grid-template-columns: 1fr; gap: 8px; max-height: 54vh; overflow-y: auto; touch-action: pan-y; margin-top: 14px; }
    .tour-card { padding: 10px 12px 8px; border-radius: 14px; }
    .tour-card h3 { font-size: 21px; }
    .t-note, .ch-tour .note { display: none; }
    .batch { padding: 8px 10px; margin-top: 6px; }
    .b-date { font-size: 16px; }
    .b-night { padding: 5px 3px; }
    .b-night span { font-size: 9.5px; }
    .b-night b { font-size: 12px; }
    .finale .cta-row { gap: 8px; margin-top: 12px; }
    .finale .cta-row a, .finale .cta-row button { padding: 9px 14px; font-size: 12.5px; }
    body.at-end .foot { opacity: 0; }
    .foot { font-size: 8px; padding: 10px 12px 8px; }
    .ch-tour .stick { padding-top: 64px; align-items: flex-start; }
    .step-hint { bottom: auto; top: max(70px, calc(env(safe-area-inset-top) + 56px)); }
    body.interactive .step-hint { top: max(60px, calc(env(safe-area-inset-top) + 46px)); left: auto; right: var(--gutter); transform: none; }
    .scroll-hint { bottom: 6vh; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-hint i, .loader-sun span, .loader-sun em, .sky-label.radiant i::before { animation: none; }
}

/* ---------- v2: Ánh Dương ---------- */
.display i.gold { font-style: italic; background: linear-gradient(100deg, #fff7d6 0%, var(--amber) 45%, var(--dawn) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.ch-tour .display.sm { font-size: clamp(36px, 5vw, 76px); }
.ch-cloud .note { max-width: 460px; }
body[data-ch="cloud"] .hud { opacity: 0; }
/* Trang lịch tour: không cần chọn điểm (mỗi thẻ đã ghi điểm) — ẩn để không đè nút đặt tour */
body.at-end .site-switch { opacity: 0 !important; pointer-events: none; }
@media (max-width: 760px) {
    .site-switch { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); justify-content: space-between; }
    .site-switch button { font-size: 11.5px; padding: 8px 10px; flex: 1; justify-content: center; }
    body.interactive .site-switch { top: max(64px, calc(env(safe-area-inset-top) + 54px)); bottom: auto; }
    .brand-name { font-size: 14px; }
    .brand-name i { font-size: 16px; }
    .brand small { display: none; }
    .toast { top: auto; bottom: 74px; white-space: normal; max-width: calc(100vw - 32px); text-align: center; }
    .ch-tour .stick { padding-bottom: 64px; }
    .stick, .stick.left { padding-bottom: 14vh; }
    body.interactive .sim-caption { top: 300px; }
}

[hidden] { display: none !important; }

/* Chú thích gõ phím */
.sim-caption .ghost { visibility: hidden; }
.sim-caption .caret { display: inline-block; width: 2px; height: 1em; margin: 0 1px -2px; background: var(--amber); animation: caretBlink .7s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* Điện thoại, các trang có bảng mô phỏng: ô chọn vị trí nằm ngay dưới thanh trên ⇒ đẩy nội dung xuống dưới nó */
@media (max-width: 760px) {
    body.interactive .stick.top { padding-top: max(124px, calc(env(safe-area-inset-top) + 114px)); }
    body.interactive .step-hint { display: none; }
    body.interactive .sim-caption { top: max(268px, calc(env(safe-area-inset-top) + 258px)); }
}
