/* Personal menu only. No new movement-blocking overlay. */
#menu-shell[data-view="attributes"] .menu-window,#menu-shell[data-view="codex"] .menu-window{left:50%;right:auto;transform:translateX(-50%);top:4dvh;bottom:auto;width:min(1120px,96vw);height:min(880px,92dvh);max-height:92dvh;min-height:0}
#menu-nav{flex-wrap:wrap}
.character-progress{padding:6px 4px 12px;color:#dce8ed;min-width:0}
.character-progress h2{font-size:21px;margin:7px 0 12px;letter-spacing:.01em}.character-progress h3{font-size:15px;margin:8px 0}.character-progress p{line-height:1.6;font-size:13px}.character-progress small{font-size:11px;line-height:1.6;color:#a4b9c4}
.attribute-intro{display:grid;grid-template-columns:1fr 220px;gap:24px;align-items:center;margin-bottom:18px}.attribute-intro p{max-width:680px;color:#a4b9c4}.attribute-health{padding:18px;border:1px solid #477576;background:#132d32;border-radius:8px;text-align:center}.attribute-health b{font-size:42px;display:block;color:#98dccb}.attribute-health span{display:block;font-size:10px;letter-spacing:2px}.attribute-health small{display:block;margin-top:9px}
.attribute-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0 16px}.attribute-card{background:#172631;border:1px solid #344c5a;border-radius:8px;padding:14px}.attribute-card>b{font-size:27px;color:#e9cf97;display:block;margin:12px 0}.attribute-card p{font-size:12px;color:#a8bcc9;margin:0}
.attribute-effects{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:20px}.attribute-effects>div{background:#101e29;padding:12px;border-radius:6px}.attribute-effects span{font-size:11px;display:block;color:#a4b9c4}.attribute-effects b{display:block;margin-top:6px;font-size:15px}
.attribute-challenge{border:1px solid #70613e;background:linear-gradient(120deg,#282a29,#16232f);border-radius:9px;padding:20px;display:grid;grid-template-columns:1fr 230px;gap:28px;margin-bottom:22px}.attribute-challenge h2 span{font-size:14px;color:#e6c786;margin-left:10px}.attribute-challenge p{margin:5px 0 12px}.codex-claim{display:flex;flex-direction:column;justify-content:center;gap:10px}.codex-claim label,.codex-detail label{font-size:12px;color:#d2c299}
.character-progress select,.character-progress input{min-width:0;width:100%;background:#10202a;border:1px solid #405662;border-radius:5px;padding:10px;color:#e6edf2;font:inherit}.character-progress button:disabled{opacity:.5;cursor:default}.codex-meter{height:6px;background:#0b1620;border-radius:4px;overflow:hidden;margin:9px 0}.codex-meter i{display:block;height:100%;background:#d3b16e}
.attribute-perks>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.attribute-perks article{border:1px solid #34434f;background:#13202a;border-radius:8px;padding:14px}.attribute-perks article>span{font-size:9px;letter-spacing:1.5px;color:#93a6b3}.attribute-perks article.unlocked{border-color:#567c70}.attribute-perks article.unlocked>span{color:#8dd7b8}.attribute-perks p{color:#a9bbc6;font-size:12px}
.codex-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.codex-heading>b{font-size:12px;color:#e4ca90}.codex-filters{margin:14px 0}.codex-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.codex-tabs button{background:#182833;border:1px solid #3e5664;color:#b4cad7;border-radius:5px;padding:9px 11px;font-size:12px}.codex-tabs .active{background:#354438;border-color:#bda66c;color:#f5e1aa}
.codex-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;min-width:0}.codex-list{max-height:390px;overflow:auto;min-width:0;scrollbar-gutter:stable}.codex-row{display:grid;grid-template-columns:1fr auto;width:100%;text-align:left;background:#12212b;border:1px solid #344959;border-radius:7px;padding:14px;margin-bottom:8px;color:#d5e4ef;gap:3px 10px}.codex-row.selected{border-color:#cead70;background:#203039}.codex-row span{min-width:0}.codex-row b{overflow-wrap:anywhere;font-size:14px}.codex-row span small{display:block}.codex-row>strong{font-size:13px;color:#d5c190}.codex-row .codex-meter,.codex-row>small{grid-column:1/-1}.codex-detail{background:#14232d;border:1px solid #344959;border-radius:8px;padding:20px;min-width:0}.codex-detail h2{overflow-wrap:anywhere}.codex-detail select{margin:9px 0}.codex-detail button{width:100%}.codex-empty{padding:25px;color:#a7bac8}.codex-footnote{color:#9daeb8;margin-top:18px}
@media(max-width:800px){.attribute-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.attribute-effects{grid-template-columns:repeat(2,minmax(0,1fr))}.attribute-perks>div{grid-template-columns:repeat(2,minmax(0,1fr))}.attribute-challenge{grid-template-columns:1fr;gap:15px}.codex-claim{display:grid;grid-template-columns:1fr 1fr}.codex-claim label{grid-column:1/-1}.attribute-intro{grid-template-columns:1fr 160px;gap:12px}}
@media(max-width:540px){.attribute-intro,.codex-layout{grid-template-columns:1fr}.attribute-health{padding:12px}.attribute-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attribute-perks>div{grid-template-columns:1fr}.attribute-challenge{padding:14px}.codex-claim{display:flex}.codex-tabs button{flex:1 1 40%}.codex-list{max-height:280px}.codex-heading{display:block}.character-progress h2{font-size:18px}.attribute-effects b{font-size:13px}}

@media(max-width:650px){#menu-shell[data-view="attributes"] .menu-window,#menu-shell[data-view="codex"] .menu-window{left:8px;right:auto;top:8px;transform:none;width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}#menu-shell[data-view="attributes"] .menu-head,#menu-shell[data-view="codex"] .menu-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px}#menu-shell[data-view="attributes"] .menu-head nav,#menu-shell[data-view="codex"] .menu-head nav{grid-column:1/-1;grid-row:2;justify-content:flex-start}#menu-shell[data-view="attributes"] .menu-head .close,#menu-shell[data-view="codex"] .menu-head .close{grid-row:1;grid-column:2}#menu-shell[data-view="attributes"] .menu-head h1,#menu-shell[data-view="codex"] .menu-head h1{font-size:21px}#menu-shell[data-view="attributes"] .menu-foot,#menu-shell[data-view="codex"] .menu-foot{flex-wrap:wrap;gap:4px}}
