.heroes-section{padding:45px 0 50px;scroll-margin-top:25px}.heroes-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:25px}.heroes-heading h2{font-size:43px}.hero-search{display:flex;align-items:center;gap:12px;background:#f8f5eb;border:1px solid #a5b3b7;padding:10px 15px;min-height:46px;width:290px}.hero-search>span{font-size:25px;line-height:1;color:#496b7c}.hero-search input{font:inherit;font-size:13px;background:none;border:0;outline:0;width:100%;min-width:0}.hero-search:focus-within{outline:2px solid #22769a;outline-offset:2px}.hero-categories{display:flex;gap:8px;border-bottom:2px solid #263c49}.hero-categories button{background:#ccd0ce;padding:14px 26px;min-height:48px;font-size:13px;font-weight:bold;clip-path:polygon(4% 0,100% 0,96% 100%,0 100%)}.hero-categories button.active{background:#263e50;color:#fff3d0;border-top:3px solid #e5b439;padding-top:11px}.hero-categories button>span{margin-left:12px;font-size:11px;opacity:.75}#hero-category-description{font-size:13px;color:#546973;max-width:760px;margin:22px 0}#hero-count{font-size:11px;color:#61747c;margin:20px 0 13px}.hero-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.hero-card{background:#f4f1e6;border:1px solid #9eafb4;border-bottom:3px solid #263f4e;text-align:left;padding:0 0 15px;overflow:hidden;transition:border-color .15s,background .15s}.hero-card:hover{background:#fffae6;border-color:#c59727}.hero-card>img{display:block;object-fit:contain;width:100%;height:170px;padding:12px 18px 0;background:radial-gradient(ellipse at 50% 85%,#466c70,#1a2937 75%);border-bottom:1px solid #304a57;filter:none}.hero-card-name{display:block;padding:14px 15px 6px;font-weight:bold;font-style:italic;font-size:18px;letter-spacing:-.025em;line-height:1.2}.hero-card-caption{display:block;padding:0 15px;font-size:10px;color:#5a707a}.hero-stage{display:inline-block;font-size:10px;background:#f7f3e8;border:1px solid #b6c3c0;margin:0 5px 8px 0;padding:6px 10px}.progression-label{font-size:11px;margin-right:10px;display:inline-block}.hero-progression-note{font-size:10px;color:#5d727b;margin-bottom:15px}#hero-dialog{width:min(940px,92vw);padding:36px;max-height:86vh}#hero-dialog h2{font-size:34px;line-height:1.1}#hero-dialog .hero-close{position:absolute;top:10px;right:14px;font-size:23px;background:none;color:#425e6c;padding:5px 10px;min-width:44px;min-height:44px}.hero-profile{display:flex;align-items:center;gap:27px;margin:15px 0 28px}.hero-profile-image{width:145px;height:145px;object-fit:contain;background:radial-gradient(ellipse,#526862,#203344);border:2px solid #233b48;padding:10px}.hero-profile-type{font-size:9px!important;letter-spacing:.13em;color:#497486;margin:0 0 12px!important}.hero-english{font-size:13px!important;margin:10px 0 0!important;color:#617a82}#hero-dialog .hero-detail-heading{font-size:20px;font-style:italic;margin:25px 0 14px}.hero-ability{background:#e0e7de;border-left:3px solid #28748c;padding:18px;margin-bottom:14px}.hero-ability h4,.hero-talent h4{margin:0 0 12px;font-size:16px}.hero-ability p{font-size:13px!important;line-height:1.8;margin:0!important;white-space:pre-line}.hero-talent-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.hero-talent{border:1px solid #b3c3ba;background:#f8f4e7;padding:18px}.hero-talent h4{font-size:13px;color:#456b7b}.hero-effect-list p{font-size:12px!important;margin:9px 0!important;line-height:1.8}.hero-base-stats{border-top:1px solid #a8babd;margin-top:26px;padding-top:18px;font-size:12px}.hero-base-stats summary{cursor:pointer;font-weight:bold;min-height:35px}.hero-base-stats .hero-effect-list{columns:2;column-gap:25px}.hero-base-stats p{break-inside:avoid}.hero-level-control{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#dae3dc;padding:15px;font-size:12px;margin:24px 0}.hero-level-control select{font:inherit;min-height:44px;min-width:90px;background:#faf6e8;border:1px solid #9aafb6;padding:8px}.hero-unlock{font-size:12px!important;margin:8px 0!important}.hero-muted{font-size:12px!important;color:#64747a}.ability-max{display:block;font-size:10px;color:#456d7b;margin-top:14px}#hero-empty{padding:50px 0;text-align:center;font-size:14px;color:#60747c}@media(max-width:1000px){.hero-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-card>img{height:155px}}@media(max-width:650px){.hero-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.heroes-heading{align-items:stretch;flex-direction:column;gap:18px}.hero-search{width:100%}.hero-categories button{font-size:11px;padding:13px 17px}.hero-categories button.active{padding-top:10px}.hero-categories button>span{margin-left:7px}.hero-card-name{font-size:15px;padding:12px 12px 6px}.hero-card-caption{font-size:9px;padding:0 12px}.hero-card>img{height:145px}.hero-talent-grid{grid-template-columns:1fr}.hero-profile{gap:17px}.hero-profile-image{width:95px;height:105px}.hero-profile h2{font-size:27px!important}.hero-profile-type{font-size:8px!important}#hero-dialog{padding:24px}.hero-ability{padding:14px}.hero-ability p{font-size:12px!important}.hero-base-stats .hero-effect-list{columns:1}.hero-level-control{font-size:11px;gap:10px}.heroes-section{padding-top:32px}}@media(prefers-reduced-motion:reduce){.hero-card{transition:none}}
/* Game window: ink borders, slashed tabs and value rows from Panorama. */
#hero-dialog{padding:0;width:min(940px,94vw);border:3px solid #131c25;background:#ece8d9;color:#273644;box-shadow:0 0 0 1px #8b9d9d,7px 8px 0 #050e16a6,0 22px 90px #0009;scrollbar-width:thin;scrollbar-color:#d2ab43 #172733}
#hero-dialog::-webkit-scrollbar{width:9px}#hero-dialog::-webkit-scrollbar-track{background:#172733}#hero-dialog::-webkit-scrollbar-thumb{background:#b99c51;border:2px solid #172733}
#hero-dialog::backdrop{background:#07131ddd;backdrop-filter:blur(5px)}
#hero-dialog .hero-close{position:sticky;float:right;top:12px;right:13px;margin:10px 12px -54px 0;z-index:5;width:42px;height:42px;border:0;background:url('assets/panorama/forge_close_png.png') center/28px 28px no-repeat;font-size:0;filter:drop-shadow(2px 2px 0 #060e18);transition:filter .15s}
#hero-dialog .hero-close:hover{filter:brightness(1.3) drop-shadow(2px 2px 0 #060e18)}
#hero-dialog .hero-profile{position:relative;display:flex;align-items:center;gap:26px;margin:0;min-height:215px;padding:22px 64px 24px 30px;background:radial-gradient(ellipse at 9% 75%,#3b6573 0%,transparent 42%),repeating-linear-gradient(125deg,#ffffff03 0px,#ffffff03 2px,transparent 2px,transparent 9px),#1c303f;border-bottom:5px solid #101c28;overflow:hidden}
#hero-dialog .hero-profile:after{content:'';position:absolute;bottom:-1px;left:0;width:46%;height:7px;background:#e9bb3e;clip-path:polygon(0 0,100% 0,94% 100%,0 100%)}
#hero-dialog .hero-profile-image{position:relative;flex-shrink:0;width:150px;height:160px;object-fit:contain;background:radial-gradient(ellipse,#456d75aa,transparent 70%);border:0;padding:7px;filter:drop-shadow(3px 6px 0 #08182799)}
#hero-dialog .hero-profile>div{min-width:0}#hero-dialog .hero-profile h2{color:#fff4d6;font-size:clamp(26px,4vw,44px);font-weight:900;font-style:italic;line-height:1.05;letter-spacing:-.04em;text-shadow:3px 3px 0 #07101c;margin:0}
#hero-dialog .hero-profile-type{display:inline-block;transform:skew(-9deg);background:#eabf43;color:#172430!important;padding:5px 12px;margin-bottom:14px!important;font-size:9px!important;font-weight:900;letter-spacing:.08em;box-shadow:3px 3px 0 #0e1e2a}
#hero-dialog .hero-english{color:#b9d2d7!important;margin-top:10px!important;font-size:12px!important}
.hero-window-body{padding:10px 28px 30px;background:linear-gradient(135deg,#ffffff10,transparent 40%),#ece8d9}
#hero-dialog .hero-detail-heading{position:relative;display:flex;align-items:center;gap:10px;min-height:34px;font-size:18px;letter-spacing:-.02em;margin:22px 0 13px;font-weight:900;color:#213645}
#hero-dialog .hero-detail-heading:before{content:'';display:block;flex-shrink:0;width:7px;height:19px;background:#2994c6;transform:skew(-14deg);border-bottom:4px solid #153446}
#hero-dialog .hero-unlock{font-size:12px!important;line-height:1.7;padding:10px 14px;margin:6px 0!important;background:#dcded4;border-left:3px solid #667d76}
#hero-dialog .hero-level-control{display:block;margin:23px 0 27px;padding:16px 18px 18px;background:#1d303e;border:2px solid #111d27;box-shadow:3px 3px 0 #b7b9a7;color:#f2edda;position:relative}
#hero-dialog .hero-level-control:before{content:'';position:absolute;left:-2px;top:-2px;width:37%;height:4px;background:#dcae37;clip-path:polygon(0 0,100% 0,93% 100%,0 100%)}
.hero-level-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px;font-size:10px;font-weight:bold;letter-spacing:.08em;color:#c0d0d5}.hero-level-status{font-size:16px;font-style:italic;color:#f1cb60;letter-spacing:0}
.hero-level-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.hero-level-button{position:relative;min-height:47px;border:1px solid #526d7d;border-bottom:3px solid #0a1825;background:linear-gradient(120deg,#344b5c,#263c4c);color:#becdd2;font-size:19px;font-weight:900;font-style:italic;clip-path:polygon(8% 0,100% 0,93% 100%,0 100%);transition:background .15s,color .15s}.hero-level-button.reached{color:#d0e4d4;border-top-color:#77b4a0;background:#28483e}.hero-level-button.active{color:#211e17;background:#e5b22e url('assets/panorama/forge_button_png.png') center/100% 100%;border-color:#eccb68;text-shadow:1px 1px 0 #fff5a366}.hero-level-button:hover{filter:brightness(1.17)}.hero-level-button:focus-visible{outline:0;box-shadow:inset 0 0 0 3px #65d9ff}
#hero-dialog .hero-ability{position:relative;border:2px solid #233947;border-left:2px solid #233947;background:#f8f3df;padding:0;margin:0 0 18px;box-shadow:3px 3px 0 #bdc1b3}
#hero-dialog .hero-ability:after{content:'';position:absolute;right:-2px;bottom:-2px;width:22px;height:16px;background:#233947;clip-path:polygon(100% 0,100% 100%,0 100%)}
#hero-dialog .hero-ability h4{background:linear-gradient(110deg,#286786,#1b3e57);color:#f9f2da;padding:12px 17px;margin:0;font-size:15px;letter-spacing:-.01em;border-bottom:2px solid #19303e;font-style:italic}
#hero-dialog .hero-ability h4:before{content:'';display:inline-block;width:6px;height:6px;background:#f0c742;transform:rotate(45deg);margin:0 11px 2px 0}
#hero-dialog .hero-ability p{padding:16px 18px!important;font-size:13px!important;line-height:1.85;white-space:pre-line;color:#314652}
.effect-number{color:#267b48;font-weight:bold}.hero-ability .effect-number{color:#287d49}#hero-dialog .ability-max{margin:0 18px 16px;font-size:10px;display:inline-block;background:#e5dfca;color:#355b6c;padding:4px 8px;border-left:3px solid #cb9c32}
#hero-dialog .hero-effect-list{display:grid;grid-template-columns:1fr;gap:3px;background:#172a37;padding:9px;border:2px solid #142230;box-shadow:3px 3px 0 #babfb1}
.hero-stat-line{display:flex;justify-content:space-between;align-items:center;gap:22px;background:linear-gradient(90deg,#273f4e,#213542);border-left:3px solid #36799b;padding:12px 15px;min-height:45px;color:#dce6df;font-size:12px}.hero-stat-line:nth-child(even){background:linear-gradient(90deg,#2d4653,#243a45)}.hero-stat-label{font-size:12px;line-height:1.5;color:#d3e0df}.hero-stat-value{font-size:17px;font-style:italic;font-variant-numeric:tabular-nums;color:#a9e86d;text-shadow:1px 2px 0 #102820;white-space:nowrap}
#hero-dialog .hero-effect-list>p{padding:11px 13px;margin:0!important;background:#263e4c;color:#dee5d8;font-size:12px!important;line-height:1.85}.hero-effect-list .effect-number{color:#b6e97c}
#hero-dialog .hero-talent-grid{gap:17px}#hero-dialog .hero-talent{padding:0;border:2px solid #243748;background:#172b38;box-shadow:3px 3px 0 #bbc0b0;overflow:hidden}
#hero-dialog .hero-talent h4{padding:11px 15px;margin:0;background:#e1b947;color:#252c29;font-size:12px;font-style:italic;font-weight:900;clip-path:polygon(0 0,100% 0,95% 100%,0 100%)}
#hero-dialog .hero-talent:nth-child(2) h4{background:#56b4d6}#hero-dialog .hero-talent .hero-effect-list{box-shadow:none;border:0;padding:8px;gap:4px}#hero-dialog .hero-talent .hero-stat-line{padding:10px;gap:15px}.hero-talent .hero-stat-value{font-size:16px}
#hero-dialog .hero-base-stats{border:2px solid #233947;margin:25px 0 0;padding:0;background:#1b303d}#hero-dialog .hero-base-stats summary{list-style:none;position:relative;min-height:47px;padding:13px 42px 13px 16px;background:#294b60;color:#fff0cd;font-size:12px;font-weight:bold}#hero-dialog .hero-base-stats summary::-webkit-details-marker{display:none}#hero-dialog .hero-base-stats summary:after{content:'+';position:absolute;right:17px;top:7px;font-size:23px;color:#e5c35f}#hero-dialog .hero-base-stats[open] summary:after{content:'−'}#hero-dialog .hero-base-stats .hero-effect-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));columns:auto;box-shadow:none;border:0;padding:9px}.hero-base-stats .hero-stat-line{padding:10px;gap:10px}.hero-base-stats .hero-stat-value{font-size:15px}.hero-base-stats .hero-stat-label{font-size:11px}
@media(max-width:650px){#hero-dialog{width:94vw}#hero-dialog .hero-profile{padding:25px 40px 24px 18px;gap:10px;min-height:170px}#hero-dialog .hero-profile-image{width:90px;height:115px;padding:0}#hero-dialog .hero-profile h2{font-size:26px!important}#hero-dialog .hero-profile-type{font-size:7px!important;padding:4px 7px;margin-bottom:11px!important;letter-spacing:.03em}.hero-window-body{padding:4px 14px 22px}#hero-dialog .hero-close{top:7px;margin-right:5px;margin-top:5px;background-size:24px 24px}#hero-dialog .hero-detail-heading{font-size:17px;margin-top:20px}#hero-dialog .hero-level-control{padding:13px 12px}.hero-level-buttons{gap:5px}.hero-level-button{min-height:43px;font-size:17px}.hero-level-heading{font-size:8px}#hero-dialog .hero-ability p{font-size:12px!important;padding:13px!important}#hero-dialog .hero-ability h4{font-size:14px;padding:10px 12px}.hero-stat-line{padding:11px 12px;gap:14px}.hero-stat-value{font-size:16px}.hero-stat-label{font-size:11px}#hero-dialog .hero-base-stats .hero-effect-list{grid-template-columns:1fr}#hero-dialog .hero-talent-grid{gap:14px}}
@media(prefers-reduced-motion:reduce){.hero-level-button,#hero-dialog .hero-close{transition:none}}
@media(min-width:700px){#hero-dialog .hero-profile{min-height:180px;padding-top:16px;padding-bottom:20px}#hero-dialog .hero-profile-image{height:135px;width:140px}.starter-level-data{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:22px;align-items:start}.starter-level-data>.hero-detail-heading:first-child{grid-column:1;grid-row:1}.starter-level-data>.hero-ability,.starter-level-data>.hero-muted{grid-column:1;grid-row:2}.starter-level-data>.hero-detail-heading:not(:first-child){grid-column:2;grid-row:1}.starter-level-data>.hero-effect-list{grid-column:2;grid-row:2}.starter-level-data .hero-stat-line{min-height:43px;padding:10px 12px}.starter-level-data .hero-stat-label{font-size:11px}.starter-level-data .hero-stat-value{font-size:16px}}
@media(min-width:700px){#hero-dialog .hero-profile{min-height:160px;padding-top:12px;padding-bottom:16px}#hero-dialog .hero-profile-image{width:125px;height:120px}#hero-dialog .hero-level-control{margin-top:18px;margin-bottom:18px}.starter-level-data .hero-detail-heading{font-size:16px!important}}
/* All hero windows use one frame; only the content area scrolls. */
:root{--hero-window-width:940px;--hero-window-height:780px;--hero-window-viewport:86dvh;--hero-window-header:160px}
#hero-dialog{width:min(var(--hero-window-width),94vw);height:min(var(--hero-window-height),var(--hero-window-viewport));max-height:var(--hero-window-viewport);overflow:hidden}
#hero-detail{height:100%;display:flex;flex-direction:column;min-height:0}
#hero-dialog .hero-profile{flex:0 0 var(--hero-window-header);min-height:var(--hero-window-header)}
#hero-dialog .hero-window-body{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#d2ab43 #172733}
#hero-dialog .hero-window-body::-webkit-scrollbar{width:9px}
#hero-dialog .hero-window-body::-webkit-scrollbar-track{background:#172733}
#hero-dialog .hero-window-body::-webkit-scrollbar-thumb{background:#b99c51;border:2px solid #172733}
#hero-dialog .hero-close{position:absolute;float:none;top:10px;right:10px;margin:0}
@media(max-width:650px){#hero-dialog{height:88dvh;max-height:88dvh}#hero-dialog .hero-profile{flex-basis:160px;min-height:160px}#hero-dialog .hero-close{top:6px;right:5px}}
