/* 郑和七下西洋 · 全息导航 HUD × 明代海图 */
:root {
	--bg: #02070f;
	--bg2: #061428;
	--ink: #d8eef6;
	--ink-2: #a9c8d6;
	--ink-3: #6f93a6;
	--line: rgba(110, 222, 255, .16);
	--line-2: rgba(110, 222, 255, .34);
	--cyan: #66e8ff;
	--cyan-2: #2fb7d6;
	--gold: #f3c66d;
	--gold-2: #ffe3a3;
	--gold-dim: rgba(243, 198, 109, .45);
	--panel: rgba(4, 16, 32, .66);
	--panel-2: rgba(6, 22, 44, .82);
	--serif: "Noto Serif SC", "Songti SC", "STSong", serif;
	--mono: "JetBrains Mono", "Noto Serif SC", ui-monospace, monospace;
	--wk-pill-bg: rgba(4, 16, 32, .8);
	--wk-pill-fg: #d8eef6;
	--wk-pill-line: rgba(110, 222, 255, .26);
	--wk-pill-accent: #f3c66d;
	--wk-pill-accent-fg: #1b1304;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
	background: radial-gradient(120% 90% at 38% 44%, #0a2244 0%, #051329 38%, #02070f 74%) fixed, var(--bg);
	color: var(--ink);
	font: 400 15px/1.75 var(--serif);
	-webkit-font-smoothing: antialiased;
	overflow: hidden;
	letter-spacing: .02em;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; z-index: 0; touch-action: none; outline: none; }
#gl:focus-visible + .fx { box-shadow: inset 0 0 0 2px var(--cyan); }
.fx {
	position: fixed; inset: 0; z-index: 1; pointer-events: none; will-change: transform;
	background:
		repeating-linear-gradient(0deg, rgba(150, 230, 255, .018) 0 1px, transparent 1px 3px),
		radial-gradient(130% 100% at 40% 45%, transparent 52%, rgba(1, 4, 10, .72) 100%);
}

/* ---------- 布局 ---------- */
.app {
	position: fixed; inset: 0; z-index: 3; pointer-events: none;
	display: grid;
	grid-template-columns: minmax(196px, 236px) 1fr minmax(330px, 384px);
	grid-template-rows: 1fr auto;
	grid-template-areas: "left stage card" "tl tl tl";
	padding: 24px 24px 0;
	column-gap: 20px;
}
.left { grid-area: left; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; padding-bottom: 18px; }
.stage { grid-area: stage; position: relative; min-height: 0; }
.card { grid-area: card; }
.tl { grid-area: tl; }

/* ---------- 题签 ---------- */
.title { pointer-events: auto; display: flex; gap: 14px; align-items: flex-start; }
.tiqian {
	position: relative; writing-mode: vertical-rl; text-orientation: upright;
	padding: 18px 10px; border: 1px solid var(--gold-dim);
	outline: 1px solid rgba(243, 198, 109, .2); outline-offset: 4px;
	background: linear-gradient(180deg, rgba(243, 198, 109, .07), rgba(243, 198, 109, .015));
}
.tiqian h1 { margin: 0; font: 900 40px/1 var(--serif); letter-spacing: .14em; color: #fbe9bd; text-shadow: 0 0 18px rgba(243, 198, 109, .35); }
.tiqian small { display: block; margin-top: 14px; font: 600 11px/1 var(--mono); letter-spacing: .06em; color: var(--gold); text-orientation: mixed; }
.title-side { padding-top: 4px; }
.title-side .k { font: 600 10.5px/1.5 var(--mono); letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; }
.title-side .k b { color: var(--gold); font-weight: 600; }
.title-side p { margin: 10px 0 0; font-size: 13px; line-height: 1.85; color: var(--ink-2); max-width: 10.5em; }
.title-side .q { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.9; }
.title-side .q cite { display: block; font: 400 10.5px/1.6 var(--mono); letter-spacing: .08em; font-style: normal; color: var(--ink-3); opacity: .8; }

/* ---------- 读数 ---------- */
.readout {
	pointer-events: auto; position: relative;
	padding: 14px 14px 12px; background: var(--panel);
	border: 1px solid var(--line-2); box-shadow: inset 0 0 0 3px rgba(2, 8, 18, .6), inset 0 0 0 4px var(--line);
}
.readout::before, .readout::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--cyan); }
.readout::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.readout::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.ro-h { display: flex; justify-content: space-between; align-items: baseline; font: 600 10px/1 var(--mono); letter-spacing: .18em; color: var(--cyan); }
.ro-h i { font-style: normal; color: var(--ink-3); }
.ro-date { margin: 10px 0 2px; font: 700 15px/1.35 var(--serif); color: #fff6dc; letter-spacing: .06em; min-height: 1.35em; }
.ro-date2 { font: 400 11px/1.4 var(--mono); color: var(--gold); letter-spacing: .08em; }
.ro-log { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); min-height: 1.6em; }
.ro-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.ro-grid dt { color: var(--ink-3); font-size: 11.5px; letter-spacing: .12em; }
.ro-grid dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.ro-grid dd .m { font: 400 11px/1 var(--mono); color: var(--ink-3); margin-left: 4px; }
.ro-grid dd b { font-weight: 700; color: var(--gold-2); }
.ro-grid .mq { display: none; }
.qx { display: flex; gap: 10px; align-items: flex-end; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.qx svg { flex: none; width: 76px; height: 84px; overflow: visible; }
.qx-t { font-size: 11.5px; line-height: 1.6; color: var(--ink-3); }
.qx-t b { display: block; font: 700 13px/1.35 var(--serif); color: var(--ink); letter-spacing: .03em; white-space: nowrap; }
.qx-t .m { font: 400 10.5px/1.5 var(--mono); }
.qx-t .chart { color: var(--gold); font-size: 11px; display: block; min-height: 1.6em; }

/* ---------- 罗盘环 ---------- */
.ring { position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; }
.ring svg { position: absolute; left: 0; top: 0; overflow: visible; }
.ring .rot { will-change: transform; animation: spin 140s linear infinite; }
.ring .rot.r { animation-duration: 95s; animation-direction: reverse; }
.ring text { font-family: var(--serif); }
.ring .dir { font-size: 13px; font-weight: 500; fill: rgba(170, 236, 255, .62); }
.ring .dir.card { font-size: 15px; font-weight: 900; fill: rgba(200, 245, 255, .9); }
.ring .dir.on { fill: var(--gold-2); }
.ring.dim { opacity: .25; }
.boot .ring, .boot .ring.dim { opacity: 0; transform: scale(.94); }
.ring { transition: opacity 1.4s ease .2s, transform 1.6s cubic-bezier(.2, .7, .2, 1) .2s; }
.ring .dir { animation: dirIn .7s ease both; animation-delay: calc(.6s + var(--i) * 45ms); }
@keyframes dirIn { from { opacity: 0; } to { opacity: 1; } }
.ring .mono { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; fill: rgba(110, 222, 255, .55); }
.ring .quote { font-size: 11px; letter-spacing: .5em; fill: rgba(243, 198, 109, .5); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 港口标签 ---------- */
.labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.pl {
	position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
	display: block; padding: 0; border: 0; background: none;
	transform: translate3d(-999px, -999px, 0); will-change: transform; transition: opacity .25s;
	font: 500 12.5px/1 var(--serif); letter-spacing: .08em; color: rgba(190, 236, 250, .74);
	white-space: nowrap;
}
.pl > span { position: absolute; left: 12px; top: -19px; padding: 3px 6px 3px 5px; display: block; }
.pl > span::before { content: ""; position: absolute; left: -9px; top: 100%; width: 12px; height: 1px; background: currentColor; opacity: .55; transform: rotate(-52deg); transform-origin: 100% 0; }
.pl > span::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 1px; background: currentColor; opacity: .3; }
.pl i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; display: block; }
.pl.lf > span { left: auto; right: 12px; padding: 3px 5px 3px 6px; }
.pl.lf > span::before { left: auto; right: -9px; transform: rotate(52deg); transform-origin: 0 0; }
.pl.v { color: var(--gold); }
.pl.r { color: var(--gold-2); text-shadow: 0 0 10px rgba(243, 198, 109, .6); font-weight: 700; }
.pl.sel { color: #fff; }
.pl.mk { font-size: 11px; color: rgba(150, 215, 235, .55); }
.pl.mk > span { writing-mode: vertical-rl; left: 7px; top: -6px; padding: 2px 1px; letter-spacing: .18em; }
.pl.mk > span::before, .pl.mk > span::after { display: none; }
.pl.mk > span svg { width: 12px; height: 8px; margin-bottom: 3px; }
.pl.hide { opacity: 0; pointer-events: none; }
.pl:focus-visible { outline: none; }
.pl:focus-visible > span { outline: 2px solid var(--cyan); outline-offset: 1px; }
.pl:hover { color: #fff; }

/* ---------- 船队标记 ---------- */
.fleet { position: fixed; left: 0; top: 0; z-index: 2; pointer-events: none; transform: translate3d(-999px, -999px, 0); transition: opacity .4s; }
.fleet svg { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; overflow: visible; will-change: transform; animation: spin 9s linear infinite; }
.fleet b { position: absolute; left: 0; top: 27px; transform: translateX(-50%); padding: 2px 5px; background: rgba(2, 8, 18, .72); border: 1px solid rgba(243, 198, 109, .4); font: 700 10.5px/1.2 var(--serif); letter-spacing: .08em; color: var(--gold-2); white-space: nowrap; }

/* ---------- 说明卡 ---------- */
.card {
	pointer-events: auto; position: relative; min-height: 0; display: flex; margin-top: 46px; margin-bottom: 18px;
	background: var(--panel); border: 1px solid var(--line-2);
	box-shadow: inset 0 0 0 3px rgba(2, 8, 18, .55), inset 0 0 0 4px var(--line), 0 30px 80px rgba(0, 0, 0, .35);
}
.spine {
	flex: none; width: 30px; border-right: 1px solid var(--line); position: relative;
	display: flex; flex-direction: column; align-items: center; padding: 14px 0;
	background: linear-gradient(90deg, rgba(110, 222, 255, .05), transparent);
}
.spine svg { width: 18px; height: 14px; flex: none; }
.spine span { writing-mode: vertical-rl; font: 500 12px/1 var(--serif); letter-spacing: .32em; color: var(--ink-3); margin: 10px 0; }
.spine .yw2 { margin-top: auto; transform: scaleY(-1); }
.card-in { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button {
	flex: 1; height: 38px; border: 0; background: none; cursor: pointer;
	font: 700 15px/1 var(--serif); color: var(--ink-3); position: relative; transition: color .2s, background .2s;
}
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button:hover { color: var(--ink); background: rgba(110, 222, 255, .05); }
.tabs button[aria-pressed="true"] { color: #1b1304; background: var(--gold); }
.tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--gold); border-bottom: 0; }
.tabs .ov { flex: 1.25; font-size: 12px; letter-spacing: .1em; }
.body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 22px 18px; scrollbar-width: thin; scrollbar-color: rgba(110, 222, 255, .25) transparent; position: relative; }
.body::-webkit-scrollbar { width: 6px; }
.body::-webkit-scrollbar-thumb { background: rgba(110, 222, 255, .2); }
.wm { position: absolute; right: 8px; top: 0; font: 900 150px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(243, 198, 109, .14); pointer-events: none; user-select: none; }
.kick { font: 600 10px/1.4 var(--mono); letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; }
.card h2 { margin: 6px 0 0; font: 900 34px/1.15 var(--serif); letter-spacing: .1em; color: #fff4d6; }
.yrs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 8px; }
.yrs b { font: 600 18px/1 var(--mono); color: var(--gold); letter-spacing: .02em; }
.yrs span { font-size: 13px; color: var(--ink-2); letter-spacing: .1em; }
.yrs em { font: 400 10.5px/1 var(--mono); font-style: normal; color: var(--ink-3); border: 1px solid var(--line); padding: 3px 6px; }
.lead { margin: 14px 0 0; font-size: 14px; line-height: 1.9; color: var(--ink); }
.card h3 { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; font: 700 12px/1 var(--serif); letter-spacing: .3em; color: var(--cyan); }
.card h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.chain { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 0; padding: 0; list-style: none; }
.chain li { display: flex; align-items: center; gap: 4px; }
.chain li + li::before { content: ""; width: 9px; height: 1px; background: var(--gold-dim); }
.chain button {
	border: 1px solid var(--line); background: rgba(110, 222, 255, .04); padding: 3px 7px; cursor: pointer;
	font: 500 12.5px/1.3 var(--serif); color: var(--ink-2); letter-spacing: .06em; transition: all .25s;
}
.chain button:hover { border-color: var(--line-2); color: var(--ink); }
.chain button.r { border-color: var(--gold-dim); color: #fff0c8; background: rgba(243, 198, 109, .12); }
.chain button.br { border-style: dashed; }
.chain button.br.r { border-color: rgba(110, 222, 255, .55); background: rgba(110, 222, 255, .1); color: #d8f7ff; }
.chain .now { box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(243, 198, 109, .45); }
.evs { margin: 0; padding: 0; list-style: none; }
.evs li { position: relative; padding: 0 0 12px 18px; font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.evs li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.evs li::after { content: ""; position: absolute; left: 5.5px; top: 1.45em; bottom: 0; width: 1px; background: var(--line); }
.evs li:last-child::after { display: none; }
.evs .tag { font: 700 13px/1.6 var(--serif); color: var(--ink); letter-spacing: .1em; margin-right: 8px; }
.evs .tm { font: 400 10.5px/1 var(--mono); color: var(--gold); margin-right: 6px; }
.src { display: inline-block; font: 400 10.5px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.src::before { content: "— "; }
.evs .src { margin-left: 2px; }
blockquote.fl { margin: 0; padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(243, 198, 109, .06); font-size: 14px; line-height: 1.95; color: #fdf1cf; letter-spacing: .06em; }
.fl-note { margin: 8px 0 0; font-size: 12px; line-height: 1.75; color: var(--ink-3); }
.fine { margin: 18px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11.5px; line-height: 1.8; color: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; border: 1px solid var(--line); }
.stats div { padding: 10px 4px 9px; text-align: center; min-width: 0; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font: 900 19px/1.15 var(--serif); color: var(--gold-2); letter-spacing: .02em; white-space: nowrap; }
.stats span { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-3); letter-spacing: .1em; }
.hint { margin-top: 16px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.hint kbd { font: 600 10.5px/1 var(--mono); border: 1px solid var(--line-2); padding: 2px 5px; color: var(--cyan); }

/* ---------- 时间轴 ---------- */
.tl {
	pointer-events: auto; position: relative; display: flex; align-items: stretch; gap: 16px;
	margin: 0 -24px; padding: 12px 24px 16px; min-height: 112px;
	background: linear-gradient(180deg, rgba(2, 8, 18, 0), rgba(2, 8, 18, .82) 34%);
	border-top: 1px solid transparent;
}
.ctl { display: flex; flex-direction: column; justify-content: center; gap: 8px; flex: none; }
.play {
	width: 58px; height: 58px; border-radius: 50%; cursor: pointer; position: relative;
	border: 1px solid var(--gold); background: radial-gradient(circle at 50% 40%, rgba(243, 198, 109, .25), rgba(243, 198, 109, .05) 70%);
	box-shadow: 0 0 0 4px rgba(243, 198, 109, .08), 0 0 26px rgba(243, 198, 109, .25);
	display: grid; place-items: center; transition: transform .15s, box-shadow .3s;
}
.play:hover { transform: scale(1.05); box-shadow: 0 0 0 4px rgba(243, 198, 109, .14), 0 0 34px rgba(243, 198, 109, .4); }
.play svg { width: 22px; height: 22px; fill: var(--gold-2); }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
.play.cue::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid var(--gold); animation: cue 2.2s ease-out infinite; }
@keyframes cue { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.play-l { font: 600 9.5px/1 var(--mono); letter-spacing: .24em; color: var(--gold); text-align: center; }

.track-w { flex: 1; min-width: 0; position: relative; }
.track { position: relative; height: 100%; min-height: 84px; cursor: pointer; touch-action: none; }
.track:focus-visible { outline: none; }
.track:focus-visible .rail { box-shadow: 0 0 0 2px var(--cyan); }
.eras { position: absolute; left: 0; right: 0; top: 0; height: 14px; }
.era { position: absolute; top: 0; height: 14px; border-top: 1px solid var(--line-2); font: 500 11px/14px var(--serif); color: var(--ink-3); padding-top: 3px; letter-spacing: .3em; white-space: nowrap; overflow: hidden; }
.era::before { content: ""; position: absolute; left: 0; top: -4px; height: 7px; width: 1px; background: var(--line-2); }
.vbar { position: absolute; top: 33px; height: 8px; border: 1px solid var(--gold-dim); background: rgba(243, 198, 109, .16); transition: background .3s, box-shadow .3s; }
.vbar span { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font: 700 13px/1 var(--serif); color: var(--gold); letter-spacing: 0; white-space: nowrap; }
.vbar.on { background: var(--gold); box-shadow: 0 0 16px rgba(243, 198, 109, .6); }
.vbar.on span { color: #fff2cc; text-shadow: 0 0 12px rgba(243, 198, 109, .7); }
.rail { position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: var(--line-2); }
.ticks { position: absolute; left: 0; right: 0; top: 46px; height: 30px; }
.ticks i { position: absolute; top: 0; width: 1px; height: 5px; background: var(--line-2); }
.ticks i.y5 { height: 9px; background: rgba(110, 222, 255, .6); }
.ticks span { position: absolute; top: 12px; transform: translateX(-50%); font: 400 10px/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.ticks span.y5 { color: var(--ink-2); }
.marks { position: absolute; left: 0; right: 0; top: 39px; height: 14px; z-index: 2; }
.mk-b {
	position: absolute; top: 0; width: 14px; height: 14px; margin-left: -7px; padding: 0; border: 0; background: none; cursor: pointer;
}
.mk-b::before { content: ""; position: absolute; left: 3px; top: 3px; width: 7px; height: 7px; border: 1px solid var(--cyan); background: rgba(2, 8, 18, .8); transform: rotate(45deg); transition: background .2s; }
.mk-b:hover::before, .mk-b:focus-visible::before { background: var(--cyan); }
.mk-b:focus-visible { outline: none; }
.mk-b .tip {
	position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 240px;
	padding: 7px 9px; background: var(--panel-2); border: 1px solid var(--line-2); font: 400 12px/1.6 var(--serif); color: var(--ink); text-align: left;
	opacity: 0; pointer-events: none; transition: opacity .18s; white-space: normal;
}
.mk-b .tip b { display: block; font: 600 10px/1.4 var(--mono); color: var(--gold); letter-spacing: .1em; }
.mk-b:hover .tip, .mk-b:focus-visible .tip { opacity: 1; }
.mk-b.l .tip { left: -4px; transform: none; }
.mk-b.r .tip { left: auto; right: -4px; transform: none; }
.head { position: absolute; top: 12px; bottom: 0; width: 0; pointer-events: none; will-change: transform; }
.head::before { content: ""; position: absolute; left: -.5px; top: 6px; bottom: 26px; width: 1px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.head::after { content: ""; position: absolute; left: -6px; top: 41px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px rgba(243, 198, 109, .25), 0 0 14px var(--gold); }
.head .bub {
	position: absolute; bottom: 100%; left: 0; transform: translate(-50%, -2px); margin-bottom: -4px; will-change: transform;
	padding: 3px 7px; background: var(--gold); color: #1b1304; font: 600 10.5px/1.2 var(--mono); white-space: nowrap; letter-spacing: .04em;
}
.head .bub em { font: 700 11px/1.2 var(--serif); font-style: normal; margin-left: 6px; letter-spacing: .06em; }
.tgl { display: flex; flex-direction: column; justify-content: center; gap: 6px; flex: none; }
.tgl button {
	display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; cursor: pointer;
	border: 1px solid var(--line); background: rgba(2, 8, 18, .5); font: 500 12px/1 var(--serif); color: var(--ink-3); letter-spacing: .12em;
}
.tgl button svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.tgl button[aria-pressed="true"] { color: var(--cyan); border-color: var(--line-2); background: rgba(110, 222, 255, .08); }
.keys { font: 400 9.5px/1.6 var(--mono); color: var(--ink-3); letter-spacing: .06em; opacity: .75; margin-top: 2px; text-align: center; }

/* ---------- 航次标题（播放时转场） ---------- */
.vtitle {
	position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; text-align: center;
	transform: translate(-50%, -50%); opacity: 0; transition: opacity .7s ease, letter-spacing 2.4s ease;
	letter-spacing: .1em; text-shadow: 0 0 30px rgba(2, 8, 18, .95), 0 0 60px rgba(2, 8, 18, .8);
}
.vtitle.on { opacity: 1; letter-spacing: .32em; }
.vtitle small { display: block; font: 600 11px/1.6 var(--mono); letter-spacing: .3em; color: var(--cyan); }
.vtitle b { display: block; margin-top: 8px; font: 900 54px/1.1 var(--serif); color: #fff3d0; letter-spacing: inherit; padding-left: .3em; }
.vtitle span { display: block; margin-top: 10px; font: 600 16px/1 var(--mono); color: var(--gold); letter-spacing: .2em; }

/* ---------- 港口弹窗 ---------- */
.pop {
	position: fixed; z-index: 6; width: 300px; padding: 16px 16px 14px; left: 0; top: 0;
	background: var(--panel-2); border: 1px solid var(--line-2);
	box-shadow: inset 0 0 0 3px rgba(2, 8, 18, .55), inset 0 0 0 4px var(--line), 0 24px 60px rgba(0, 0, 0, .5);
	opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none;
}
.pop.open { opacity: 1; transform: none; pointer-events: auto; }
.pop::before { content: ""; position: absolute; left: -1px; top: -1px; width: 12px; height: 12px; border-left: 2px solid var(--gold); border-top: 2px solid var(--gold); }
.pop .x { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border: 0; background: none; cursor: pointer; color: var(--ink-3); font: 400 20px/1 var(--mono); }
.pop .x:hover { color: var(--ink); }
.pop .k { font: 600 10px/1.4 var(--mono); letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; }
.pop h4 { margin: 6px 0 0; font: 900 28px/1.15 var(--serif); letter-spacing: .1em; color: #fff4d6; }
.pop h4 small { font: 500 13px/1 var(--serif); color: var(--ink-3); letter-spacing: .08em; margin-left: 8px; }
.pop .now { margin-top: 8px; font-size: 14px; color: var(--ink); }
.pop .now span { display: block; font: 400 10.5px/1.6 var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.pop .vz { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.pop .vz button { height: 28px; padding: 0; border: 1px solid var(--line); background: none; color: rgba(110, 160, 180, .45); font: 700 13px/1 var(--serif); cursor: pointer; }
.pop .vz button.y { border-color: var(--gold-dim); color: var(--gold-2); background: rgba(243, 198, 109, .12); }
.pop .vz button:hover { border-color: var(--line-2); }
.pop .vz-l { margin-top: 4px; font: 400 10px/1.5 var(--mono); color: var(--ink-3); letter-spacing: .06em; }
.pop p { margin: 10px 0 0; font-size: 13px; line-height: 1.85; color: var(--ink-2); }

body:not(.lite) .readout { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body:not(.lite) .card { -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); }
body:not(.lite) .pop { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.lite .readout, .lite .card { background: rgba(4, 15, 30, .9); }
.lite .pop { background: rgba(5, 18, 36, .96); }

/* ---------- 开场 ---------- */
.boot .title, .boot .readout, .boot .card, .boot .tl { opacity: 0; transform: translateY(8px); }
.title, .readout, .card, .tl { transition: opacity .9s ease, transform .9s ease; }
.readout { transition-delay: .15s; }
.card { transition-delay: .3s; }
.tl { transition-delay: .45s; }
.loading { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; pointer-events: none; transition: opacity .8s; font: 600 10.5px/1 var(--mono); letter-spacing: .3em; color: var(--cyan); }
.loading.gone { opacity: 0; }
.nogl { position: fixed; inset: 0; z-index: 8; display: none; place-items: center; text-align: center; padding: 24px; font-size: 14px; color: var(--ink-2); }

/* ---------- 中屏 ---------- */
@media (max-width: 1180px) {
	.app { grid-template-columns: minmax(176px, 200px) 1fr minmax(300px, 330px); padding: 18px 18px 0; column-gap: 14px; }
	.tiqian h1 { font-size: 34px; }
	.title-side p { display: none; }
	.tl { margin: 0 -18px; padding: 10px 18px 14px; }
	.card h2 { font-size: 30px; }
}
@media (max-height: 760px) and (min-width: 821px) {
	.title-side .q { display: none; }
	.qx { display: none; }
	.tiqian h1 { font-size: 32px; }
	.tl { min-height: 100px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 820px) {
	body { font-size: 14px; }
	.app {
		grid-template-columns: 1fr; padding: 0; column-gap: 0;
		grid-template-rows: minmax(250px, 1fr) auto minmax(150px, 32%) auto;
		grid-template-areas: "stage" "read" "card" "tl";
		height: 100%;
	}
	.left { display: contents; }
	.title { position: absolute; left: 10px; top: 10px; z-index: 4; padding: 0; }
	.tiqian { padding: 9px 5px 8px; outline-offset: 3px; }
	.tiqian h1 { font-size: 17px; letter-spacing: .16em; }
	.tiqian small { margin-top: 8px; font-size: 8.5px; letter-spacing: .02em; }
	.title-side { display: none; }
	.stage { margin-top: 46px; }
	.readout { grid-area: read; margin: 0 10px; padding: 8px 10px 7px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
	.readout::before, .readout::after { width: 7px; height: 7px; }
	.ro-h, .ro-date2, .qx { display: none; }
	.ro-date { margin: 0; font-size: 13px; min-height: 0; }
	.ro-log { margin: 0; font-size: 12px; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
	.ro-grid { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; grid-auto-flow: column; gap: 0 8px; margin: 6px 0 0; padding-top: 6px; font-size: 12px; }
	.ro-grid dt { font-size: 10px; letter-spacing: .1em; }
	.ro-grid dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.ro-grid .pos, .ro-grid .wide { display: none; }
	.ro-grid .mq { display: block; }
	.ro-grid dd .m { display: none; }
	.card { grid-area: card; margin: 8px 10px 0; }
	.spine { display: none; }
	.tabs button { height: 34px; font-size: 14px; }
	.tabs .ov { font-size: 11px; letter-spacing: .04em; }
	.body { padding: 12px 14px 16px; }
	.wm { font-size: 96px; }
	.card h2 { font-size: 24px; }
	.yrs b { font-size: 15px; }
	.lead { font-size: 13.5px; line-height: 1.8; margin-top: 10px; }
	.tl { grid-area: tl; margin: 0; padding: 6px 10px 10px; min-height: 0; gap: 10px; background: rgba(2, 8, 18, .88); border-top: 1px solid var(--line); }
	.play { width: 46px; height: 46px; }
	.play svg { width: 18px; height: 18px; }
	.play-l, .keys { display: none; }
	.track { min-height: 74px; }
	.vbar span { font-size: 11.5px; }
	.ticks span { font-size: 9px; }
	.ticks span.hm { display: none; }
	.era { font-size: 10px; letter-spacing: .1em; }
	.era.short { color: transparent; }
	.tgl { gap: 4px; }
	.tgl button { height: 30px; width: 34px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
	.tgl button svg { width: 15px; height: 15px; }
	.pop { left: 8px !important; right: 8px; top: auto !important; bottom: 100px; width: auto; }
	.ring .dir { font-size: 11px; }
	.ring .dir.card { font-size: 12.5px; }
	.ring .quote, .ring .mono { display: none; }
	.pl { font-size: 11.5px; }
	.fleet b { display: none; }
	.vtitle b { font-size: 34px; }
	.vtitle small { font-size: 9.5px; }
}
@media (max-width: 820px) and (max-height: 700px) {
	.app { grid-template-rows: minmax(200px, 1fr) auto minmax(120px, 30%) auto; }
	.stage { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.ring .rot, .fleet svg, .play.cue::before, .ring .dir { animation: none; }
	.ring, .boot .ring { transition: none; transform: none; }
	.title, .readout, .card, .tl, .pl, .pop, .fleet, .vtitle { transition: none; }
}
