/* Homepage only. Shared navigation, footer and existing design sheets stay intact. */
body[data-page="home"] .hp-main {
  --hp-ink: #f4f6ff;
  --hp-muted: #afbdd3;
  --hp-cyan: #59ddf6;
  --hp-line: #ffffff24;
  color: var(--hp-ink);
  background: #080d1b;
}
.hp-main * {
  box-sizing: border-box;
}
.hp-main .hp-shell {
  width: min(1440px, calc(100% - 96px));
  margin-inline: auto;
}
.hp-main h1,
.hp-main h2,
.hp-main p,
.hp-main figure {
  margin: 0;
}
.hp-main h1,
.hp-main h2 {
  color: var(--hp-ink);
  font-family: var(--font-body, "DM Sans", sans-serif);
  letter-spacing: -0.045em;
  font-weight: 700;
  text-wrap: balance;
}
.hp-main h2 {
  font-size: clamp(30px, 3.3vw, 50px);
  line-height: 1.1;
}
.hp-main p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--hp-muted);
}
.hp-main a {
  color: inherit;
  text-decoration: none;
}
.hp-main button {
  font: inherit;
  cursor: pointer;
}
.hp-main :is(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--hp-cyan);
  outline-offset: 5px;
}
.hp-main .hp-context {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hp-cyan);
  margin-bottom: 20px;
}
.hp-main .hp-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}
.hp-main .hp-discover {
  padding-block: 32px 28px;
}
.hp-main .hp-discover h2 {
  font-size: clamp(25px, 2.4vw, 34px);
}
.hp-main .hp-rail-controls {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}
.hp-main [hidden] {
  display: none;
}
.hp-main .hp-rail-controls button {
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  color: var(--hp-ink);
  width: 44px;
  height: 44px;
  border-radius: 0;
  line-height: 1;
  transition:
    background 0.18s,
    color 0.18s;
}
.hp-main .hp-rail-controls svg {
  display: block;
  width: 24px;
  height: 24px;
  flex: none;
}
.hp-main button:disabled {
  opacity: 0.35;
  cursor: default;
}
.hp-main .hp-category-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  min-height: 225px;
  padding: 6px 3px 10px;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
}
.hp-category-rail::-webkit-scrollbar {
  display: none;
}
.hp-main .hp-category {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 210px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  user-select: none;
}
.hp-main .hp-category img,
.hp-main .hp-category-fallback {
  width: 100%;
  height: 174px;
  object-fit: cover;
  background: #101929;
  border-radius: 8px;
  padding: 0;
  transition: transform 0.22s;
}
.hp-main .hp-category-fallback {
  display: grid;
  place-items: center;
  color: #18233c;
  font-size: 16px;
}
.hp-main .hp-category strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  letter-spacing: 0.03em;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.4;
}
.hp-main .hp-rail-track {
  height: 2px;
  background: var(--hp-line);
  margin-top: 16px;
  overflow: hidden;
}
.hp-main .hp-rail-track span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--hp-cyan);
  transform-origin: left;
}
.hp-main .hp-hero {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #080c17;
}
.hp-main .hp-hero-picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hp-main .hp-hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hp-main .hp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      #030711ef 0%,
      #030711c4 28%,
      #03071155 60%,
      #03071110 100%
    ),
    linear-gradient(0deg, #080d1b 0%, transparent 25%);
}
.hp-main .hp-hero-copy {
  padding-block: 84px;
}
.hp-main h1 {
  font-size: clamp(46px, 5.4vw, 84px);
  line-height: 1.03;
  max-width: 900px;
  color: white;
}
.hp-main h1 span {
  color: var(--hp-cyan);
}
.hp-main .hp-hero-copy > p {
  margin-top: 28px;
  color: #d0d8e9;
  font-size: 22px;
}
.hp-main .hp-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.hp-main .hp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 52px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--hp-cyan);
  color: #071427;
  font-size: 16px;
  font-weight: 700;
  transition:
    background 0.18s,
    transform 0.18s;
}
.hp-main .hp-button-outline {
  background: #080e2180;
  border-color: #a2b1cb;
  color: white;
}
.hp-main .hp-photo-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-size: 13px;
  color: #c0c9da;
}
.hp-main .hp-text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  min-height: 44px;
  color: var(--hp-cyan);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.hp-main .hp-lounge {
  padding-block: 80px;
  background: #111525;
}
.hp-main .hp-lounge-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
}
.hp-main .hp-lounge-image img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  border-radius: 6px;
}
.hp-main .hp-lounge-image figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: #acb7cb;
  margin-top: 12px;
}
.hp-main .hp-lounge-copy > p:not(.hp-context) {
  margin-top: 26px;
}
.hp-main .hp-lounge-copy .hp-button {
  margin-top: 30px;
}
.hp-main .hp-lounge-copy .hp-service-note {
  font-size: 14px;
  max-width: 380px;
}
.hp-main .hp-community {
  padding-block: 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hp-main .hp-community > div > p:not(.hp-context) {
  max-width: 480px;
  margin-top: 26px;
}
.hp-main .hp-community .hp-text-link {
  margin-top: 24px;
}
.hp-main .hp-tournament-panel {
  padding: 48px;
  border-block: 1px solid var(--hp-line);
  background: radial-gradient(ellipse at 90% 0%, #30235b55, transparent 65%);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.hp-main .hp-tournament-panel h3 {
  overflow-wrap: anywhere;
  color: var(--hp-ink);
  font-size: 27px;
  line-height: 1.2;
  margin: 0;
}
.hp-main .hp-tournament-panel a {
  padding-block: 16px;
  border-bottom: 1px solid var(--hp-line);
  display: flex;
  gap: 12px;
  flex-direction: column;
}
.hp-main .hp-tournament-panel time {
  color: var(--hp-muted);
}
.hp-main .hp-state {
  grid-column: 1/-1;
  align-self: center;
  padding: 32px;
  border: 1px solid var(--hp-line);
  border-radius: 8px;
  max-width: 100%;
}
.hp-main .hp-state button {
  margin-top: 16px;
}
@media (hover: hover) and (pointer: fine) {
  .hp-main .hp-category:hover img {
    transform: translateY(-3px);
  }
  .hp-main .hp-button:hover {
    background: #92eaff;
    transform: translateY(-2px);
  }
  .hp-main .hp-button-outline:hover {
    background: #18273c;
    color: white;
  }
  .hp-main .hp-text-link:hover {
    color: white;
  }
  .hp-main .hp-rail-controls button:not(:disabled):hover {
    background: transparent;
    color: var(--hp-cyan);
  }
}
@media (min-width: 1800px) {
  .hp-main .hp-hero {
    min-height: 750px;
  }
  .hp-main .hp-category img {
    height: 190px;
  }
}
@media (max-width: 1023px) {
  .hp-main .hp-shell {
    width: calc(100% - 48px);
  }
  .hp-main .hp-category {
    flex-basis: 28%;
    min-width: 210px;
  }
  .hp-main .hp-hero {
    min-height: 600px;
  }
  .hp-main .hp-lounge-layout {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .hp-main .hp-lounge-image img {
    height: 470px;
  }
  .hp-main .hp-community {
    gap: 40px;
  }
}
@media (max-width: 767px) {
  .hp-main .hp-shell {
    width: calc(100% - 40px);
  }
  .hp-main .hp-discover {
    padding-block: 26px 24px;
  }
  .hp-main .hp-section-heading {
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
  }
  .hp-main .hp-discover h2 {
    max-width: 240px;
    font-size: 25px;
  }
  .hp-main .hp-rail-controls {
    gap: 6px;
  }
  .hp-main .hp-category {
    flex-basis: 67%;
    min-width: 190px;
  }
  .hp-main .hp-category-rail {
    min-height: 220px;
    gap: 14px;
  }
  .hp-main .hp-category img {
    height: 164px;
  }
  .hp-main .hp-hero {
    min-height: 580px;
    align-items: end;
  }
  .hp-main .hp-hero-copy {
    padding-block: 110px 76px;
  }
  .hp-main h1 {
    font-size: clamp(40px, 8.3vw, 62px);
  }
  .hp-main .hp-hero::after {
    background: linear-gradient(
      0deg,
      #080d1b 2%,
      #040915dc 38%,
      #04091555 100%
    );
  }
  .hp-main .hp-hero-picture img {
    object-position: 65% center;
  }
  .hp-main .hp-hero-copy > p {
    font-size: 19px;
    margin-top: 22px;
  }
  .hp-main .hp-actions {
    gap: 12px;
    margin-top: 26px;
  }
  .hp-main .hp-button {
    padding: 14px 18px;
    gap: 16px;
  }
  .hp-main .hp-photo-note {
    right: 20px;
    bottom: 20px;
  }
  .hp-main .hp-context {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .hp-main .hp-lounge {
    padding-block: 40px 54px;
  }
  .hp-main .hp-lounge-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hp-main .hp-lounge-image img {
    height: auto;
    aspect-ratio: 4/3;
  }
  .hp-main .hp-community {
    padding-block: 60px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hp-main .hp-tournament-panel {
    padding: 32px 24px;
  }
  .hp-main p {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-main * {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}

/* Neutral photo scrims and RGB ambient fields above preserve the approved brand. */
@keyframes hp-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hp-main [data-hp-reveal="pending"] {
    opacity: 0;
  }
  .hp-main .hp-enter {
    animation: hp-arrive 240ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
}

body[data-page="home"] > site-footer {
  margin-top: 0;
}
