

/* Character guide library */
.guide-hub{display:grid;gap:18px}
.guide-intro{padding:24px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.guide-intro h2{margin:6px 0;font-size:24px;letter-spacing:-.5px}
.guide-intro p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.guide-intro-count{min-width:115px;display:grid;text-align:center}
.guide-intro-count strong{font-size:30px;line-height:1.1}
.guide-intro-count span{font-size:10px;color:var(--muted)}
.guide-layout{display:grid;grid-template-columns:minmax(235px,0.8fr) minmax(0,2fr);align-items:start;gap:16px}
.guide-browser{padding:17px;display:grid;gap:12px;min-width:0}
.guide-search-label{font-size:12px;font-weight:800}
.guide-library-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:var(--muted)}
.guide-chip{border:1px solid var(--line);border-radius:100px;background:transparent;color:var(--ink);font-size:11px;font-weight:760;padding:9px 12px;cursor:pointer}
.guide-chip.active{background:var(--ink);color:white}
.guide-list{display:grid;gap:6px;max-height:630px;overflow:auto;scrollbar-width:thin}
.guide-list-entry{display:flex;gap:10px;align-items:center;text-align:left;padding:8px;border-radius:12px;background:transparent;border:1px solid transparent;color:var(--ink);cursor:pointer;min-width:0}
.guide-list-entry:hover{background:var(--soft)}
.guide-list-entry.active{background:var(--soft);border-color:var(--accent)}
.guide-list-entry[hidden]{display:none}
.guide-list-monogram{height:37px;width:37px;flex:0 0 37px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#35475b,#1e2937);color:white;font-weight:800}
.guide-list-copy{min-width:0;display:grid;gap:3px}
.guide-list-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.guide-list-copy small{color:var(--muted);font-size:10px}
.guide-entry-flag{margin-left:auto;color:#62ae82;font-size:14px}
.guide-no-results{color:var(--muted);font-size:12px}
.guide-detail{overflow:hidden}
.guide-hero{display:flex;gap:18px;align-items:center;padding:22px;background:linear-gradient(115deg,color-mix(in srgb,var(--accent),transparent 79%),transparent)}
.guide-face .character-portrait{width:98px;height:112px;flex-basis:98px;border-radius:15px}
.guide-hero h2{font-size:25px;margin:5px 0}
.guide-hero p{font-size:12px;margin:0 0 8px;color:var(--muted)}
.guide-status{font-size:10px;border-radius:80px;background:var(--soft);padding:5px 9px;font-weight:750}
.guide-detail-inner{padding:24px}
.guide-detail-inner h3{font-size:17px;margin:16px 0 11px}
.guide-detail-inner p{font-size:13px;line-height:1.6}
.guide-section-top{display:flex;gap:8px;flex-wrap:wrap}
.guide-role{font-size:10px;padding:6px 9px;border:1px solid var(--line);border-radius:100px;color:var(--ink2)}
.guide-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:16px;padding:5px;background:var(--soft);border-radius:13px}
.guide-tabs button{font-size:12px;font-weight:780;padding:10px 5px;border:0;background:transparent;color:var(--ink2);border-radius:10px}
.guide-tabs button.active{background:var(--ink);color:white}
.guide-bullets,.guide-steps{padding-left:21px;display:grid;gap:10px;font-size:13px;line-height:1.55}
.guide-bullets li,.guide-steps li{padding-left:3px}
.guide-team-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.guide-team{padding:13px;margin:10px 0;display:grid;gap:9px}
.guide-team-members{display:flex;flex-wrap:wrap;gap:8px}
.guide-member{display:inline-flex;padding:7px 10px;border-radius:9px;background:var(--soft);font-size:11px;font-weight:760}
.guide-member.is-owned{background:#dbf2e4;color:#32674b}
.guide-team small{font-size:10px;color:var(--muted)}
.guide-tip{background:var(--soft);border-radius:13px;padding:14px;margin-top:15px;font-size:12px}
.guide-tip p{margin:5px 0 0}
.guide-accuracy,.guide-footnote,.guide-empty{color:var(--muted);font-size:11px;line-height:1.5}
.guide-sources{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:14px 22px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.guide-sources a{font-weight:750;color:var(--ink2)}
.guide-footnote{padding:0 5px}
@media(max-width:820px){.guide-layout{grid-template-columns:1fr}.guide-list{max-height:230px}.guide-intro{align-items:flex-start}.guide-detail-inner{padding:18px}.guide-hero{padding:17px}}
@media(max-width:480px){.guide-intro-count{min-width:70px}.guide-intro h2{font-size:20px}.guide-tabs button{font-size:11px}.guide-face .character-portrait{width:72px;height:84px;flex-basis:72px}.guide-hero h2{font-size:20px}}

/* Expanded every-character guides */
.guide-tabs{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.guide-tabs button{font-size:11px;white-space:nowrap;padding:9px 3px}
.guide-list-portrait{width:38px;height:42px;flex:0 0 38px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:9px;background:var(--soft)}
.guide-list-portrait .character-portrait{width:38px;height:42px;flex-basis:38px;border-radius:8px;overflow:hidden}
.guide-list-portrait .character-portrait img{width:100%;height:100%;object-fit:cover}
.guide-team-art{padding:13px;margin:12px 0}
.guide-team-title{font-weight:790;font-size:12px;margin-bottom:10px}
.guide-team-portraits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.guide-team-avatar{min-width:0;text-align:center;display:flex;flex-direction:column;gap:5px;align-items:center}
.guide-team-avatar-image{width:100%;max-width:72px;aspect-ratio:1/1.1;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.guide-team-avatar-image .character-portrait{width:100%;height:100%;border-radius:11px}
.guide-team-avatar-image .character-portrait img{width:100%;height:100%;object-fit:cover}
.guide-team-avatar-name{width:100%;font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.guide-team-avatar small{font-size:10px;color:var(--muted)}
.guide-team-avatar.is-owned .guide-team-avatar-image{border:2px solid #69b990}
.guide-team-avatar.is-owned small{color:#4a946a}
.guide-team-caption{margin-top:12px;font-size:10px;color:var(--muted);line-height:1.4}
.guide-gear-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 18px}
.guide-gear-card{min-width:0;padding:10px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;border:1px solid var(--line);border-radius:13px;background:var(--soft)}
.guide-gear-image{width:64px;height:64px;display:grid;place-items:center}
.guide-gear-image .character-portrait{width:64px;height:64px;flex-basis:64px;background:transparent;border-radius:10px}
.guide-gear-image .character-portrait img{object-fit:contain!important;transform:none!important;width:100%;height:100%}
.guide-gear-name{font-size:11px;font-weight:780;line-height:1.25;overflow-wrap:anywhere}
.guide-gear-meta{font-size:10px;color:var(--muted)}
.guide-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0 18px}
.guide-stat{min-width:0;border:1px solid var(--line);border-radius:10px;padding:11px;display:grid;gap:6px;background:var(--soft)}
.guide-stat small{font-size:10px;text-transform:capitalize;color:var(--muted)}
.guide-stat strong{font-size:12px;font-weight:800;overflow-wrap:anywhere}
.guide-skills{margin-top:18px}
.guide-skill-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.guide-skill{min-width:0;display:flex;align-items:center;gap:9px;padding:9px;border:1px solid var(--line);border-radius:12px}
.guide-skill-image{height:38px;width:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:9px;background:var(--soft);font-size:19px}
.guide-skill-image img{object-fit:contain;max-width:34px;max-height:34px}
.guide-skill strong,.guide-skill small{display:block;overflow:hidden;text-overflow:ellipsis;font-size:11px}
.guide-skill strong{font-size:12px}
.guide-skill small{color:var(--muted);margin-top:3px}
.guide-helper,.guide-loading{font-size:11px;color:var(--muted);line-height:1.55}
.guide-loading{padding:8px 0}
@media(max-width:480px){.guide-team-portraits{gap:5px}.guide-team-avatar-name{font-size:10px}.guide-gear-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-skill-grid{grid-template-columns:1fr}.guide-tabs button{font-size:10px;padding:9px 2px}}

/* Faster guide detail updates leave the list untouched and show full material rows. */
.guide-material-group{margin-top:14px}.guide-material-group h4{font-size:13px;margin:8px 0}
.guide-material-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.guide-material-item{display:flex;align-items:center;gap:8px;min-width:0;padding:9px;border-radius:9px;background:var(--soft);border:1px solid var(--line);font-size:11px}
.guide-material-item span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
.guide-material-item strong{white-space:nowrap;font-size:11px}
.guide-material-gem{font-size:17px;color:var(--accent)}
.guide-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:500px){.guide-material-grid{grid-template-columns:1fr}.guide-tabs button{font-size:10px}}
.guide-portrait-composite{position:relative;display:inline-flex;width:100%;height:100%;min-width:0;min-height:0}
.guide-portrait-composite .character-portrait{flex:1 1 auto;min-width:0;height:100%}
.guide-portrait-composite .character-portrait img{width:100%;height:100%;object-fit:cover}
.guide-element-sigil{position:absolute;bottom:2px;right:2px;width:23px;height:23px;padding:2px;background:#14212be0;border-radius:50%;box-shadow:0 1px 4px #0008;z-index:2}
.guide-list-portrait .guide-element-sigil{width:15px;height:15px;padding:1px;bottom:1px;right:1px}
.guide-team-avatar-image .guide-element-sigil{width:19px;height:19px}
.guide-team-alt-portraits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;border-radius:10px;overflow:hidden}
.guide-team-alt-portraits .guide-alt-face{min-width:0;min-height:0;background:#304250;overflow:hidden;display:flex;align-items:stretch}
.guide-team-alt-portraits .guide-alt-face:first-child:nth-last-child(3){grid-row:span 2}
.guide-team-alt-portraits .guide-alt-face:only-child{grid-column:span 2}
.guide-alt-face .guide-portrait-composite{width:100%;height:100%}
.guide-team-alt-portraits .character-portrait{width:100%;height:100%;border-radius:0}
.guide-team-alt-portraits .guide-element-sigil{width:14px;height:14px;right:1px;bottom:1px}
.guide-team-avatar .guide-team-pick{color:var(--accent);font-weight:750}
.guide-team-title{font-weight:800}
.guide-team-note{font-size:11px;line-height:1.5;color:var(--muted);padding-top:9px}
.guide-rotation-visual{padding:11px 0 16px}
.guide-rotation-visual-label{display:block;font-size:11px;color:var(--muted);margin-bottom:10px}
.guide-rotation-line{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.guide-rotation-node{max-width:115px;min-width:52px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 7px 6px;background:var(--soft);border:1px solid var(--line);border-radius:11px;text-align:center}
.guide-rotation-node img{width:36px;height:36px;object-fit:contain}
.guide-rotation-symbol{display:grid;place-items:center;width:36px;height:36px;font-size:19px;font-weight:800}
.guide-rotation-node strong{font-size:12px}
.guide-rotation-node small{max-width:100%;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.guide-rotation-arrow{font-size:13px;color:var(--muted)}
.guide-rotation-explain{font-size:10px;color:var(--muted);margin-top:8px}

.guide-team-alt-portraits{display:grid;grid-template-columns:repeat(var(--choice-count,2),minmax(0,1fr));grid-template-rows:1fr;width:100%;height:100%;gap:3px;overflow:hidden;border-radius:10px}
.guide-team-alt-portraits .guide-alt-face,
.guide-team-alt-portraits .guide-alt-face:first-child:nth-last-child(3),
.guide-team-alt-portraits .guide-alt-face:only-child{grid-column:auto;grid-row:auto;min-width:0;min-height:0;aspect-ratio:auto}
.guide-team-alt-portraits .guide-portrait-composite,.guide-team-alt-portraits .character-portrait{height:100%;width:100%;display:block}
.guide-team-alt-portraits .character-portrait img{width:100%;height:100%;object-fit:cover;object-position:center}
.guide-team-avatar:has(.guide-team-alt-portraits){min-width:112px}
.guide-team-avatar:has(.guide-team-alt-portraits) .guide-team-avatar-image{width:112px;max-width:100%}
.guide-team-avatar:has(.guide-team-alt-portraits) .guide-team-avatar-name{overflow-wrap:anywhere}
.guide-material-art{width:30px;height:30px;object-fit:contain;flex:none;border-radius:6px}
.guide-material-image-placeholder{display:inline-grid;place-items:center;width:30px;height:30px;flex:none}
.guide-rotation-line{display:flex;flex-wrap:wrap;overflow:visible;gap:5px}
.guide-rotation-node{min-width:74px;max-width:132px;flex:0 1 115px}
.guide-rotation-node small{overflow-wrap:anywhere;white-space:normal}
@media(max-width:600px){.guide-team-avatar:has(.guide-team-alt-portraits){min-width:104px}.guide-team-avatar:has(.guide-team-alt-portraits) .guide-team-avatar-image{width:104px}}

.guide-deck-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px;margin:12px 0 16px}
.guide-deck-option{padding:13px;background:var(--soft);border:1px solid var(--line);border-radius:14px;min-width:0}
.guide-deck-option h4{margin:0 0 7px;font-size:14px;color:var(--ink)}
.guide-deck-option p{margin:0 0 11px;font-size:12px;color:var(--muted);line-height:1.5}
.guide-deck-cards{display:flex;align-items:flex-start;flex-wrap:wrap;gap:6px}
.guide-deck-cards span{max-width:100%;overflow-wrap:anywhere;font-size:11px;background:var(--panel);border:1px solid var(--line);padding:5px 8px;border-radius:8px}
.guide-material-item strong{white-space:nowrap}

.guide-set-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:10px;margin:12px 0 18px}
.guide-set-option{border:1px solid var(--line);background:var(--soft);border-radius:12px;padding:10px;display:flex;gap:10px;min-width:0;align-items:center}
.guide-set-art{width:54px;height:54px;flex:none;border-radius:10px;background:#141b28;display:grid;place-items:center;overflow:hidden;font-size:23px}
.guide-set-art img{width:100%;height:100%;object-fit:contain}
.guide-set-copy{min-width:0;display:grid;gap:4px}
.guide-set-copy strong{font-size:12px;overflow-wrap:anywhere}
.guide-set-copy small{font-size:11px;color:var(--muted)}
.guide-stats-build{margin:14px 0}
.guide-stats-build h4{font-size:13px;margin:17px 0 8px}
.guide-priority-line{font-size:12px;line-height:1.6;margin:8px 0;color:var(--ink)}
.guide-deck-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr));gap:9px}
.guide-card-tile{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:10px;padding:8px;min-width:0;background:var(--panel)}
.guide-card-art{aspect-ratio:3/4;width:100%;max-height:152px;display:flex;justify-content:center;overflow:hidden}
.guide-card-art img{max-height:100%;max-width:100%;object-fit:contain}
.guide-card-tile strong{font-size:11px;overflow-wrap:anywhere}
.guide-card-tile small{font-size:10px;line-height:1.4;color:var(--muted)}
.guide-card-name-only{padding:8px;border:1px solid var(--line);border-radius:8px;font-size:11px;overflow-wrap:anywhere}
.guide-rotation-variant{padding:12px;margin:9px 0;border:1px solid var(--line);border-radius:10px}
.guide-rotation-variant summary{cursor:pointer;font-weight:700;font-size:13px}

.guide-epiphany-section{margin:18px 0 22px}
.guide-epiphany-list{display:grid;gap:9px;margin-top:12px}
.guide-epiphany-row{display:grid;grid-template-columns:minmax(130px,0.8fr) minmax(0,1.6fr);gap:14px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.guide-epiphany-card{font-size:13px;overflow-wrap:anywhere;line-height:1.5}
.guide-epiphany-info{display:grid;gap:4px;min-width:0}
.guide-epiphany-name{font-size:13px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.guide-epiphany-info small{font-size:11px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
@media(max-width:520px){.guide-epiphany-row{grid-template-columns:minmax(0,1fr);gap:4px;padding:12px}.guide-epiphany-name{font-size:12px}}

/* v31 guide contrast and gentle interaction feedback */
.guide-tabs button.active,.guide-tabs button[aria-selected="true"]{background:var(--ink);color:#12212c!important;text-shadow:none}
.guide-tabs button:focus-visible{outline:2px solid #88b361;outline-offset:2px}
.guide-detail.ps-guide-fade-out{animation:ps-guide-out 75ms ease-in forwards}
.guide-detail.ps-guide-fade-in{animation:ps-guide-in 145ms ease-out both}
.guide-hub .ps-guide-art-loading{position:relative;isolation:isolate;overflow:hidden;background:#e6ebe7}
.guide-hub .ps-guide-art-loading::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;background:linear-gradient(100deg,#e3e9e4 10%,#f7faf7 45%,#e3e9e4 80%);background-size:200% 100%;animation:ps-art-shimmer 1.15s ease-in-out infinite}
.guide-hub .ps-guide-art-loading img{opacity:0}
@media(prefers-reduced-motion:reduce){.guide-detail.ps-guide-fade-out,.guide-detail.ps-guide-fade-in{animation:none!important}.guide-hub .ps-guide-art-loading::after{animation:none!important;background:#e9eeea!important}}