/* Home: a splash hero with the next step, then a 12-column grid. With a player: rank, work on next and last games (4/4/4),
   then their pool (8) and the patch (4). Without one: the strongest champions per role (12) and the patch at a glance (12) */
.hm-wrap { gap: var(--space-10); }
.hm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--grid-gap); align-items: stretch; }
.hm-you, .hm-improve, .hm-games { grid-column: span 4; }
.hm-pool { grid-column: span 8; }
.hm-patch { grid-column: span 4; }
.hm-strong-card, .hm-patch.wide { grid-column: 1 / -1; }

.hm-card { padding: 0; gap: 0; background: linear-gradient(180deg, rgb(255 255 255 / .025), transparent 120px), var(--surface-1); animation: rise var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.hm-card > .panel-head { height: 52px; padding: 0 var(--space-7); border-bottom: 1px solid var(--hairline); }
.hm-card > .panel-head h3 { font: 600 var(--fs-lg)/1 var(--font-display); letter-spacing: .01em; text-transform: none; color: var(--text-1); }
.hm-head { display: flex; align-items: center; gap: var(--space-7); min-width: 0; }
.hm-body { flex: 1; display: flex; flex-direction: column; gap: var(--space-7); padding: var(--space-7); min-width: 0; }
.hm-link { font: 600 var(--fs-sm)/1 var(--font-ui); color: var(--text-2); text-decoration: none; white-space: nowrap; }
.hm-link:hover, .hm-link:focus-visible { color: var(--amber); }
.hm-elo { display: inline-flex; align-items: center; gap: var(--space-3); font: 600 var(--fs-xs)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; cursor: default; }
.hm-elo-emblem { --emblem: 20px; }
.hm-body .pt-loading { display: flex; flex-direction: column; gap: var(--space-6); }
.hm-body .pt-loading .skel.line:nth-child(1) { width: 60%; }
.hm-body .pt-loading .skel.line:nth-child(2) { width: 85%; }
.hm-body .pt-loading .skel.line:nth-child(3) { width: 40%; }

/* one empty state: icon, title, a line, the next step */
.hm-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-9) var(--space-7); text-align: center; }
.hm-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-2); border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline-strong); color: var(--text-3); }
.hm-empty-icon .ui-svg { width: 22px; height: 22px; }
.hm-empty-title { margin: 0; font: 600 var(--fs-lg)/1.2 var(--font-display); color: var(--text-1); }
.hm-empty-line { margin: 0; max-width: 300px; font: 500 var(--fs-md)/1.45 var(--font-ui); color: var(--text-3); }
.hm-empty .button { margin-top: var(--space-4); height: 34px; }

/* ---------- the hero ---------- */
.hm-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 300px; padding: var(--space-10) 0 var(--space-4); }
.hm-hero.is-player { min-height: 220px; }
.hm-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--space-9));
  bottom: -64px;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: radial-gradient(700px 320px at 22% 0%, color-mix(in oklch, var(--amber) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.hm-hero.has-splash::before {
  background: var(--splash) right 10% top 18% / min(1600px, 110vw) auto no-repeat;
  opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 62%), linear-gradient(0deg, transparent, #000 55%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 18%, #000 62%), linear-gradient(0deg, transparent, #000 55%);
  mask-composite: intersect;
  animation: hm-splash-in 900ms var(--ease-out) both;
}
@keyframes hm-splash-in { from { opacity: 0; scale: 1.04; } }
.hm-hero-text { display: flex; flex-direction: column; gap: var(--space-6); max-width: 680px; min-width: 0; }
.hm-hero-title { margin: 0; font: 700 var(--fs-hero)/1 var(--font-display); letter-spacing: -.005em; color: var(--text-1); text-shadow: 0 2px 24px rgb(0 0 0 / .55); text-wrap: balance; }
.hm-hero-line { margin: 0; font: 500 var(--fs-lg)/1.5 var(--font-ui); color: var(--text-2); }
.hm-hero-links { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-9); margin-top: var(--space-2); }

/* the hero search: the one hextech frame on the page, gold hairline and cut corners */
.hm-search { --cut: 10px; position: relative; display: flex; align-items: center; width: min(600px, 100%); height: 56px; margin-top: var(--space-4); padding: 0 var(--space-3) 0 var(--space-7); background: linear-gradient(180deg, color-mix(in oklch, var(--surface-2) 92%, transparent), color-mix(in oklch, var(--surface-1) 92%, transparent)); clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); backdrop-filter: blur(8px); }
.hm-search::before { content: ""; position: absolute; inset: 0; padding: 1px; background: linear-gradient(90deg, color-mix(in oklch, var(--amber) 80%, transparent), color-mix(in oklch, var(--amber) 25%, transparent) 60%, color-mix(in oklch, var(--amber) 55%, transparent)); clip-path: inherit; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hm-search:focus-within { box-shadow: 0 0 40px -10px color-mix(in oklch, var(--amber) 60%, transparent); }
.hm-search-icon { display: flex; color: var(--amber); }
.hm-search-icon .ui-svg { width: 18px; height: 18px; }
.hm-search-input { flex: 1; min-width: 0; height: 100%; padding: 0 var(--space-6); border: 0; outline: 0; background: transparent; color: var(--text-1); font: 500 16px/1 var(--font-ui); }
.hm-search-input::placeholder { color: var(--text-3); }
.hm-search-region { flex: none; height: 32px; margin-right: var(--space-4); padding: 0 var(--space-6); border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-2); font: 600 var(--fs-xs)/1 var(--font-mono); letter-spacing: .06em; cursor: pointer; }
.hm-search-region:hover { color: var(--text-1); border-color: var(--line-3); }
.hm-search-go { flex: none; height: 40px; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); border-radius: 0; box-shadow: none; }
.hm-search-note { margin: 0; min-height: 16px; font: 500 var(--fs-sm)/1.3 var(--font-ui); color: var(--neg); }
.hm-search-note:empty { display: none; }

/* the player's hero: avatar, name, what they play, the two next steps */
.hm-hero-player { display: flex; align-items: center; gap: var(--space-9); width: 100%; min-width: 0; }
.hm-hero-avatar { position: relative; flex: none; }
.hm-hero-icon { width: 96px; height: 96px; border-radius: var(--radius-xl); box-shadow: 0 0 0 1px color-mix(in oklch, var(--amber) 55%, transparent), 0 0 0 5px color-mix(in oklch, var(--surface-0) 70%, transparent), 0 12px 32px -8px rgb(0 0 0 / .7); }
.hm-hero-level { position: absolute; left: 50%; bottom: -10px; translate: -50% 0; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--surface-0); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--amber) 55%, transparent); font: 600 var(--fs-xs)/1 var(--font-mono); color: var(--amber); }
.hm-hero-player .hm-hero-text { flex: 1; gap: var(--space-4); }
.hm-hero-name { display: flex; align-items: baseline; gap: var(--space-4); min-width: 0; font-size: 52px; }
.hm-hero-name a { min-width: 0; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-hero-name a:hover { color: var(--amber); }
.hm-hero-tag { flex: none; font: 500 var(--fs-xl)/1 var(--font-mono); color: var(--text-3); text-shadow: none; }
.hm-hero-meta > span:not(.sep) { display: inline-flex; align-items: center; gap: var(--space-3); }
.hm-hero-meta .role-svg { width: 16px; height: 16px; color: var(--text-2); }
.hm-hero-main { width: 22px; height: 22px; border-radius: var(--radius-sm); }
.hm-hero-actions { flex: none; display: flex; gap: var(--space-5); }

/* ---------- Your rank ---------- */
.hm-rank { display: flex; align-items: center; justify-content: space-between; gap: var(--space-7); }
.hm-rank-main { display: flex; align-items: center; gap: var(--space-6); min-width: 0; }
.hm-emblem { --emblem: 64px; filter: drop-shadow(0 6px 16px rgb(0 0 0 / .5)); }
.hm-rank-text { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.hm-rank-name { font: 700 var(--fs-xl)/1.1 var(--font-display); color: var(--text-1); white-space: nowrap; }
.hm-rank-name.unranked { color: var(--text-2); }
.hm-lp { font: 500 var(--fs-sm)/1 var(--font-mono); color: var(--text-3); }
.hm-lp b { font-weight: 600; font-size: var(--fs-md); color: var(--text-1); }
.hm-lp-track { display: block; width: 120px; height: 4px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; cursor: default; }
.hm-lp-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in oklch, var(--amber) 60%, transparent), var(--amber)); }

.hm-ring { --ring: 96px; position: relative; flex: none; width: var(--ring); height: var(--ring); cursor: default; }
.hm-ring svg { width: 100%; height: 100%; rotate: -90deg; }
.hm-ring circle { fill: none; stroke-width: 3.2; }
.hm-ring-loss { stroke: color-mix(in oklch, var(--loss) 70%, transparent); }
.hm-ring-win { stroke: var(--win); stroke-linecap: round; }
.hm-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); }
.hm-ring-text b { font: 700 var(--fs-xl)/1 var(--font-mono); color: var(--text-1); }
.hm-ring-text small { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-3); }

.hm-flex { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-5); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--surface-2); }
.hm-flex-emblem { --emblem: 26px; }
.hm-flex-name { font: 600 var(--fs-md)/1 var(--font-ui); color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-flex-num { font: 500 var(--fs-sm)/1 var(--font-mono); color: var(--text-2); white-space: nowrap; }
.hm-today { margin-top: auto; display: flex; align-items: center; gap: var(--space-6); min-height: 24px; padding-top: var(--space-6); border-top: 1px solid var(--hairline); }
.hm-today .skel.line { width: 90px; }
.hm-today-record { display: flex; gap: var(--space-4); font: 700 var(--fs-lg)/1 var(--font-mono); }
.hm-today-none { font: 500 var(--fs-md)/1 var(--font-ui); color: var(--text-3); }
.hm-win-text { color: var(--win); }
.hm-loss-text { color: var(--loss); }
.hm-streak { margin-left: auto; padding: var(--space-2) var(--space-5); border-radius: var(--radius-pill); font: 600 var(--fs-sm)/1.2 var(--font-mono); cursor: default; }
.hm-streak.win { background: color-mix(in oklch, var(--win) 14%, transparent); color: var(--win); }
.hm-streak.loss { background: color-mix(in oklch, var(--loss) 14%, transparent); color: var(--loss); }
.hm-you .pf-chips { margin-left: 0; }

/* ---------- Work on next ---------- */
.hm-focus { display: flex; flex-direction: column; gap: var(--space-4); cursor: default; }
.hm-focus-name { font: 700 var(--fs-xl)/1.15 var(--font-display); color: var(--text-1); }
.hm-focus-numbers { display: flex; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; }
.hm-focus-value { font: 700 var(--fs-2xl)/1 var(--font-mono); color: var(--text-1); }
.hm-focus-value small { margin-left: var(--space-2); font: 500 var(--fs-sm)/1 var(--font-mono); color: var(--text-3); }
.hm-focus-gap { padding-bottom: var(--space-2); font: 600 var(--fs-sm)/1 var(--font-mono); color: var(--neg); }
.hm-focus-trend { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.hm-focus-trend small { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-3); }
.hm-spark { width: 96px; height: 28px; overflow: visible; }
.hm-spark-avg { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.hm-spark-line { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hm-spark-dot { fill: var(--amber); }
.hm-compare { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4) var(--space-5); margin-top: var(--space-2); }
.hm-compare-name { font: 500 var(--fs-sm)/1 var(--font-ui); color: var(--text-2); white-space: nowrap; }
.hm-compare-track { height: 8px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.hm-compare-fill { display: block; height: 100%; border-radius: inherit; background: var(--text-3); transform-origin: left; animation: hm-grow var(--dur-count) var(--ease-out) both; animation-delay: 300ms; }
.hm-compare-fill.you { background: var(--amber); }
.hm-compare-fill.up { background: transparent; box-shadow: inset 0 0 0 1px var(--text-3); }
.hm-skel-title { width: 70%; height: 22px; }
.hm-skel-value { width: 40%; height: 34px; }
.hm-skel-bar { grid-column: 1 / -1; height: 8px; }
.hm-skel-bar:nth-child(2) { width: 80%; }
.hm-skel-bar:nth-child(3) { width: 60%; }
@keyframes hm-grow { from { scale: 0 1; } }
.hm-compare-value { font: 600 var(--fs-sm)/1 var(--font-mono); color: var(--text-1); text-align: right; white-space: nowrap; }
.hm-focus-tip { margin: 0; padding: var(--space-5) var(--space-6); border-left: 2px solid var(--amber); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: color-mix(in oklch, var(--amber) 6%, var(--surface-2)); font: 500 var(--fs-md)/1.45 var(--font-ui); color: var(--text-2); }
.hm-im-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.hm-im-item { display: flex; align-items: baseline; gap: var(--space-5); padding: var(--space-5) 0; border-bottom: 1px solid var(--hairline); cursor: default; }
.hm-im-name { flex: 1; min-width: 0; font: 500 var(--fs-md)/1.2 var(--font-ui); color: var(--text-2); }
.hm-im-values { display: inline-flex; align-items: baseline; gap: var(--space-4); font: 500 var(--fs-sm)/1 var(--font-mono); color: var(--text-3); white-space: nowrap; }
.hm-im-values b { font-weight: 600; color: var(--neg); }
.hm-im-pattern { margin: 0; display: flex; align-items: center; gap: var(--space-4); font: 500 var(--fs-md)/1.4 var(--font-ui); color: var(--text-2); }
.hm-im-pattern .ui-svg { flex: none; width: 14px; height: 14px; color: var(--neg); }
.hm-im-pattern b { font-family: var(--font-mono); color: var(--text-1); }

/* ---------- Last games ---------- */
.hm-form { display: inline-flex; align-items: center; gap: var(--space-4); font: 600 var(--fs-sm)/1 var(--font-mono); cursor: default; }
.hm-form-marks { display: flex; gap: 2px; margin-right: var(--space-2); }
.hm-form-marks span { width: 5px; height: 16px; border-radius: 1px; background: var(--loss); }
.hm-form-marks span.win { background: var(--win); }
.hm-games .hm-body { gap: var(--space-4); }
.hm-games-list { display: flex; flex-direction: column; gap: var(--space-3); }
.hm-game { --result: var(--text-4); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto auto; align-items: center; gap: var(--space-6); min-height: 52px; padding: var(--space-3) var(--space-6) var(--space-3) var(--space-5); border-radius: var(--radius-md); background: linear-gradient(90deg, color-mix(in oklch, var(--result) 12%, var(--surface-2)), var(--surface-2) 45%); box-shadow: inset 3px 0 0 var(--result); color: inherit; text-decoration: none; animation: rise var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--i) * 40ms + 300ms); }
a.hm-game:hover, a.hm-game:focus-visible { background: linear-gradient(90deg, color-mix(in oklch, var(--result) 18%, var(--surface-3)), var(--surface-3) 45%); }
.hm-game.win { --result: var(--win); }
.hm-game.loss { --result: var(--loss); }
.hm-game.skel-row { display: flex; align-items: center; }
.hm-game-icon { width: 36px; height: 36px; border-radius: var(--radius-md); }
.hm-game-info { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.hm-game-result { font: 700 var(--fs-md)/1 var(--font-display); color: var(--result); }
.hm-game-when { font: 500 var(--fs-xs)/1 var(--font-ui); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-game-stat { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); font: 600 var(--fs-md)/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-1); white-space: nowrap; }
.hm-game-stat small { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-3); }
.hm-game-stat .neg-text { color: var(--loss); }
.hm-more { align-self: flex-start; font: 600 var(--fs-sm)/1 var(--font-ui); color: var(--text-2); text-decoration: none; }
.hm-more:hover { color: var(--amber); }

/* ---------- Your pool ---------- */
.hm-pool-rows { display: flex; flex-direction: column; }
.hm-pool-row { display: grid; grid-template-columns: minmax(140px, 1fr) 18px 112px 28px 88px 64px 96px; align-items: center; gap: var(--space-7); min-height: 52px; padding: 0 var(--space-5); margin: 0 calc(var(--space-5) * -1); border-radius: var(--radius-md); cursor: pointer; font: 600 var(--fs-md)/1 var(--font-mono); font-variant-numeric: tabular-nums; animation: rise var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--i) * 40ms + 300ms); }
.hm-pool-row + .hm-pool-row:not(.hm-pool-head) { box-shadow: inset 0 1px 0 var(--hairline); }
.hm-pool-row:hover { background: color-mix(in oklch, var(--amber) 5%, var(--surface-2)); box-shadow: none; }
.hm-pool-row:hover + .hm-pool-row { box-shadow: none; }
.hm-pool-row > :nth-child(n + 3) { justify-self: end; }
.hm-pool-row > :nth-child(4) { justify-self: center; }
.hm-pool-head { min-height: 28px; cursor: default; animation: none; }
.hm-pool-head:hover { background: none; }
.hm-pool-head .sublabel { font: 600 var(--fs-xs)/1 var(--font-mono); letter-spacing: .08em; }
.hm-pool-head .sublabel:first-child { justify-self: start; }
.hm-pool-champ { min-width: 0; color: inherit; text-decoration: none; }
.hm-pool-champ .champ-cell { --cell-icon: 36px; }
.hm-pool-champ:hover .cell-name, .hm-pool-champ:focus-visible .cell-name { color: var(--amber); }
.hm-pool-you { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); white-space: nowrap; cursor: default; }
.hm-pool-you small { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-3); }
.hm-record { display: flex; width: 64px; height: 3px; gap: 1px; border-radius: var(--radius-pill); overflow: hidden; }
.hm-record-win { background: var(--win); }
.hm-record-loss { background: var(--loss); }
.hm-pool-rate { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); cursor: default; }
.hm-rate-bar { position: relative; display: block; width: 64px; height: 3px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.hm-rate-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pct); border-radius: inherit; background: var(--amber); }
.hm-counters { display: flex; gap: var(--space-2); }
.hm-counter { display: flex; }
.hm-counter-pic { width: 28px; height: 28px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--neg) 35%, transparent); }
.hm-counter:hover .hm-counter-pic, .hm-counter:focus-visible .hm-counter-pic { box-shadow: 0 0 0 1px var(--neg); }
.hm-changed { display: flex; color: var(--amber); }
.hm-changed .ui-svg { width: 14px; height: 14px; }
.hm-changed-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); margin-top: auto; padding-top: var(--space-7); border-top: 1px solid var(--hairline); font: 500 var(--fs-md)/1.3 var(--font-ui); color: var(--text-3); }
.hm-changed-line > .ui-svg { width: 14px; height: 14px; color: var(--pos); }
.hm-changed-line.has-changes { color: var(--text-1); }
.hm-changed-line.has-changes > .ui-svg { color: var(--amber); }
.hm-thing { display: inline-flex; align-items: center; gap: var(--space-4); height: 30px; padding: 0 var(--space-5) 0 var(--space-2); border-radius: var(--radius-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline-strong); font: 600 var(--fs-sm)/1 var(--font-ui); color: var(--text-1); text-decoration: none; }
.hm-thing:hover, .hm-thing:focus-visible { color: var(--amber); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--amber) 50%, transparent); }
.hm-thing-icon { width: 24px; height: 24px; border-radius: 50%; }

/* strong picks the player doesn't play yet, under a short pool */
.hm-ideas { display: flex; flex-direction: column; gap: var(--space-5); margin-top: auto; padding-top: var(--space-7); }
.hm-ideas-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.hm-ideas + .hm-changed-line { margin-top: 0; }

/* ---------- Patch at a glance ---------- */
.hm-glance { display: flex; flex-direction: column; gap: var(--space-8); }
.hm-glance.wide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.hm-glance-side { display: flex; flex-direction: column; gap: var(--space-8); }
.hm-glance-top { display: flex; flex-direction: column; gap: var(--space-3); }
.hm-glance-number { font: 700 56px/.9 var(--font-display); letter-spacing: -.01em; background: linear-gradient(180deg, var(--text-1) 30%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-glance-sub { font: 500 var(--fs-sm)/1.3 var(--font-ui); color: var(--text-3); }
.hm-glance-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--hairline); }
.hm-glance-stats > span { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6) var(--space-5); }
.hm-glance-stats > span + span { border-left: 1px solid var(--hairline); }
.hm-glance-stats b { font: 700 var(--fs-xl)/1 var(--font-mono); color: var(--text-1); }
.hm-glance-stats small { font: 600 var(--fs-xs)/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.hm-glance-stats .up b { color: var(--pos); }
.hm-glance-stats .down b { color: var(--neg); }
.hm-riot { display: flex; flex-direction: column; gap: var(--space-5); }
.hm-riot-chips { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hm-riot-chip { --edge: var(--hairline-strong); display: flex; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--edge); transition: transform var(--dur-fast) var(--ease-out); }
.hm-riot-chip.up { --edge: color-mix(in oklch, var(--pos) 70%, transparent); }
.hm-riot-chip.down { --edge: color-mix(in oklch, var(--neg) 70%, transparent); }
.hm-riot-chip:hover, .hm-riot-chip:focus-visible { transform: translateY(-2px); --edge: var(--amber); }
.hm-riot-pic { width: 34px; height: 34px; border-radius: var(--radius-md); }
.hm-patch-list { display: flex; flex-direction: column; min-width: 0; }
.hm-list-label { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-4); font: 600 var(--fs-xs)/1 var(--font-mono); letter-spacing: .08em; }
.hm-list-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.hm-list-label.up { color: var(--pos); }
.hm-list-label.down { color: var(--neg); }
.hm-patch-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 48px; grid-template-rows: auto auto; align-items: center; gap: var(--space-2) var(--space-5); padding: var(--space-4) var(--space-4); margin: 0 calc(var(--space-4) * -1); border-radius: var(--radius-md); color: inherit; text-decoration: none; font: 600 var(--fs-sm)/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.hm-patch-row + .hm-patch-row { box-shadow: inset 0 1px 0 var(--hairline); }
.hm-patch-row:hover, .hm-patch-row:focus-visible { background: color-mix(in oklch, var(--amber) 5%, var(--surface-2)); box-shadow: none; }
.hm-patch-icon { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: var(--radius-md); }
.hm-patch-name { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.hm-patch-name b { font: 600 var(--fs-md)/1.1 var(--font-ui); color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-patch-row:hover .hm-patch-name b { color: var(--amber); }
.hm-patch-delta { justify-self: end; }
.hm-patch-row > .zero-text { justify-self: end; }
.hm-patch-row .hm-shift { grid-column: 2 / -1; grid-row: 2; }
.hm-patch-row > :last-child { grid-column: 4; grid-row: 1; justify-self: end; }
.hm-rate { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.hm-before { color: var(--text-3); font-weight: 500; }
.hm-to { color: var(--text-4); }

/* the move on a 44-56% scale: a ghost tick where the rate was, the bar to where it is */
.hm-shift { position: relative; display: block; height: 4px; border-radius: var(--radius-pill); background: var(--surface-3); }
.hm-shift-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--text-4); }
.hm-shift-fill { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: var(--text-3); }
.hm-shift.up .hm-shift-fill { background: var(--pos); }
.hm-shift.down .hm-shift-fill { background: var(--neg); }
.hm-shift-was { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--text-3); }
.hm-shift-dot { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--text-1); box-shadow: 0 0 0 2px var(--surface-1); }

/* ---------- Strongest this patch: five roles, three art-backed tiles each ---------- */
.hm-strong { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-7); }
.hm-strong-col { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.hm-strong-role { display: flex; align-items: center; gap: var(--space-4); padding-bottom: var(--space-3); font: 600 var(--fs-md)/1 var(--font-display); color: var(--text-2); text-decoration: none; }
.hm-strong-role .role-svg { width: 18px; height: 18px; color: var(--text-3); }
.hm-strong-role:hover, .hm-strong-role:hover .role-svg { color: var(--amber); }
.hm-strong-tile { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: var(--space-5); min-height: 72px; padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); color: inherit; text-decoration: none; animation: rise var(--dur-slow) var(--ease-out) both; animation-delay: calc(var(--i) * 25ms + 200ms); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-fast); }
.hm-strong-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--art) center 18% / cover no-repeat; opacity: .38; transition: scale var(--dur-slow) var(--ease-out), opacity var(--dur-base); }
.hm-strong-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in oklch, var(--surface-2) 55%, transparent)); }
.hm-strong-tile:hover, .hm-strong-tile:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--amber) 45%, transparent), 0 10px 24px -12px rgb(0 0 0 / .8); }
.hm-strong-tile:hover::before { scale: 1.05; opacity: .55; }
.hm-strong-col .hm-strong-tile:nth-of-type(1) { min-height: 88px; box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--amber) 22%, transparent); }
.hm-strong-col .hm-strong-tile:nth-of-type(1)::before { opacity: .55; }
.hm-strong-icon { width: 44px; height: 44px; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--hairline-strong); }
.hm-strong-text { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.hm-strong-text b { font: 600 var(--fs-md)/1.1 var(--font-ui); color: var(--text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-strong-tile:hover .hm-strong-text b { color: var(--amber); }
.hm-strong-num { min-width: 0; overflow: hidden; display: flex; align-items: baseline; gap: var(--space-4); font: 600 var(--fs-sm)/1 var(--font-mono); white-space: nowrap; }
.hm-strong-num small { overflow: hidden; text-overflow: ellipsis; font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-3); }
.hm-strong-text .hm-rate-bar { width: 100%; max-width: 88px; }
.hm-strong-skel { height: 72px; border-radius: var(--radius-lg); }

@media (max-width: 1180px) {
  .hm-you, .hm-improve { grid-column: span 6; }
  .hm-games { grid-column: 1 / -1; }
  .hm-pool, .hm-patch { grid-column: 1 / -1; }
  .hm-strong { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-glance.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hm-glance.wide .hm-glance-side { grid-column: 1 / -1; }
}
@media (max-width: 840px) {
  .hm-grid { gap: var(--space-7); }
  .hm-you, .hm-improve { grid-column: 1 / -1; }
  .hm-hero-title { font-size: 40px; }
  .hm-hero-player { flex-wrap: wrap; }
  .hm-hero-name { font-size: 36px; }
  .hm-strong, .hm-ideas-tiles { grid-template-columns: minmax(0, 1fr); }
  .hm-glance.wide { grid-template-columns: minmax(0, 1fr); }
  .hm-pool-row { grid-template-columns: minmax(0, 1fr) 18px 96px 28px 80px; }
  .hm-pool-row > :nth-child(6), .hm-pool-row > :nth-child(7) { display: none; }
}
