/* The home page: a featured-game banner, Continue Playing, Popular Right Now, categories, then the leaderboard,
   what's new and the text about Hiro. */
.hm { display: block; max-width: 1480px; margin: 0 auto; padding: 18px max(24px, env(safe-area-inset-right, 0px)) 40px 24px; }

.hm-hero { position: relative; height: clamp(300px, 34vw, 420px); border-radius: 22px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.hm-slides, .hm-slide { position: absolute; inset: 0; }
.hm-slide { opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s; }
.hm-slide.on { opacity: 1; visibility: visible; }
.hm-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.04); transition: transform 7s ease-out; }
.hm-slide.on .hm-art { transform: scale(1); }
.hm-slide video.hm-art { opacity: 0; transition: opacity 0.6s; }
.hm-slide video.hm-art.playing { opacity: 1; }
.hm-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 3, 5, 0.94) 0%, rgba(3, 3, 5, 0.78) 30%, rgba(3, 3, 5, 0.15) 62%, transparent), linear-gradient(0deg, rgba(3, 3, 5, 0.6), transparent 40%); }
.hm-copy { position: absolute; z-index: 1; left: clamp(22px, 3.4vw, 46px); top: 50%; transform: translateY(-50%); display: grid; justify-items: start; gap: 12px; max-width: min(560px, 62%); }
.hm-badge { padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); color: #07080b; font: 700 13px var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.hm-copy h1, .hm-copy h2 { margin: 2px 0 0; font: italic 900 clamp(44px, 6vw, 82px)/0.92 var(--display); text-transform: uppercase; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.14em; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5)); }
.hm-copy p { margin: 0; color: #e3e5e9; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; max-width: 520px; }
.hm-ctas { display: flex; gap: 12px; margin-top: 6px; }
.hm-play, .hm-more { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 12px; font: 700 18px var(--body); transition: transform 0.12s, background 0.15s, box-shadow 0.2s; }
.hm-play { background: var(--chrome); color: #07080b; box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15); }
.hm-play svg { width: 22px; height: 22px; }
.hm-play:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 255, 255, 0.25); }
.hm-more { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); }
.hm-more:hover { background: rgba(255, 255, 255, 0.16); }
.hm-dots { position: absolute; z-index: 2; left: 50%; bottom: 22px; display: flex; gap: 10px; transform: translateX(-50%); }
.hm-dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: width 0.25s, background 0.25s; }
.hm-dots button[aria-selected='true'] { width: 30px; background: #fff; }
.hm-arrows { position: absolute; z-index: 2; right: 22px; bottom: 18px; display: flex; gap: 10px; }
.hm-arrow { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; background: rgba(10, 11, 15, 0.6); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.hm-arrow:hover { background: rgba(255, 255, 255, 0.16); }
.hm-arrow svg { width: 22px; height: 22px; }

.hm-row { margin-top: 34px; }
.hm-row[hidden] { display: none; }
.hm-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hm-row-head h2 { margin: 0; font: italic 900 clamp(26px, 2.4vw, 32px)/1.1 var(--display); }
.hm-row-head a { display: inline-flex; align-items: center; gap: 6px; color: #c9ccd2; font: 600 16px var(--body); }
.hm-row-head a:hover { color: #fff; }
.hm-row-head svg { width: 20px; height: 20px; }

.hm-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hm-cards::-webkit-scrollbar { display: none; }
.hm-card { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #111; border: 1px solid rgba(255, 255, 255, 0.08); scroll-snap-align: start; transition: transform 0.18s, border-color 0.18s, box-shadow 0.2s; }
.hm-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.hm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.hm-card:hover img { transform: scale(1.05); }
.hm-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 6, 9, 0.92), rgba(5, 6, 9, 0.35) 45%, transparent 70%); }
.hm-card-text { position: absolute; z-index: 1; left: 14px; right: 64px; bottom: 12px; display: grid; gap: 2px; }
.hm-card-text b { font: italic 800 20px/1.1 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-card-text small { display: inline-flex; align-items: center; gap: 6px; color: #b9bdc4; font-size: 14px; }
.hm-card-text small .live { width: 8px; height: 8px; border-radius: 50%; background: #3bd17f; box-shadow: 0 0 8px #3bd17f; }
.hm-go { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; backdrop-filter: blur(6px); transition: background 0.15s, color 0.15s; }
.hm-go svg { width: 20px; height: 20px; margin-left: 2px; }
.hm-card:hover .hm-go { background: #fff; color: #07080b; }
.hm-rank { position: absolute; z-index: 1; top: 10px; left: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(10, 11, 15, 0.75); color: #fff; font: italic 900 19px/1 var(--display); border: 1px solid rgba(255, 255, 255, 0.2); }
.hm-rank.r1 { background: linear-gradient(180deg, #ffe58a, #e0a420); color: #2b1d00; border: 0; }
.hm-rank.r2 { background: linear-gradient(180deg, #ffffff, #b9c0ca); color: #1a1d22; border: 0; }
.hm-rank.r3 { background: linear-gradient(180deg, #f3b98a, #a8622b); color: #2b1300; border: 0; }
.hm-moretile { display: grid; place-items: center; align-content: center; gap: 8px; aspect-ratio: 16 / 10; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); color: #d7d9de; font: 600 17px var(--body); scroll-snap-align: start; transition: background 0.15s, border-color 0.15s; }
.hm-moretile svg { width: 34px; height: 34px; }
.hm-moretile:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.45); }

.hm-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.hm-cat { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; height: 84px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1);
  font: italic 800 20px/1 var(--display); color: #fff; background: radial-gradient(120% 140% at 0% 0%, var(--c, #2a3142) 0%, #0d0f14 70%); transition: transform 0.15s, border-color 0.15s; }
.hm-cat .i { width: 30px; height: 30px; }
.hm-cat:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.35); }
.hm-cat.c1 { --c: #3f8cff55; } .hm-cat.c2 { --c: #a35cff55; } .hm-cat.c3 { --c: #25b47e55; }
.hm-cat.c4 { --c: #f2a92255; } .hm-cat.c5 { --c: #e8497d55; } .hm-cat.c6 { --c: #93c9ea55; }

/* The sections below keep their own look; on the home page they line up with the rows above. */
.hm .board, .hm .news, .hm .read { max-width: none; margin-top: clamp(44px, 5vw, 70px); padding-left: 0; padding-right: 0; }
.hm .board { padding: 22px 24px 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); }

@media (max-width: 1200px) { .hm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hm { padding: 12px 14px 30px; }
  .hm-hero { height: 440px; border-radius: 18px; }
  .hm-slide::after { background: linear-gradient(0deg, rgba(3, 3, 5, 0.96) 10%, rgba(3, 3, 5, 0.55) 55%, rgba(3, 3, 5, 0.1)); }
  .hm-copy { top: auto; bottom: 70px; transform: none; max-width: none; right: 20px; left: 20px; }
  .hm-copy p { font-size: 15px; }
  .hm-play, .hm-more { height: 46px; padding: 0 18px; font-size: 16px; }
  .hm-arrows { display: none; }
  .hm-dots { bottom: 26px; }
  .hm-cards { grid-auto-columns: 72%; }
  .hm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hm-cat { height: 70px; font-size: 17px; }
  .hm .board { padding: 16px; }
}
