/* Homepage only. The arena artwork is shared with game pages; its framing and
   reading surfaces are specific to the mode-selection lobby. */
.page-home {
  --grp: #c8aa6e;
  isolation: isolate;
  background: #010a13;
}
.page-home::before {
  z-index: -2;
  background: #010a13 url('/static/img/game-bg-fantasy-arena-v1.webp') center top / cover no-repeat;
}
.page-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1, 7, 15, .1), rgba(1, 7, 15, .5) 28%, rgba(1, 7, 15, .5) 72%, rgba(1, 7, 15, .1)),
    linear-gradient(180deg, rgba(1, 7, 15, .18), rgba(1, 7, 15, .26) 36%, rgba(1, 7, 15, .76));
}
.page-home .topbar { min-height: 0; padding: 0; }

.ico-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hh-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.hh-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 16px 24px;
  text-align: center;
}
.hh-hero h1 {
  margin: 0;
  color: #f0e6d2;
  font-family: var(--serif);
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 3px 24px #010a13, 0 0 40px rgba(200, 170, 110, .2);
}
.hh-welcome {
  display: block;
  color: #d9c39a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .32em;
}
.hh-wordmark {
  display: block;
  font-size: clamp(56px, 6vw, 80px);
  line-height: 1.2;
  letter-spacing: .12em;
  padding-left: .12em;
}
.hh-hero h1::after {
  content: "";
  display: block;
  width: 144px;
  height: 1px;
  margin: 12px auto 20px;
  background: linear-gradient(90deg, transparent, #d6b675, transparent);
  box-shadow: 0 0 16px rgba(200, 170, 110, .3);
}
.hh-lede {
  max-width: 54ch;
  margin: 0 auto;
  color: #e1d9c9;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: balance;
  text-shadow: 0 2px 8px #010a13;
}
.hh-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 20px 0 0;
  padding: 0;
  color: #c3beb4;
  font-size: 13px;
}
.hh-legend li { display: inline-flex; align-items: center; gap: 6px; }
.hh-legend strong { color: #f0e6d2; font-weight: 650; }
.hh-ico { width: 20px; height: 20px; fill: currentColor; flex: none; color: var(--grp); }

.hh-modes { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.hh-group { margin: 24px 0 0; }
.hh-group--classic { --grp: #d5b77a; }
.hh-group--v2 { --grp: #8ad4f7; }
.hh-group--valorant { --grp: #ff8a91; }
.hh-group-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: var(--grp);
  font: 700 18px/1.4 var(--serif);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 8px #010a13;
}
.hh-group-title::before, .hh-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--grp));
  opacity: .55;
}
.hh-group-title::after { transform: scaleX(-1); }
.hh-group-blurb {
  max-width: 65ch;
  margin: 8px auto 16px;
  text-align: center;
  color: #cbc5b9;
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 2px 8px #010a13;
}
.hh-banks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hh-bank {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--grp) 52%, #182431);
  border-left: 3px solid var(--grp);
  border-radius: 4px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--grp) 12%, #0d1420), #0a101ceF 65%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .035);
}
.hh-bank-name { min-width: 0; display: flex; align-items: center; gap: 12px; }
.hh-part { width: 28px; height: 30px; fill: currentColor; color: var(--grp); flex: none; }
.hh-title {
  display: block;
  color: #f0e6d2;
  font: 800 23px/1.3 var(--serif);
  letter-spacing: .035em;
  text-transform: uppercase;
}
.hh-sub { display: block; margin-top: 2px; color: #c3beb4; font-size: 12px; }
.hh-plays { display: flex; gap: 8px; }
.hh-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--grp) 62%, #23313d);
  border-radius: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--grp) 12%, #15202c), #080e18);
  box-shadow: inset 0 1px rgba(255, 255, 255, .045);
  color: #f0e6d2;
  font: 700 13px/1.3 var(--sans);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.hh-play:hover {
  border-color: var(--grp);
  background: color-mix(in srgb, var(--grp) 18%, #101925);
  box-shadow: 0 0 18px color-mix(in srgb, var(--grp) 15%, transparent);
}
.hh-play:focus-visible { outline: 3px solid #a1e5ff; outline-offset: 4px; }
.hh-play:active { transform: translateY(1px); }
.hh-play.is-empty { border-style: dashed; }
.hh-flag { font-size: 10px; text-transform: none; }
.page-home .sitefoot { margin-top: 32px; margin-bottom: 24px; }

@media (max-width: 760px) {
  .page-home::before { background-position: 72% top; }
  .hh-hero { padding-top: 40px; }
}
@media (max-width: 600px) {
  .page-home::before { background-size: auto max(780px, 100dvh); background-position: right top; }
  .page-home::after {
    background: linear-gradient(180deg, rgba(1, 7, 15, .35), rgba(1, 7, 15, .65) 45%, rgba(1, 7, 15, .87));
  }
  .hh-hero { padding: 32px 16px 12px; }
  .hh-wordmark { font-size: 60px; }
  .hh-welcome { font-size: 12px; }
  .hh-hero h1::after { margin: 8px auto 16px; }
  .hh-lede { font-size: 15px; line-height: 1.55; }
  .hh-legend { flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; }
  .hh-modes { padding: 0 12px; }
  .hh-group { margin-top: 24px; }
  .hh-group-title { font-size: 17px; gap: 12px; }
  .hh-group-blurb { font-size: 13px; margin-bottom: 12px; }
  .hh-bank { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
  .hh-title { font-size: 21px; }
  .hh-part { width: 24px; height: 28px; }
  .hh-plays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hh-play { min-width: 0; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hh-play { transition: none; }
}
