/* SVG trim is the top background layer, so panel fills cannot hide the gold. */
.hud{--hud-gold:#d5b46c;--hud-skill:64px;font-family:var(--sans)}
.hud button:focus-visible{outline:2px solid #a5e4ff;outline-offset:3px}
.match-top{z-index:8;height:85px;padding:0;display:block;background:linear-gradient(#03081180,transparent);pointer-events:none}
.match-brand{display:none}
.scoreboard{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:330px;height:66px;min-width:0;display:grid;grid-template-columns:52px 30px 52px 1fr;gap:10px;padding:8px 27px 13px;background:url('./assets/ui/score-frame.svg') center/100% 100% no-repeat;border:0;box-shadow:none;filter:drop-shadow(0 5px 7px #0009)}
.scoreboard>span:not(.score-divider){min-width:0;font:700 27px/1 var(--sans);text-align:center;text-shadow:0 2px 3px #0008}
.scoreboard .team-blue{color:#39bcff}.scoreboard .team-red{color:#ff5366}.scoreboard>svg{width:25px;height:25px;color:#e4c57b}.score-divider{display:none}
.scoreboard time{padding-left:14px;border-left:1px solid #9d7b3d70;color:#e2e7eb;font:600 15px var(--sans);letter-spacing:.5px}
.match-actions{position:absolute;top:15px;right:17px;display:flex;gap:4px;pointer-events:auto}
.match-actions .icon-button{width:39px;height:39px;padding:7px;border:0;color:#b6c6d5;background:url('./assets/ui/ability-frame.svg') center/100% 100% no-repeat,#091723;box-shadow:0 3px 8px #0006}
.match-actions .icon-button svg{width:19px;height:19px}.match-actions .icon-button:hover{color:#ffe5a6;filter:brightness(1.25)}

/* Secondary player summary and allied portraits. */
.top-player-panel{position:absolute;z-index:6;top:13px;left:16px;width:392px;height:97px;min-height:0;display:grid;grid-template-columns:70px minmax(0,1fr) 102px;align-items:center;gap:9px;padding:9px 15px 11px 11px;background:url('./assets/ui/hero-status-frame.svg') center/100% 100% no-repeat;filter:drop-shadow(0 4px 7px #0009);pointer-events:auto}
.brief-portrait,.team-slot-avatar,.hud-portrait{position:relative;display:grid;place-items:center;border:0;border-radius:50%;background:url('./assets/ui/portrait-frame.svg') center/100% 100% no-repeat}
.brief-portrait{width:70px;height:70px}.brief-portrait canvas{width:56px;height:56px;border-radius:50%;background:#0b1723}
.brief-portrait>span,.team-slot-avatar>span,.hud-portrait>span{position:absolute;z-index:3;display:grid;place-items:center;border-radius:50%;border:2px solid #c5a35a;background:radial-gradient(circle at 35% 20%,#263c50,#050b11 80%);color:#f7e6ba;box-shadow:0 2px 4px #000c;font:600 12px/1 var(--sans)}
.brief-portrait>span{right:-1px;bottom:-1px;width:25px;height:25px}
.brief-resources{display:grid;gap:4px;min-width:0}.brief-resources>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 11px var(--serif);letter-spacing:.5px;color:#e7cf95}
.resource-bar{position:relative;overflow:hidden;background:#02080e;border:1px solid #455059}.resource-bar i{min-width:0;max-width:100%}
.health i{background:linear-gradient(#44d84d 0%,#139d26 42%,#0d7b1c 100%);box-shadow:inset 0 1px #b5ff7299}
.mana i{background:linear-gradient(#30b8ff 0%,#0983cd 52%,#075394 100%);box-shadow:inset 0 1px #a2e4ff99}
.resource-bar span{color:#f4f7f3;font:600 12px/1 var(--sans);text-shadow:0 1px 2px #000,0 0 3px #000}
.brief-resources .resource-bar{height:14px;margin:0}.brief-resources .resource-bar span{font-size:10px}.brief-resources>small{color:#a5b5c4;font-size:10px;letter-spacing:1px}
.top-player-panel .hud-stats{display:grid;grid-template-columns:1fr 1fr;gap:5px 8px;width:auto;min-width:0;margin:0;padding:3px 0 3px 9px;border:0;border-left:1px solid #b18a4470}
.hud-stats span{min-width:0;display:flex;justify-content:space-between;gap:4px;align-items:center;font-size:10px}.hud-stats small{width:auto;color:#ac985f;font-size:8px;letter-spacing:0}.hud-stats b{color:#d8e2e8;font-weight:500}
.objective{z-index:5;top:123px;left:18px;width:310px;min-height:58px;padding:10px 15px;gap:10px;border:0;background:url('./assets/ui/objective-frame.svg') center/100% 100% no-repeat;filter:drop-shadow(0 3px 5px #0009)}
.objective>svg{width:27px;height:27px;color:#d6b56b}.objective span{color:#e8cc89;font-size:9px;letter-spacing:.6px}.objective small{margin-top:4px;color:#c1ccd7;font-size:11px}
.match-stats{left:auto;bottom:auto;right:19px;top:65px;display:flex;gap:14px;padding:6px 8px;background:#060e19c9;border:0;color:#d9e3e8;font-size:11px}
.match-stats svg{color:#bd9c55}.match-stats>span:last-child{font-size:9px;letter-spacing:.5px}
.team-roster{position:absolute;z-index:5;top:201px;left:17px;width:142px;max-height:calc(100dvh - 440px);display:grid;gap:9px;overflow:auto;scrollbar-width:none;pointer-events:none}.team-roster:empty{display:none}
.team-slot{display:flex;align-items:center;gap:6px;height:54px;padding:0;background:linear-gradient(90deg,#06111eda,#06111e88 75%,transparent)}
.team-slot-avatar{flex:0 0 51px;width:51px;height:51px}.team-slot-avatar canvas{width:40px;height:40px;border-radius:50%}.team-slot-avatar>span{right:0;bottom:-1px;width:19px;height:19px;font-size:9px;border-width:1px}
.team-slot-info{min-width:0;flex:1;padding-right:4px}.team-slot-info>b{display:block;color:#e6edf0;font-size:10px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.team-slot-info>small{display:none}
.team-slot-health{height:5px;margin-top:6px;background:#020a10;border:1px solid #9a8249}.team-slot-health i{display:block;height:100%;background:linear-gradient(#77de6a,#1c9d3e);transition:width .12s}.team-slot.dead{filter:grayscale(1);opacity:.5}

/* Main console: portrait / QWER + DF above resources / six item slots. */
.bottom-hud{position:absolute;z-index:8;left:50%;right:auto;bottom:18px;transform:translateX(-50%);width:760px;max-width:calc(100vw - 30px);height:178px;min-height:0;max-height:none;display:grid;grid-template-columns:128px minmax(0,1fr) 148px;align-items:center;gap:13px;padding:13px 20px 12px 10px;background:url('./assets/ui/hud-bottom.svg') center/100% 100% no-repeat;border:0;box-shadow:none;filter:drop-shadow(0 6px 10px #000b);overflow:visible;pointer-events:auto}
.champion-status{width:auto;min-width:0;height:145px;display:flex;flex-direction:column;justify-content:center;gap:7px;border:0;padding:0}
.hud-portrait{flex:0 0 auto;width:122px;height:122px}.hud-portrait canvas{position:static;width:98px;height:98px;border-radius:50%;object-fit:cover}
.hud-portrait>span{left:auto;right:0;bottom:0;transform:none;width:33px;min-width:33px;height:33px;font-size:17px}
.status-name{display:block;text-align:center;margin:0;width:100%}.status-name strong{display:block;color:#e1c581;font:600 10px var(--serif);letter-spacing:.9px}
.status-name>span{display:block;height:0;position:absolute;left:150px;top:-18px;color:#ffdd86;font-size:10px}.status-name>#attack-stat.points{font-size:10px;letter-spacing:.5px}
.combat-controls{display:grid;grid-template-rows:72px auto 13px;align-items:center;gap:7px;min-width:0}
.combat-spells{display:flex;align-items:flex-start;justify-content:flex-start;gap:19px;min-width:0}
.ability-group{display:flex;align-items:flex-start;gap:9px;border:0;padding:0}.ability-slot{position:relative;display:block;flex:0 0 auto}
.ability-slot .ability,.ability-slot .ability.ultimate{display:grid;place-items:center;width:var(--hud-skill);height:var(--hud-skill);border:0;padding:5px;color:#ead593;background:url('./assets/ui/ability-frame.svg') center/100% 100% no-repeat;box-shadow:0 3px 5px #0009;overflow:visible}
.ability-slot .ability img{width:100%;height:100%;object-fit:cover;clip-path:polygon(6% 0,94% 0,100% 6%,100% 94%,94% 100%,6% 100%,0 94%,0 6%)}
.ability kbd{z-index:4;left:4px;bottom:-5px;transform:none;min-width:19px;height:19px;padding:1px 3px;display:grid;place-items:center;border:1px solid #a48242;background:#07101c;color:#f7e1a2;font:600 12px/1 var(--sans);box-shadow:0 2px 4px #000a}
.ability-slot .rank-pips{top:auto;bottom:-9px;left:27px;right:3px;gap:2px;z-index:3}.rank-pips i{height:3px;border:0;background:#35414b}.rank-pips i.on{background:#efcc77;box-shadow:0 0 3px #edc16b88}
.ability .cooldown{inset:5px;z-index:2;background:#030b15bb;color:#f4e7cc;font:600 25px var(--sans);text-shadow:0 1px 3px #000}
.ability.locked img{filter:grayscale(1) brightness(.55)}.ability.no-mana img{filter:grayscale(.55) brightness(.65)}
.ability-slot .level-up{top:-34px;left:50%;transform:translateX(-50%);width:34px;height:28px;clip-path:polygon(50% 0,100% 25%,100% 100%,0 100%,0 25%);border:1px solid #f4d181;background:linear-gradient(#f4dda0,#ac7c30);color:#241a0b;box-shadow:0 0 7px #e8b84c66;font:700 19px/1 var(--sans);animation:none}
.ability-slot .level-up:hover{filter:brightness(1.18)}.ability-slot .ability:hover,.ability.summoner:hover{filter:brightness(1.2)}
.summoner-group{display:flex;align-self:center;gap:7px;margin:0;padding:2px 0 0 10px;border-left:1px solid #9d7b3d70}
.ability.summoner,.ability.summoner.heal-spell{width:48px;height:50px;padding:5px;border:0;background:url('./assets/ui/ability-frame.svg') center/100% 100% no-repeat;color:#ffdc76}
.ability.summoner svg{width:30px;height:30px;filter:drop-shadow(0 0 6px #ffb43c99)}.ability.heal-spell svg{color:#75efa3;filter:drop-shadow(0 0 6px #40ee7299)}
.ability.summoner kbd{min-width:17px;height:17px;font-size:10px}.ability.summoner .cooldown{font-size:18px}
.status-details{display:grid;grid-template-columns:1fr;gap:4px;width:100%;min-width:0}.status-details .resource-bar{height:20px;margin:0;border:1px solid #a4a16d99;box-shadow:0 1px 3px #000}.status-details .mana{height:17px;border-color:#6593aa99}.status-details .resource-bar span{font-size:12px}
.global-xp{position:static;width:auto;height:13px;transform:none;padding:0;display:flex;align-items:center;gap:7px;border:0;background:none;filter:none;box-shadow:none}
.global-xp>span{color:#b8ab81;font-size:8px;white-space:nowrap}.global-xp>span b{font-weight:500}.global-xp-track{height:4px;flex:1;overflow:hidden;border:0;background:#29323a}.global-xp-track i{display:block;height:100%;background:linear-gradient(90deg,#cfaa54,#f2d585);transition:width .2s}.global-xp>small{color:#8498a7;font-size:8px;white-space:nowrap}
.inventory-section{display:block;min-width:0;padding:0 0 0 12px;border-left:1px solid #ac87486b}
.inventory-heading{display:flex;justify-content:space-between;align-items:center;color:#9dafa9;font-size:8px;letter-spacing:.8px;margin:0 0 6px}.inventory-heading kbd{color:#d8c489;border:1px solid #76623a;padding:1px 4px;font:9px var(--sans)}
.inventory{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:0 0 7px}.inventory>span{position:relative;display:grid;place-items:center;width:auto;height:37px;border:1px solid #756541;background:linear-gradient(#08131f,#02080e);box-shadow:inset 0 0 6px #000}
.inventory>span::after{position:absolute;left:3px;bottom:1px;color:#9a9b80;font-size:8px;pointer-events:none;text-shadow:0 1px #000}
.inventory>span:nth-child(1)::after{content:'1'}.inventory>span:nth-child(2)::after{content:'2'}.inventory>span:nth-child(3)::after{content:'3'}.inventory>span:nth-child(4)::after{content:'4'}.inventory>span:nth-child(5)::after{content:'5'}.inventory>span:nth-child(6)::after{content:'6'}
.inventory>span img{display:block;width:100%;height:100%;object-fit:contain}
.gold-button{width:100%;height:27px;display:flex;justify-content:center;align-items:center;gap:7px;padding:3px 7px;color:#f0d57d;border:1px solid #a08042;background:linear-gradient(#15212a,#070f19);font-size:16px}.gold-button svg{width:19px;height:19px}.gold-button b{font-weight:600}.gold-button>span{margin-left:auto;font-size:8px;letter-spacing:.5px;color:#b5b49b}

.minimap-wrap{z-index:6;top:112px;right:17px;bottom:auto;width:254px;padding:10px 11px 9px;border:0;background:url('./assets/ui/minimap-frame.svg') center/100% 100% no-repeat;box-shadow:none;filter:drop-shadow(0 5px 9px #000b)}
.minimap-title{height:22px;display:flex;padding:0 16px 5px;color:#cfb676;font:600 9px var(--sans);letter-spacing:1.4px}.minimap-title span:last-child{color:#8399a9;font:8px var(--sans);letter-spacing:.5px}
#minimap{display:block;width:100%;height:auto;aspect-ratio:280/173;border:1px solid #79633b;background:#050d16;image-rendering:auto}
#recall-button{height:28px;margin-top:4px;border:0;background:#102130;color:#bdcdd6;font-size:9px;letter-spacing:1px}#recall-button svg{width:14px;height:14px}#recall-button kbd{font:9px var(--sans);border-color:#937840}
.match-chat{z-index:5;left:18px;bottom:27px;width:330px;min-width:0;opacity:.85;transition:opacity .2s;pointer-events:auto}
.match-chat.chat-box{display:grid;grid-template-rows:auto minmax(0,auto) auto;gap:0;padding:8px 10px 9px;background:url('./assets/ui/hud-panel.svg') center/100% 100% no-repeat;border:0;filter:drop-shadow(0 3px 6px #0009)}
.match-chat .match-chat-tabs{display:flex;border-bottom:1px solid #90723b99;margin-bottom:4px}.match-chat-tabs button{padding:6px 13px;color:#8ea2b3;background:transparent;font-size:11px;border-right:1px solid #67747930}.match-chat-tabs button[aria-pressed='true']{color:#c1edff;background:linear-gradient(#0c4263,#10212f);box-shadow:inset 0 -2px #50b9e4}
.match-chat .chat-box-log{padding:5px 6px;max-height:102px;font-size:11px;line-height:1.5;scrollbar-width:thin;scrollbar-color:#897140 #091421}.match-chat .chat-box-log:empty{display:none}.match-chat .chat-box-log b{color:#58c7ef;font-weight:500}
.match-chat .chat-box-form{display:flex;margin-top:3px;border:1px solid #615535;background:#040b13}.match-chat .chat-box input{width:100%;min-width:0;height:30px;padding:6px 8px;border:0;color:#d1dce5;background:transparent;font-size:11px}.match-chat .chat-box-form>button{width:34px;flex-shrink:0;background:#122536;color:#6ccaf0;font-size:17px}
.match-chat:focus-within,.match-chat:hover,.match-chat.active{opacity:1}.control-hint{display:none}.toast{z-index:9;top:94px;font-size:13px}.announcer{z-index:10}.killfeed{z-index:5;top:335px;right:18px}.feed-entry{font-size:12px}.recall{bottom:221px;z-index:9}.respawn{z-index:9}

@media(max-width:1600px){.match-chat{bottom:212px;width:310px}}
@media(max-width:1180px){
  .top-player-panel{width:305px;grid-template-columns:64px 1fr;height:90px}.brief-portrait{width:64px;height:64px}.brief-portrait canvas{width:51px;height:51px}.top-player-panel .hud-stats{display:none}
  .scoreboard{width:296px;height:62px;grid-template-columns:42px 25px 42px 1fr;gap:7px;padding:8px 23px 13px}.scoreboard>span:not(.score-divider){font-size:25px}.scoreboard time{font-size:13px}
  .minimap-wrap{width:218px;top:104px}.objective{top:117px;width:282px}.team-roster{top:190px}.match-chat{width:280px}
}
@media(max-width:900px){
  .hud{--hud-skill:55px}.bottom-hud{width:660px;height:159px;grid-template-columns:106px minmax(0,1fr) 124px;gap:10px;padding:11px 17px 10px 9px}
  .champion-status{height:129px}.hud-portrait{width:104px;height:104px}.hud-portrait canvas{width:83px;height:83px}.hud-portrait>span{width:28px;height:28px;min-width:28px;font-size:14px}
  .combat-controls{grid-template-rows:63px auto 11px;gap:5px}.combat-spells{gap:10px}.ability-group{gap:7px}.ability.summoner,.ability.summoner.heal-spell{width:41px;height:44px}.ability.summoner svg{width:25px;height:25px}.summoner-group{gap:5px;padding-left:8px}
  .inventory>span{height:31px}.gold-button{height:24px;font-size:13px}.inventory-heading{font-size:7px;letter-spacing:0}
  .top-player-panel{width:258px;grid-template-columns:58px 1fr;left:10px;top:10px;gap:6px;padding:8px 13px 8px 9px;height:82px}.brief-portrait{width:58px;height:58px}.brief-portrait canvas{width:46px;height:46px}
  .scoreboard{width:260px;top:9px;height:58px;grid-template-columns:33px 20px 33px 1fr;gap:5px;padding:7px 21px 12px}.scoreboard>svg{width:20px;height:20px}.scoreboard>span:not(.score-divider){font-size:22px}.scoreboard time{padding-left:9px;font-size:12px}
  .match-actions{top:12px;right:12px;gap:3px}.match-actions .icon-button{width:32px;height:32px}.match-actions .icon-button svg{width:16px;height:16px}
  .objective{top:106px;left:12px;width:255px}.objective span{font-size:8px}.objective small{font-size:10px}.match-stats{right:12px;top:54px;gap:9px;font-size:10px}.match-stats>span:last-child{display:none}
  .team-roster{top:179px;left:11px;width:126px;max-height:calc(100dvh - 430px)}.minimap-wrap{top:91px;right:11px;width:194px}.match-chat{bottom:198px;left:12px;width:270px}.killfeed{top:285px;right:12px}
}
@media(max-width:820px){
  .top-player-panel{display:none}.scoreboard{left:12px;transform:none}
}
@media(max-width:680px){
  .hud{--hud-skill:46px}.top-player-panel{display:none}.scoreboard{top:8px;left:12px;transform:none;width:248px}.objective{display:none}.team-roster{top:88px;left:10px;max-height:calc(100dvh - 330px)}.minimap-wrap{top:86px;width:174px}.minimap-title{font-size:8px}
  .bottom-hud{width:540px;height:148px;bottom:10px;grid-template-columns:84px minmax(0,1fr) 100px;padding:10px 13px 9px 8px;gap:8px}.champion-status{height:116px;gap:5px}.hud-portrait{width:82px;height:82px}.hud-portrait canvas{width:66px;height:66px}.hud-portrait>span{width:25px;height:25px;min-width:25px;font-size:12px}
  .status-name strong{font-size:8px}.status-name>span{left:110px;top:-16px}.combat-controls{grid-template-rows:56px auto 11px;gap:5px}.combat-spells{gap:7px}.ability-group{gap:5px}
  .ability.summoner,.ability.summoner.heal-spell{width:33px;height:38px;padding:4px}.ability.summoner svg{width:21px;height:21px}.summoner-group{gap:3px;padding-left:6px}.ability kbd{font-size:10px;min-width:16px;height:16px}.ability-slot .rank-pips{left:22px;right:2px;gap:1px}.ability-slot .level-up{width:28px;height:24px;top:-29px;font-size:17px}
  .inventory-section{padding-left:7px}.inventory{gap:3px;margin-bottom:4px}.inventory>span{height:27px}.inventory-heading{font-size:6px;margin-bottom:4px}.inventory-heading kbd{font-size:7px}.gold-button>span{display:none}.gold-button{height:24px;font-size:13px}
  .status-details .resource-bar{height:17px}.status-details .mana{height:15px}.status-details .resource-bar span{font-size:10px}.match-chat{bottom:192px;width:236px;left:10px}.match-chat .chat-box-log{max-height:72px;font-size:10px}.match-chat .chat-box input{font-size:10px}.killfeed{top:265px}.recall{bottom:195px}
}
@media(max-width:480px){
  .hud{--hud-skill:43px}.scoreboard{left:7px;width:230px;height:55px;padding:7px 17px 11px;grid-template-columns:33px 19px 33px 1fr}.match-actions{top:11px;right:8px;gap:2px}.match-actions .icon-button{width:29px;height:29px;padding:5px}.match-actions [data-help]{display:none}.match-stats{top:52px}
  .minimap-wrap{top:82px;right:8px;width:157px;padding:9px 10px}.team-roster{width:102px}.team-slot-info>b{font-size:9px}.team-slot-avatar{width:43px;height:43px;flex-basis:43px}.team-slot-avatar canvas{width:34px;height:34px}.team-slot{height:46px;gap:4px}
  .bottom-hud{width:calc(100vw - 14px);height:190px;bottom:7px;grid-template-columns:66px minmax(0,1fr) 76px;gap:6px;padding:12px 10px 11px 7px}.champion-status{height:auto;align-self:center;gap:5px}.hud-portrait{width:66px;height:66px}.hud-portrait canvas{width:53px;height:53px}.hud-portrait>span{width:23px;height:23px;min-width:23px;font-size:11px}.status-name strong{font-size:7px;letter-spacing:.2px}.status-name>span{left:90px;top:-15px}.status-name>#attack-stat.points{font-size:9px}
  .combat-controls{grid-template-rows:auto auto 13px;gap:8px}.combat-spells{display:grid;grid-template-columns:1fr;justify-items:center;gap:10px}.ability-group{gap:4px}.ability-slot .ability{padding:4px}.ability kbd{min-width:15px;height:15px;font-size:9px;left:2px}.summoner-group{padding:0;border:0;gap:9px;justify-self:end}.ability.summoner,.ability.summoner.heal-spell{width:30px;height:32px}.ability.summoner svg{width:19px;height:19px}
  .inventory-heading{font-size:0;justify-content:flex-end}.inventory-heading kbd{font-size:8px}.inventory{grid-template-columns:repeat(2,1fr);gap:3px}.inventory>span{height:27px}.inventory-section{padding-left:5px}.gold-button{padding:2px;gap:3px;font-size:12px}.gold-button svg{width:15px}.global-xp>span{display:none}.global-xp>small{font-size:7px}
  .match-chat{width:220px;bottom:237px;left:8px}.match-chat .chat-box-log{max-height:70px}.match-chat-tabs button{padding:5px 10px;font-size:10px}.recall{bottom:230px}.toast{top:270px;font-size:11px}.killfeed{top:250px}
}
@media(max-height:560px) and (min-width:681px){.top-player-panel,.objective,.team-roster{display:none}.minimap-wrap{top:84px;width:170px}.match-chat{bottom:205px;width:250px}.match-chat .chat-box-log{max-height:60px}}
@media(max-width:360px){.hud{--hud-skill:32px}.bottom-hud{grid-template-columns:54px minmax(0,1fr) 64px}.hud-portrait{width:54px;height:54px}.hud-portrait canvas{width:43px;height:43px}.status-name strong{font-size:6px}.ability-slot .rank-pips{left:19px;gap:1px}.scoreboard{width:205px;grid-template-columns:28px 17px 28px 1fr;gap:4px}.scoreboard time{font-size:11px}.match-chat{width:205px}}
