:root{color-scheme:dark;--gold:#e8c382;--text:#f0e9db;--muted:#9ca9aa;--line:#b8d1cb24}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;height:100%;overflow:hidden;background:#101b22;color:var(--text);font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-size:13px}button{font:inherit;color:inherit;border:1px solid var(--line);background:#22313a;border-radius:9px;min-height:38px;padding:8px 13px;cursor:pointer;touch-action:manipulation}button:hover{filter:brightness(1.18)}button:disabled{opacity:.4;cursor:default}button:focus-visible{outline:2px solid var(--gold)}#app{height:100dvh;display:flex;flex-direction:column;max-width:1800px;margin:auto;position:relative;background:#14242b}header{height:69px;flex-shrink:0;display:flex;align-items:center;padding:0 28px;gap:20px;border-bottom:1px solid var(--line);background:linear-gradient(100deg,#16272e,#1b2b32);z-index:5}.brand{display:flex;align-items:center;gap:12px}.brand-mark{font-family:Georgia;font-size:35px;color:var(--gold);border:1px solid #ad8d58;transform:rotate(45deg);width:38px;height:38px;line-height:34px;text-align:center}.brand b{display:block;font-family:serif;letter-spacing:4px;font-size:21px}.brand small{display:block;color:var(--gold);font-size:8px;letter-spacing:3px;margin-top:3px}.resources{display:flex;gap:32px;margin-left:auto;font-size:17px}.resources b{font-family:Georgia;font-size:22px;margin-left:7px}.resources .life{color:#efac9d}.resources .gold{color:var(--gold)}#settings{background:transparent;font-size:19px;border:0}#arena{position:relative;flex:1;min-height:0;isolation:isolate;overflow:hidden}#field{display:block;width:100%;height:100%;touch-action:none}#arena:after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 100px #00101844;pointer-events:none;z-index:1}.chapter{position:absolute;left:28px;top:23px;pointer-events:none;text-shadow:0 2px 9px #0008}.chapter small{font-size:9px;letter-spacing:3px;color:#bbd9cc}.chapter h1{font:27px serif;letter-spacing:5px;margin:5px 0 7px}.chapter>span{font-size:10px;color:#ccd9d3;letter-spacing:1px}.wave-badge{position:absolute;right:28px;top:22px;text-align:right}.wave-badge span{display:block;color:#d7e1d6;font-size:10px;letter-spacing:2px}.wave-badge b{font:30px Georgia;color:#f2dcb0;display:block;margin-top:7px}.wave-badge i{font-size:14px;color:#bed2cc;font-style:normal}#trait-chips{position:absolute;left:26px;top:122px;display:flex;flex-direction:column;gap:7px}.trait-chip{display:flex;align-items:center;gap:8px;min-height:32px;border-radius:5px;padding:5px 9px;background:#0e2027c7;border:1px solid #84a8a84a;color:#b8c7c6;font-size:10px;backdrop-filter:blur(8px)}.trait-chip.active{border-color:#b29c6388;color:#f4d495;background:#3a3b25ba}.trait-chip i{font-style:normal;color:#a9c5be;font-size:14px}.trait-chip strong{font-size:11px}.camera-tools{position:absolute;right:24px;top:108px;display:flex;flex-direction:column;gap:7px}.camera-tools button{background:#10252dc9;backdrop-filter:blur(8px);width:35px;min-height:35px;padding:4px;color:#d9e3de}#toast{position:absolute;bottom:62px;left:50%;transform:translateX(-50%);background:#10262dd9;border:1px solid #b1c6b54a;border-radius:24px;padding:9px 20px;color:#e1e9df;font-size:11px;white-space:nowrap;pointer-events:none;z-index:4;max-width:94%;text-align:center}.arena-bottom{position:absolute;bottom:12px;left:25px;right:25px;display:flex;justify-content:space-between;align-items:center;z-index:3}.arena-bottom>div:first-child{font-size:11px;color:#d8e5de;text-shadow:0 2px 5px black}.arena-bottom button{background:#142a33cc;min-width:40px;min-height:34px;padding:4px 10px;font-size:12px}.live-dot{display:inline-block;width:6px;height:6px;background:#9fe1b6;border-radius:50%;margin-right:8px;box-shadow:0 0 8px #92efb8}#command{position:relative;flex-shrink:0;background:linear-gradient(#1f3038,#14242c);border-top:1px solid #aec9bc50;padding:15px 28px 8px;box-shadow:0 -12px 45px #07111666;z-index:6}.command-top{display:flex;align-items:center;gap:12px}.command-top>div{display:flex;align-items:center;gap:12px}.section-label{font-size:8px;letter-spacing:2px;color:#9fb2b2}.command-top b{font-size:13px}.command-top small{font-size:10px;font-weight:400;color:var(--muted);margin-left:8px}#level{margin-left:auto;background:transparent;color:#d4dbd4;font-size:11px;min-height:34px}#level span{color:var(--gold);margin-left:9px}.primary{background:linear-gradient(130deg,#f0d59c,#bd985a);border-color:#f2dba8;color:#263137;font-weight:700;box-shadow:0 3px 12px #0003;min-width:150px}.primary span{margin-left:18px}#bench{display:grid;grid-template-columns:repeat(8,1fr);gap:9px;margin:11px 0 12px;max-width:720px}.bench-slot{height:52px;min-height:0;padding:0;position:relative;background:#0c1c2355;border:1px solid #809c9c26;border-radius:6px;color:#7d9398;font-size:10px}.bench-slot img{height:61px;position:absolute;left:50%;bottom:0;transform:translateX(-50%);pointer-events:none}.bench-slot.filled{background:radial-gradient(ellipse at bottom,var(--unit),#14252d 80%);border-color:#9db1a467}.bench-slot.selected{border-color:#f3d69a;box-shadow:0 0 13px #e8c38233}.stars{color:#f4d085;font-size:10px;letter-spacing:1px}.bench-slot .stars{position:absolute;top:2px;right:3px;z-index:2}.bench-slot .unit-name{position:absolute;bottom:1px;left:0;right:0;font-size:8px;color:#eee;text-shadow:0 1px 3px black}.shop-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.shop-heading>div{display:flex;align-items:center;gap:12px}.shop-heading b{font-family:serif;font-size:16px;letter-spacing:2px}.shop-heading span{font-size:10px;color:#9baead}.shop-heading button{min-height:29px;padding:4px 10px;font-size:11px;background:#1d3038}.shop-heading button span{color:var(--gold);margin-left:7px}#offers{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.card{height:106px;padding:0;position:relative;border-radius:7px;overflow:hidden;background:radial-gradient(ellipse at 65% 25%,var(--unit),#13252e 90%);border:1px solid #7b99945c;text-align:left}.card:before{content:"";position:absolute;inset:8px 30% -45px;border:1px solid #d3e6df18;transform:rotate(30deg)}.card img{position:absolute;height:98px;width:98px;object-fit:cover;object-position:center 16%;right:-2px;bottom:0;pointer-events:none;filter:drop-shadow(0 4px 8px #0007)}.card .cost{position:absolute;left:10px;top:9px;color:#f6d49b;font-size:12px;text-shadow:0 1px 4px #000}.card .card-copy{position:absolute;left:10px;bottom:10px;z-index:2;text-shadow:0 2px 4px #08191d}.card strong{font-size:13px;display:block}.card small{font-size:9px;color:#ccddd4;display:block;margin-top:5px}.card .owned{position:absolute;right:6px;top:5px;font-size:9px;color:#f3dda9}.card.sold{opacity:.25}.card.sold:after{content:"已招募";position:absolute;inset:0;display:grid;place-items:center;color:#fff}.bottom-tabs{display:flex;justify-content:space-between;align-items:center;margin-top:7px}.bottom-tabs button{font-size:10px;color:#c5d1ca;border:0;background:transparent;min-height:25px;padding:3px 0}.bottom-tabs button span{background:#4b594b;padding:2px 6px;border-radius:4px;margin-left:5px;color:var(--gold)}.bottom-tabs>span{font-size:9px;color:#819c9f}#selection{position:absolute;bottom:102px;left:50%;transform:translateX(-50%);background:#13262eee;border:1px solid #bfa56b77;border-radius:10px;backdrop-filter:blur(12px);display:flex;align-items:center;gap:12px;padding:10px 14px;z-index:5;min-width:310px;box-shadow:0 8px 30px #0006}#selection[hidden]{display:none}#selection img{width:58px;height:58px;object-fit:contain}#selection strong{display:block;font-size:13px}#selection p{margin:4px 0;font-size:10px;color:#abc4bd}#selection button{margin-left:auto;font-size:10px;white-space:nowrap}#selection .dismiss{position:absolute;top:-9px;right:-9px;min-height:24px;width:24px;padding:0;border-radius:50%}#loading,#end{position:absolute;inset:0;background:radial-gradient(ellipse,#244841,#101e28);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:10;text-align:center}#loading p,#end p{font-size:12px;color:#bacbc4;max-width:85%;line-height:1.8}#loading h2,#end h2{font-family:serif;color:#f0d5a0;letter-spacing:4px}#end[hidden]{display:none}.loading-sigil{font:72px Georgia;color:var(--gold)}#end small{letter-spacing:5px;color:var(--gold)}dialog{background:#182c34;color:var(--text);border:1px solid #9d8c6888;border-radius:15px;max-width:700px;width:92%;max-height:85dvh;padding:25px;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#041118bb;backdrop-filter:blur(5px)}#close-modal{float:right;font-size:23px;border:0;background:none}dialog h2{font-family:serif;color:var(--gold)}dialog p,dialog li{font-size:12px;color:#bfd0c9;line-height:1.9}.codex-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.codex-grid article{background:#ffffff05;padding:10px;border-radius:8px}.codex-grid img{width:100%;height:95px;object-fit:contain}.codex-grid h3{font-size:12px}.trait-row{padding:12px 0;border-bottom:1px solid var(--line)}.trait-row b{color:var(--gold)}.settings-row{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}@media(min-width:1000px){#command{padding:15px 28px 8px}.command-top{position:absolute;top:16px;left:28px;width:calc(45% - 35px)}#bench{width:45%;margin-top:49px;margin-bottom:12px;max-width:none}.shop-heading{position:absolute;left:48%;right:28px;top:16px}#offers{position:absolute;left:48%;right:28px;top:56px}.card{height:108px}.card img{height:92px;width:92px;right:-4px;bottom:2px}.card strong{font-size:11px}.card .card-copy{left:7px;bottom:7px}.card small{font-size:8px}.bottom-tabs{margin-top:14px}.bottom-tabs>span{margin-right:55%}#command{height:201px}}
@media(max-width:600px){header{height:57px;padding:0 13px;gap:9px}.brand{gap:9px}.brand-mark{width:26px;height:26px;line-height:23px;font-size:25px}.brand b{font-size:16px;letter-spacing:2px}.brand small{font-size:6px;letter-spacing:2px}.resources{gap:12px;font-size:12px}.resources b{font-size:17px;margin-left:3px}#settings{padding:4px;min-height:35px}.chapter{top:18px;left:16px}.chapter small{font-size:7px}.chapter h1{font-size:21px;letter-spacing:3px;margin:4px 0}.chapter>span{font-size:8px}.wave-badge{top:16px;right:16px}.wave-badge span{font-size:9px}.wave-badge b{font-size:25px}#trait-chips{top:97px;left:12px;gap:4px}.trait-chip{min-height:25px;padding:3px 6px;gap:5px;font-size:8px}.trait-chip strong{font-size:9px}.trait-chip i{font-size:12px}.camera-tools{right:12px;top:94px;gap:5px}.camera-tools button{width:30px;min-height:30px;font-size:11px}.arena-bottom{left:13px;right:13px;bottom:9px}.arena-bottom>div:first-child{font-size:9px}.arena-bottom button{min-height:29px;min-width:32px;font-size:11px;padding:4px 8px}#toast{bottom:47px;font-size:10px;padding:7px 13px;white-space:normal;width:max-content}#command{padding:10px 12px max(5px,env(safe-area-inset-bottom))}.command-top{gap:8px}.section-label{display:none}.command-top b{font-size:11px}.command-top small{margin-left:3px;font-size:9px}#level{font-size:10px;padding:7px 9px;min-height:32px}#level span{margin-left:3px}.primary{font-size:11px;min-width:112px;min-height:34px;padding:7px 11px}.primary span{margin-left:10px}#bench{gap:5px;margin:8px 0 10px}.bench-slot{height:40px}.bench-slot img{height:47px}.bench-slot .unit-name{font-size:6px}.bench-slot .stars{font-size:7px}.shop-heading{margin-bottom:7px}.shop-heading>div{gap:7px}.shop-heading b{font-size:13px;letter-spacing:1px}.shop-heading span{font-size:8px}.shop-heading button{font-size:10px;min-height:27px;padding:3px 7px}.shop-heading button span{margin-left:3px}#offers{gap:5px}.card{height:103px;border-radius:5px}.card img{width:99px;height:99px;right:-14px;bottom:16px}.card .cost{font-size:10px;top:5px;left:5px}.card .card-copy{left:4px;bottom:6px;right:0}.card strong{font-size:9px;letter-spacing:0}.card small{font-size:7px;margin-top:3px}.card .owned{font-size:7px;right:3px;top:4px}.bottom-tabs{margin-top:4px}.bottom-tabs button{font-size:9px;min-height:22px}.bottom-tabs>span{font-size:7px}#selection{min-width:285px;max-width:94%;padding:7px 10px;bottom:86px;gap:8px}#selection img{width:40px;height:45px}#selection strong{font-size:11px}#selection p{font-size:9px}.codex-grid{grid-template-columns:repeat(2,1fr)}}@media(max-height:700px) and (max-width:600px){.chapter>span{display:none}#command{padding-top:7px}.card{height:83px}.card img{height:83px;width:83px}.bench-slot{height:32px}.bench-slot img{height:39px}#bench{margin:6px 0}.bottom-tabs{margin-top:1px}.trait-chip{min-height:22px}#trait-chips{top:78px}.camera-tools{top:78px}}@media(orientation:landscape) and (max-height:600px){#app{padding-right:260px}header{height:50px;padding:0 14px}.brand b{font-size:16px}.brand small{font-size:6px}.brand-mark{font-size:24px;width:26px;height:26px;line-height:24px}.resources{gap:12px}.resources b{font-size:17px}#command{position:absolute;right:0;top:0;bottom:0;width:260px;overflow:auto;padding:12px;border-left:1px solid var(--line)}.command-top{flex-wrap:wrap}.command-top>div{width:100%}#level{margin-left:0}.primary{min-width:115px}#bench{grid-template-columns:repeat(4,1fr)}.bench-slot{height:37px}#offers{grid-template-columns:repeat(3,1fr)}.card{height:88px}.card img{width:95px;height:95px;right:-15px;bottom:10px}.card strong{font-size:10px}.card small{font-size:7px}.shop-heading{flex-wrap:wrap;gap:8px}.shop-heading>div{gap:8px}.shop-heading span{font-size:8px}.bottom-tabs>span{display:none}.chapter{top:13px;left:15px}.chapter h1{font-size:20px}.chapter>span{display:none}#trait-chips{top:78px;left:12px}.trait-chip{min-height:24px;font-size:8px}.camera-tools{top:88px;right:12px}.camera-tools button{min-height:28px;width:28px}.wave-badge{top:13px;right:15px}}
/* Hero figurines and touch-first placement. */
#bench,#offers{touch-action:none;user-select:none;-webkit-user-select:none}#drag-ghost{position:fixed;z-index:100;pointer-events:none;width:105px;transform:translate(-50%,-50%);text-align:center;filter:drop-shadow(0 8px 12px #0008)}#drag-ghost[hidden]{display:none}#drag-ghost img{width:100px;height:110px;object-fit:contain}#drag-ghost span{display:block;border:1px solid #d6c290;background:#182b35ed;color:#ffe3a4;font-size:10px;border-radius:12px;padding:5px;white-space:nowrap}#drag-ghost.valid span{background:#356347}.deploy-dragging{cursor:grabbing}.build-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.build-grid button{padding:8px;background:radial-gradient(ellipse at top,#587a79,#263d45);border-color:#879f8d55}.build-grid img{display:block;width:100%;height:110px;object-fit:contain}.build-grid b{font-size:12px;display:block}.build-grid small{font-size:9px;color:#d9d4b6;display:block;margin-top:5px}.card img{height:140px;width:140px;bottom:7px}.card-copy{background:linear-gradient(transparent,#152832bd);padding-top:5px}#arena:after{box-shadow:inset 0 0 70px #234a4233}#command{background:linear-gradient(#304750,#1b303b)}header{background:linear-gradient(100deg,#233b48,#2b4249)}.primary{border-radius:8px;box-shadow:0 3px 0 #927243,0 4px 9px #0003}.bench-slot.filled{box-shadow:inset 0 -2px 8px #8ec0ab22}.card{border-bottom:3px solid #a49163}.chapter{text-shadow:0 2px 6px #264132}.chapter small,.chapter>span{color:#f0f1d9}#selection img{width:76px;height:83px}#selection{bottom:89px}@media(max-width:600px){.card img{height:110px;width:110px;right:-15px;bottom:10px}.build-grid img{height:95px}.build-grid{grid-template-columns:repeat(3,1fr)}.build-grid b{font-size:10px}.build-grid small{font-size:8px}#selection img{width:57px;height:65px}}
.card .skill-mark{position:absolute;z-index:4;right:8px;top:8px;left:auto;bottom:auto;width:27px;height:27px;object-fit:cover;border:1px solid #eed7a9;border-radius:50%;background:#1b2c31;filter:drop-shadow(0 2px 4px #0008)}

/* User supplied hero portraits: preserve the full figure and let transparent cutouts blend into the card. */
.card img:not(.skill-mark){width:auto;height:100%;max-width:none;max-height:100%;object-fit:contain;object-position:center bottom;right:-4px;bottom:0;background:transparent}

/* Practice-only Blademaster skill controls inside the selected hero card. */
#selection .selection-copy{min-width:150px}
#selection .skill-tests{display:flex;gap:6px;margin-top:7px}
#selection .skill-tests button{margin:0;min-height:29px;padding:5px 8px;border-color:#d3a85d88;background:linear-gradient(135deg,#624b2d,#26363a);color:#f4dfb6;font-size:9px}
@media(max-width:600px){#selection .selection-copy{min-width:120px}#selection .skill-tests{gap:4px;margin-top:5px}#selection .skill-tests button{min-height:26px;padding:4px 6px;font-size:8px}}

/* Blademaster's combat skill charges on landed attacks and stays visible in the selected-hero HUD. */
#selection .blade-skill{flex:1 1 170px;min-width:145px;max-width:230px;margin:7px 0 2px;padding:7px 9px;border:1px solid #d9b66a66;border-radius:7px;background:linear-gradient(100deg,#322d22dd,#172a30e8);box-shadow:inset 0 0 16px #ffce5910}
#selection .blade-skill-label{display:flex;justify-content:space-between;align-items:center;color:#f2d69a;font-size:10px;letter-spacing:.04em}
#selection .blade-skill-label b{font-size:9px;color:#fff1cb}
#selection .blade-skill-track{height:7px;margin-top:6px;border-radius:8px;overflow:hidden;background:#09171d;border:1px solid #d4c59c35}
#selection .blade-skill-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b76037 0%,#f1b64e 70%,#fff0ae 100%);box-shadow:0 0 9px #f7b74d88;transition:width .18s ease-out}
#selection .blade-skill[aria-valuenow="100"] .blade-skill-track i{background:linear-gradient(90deg,#46aa91,#a5ffe1);box-shadow:0 0 12px #7effdcaa}
#selection .blade-skill small{display:block;margin-top:4px;color:#b6c4bd;font-size:8px;white-space:nowrap}
@media(max-width:600px){#selection .blade-skill{min-width:128px;max-width:180px;margin:5px 0 1px;padding:6px 7px}#selection .blade-skill small{font-size:7px}}
/* Classic Warcraft III MDX heroes use their own transparent WebGL surface so the post-processing canvas stays isolated. */
.classic-war3-hero-overlay{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:0;pointer-events:none;opacity:1;mix-blend-mode:normal}
.classic-war3-effects-overlay{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:2;pointer-events:none;opacity:1;mix-blend-mode:screen}

/* Warcraft III original resource and skill artwork */
.resources .gold,.resources .population{display:inline-flex;align-items:center;gap:6px}
.resources .resource-icon{width:22px;height:22px;object-fit:contain;image-rendering:auto}
.gold-cost-icon{display:inline-block;width:15px;height:15px;object-fit:contain;vertical-align:-3px;flex:none}
#level span,#refresh span{display:inline-flex;align-items:center;gap:3px}
.card .skill-mark{width:34px;height:34px;object-fit:cover;border:1px solid #d4bd8e;border-radius:3px;background:#151a1d;filter:drop-shadow(0 2px 4px #0009)}
#selection img.selected-hero-icon{width:58px;height:58px;object-fit:contain;flex:none}
#selection img.selected-skill-icon{width:38px;height:38px;object-fit:cover;flex:none;border:1px solid #d5b36c;border-radius:4px;box-shadow:0 2px 8px #0008}
#selection .skill-summary{color:#f0d49b}
.blood-mage-skills{display:flex;flex-wrap:wrap;gap:4px 8px;margin:4px 0 7px;color:#ffd08b;font-size:.72rem;line-height:1.35}
.blood-mage-skills span{white-space:nowrap}
@media(max-width:600px){.resources .resource-icon{width:17px;height:17px}.resources .gold,.resources .population{gap:3px}#selection img.selected-hero-icon{width:40px;height:45px}#selection img.selected-skill-icon{width:30px;height:30px}}

.card .cost img.gold-cost-icon{position:static;width:15px;height:15px;max-width:none;max-height:none;right:auto;bottom:auto;vertical-align:-3px}.build-grid small img.gold-cost-icon,.codex-grid h3 img.gold-cost-icon,#selection img.gold-cost-icon{display:inline-block;position:static;width:15px;height:15px;max-width:none;max-height:none;right:auto;bottom:auto;vertical-align:-3px;object-fit:contain}

/* Hero progression: visible skill unlocks and star-gated Warcraft-style inventory. */
#selection .selection-copy{display:flex;flex-direction:column;gap:3px;max-height:min(42vh,320px);overflow:auto;min-width:190px;padding-right:2px}
#selection .selection-copy>p{margin:1px 0;font-size:9px}
#selection .hero-backpack,#selection .hero-skills{padding:6px 7px;border:1px solid #b99b6040;border-radius:6px;background:#101e25a8}
#selection .panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#f0d49b;font-size:9px}
#selection .panel-heading small{font-size:8px;color:#aebcb5;white-space:nowrap}
#selection .inventory-slots{display:grid;grid-template-columns:repeat(6,28px);gap:4px;margin-top:5px}
#selection .item-slot{width:28px;height:28px;min-height:0;padding:0;display:grid;place-items:center;border-radius:4px;font-size:13px;color:#bca56f;background:linear-gradient(145deg,#4a4232,#17262d);border:1px solid #cfb77b77;box-shadow:inset 0 0 7px #0008}
#selection .item-slot.locked{color:#6f7772;background:linear-gradient(145deg,#202c30,#131d20);border-color:#82918d33;font-size:10px}
#selection .learned-skill-list{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
#selection .learned-skill{display:inline-flex;align-items:center;gap:4px;padding:3px 5px;border:1px solid #d4ae5f66;border-radius:4px;background:#5b472355;color:#f8d997;font-size:8px;white-space:nowrap}
#selection .learned-skill img{width:18px;height:18px;object-fit:cover;border:1px solid #c9ac7055;border-radius:2px}
#selection .learned-skill em{font-style:normal;color:#eacb80;font-size:7px;margin-left:2px}
#selection .learned-skill.locked{opacity:.58;filter:saturate(.55)}
#selection .learned-skill small{flex-basis:100%;margin-left:22px;color:#bec9be;font-size:7px;line-height:1.2}
#selection .hero-level{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;align-items:center;margin-top:5px;color:#ead6aa;font-size:8px}
#selection .hero-level small{text-align:right;color:#aebfc0;font-size:7px}
#selection .hero-level i{grid-column:1/-1;height:3px;border-radius:3px;background:#070f13;overflow:hidden}
#selection .hero-level i b{display:block;height:100%;background:linear-gradient(90deg,#8b682d,#e4c077)}
#selection .hero-mana{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;align-items:center;margin:4px 0 6px;color:#a9c8d7;font-size:8px}
#selection .hero-mana small{text-align:right;color:#aebfc0;font-size:7px}
#selection .hero-mana i{grid-column:1/-1;height:3px;border-radius:3px;background:#070f13;overflow:hidden}
#selection .hero-mana i b{display:block;height:100%;background:linear-gradient(90deg,#236887,#72c6df)}
#selection .no-skills{font-size:8px;color:#aebcb5}
@media(max-width:600px){#selection .selection-copy{min-width:160px;max-height:32vh}#selection .inventory-slots{grid-template-columns:repeat(6,22px);gap:3px}#selection .item-slot{width:22px;height:22px;font-size:11px}#selection .panel-heading{gap:5px}#selection .panel-heading small{font-size:7px}}

/* Warcraft-style resource strip and red-team field markers */
.resources{align-items:center;gap:24px}
.resources>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.resources .life{color:#f1b5a6}
.resources .life i{font-style:normal;font-size:23px;line-height:1;color:#d94e43;text-shadow:0 1px 0 #862d28}
.resources .gold{color:#f0d296}
.resources .wood{color:#d9c69a}
.resources .resource-icon{width:23px;height:23px;object-fit:contain;background:transparent;filter:none;image-rendering:auto}
.gold-cost-icon{background:transparent;filter:none}
.legion-supply{display:inline-flex;align-items:center;gap:4px;margin-left:4px;color:#d4d3c5;font-size:10px;font-weight:400}
.legion-supply .resource-icon{width:17px;height:17px}
.command-top .legion-supply b{font-family:Georgia;font-size:11px;font-weight:400;margin:0}
@media(max-width:600px){.resources{gap:10px}.resources .resource-icon{width:18px;height:18px}.resources .life i{font-size:19px}.legion-supply{gap:2px;margin-left:1px}.legion-supply .resource-icon{width:14px;height:14px}}

/* Warcraft III tavern cards: original hero command portraits and matching skill badges. */
#offers .card img:not(.skill-mark):not(.gold-cost-icon){width:56px;height:56px;max-width:56px;max-height:56px;left:7px;right:auto;top:32px;bottom:auto;object-fit:contain;object-position:center;filter:none;background:transparent}
#offers .card .card-copy{left:68px;right:4px;bottom:9px;padding-top:0;background:none}
#offers .card strong{font-size:10px;line-height:1.15;white-space:normal}
#offers .card small{font-size:7px;line-height:1.15;margin-top:3px;white-space:normal}
#offers .card .skill-mark{width:30px;height:30px;right:6px;top:6px;left:auto;bottom:auto;object-fit:cover;border:1px solid #d4bd8e;border-radius:3px;background:transparent;filter:drop-shadow(0 2px 4px #0007)}
#selection img.selected-hero-icon{width:52px;height:52px;object-fit:contain;border:1px solid #d4bd8e;border-radius:4px;background:#15252c}

/* Original Warcraft III Orc resource panels and their serif counter treatment. */
.resources{gap:6px}
.resources b{margin:0;font-family:Georgia,"Palatino Linotype","Songti SC",serif;font-size:clamp(15px,1.15vw,20px);font-weight:400;line-height:1;font-variant-numeric:tabular-nums;color:#eee7d8;letter-spacing:.025em;text-shadow:1px 1px 1px #080604,-1px 0 #080604}
.resources>span{gap:5px}
.resources .gold,.resources .wood,.resources .population{width:clamp(68px,10.5vw,180px);height:42px;padding:0 10px 1px;gap:6px;background-position:center;background-size:100% 100%;background-repeat:no-repeat;color:#eee7d8}
.resources .gold{background-image:url("./assets/art/war3-original/ui/resourceGoldFrame.png")}
.resources .wood{background-image:url("./assets/art/war3-original/ui/resourceLumberFrame.png")}
.resources .population{background-image:url("./assets/art/war3-original/ui/resourceSupplyFrame.png")}
.resources .resource-icon{width:clamp(18px,1.6vw,28px);height:clamp(18px,1.6vw,28px);flex:none;object-fit:contain;background:transparent;filter:none}
.resources .gold b,.resources .wood b,.resources .population b{margin-left:auto}
.resources .life{gap:4px;margin-right:2px;color:#e6d7bc}
.resources .life i{font-size:18px;text-shadow:0 1px 2px #180806}
@media(max-width:600px){header{gap:5px;padding:0 8px}.brand{gap:6px}.brand-mark{width:22px;height:22px;line-height:19px;font-size:21px}.brand b{font-size:13px;letter-spacing:1px}.resources{gap:2px}.resources b{font-size:13px;letter-spacing:0}.resources>span{gap:3px}.resources .gold,.resources .wood,.resources .population{width:clamp(50px,15.5vw,60px);height:28px;padding:0 4px}.resources .resource-icon{width:14px;height:14px}.resources .life{gap:2px;margin-right:0}.resources .life i{font-size:15px}}
@media(max-width:390px){.resources .gold,.resources .wood,.resources .population{width:clamp(50px,15.5vw,60px);padding:0 3px}.resources .resource-icon{width:12px;height:12px}.resources b{font-size:12px}.brand b{font-size:12px}#settings{font-size:16px}}

.item-codex-link{font-size:10px;color:#c5d1ca;text-decoration:none;white-space:nowrap}.item-codex-link:hover{color:var(--gold)}
.rpg-mode-link{font-size:10px;color:#f0d49b;text-decoration:none;white-space:nowrap;border:1px solid #d9bb7266;border-radius:4px;padding:5px 8px;background:linear-gradient(110deg,#62472866,#1d303766)}.rpg-mode-link:hover{color:#fff1cf;border-color:#e5cb83}
