#progression-page{position:relative;isolation:isolate;background:linear-gradient(135deg,#361c2bcc,#0b1725ee);border-color:#a04d65}
#progression-page:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('./assets/title-glass.svg?v=0899c6d59a46502e') center/cover,radial-gradient(ellipse at bottom,#1fc6d32b,transparent 70%);opacity:.65}
#progression-page>h1{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#102c3288;color:#85eee2;border-color:#7adfd5}
#progression-page>h1 small{font:10px monospace;letter-spacing:2px;color:#8cafb7}
.progression-terminal{color:#70dad0;font:10px monospace;letter-spacing:1px;margin-bottom:14px}.progression-terminal span{animation:progression-cursor 1s steps(2,end) infinite}
#point-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.progression-balance{padding:12px;border:1px solid #64c5c955;background:linear-gradient(135deg,#69d9db19,#09182399);box-shadow:inset 0 1px #a2f8ed22}
.progression-balance small{display:block;color:#9abfc7;font-size:10px;letter-spacing:1px}.progression-balance strong{display:block;color:#91f5e8;font-size:30px;margin-top:4px}
#progression-xp{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-size:11px;color:#bdd1d7}
#progression-page progress{width:100%;height:5px;appearance:none;border:0;background:#152331;accent-color:#71eee2}#progression-page progress::-webkit-progress-bar{background:#152331}#progression-page progress::-webkit-progress-value{background:linear-gradient(90deg,#208aab,#81f5df);box-shadow:0 0 10px #68ffe0}
#xp-level-up{border-color:#7eeddb;color:#a7ffeb;box-shadow:0 0 14px #40d9c425}
#progression-menu{gap:8px}#progression-menu button{flex:1;background:#10232e88}#progression-menu [aria-pressed=true]{background:#2aa9aa20;box-shadow:inset 0 -2px #71eee2}
#attribute-editor>h2{font-size:18px;color:#85eee2}#attribute-editor>p{font-size:12px;color:#a9c1ca}
.attribute-upgrade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
#attribute-editor .attribute-adjustment{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;padding:14px;border:1px solid #a04d6566;background:linear-gradient(130deg,#9de8ef12,#0c172788),url('./assets/title-glass.svg?v=0899c6d59a46502e') center/cover}
.attribute-adjustment h3{margin:0;font-size:16px;color:#8eeadd;text-transform:uppercase}.attribute-upgrade-controls{display:flex;justify-content:space-between;align-items:center;gap:8px}.attribute-upgrade-controls button{padding:6px 16px;min-height:36px}.attribute-upgrade-controls strong{font-size:26px;color:#e0f5f2}.attribute-adjustment small{font-size:10px;color:#99b7bf}.attribute-adjustment[data-changed=true]{border-color:#7de8da;box-shadow:inset 0 0 20px #46dad318}
#attribute-tiles{margin:12px 0;gap:6px}#attribute-tiles .attribute-tile{font-size:12px;background:#10232e99;padding:10px 6px}
#perk-tree .perk-card{background:linear-gradient(135deg,#95d6eb12,#0c172799),url('./assets/title-glass.svg?v=0899c6d59a46502e') center/cover;border-color:#7ea6b244}
#perk-tree .perk-node{background:transparent;min-height:64px;padding:12px 16px}#perk-tree .perk-node strong{font-size:16px}#perk-tree .perk-node small{font-size:11px}#perk-tree .perk-node.available{border-left-color:#77eedb}#perk-tree .perk-node.unlocked{border-left-color:#d6e56d;color:#d6e56d}#perk-tree .perk-node.locked{border-left-color:#a04d65;opacity:.75}#perk-tree .perk-node.selected{background:#28bbb91a}
.perk-inline-details{font-size:13px;background:#08132166}#progression-confirm{background:#0b2331d9;box-shadow:0 0 20px #54decb11}#progression-message:not(:empty){border-left:2px solid #78e8d9;padding:10px;background:#37c5ba14;color:#bbf3e7;animation:progression-feedback .5s ease-out}
@keyframes progression-cursor{50%{opacity:0}}@keyframes progression-feedback{from{background:#37c5ba55}to{background:#37c5ba14}}
@media(max-width:550px){#progression-page>h1 small{display:none}.progression-balance{padding:8px}.progression-balance small{font-size:8px}.progression-balance strong{font-size:24px}.attribute-upgrade-grid{gap:8px}#attribute-editor .attribute-adjustment{padding:10px}#attribute-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.progression-terminal span,#progression-message{animation:none}}
#attribute-hub{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(180px,1fr);gap:20px;align-items:center;margin:20px 0}
.attribute-hub-diagram{position:relative;min-height:420px;width:100%;background:radial-gradient(ellipse,#23667419,transparent 65%)}
.hub-circuits{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.hub-circuits path{fill:none;stroke:#973b48;stroke-width:2;opacity:.5;transition:stroke .2s,opacity .2s}.hub-circuits path.lit{stroke:#79eae4;opacity:1;filter:drop-shadow(0 0 4px #6bece2)}
.hub-level{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:90px;height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#102534;border:1px solid #6ddfd8;clip-path:polygon(50% 0,100% 30%,100% 70%,50% 100%,0 70%,0 30%);z-index:1}.hub-level strong{color:#8aeee1;font-size:30px}.hub-level small{font-size:10px;color:#8aeee1}
.hub-attribute{position:absolute;transform:translate(-50%,-50%);width:32%;height:100px;z-index:2;clip-path:polygon(12% 0,88% 0,100% 50%,88% 100%,12% 100%,0 50%);background:#40212bbd;border:0;box-shadow:inset 0 0 0 2px #aa4356;color:#81e2dc;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;font-size:12px;transition:background .2s,box-shadow .2s}.hub-attribute strong{font-size:26px}.hub-attribute.lit,.hub-attribute:focus-visible{background:#1d4b54d9;box-shadow:inset 0 0 0 2px #7bf5e8,inset 0 0 30px #73e4df22;outline:0}
.hub-info{padding:18px;border:1px solid #a34b5c;background:linear-gradient(135deg,#85dbe614,#0b1725c9),url('./assets/title-glass.svg?v=0899c6d59a46502e') center/cover}.hub-info h2{font-size:20px;color:#84e6dd}.hub-info p{font-size:13px;line-height:1.6}.hub-info button{display:block;margin-top:10px;font-size:12px;width:100%}
#perk-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(180px,1fr);gap:18px;max-width:none;align-items:start}
#perk-details{position:sticky;top:12px;min-width:0;background:linear-gradient(135deg,#85dbe614,#0b1725c9),url('./assets/title-glass.svg?v=0899c6d59a46502e') center/cover}#perk-details h2{font-size:18px;color:#84e6dd}#perk-details .perk-inline-details{padding:0;background:none}#perk-details button{font-size:12px;padding:10px}
#perk-tree .perk-branches{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:34px 16px;padding:8px 0}
#perk-tree .perk-tier{grid-column:1/-1;margin:12px 0 0;padding:8px 0;border-bottom:1px solid #aa4559;color:#bd707c;font-size:11px}
#perk-tree .perk-card{position:relative;z-index:1;margin:0}#perk-tree .perk-node{height:100%;min-height:90px;padding:12px 10px}#perk-tree .perk-node strong{font-size:13px}#perk-tree .perk-node small{font-size:10px}#perk-tree .perk-node.unlocked{color:#f4d56b;border-left-color:#f4d56b;background:#e8bc3314}
.perk-connections{position:absolute;left:0;top:0;pointer-events:none;overflow:visible}.perk-connection{fill:none;stroke:#a34959;stroke-width:2;opacity:.55}.perk-connection[data-met=true]{stroke:#f4d56b}.perk-connection.highlighted{stroke:#77f1e3;stroke-width:3;opacity:1;filter:drop-shadow(0 0 3px #77f1e3)}
@media(max-width:650px){#attribute-hub,#perk-layout{grid-template-columns:1fr}.attribute-hub-diagram{min-height:360px}.hub-attribute{font-size:10px;height:85px}#perk-details{position:static}#perk-tree .perk-branches{gap:30px 12px}}
.attribute-hub-diagram{min-height:500px}.hub-attribute{height:74px;font-size:10px}.hub-attribute strong{font-size:22px}
#perk-tree{max-height:65vh;overflow:auto;padding-right:10px;scrollbar-width:thin;scrollbar-color:#65cbc5 #13202b}
#perk-details{max-height:65vh;overflow:auto}
#perk-tree .perk-branches{gap:28px 14px}#perk-tree .perk-tier{font-size:10px}#perk-tree .perk-node{min-height:78px}
@media(min-width:800px){.attribute-upgrade-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.attribute-hub-diagram{min-height:440px}.hub-attribute{font-size:9px;height:60px;padding:4px}.hub-attribute strong{font-size:18px}#perk-tree{max-height:55vh}#perk-details{max-height:none}}
body[data-page=progression-page]>header,body[data-page=progression-page] #character-nav{display:none!important}
body[data-page=progression-page] main{margin-top:18px}
#progression-menu:empty{display:none}
#attribute-tiles{display:none!important}
.progression-footer{display:flex;justify-content:flex-end;margin-top:18px;padding-top:12px;border-top:1px solid #74dcd544}
#progression-finished{min-width:130px;border-color:#76ddce;color:#a4f5e7}
#perk-tree .perk-branches{grid-template-columns:minmax(0,1fr);padding-right:72px;box-sizing:border-box}
#perk-tree .perk-tier{grid-column:1}
/* Character advancement styling follows the supplied game references. */
#progression-page{background:radial-gradient(ellipse at 20% 0,#581c2680,transparent 65%),linear-gradient(145deg,#190f19f5,#060f18f5);border-color:#7c3345;padding:22px}
#progression-page:before{opacity:.18}
#progression-page>h1{background:none;border-bottom:1px solid #a74652;color:#74e6e4;padding:0 0 12px;font-size:23px;letter-spacing:3px}
.progression-terminal{color:#b84b58;font-size:9px}
#point-balances{display:flex;gap:26px;border-bottom:1px solid #78344055;padding-bottom:10px}
.progression-balance{background:none;border:0;box-shadow:none;padding:0;display:flex;align-items:center;gap:9px;flex:1}
.progression-balance small{font-size:10px;color:#66dedc;letter-spacing:0}.progression-balance strong{order:-1;font-size:25px;margin:0;color:#70e6e2}
.progression-balance:last-child small,.progression-balance:last-child strong{color:#f4ce54}
#progression-xp{font-size:10px;margin:10px 0;max-width:420px}#progression-xp progress{height:3px}
#attribute-hub{margin:16px 0;gap:28px;grid-template-columns:minmax(0,1.7fr) minmax(190px,1fr)}
.attribute-hub-diagram{min-height:430px;background:radial-gradient(ellipse,#20566310,transparent 65%)}
.hub-attribute{height:92px;background:linear-gradient(140deg,#44232cd9,#301923d9);clip-path:polygon(0 42%,18% 0,40% 0,44% 7%,65% 7%,69% 0,82% 0,100% 42%,100% 58%,82% 100%,69% 100%,65% 93%,44% 93%,40% 100%,18% 100%,0 58%);box-shadow:inset 0 0 0 1px #ae4555;font-size:12px;letter-spacing:1px;color:#6fe3df;gap:6px}
.hub-attribute strong{font-size:26px;font-weight:normal}.hub-attribute.lit,.hub-attribute:focus-visible{background:linear-gradient(135deg,#22525ccc,#43262cdd);box-shadow:inset 0 0 0 2px #71e7df,inset 0 0 35px #76efe61a}
.hub-circuits path{stroke-width:3;stroke:#87313f}.hub-circuits path.lit{stroke:#68d9d7;filter:drop-shadow(0 0 2px #6bece2)}
.hub-info,#perk-details{background:#09111bd9;border:1px solid #c04f59;box-shadow:inset 4px 0 #862d3a;padding:18px;clip-path:polygon(0 0,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%)}
.hub-info h2,#perk-details h2{color:#f1676d;letter-spacing:1px;border-bottom:1px solid #82303e;padding-bottom:12px;margin-top:0}
.hub-info p{font-size:12px;color:#c9dadd}.hub-info p:first-of-type{color:#70e6e2;border-bottom:1px solid #82303e;padding-bottom:12px}
.hub-info button{background:none;border-color:#7b3744;color:#6ee2df;text-align:left;padding:10px}
#perk-tree>h2{color:#73e5df;font-size:16px;letter-spacing:2px;margin:10px 0}
#perk-tree .perk-branches{gap:20px;padding-right:72px}
#perk-tree .perk-tier{color:#bb5662;font-size:11px;border-bottom:2px solid #8c3546;padding:8px 0;margin:8px 0}
#perk-tree .perk-card{background:#27172088;border:1px solid #813344;max-width:340px}
#perk-tree .perk-node{min-height:64px;padding:10px 12px;border-left-width:2px}#perk-tree .perk-node strong{font-size:12px;letter-spacing:1px}#perk-tree .perk-node small{font-size:9px;color:#a49aa4;margin-top:6px}
#perk-tree .perk-node.available{background:#12353a55;color:#6de7e0}#perk-tree .perk-node.unlocked{background:#8c74172a;color:#f7d95c;border-left-color:#f7d95c}#perk-tree .perk-node.locked{color:#b45b68;background:#421c271f;opacity:.85}#perk-tree .perk-node.selected{box-shadow:inset 0 0 0 1px #7ce9e3;background:#174b5055}
.perk-connection{stroke:#853341;stroke-width:2}.perk-connection.highlighted{stroke:#74e8e0;filter:drop-shadow(0 0 2px #77f1e3)}
.progression-footer{border-color:#83313f}.progression-footer button{background:#11232b66;color:#6fe1df;border-color:#9e404e}
@media(max-width:650px){#attribute-hub{grid-template-columns:1fr}.attribute-hub-diagram{min-height:380px}.hub-attribute{font-size:10px;height:76px}.progression-balance{gap:5px}.progression-balance small{font-size:8px}#point-balances{gap:8px}}
body[data-page=progression-page]{height:100vh;overflow:hidden}
body[data-page=progression-page] main{height:100vh;box-sizing:border-box;margin:0;padding:18px;display:flex;flex-direction:column}
body[data-page=progression-page] main>#status{flex:none;margin:0 0 8px}
#progression-page{flex:1;min-height:0;margin:0;display:flex;flex-direction:column;overflow:hidden}
#progression-page>h1,#progression-page>.progression-terminal,#point-balances,#progression-xp,#progression-message,#progression-menu,#xp-level-up{flex:none}
#attribute-hub{flex:1;min-height:0;overflow:auto;align-items:center}
.attribute-hub-diagram{height:100%;min-height:340px;max-height:650px}
#attribute-editor{flex:1;min-height:0;overflow:auto;padding-right:8px;scrollbar-width:thin;scrollbar-color:#65cbc5 #13202b}
#perk-layout{flex:1;min-height:0;overflow:hidden;align-items:stretch}
#perk-tree,#perk-details{min-height:0;max-height:none;overflow:auto}
#perk-details{position:static;align-self:stretch}
.progression-footer{flex:none;margin-top:12px;padding-top:10px}
@media(max-width:650px){body[data-page=progression-page] main{padding:8px}#progression-page{padding:12px}#attribute-hub{display:flex;flex-direction:column;align-items:stretch;gap:12px}.attribute-hub-diagram{height:340px;min-height:340px;flex:none}.hub-info{flex:none}#perk-layout{grid-template-columns:1fr;grid-template-rows:minmax(120px,1fr) auto}#perk-details{max-height:35vh}#progression-page>h1{font-size:19px;margin:0 0 10px}}
