/* UI187: original interface marks and complete archive layouts. */
.home-content h1.home-title { flex-wrap: nowrap; }
.home-title > span { font-size: 1em; }
.home-actions .button { min-height: 58px; gap: 11px; }
.home-actions .button-icon {
  display: block; width: 29px; height: 29px; flex: 0 0 29px;
  fill: none; stroke: currentColor; stroke-width: 1.35;
  stroke-linecap: round; stroke-linejoin: round;
  background: none; mask: none; -webkit-mask: none;
  pointer-events: none; position: relative; z-index: 1;
}
.home-actions .button > span { position: relative; z-index: 1; }
.home-actions .button.gold,
.home-actions .button.gold:hover,
.home-actions .button.gold:focus-visible {
  background: linear-gradient(120deg, #c6a468, #f8e4ac); color: #17171a;
}
.home-actions .button::before {
  content: ""; position: absolute; inset: 0; background: #fff;
  opacity: 0; transition: opacity .18s ease-out; pointer-events: none; z-index: 0;
}
.home-actions .button:hover::before,
.home-actions .button:focus-visible::before { opacity: .2; }
.home-actions .community-button:hover,
.home-actions .community-button:focus-visible {
  border-color: #fff9e9;
  box-shadow: inset 0 0 0 2px #fff4d9, inset 0 0 32px #fff8e84d;
}
.home-actions .community-button::after { z-index: 0; }

.hero-type-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.hero-type-image { display: block; width: 82px; height: 30px; object-fit: contain; }
.skill-label .skill-type-image,
.skill-tip-heading .skill-type-image { display: block; width: 55px; height: 20px; flex: 0 0 55px; object-fit: contain; }
.hero-traits { margin: 23px 0; }
.hero-traits h3 { font: 12px var(--sans); font-weight: 400; color: var(--muted); margin-bottom: 12px; }
.hero-traits > div { display: flex; flex-wrap: wrap; gap: 7px; }
.hero-traits span {
  padding: 5px 10px; border: 1px solid #a9b6ca42;
  background: #a9b6ca0a; color: #cbd4e3; font: 15px/1.35 var(--game);
}
.heroes-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.heroes-toolbar .damage-tabs { margin-top: 0; }
.weekly-filter { display: flex; align-items: center; gap: 8px; color: #d9cbac; font-size: 12px; cursor: pointer; }
.weekly-filter input { accent-color: var(--gold); width: 14px; height: 14px; }
.weekly-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 15px 0 0; font-size: 12px; }
.weekly-preview a { color: #eee1c3; border-bottom: 1px solid #b5966155; padding: 3px 0; }
.weekly-preview small { color: var(--muted); margin-left: auto; font-size: 10px; }
.weekly-label { color: #16191d; background: #dcc695; padding: 4px 9px; font-size: 11px; }
.weekly-badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 6px 11px; border: 1px solid #e4ca8caa;
  background: #18252ae8; color: #dfc891; font: 12px/1.2 var(--sans); letter-spacing: .08em;
}
.weekly-badge.current { background: #f2dfae; color: #192123; border-color: #fff3cf; }
.hero-avatar { position: relative; }
.avatar-weekly { position: absolute; left: 0; right: 0; bottom: 0; background: #e4cc95ef; color: #141c22; font: 9px/1.5 var(--sans); text-align: center; }
.hero-stage button:disabled { opacity: .3; cursor: default; }

.atlas-tabs { gap: clamp(9px, 1.7vw, 26px); }
.atlas-tabs button { white-space: nowrap; padding-inline: 10px; }
.talent-grid { display: block; }
.evolution-band + .evolution-band { margin-top: 36px; }
.evolution-band-heading { display: flex; align-items: center; gap: 16px; padding: 13px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.evolution-band-heading h3 { font: 21px/1.4 var(--game); color: #ead4a8; font-weight: 400; }
.evolution-band-heading > span { font-size: 11px; color: var(--muted); margin-left: auto; }
.evolution-band-grid { display: grid; grid-template-columns: repeat(auto-fill, 224px); align-items: start; justify-content: start; gap: 26px 22px; }
.evolution-band-grid > .talent-card { width: 224px; }
.talent-card .talent-art { aspect-ratio: 2 / 1; }
.talent-card .talent-art > img { display: block; width: 100%; height: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.talent-card h3 { font-size: 18px; }
.talent-card-copy { padding: 13px 12px 11px; }
.talent-card-copy > p { font-size: 14px; height: 44px; }
.talent-card .card-tags span { font-size: 11px; }
.atlas-tree-section { grid-column: auto; padding: 0; border: 0; background: none; min-width: 0; max-width: 224px; }
.atlas-tree-section .tree-heading { gap: 10px; height: 44px; margin: 0 0 13px; padding: 0 0 10px; }
.tree-heading h4 { font: 17px/1.4 var(--game); font-weight: 400; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.linear-tree .tree-scroll { padding: 0 0 8px; overflow-x: hidden; }
.evolution-node { width: 224px; height: 196px; }
.evolution-node > img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.evolution-node > strong { height: 47px; margin: 8px 10px 0; font-size: 18px; line-height: 1.3; }
.evolution-node > small { margin: 5px 10px 0; font-size: 11px; }
.evolution-tree > svg { stroke: #c5ac74; stroke-width: 1.4; }
.branched-tree { grid-column: 1 / -1; width: 100%; max-width: none; padding: 20px; border: 1px solid var(--line); background: linear-gradient(140deg, #141b27, #0c111b); }
.branched-tree .tree-heading { height: auto; min-height: 34px; }
.branched-tree .tree-scroll { padding: 0 0 14px; }
.branched-tree .tree-heading > span { flex-shrink: 0; }
.portrait-card .talent-art { background: #10151f; }
.portrait-card .talent-art > img { object-fit: contain; aspect-ratio: auto; }
.mindscape-detail-top.portrait-detail { grid-template-columns: minmax(190px, 280px) minmax(200px, .9fr) minmax(240px, 1fr); }
.portrait-detail .detail-visual { width: 100%; max-width: 280px; justify-self: center; }
.portrait-detail .detail-art { width: 100%; height: auto; aspect-ratio: 1016 / 1536; background: #10151f; }
.portrait-detail .detail-art > img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; }
.portrait-detail .detail-actions { grid-template-columns: 1fr; }

.deck-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(230px, .7fr); gap: 24px; align-items: end; margin-bottom: 10px; }
.deck-toolbar .search-box { height: 46px; }
.deck-select-field { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--muted); }
.deck-select-field select { width: 100%; min-width: 0; height: 46px; padding: 8px 12px; font-family: var(--sans); color: var(--ink); }
.deck-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); margin: 22px 0 28px; }
.deck-stats { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 18px; }
.deck-stats span { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: #aaa7aa; }
.deck-stats b { font: 27px/1 var(--num); letter-spacing: .02em; color: #efd6a4; }
.deck-applicability { color: #d0c5b4; font: 14px/1.7 var(--game); margin-top: 18px; }
.deck-cards { grid-template-columns: repeat(auto-fill, 164px); justify-content: start; gap: 30px 24px; }
.deck-card { width: 164px; }
.deck-card .native-card-frame { margin-inline: auto; }
.deck-card h3 { font-size: 19px; }
.deck-card p { font-size: 14px; line-height: 1.65; }
.deck-kind { display: inline-block; color: #bdc8db; font: 12px/1.5 var(--game); background: #9caec510; border: 1px solid #9caec533; padding: 3px 6px; margin-bottom: 9px; }
.deck-kind.trait-card { color: #e0c8ef; border-color: #caa3dd55; background: #b68bd811; }
.deck-card .deck-requirement { margin-top: 9px; color: #ecd7b4; }
.deck-fragments { display: flex; justify-content: space-between; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 10px; color: #a9a5ac; font-size: 11px; }
.deck-fragments b { color: #e6cf9d; font-weight: 400; }
.deck-guide { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 26px; }
.guide-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 21px; }
.guide-heading small { font: 13px var(--num); letter-spacing: .1em; color: var(--dim); }
.guide-heading h3 { font: 23px var(--game); color: var(--bright); font-weight: 400; }
.deck-guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.deck-guide-grid article { border-left: 1px solid #d1b47866; padding-left: 15px; }
.deck-guide h4 { color: #e7d1aa; font: 18px/1.5 var(--game); margin-bottom: 9px; }
.deck-guide p { color: #b9b7bf; font: 14px/1.8 var(--game); }
.deck-guide p + p { margin-top: 10px; }
.deck-guide p b { color: #f0d49e; font-weight: 400; }
.deck-rules-table { margin-top: 26px; overflow-x: auto; border: 1px solid var(--line); }
.deck-rules-table table { width: 100%; min-width: 475px; border-collapse: collapse; text-align: center; font: 14px/1.6 var(--game); }
.deck-rules-table th, .deck-rules-table td { padding: 11px 14px; border-bottom: 1px solid #a89c7d1f; }
.deck-rules-table thead { background: #ba9d5f0a; color: #c8bdac; }
.deck-rules-table th { font-weight: 400; }
.deck-rules-table tbody tr:last-child > * { border-bottom: 0; }

.equipment-toolbar { display: grid; grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(120px, .45fr)); gap: 16px; align-items: end; }
.equipment-toolbar .search-box { height: 44px; }
.equipment-toolbar > label:not(.search-box) { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--muted); }
.equipment-toolbar select { padding: 10px 12px; height: 44px; width: 100%; border: 1px solid var(--line); background: #101620; font-size: 12px; }
.equipment-results { margin: 20px 0; font-size: 12px; color: var(--muted); }
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 18px; }
.equipment-card { text-align: left; border: 1px solid #d4b77533; padding: 18px; background: #111722; min-width: 0; transition: border-color .2s, background-color .2s; }
.equipment-card:hover, .equipment-card:focus-visible { border-color: #dac28d; background: #1b2230; }
.equipment-card-heading { display: flex; gap: 13px; align-items: center; }
.equipment-card-heading > img { display: block; width: 64px; height: 64px; object-fit: contain; background: #080c14; border: 1px solid #bba06b33; flex: 0 0 64px; }
.equipment-card-heading > div { flex: 1; min-width: 0; }
.equipment-card-heading small { color: #a3a3ae; font: 11px/1.4 var(--sans); }
.equipment-card-heading h3 { margin-top: 5px; font: 20px/1.4 var(--game); font-weight: 400; overflow-wrap: anywhere; }
.equipment-grade { align-self: start; font: 18px var(--game); }
.equipment-attributes { font: 15px/1.7 var(--game); margin: 18px 0 0; color: #cbd0d9; }
.equipment-attributes > div { display: flex; gap: 15px; align-items: start; justify-content: space-between; padding-block: 3px; }
.equipment-attributes dd { margin: 0; color: #d9c498; white-space: nowrap; }
.equipment-card-footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #bca57426; margin-top: 15px; padding-top: 12px; color: #9197a5; font-size: 10px; }
.equipment-card-footer b { display: flex; align-items: center; gap: 6px; color: #d7c299; white-space: nowrap; font-weight: 400; }
.equipment-card-footer .action-mark { width: 12px; height: 12px; flex-basis: 12px; }
.equipment-detail { padding: 65px 38px 38px; }
.equipment-detail-heading { display: flex; gap: 24px; align-items: center; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.equipment-detail-heading > img { width: 64px; height: 64px; object-fit: contain; flex: 0 0 64px; border: 1px solid #bda36c88; }
.equipment-detail h2 { font: 32px/1.4 var(--game); font-weight: 400; margin: 8px 0; }
.equipment-detail-heading p:last-child { font: 14px/1.6 var(--game); color: #b9b5b0; }
.equipment-detail-grid { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr); gap: 40px; padding-top: 25px; }
.equipment-detail h3 { font: 21px/1.5 var(--game); font-weight: 400; color: #e3cfaa; margin-bottom: 12px; }
.equipment-detail .equipment-attributes { margin-top: 0; margin-bottom: 22px; font-size: 17px; }
.equipment-copy { border-left: 1px solid var(--line); padding-left: 30px; }
.equipment-copy p { font: 17px/1.9 var(--game); color: #c4cbd7; overflow-wrap: anywhere; }
.equipment-copy p + p { margin-top: 18px; }
.equipment-chapter-note { font-size: 11px; color: var(--muted); }
.equipment-heroes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 20px; font: 17px var(--game); }
.equipment-heroes > span:first-child { font: 11px var(--sans); color: var(--muted); }
.equipment-heroes a { border-bottom: 1px solid var(--gold); color: var(--bright); }
.equipment-recipe-section { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 23px; }
.equipment-recipe { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 16px/1.6 var(--game); margin: 14px 0 0; }
.equipment-recipe button, .equipment-recipe > span { padding: 8px 12px; background: #a9b5cf0a; border: 1px solid #a9b5cf33; }
.equipment-recipe button { color: #e6d1a8; }
.equipment-recipe button:hover, .equipment-recipe button:focus-visible { border-color: var(--gold); }
.equipment-recipe i { color: #7b8290; font-style: normal; }

@media (max-width: 1100px) {
  .mindscape-detail-top.portrait-detail { grid-template-columns: minmax(190px, 280px) minmax(0, 1fr); }
  .equipment-toolbar { grid-template-columns: minmax(200px, 1fr) repeat(3, minmax(100px, .5fr)); gap: 12px; }
  .deck-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
  .deck-heading { grid-template-columns: 1fr; gap: 20px; }
  .deck-set-effect { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
}
@media (max-width: 850px) {
  .weekly-preview small { margin-left: 0; }
  .equipment-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .equipment-toolbar .search-box { grid-column: 1 / -1; }
  .equipment-detail-grid { grid-template-columns: 1fr; gap: 25px; }
  .equipment-copy { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}
@media (max-width: 720px) {
  .home-actions .button { gap: 7px; min-height: 51px; padding-inline: 10px; font-size: 12px; }
  .home-actions .button-icon { width: 23px; height: 23px; flex-basis: 23px; }
  .hero-type-image { width: 76px; height: 28px; }
  .hero-heading-line { gap: 13px; }
  .skill-label .skill-type-image, .skill-tip-heading .skill-type-image { width: 49px; height: 18px; flex-basis: 49px; }
  .skill-tip-heading > .skill-type-image { width: 49px; height: 18px; }
  .heroes-toolbar { gap: 13px; }
  .weekly-filter { margin-left: auto; font-size: 11px; }
  .weekly-preview { gap: 8px; margin-top: 13px; font-size: 11px; }
  .weekly-preview small { flex-basis: 100%; font-size: 9px; line-height: 1.6; }
  .weekly-badge { left: 10px; top: 10px; padding: 5px 8px; font-size: 10px; }
  .hero-traits { margin: 20px 0; }
  .hero-traits span { font-size: 14px; padding: 4px 8px; }
  .atlas-tabs { display: flex; gap: 0; width: 100%; overflow-x: auto; justify-content: space-between; scrollbar-width: thin; }
  .atlas-tabs button { flex: 0 0 auto; padding: 13px 8px; font-size: 11px; }
  .atlas-view .page-heading > div > p:last-child { font-size: 11px; }
  .evolution-band-grid { grid-template-columns: 224px; justify-content: center; gap: 24px 12px; }
  .evolution-band[data-evolution-length="single"] .evolution-band-grid,
  .evolution-band[data-evolution-length="display"] .evolution-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evolution-band-grid > .talent-card { width: 100%; }
  .evolution-band-heading h3 { font-size: 20px; }
  .branched-tree { grid-column: auto; width: 100%; padding: 14px 10px; }
  .evolution-band-grid:has(.branched-tree) { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .tree-heading h4 { font-size: 16px; }
  .talent-card h3 { font-size: 17px; }
  .talent-card-copy { padding: 11px 9px; }
  .talent-card-copy > p { font-size: 13px; }
  .portrait-detail .detail-visual { max-width: 250px; }
  .mindscape-detail-top.portrait-detail { grid-template-columns: minmax(0, 1fr); }
  .portrait-detail .detail-actions { grid-template-columns: 1fr; }
  .deck-toolbar { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .deck-select-field { gap: 7px; }
  .deck-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .deck-card { width: 100%; }
  .deck-card h3 { font-size: 18px; }
  .deck-card .native-card-frame { margin-inline: auto; }
  .deck-card .deck-card-copy { padding-top: 12px; }
  .deck-stats { gap: 15px 20px; }
  .deck-stats b { font-size: 25px; }
  .deck-guide-grid { grid-template-columns: 1fr; gap: 22px; }
  .deck-guide { margin-top: 32px; }
  .deck-fragments { flex-wrap: wrap; font-size: 10px; }
  .equipment-toolbar { gap: 13px 9px; }
  .equipment-toolbar select { padding: 9px 7px; font-size: 11px; }
  .equipment-grid { grid-template-columns: minmax(0, 1fr); }
  .equipment-card { padding: 16px; }
  .equipment-detail { padding: 62px 22px 27px; }
  .equipment-detail-heading { gap: 16px; align-items: start; }
  .equipment-detail h2 { font-size: 26px; }
  .equipment-detail-heading .eyebrow { font-size: 8px; letter-spacing: .08em; }
  .equipment-detail-heading p:last-child { font-size: 13px; }
  .equipment-recipe { font-size: 15px; gap: 8px; }
}
@media (max-width: 380px) {
  .home-actions .button { font-size: 11px; gap: 5px; padding-inline: 7px; }
  .home-actions .button-icon { width: 21px; height: 21px; flex-basis: 21px; }
  .deck-cards { gap: 25px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-actions .button::before { transition: none; }
}
