/* Home page (index.html). Foundation components live in proto.css; this file only lays out the Home rails. */
.bf-main--flush { padding-top: 0; }
.hm-body { padding-top: 0; }

/* ---- hero */
.hm-hero { position: relative; z-index: 5; isolation: isolate; padding: clamp(40px, 7vw, 92px) 0 clamp(40px, 6vw, 76px); border-bottom: 1px solid var(--line-2); }
.hm-hero__art { position: absolute; inset: 0; z-index: -2; background: #0a131d url("/assets/bar-fight-brawl-v3-1440.webp") center 38% / cover no-repeat; filter: saturate(.95) contrast(1.02); }
.hm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(6,10,16,.97) 0%, rgba(6,10,16,.88) 40%, rgba(6,10,16,.6) 70%, rgba(6,10,16,.72) 100%),
  linear-gradient(180deg, rgba(6,10,16,.3) 0%, rgba(6,10,16,0) 38%, rgba(6,10,16,.55) 78%, var(--bg) 100%); }
.hm-hero::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 340px; height: 2px; background: linear-gradient(90deg, var(--cyan) 0 240px, rgba(60,198,244,0)); box-shadow: 0 0 18px rgba(60,198,244,.7); }
.hm-hero__in { position: relative; }
.hm-title { max-width: 18em; font: 700 clamp(2.2rem, 1rem + 3.7vw, 4.1rem)/1.04 var(--display); letter-spacing: -.02em; color: var(--text); text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.hm-title em { font-style: normal; color: var(--cyan-hi); text-shadow: 0 0 36px rgba(60,198,244,.45); }
.hm-title em.hm-amber { color: var(--amber-hi); text-shadow: 0 0 36px rgba(253,192,76,.4); }
.hm-box { margin-top: clamp(24px, 3vw, 36px); }
.hm-box .bf-onebox--hero { margin: 0; }
.hm-try { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 14px; font-size: 14px; color: var(--text-2); }
.hm-try > span { margin-right: 6px; font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hm-try a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--cyan-hi); text-decoration: none; font-weight: 500; border-bottom: 1px dashed rgba(60,198,244,.5); margin-inline: 2px; }
.hm-try a:hover { color: #fff; border-bottom-color: #fff; background: rgba(60,198,244,.1); }
.hm-pulse { display: flex; flex-wrap: wrap; gap: 14px clamp(20px, 3.4vw, 44px); margin-top: clamp(24px, 3.4vw, 40px); padding-top: 22px; border-top: 1px solid rgba(74,112,137,.45); max-width: 760px; }
.hm-pulse li { display: flex; flex-direction: column; gap: 4px; }
.hm-pulse b { font: 700 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.hm-pulse span { font: 600 12px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hm-pulse .live b { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); }
.hm-pulse .live b::before { content: ""; width: 9px; height: 9px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: bf-pulse 2.4s ease-in-out infinite; }
.hm-body > .bf-section:first-child { margin-top: var(--s-7); }

/* ---- for you: first-visit strip, my profile, recents */
.hm-strip { position: relative; padding: var(--s-5); }
.hm-strip__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.hm-strip__head .bf-eyebrow { margin-bottom: 4px; }
.hm-strip__links { display: flex; align-items: center; gap: var(--s-3); flex: none; }
.hm-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.hm-door { position: relative; display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4); background: var(--bg-2); border: 1px solid var(--line-2); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s var(--ease), background .2s; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.hm-door:hover { border-color: var(--cyan); background: var(--cyan-tint); transform: translateY(-2px); color: inherit; }
.hm-door__ico { display: grid; place-items: center; flex: none; width: 52px; height: 52px; background: var(--cyan); color: var(--on-cyan); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.hm-door__ico svg { width: 28px; height: 28px; }
.hm-door:nth-child(2) .hm-door__ico { background: var(--amber); color: var(--on-amber); }
.hm-door:nth-child(3) .hm-door__ico { background: var(--red); color: #1a0705; }
.hm-door h3 { font: 700 20px/1.2 var(--display); }
.hm-door p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.hm-me { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-5); }
.hm-me__id { display: flex; gap: var(--s-4); align-items: center; }
.hm-me__av { display: grid; place-items: center; flex: none; width: 64px; height: 64px; background: var(--cyan); color: var(--on-cyan); font: 700 30px/1 var(--display); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.hm-me h3 { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--display); }
.hm-me__facts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 8px; }
.hm-me__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.hm-recents { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- learn a position */
.hm-learn { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.hm-learn__map { padding: 12px; }
.hm-poslist { display: flex; flex-direction: column; gap: 8px; }
.hm-pos { position: relative; display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 64px; padding: 8px 14px 8px 0; background: linear-gradient(90deg, rgba(16,27,39,.9), var(--panel)); border: 1px solid var(--line-2); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.hm-pos::before { content: ""; align-self: stretch; background: var(--pc); box-shadow: 0 0 14px var(--pc); }
.hm-pos:hover, .hm-pos.is-hot { border-color: var(--pc); background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 12%, var(--panel-2)), var(--panel)); transform: translateX(3px); color: inherit; }
.hm-pos__n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.hm-pos__n b { font: 700 18px/1.2 var(--display); letter-spacing: .02em; }
.hm-pos__n small { font: 500 13px/1.3 var(--mono); color: var(--muted); }
.hm-pos__sub { grid-column: 2; margin-top: -2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.hm-pos__main { min-width: 0; }
.hm-pos__open { display: flex; align-items: center; gap: 10px; }
.hm-pos__open img { width: 40px; height: 40px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); padding: 2px; }
.hm-pos__open span { display: flex; flex-direction: column; gap: 1px; text-align: right; }
.hm-pos__open b { font: 700 18px/1 var(--display); color: var(--cyan-hi); }
.hm-pos__open small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.hm-learn__foot { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); }

/* ---- fastest builds */
.hm-boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.hm-board { display: flex; flex-direction: column; min-width: 0; }
.hm-board__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.hm-board__head img { width: 44px; height: 44px; object-fit: contain; background: var(--bg); border: 1px solid var(--line-2); padding: 3px; flex: none; }
.hm-board__head h3 { font: 700 18px/1.15 var(--display); letter-spacing: .02em; }
.hm-board__head small { display: block; margin-top: 2px; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.hm-rows { flex: 1; }
.hm-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 12px; align-items: center; gap: 10px; min-height: 48px; padding: 4px 16px 4px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; position: relative; }
.hm-row:hover { background: rgba(60,198,244,.07); color: #fff; }
.hm-row .bf-rank { min-width: 26px; height: 26px; font-size: 13px; }
.hm-row__n { min-width: 0; font: 600 14px/1.25 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-row__n small { display: block; font: 500 12px/1.3 var(--body); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.hm-row__t { font: 700 16px/1 var(--mono); color: var(--cyan-hi); letter-spacing: -.02em; }
.hm-row .bf-dot { justify-self: end; }
.hm-row.is-me { background: linear-gradient(90deg, rgba(60,198,244,.16), rgba(60,198,244,.02)); box-shadow: inset 3px 0 0 var(--cyan); }
.hm-board__foot { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 6px; }

/* ---- top by position */
.hm-leaders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.hm-leader { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; min-height: 0; overflow: hidden; }
.hm-leader::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 30%, transparent), transparent 70%); pointer-events: none; }
.hm-leader__pos { display: flex; align-items: center; gap: 10px; font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--pc); }
.hm-leader__name { margin-top: 6px; font: 700 clamp(1.25rem, 1rem + .6vw, 1.55rem)/1.15 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-leader__score { display: flex; align-items: baseline; gap: 8px; }
.hm-leader__score b { font: 700 42px/1 var(--display); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hm-leader__score span { font-size: 13px; color: var(--muted); }
.hm-leader__rng { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.hm-leader__rng small { display: flex; flex-wrap: wrap; gap: 0 8px; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.hm-leader__rng small span + span::before { content: "\00b7"; margin-right: 8px; }
.hm-leader__bar { position: relative; display: block; height: 6px; background: var(--bg-2); border: 1px solid var(--line-2); }
.hm-leader__bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-3); }
.hm-leader__bar i { position: absolute; top: -1px; bottom: -1px; left: calc(var(--lo) * 100%); width: calc((var(--hi) - var(--lo)) * 100%); background: var(--pc); opacity: .8; }
.hm-leader__bar b { position: absolute; top: -4px; bottom: -4px; left: calc(var(--sc) * 100% - 1px); width: 3px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.7); }
.hm-leader__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }

/* ---- featured compare */
.hm-cmp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.hm-cmp__l { display: flex; flex-direction: column; padding: var(--s-5); border-right: 1px solid var(--line); }
.hm-cmp .bf-verdict__t { font-size: 1.0625rem; }
.hm-cmp__r { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.hm-face { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: var(--s-3); margin-bottom: var(--s-4); }
.hm-face__p { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 18px; background: var(--bg-2); border: 1px solid var(--line-2); text-decoration: none; color: inherit; transition: border-color .2s; min-width: 0; }
.hm-face__p::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.hm-face__p:hover { border-color: var(--c); color: inherit; }
.hm-face__p--a { --c: var(--a); } .hm-face__p--b { --c: var(--b); }
.hm-face__k { font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.hm-face__n { font: 700 clamp(1.2rem, 1rem + .7vw, 1.6rem)/1.15 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-face__s { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.hm-face__s b { color: var(--text-2); font-weight: 600; font-family: var(--mono); }
.hm-vs { align-self: center; display: grid; place-items: center; width: 46px; height: 46px; font: 700 15px/1 var(--display); letter-spacing: .06em; color: var(--on-amber); background: var(--amber); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.hm-cmp__legend { display: flex; justify-content: space-between; gap: 12px; font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.hm-cmp__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: var(--s-5); }

/* ---- live pulse */
.hm-pulse-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-4); }
.hm-feed li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.hm-feed li:last-child { border-bottom: 0; }
.hm-feed img { width: 40px; height: 40px; object-fit: contain; background: var(--bg); border: 1px solid var(--line); padding: 2px; }
.hm-feed__t { font: 600 15px/1.3 var(--body); }
.hm-feed__t b { font: 700 16px/1 var(--mono); color: var(--cyan-hi); margin-right: 6px; }
.hm-feed__s { font-size: 13px; color: var(--muted); }
.hm-feed__w { font: 500 12px/1 var(--mono); color: var(--faint); white-space: nowrap; }
.hm-facts { display: grid; gap: var(--s-3); padding: var(--s-4); }
.hm-fact { display: flex; flex-direction: column; gap: 4px; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.hm-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.hm-fact small { font: 600 12px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hm-fact b { font: 600 16px/1.35 var(--body); }

/* ---- tools band */
.hm-tools { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; padding: var(--s-6); overflow: hidden; }
.hm-tools__shot { margin: 0; border: 1px solid var(--line-3); box-shadow: 0 24px 60px rgba(0,0,0,.5); transform: perspective(1200px) rotateY(-5deg) rotateX(1deg); transition: transform .4s var(--ease); max-height: 330px; overflow: hidden; background: #08121b; }
.hm-tools__shot:hover { transform: none; }
.hm-tools__shot img { display: block; width: 100%; height: auto; }

/* ---- breakpoints */
@media (max-width: 1100px) {
  .hm-learn, .hm-cmp, .hm-pulse-grid, .hm-tools, .hm-me { grid-template-columns: minmax(0, 1fr); }
  .hm-cmp__l { border-right: 0; border-bottom: 1px solid var(--line); }
  .hm-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tools__shot { transform: none; max-height: 280px; }
}
@media (max-width: 760px) {
  .hm-hero__art { background-image: url("/assets/bar-fight-brawl-v3-768.webp"); background-position: 62% 0; background-size: auto 100%; }
  .hm-hero::before { background: linear-gradient(180deg, rgba(6,10,16,.78) 0%, rgba(6,10,16,.88) 55%, var(--bg) 100%); }
  .hm-hero { padding: 28px 0 32px; }
  .hm-title { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .hm-try a { min-height: 40px; padding-inline: 8px; }
  .hm-try { margin-top: 10px; }
  .hm-pulse { gap: 12px 22px; padding-top: 16px; }
  .hm-doors { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hm-door { padding: 14px; }
  .hm-strip { padding: var(--s-4); }
  .hm-strip__head { flex-direction: column; gap: 8px; }
  .hm-me__stats { grid-template-columns: repeat(3, 1fr); }
  .hm-learn { gap: var(--s-4); }
  .hm-learn__map { padding: 8px; margin-inline: -4px; }
  .hm-pos { grid-template-columns: 5px minmax(0, 1fr) auto; min-height: 60px; gap: 12px; }
  .hm-boards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none; }
  .hm-boards::-webkit-scrollbar { display: none; }
  .hm-boards > * { flex: 0 0 min(84vw, 340px); scroll-snap-align: start; }
  .hm-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hm-leader { padding: 14px 12px 12px; min-height: 0; gap: 4px; }
  .hm-leader__score b { font-size: 32px; }
  .hm-leader__pos { font-size: 12px; letter-spacing: .1em; }
  .hm-leader__name { font-size: 1.1rem; }
  .hm-leader__meta { font-size: 12px; }
  .hm-leader__rng small { flex-direction: column; gap: 0; }
  .hm-leader__rng small span + span::before { content: none; }
  .hm-face { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hm-vs { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-block: -6px; width: 40px; height: 40px; }
  .hm-face__p { grid-row: 1; padding: 12px 12px 12px 16px; }
  .hm-face__p--b { grid-column: 2; }
  .hm-cmp__l, .hm-cmp__r { padding: var(--s-4); }
  .hm-tools { padding: var(--s-5) var(--s-4); gap: var(--s-5); }
}

/* map and list light up together */
.bf-map__dot.is-hot { z-index: 9; }
.bf-map__dot.is-hot .bf-map__pt { transform: scale(1.4); }
.bf-map__dot.is-hot .bf-map__lbl { background: var(--pc); color: #04101a; border-color: var(--pc); }
.hm-pos.is-hot { border-color: var(--pc); }
.hm-tools__txt .bf-lead { margin-top: var(--s-3); }
.hm-me__stats { align-items: start; align-content: center; }
.hm-pos.is-mine { border-color: var(--cyan-lo); box-shadow: inset 0 0 0 1px rgba(60,198,244,.22); }
.hm-pos__n .bf-youtag { margin-left: 0; }
/* ---- pick a map: the shelf of map pictures, the calm prompt, the picked map's block */
.hm-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.hm-mcard { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; text-decoration: none; background: linear-gradient(180deg, var(--panel-2), var(--panel) 42%); border: 1px solid var(--line-2); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s, background .2s; }
.hm-mcard:hover { border-color: var(--cyan-lo); transform: translateY(-2px); color: var(--text); }
.hm-mcard[aria-pressed="true"] { border-color: var(--cyan); background: linear-gradient(180deg, var(--cyan-tint), var(--panel) 60%); box-shadow: 0 0 0 1px rgba(60,198,244,.3), 0 0 28px rgba(60,198,244,.16); }
.hm-mcard[aria-pressed="true"]::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--cyan); box-shadow: 0 0 14px rgba(60,198,244,.7); }
.hm-mcard__art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background-color: #06141f; border-bottom: 1px solid var(--line-2); }
.hm-mcard__art img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.85); }
.hm-mcard__st { position: absolute; left: 8px; top: 8px; }
.hm-mcard__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; min-width: 0; }
.hm-mcard__body b { font: 700 16px/1.2 var(--display); letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-mcard__n { font-size: 13px; line-height: 1.35; color: var(--muted); }
.hm-mcard__n strong { font: 600 13px/1 var(--mono); color: var(--text-2); }
.hm-mcard--all { align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; border-style: dashed; border-color: var(--line-3); background: transparent; }
.hm-mcard--all b { font: 700 16px/1.2 var(--display); color: var(--cyan-hi); }
.hm-mcard__ico { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--cyan-lo); background: var(--cyan-tint); color: var(--cyan-hi); }
.hm-mcard__ico svg { width: 24px; height: 24px; }
.hm-sel-host:empty { display: none; }
.hm-prompt { display: flex; align-items: center; gap: 12px; margin: var(--s-4) 0 0; min-height: 52px; padding: 10px 16px; background: rgba(16,27,39,.55); border: 1px dashed var(--line-3); font-size: 15px; color: var(--text-2); }
.hm-prompt svg { width: 20px; height: 20px; flex: none; color: var(--cyan); }
.hm-prompt b { color: var(--text); font-weight: 600; }
.hm-sel { margin-top: var(--s-6); }
.hm-sel__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px var(--s-4); margin-bottom: var(--s-4); }
.hm-sel__id { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-width: 0; }
.hm-sel__t { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--display); letter-spacing: -.01em; }
.hm-sel__t small { margin-left: 6px; font: 500 14px/1 var(--mono); letter-spacing: 0; color: var(--muted); }
.hm-info { display: flex; flex-direction: column; gap: var(--s-4); }
.hm-nums { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.hm-nums dt { font: 600 12px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hm-nums dd { margin: 2px 0 0; font: 700 24px/1.1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.hm-pic { margin: 0; }
.hm-pic > img { display: block; width: 100%; max-height: 420px; object-fit: cover; border: 1px solid var(--line-3); filter: saturate(.9) brightness(.85); }
.hm-pic__art { display: block; aspect-ratio: 16 / 9; border: 1px solid var(--line-3); overflow: hidden; }
.hm-pic__art svg { display: block; width: 100%; height: 100%; }
.hm-pic .bf-cap { margin-top: 8px; }
.hm-lblrole { display: inline-flex; margin-left: 8px; }
.hm-pos__n .bf-rolechip { align-self: center; }
@media (max-width: 1100px) { .hm-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hm-shelf { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .hm-shelf::-webkit-scrollbar { display: none; }
  .hm-shelf > * { flex: 0 0 min(62vw, 236px); scroll-snap-align: start; }
  .hm-mcard--all { min-height: 0; }
  .hm-sel { margin-top: var(--s-5); }
  .hm-nums dd { font-size: 22px; }
}

/* production additions: no style="" attributes (style-src 'self'), a no-JavaScript search form, and the featured "try" card */
.hm-skel--tall { min-height: 300px; }
.hm-nojs { display: flex; gap: 10px; align-items: stretch; }
.hm-nojs .bf-input { flex: 1 1 auto; min-width: 0; }
.hm-cmp__feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-cmp__feat li { padding: 12px 16px; border-left: 3px solid var(--line-3); background: var(--bg-2); color: var(--text-2); font-size: var(--fs-small); line-height: 1.5; }
.hm-cmp__feat b { display: block; color: var(--text); font-family: var(--display); font-weight: 600; }
.hm-cmp__lead { margin: 0 0 var(--s-3); color: var(--text-2); max-width: 56ch; }

.hm-map-rankings{display:grid;gap:2rem}.hm-duel-table{width:100%;border-collapse:collapse;margin-top:1rem;font-variant-numeric:tabular-nums}.hm-duel-table th,.hm-duel-table td{padding:.75rem;text-align:left;border-bottom:1px solid var(--line-2);white-space:nowrap}.hm-map-rankings h3{margin-bottom:.75rem}.hm-map-rankings .hm-leaders{margin-top:1rem}

/* Shared home loading state: visible motion, accessible status, no fake progress. */
.hm-loading{grid-column:1/-1;width:100%;min-height:96px;display:flex;align-items:center;padding:20px 0;position:relative}
.hm-loading__label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.hm-loading__art{width:min(100%,420px);display:grid;gap:12px}
.hm-loading__art i{display:block;height:10px;background:rgba(55,199,233,.1);border:1px solid rgba(55,199,233,.14);position:relative;overflow:hidden}
.hm-loading__art i:nth-child(2){width:82%}.hm-loading__art i:nth-child(3){width:58%}
.hm-loading__art i::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(55,199,233,.35),transparent);animation:hm-loading-sweep 1.8s ease-in-out infinite}
.hm-loading__art i:nth-child(2)::after{animation-delay:.15s}.hm-loading__art i:nth-child(3)::after{animation-delay:.3s}
@keyframes hm-loading-sweep{to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.hm-loading__art i::after{animation:none;transform:none;opacity:.35}}
