/* Colors and depth come from the existing vector wordmark and game renders. */
.top { background: #121044f2; }
.hero {
  isolation: isolate;
  background: radial-gradient(ellipse at 81% 42%, #5945c5 0, #28207a 40%, #151139 75%);
}
.hero .wrap { min-height: clamp(590px, 78svh, 750px); }
.hero .txt { width: 52%; padding-block: 48px 75px; }
.hero-logo {
  width: min(100%, 480px);
  height: auto;
  margin-inline-start: -10px;
  filter: drop-shadow(0 12px 13px #0c082874);
  animation: logo-arrive .82s cubic-bezier(.18,.8,.27,1) both;
}
.hero h1 {
  font-size: clamp(34px, 4.2vw, 62px);
  margin-block: 19px 16px;
  text-shadow: 0 3px #201347;
}
.hero h1 .b { color: #ffe377; }
.hero .lead { color: #e4dfff; }
.hero .txt > :not(.hero-logo) { animation: copy-arrive .64s .15s ease-out both; }
.hero-scene {
  position: absolute;
  inset: 0 0 0 48%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.hero-art {
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: contain;
  filter: drop-shadow(0 26px 21px #120b5080);
  translate: var(--hero-x, 0px) var(--hero-y, 0px);
  transition: translate .4s cubic-bezier(.2,.7,.25,1);
  animation: marble-arrive 1.15s cubic-bezier(.2,.7,.27,1) both,
    marble-settle 2.5s 1.15s ease-in-out 1;
}
.hero-orbit {
  position: absolute;
  top: 12%;
  left: 17%;
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #cfbfff66;
  box-shadow: 0 0 0 24px #b0a3ff13, 0 0 0 51px #b0a3ff10, inset 0 0 90px #9679ff46;
  animation: orbit-arrive 1s ease-out both;
}
.hero-track {
  position: absolute;
  left: -12%;
  top: 64%;
  width: 130%;
  height: 22%;
  transform: skewX(-31deg) rotate(-13deg);
  background: url('../assets/ui/checker.svg') center / 72px;
  opacity: .66;
  box-shadow: 0 10px #3b287d, 0 18px #231658;
  mask-image: linear-gradient(90deg, transparent, #000 21%, #000 85%, transparent);
}
.hero::after { z-index: -1; background: linear-gradient(0deg,#101036,transparent 24%); }
.data { background: #101036; }
.data .wrap { border-bottom-color: #8a79d55c; }
.arcade-section .menu-preview {
  background: #1b1749;
  border-color: #9984df;
  box-shadow: 0 7px #201250, 0 18px 45px #0a052b85;
}
.preview-top,.preview-bottom { background: #271e62; color: #e1d7ff; }
#courses { background: linear-gradient(150deg,#21175a,#15123a); }
#courses .shot { border-color: #6754a8; box-shadow: 0 4px #1a1144; }
#courses .shot:focus-visible { outline-color: #ffe377; }
.final { background: linear-gradient(110deg,#2f2184,#1e1e62); }
[dir=rtl] .hero-scene { inset: 0 48% 0 0; }
[dir=rtl] .hero-art { inset: 0; }
@keyframes logo-arrive { from { opacity: .8; transform: translateY(22px) scale(.94) rotate(-3deg); } }
@keyframes copy-arrive { from { transform: translateY(16px); } }
@keyframes marble-arrive { from { opacity: 0; transform: translate(7%,9%) scale(.84) rotate(8deg); } }
@keyframes marble-settle { 50% { transform: translateY(-11px); } }
@keyframes orbit-arrive { from { opacity: 0; transform: scale(.78); } }
@media (max-width: 800px) {
  .hero .wrap { min-height: 0; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero .txt { width: 100%; padding: 25px 0 6px !important; }
  .hero-logo { width: min(86%, 390px); }
  .hero .lead { margin-block-end: 20px; }
  .hero-scene, [dir=rtl] .hero-scene { position: relative; inset: auto; order: 1; height: clamp(190px, 48vw, 360px); z-index: 0; }
  .hero-track { top: 62%; }
  .hero-orbit { top: 0; left: 23%; width: 54%; }
  .hero .art-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo,.hero-art,.hero-orbit,.hero .txt > :not(.hero-logo) { animation: none; }
  .hero-art { translate: none; transition: none; }
}
