/* 春联 · 华文道门厅 · 文创与印刷品 */
:root {
	--ink: #0b0a08;
	--ink2: #12100c;
	--ink3: #1a1712;
	--ink4: #24201a;
	--paper: #f2ebde;
	--verm: #e2462b;
	--verm-d: #a8321f;
	--gold: #d9b36c;
	--gold-l: #f0d79c;
	--txt: #f2ebde;
	--txt2: rgba(242, 235, 222, .68);
	--txt3: rgba(242, 235, 222, .44);
	--line: rgba(242, 235, 222, .12);
	--line2: rgba(242, 235, 222, .24);
	--gline: rgba(217, 179, 108, .42);
	--ok: #8fc79a;
	--warn: #e8b85c;
	--bad: #ff7a5e;
	--mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
	--serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
	--sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
	--sat: env(safe-area-inset-top, 0px);
	--sab: env(safe-area-inset-bottom, 0px);
	--sal: env(safe-area-inset-left, 0px);
	--sar: env(safe-area-inset-right, 0px);
	color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
	background: var(--ink);
	color: var(--txt);
	font: 15px/1.65 var(--sans);
	overflow: hidden;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---------- 版式：左舞台、右设计台；窄屏上下叠放 ---------- */
.cl {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(330px, 31vw, 410px);
	height: 100vh;
	height: 100dvh;
	min-height: 420px;
}
@media (max-width: 860px) {
	.cl { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(220px, 47%) minmax(0, 1fr); }
}

/* ---------- 舞台 ---------- */
.cl-stage {
	position: relative;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: radial-gradient(90% 70% at 50% 42%, #1d1510 0%, #110d0a 55%, var(--ink) 100%);
	user-select: none;
	-webkit-user-select: none;
}
.cl-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; }
.cl-frame i {
	position: absolute; z-index: 3; width: 16px; height: 16px; pointer-events: none;
	border: 0 solid rgba(217, 179, 108, .5);
}
.cl-frame i:nth-child(1) { top: calc(10px + var(--sat)); left: calc(10px + var(--sal)); border-top-width: 1px; border-left-width: 1px; }
.cl-frame i:nth-child(2) { top: calc(10px + var(--sat)); right: 10px; border-top-width: 1px; border-right-width: 1px; }
.cl-frame i:nth-child(3) { bottom: 10px; left: calc(10px + var(--sal)); border-bottom-width: 1px; border-left-width: 1px; }
.cl-frame i:nth-child(4) { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

.cl-hd {
	position: absolute; z-index: 4; top: calc(18px + var(--sat)); left: calc(22px + var(--sal));
	display: flex; align-items: center; gap: 10px; pointer-events: none;
}
.cl-seal {
	display: grid; place-items: center; flex: none; width: 30px; height: 30px;
	background: var(--verm-d); color: var(--paper); border-radius: 3px;
	font: 700 17px/1 var(--serif);
	box-shadow: inset 0 0 0 2px rgba(242, 235, 222, .14), 0 0 18px -4px rgba(226, 70, 43, .6);
}
.cl-title { margin: 0; font: 600 19px/1.1 var(--serif); letter-spacing: .14em; }
.cl-sub { margin: 3px 0 0; font-size: 10.5px; line-height: 1.2; color: var(--txt3); white-space: nowrap; }
/* 嵌在展馆页里：左上、右上两角留给展馆的按钮，标题收起（展馆页已有标题） */
.embed .cl-hd { display: none; }

.cl-scene { position: absolute; z-index: 2; left: 0; top: 0; width: 10px; height: 10px; }
.cl-door { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc {
	position: absolute; display: block;
	box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .8), 0 2px 4px rgba(0, 0, 0, .35);
	transition: transform .9s cubic-bezier(.65, 0, .25, 1);
	will-change: transform;
}
.pc-v { transform-origin: 50% 0; }
.pc.reveal { animation: cl-unroll .7s cubic-bezier(.3, .7, .2, 1) both; }
.pc-h.reveal-r { animation: cl-unroll-r .7s cubic-bezier(.3, .7, .2, 1) both; }
.pc-h.reveal-l { animation: cl-unroll-l .7s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes cl-unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes cl-unroll-r { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes cl-unroll-l { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pc-fu {
	position: absolute;
	transition: transform .8s cubic-bezier(.65, 0, .25, 1);
	transform: rotate(45deg);
	filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55));
}
.pc-fu.flip { transform: rotate(225deg); }
.pc-fu canvas { display: block; width: 100%; height: 100%; }
.pc-fu.alone + .pc-fu { display: none; }

/* 标注：等宽小字 + 金色细线 */
.lb {
	position: absolute; z-index: 3; display: flex; align-items: center; gap: 6px;
	font-size: 10.5px; line-height: 1.25; color: var(--txt2); white-space: nowrap; pointer-events: none;
	transition: left .9s cubic-bezier(.65, 0, .25, 1), top .4s, opacity .3s;
}
.lb b { font-weight: 500; color: var(--gold-l); letter-spacing: .1em; }
.lb-u b { color: #ffb19c; }
.lb span { color: var(--txt2); }
.lb-h { transform: translate(-50%, -100%); padding-bottom: 6px; }
.lb-h .arw { color: var(--verm); font-size: 13px; display: inline-block; transition: transform .6s; }
.lb-u, .lb-d { transform: translate(-50%, 0); flex-direction: column; gap: 1px; text-align: center; padding-top: 6px; }
.lb-u::before, .lb-d::before { content: ""; width: 1px; height: 8px; background: var(--gline); margin-bottom: 3px; }

.cl-read, .cl-rule {
	position: absolute; z-index: 4; margin: 0; pointer-events: none;
	font-size: 10.5px; line-height: 1.4; color: var(--txt3);
}
.cl-read { left: calc(22px + var(--sal)); bottom: 16px; max-width: calc(100% - 44px); }
.cl-rule {
	left: 50%; top: calc(18px + var(--sat)); transform: translateX(-50%);
	padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
	background: rgba(11, 10, 8, .6); color: var(--txt2); white-space: nowrap;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cl-rule b { color: var(--gold-l); font-weight: 500; }
@media (max-width: 860px) {
	.cl-read { bottom: 10px; font-size: 9.5px; }
	.cl-rule { top: auto; bottom: 26px; font-size: 10px; }
	.lb { font-size: 9.5px; }
}

/* ---------- 设计台 ---------- */
.cl-panel {
	position: relative; z-index: 5;
	display: flex; flex-direction: column; min-height: 0; min-width: 0;
	border-left: 1px solid var(--line);
	background: linear-gradient(180deg, #13110d 0%, #0e0c09 100%);
}
.embed .cl-panel { padding-top: 48px; }
.solo .cl-panel { padding-bottom: 58px; }
@media (max-width: 860px) {
	.cl-panel { border-left: 0; border-top: 1px solid var(--line2); }
	.embed .cl-panel { padding-top: 0; }
	.embed .cl-panel { padding-bottom: calc(56px + var(--sab)); } /* 底部留给「一步步看」 */
	.solo .cl-panel { padding-bottom: calc(56px + var(--sab)); }
}
.cl-tabs { display: grid; grid-template-columns: repeat(5, 1fr); flex: none; border-bottom: 1px solid var(--line); }
.tab {
	position: relative; padding: 10px 2px 9px; border: 0; background: none;
	font: 600 14px/1.2 var(--serif); letter-spacing: .12em; color: var(--txt3);
	display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.tab i { font-style: normal; font-size: 9.5px; font-weight: 400; letter-spacing: .08em; color: var(--txt3); }
.tab:hover { color: var(--txt2); }
.tab[aria-selected="true"] { color: var(--paper); }
.tab[aria-selected="true"] i { color: var(--verm); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 2px; background: var(--verm); }
.tp { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 20px; scrollbar-width: thin; scrollbar-color: rgba(242, 235, 222, .18) transparent; }
.h { margin: 18px 0 10px; font-size: 10.5px; font-weight: 400; letter-spacing: .14em; color: var(--txt3); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tp > .h:first-child { margin-top: 2px; }
.note { margin: 10px 0 0; font-size: 13px; line-height: 1.75; color: var(--txt2); }
.note b { color: var(--paper); font-weight: 600; }
.note q { quotes: "「" "」"; }
.keys { flex: none; margin: 0; padding: 8px 18px 10px; border-top: 1px solid var(--line); font-size: 10px; color: var(--txt3); }
@media (hover: none) { .keys { display: none; } }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 8px 14px; min-height: 38px; border: 1px solid var(--verm); border-radius: 3px;
	background: var(--verm); color: #fff8ee; font-size: 14px; font-weight: 600; letter-spacing: .06em;
	transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: #ee5537; }
.btn-g { background: transparent; border-color: var(--line2); color: var(--txt); font-weight: 500; }
.btn-g:hover { background: rgba(242, 235, 222, .06); border-color: rgba(242, 235, 222, .4); }
.btn:disabled { opacity: .45; cursor: default; }

/* 当前这副 */
.cur {
	position: relative; padding: 14px 14px 12px; border: 1px solid var(--line2); border-radius: 4px;
	background: linear-gradient(160deg, rgba(226, 70, 43, .1), rgba(226, 70, 43, 0) 60%), var(--ink2);
}
.cur::before, .cur::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid var(--gold); }
.cur::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.cur::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.cur .k { margin: 0 0 8px; font-size: 10.5px; color: var(--txt3); display: flex; gap: 10px; flex-wrap: wrap; }
.cur .k span + span::before { content: "·"; margin-right: 10px; color: var(--line2); }
.cur-l { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.cur-l .mono { font-size: 10px; color: var(--verm); flex: none; width: 1.2em; }
.cur-l b { font: 700 clamp(18px, 1.7vw, 22px)/1.5 var(--serif); letter-spacing: .14em; color: var(--paper); }
.cur-h { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cur-h .mono { font-size: 10px; color: var(--gold); }
.cur-h b { font: 700 16px/1.3 var(--serif); letter-spacing: .3em; padding: 2px 4px 2px 9px; border: 1px solid var(--gline); color: var(--gold-l); }
.cur-h em { font-style: normal; font-size: 11px; color: var(--txt3); }
.cur-src { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--txt3); }
.cur-n { margin: 6px 0 0; font-size: 13px; line-height: 1.7; color: var(--txt2); }
.cur-nav { display: flex; gap: 8px; margin-top: 12px; }
.cur-nav .btn { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.cur-nav #rand { flex: 1; }
.cur-nav #prev, .cur-nav #next { font-size: 20px; line-height: 1; width: 42px; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 10px; }
.chip {
	padding: 4px 11px; border: 1px solid var(--line2); border-radius: 999px; background: none;
	font-size: 13px; color: var(--txt2); letter-spacing: .08em;
}
.chip small { font-family: var(--mono); font-size: 10px; color: var(--txt3); margin-left: 4px; }
.chip:hover { border-color: rgba(242, 235, 222, .45); color: var(--txt); }
.chip[aria-checked="true"] { border-color: var(--verm); background: rgba(226, 70, 43, .14); color: var(--paper); }

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.it {
	display: grid; grid-template-columns: 26px 1fr auto; gap: 2px 10px; align-items: center;
	width: 100%; padding: 9px 6px 9px 4px; border: 0; background: none; text-align: left;
	transition: background .2s;
}
.it:hover { background: rgba(242, 235, 222, .04); }
.it[aria-current="true"] { background: linear-gradient(90deg, rgba(226, 70, 43, .16), rgba(226, 70, 43, 0)); box-shadow: inset 2px 0 0 var(--verm); }
.it .no { grid-row: span 2; font-family: var(--mono); font-size: 10px; color: var(--txt3); text-align: center; }
.it .ln { font: 600 14.5px/1.45 var(--serif); letter-spacing: .06em; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.it .ln + .ln { grid-column: 2; }
.it .hp { grid-row: 1 / span 2; grid-column: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.it .hp b { font: 600 12px/1 var(--serif); letter-spacing: .14em; color: var(--gold); }
.it .hp em { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--txt3); border: 1px solid var(--line); padding: 1px 4px; border-radius: 2px; }
.it .hp em.gu { color: #e9b8a6; border-color: rgba(226, 70, 43, .35); }

/* 纸样 */
.sw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.swb {
	position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px;
	padding: 6px 6px 8px; border: 1px solid var(--line2); border-radius: 4px; background: var(--ink2); text-align: left;
}
.swb canvas { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 2px; }
@media (max-width: 860px) { .swb canvas { aspect-ratio: 16 / 9; } .swb small { display: none; } }
.swb b { font: 600 13.5px/1.2 var(--serif); letter-spacing: .1em; }
.swb small { font-size: 11px; line-height: 1.4; color: var(--txt3); }
.swb .mono { position: absolute; top: 10px; left: 11px; font-size: 9.5px; color: rgba(255, 240, 220, .75); }
.swb[aria-checked="true"] { border-color: var(--verm); box-shadow: 0 0 0 1px var(--verm) inset; }

.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
.seg button { padding: 9px 6px; border: 0; background: none; font-size: 14px; letter-spacing: .06em; color: var(--txt2); }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button small { font-family: var(--mono); font-size: 10px; color: var(--txt3); margin-left: 4px; }
.seg button[aria-checked="true"] { background: rgba(226, 70, 43, .16); color: var(--paper); box-shadow: inset 0 -2px 0 var(--verm); }
.seg button[aria-checked="true"] small { color: var(--gold); }

/* 自撰 */
.own label { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 8px; margin-bottom: 8px; }
.own label .mono { font-size: 10.5px; color: var(--txt3); letter-spacing: .1em; }
.own input {
	width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 3px; background: var(--ink2);
	font: 600 18px/1.3 var(--serif); letter-spacing: .12em; color: var(--paper);
}
.own input::placeholder { color: rgba(242, 235, 222, .26); font-weight: 400; letter-spacing: .06em; }
.own input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 1px var(--gold) inset; }
.own .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ck { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ck li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.65; color: var(--txt2); }
.ck li i { font-style: normal; font-family: var(--mono); font-size: 12px; text-align: center; line-height: 1.6; border-radius: 2px; }
.ck li.ok i { color: var(--ok); }
.ck li.warn i { color: var(--warn); }
.ck li.bad i { color: var(--bad); }
.ck li.idle i { color: var(--txt3); }
.ck li b { color: var(--paper); font-weight: 600; }
.ck li .py { font-family: var(--mono); font-size: 11.5px; color: var(--gold); }

/* 导出 */
.sizes { display: grid; gap: 6px; }
.sz {
	display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; align-items: center;
	padding: 8px 10px; border: 1px solid var(--line2); border-radius: 4px; background: var(--ink2); text-align: left;
}
.sz b { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--gline); font: 700 15px/1 var(--serif); color: var(--gold-l); }
.sz span { font-size: 13.5px; color: var(--txt); }
.sz small { font-family: var(--mono); font-size: 10.5px; color: var(--txt3); }
.sz[aria-checked="true"] { border-color: var(--verm); background: linear-gradient(90deg, rgba(226, 70, 43, .14), rgba(226, 70, 43, 0)), var(--ink2); }
.sz[aria-checked="true"] b { background: var(--verm); border-color: var(--verm); color: #fff8ee; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dlb {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	padding: 8px 10px; border: 1px solid var(--line2); border-radius: 4px; background: none; text-align: left;
	transition: border-color .2s, background .2s;
}
.dlb:hover { border-color: var(--gold); background: rgba(217, 179, 108, .06); }
.dlb b { font-size: 13.5px; font-weight: 600; letter-spacing: .06em; }
.dlb small { font-family: var(--mono); font-size: 10px; color: var(--txt3); }
.dlb.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-color: var(--verm); background: rgba(226, 70, 43, .1); }
.dlb.wide:hover { background: rgba(226, 70, 43, .18); }
.dlb:disabled { opacity: .45; cursor: progress; }
.prog { position: sticky; bottom: -20px; z-index: 2; margin: 12px -18px 0; padding: 10px 18px 14px; background: linear-gradient(180deg, rgba(14, 12, 9, .92), #0e0c09); border-top: 1px solid var(--line); }
.prog .bar { height: 3px; background: var(--line); overflow: hidden; }
.prog .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--verm), var(--gold)); transition: width .15s linear; }
.prog p { margin: 6px 0 0; font-size: 10.5px; color: var(--txt2); }

/* 小史 */
.tp-info h2 { margin: 18px 0 8px; font: 700 16px/1.4 var(--serif); letter-spacing: .1em; color: var(--paper); }
.tp-info h2:first-child { margin-top: 2px; }
.tp-info p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.85; color: var(--txt2); }
.tp-info p b { color: var(--paper); font-weight: 600; }
.tp-info .src { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.7; color: var(--txt3); }
.tp-info .src p { font-size: 11.5px; line-height: 1.7; color: var(--txt3); margin: 0 0 4px; }

/* ---------- 打印 ---------- */
.cl-print { display: none; }
@page { size: A4 portrait; margin: 10mm; }
@page wide { size: A4 landscape; margin: 10mm; }
@media print {
	:root { color-scheme: light; }
	html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
	.cl, .sr-only, .wk-pill { display: none !important; }
	.cl-print { display: block; color: #222; font: 9pt/1.5 var(--sans); }
	.pg { display: block; text-align: center; break-after: page; page-break-after: always; break-inside: avoid; overflow: hidden; }
	.pg:last-child { break-after: auto; page-break-after: auto; }
	.pg.land { page: wide; }
	.pg img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.pg p { margin: 4mm 0 0; font-family: var(--mono); font-size: 8pt; color: #555; }
	.pair { display: flex; justify-content: center; align-items: flex-start; gap: 24mm; }
	.fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
	.fig img { display: block; height: 238mm; width: auto; }
	.fig figcaption { margin-top: 3mm; font-family: var(--mono); font-size: 8pt; color: #555; }
	.pg.land img { display: block; margin: 12mm auto 0; width: 270mm; max-height: 150mm; height: auto; object-fit: contain; }
	.pg img.sq { display: block; margin: 20mm auto 0; width: 165mm; height: 165mm; }
}

@media (prefers-reduced-motion: reduce) {
	.pc, .pc-fu, .lb, .lb-h .arw { transition: none !important; }
	.pc.reveal, .pc-h.reveal-r, .pc-h.reveal-l { animation: none !important; }
}

/* ---------- 补充：换边动画、尺寸线、可点的纸 ---------- */
#pcH, .pc-fu { cursor: pointer; }
@keyframes cl-lift { 0%, 100% { scale: 1; } 50% { scale: 1.05; } }
@keyframes cl-sink { 0%, 100% { scale: 1; filter: brightness(1); } 50% { scale: .95; filter: brightness(.72); } }
#pcU.swapping { animation: cl-lift .9s cubic-bezier(.65, 0, .25, 1); z-index: 3; }
#pcD.swapping { animation: cl-sink .9s cubic-bezier(.65, 0, .25, 1); }
.cl-door .dimt { fill: #d9b36c; fill-opacity: .85; font-family: var(--mono); letter-spacing: .06em; }
.cl-rule .dim-t { color: var(--txt3); }
.cl-scene.tiny #lbHTx { display: none; }
@media (max-width: 560px) { .cl-rule .dim-t { display: none; } }
/* 横着的小窗口（相当于浏览器放大到 150%、200%）：舞台很矮，联脚的平仄小字会碰到「横批右起」这一条，把它挪到右下角、收短 */
@media (max-width: 860px) and (max-height: 560px) {
	.cl-rule { left: auto; right: calc(14px + var(--sar)); transform: none; }
	.cl-rule .dim-t { display: none; }
}
@media (max-height: 420px) { .keys { display: none; } }
@media (prefers-reduced-motion: reduce) { #pcU.swapping, #pcD.swapping { animation: none; } }

