:root {
  color-scheme: dark;
  --ink: #020915;
  --white: #f3fbff;
  --blue: #70d8ff;
  --mint: #a5fbe4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--ink); color: var(--white); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #b6ffeb; outline-offset: 5px; }
.universe {
  --parallax-x: 0px;
  --parallax-y: 0px;
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 60% 56% at 47% 17%, #15517c5c, transparent 76%),
    radial-gradient(ellipse 46% 48% at 3% 64%, #167d7960, transparent 82%),
    radial-gradient(ellipse 49% 54% at 100% 63%, #20417b66, transparent 77%),
    linear-gradient(145deg, #030914 0%, #07152a 48%, #030b18 100%);
}
.universe::after {
  content: ""; pointer-events: none; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #030b15aa 0%, transparent 23%, #06122118 60%, #04101ae8 100%);
}
.starfield { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; opacity: .87; pointer-events: none; }
.nebula { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(72px); mix-blend-mode: screen; animation: nebula-pulse 11s ease-in-out infinite alternate; }
.nebula-a { width: 650px; height: 260px; top: -10%; left: -12%; background: #159da828; transform: rotate(-32deg); }
.nebula-b { width: 680px; height: 270px; bottom: -17%; right: -10%; background: #335ddc2e; animation-delay: -5s; }
.grid-horizon { pointer-events: none; position: absolute; z-index: 0; inset: auto -10% -28% -10%; height: 54%; opacity: .15;
  transform: perspective(360px) rotateX(64deg);
  background-image: linear-gradient(#8edcfb42 1px, transparent 1px), linear-gradient(90deg, #8edcfb42 1px, transparent 1px);
  background-size: 75px 75px; mask-image: linear-gradient(to bottom, transparent, #000 55%, transparent 95%);
}
.earth-scene {
  position: absolute; pointer-events: none; z-index: 0; width: min(760px, 72vw); aspect-ratio: 1;
  left: 50%; top: -340px; margin-left: -380px;
  transform: translate3d(calc(var(--parallax-x) * .15),calc(var(--parallax-y) * .15),0);
  opacity: .76; filter: drop-shadow(0 0 42px #2083bb66);
}
.earth { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain;
  animation: earth-float 19s ease-in-out infinite alternate; }
.planet-aura { position: absolute; z-index: 1; border-radius: 50%; inset: 12%; box-shadow: 0 0 110px #3dddfb42, 0 0 215px #20c6b426, inset 0 0 78px #56f0e52b; }
.orbit { position: absolute; z-index: 3; left: -16%; top: 29%; width: 132%; height: 43%; border: 1px solid #98f7f32e; border-radius: 50%; transform: rotate(-24deg); }
.orbit-two { transform: rotate(38deg); width: 114%; left: -7%; top: 27%; border-color: #68aeff29; }
.orbit-point { position: absolute; z-index: 4; top: 47%; right: -7%; width: 7px; height: 7px; border-radius: 50%; background: #bafcff; box-shadow: 0 0 8px 4px #59eaff85, 0 0 34px 11px #59eaff4d; animation: orbit-light 4s ease-in-out infinite alternate; }
.shooting-star { pointer-events: none; position: absolute; z-index: 1; width: 130px; height: 1px; transform: rotate(-25deg); background: linear-gradient(90deg, transparent, #b1f8ff); filter: drop-shadow(0 0 5px #89efff); opacity: 0; animation: shoot 10s linear infinite; }
.shooting-one { top: 19%; right: 16%; }
.shooting-two { top: 44%; left: 11%; animation-delay: 5.5s; }
.hub-main { position: relative; z-index: 3; width: min(1060px, calc(100% - 52px)); padding: clamp(43px, 6vh, 76px) 0 64px; margin: 0 auto; }
.masthead { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 42px; }
.hub-badge { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 17px; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #24638a4d, #07172955 72%); box-shadow: inset 0 0 0 1px #85eaff36, 0 0 45px #46b1d624; animation: badge-arrival 1s cubic-bezier(.2,.85,.2,1) both; }
.hub-badge::before, .hub-badge::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid #9efce655; border-left-color: transparent; border-bottom-color: transparent; animation: badge-spin 18s linear infinite; }
.hub-badge::after { inset: -18px; border-color: #a1d4ff33 transparent transparent #a1d4ff33; animation-direction: reverse; animation-duration: 27s; }
.hub-logo { width: 68px; height: 68px; object-fit: contain; border-radius: 18px; filter: drop-shadow(0 6px 12px #0006); }
.hub-title { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: .21em; font-weight: 950; line-height: .98; letter-spacing: -.075em; font-size: clamp(66px, 9.8vw, 122px); white-space: nowrap; text-shadow: 0 8px 35px #0008; animation: title-arrival .9s .1s both cubic-bezier(.2,.85,.2,1); }
.title-white { color: #f5fcff; }
.title-glow { color: #a9f6fa; background: linear-gradient(90deg,#b4fff0 0%,#7dd9fe 49%,#cdeeff 100%); background-size: 170% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: title-shimmer 9s linear infinite; filter: drop-shadow(0 3px 18px #33bef84d); }
.header-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 25px; animation: fade-in 1s .45s both; }
.header-divider span { width: 52px; height: 1px; background: linear-gradient(to right,transparent,#77dbdc81); }
.header-divider span:last-child { transform: rotate(180deg); }
.header-divider i { width: 5px; height: 5px; border-radius: 50%; background: #a7fff1; box-shadow: 0 0 12px #81ffdb; }
.hub-subtitle { margin: 12px 0 0; font-size: 10px; font-weight: 760; letter-spacing: .39em; color: #c1e5ebad; animation: fade-in 1s .5s both; }
.games { width: 100%; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.game-card {
  --tilt-x: 0deg; --tilt-y: 0deg; --spot-x: 50%; --spot-y: 35%;
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 15px; height: 207px; padding: 22px 12px;
  border: 1px solid #a7cde62e; border-radius: 25px;
  background: linear-gradient(155deg, #1c3954ac 0%, #0c2237dd 53%, #0b2035ef 100%);
  box-shadow: inset 0 1px 0 #e3f9ff1d, 0 20px 46px #00000030;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  transition: transform .28s cubic-bezier(.15,.7,.25,1), border-color .24s, box-shadow .24s, background .24s;
  animation: card-arrival .85s backwards cubic-bezier(.14,.8,.23,1); animation-delay: calc(.28s + var(--idx) * .09s);
  will-change: transform;
}
.game-card::before { content: ''; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(270px circle at var(--spot-x) var(--spot-y), var(--accent),transparent 72%);
  opacity: .055; transition: opacity .3s; }
.game-card::after { content: ''; position: absolute; left: 21%; right: 21%; height: 2px; bottom: 0;
  border-radius: 9px; background: linear-gradient(90deg,transparent,var(--accent),transparent); opacity: .48; transform: scaleX(.6); transition: transform .25s, opacity .25s; }
.card-corner { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(140deg,#ffffff12,transparent 42%,transparent 70%,#9edbee05); }
.game-card:hover, .game-card:focus-visible { transform: perspective(850px) translateY(-7px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); border-color: color-mix(in srgb, var(--accent) 61%, #adceeb60); box-shadow: 0 24px 56px #0008, 0 0 36px color-mix(in srgb,var(--accent) 19%,transparent), inset 0 1px #fff3; }
.game-card:hover::before, .game-card:focus-visible::before { opacity: .19; }
.game-card:hover::after, .game-card:focus-visible::after { transform: scaleX(1.15); opacity: 1; }
.card-number { position: absolute; left: 18px; top: 16px; font-size: 11px; font-weight: 800; letter-spacing: .11em; color: #c5eaf366; font-variant-numeric: tabular-nums; }
.card-arrow { position: absolute; top: 13px; right: 15px; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #c1ecfb24; border-radius: 50%; color: #d0e9f2ad; font-size: 17px; line-height: 1; transition: transform .24s, border-color .24s, color .24s, background .24s; }
.game-card:hover .card-arrow, .game-card:focus-visible .card-arrow { transform: translate(2px,-2px); border-color: color-mix(in srgb,var(--accent) 60%,transparent); color: #fff; background: #ffffff12; }
.icon-stage { position: relative; display: grid; place-items: center; height: 111px; width: 118px; margin-top: 5px; }
.icon-stage::before { position: absolute; content: ''; width: 92px; height: 92px; border-radius: 50%; background: var(--accent); filter: blur(32px); opacity: .20; transition: opacity .3s, transform .3s; }
.icon-stage::after { position: absolute; content: ''; width: 99px; height: 99px; border-radius: 26px; border: 1px solid color-mix(in srgb,var(--accent) 23%,transparent); background: #e4fffd05; transform: rotate(-8deg) scale(.95); transition: transform .35s, opacity .35s; opacity: .65; }
.game-icon { display: block; position: relative; z-index: 2; width: 91px; height: 91px; object-fit: contain; filter: drop-shadow(0 9px 12px #0007); transition: transform .35s cubic-bezier(.18,.75,.25,1), filter .35s; }
.game-card:hover .game-icon, .game-card:focus-visible .game-icon { transform: translateY(-7px) scale(1.12) rotate(-2deg); filter: drop-shadow(0 15px 14px #0008); }
.game-card:hover .icon-stage::before, .game-card:focus-visible .icon-stage::before { transform: scale(1.4); opacity: .34; }
.game-card:hover .icon-stage::after, .game-card:focus-visible .icon-stage::after { transform: rotate(5deg) scale(1.04); }
.game-title { position: relative; z-index: 1; color: #f0fbff; font-size: 17px; font-weight: 850; letter-spacing: -.025em; line-height: 1.2; text-align: center; text-wrap: balance; text-shadow: 0 2px 10px #00111b70; }
@keyframes title-arrival { from { opacity: 0; transform: translateY(22px) scale(.96); filter: blur(7px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes badge-arrival { from { opacity: 0; transform: translateY(-15px) scale(.75); } to { opacity: 1; transform: none; } }
@keyframes card-arrival { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes earth-float { from { transform: translateY(-9px) rotate(-2deg); } to { transform: translateY(17px) rotate(6deg); } }
@keyframes nebula-pulse { to { opacity: .48; transform: translateY(40px) rotate(-20deg); } }
@keyframes orbit-light { to { opacity: .4; transform: scale(.65); } }
@keyframes shoot { 0%, 82% { opacity: 0; transform: translate(110px,-40px) rotate(-25deg); } 84% { opacity: .9; } 91% { opacity: 0; transform: translate(-170px,80px) rotate(-25deg); } 100% { opacity: 0; } }
@keyframes badge-spin { to { transform: rotate(360deg); } }
@keyframes title-shimmer { to { background-position: 170% 0; } }
@media (min-width: 1550px) { .earth-scene { width: 900px; margin-left: -450px; top: -440px; } }
@media (max-width: 830px) { .hub-main { width: min(680px, calc(100% - 42px)); padding-top: 48px; } .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; } .earth-scene { width: 720px; top: -350px; margin-left: -360px; opacity: .55; } .game-card { height: 190px; } .masthead { margin-bottom: 32px; } }
@media (max-width: 500px) { .hub-main { width: calc(100% - 28px); padding: 37px 0 45px; } .masthead { margin-bottom: 26px; } .hub-badge { width: 66px; height: 66px; margin-bottom: 19px; } .hub-badge::before { inset: -7px; } .hub-badge::after { inset: -12px; } .hub-logo { width: 51px; height: 51px; border-radius: 12px; } .hub-title { font-size: clamp(48px, 11.1vw, 71px); letter-spacing: -.08em; } .header-divider { margin-top: 18px; } .hub-subtitle { font-size: 9px; } .game-grid { gap: 11px; } .game-card { height: 162px; border-radius: 18px; gap: 6px; padding: 21px 6px 12px; } .card-number { font-size: 9px; top: 11px; left: 12px; } .card-arrow { width: 24px; height: 24px; top: 9px; right: 10px; font-size: 14px; } .icon-stage { width: 84px; height: 91px; margin-top: 0; } .icon-stage::before { width: 72px; height: 72px; } .icon-stage::after { width: 77px; height: 77px; border-radius: 21px; } .game-icon { width: 72px; height: 72px; } .game-title { font-size: clamp(12px, 3.45vw, 15px); max-width: 140px; } .earth-scene { width: 520px; margin-left: -260px; top: -230px; opacity: .44; } .grid-horizon { opacity: .12; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .game-card { animation: none !important; } .game-card:hover { transform: none; } }
@media (hover: none) { .game-card { will-change: auto; } }
