/* Hero build UI: confirmed loadout, inspectable collection, explicit equip action. */
.hero-equipped{padding:14px;border:1px solid #37637a;background:#102c40;margin-bottom:12px;min-width:0}
.hero-build-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;margin-bottom:12px}
.hero-build-heading small{color:#80d3e6;font:700 10px 'Silkscreen',sans-serif}.hero-build-heading h3{margin:0;color:#f2c06b;font:700 15px 'Be Vietnam Pro',sans-serif}.hero-build-heading>span{color:#a7c3d4;font:400 11px 'Be Vietnam Pro',sans-serif}
.hero-equipped-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hero-equipped-slots>button{min-width:0;min-height:68px;padding:9px;text-align:left;border:1px solid #37637a;background:#081d2f;color:#eaf2f3;cursor:pointer}
.hero-equipped-slots>button.is-current{border-color:#f2c06b;box-shadow:inset 0 -3px #f2c06b}.hero-equipped-slots small{display:block;color:#8dcede;font:600 10px/1.5 'Be Vietnam Pro',sans-serif}.hero-equipped-slots strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font:600 12px/1.5 'Be Vietnam Pro',sans-serif}
.hero-loadout-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;padding:14px;background:#102c45;border-left:3px solid #54b6d0;font:500 12px/1.5 'Be Vietnam Pro',sans-serif}
.hero-sync-copy{min-width:0}.hero-sync-copy strong{color:#e4f5f6}.hero-sync-copy p{margin:4px 0;color:#a7c3d4}.hero-sync-copy small{color:#a7c3d4;font-size:10px}
.hero-sync-actions{display:flex;align-items:start;flex-wrap:wrap;gap:8px;max-width:340px}
.hero-loadout-toolbar button,.hero-loadout-toolbar a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #397c9b;background:#15374d;color:#dcecf4;text-decoration:none;cursor:pointer;font:700 11px/1.4 'Be Vietnam Pro',sans-serif}
.hero-sync-explain,.hero-loadout-auth{grid-column:1/-1;min-width:0;color:#abc7d6}.hero-loadout-toolbar summary{cursor:pointer;min-height:32px;padding:6px 0}.hero-loadout-toolbar details p{max-width:75ch}.hero-loadout-auth form{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin-bottom:10px}.hero-loadout-auth label{display:grid;gap:6px;flex:1;min-width:150px;max-width:360px}
.hero-loadout-toolbar input,.hero-loadout-filters input,.hero-loadout-filters select{min-height:44px;width:100%;padding:10px;background:#071426;border:1px solid #397c9b;color:#eaf2f3;font:400 13px 'Be Vietnam Pro',sans-serif;min-width:0}
.hero-loadout-message{padding:12px;border:1px solid #f2c06b;color:#f2c06b;font:500 12px/1.6 'Be Vietnam Pro',sans-serif}
.hero-loadout-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0;font:500 12px 'Be Vietnam Pro',sans-serif}.hero-loadout-filters>input{flex:1;min-width:150px}.hero-loadout-filters label{display:flex;align-items:center;gap:8px;min-width:0}.hero-loadout-filters select{width:auto}
.hero-build-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.72fr);gap:14px;align-items:start}.hero-build-catalog{min-width:0}
.hero-loadout-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px}
.hero-loadout-tile{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;padding:7px;border:2px solid #31516a;background:#0b2235;color:#eaf2f3;cursor:pointer;text-align:left;box-shadow:2px 3px #02070c}
.hero-loadout-tile.is-equipped{border-color:#f2c06b}.hero-loadout-tile.is-inspected{background:#1c4159;box-shadow:inset 0 0 0 2px #83dcec,2px 3px #02070c}.hero-loadout-tile:hover{border-color:#83dcec}.hero-loadout-tile img{display:block;width:100%;height:130px;object-fit:contain;background:radial-gradient(ellipse,#264d60,#071426)}
.hero-loadout-tile strong{font:600 11px/1.5 'Be Vietnam Pro',sans-serif;overflow-wrap:anywhere}.hero-loadout-tile small{font:700 8px/1.5 'Be Vietnam Pro',sans-serif;color:#9adce9;margin-top:auto}.hero-loadout-symbol{display:grid;place-items:center;height:86px;color:#83dcec;font-size:36px}
.hero-build-preview{position:sticky;top:8px;min-width:0;padding:16px;background:#112e42;border:2px solid #80c9df;box-shadow:3px 4px #02070c;max-height:calc(100dvh - 190px);overflow:auto;font:400 13px/1.65 'Be Vietnam Pro',sans-serif}
.hero-preview-kicker{color:#91d8e8;font:700 9px/1.6 'Silkscreen',sans-serif}.hero-preview-art{display:block;width:100%;height:230px;object-fit:contain;margin:10px 0;background:radial-gradient(ellipse,#31576a,#0b2034)}.hero-preview-symbol{display:grid;place-items:center;height:130px;color:#83dcec;font-size:64px}.hero-build-preview h3{margin:8px 0;color:#f2c06b;font:700 18px/1.4 'Be Vietnam Pro',sans-serif;overflow-wrap:anywhere}.hero-build-preview p{margin:8px 0;overflow-wrap:anywhere}.hero-build-preview dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:12px 0}.hero-build-preview dt{font-size:9px;color:#9ac8d8}.hero-build-preview dd{margin:0;font-size:13px;overflow-wrap:anywhere}.hero-equip-action{display:block;width:100%;min-height:48px;margin:14px 0 8px;padding:10px;border:2px solid #f2c06b;background:#f2c06b;color:#102635;cursor:pointer;font:700 12px/1.5 'Be Vietnam Pro',sans-serif}.hero-equip-action:disabled{border-color:#4c6677;background:#294659;color:#a7bcc8;cursor:not-allowed}.hero-preview-note{font-size:11px;color:#b6ced9}.hero-build-preview>a{display:inline-flex;align-items:center;min-height:44px;color:#a3dceb;font-size:11px}
.hero-equipped button:focus-visible,.hero-loadout-toolbar :is(button,a,summary,input):focus-visible,.hero-loadout-tile:focus-visible,.hero-build-preview :is(button,a):focus-visible{outline:3px solid #f2c06b;outline-offset:2px}
[data-loadout-more]{margin-top:16px}[data-loadout-more][hidden]{display:none}
@media(max-width:1000px){.hero-loadout-toolbar{grid-template-columns:minmax(0,1fr)}.hero-sync-actions{max-width:none}.hero-equipped-slots{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.hero-equipped,.hero-loadout-toolbar{padding:10px}.hero-equipped-slots{gap:6px}.hero-equipped-slots>button{min-height:58px}.hero-build-workbench{display:flex;flex-direction:column-reverse;gap:14px}.hero-build-workbench>*{width:100%}.hero-build-preview{position:static;display:grid;grid-template-columns:90px minmax(0,1fr);gap:6px 10px;padding:10px;max-height:none;overflow:visible}.hero-preview-kicker{grid-column:1/-1}.hero-preview-art,.hero-preview-symbol{grid-column:1;grid-row:2/span 3;width:90px;height:125px;margin:0}.hero-build-preview h3{grid-column:2;font-size:15px;margin:0}.hero-build-preview :is(p,dl){grid-column:2;min-width:0;margin:0}.hero-build-preview .hero-equip-action,.hero-build-preview .hero-preview-note,.hero-build-preview>a{grid-column:1/-1}.hero-equip-action{margin-top:8px}.hero-loadout-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.hero-loadout-tile{padding:5px}.hero-loadout-tile img{height:95px}.hero-loadout-tile strong{font-size:10px}.hero-loadout-filters label{width:100%}}
/* Compact status leaves room for the actual collection on laptop-sized screens. */
@media(min-width:601px){.hero-equipped-slots{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-loadout-toolbar{grid-template-columns:minmax(220px,1fr) auto}.hero-sync-actions{max-width:270px}.hero-sync-copy p{font-size:11px}.hero-sync-explain summary{min-height:24px;padding:2px 0}.hero-equipped-slots>button{min-height:62px}.hero-equipped-slots strong{font-size:11px}}
.hero-loadout-auth:not([open]){display:none}
@media(max-width:600px){.hero-equipped-slots{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-equipped-slots>button{padding:6px;min-height:58px}.hero-equipped-slots small{font-size:8px}.hero-equipped-slots strong{font-size:9px}.hero-build-heading>span,.hero-build-heading>small{display:none}.hero-build-heading h3{font-size:13px}.hero-sync-copy p{font-size:10px}.hero-sync-copy small{font-size:9px}.hero-sync-actions button{font-size:10px;padding:6px 9px}}
/* Skill selection: clear roles and readable data instead of identical art tiles. */
.hero-skill-categories{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.hero-skill-categories button{min-height:40px;padding:7px 11px;border:1px solid #45667c;background:#0b2337;color:#dce9ef;cursor:pointer;font:600 11px 'Be Vietnam Pro',sans-serif}.hero-skill-categories button[aria-pressed="true"]{border-color:#f2c06b;background:#264253;color:#ffe0a1}.hero-skill-hint{font:400 11px/1.6 'Be Vietnam Pro',sans-serif;color:#afc9d6;margin:8px 0 12px}.hero-loadout-grid.hero-skill-list{display:flex;flex-direction:column;gap:8px}.hero-skill-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0;min-height:72px;padding:10px;border:1px solid #32536a;background:#0b2337;color:#e0edf3;text-align:left;cursor:pointer}.hero-skill-row>svg{width:28px;height:28px;stroke:#8ed0e1;fill:none;stroke-width:1.7}.hero-skill-row>span{min-width:0}.hero-skill-row strong{display:block;font:600 13px/1.5 'Be Vietnam Pro',sans-serif;overflow-wrap:anywhere}.hero-skill-row small{display:block;color:#a5c8d5;font:400 10px/1.5 'Be Vietnam Pro',sans-serif}.hero-skill-row>b{color:#9edbe8;font:600 8px 'Be Vietnam Pro',sans-serif}.hero-skill-row.is-equipped{border-left:3px solid #f2c06b}.hero-skill-row.is-inspected{border-color:#8ed0e1;background:#204255;box-shadow:inset 0 0 0 1px #8ed0e1}.hero-skill-row:focus-visible,.hero-skill-categories button:focus-visible{outline:3px solid #f2c06b;outline-offset:2px}.hero-skill-type{display:block;color:#8ed0e1;font:700 10px 'Be Vietnam Pro',sans-serif}
@media(max-width:600px){.hero-skill-categories{gap:5px}.hero-skill-categories button{font-size:10px;padding:6px 8px}.hero-skill-row{grid-template-columns:25px minmax(0,1fr);min-height:65px;padding:8px}.hero-skill-row>b{grid-column:2}.hero-skill-row strong{font-size:12px}.hero-build-preview .hero-skill-type{grid-column:2}}
.hero-sync-panel,.hero-skill-build-summary{border:1px solid #35586e;background:#102a3e;margin:10px 0;color:#dce9ef;font:500 11px/1.5 'Be Vietnam Pro',sans-serif}.hero-sync-panel>summary,.hero-skill-build-summary>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:8px 12px;cursor:pointer;list-style:none}.hero-sync-panel>summary::before,.hero-skill-build-summary>summary::before{content:'▸';color:#f2c06b}.hero-sync-panel[open]>summary::before,.hero-skill-build-summary[open]>summary::before{content:'▾'}.hero-sync-panel>summary strong{color:#95d8e5;font-size:10px}.hero-sync-panel>summary span{margin-left:auto;font-size:10px;color:#bbd3dd}.hero-sync-panel>.hero-loadout-toolbar{border-left:0;border-top:1px solid #35586e}.hero-skill-build-summary .hero-equipped{margin:0;border:0;border-top:1px solid #35586e}.hero-sync-panel>summary:focus-visible,.hero-skill-build-summary>summary:focus-visible{outline:3px solid #f2c06b;outline-offset:2px}
@media(max-width:600px){.hero-sync-panel>summary{flex-wrap:wrap;gap:5px}.hero-sync-panel>summary span{margin-left:20px;font-size:9px}}
.hero-skill-build-summary>summary{justify-content:flex-start}.hero-preview-symbol>svg{width:56px;height:56px;fill:none;stroke:#9bd4e5;stroke-width:1.7}.is-skill-preview .hero-preview-art{height:100px}.is-skill-preview .hero-preview-symbol{height:75px}
@media(max-width:600px){.is-skill-preview .hero-preview-art,.is-skill-preview .hero-preview-symbol{height:90px}}
.game-panel .hero-skill-hint{font:400 11px/1.6 'Be Vietnam Pro',sans-serif;margin:8px 0 12px}
@media(max-width:600px){.hero-loadout-filters{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.hero-loadout-filters>input{grid-column:1/-1;width:100%;min-width:0}.hero-loadout-filters label{width:auto;gap:6px;font-size:10px}.hero-loadout-filters select{max-width:125px;padding:6px}.hero-loadout-filters>span{font-size:10px;white-space:nowrap}}

/* Game loadout: equipped moves stay visible above the collection. */
.hero-skill-deck{margin:0 0 12px;padding:12px;background:#102c40;border:1px solid #397c9b;color:#dce9ef;font:500 11px/1.5 'Be Vietnam Pro',sans-serif}
.hero-skill-deck>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.hero-skill-deck h3{margin:2px 0;color:#f2c06b;font:700 14px 'Be Vietnam Pro',sans-serif}.hero-skill-deck header small{font:700 8px 'Silkscreen',sans-serif;color:#8ed0e1}.hero-skill-deck header>span{font-size:10px;color:#a7c3d4}
.hero-deck-group{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:10px;margin-top:7px}.hero-deck-group>strong{font-size:10px;color:#a7c3d4}.hero-deck-cards{display:flex;gap:7px;overflow-x:auto;padding:3px;min-width:0;scrollbar-width:thin}.hero-deck-card{display:flex;flex:1 0 110px;max-width:200px;min-height:82px;min-width:0;flex-direction:column;justify-content:center;gap:4px;padding:9px;border:1px solid #d5a964;background:#0b2033;color:#ecf4f5;text-align:left;cursor:pointer}.hero-deck-card>span{font:700 8px/1.4 'Be Vietnam Pro',sans-serif;color:#97cddd}.hero-deck-card strong{font:700 12px/1.4 'Be Vietnam Pro',sans-serif;overflow-wrap:anywhere}.hero-deck-card>small{font:500 10px 'Be Vietnam Pro',sans-serif;color:#a7c3d4}.hero-deck-card.is-inspected{border-color:#8ee1ed;background:#21485b;box-shadow:inset 0 0 0 1px #8ee1ed}.hero-deck-card:focus-visible{outline:3px solid #f2c06b;outline-offset:1px}.game-panel .hero-deck-note{margin:7px 0 0;color:#a7c3d4;font:400 10px/1.5 'Be Vietnam Pro',sans-serif}
.hero-mission-brief{padding:14px;border:1px solid #35586e;background:#102c40;margin-top:12px;color:#dce9ef;font:400 12px/1.6 'Be Vietnam Pro',sans-serif}.hero-mission-brief>summary{min-height:40px;cursor:pointer;color:#8ed0e1;font-weight:700}.hero-mission-brief h3{font:700 16px/1.5 'Be Vietnam Pro',sans-serif;color:#f2c06b}.notion-hero-profile+.hero-equipped{margin-top:14px}
@media(max-width:600px){.hero-skill-deck{padding:9px}.hero-skill-deck>header{align-items:start;margin-bottom:6px}.hero-skill-deck h3{font-size:12px}.hero-skill-deck header>span{font-size:9px;max-width:80px;text-align:right}.hero-deck-group{grid-template-columns:minmax(0,1fr);gap:3px}.hero-deck-card{min-height:74px;flex-basis:110px}.hero-deck-card strong{font-size:11px}.hero-mission-brief{padding:10px}}

body[data-game-section="HERO"] .game-panel>header{padding:8px 16px;min-height:50px}body[data-game-section="HERO"] .game-panel>header h2{margin:4px 0;font-size:18px;line-height:1.3}body[data-game-section="HERO"] .game-panel>header small{font-size:8px}body[data-game-section="HERO"] .game-panel-content{padding:14px 16px 24px}body[data-game-section="HERO"] #game-panel-tabs{padding-block:6px}
@media(min-width:601px){.hero-skill-deck{padding:10px}.hero-deck-card{min-height:66px;padding:7px}.hero-skill-deck>header{margin-bottom:5px}.hero-deck-group{margin-top:3px}.hero-skill-deck header small{display:none}.hero-skill-deck header h3{font-size:13px}}
html[data-notion-authority] .combat-action-bar[data-layout="grouped"]{display:grid;grid-template-columns:minmax(0,1fr);gap:4px}html[data-notion-authority] .combat-action-bar[data-layout="grouped"] .notion-passive-skills>button{flex:0 0 auto;min-height:32px;padding:5px 8px}
@media(max-width:600px){body[data-game-section="HERO"] .game-panel>header{padding:8px 10px}body[data-game-section="HERO"] .game-panel>header h2{font-size:14px}body[data-game-section="HERO"] .game-panel-content{padding:10px 8px 24px}}

.hero-source-portrait{display:block;width:55px;height:91px;background:url('../assets/spideytracker/cosmic-original-spiderman.png') -1175px -374px no-repeat;image-rendering:pixelated;scale:1.8;filter:drop-shadow(2px 3px #02070c)}
body[data-game-section="HERO"]:not([data-field-immersive="true"]) .game-panel>header{padding:7px 16px;min-height:46px}body[data-game-section="HERO"] .game-panel>header h2{margin:2px 0;font-size:16px}
@media(max-width:600px){.hero-source-portrait{scale:1.25}body[data-game-section="HERO"]:not([data-field-immersive="true"]) .game-panel>header{padding:7px 10px}body[data-game-section="HERO"] .game-panel>header h2{font-size:13px}}

/* Stage-height adaptation keeps original enemies inside a short arena. */
html[data-notion-authority] .action-combat-stage{container-type:size;container-name:spider-arena}
@container spider-arena (max-height:230px){
 .action-fighter--enemy .arena-foe{height:130px;max-height:130px}
 .action-fighter--enemy .arena-foe .notion-enemy-idle{transform:scale(-.85,.85)!important;margin-bottom:-8px}
}
html[data-notion-authority] .notion-skill-detail{z-index:80;max-height:calc(100% - 16px)}

/* Hero is a character screen: one stage, one build summary, then the collection. */
body[data-game-section="HERO"] .notion-hero-profile{gap:16px;padding:16px;border:0;border-bottom:1px solid #397c9b;background:linear-gradient(110deg,#102d42,#081b2b)}
body[data-game-section="HERO"] .notion-hero-portrait{min-height:180px;background:radial-gradient(ellipse at 50% 78%,#326d84 0,#15374d 43%,transparent 72%)}
body[data-game-section="HERO"] .notion-hero-portrait img{image-rendering:pixelated;max-height:190px}
body[data-game-section="HERO"] .notion-stat-grid{gap:0;margin-top:14px;border-top:1px solid #397c9b}
body[data-game-section="HERO"] .notion-stat-grid>span{gap:3px;padding:10px 8px;border-right:1px solid #31516a;background:transparent;font-size:10px}
body[data-game-section="HERO"] .notion-stat-grid>span:last-child{border-right:0}
body[data-game-section="HERO"] .notion-stat-grid b{font-size:15px}
body[data-game-section="HERO"] .hero-equipped{border-width:0 0 1px;margin:0 0 12px;background:#0d273a}
body[data-game-section="HERO"] .hero-equipped-slots>button{border-width:0 0 2px;box-shadow:none}
body[data-game-section="HERO"] .hero-equipped-slots>button:focus-visible{outline:2px solid #f2c06b;outline-offset:2px}
@media(max-width:600px){
 body[data-game-section="HERO"] .notion-hero-profile{padding:10px 12px}
 body[data-game-section="HERO"] .notion-hero-portrait{min-height:125px}
 body[data-game-section="HERO"] .notion-hero-portrait img{max-height:150px}
 body[data-game-section="HERO"] .notion-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-game-section="HERO"] .notion-stat-grid>span:nth-child(2){border-right:0}
 body[data-game-section="HERO"] .notion-stat-grid>span:nth-child(-n+2){border-bottom:1px solid #31516a}
 body[data-game-section="HERO"] .hero-equipped-slots{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-game-section="HERO"] .hero-equipped-slots>button{min-height:48px}
}
