.mk.disabled, .nd.disabled { cursor: default !important; filter: grayscale(1); opacity: .48; }
.mk.disabled .ring { display: none; }
.mk.disabled .dot, .nd.disabled .d { background: #b4b0a5 !important; border-color: #e5dfd1 !important; box-shadow: none !important; }
.mk.disabled .lbl, .nd.disabled .t, .nd.disabled .y { color: #77736b !important; }
.nd.disabled:hover .d { transform: none; }
.mk:focus-visible, .nd:focus-visible { outline: 2px solid #9c2a22; outline-offset: 8px; }
#card.character-card { width: 340px; top: 46%; max-height: calc(100dvh - 200px); overflow: auto; padding: 20px 24px; }
#card.character-card .nm { font-size: 24px; margin: 4px 0; }
#card.character-card .md { font-size: 12px; margin-bottom: 6px; }
#card.character-card .nt, #card.character-card .tg { display: none; }
/* 顶部只留“角色卡”三个字：去掉站序号、地点、年份 */
#card.character-card .no, #card.character-card .md, #card.character-card .yr, #card.character-card .tg { display: none; }
#card.character-card .nm { font-size: 26px; margin: 2px 0 10px; letter-spacing: .3em; }
#character-preview { text-align: center; margin: 12px 0; }
#character-preview p { font-size: 15px; letter-spacing: 3px; margin-top: 8px; }
.duhuan-portrait { --portrait-height: 285px; --portrait-ratio: .44; position: relative; overflow: hidden; height: var(--portrait-height); width: calc(var(--portrait-height) * var(--portrait-ratio)); margin: auto; }
.duhuan-portrait img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; }
.duhuan-portrait.middle, .duhuan-portrait.elder { --portrait-ratio: .342; }
.duhuan-character-scene { border: 1px solid #bda778; padding: 0; width: min(1300px, 96vw); height: min(850px, 94dvh); max-width: none; max-height: none; margin: auto; background: #f7f1e3; color: #392d20; font-family: 'Songti SC', 'SimSun', serif; }
.duhuan-character-scene::backdrop { background: #1d251fba; }
.duhuan-character-scene header { display: flex; justify-content: space-between; align-items: center; padding: 20px 30px; border-bottom: 1px solid #d4c4a3; font-size: 24px; }
.character-seal { display: inline-grid; place-items: center; background: #9c2a22; color: #f7f1e3; width: 38px; height: 42px; font-weight: normal; }
.duhuan-character-scene button { font: inherit; color: inherit; background: transparent; border: 1px solid #cdbd9b; padding: 9px 14px; cursor: pointer; }
.duhuan-character-scene header button { font-size: 16px; }
.character-layout { display: grid; grid-template-columns: 35% 1fr; gap: 30px; padding: 26px 40px; }
.character-figure { display: grid; align-items: center; overflow: hidden; }
.character-figure .duhuan-portrait { --portrait-height: min(620px, 69dvh); max-width: 100%; }
.character-layout article { min-width: 0; }
.character-layout h1 { font-size: 32px; font-weight: normal; margin: 8px 0 16px; letter-spacing: 5px; }
.character-layout p { line-height: 1.9; }
.character-kicker { color: #9c2a22; letter-spacing: 3px; }
.character-caption { font-size: 12px; color: #88765a; margin: 10px 0; }
.character-layout nav { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.character-layout button[aria-pressed="true"] { color: #fff7e8; background: #9c2a22; border-color: #9c2a22; }
.character-sheet { display: block; }
.character-sheet img { display: block; width: 100%; max-height: 390px; object-fit: contain; background: #eee7d7; }
@media (max-width: 650px) {
  body #brand .tt { font-size: 20px; letter-spacing: 3px; }
  body #brand { padding-right: 12px; gap: 8px; }
  body #bag { top: 84px; right: 20px; }
  body #rail { overflow-x: auto; }
  body #track { min-width: 780px; }
  #card.character-card { right: 12px; width: min(310px, calc(100vw - 24px)); top: 45%; max-height: calc(100dvh - 180px); }
  #character-preview .duhuan-portrait { --portrait-height: 190px; }
  .character-layout { grid-template-columns: 1fr; padding: 20px; gap: 12px; }
  .character-figure .duhuan-portrait { --portrait-height: 300px; }
  .duhuan-character-scene header { font-size: 20px; padding: 14px; }
}
/* 既有人物又有章回的站：“进入章回”占满一行，“查看人物”“回到全景”并排在下 */
#card.character-card.with-chapter .btns { flex-wrap: wrap; }
#card.character-card.with-chapter .btns .main { flex-basis: 100%; }
#card button[hidden] { display: none; }
