:root {
  --hall-paper: #fffcf5;
  --hall-paper-deep: #f2e6cf;
  --hall-ink: var(--ink, #493a2a);
  --hall-muted: var(--muted, #7c6d5a);
  --hall-line: var(--line, #d8c7a7);
  --hall-gold: var(--gold, #8b6429);
}

.hall-main { width: min(1500px, calc(100% - 32px)); margin: auto; padding: 24px 0 56px; }
.hall-tabs { display: flex; overflow-x: auto; border: 1px solid var(--hall-line); border-bottom: 0; background: rgba(255,252,245,.88); }
.hall-tabs button { flex: 0 0 auto; padding: 13px 19px; color: #705e48; border: 0; border-bottom: 3px solid transparent; background: transparent; font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.hall-tabs button b { font: inherit; }
.hall-tabs button:hover, .hall-tabs button.active { color: var(--hall-ink); border-bottom-color: var(--hall-gold); background: #eee1ca; }

.hall-filterbar { position: static; display: flex; align-items: end; gap: 10px; width: auto; padding: 12px; border: 1px solid var(--hall-line); background: rgba(245,238,223,.9); box-shadow: 0 8px 30px rgba(37,29,18,.06); }
.hall-filterbar[aria-busy="true"], .hall-toolbar[aria-busy="true"] { opacity: .64; pointer-events: none; }
.hall-filterbar > [hidden], #hallVersionField[hidden] { display: none !important; }
.hall-filterbar .hero-sort-control { flex: 0 0 auto; }
.hall-filterbar select, .hall-toolbar select { width: auto; min-width: 128px; max-width: 240px; }
.hall-filterbar #hallReset { flex: 0 0 auto; align-self: end; }
.hall-filterbar .result-count { margin-left: auto; align-self: center; white-space: nowrap; }

.hall-toolbar { display: flex; align-items: end; gap: 12px; padding: 12px; border: 1px solid var(--hall-line); border-top: 0; background: rgba(255,252,245,.76); }
.hall-toolbar:empty { display: none; }
.hall-view-switch, .hall-list-controls { display: flex; align-items: end; min-width: 0; }
.hall-view-switch { flex: 0 0 auto; }
.hall-list-controls { flex: 1 1 auto; }
.hall-list-controls { gap: 8px; }
.save-toggle-group { display: inline-flex; flex: 0 0 auto; }
.save-toggle { padding: 9px 12px; color: #655744; border: 1px solid var(--hall-line); border-radius: 0; background: rgba(255,255,255,.54); font-size: 12px; font-weight: 800; white-space: nowrap; }
.save-toggle + .save-toggle { border-left: 0; }
.save-toggle:hover, .save-toggle.active, .save-toggle[aria-pressed="true"] { color: #fff8ea; border-color: #4d7175; background: #4d7175; }
.hall-toolbar .ghost-btn, .hall-filterbar .ghost-btn { min-height: 34px; padding: 7px 11px; color: #70582f; border: 1px solid rgba(139,100,41,.38); border-radius: 0; background: rgba(255,252,245,.82); white-space: nowrap; }
.hall-toolbar .ghost-btn:hover, .hall-filterbar .ghost-btn:hover { color: #fff8ea; border-color: var(--hall-gold); background: var(--hall-gold); }
.hall-status { min-height: 1.5em; margin: 0; padding: 9px 13px; color: var(--hall-muted); font-size: 12px; }
.hall-content { position: relative; padding: 8px 0 18px; }
.hall-content.is-loading > :not(.hall-loading-notice) { opacity: .46; pointer-events: none; transition: opacity .15s ease; }
.hall-loading-notice { position: absolute; z-index: 4; top: 10px; left: 50%; transform: translateX(-50%); margin: 0; padding: 6px 11px; color: var(--hall-muted); border: 1px solid var(--hall-line); background: rgba(255,252,245,.94); box-shadow: 0 4px 12px rgba(48,35,18,.1); font-size: 12px; white-space: nowrap; }
.hall-empty { padding: 44px 20px; border: 1px solid var(--hall-line); background: var(--hall-paper); color: var(--hall-muted); text-align: center; }
.hall-actions { display: flex; justify-content: center; gap: 10px; }

.hall-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.hall-card { --hall-accent: #806541; position: relative; min-width: 0; overflow: hidden; padding: 15px 16px; border: 1px solid var(--hall-line); border-top: 4px solid var(--hall-accent); background: rgba(255,252,245,.9); box-shadow: 0 8px 22px rgba(48,35,18,.07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.hall-card:hover { transform: translateY(-3px); border-color: var(--hall-accent); box-shadow: var(--shadow, 0 12px 28px rgba(48,35,18,.14)); }
.hall-detail-card { cursor: pointer; }
.hall-detail-card:focus-visible { outline: 2px solid #4d7175; outline-offset: 2px; }
.hall-rank { display: inline-grid; min-width: 28px; min-height: 24px; place-items: center; box-sizing: border-box; padding: 3px 6px; color: var(--hall-accent, #806541); border: 1px solid color-mix(in srgb, var(--hall-accent, #806541) 38%, transparent); border-radius: 0; background: rgba(255,252,245,.88); font: 700 11px/1 Georgia, serif; }
.hall-sort-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; align-items: center; margin: 0 0 12px; padding: 0 0 10px; color: #80602c; border-bottom: 1px dashed rgba(139,100,41,.25); font-size: 11px; }
.hall-sort-summary__rank { color: var(--hall-accent, #8b6429); font: 700 15px/1 Georgia, serif; }
.hall-sort-summary__value { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.hall-sort-summary__value small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-sort-summary__value b { flex: 0 0 auto; color: var(--hall-accent, #63481f); font: 700 14px/1 Georgia, serif; }
.hall-sort-summary__bar { display: block; grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 99px; background: #e3d8c5; box-shadow: inset 0 1px 2px rgba(40,28,13,.12); }
.hall-sort-summary__bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hall-accent, #8b6429), #c7a463); }

.hall-card-head, .hall-overview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
.hall-card-head p { margin: 5px 0 0; color: var(--hall-muted); font-size: 11px; }
.hall-object, .hall-player-open { display: flex; align-items: center; gap: 11px; min-width: 0; color: inherit; border: 0; background: transparent; text-align: left; }
.hall-object-visual, .hall-object > i { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; overflow: hidden; color: var(--hall-accent, #806541); border: 1px solid color-mix(in srgb, var(--hall-accent, #806541) 42%, transparent); border-radius: 0; background: color-mix(in srgb, var(--hall-accent, #806541) 10%, #fffaf0); font: 700 24px/1 "STKaiti", "KaiTi", serif; }
.hall-object-visual img { width: 100%; height: 100%; object-fit: contain; }
.hall-object-name, .hall-player-name { min-width: 0; }
.hall-object-name b, .hall-player-name b { display: block; overflow: hidden; color: var(--hall-ink); font: 700 21px/1.2 "STKaiti", "KaiTi", serif; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.hall-object-name small, .hall-player-open > small { display: block; overflow: hidden; margin-top: 4px; color: var(--hall-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hall-object--advanced { align-items: flex-start; padding-top: 2px; }
.hall-object--advanced .hall-object-name b { color: var(--hall-accent); font-size: 23px; }

.hall-level-badge { flex: 0 0 auto; padding: 5px 7px; color: var(--hall-accent); border: 1px solid color-mix(in srgb, var(--hall-accent) 42%, transparent); background: color-mix(in srgb, var(--hall-accent) 9%, white); font: 700 12px/1 Georgia, serif; white-space: nowrap; }
.hall-overview-attributes, .hall-overview-career, .hall-overview-battle, .hall-overview-footer { margin-top: 11px; }
.hall-overview-attributes { padding: 10px 0; border-top: 1px solid var(--hall-line); border-bottom: 1px solid var(--hall-line); }
.hall-overview-career { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 33px; }
.hall-overview-career > .hall-card-metrics { flex: 0 1 auto; grid-template-columns: repeat(2, minmax(0, auto)); }
.hall-overview-growth { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-width: 0; margin-top: 9px; }
.hall-breakthrough-chip, .hall-difficulty-label { display: inline-flex; align-items: center; width: fit-content; padding: 3px 6px; color: var(--hall-accent, #765728); border: 1px solid color-mix(in srgb, var(--hall-accent, #806541) 34%, transparent); background: color-mix(in srgb, var(--hall-accent, #806541) 8%, white); font-size: 10px; font-weight: 800; white-space: nowrap; }
.hall-player-card { border-top-color: var(--hall-accent); background: linear-gradient(145deg, color-mix(in srgb, var(--hall-accent) 7%, #fffaf0), rgba(255,252,245,.94) 62%); }
.hall-career-chips { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 5px; min-width: 0; }
.hall-career-chips span, .hall-career-chips b { padding: 4px 7px; color: #765728; border: 1px solid rgba(139,100,41,.28); border-radius: 0; background: rgba(215,184,115,.12); font-size: 11px; }
.hall-career-chips span small, .hall-career-chips b small { display: block; margin-top: 2px; color: var(--hall-muted); font-size: 10px; font-weight: 600; line-height: 1.2; }
.hall-career-chips b { color: var(--hall-accent); border-color: color-mix(in srgb, var(--hall-accent) 35%, transparent); background: color-mix(in srgb, var(--hall-accent) 9%, white); }
.hall-hero-career-chips { align-items: stretch; }
.hall-hero-career { display: inline-flex; flex-direction: row; align-items: baseline; justify-content: center; gap: 5px; min-width: 50px; padding: 4px 7px; color: var(--hall-ink); border: 1px solid rgba(91,67,33,.2); background: rgba(255,255,255,.45); }
.hall-hero-career small { margin: 0; color: var(--hall-muted); font-size: 10px; line-height: 1.15; }
.hall-hero-career b { padding: 0; color: inherit; border: 0; background: transparent; font-size: 12px; line-height: 1.2; }
.hall-career-chips .hall-hero-career--first { color: #455e78; border-color: color-mix(in srgb, #455e78 48%, transparent); background: color-mix(in srgb, #455e78 12%, white); }
.hall-career-chips .hall-hero-career--second { color: #765728; border-color: rgba(139,100,41,.38); background: rgba(215,184,115,.19); }
.hall-overview-battle { padding-top: 10px; border-top: 1px dashed rgba(91,67,33,.22); }
.hall-overview-footer { padding-top: 9px; border-top: 1px solid var(--hall-line); }

/* 玩家概览沿用解析录人物详细卡片的行结构与最终生效尺寸。 */
.hall-overview-card .hall-overview-head { align-items: flex-start; }
.hall-overview-card .hall-player-identity { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 10px; min-height: 68px; }
.hall-overview-card .hall-player-identity-main { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.hall-overview-card .hall-player-initial { display: grid; width: 68px; height: 68px; place-items: center; box-sizing: border-box; color: var(--hall-accent); border: 2px solid var(--hall-accent); border-radius: 0; background: color-mix(in srgb,var(--hall-accent) 9%,#f7ecda); box-shadow: inset 0 0 0 2px rgba(255,255,255,.68); font: 700 29px/1 "STKaiti","KaiTi",serif; }
.hall-overview-card .hall-player-name { align-self: center; }
.hall-overview-card .hall-player-name b { white-space: normal; overflow-wrap: anywhere; }
.hall-overview-card .hall-level-stack { display: grid; justify-items: end; gap: 5px; flex: 0 0 auto; }
.hall-overview-card .hall-level-badge { color: #fff8ea; border: 0; background: var(--hall-accent); font: 700 12px/1 Georgia, serif; }
.hall-overview-card .hall-breakthrough-chip { padding: 2px 5px; font-size: 10px; }
.hall-overview-card .hall-player-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 0; }
.hall-overview-card .hall-player-meta > span, .hall-overview-card .hall-player-meta > i { display: inline-flex; padding: 3px 6px; font-size: 10px; font-style: normal; font-weight: 700; border: 1px solid rgba(118,96,68,.2); background: #eee1ca; white-space: nowrap; }
.hall-overview-card .hall-player-meta .hall-difficulty-label { color: var(--hall-accent); border-color: color-mix(in srgb,var(--hall-accent) 36%,transparent); background: color-mix(in srgb,var(--hall-accent) 9%,white); }
.hall-overview-card .hall-player-meta .meta-affinity { color: #23684d; border-color: rgba(35,104,77,.25); background: rgba(35,104,77,.08); }
.hall-overview-card .hall-player-attrs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 10px; padding: 10px 0; border-top: 1px solid var(--hall-line); border-bottom: 1px solid var(--hall-line); }
.hall-overview-card .hall-player-attrs span { display: grid; gap: 2px; min-width: 0; padding: 7px 4px; color: #765728; text-align: center; font: 700 16px/1.2 Georgia,serif; border: 0; background: transparent; }
.hall-overview-card .hall-player-attrs b { color: var(--hall-accent); font: 700 11px/1 "STKaiti","KaiTi",serif; }
.hall-overview-card .hall-player-attrs strong { color: #765728; font: 700 23px/1 Georgia,serif; }
.hall-overview-card .hall-player-attrs i { display: block; height: 5px; overflow: hidden; margin: 5px 8px 0; border-radius: 99px; background: #e3d8c5; box-shadow: inset 0 1px 2px rgba(40,28,13,.12); }
.hall-overview-card .hall-player-attrs i em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--hall-accent),#c7a463); }
.hall-overview-card .fit-mini-list { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.hall-overview-card .fit-mini { display: inline-flex; align-items: center; min-height: 24px; box-sizing: border-box; padding: 4px 7px; border: 1px solid rgba(91,67,33,.2); background: rgba(255,255,255,.55); font-size: 11px; line-height: 1.2; }
.hall-overview-card .fit-mini--cavalry { color: #765728; }
.hall-overview-card .fit-mini--infantry { color: #4b755b; }
.hall-overview-card .fit-mini--archer { color: #576b89; }
.hall-overview-card .hero-card__row { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 8px; padding-top: 11px; color: #514638; font-size: 12px; line-height: 1.55; }
.hall-overview-card .hero-row-label { color: var(--hall-muted); font-size: 11px; font-weight: 800; padding-top: 4px; }
.hall-overview-card .save-career-list, .hall-overview-card .save-battle-list, .hall-overview-card .save-person-card__titles { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.hall-overview-card .hall-career-chips { flex: 0 1 auto; }
.hall-overview-card .save-battle-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 7px; color: #765728; border: 1px solid rgba(91,67,33,.2); background: rgba(255,255,255,.55); }
.hall-overview-card .save-battle-chip em, .hall-overview-card .hall-player-progress em { color: #8b7a62; font-size: 10px; font-style: normal; font-weight: 800; }
.hall-overview-card .save-battle-chip b, .hall-overview-card .hall-player-progress b { color: #6d5535; font: 700 12px/1.2 Georgia,serif; }
.hall-overview-card .hall-player-progress span { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 6px; color: #765728; border: 1px solid rgba(139,100,41,.28); background: rgba(215,184,115,.12); white-space: nowrap; }
.hall-overview-card .save-person-card__equip-rows { display: grid; gap: 6px; margin-top: 13px; padding-top: 11px; border-top: 1px dashed rgba(91,67,33,.22); }
.hall-overview-card .save-loadout-group { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 8px; align-items: start; }
.hall-overview-card .save-loadout-label { color: var(--hall-muted); font-size: 11px; font-weight: 800; padding-top: 6px; }
.hall-overview-card .save-loadout-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.hall-overview-card .save-card-empty, .hall-overview-card .hall-gear-pending { color: #a09482; font-size: 11px; font-style: normal; }
.hall-overview-card .career-chip { --career-color: #765728; display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 6px; color: var(--career-color); border: 1px solid color-mix(in srgb,var(--career-color) 30%,transparent); background: color-mix(in srgb,var(--career-color) 9%,white); font: 700 15px/1.25 "STKaiti","KaiTi",serif; white-space: normal; }
.hall-overview-card .career--strength { --career-color: var(--strength); }
.hall-overview-card .career--agility { --career-color: var(--agility); }
.hall-overview-card .career--intelligence { --career-color: var(--intelligence); }
.hall-overview-card .career--charisma { --career-color: var(--charisma); }
.hall-overview-card .career-chip.career--advanced { border-width: 2px; background: color-mix(in srgb,var(--career-color) 14%,white); }
.hall-overview-card .career-chip small, .hall-overview-card .career-chip em { font: 600 11px/1.3 "Microsoft YaHei",sans-serif; font-style: normal; }
.hall-hero-overview .hall-hero-portrait { display: grid; width: 68px; height: 68px; place-items: center; overflow: hidden; border: 2px solid var(--hall-accent); background: #f1e5ce; box-sizing: border-box; }
.hall-hero-overview .hall-hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hall-hero-overview .hall-hero-portrait b { font: 700 26px/1 "STKaiti","KaiTi",serif; }
.hall-hero-overview .hall-player-meta .hero-faction-badge { color: var(--hall-accent); border-color: color-mix(in srgb,var(--hall-accent) 35%,transparent); background: color-mix(in srgb,var(--hall-accent) 10%,white); }
.hall-hero-overview .hall-player-meta > .hall-hero-career--first { flex: 0 0 auto; padding: 1px 5px; font-size: 12px; line-height: 1.15; white-space: nowrap; }
.hall-hero-overview .hall-hero-career-chips { gap: 3px; }
.hall-overview-card .career-chip.career--advanced.hall-hero-career--advanced { gap: 2px; padding: 2px 4px; border-width: 1px; font: 600 12px/1.15 "Microsoft YaHei",sans-serif; white-space: nowrap; }
.hall-overview-card .career-chip.career--advanced.hall-hero-career--advanced strong { font: inherit; }
.hall-overview-card .career-chip.career--advanced.hall-hero-career--advanced small,
.hall-overview-card .career-chip.career--advanced.hall-hero-career--advanced em { margin: 0; font: 500 10px/1.15 "Microsoft YaHei",sans-serif; font-style: normal; white-space: nowrap; }
.hall-overview-card .career-chip.career--advanced.hall-hero-career--advanced em { margin-left: 1px; }
.hall-hero-overview .hall-hero-personal-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 6px; border: 1px solid rgba(139,100,41,.28); background: rgba(215,184,115,.12); }
.hall-hero-overview .hall-hero-personal-chip em { color: #8b7a62; font-size: 10px; font-style: normal; }
.hall-hero-overview .hall-hero-personal-chip b { color: #6d5535; font: 700 12px/1.2 Georgia,serif; }
.hall-hero-overview .loadout-chip { display: inline-flex; align-items: baseline; gap: 4px; }
.hall-hero-overview .loadout-chip > span { overflow: visible; white-space: normal; }
.hall-hero-overview .loadout-chip small { color: var(--hall-muted); font-size: 10px; }
.hall-hero-overview .loadout-chip em { margin-left: 2px; white-space: nowrap; }
.hall-hero-gear-detail { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 8px; margin: 7px 0; font-size: 12px; }
.hall-hero-gear-detail > div { display: flex; flex-wrap: wrap; gap: 5px; }
.hall-hero-gear-detail span { padding: 3px 6px; border: 1px solid var(--hall-line); background: rgba(255,255,255,.55); }
.hall-gear-tip .save-tip-affixes { display: grid; gap: 3px; margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(215,184,115,.28); }
.hall-gear-tip .save-affix-line { margin: 0; color: #e8ddc4; font-family: inherit; font-size: 11px; line-height: 1.6; }
.hall-gear-tip .save-affix-line span { color: #f0ddb0; }
.hall-gear-tip .save-affix-line strong { color: #e8ddc4; }
.hall-gear-tip .save-affix-line--grade-1 strong { color: #75fa8d; }
.hall-gear-tip .save-affix-line--grade-2 strong { color: #77a8ff; }
.hall-gear-tip .save-affix-line--grade-3 strong { color: #f7be25; }
.hall-gear-tip .save-affix-line--grade-4 strong { color: #ff8c00; }
.hall-gear-tip { font-family: "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: .76rem; }
.hall-gear-tip .save-affix-line.artifact-game-line--native { font-family: inherit; font-size: 11px; font-weight: inherit; line-height: 1.6; }
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-1,
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-1 span,
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-1 strong { color: #75fa8d !important; }
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-2,
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-2 span,
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-2 strong { color: #b15bff !important; }
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-3,
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-3 span,
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-3 strong { color: #f7be25 !important; }
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-4,
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-4 span,
.hall-gear-tip .save-affix-line.artifact-game-line--native-grade-4 strong,
.hall-gear-tip .save-affix-line.artifact-game-line--native.is-exclusive,
.hall-gear-tip .save-affix-line.artifact-game-line--native.is-exclusive span,
.hall-gear-tip .save-affix-line.artifact-game-line--native.is-exclusive strong { color: #ff4646 !important; }
.hall-gear-tip .save-tip-line { margin: 6px 0 0; color: #cbbd99; font-size: 11px; }

.hall-card-section { margin-top: 13px; }
.hall-card-section + .hall-card-section { padding-top: 12px; border-top: 1px dashed rgba(91,67,33,.22); }
.hall-card-section h4, .hall-item-metric-group h4 { margin: 0 0 8px; color: #8b6429; font-size: 11px; letter-spacing: .12em; }
.hall-card-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hall-card-metric { min-width: 0; padding: 7px 8px; border: 1px solid rgba(91,67,33,.14); background: rgba(255,255,255,.42); }
.hall-card-metric.is-active { border-color: color-mix(in srgb, var(--hall-accent, #8b6429) 58%, transparent); background: color-mix(in srgb, var(--hall-accent, #8b6429) 10%, white); }
.hall-card-metric span { display: block; overflow: hidden; color: var(--hall-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hall-card-metric b { display: block; margin-top: 3px; color: #765728; font: 700 14px/1.2 Georgia, serif; }
.hall-card-metric > i, .hall-life-bar > div { display: block; height: 5px; overflow: hidden; margin-top: 6px; border-radius: 99px; background: #e3d8c5; box-shadow: inset 0 1px 2px rgba(40,28,13,.12); }
.hall-card-metric > i em, .hall-life-bar > div i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hall-accent, #8b6429), #c7a463); }
.hall-attribute-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hall-attribute-grid .hall-card-metric { padding: 6px 4px; border: 0; background: transparent; text-align: center; }
.hall-attribute-grid .hall-card-metric span { color: var(--hall-accent); font-weight: 800; }
.hall-attribute-grid .hall-card-metric b { color: var(--hall-ink); font-size: 23px; }
.hall-overview-battle > .hall-card-metrics, .hall-hero-rates > .hall-card-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hall-overview-footer:not(.hall-hero-rates) > .hall-card-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hall-section--battle .hall-card-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hall-section--efficiency .hall-card-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hall-section--attributes .hall-card-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hall-section--skills .hall-card-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hall-section--proficiencies .hall-card-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hall-compact-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.save-compact-card { min-width: 0; overflow: hidden; border: 1px solid var(--hall-line); border-left: 3px solid var(--quality, var(--hall-accent, #806541)); background: color-mix(in srgb, var(--quality, var(--hall-accent, #806541)) 5%, #fffcf5); box-shadow: 0 4px 12px rgba(48,35,18,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.save-compact-card:hover { transform: translateY(-2px); border-color: var(--quality, var(--hall-accent, #806541)); box-shadow: var(--shadow); }
.save-compact-card__open { display: block; width: 100%; padding: 8px 10px 9px; color: inherit; text-align: left; border: 0; background: transparent; }
.save-compact-card__open:focus-visible { outline: 2px solid #4d7175; outline-offset: -2px; }
.save-compact-card__top { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.save-compact-card__rank { flex: 0 0 auto; min-width: 20px; padding: 2px 5px; text-align: center; color: var(--quality, var(--hall-accent, #8b6429)); border: 1px solid color-mix(in srgb, var(--quality, var(--hall-accent, #8b6429)) 30%, transparent); background: color-mix(in srgb, var(--quality, var(--hall-accent, #8b6429)) 10%, white); font: 700 12px/1.2 Georgia, serif; }
.save-compact-card__name { flex: 1 1 auto; min-width: 0; overflow: hidden; margin: 0; color: var(--quality, var(--hall-ink)); font-family: "STKaiti", "KaiTi", serif; font-size: 18px; font-weight: 700; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.hall-compact-tag { flex: 0 0 auto; min-width: max-content; max-width: none; overflow: visible; padding: 2px 5px; color: var(--hall-muted); border: 1px solid rgba(91,67,33,.18); font-size: 10px; white-space: nowrap; }
.hall-compact-tag--sources { flex: 0 1 auto; max-width: 48%; margin-left: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-compact-context { display: block; margin: 4px 0 0 33px; color: var(--hall-accent, var(--hall-muted)); font-size: 10px; font-weight: 800; }
.save-compact-card__sort { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 7px; padding: 3px 6px; border: 1px solid rgba(91,67,33,.16); background: rgba(238,225,202,.45); }
.save-compact-card__sort span { overflow: hidden; color: #8b7a62; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.save-compact-card__sort b { flex: 0 0 auto; color: var(--quality, var(--hall-accent, #6d5535)); font: 700 12px/1.2 Georgia, serif; }
.save-compact-card__bar { display: block; height: 5px; overflow: hidden; margin-top: 6px; border-radius: 99px; background: #e3d8c5; box-shadow: inset 0 1px 2px rgba(40,28,13,.12); }
.save-compact-card__bar em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--quality, var(--hall-accent, #8b6429)), #c7a463); }
.hall-compact-card--featured { grid-column: span 2; }

.hall-item-card { padding: 0; border-color: color-mix(in srgb, var(--quality, #81735f) 42%, rgba(91,67,33,.18)); border-top-color: var(--quality, #81735f); background: linear-gradient(145deg, color-mix(in srgb, var(--quality, #81735f) 13%, #fffaf0), rgba(255,252,245,.94) 58%, color-mix(in srgb, var(--quality, #81735f) 20%, #eee1ca)); }
.hall-item-card > .hall-sort-summary { margin: 12px 12px 0; }
.hall-item-head { display: block; min-width: 0; border-bottom: 1px solid color-mix(in srgb, var(--quality, #81735f) 20%, transparent); }
.hall-item-head .hall-object { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 11px; align-items: center; }
.hall-item-head .hall-object-visual { width: 104px; height: 104px; padding: 8px; box-sizing: border-box; border: 0; border-right: 1px solid color-mix(in srgb, var(--quality, #81735f) 24%, transparent); background: color-mix(in srgb, var(--quality, #81735f) 10%, rgba(238,225,202,.45)); }
.hall-item-head .hall-object-visual img { border: 1px solid color-mix(in srgb, var(--quality, #81735f) 40%, transparent); background: rgba(255,252,245,.5); object-fit: contain; }
.hall-item-head .hall-object-name b { display: -webkit-box; overflow: hidden; color: var(--quality, #493a2a); font-size: 19px; text-overflow: ellipsis; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hall-item-inline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.hall-item-inline-meta small, .hall-item-category { color: var(--hall-muted); font-size: 10px; }
.hall-quality { display: inline-flex; padding: 3px 6px; color: #fff; border: 1px solid var(--quality, #81735f); border-radius: 0; background: var(--quality, #81735f); font-size: 10px; font-weight: 800; white-space: nowrap; }
.hall-item-metric-group { padding: 10px 12px 0; }
.hall-item-metric-group:last-child { padding-bottom: 12px; }
.hall-item-metric-group + .hall-item-metric-group { border-top: 1px dashed color-mix(in srgb, var(--quality, #81735f) 25%, transparent); }
.hall-item-card .hall-card-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hall-item-card .hall-card-metric.is-active { border-color: var(--quality); background: color-mix(in srgb, var(--quality) 10%, white); }
.quality--ordinary { --quality: #81735f; --hall-accent: #81735f; }
.quality--refined { --quality: #3f8d5a; --hall-accent: #3f8d5a; }
.quality--normal, .quality--unique { --quality: #67429b; --hall-accent: #67429b; }
.quality--premium { --quality: #c08a1a; --hall-accent: #c08a1a; }
.quality--set { --quality: #bd3f3f; --hall-accent: #bd3f3f; }

.hall-career-card .hall-object-visual { border-color: var(--hall-accent); background: color-mix(in srgb, var(--hall-accent) 10%, white); }
.hall-career-card .hall-object-name b { color: var(--hall-accent); }
.hall-node-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.hall-node-pair { padding: 8px; border: 1px solid rgba(91,67,33,.14); background: rgba(255,255,255,.42); }
.hall-node-pair.is-active { border-color: var(--hall-accent); background: color-mix(in srgb, var(--hall-accent) 9%, white); }
.hall-node-pair > b { display: block; margin-bottom: 6px; color: var(--hall-accent); font-size: 11px; }
.hall-node-pair span { display: flex; justify-content: space-between; gap: 6px; color: var(--hall-muted); font-size: 10px; }
.hall-node-pair strong { color: var(--hall-ink); font-size: 12px; }
.hall-career-intro { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 11px 13px; border: 1px solid var(--hall-line); border-left: 4px solid var(--hall-gold); background: rgba(245,238,223,.75); }
.hall-career-intro span { display: block; margin-top: 3px; color: var(--hall-muted); font-size: 11px; }

.hall-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--hall-line); background: var(--hall-paper); }
.hall-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.hall-table th, .hall-table td { padding: 9px 10px; border-bottom: 1px solid #e4dac2; text-align: left; }
.hall-table th { position: sticky; z-index: 3; top: 0; color: #66502c; background: #eee3ca; font-size: 11px; }
.hall-table th button { color: inherit; border: 0; background: transparent; font-weight: 800; }
.hall-table th button i { display: inline-block; min-width: 1em; margin-left: 3px; font-style: normal; }
.hall-table td.is-active, .hall-table th[aria-sort="ascending"], .hall-table th[aria-sort="descending"] { background: #fff1c8; }
.hall-table th:first-child, .hall-table td:first-child { position: sticky; z-index: 2; left: 0; background: #f8f0dd; }
.hall-table thead th:first-child { z-index: 5; background: #eee3ca; }
.hall-table-identity { min-width: 180px; }
.hall-table-link { display: inline-flex; align-items: center; gap: 7px; max-width: 270px; padding: 0; color: inherit; border: 0; background: transparent; text-align: left; }
.hall-table-link:hover b, .hall-table-link:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.hall-table-link:focus-visible { outline: 2px solid #4d7175; outline-offset: 3px; }
.hall-table-link > span:last-child { min-width: 0; }
.hall-table-link b { display: block; overflow: hidden; color: var(--quality, var(--hall-accent, var(--hall-ink))); font: 700 15px/1.2 "STKaiti", "KaiTi", serif; text-overflow: ellipsis; white-space: nowrap; }
.hall-player-row td:first-child { box-shadow: inset 3px 0 0 var(--hall-accent); }
.hall-table-link small { display: block; overflow: hidden; margin-top: 2px; color: var(--hall-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hall-table-rank { flex: 0 0 auto; color: var(--quality, var(--hall-gold)); font: 700 11px/1 Georgia, serif; }
.hall-table-quality { color: var(--quality); font-weight: 800; }

.hall-summary { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 9px; }
.hall-metric { padding: 9px 10px; border: 1px solid rgba(91,67,33,.14); border-left: 3px solid var(--hall-gold); background: rgba(255,252,245,.82); }
.hall-metric span { display: block; color: var(--hall-muted); font-size: 11px; }
.hall-metric strong { display: block; margin-top: 3px; color: #765728; font: 700 18px/1.2 Georgia, serif; }
.hall-choice-block { margin-top: 16px; padding: 13px; border: 1px solid var(--hall-line); background: rgba(255,252,245,.72); }
.hall-choice-block h3, .hall-heading { margin: 0 0 9px; color: #765728; font: 700 18px/1.2 "STKaiti", "KaiTi", serif; }
.hall-choice-list { display: flex; flex-wrap: wrap; gap: 7px; }
.hall-choice-list > span { padding: 6px 8px; border: 1px solid rgba(91,67,33,.14); background: rgba(255,255,255,.4); }
.hall-choice-list small { display: block; margin-top: 2px; color: var(--hall-muted); font-size: 10px; }
.hall-highlight-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hall-highlight { padding: 13px; border: 1px solid var(--hall-line); border-top: 3px solid var(--hall-gold); background: rgba(255,252,245,.82); }
.hall-highlight h3 { margin: 0 0 8px; color: #6e5229; font-family: "STKaiti", "KaiTi", serif; }
.hall-highlight p { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 34px; margin: 0; padding: 5px 0; border-bottom: 1px dashed rgba(91,67,33,.16); font-size: 11px; }
.hall-highlight p span { display: -webkit-box; overflow: hidden; min-width: 0; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hall-highlight p strong { flex: 0 0 auto; }
.hall-highlight-pending { color: var(--hall-muted); }
.hall-link-button { margin-top: 9px; padding: 0 !important; color: #7a5724 !important; border: 0 !important; background: transparent !important; text-decoration: underline; text-underline-offset: 3px; }

.hall-life-intro, .hall-tip { padding: 9px 12px; color: #65583f; border-left: 4px solid var(--hall-gold); background: rgba(245,238,223,.84); }
.hall-life-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; align-items: start; }
.hall-life-group, .hall-life-layout > .hall-section { min-width: 0; margin: 0; padding: 17px; border: 1px solid var(--hall-line); background: rgba(255,252,245,.82); }
.hall-life-group--wide, .hall-life-layout > .hall-title-section { grid-column: 1 / -1; }
.hall-life-group h2, .hall-life-layout > .hall-section > h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: #866127; font-size: 17px; font-weight: 700; letter-spacing: .1em; }
.hall-life-group h2::before, .hall-life-layout > .hall-section > h2::before { content: ""; width: 16px; height: 2px; flex: 0 0 auto; background: currentColor; }
.hall-life-group h3, .hall-content > .hall-section > h3 { margin: 0 0 8px; color: #765728; font-size: 12px; }
.hall-life-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hall-life-bar { min-width: 0; padding: 7px 8px; border: 1px solid rgba(91,67,33,.14); background: rgba(255,255,255,.42); }
.hall-life-bar span { display: block; overflow: hidden; color: var(--hall-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hall-life-bar b { color: #765728; font: 700 15px/1.2 Georgia, serif; }
.hall-life-bar > div i { width: var(--hall-value); }
.hall-life-skill-groups, .hall-life-battle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hall-life-skill-groups > section, .hall-life-battle-grid > section { min-width: 0; padding: 10px; border: 1px solid rgba(91,67,33,.13); background: rgba(238,225,202,.25); }
.hall-life-skill-groups .hall-life-bars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hall-life-battle-grid .hall-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hall-life-group--attributes .hall-life-bars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hall-life-group--proficiencies .hall-life-bars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hall-life-layout > .hall-life-group:not(.hall-life-group--wide) .hall-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hall-life-group--battle .hall-metric { padding: 7px 8px; }
.hall-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hall-section-heading h2 { margin-bottom: 0 !important; }
.hall-title-sort { display: flex; align-items: center; gap: 8px; color: var(--hall-muted); font-size: 11px; }
.hall-title-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.hall-title-grid article { min-width: 0; padding: 8px 9px; border: 1px solid rgba(91,67,33,.14); background: rgba(255,255,255,.4); }
.hall-title-grid strong, .hall-title-grid small, .hall-title-grid span { display: block; margin-top: 3px; }
.hall-title-grid strong { color: #765728; }
.hall-title-grid small, .hall-title-grid span { color: var(--hall-muted); font-size: 10px; }

.hall-panel { width: min(940px, 96vw); padding: 36px 39px 54px; }
.hall-panel--person { width: min(940px, 96vw); padding: 28px 32px 44px; }
.hall-person-detail-heading { --hall-accent: #806541; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 20px; align-items: center; min-width: 0; padding: 8px 40px 25px 0; border-bottom: 1px solid var(--hall-line); }
.hall-person-detail-portrait { display: grid; width: 124px; height: 124px; place-items: center; box-sizing: border-box; overflow: hidden; color: var(--hall-accent); border: 2px solid var(--hall-accent); background: color-mix(in srgb,var(--hall-accent) 9%,#f7ecda); box-shadow: inset 0 0 0 3px rgba(255,255,255,.64), 0 4px 10px rgba(47,35,20,.12); font: 700 40px/1 "STKaiti","KaiTi",serif; object-fit: cover; }
.hall-person-detail-heading h2 { min-width: 0; margin: 4px 0 5px; color: #6e5229; font: 700 clamp(34px, 5vw, 50px)/1.18 "STKaiti","KaiTi",serif; overflow-wrap: anywhere; }
.hall-person-detail-heading p { margin: 0; color: var(--hall-muted); font: 12px/1.5 Georgia,serif; }
.hall-detail-kicker { color: var(--hall-accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.hall-detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.hall-detail-chips span { padding: 5px 8px; color: #765728; border: 1px solid rgba(139,100,41,.28); background: rgba(215,184,115,.12); font-size: 11px; font-weight: 800; }
.hall-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; align-items: start; }
.hall-panel--person .hall-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.hall-detail-section { min-width: 0; margin: 0; padding: 17px; border: 1px solid var(--hall-line); background: rgba(255,255,255,.42); }
.hall-panel--person .hall-detail-section { padding: 13px; }
.hall-detail-section--wide { grid-column: 1 / -1; }
.hall-detail-section--identity { margin-top: 18px; }
.hall-detail-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; color: #866127; font-size: 17px; letter-spacing: .1em; }
.hall-panel--person .hall-detail-section h3 { margin-bottom: 10px; font-size: 16px; letter-spacing: .08em; }
.hall-detail-section h3::before { content: ""; width: 16px; height: 2px; flex: 0 0 auto; background: currentColor; }
.hall-panel--person .hall-detail-section .hall-card-metric,
.hall-panel--person .hall-detail-section .hall-metric { padding: 6px 4px; border: 0; border-bottom: 1px solid rgba(91,67,33,.15); background: transparent; }
.hall-panel--person .hall-detail-section .hall-card-metric span { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.hall-detail-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.hall-detail-section--wide .hall-detail-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hall-panel--person .hall-detail-section--metrics .hall-detail-metrics,
.hall-panel--person .hall-detail-section--metrics .hall-card-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hall-detail-subsections { display: grid; gap: 10px; }
.hall-detail-subsection h4 { margin: 0 0 7px; color: #8b6429; font-size: 12px; }
.hall-detail-section--skills .hall-detail-subsections, .hall-detail-section--skills .hall-player-detail-sections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.hall-detail-section--skills .hall-detail-metrics, .hall-detail-section--skills .hall-card-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
.hall-detail-section--attributes .hall-card-metrics, .hall-detail-section--attributes .hall-detail-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.hall-detail-section--proficiencies .hall-card-metrics, .hall-detail-section--proficiencies .hall-detail-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.hall-player-detail-sections .hall-card-section { margin: 0; }
.hall-detail-section--skills .hall-card-section + .hall-card-section { padding-top: 0; border-top: 0; }
.hall-detail-title-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.hall-detail-title-group { box-sizing: border-box; min-width: 0; padding: 9px; border: 1px solid rgba(91,67,33,.14); background: rgba(245,238,223,.32); }
.hall-detail-title-group--many { grid-column: 1 / -1; }
.hall-detail-title-group h4 { margin: 0 0 7px; color: #765728; font-size: 13px; }
.hall-detail-title-group .hall-title-grid { grid-template-columns: minmax(0, 1fr); gap: 5px; }
.hall-detail-title-group--many .hall-title-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hall-detail-title-group .hall-title-grid article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 7px; padding: 6px 8px; }
.hall-detail-title-group .hall-title-grid article > b { min-width: 0; overflow-wrap: anywhere; }
.hall-detail-title-group .hall-title-grid article > strong { margin: 0; white-space: nowrap; }
.hall-detail-title-group .hall-title-grid article > small,
.hall-detail-title-group .hall-title-grid article > div { grid-column: 1 / -1; }
.hall-detail-privacy { margin: 18px 0 0; color: var(--hall-muted); font-size: 11px; line-height: 1.6; }
.hall-detail-head { display: flex; align-items: center; gap: 14px; }
.hall-detail-head img { width: 82px; height: 82px; object-fit: contain; border: 1px solid var(--hall-line); background: #f5ead5; }
.hall-panel { outline: none; }
.hall-panel :focus-visible { outline: 3px solid rgba(139,100,41,.48); outline-offset: 2px; }
.hall-player-name { display: flex; align-items: center; gap: 9px; }
.hall-player-detail-head { padding-bottom: 12px; border-bottom: 1px solid var(--hall-line); }
.hall-player-detail-head p { color: var(--hall-muted); }
.hall-heat-section { padding: 14px; border: 1px solid var(--hall-line); background: rgba(255,252,245,.82); }
.hall-heat-section h2 { margin: 0 0 10px; color: #59452c; }
.hall-heat { display: grid; grid-template-columns: 100px repeat(15, minmax(74px, 1fr)); margin-top: 10px; overflow: auto; }
.hall-heat > * { min-height: 40px; padding: 7px; border: 1px solid #e0d2b4; background: var(--hall-paper); font-size: 10px; }
.hall-heat > span { display: grid; place-items: center; color: #66502c; font-weight: 700; }
.hall-heat > button { color: var(--hall-ink); background: color-mix(in srgb, #c08a1a calc(var(--hall-heat) * 68%), #fffaf0); }
.hall-heat > button:hover, .hall-heat > button:focus-visible { outline: 2px solid #4d7175; outline-offset: -2px; }
.hall-heat .is-invalid { background: rgba(91,67,33,.05); }
.hall-heat .is-unknown { color: var(--hall-muted); background: #faf6ed; }

@media (max-width: 1100px) {
  .hall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-compact-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hall-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hall-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-highlight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hall-title-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hall-life-skill-groups .hall-life-bars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hall-detail-title-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-detail-title-group--many .hall-title-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .hall-main { width: min(100% - 20px, 1500px); }
  .hall-filterbar { flex-wrap: wrap; }
  .hall-filterbar .result-count { width: 100%; margin-left: 0; }
  .hall-toolbar { align-items: stretch; flex-wrap: wrap; }
  .hall-list-controls { flex: 1 1 100%; flex-wrap: wrap; }
  .hall-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-life-layout { grid-template-columns: 1fr; }
  .hall-life-skill-groups, .hall-life-battle-grid { grid-template-columns: 1fr; }
  .hall-detail-grid { grid-template-columns: 1fr; }
  .hall-detail-section--wide { grid-column: auto; }
  .hall-detail-section--skills .hall-detail-subsections, .hall-detail-section--skills .hall-player-detail-sections { grid-template-columns: 1fr; }
  .hall-panel--person .hall-detail-section--metrics .hall-detail-metrics,
  .hall-panel--person .hall-detail-section--metrics .hall-card-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hall-panel { width: 100vw; max-width: 100vw; padding: 24px 17px 40px; }
  .hall-person-detail-heading { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; }
  .hall-person-detail-portrait { width: 88px; height: 88px; font-size: 32px; }
  .hall-title-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hall-compact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hall-main { width: 100%; padding-top: 0; }
  .hall-tabs { border-left: 0; border-right: 0; }
  .hall-filterbar, .hall-toolbar { border-left: 0; border-right: 0; padding: 10px 12px; }
  .hall-filterbar .hero-sort-control { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .hall-filterbar select { width: 100%; min-width: 0; max-width: none; }
  .hall-filterbar #hallReset { flex: 0 0 auto; }
  .hall-view-switch { max-width: 100%; }
  .hall-list-controls .hero-sort-control { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .hall-list-controls select { width: 100%; min-width: 0; max-width: none; }
  .hall-grid { grid-template-columns: 1fr; }
  .hall-content { padding-top: 5px; }
  .hall-card { border-left: 0; border-right: 0; }
  .hall-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-attribute-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hall-attribute-grid .hall-card-metric b { font-size: 20px; }
  .hall-section--battle .hall-card-metrics, .hall-section--efficiency .hall-card-metrics, .hall-section--attributes .hall-card-metrics, .hall-section--skills .hall-card-metrics, .hall-section--proficiencies .hall-card-metrics, .hall-life-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-life-skill-groups .hall-life-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-overview-footer:not(.hall-hero-rates) > .hall-card-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hall-overview-card .hall-player-attrs strong { font-size: 20px; }
  .hall-overview-card .hall-player-identity { grid-template-columns: 58px minmax(0,1fr); min-height: 58px; }
  .hall-overview-card .hall-player-initial { width: 58px; height: 58px; font-size: 25px; }
  .hall-hero-overview .hall-hero-portrait { width: 58px; height: 58px; }
  .hall-object-name b, .hall-player-name b { font-size: 18px; }
  .hall-overview-career { align-items: stretch; flex-direction: column; }
  .hall-overview-career > .hall-card-metrics { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-overview-growth { align-items: flex-start; flex-wrap: wrap; }
  .hall-item-head .hall-object { grid-template-columns: 86px minmax(0, 1fr); }
  .hall-item-head .hall-object-visual { width: 86px; height: 86px; padding: 6px; }
  .hall-item-head .hall-object-name b { font-size: 17px; }
  .hall-item-card .hall-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-life-group--attributes .hall-life-bars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-detail-section--wide .hall-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-detail-section--attributes .hall-card-metrics, .hall-detail-section--attributes .hall-detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hall-detail-section--proficiencies .hall-card-metrics, .hall-detail-section--proficiencies .hall-detail-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hall-panel--person .hall-detail-section--metrics .hall-detail-metrics,
  .hall-panel--person .hall-detail-section--metrics .hall-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall-person-detail-heading { grid-template-columns: 70px minmax(0,1fr); gap: 11px; padding-right: 32px; }
  .hall-person-detail-portrait { width: 70px; height: 70px; font-size: 27px; }
  .hall-person-detail-heading h2 { font-size: 27px; }
  .hall-person-detail-heading .hall-link { font-size: 12px; white-space: nowrap; }
  .hall-life-group, .hall-life-layout > .hall-section { padding: 12px; border-left: 0; border-right: 0; }
}

@media (max-width: 460px) {
  .hall-detail-title-groups,
  .hall-detail-title-group--many .hall-title-grid { grid-template-columns: minmax(0, 1fr); }
  .hall-compact-list { grid-template-columns: 1fr; }
  .hall-compact-card--featured { grid-column: auto; }
  .save-compact-card__top { display: flex; flex-wrap: nowrap; }
  .hall-compact-tag--sources { max-width: 42%; margin-left: 0; white-space: nowrap; }
  .hall-highlight-grid, .hall-title-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .hall-overview-head .hall-player-open { flex: 1 1 auto; flex-wrap: wrap; overflow: hidden; }
  .hall-overview-head .hall-player-name { flex: 1 1 auto; }
  .hall-overview-head .hall-player-open > small { flex: 1 0 100%; }
}
