/* 華文宇宙 · 館圖：畫布、標籤、作品標籤。總覽裡每處一個字，字型、大小、顏色統一 */
.hwm { position: relative; overflow: hidden; isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none; }
.hwm--mini { touch-action: pan-y; }
.hwm canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hwm.hwm--full { cursor: grab; }
.hwm.is-drag { cursor: grabbing; }
.hwm-tags, .hwm-wtags { position: absolute; inset: 0; pointer-events: none; }
.hwm-tag {
	position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 3px;
	margin: 0; padding: 3px 5px 2px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: none;
	translate: -50% -100%; transition: opacity .35s; will-change: transform;
}
.hwm-tag::after { /* 引線：從字落到館頂 */
	content: ""; width: 1px; height: var(--lead, 12px); margin-top: 1px; background: linear-gradient(rgba(242,214,142,.75), rgba(242,214,142,0));
}
.hwm-tag__c {
	display: grid; place-items: center; width: 1.5em; height: 1.5em; font-size: 17px; line-height: 1; font-weight: 900; color: #f6efe0;
	font-family: 'HW Serif', 'Noto Serif TC', 'Songti TC', 'STSong', serif;
	background: rgba(8,12,20,.72); border: 1px solid rgba(242,214,142,.55); border-radius: 50%;
	transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s, color .3s;
}
.hwm-tag__t {
	font: 500 12px/1.2 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', 'Noto Sans CJK TC', sans-serif; letter-spacing: .1em; color: rgba(246,239,224,.92);
	white-space: nowrap; padding: 2px 7px; background: rgba(8,12,20,.62); text-shadow: 0 1px 2px rgba(0,0,0,.7);
}
.hwm-tag:hover .hwm-tag__c, .hwm-tag:focus-visible .hwm-tag__c, .hwm-tag.is-on .hwm-tag__c { transform: translateY(-3px); background: #f2d68e; color: #15120c; }
.hwm-tag:focus-visible { outline: none; }
.hwm-tag:focus-visible .hwm-tag__t { outline: 1px solid rgba(242,214,142,.9); }
.hwm-tag.is-dim { opacity: .38; }
.hwm-tag.is-off { opacity: 0; pointer-events: none; }
.hwm-tag.is-small .hwm-tag__t { display: none; }
.hwm-tag.is-small .hwm-tag__c { font-size: 14px; }
.hwm-tag.is-small.is-on .hwm-tag__t { display: block; }

.hwm-wtag {
	position: absolute; left: 0; top: 0; pointer-events: auto; translate: 8px -50%; display: flex; align-items: center; gap: 0; padding: 2px 4px;
	font: 500 12px/1.3 'PingFang TC', 'Microsoft JhengHei', sans-serif; color: #f6efe0; text-decoration: none; white-space: nowrap;
	background: rgba(8,10,16,.78); border: 1px solid rgba(255,240,210,.22); animation: hwm-in .4s both;
}
.hwm-wtag span { max-width: 0; overflow: hidden; transition: max-width .35s ease; }
.hwm-wtag:hover span, .hwm-wtag:focus-visible span, .hwm-wtags.is-open .hwm-wtag span { max-width: 16em; }
.hwm-wtag i { font-style: normal; font-family: 'HW Serif', 'Songti TC', serif; font-weight: 900; color: #f2d68e; padding: 0 3px; }
.hwm-wtag:hover i, .hwm-wtag:focus-visible i { padding-right: 6px; border-right: 1px solid rgba(0,0,0,.2); margin-right: 6px; }
.hwm-wtag:hover, .hwm-wtag:focus-visible { background: #f6efe0; color: #121212; outline: none; }
.hwm-wtag:hover i { color: #8a5a10; }
.hwm-wtag.is-plan { opacity: .7; border-style: dashed; }
@keyframes hwm-in { from { opacity: 0; translate: 0 -50%; } }
.hwm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
