/* Hero select screen + "your hero" chip (logic: heroes.js). Manhwa game look: dark backdrop, the hero's theme colour
   as soft light, big showcase art, bold game font. Phone landscape first (844x390); size classes from heroes.js:
   .hs-short (height < 470), .hs-tiny (< 360), .hs-narrow (width < 640). */
#heroSel { --hc: #ff5a36; --hc2: rgba(255,90,54,.38); --hc3: rgba(255,90,54,.14); --ink: #0a0b12; --txt: #f6f3ff; --mut: #b9b3cc;
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  background: var(--ink); overflow: hidden; align-items: stretch; justify-content: flex-start; color: var(--txt); }
#heroSel[hidden] { display: none !important; }
#heroSel .hs-bg { position: absolute; inset: 0; transition: background .5s;
  background: radial-gradient(60% 75% at 30% 52%, var(--hc2), transparent 70%),
              radial-gradient(50% 40% at 85% 0%, rgba(255,255,255,.07), transparent 70%),
              linear-gradient(160deg, #161226 0%, #0c0d18 55%, #07080e 100%); }
#heroSel .hs-rays { position: absolute; left: 30%; top: 52%; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, var(--hc3) 0deg 6deg, transparent 6deg 18deg); opacity: .55;
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 60%); mask-image: radial-gradient(closest-side, #000 10%, transparent 60%);
  animation: hsSpin 60s linear infinite; pointer-events: none; }
#heroSel .hs-dots { position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.4px); background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%); mask-image: linear-gradient(115deg, transparent 45%, #000 100%); }
@keyframes hsSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

#heroSel .hs-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; }
#heroSel .hs-title { font: 400 18px/1 'Luckiest Guy', system-ui, sans-serif; letter-spacing: .06em; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
#heroSel .hs-title small { font: 700 11px/1 system-ui, sans-serif; letter-spacing: .1em; color: var(--ink); background: var(--hc); padding: 4px 8px;
  border-radius: 6px; margin-left: 8px; vertical-align: 3px; text-transform: uppercase; }
#heroSel .hs-title small:empty { display: none; }
#heroSel .hs-close { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; }
#heroSel svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

#heroSel .hs-main { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 44% 1fr; gap: 14px; align-items: center; }
#heroSel .hs-stage { position: relative; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
#heroSel .hs-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--hc2), transparent 68%); filter: blur(6px); transition: background .5s; }
#heroSel .hs-float { position: relative; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; animation: hsFloat 3.4s ease-in-out infinite; }
#heroSel .hs-art { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.6)) drop-shadow(0 0 1px rgba(255,255,255,.4));
  transition: opacity .15s, transform .15s; }
#heroSel .hs-art.out { opacity: 0; transform: translateX(-34px) scale(.96); }
#heroSel .hs-art.in { animation: hsArtIn .38s cubic-bezier(.2,.9,.25,1.15); }
#heroSel .hs-floor { position: absolute; bottom: 4%; left: 18%; right: 18%; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
#heroSel .hs-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10,11,18,.55); border: 1px solid rgba(255,255,255,.18); color: #fff; }
#heroSel .hs-nav.prev { left: 0; } #heroSel .hs-nav.next { right: 0; }
@keyframes hsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes hsArtIn { from { opacity: 0; transform: translateX(40px) scale(.94); } to { opacity: 1; transform: none; } }

#heroSel .hs-info { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#heroSel .hs-info.in > * { animation: hsInfoIn .35s ease-out both; }
#heroSel .hs-info.in > *:nth-child(2) { animation-delay: .03s; } #heroSel .hs-info.in > *:nth-child(3) { animation-delay: .06s; }
#heroSel .hs-info.in > *:nth-child(4) { animation-delay: .09s; } #heroSel .hs-info.in > *:nth-child(5) { animation-delay: .12s; }
@keyframes hsInfoIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
#heroSel .hs-name { font: 400 52px/0.95 'Luckiest Guy', system-ui, sans-serif; letter-spacing: .03em; color: var(--hc); text-transform: uppercase;
  -webkit-text-stroke: 2px rgba(0,0,0,.55); text-shadow: 0 3px 0 rgba(0,0,0,.55), 0 0 22px var(--hc2); transition: color .3s; }
#heroSel .hs-tagrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#heroSel .hs-role { font: 800 12px/1 system-ui, sans-serif; letter-spacing: .14em; color: var(--ink); background: var(--hc); padding: 5px 10px; border-radius: 4px;
  transform: skewX(-12deg); box-shadow: 3px 3px 0 rgba(0,0,0,.45); }
#heroSel .hs-mount { font-size: 12px; color: var(--mut); font-weight: 600; }
#heroSel .hs-line { font-size: 14px; font-style: italic; color: #e9e4f7; line-height: 1.25; }
#heroSel .hs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 16px; max-width: 520px; }
#heroSel .hs-stat { display: grid; grid-template-columns: 54px 1fr 50px; align-items: center; gap: 8px; font-size: 11px; }
#heroSel .hs-stat b { letter-spacing: .1em; color: var(--mut); font-weight: 800; }
#heroSel .hs-stat i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
#heroSel .hs-stat u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--hc2), var(--hc)); transition: width .45s cubic-bezier(.2,.9,.3,1); }
#heroSel .hs-stat em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
#heroSel .hs-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 2px; }
#heroSel .hs-skill { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 12px; min-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.13); }
#heroSel .hs-skill.ss { background: linear-gradient(180deg, rgba(255,211,107,.24), rgba(255,160,40,.08)); border-color: rgba(255,211,107,.7);
  box-shadow: 0 0 16px rgba(255,190,60,.28), inset 0 0 12px rgba(255,211,107,.12); }
#heroSel .hs-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,0,0,.35); color: var(--hc); border: 1px solid rgba(255,255,255,.12); }
#heroSel .hs-skill.ss .hs-ic { color: #ffd36b; border-color: rgba(255,211,107,.6); }
#heroSel .hs-sk { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#heroSel .hs-sk small { font-size: 9px; font-weight: 800; letter-spacing: .12em; color: var(--mut); }
#heroSel .hs-skill.ss small { color: #ffd36b; }
#heroSel .hs-sk b { font-size: 13px; line-height: 1.1; }
#heroSel .hs-sk span { font-size: 11px; line-height: 1.25; color: #d3cde3; }

#heroSel .hs-bottom { position: relative; flex: none; display: flex; align-items: center; gap: 12px; padding-top: 6px; }
#heroSel .hs-roster { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 6px 4px 4px; scrollbar-width: none; touch-action: pan-x; }
#heroSel .hs-roster::-webkit-scrollbar { display: none; }
#heroSel .hs-pick { flex: none; position: relative; width: 58px; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; padding: 0; }
#heroSel .hs-pick img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 35%, #3a3550, #15131f);
  border: 3px solid var(--rc); box-shadow: 0 2px 6px rgba(0,0,0,.5); transition: transform .18s, box-shadow .18s; opacity: .82; }
#heroSel .hs-pick span { font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--mut); }
#heroSel .hs-pick.on img { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 16px 3px var(--rc); }
#heroSel .hs-pick.on span { color: #fff; }
#heroSel .hs-go { flex: none; min-width: 170px; height: 58px; padding: 4px 22px 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; font: 400 26px/1 'Luckiest Guy', system-ui, sans-serif; letter-spacing: .06em;
  color: var(--ink); background: linear-gradient(180deg, #fff 0%, var(--hc) 38%, var(--hc) 70%, rgba(0,0,0,.25) 140%); border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 4px 0 rgba(0,0,0,.45), 0 0 22px var(--hc2); text-shadow: 0 1px 0 rgba(255,255,255,.4); transition: transform .1s; }
#heroSel .hs-go:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.45), 0 0 22px var(--hc2); }

/* phone landscape (short) */
#heroSel.hs-short { padding-top: 6px; padding-bottom: 6px; }
#heroSel.hs-short .hs-title { font-size: 15px; }
#heroSel.hs-short .hs-close { width: 44px; height: 44px; }
#heroSel.hs-short .hs-main { gap: 10px; grid-template-columns: 40% 1fr; }
#heroSel.hs-short .hs-info { gap: 4px; }
#heroSel.hs-short .hs-name { font-size: 36px; }
#heroSel.hs-short .hs-line { font-size: 12px; }
#heroSel.hs-short .hs-stats { gap: 3px 12px; }
#heroSel.hs-short .hs-stat { grid-template-columns: 46px 1fr 42px; font-size: 10px; }
#heroSel.hs-short .hs-stat i { height: 6px; }
#heroSel.hs-short .hs-skill { padding: 6px; gap: 6px; border-radius: 10px; }
#heroSel.hs-short .hs-ic { width: 28px; height: 28px; border-radius: 8px; }
#heroSel.hs-short .hs-ic svg { width: 18px; height: 18px; }
#heroSel.hs-short .hs-sk b { font-size: 12px; }
#heroSel.hs-short .hs-sk span { font-size: 10px; }
#heroSel.hs-short .hs-pick { width: 46px; }
#heroSel.hs-short .hs-pick img { width: 44px; height: 44px; border-width: 2.5px; }
#heroSel.hs-short .hs-pick span { display: none; }
#heroSel.hs-short .hs-go { height: 50px; min-width: 140px; font-size: 22px; padding-top: 3px; }
#heroSel.hs-short .hs-nav { width: 40px; height: 40px; }
#heroSel.hs-tiny .hs-line, #heroSel.hs-tiny .hs-mount { display: none; }
#heroSel.hs-tiny .hs-name { font-size: 30px; }
#heroSel.hs-tiny .hs-sk span { display: none; }
/* narrow (a thin desktop window): stack */
#heroSel.hs-narrow .hs-main { grid-template-columns: 1fr; grid-template-rows: 38% 1fr; }
#heroSel.hs-narrow .hs-skills { grid-template-columns: 1fr; }
#heroSel.hs-narrow .hs-stats { grid-template-columns: 1fr; }
#heroSel.hs-narrow .hs-go { min-width: 110px; }
/* big screens */
@media (min-width: 1100px) and (min-height: 640px) {
  #heroSel:not(.hs-short) .hs-name { font-size: 76px; }
  #heroSel:not(.hs-short) .hs-line { font-size: 17px; }
  #heroSel:not(.hs-short) .hs-stat { font-size: 13px; grid-template-columns: 70px 1fr 60px; }
  #heroSel:not(.hs-short) .hs-sk b { font-size: 16px; } #heroSel:not(.hs-short) .hs-sk span { font-size: 13px; }
  #heroSel:not(.hs-short) .hs-ic { width: 44px; height: 44px; }
  #heroSel:not(.hs-short) .hs-pick { width: 74px; } #heroSel:not(.hs-short) .hs-pick img { width: 68px; height: 68px; }
  #heroSel:not(.hs-short) .hs-main, #heroSel:not(.hs-short) .hs-bottom { max-width: 1400px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { #heroSel .hs-float, #heroSel .hs-rays { animation: none; } }

/* the "your hero" chip on the menu / online / lobby */
.herochip { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 14px; text-align: left; min-height: 56px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 22%, transparent), rgba(255,255,255,.05)); background-color: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); }
.herochip img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--rc); background: #1b1828; flex: none; box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 45%, transparent); }
.herochip .hc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.herochip b { font: 400 18px/1.05 'Luckiest Guy', system-ui, sans-serif; letter-spacing: .03em; color: var(--rc); text-shadow: 0 1px 0 rgba(0,0,0,.6); }
.herochip small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.herochip .hc-go { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 6px 8px; border-radius: 8px; background: rgba(255,255,255,.1); }
html.short .herochip { min-height: 46px; padding: 4px 8px 4px 4px; } html.short .herochip img { width: 38px; height: 38px; } html.short .herochip b { font-size: 15px; }

/* status marks over heroes in a match are drawn on the canvas (game.js); the HUD skill buttons get the SS glow from skills.css */

/* Settings: MUSIC / SFX volume + credits (audio.js) */
.volrow { display: grid; grid-template-columns: 52px 1fr 44px; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; min-height: 40px; }
.volrow input { width: 100%; accent-color: var(--gold); height: 28px; }
.volrow em { font-style: normal; font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); }
.panel.credits { width: min(620px, 94%); max-height: 92%; overflow-y: auto; }
#creditsList .lbl { margin: 10px 0 4px; }
.crow { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.crow b { font-weight: 700; } .crow span { color: var(--muted); grid-column: 1; } .crow small { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--gold); font-size: 10px; text-align: right; }

/* AIM range fan (sim.js AIM): a small quarter circle with the hero's range lit */
#heroSel .hs-stat.hs-aim i { height: 26px; width: 26px; background: none; box-shadow: none; overflow: visible; }
#heroSel .hs-stat.hs-aim svg { width: 26px; height: 26px; display: block; overflow: visible; }
#heroSel .hs-stat.hs-aim .q { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.3); stroke-width: .8; }
#heroSel .hs-stat.hs-aim .w { fill: var(--hc2); stroke: var(--hc); stroke-width: 1.2; stroke-linejoin: round; }
#heroSel .hs-stat.hs-aim .e { stroke: #fff2c0; stroke-width: 1.3; stroke-linecap: round; }
#heroSel.hs-short .hs-stat.hs-aim i, #heroSel.hs-short .hs-stat.hs-aim svg { height: 18px; width: 18px; }

/* HERO SKIN picker under the big picture (own hero only; heroes.js renderSkins): DEFAULT + owned skins, "+n SHOP" */
#heroSel .hs-skins { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 2; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 2px; }
#heroSel .hs-skins[hidden] { display: none; }
#heroSel .hs-skl { font: 800 9px/1 system-ui, sans-serif; letter-spacing: .12em; color: #fff; background: rgba(10,11,18,.7); padding: 3px 8px;
  border-radius: 6px; border: 1px solid rgba(255,255,255,.18); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#heroSel .hs-skrow { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 3px; scrollbar-width: none; touch-action: pan-x; }
#heroSel .hs-skrow::-webkit-scrollbar { display: none; }
#heroSel .hs-sk1 { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background: rgba(10,11,18,.7); border: 2px solid rgba(255,255,255,.3); }
#heroSel .hs-sk1.tier-normal { border-color: #7fa6dc; } #heroSel .hs-sk1.tier-epic { border-color: #a65cff; } #heroSel .hs-sk1.tier-legend { border-color: #f3b21b; }
#heroSel .hs-sk1 img { width: 40px; height: 40px; object-fit: contain; }
#heroSel .hs-sk1:first-child img { object-fit: cover; border-radius: 8px; }
#heroSel .hs-sk1.on { border-color: #fff; box-shadow: 0 0 0 2px var(--hc), 0 0 12px var(--hc); }
#heroSel .hs-sk1.more { background: linear-gradient(180deg, #ffd84f, #f3a51b); border-color: #fff4b8; color: #3a1d00; display: flex; flex-direction: column; gap: 0; }
#heroSel .hs-sk1.more b { font: 15px/1 'Luckiest Guy', system-ui, sans-serif; } #heroSel .hs-sk1.more span { font: 800 8px/1 system-ui, sans-serif; letter-spacing: .08em; }
