/* 宝相花·观息 */
:root { --gold: #e8c47a; --gold-d: #c4964a; --ink: #f3ead6; --mute: rgba(243,234,214,.62); --bg: #070a16; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body { font-family: 'HW Work', 'Noto Serif SC', 'Songti SC', serif; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { font-family: 'HW Work', 'Noto Serif SC', Georgia, serif; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; color: inherit; }

.cap { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(92vw, 860px); margin: 0;
	text-align: center; font-size: clamp(16px, 2.1vw, 24px); line-height: 1.7; letter-spacing: .06em; color: var(--ink);
	text-shadow: 0 1px 12px rgba(0,0,0,.85); opacity: 0; transition: opacity .9s ease; pointer-events: none; }
html[lang="en"] .cap { letter-spacing: .01em; font-size: clamp(15px, 1.9vw, 22px); }
.cap.on { opacity: .92; }
body.nocaps .cap { display: none; }
.cue { position: fixed; left: 50%; top: 0; transform: translate(-50%, -50%); margin: 0; font-size: clamp(15px, 1.6vw, 20px); letter-spacing: .4em; color: var(--gold); opacity: 0; transition: opacity .6s; pointer-events: none; }
html[lang="en"] .cue { letter-spacing: .2em; font-style: italic; }

.card { position: fixed; left: 50%; bottom: calc(clamp(24px, 8vh, 90px) + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(92vw, 520px);
	text-align: center; padding: 22px 22px 18px; border-radius: 18px; background: rgba(7,10,22,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(232,196,122,.22); transition: opacity .8s ease, transform .8s ease; }
.card.gone { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.card__t { margin: 0; font-weight: 600; font-size: clamp(26px, 4vw, 40px); letter-spacing: .18em; color: var(--gold); }
html[lang="en"] .card__t { letter-spacing: .03em; }
.card__t--sm { font-size: clamp(20px, 3vw, 28px); }
.card__s { margin: 8px 0 16px; color: var(--mute); letter-spacing: .08em; font-size: 15px; }
.card__s .dot { margin: 0 .6em; opacity: .6; }
.card__tip { margin: 14px 0 0; color: var(--mute); font-size: 13.5px; line-height: 1.7; }
.modes { display: inline-flex; gap: 0; border: 1px solid rgba(232,196,122,.35); border-radius: 999px; padding: 3px; margin-bottom: 16px; }
.mode { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--mute); font-size: 14.5px; letter-spacing: .06em; }
.mode[aria-checked="true"] { background: rgba(232,196,122,.18); color: var(--ink); }
.go { display: inline-block; border: 1px solid var(--gold); background: rgba(232,196,122,.16); color: var(--ink); padding: 10px 34px; border-radius: 999px; font-size: 17px; letter-spacing: .2em; cursor: pointer; }
html[lang="en"] .go { letter-spacing: .05em; }
.go:hover, .go:focus-visible { background: rgba(232,196,122,.3); }
.go--ghost { background: none; border-color: rgba(232,196,122,.45); }
.go--sm { padding: 6px 18px; font-size: 14px; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.freebar { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 14px; align-items: center; width: max-content; max-width: 92vw;
	padding: 8px 10px 8px 18px; border-radius: 999px; background: rgba(7,10,22,.55); border: 1px solid rgba(232,196,122,.2); font-size: 13.5px; color: var(--mute); }
.freebar p { margin: 0; } .freebar b { color: var(--ink); font-weight: 600; margin-right: .8em; }

.dock { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
	width: min(94vw, 640px); padding: 6px 8px; border-radius: 999px; background: rgba(7,10,22,.6); border: 1px solid rgba(232,196,122,.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	transition: opacity .7s ease; }
.dock.quiet { opacity: 0; }
.dock.quiet:focus-within { opacity: 1; }
.act { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--mute); padding: 6px 10px; border-radius: 999px; cursor: pointer; font-size: 13.5px; letter-spacing: .04em; }
.act:hover { color: var(--ink); background: rgba(232,196,122,.12); }
.act[aria-pressed="true"] { color: var(--ink); }
.act[aria-pressed="false"] span { text-decoration: line-through; opacity: .7; }
.act--icon { width: 36px; height: 36px; padding: 0; justify-content: center; }
.act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.act .i-play path { fill: currentColor; stroke: none; }
.act .i-play { display: none; }
.paused .act .i-play { display: block; } .paused .act .i-pause { display: none; }
.bar { flex: 1; height: 22px; position: relative; cursor: pointer; }
.bar::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(232,196,122,.2); border-radius: 2px; }
.bar i { position: absolute; left: 0; top: 10px; height: 2px; width: 0; background: var(--gold); border-radius: 2px; }
.time { flex: none; font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--mute); min-width: 3.2em; text-align: right; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(7,10,22,.7); font-size: 13px; color: var(--ink); opacity: 0; transition: opacity .4s; pointer-events: none; }
.toast.on { opacity: 1; }
.nojs { position: fixed; inset: auto 0 40% 0; text-align: center; }
body.bare .card, body.bare .dock, body.bare .cap, body.bare .cue, body.bare .freebar { display: none !important; }
@media (max-width: 520px) {
	.act span { display: none; }
	.act { padding: 6px 8px; }
	.act#b-voice::after { content: ''; }
	.dock { gap: 2px; }
	.cap { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-height: 460px) {
	.card { bottom: 12px; padding: 12px 16px 10px; }
	.card__s { margin: 4px 0 8px; }
	.card__tip { display: none; }
	.cap { bottom: 64px; font-size: 15px; }
}
