:root {
  --bg: #05060f;
  --bg-soft: #0a0c1a;
  --surface: rgba(255, 255, 255, .04);
  --surface-strong: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .09);
  --text: #eef0ff;
  --text-dim: #9aa1b9;
  --violet: #7c3aed;
  --cyan: #22d3ee;
  --magenta: #e879f9;
  --grad: linear-gradient(90deg, var(--violet), var(--cyan) 50%, var(--magenta));
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --container: 1200px;
  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--violet); color: #fff; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--cyan));
  border-radius: 99px;
  border: 2px solid var(--bg);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 720px; }

.section-tag {
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}

.grad-text {
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: .95em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(124, 58, 237, .65);
}
.btn--primary:hover { box-shadow: 0 14px 44px -8px rgba(34, 211, 238, .5); }

.btn__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  z-index: -1;
}
.btn:hover .btn__glow { opacity: 1; }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--lg { padding: 1.05em 2.1em; font-size: 1rem; }
.btn--sm { padding: .7em 1.35em; font-size: .85rem; }

.arrow { transition: transform .25s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(5px); }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4rem;
  transition: opacity .6s ease, visibility .6s;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }

.preloader__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  letter-spacing: .08em;
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: pulse-logo 1.2s ease-in-out infinite alternate;
}

@keyframes pulse-logo {
  from { transform: scale(1); filter: brightness(1); }
  to { transform: scale(1.08); filter: brightness(1.35); }
}

.preloader__bar {
  width: 180px;
  height: 3px;
  border-radius: 99px;
  background: var(--surface-strong);
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--grad);
  animation: load-slide 1.1s ease-in-out infinite;
}

@keyframes load-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(450%); }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 150;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--grad);
  box-shadow: 0 0 12px rgba(34, 211, 238, .7);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 190;
  pointer-events: none;
  border-radius: 50%;
  translate: -50% -50%;
  display: none;
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(34, 211, 238, .45);
  transition: width .25s ease, height .25s ease, border-color .25s ease;
}
body.has-hover-cursor .cursor-dot,
body.has-hover-cursor .cursor-ring { display: block; }
.cursor-ring.is-active {
  width: 60px;
  height: 60px;
  border-color: var(--magenta);
}
@media (hover: hover) and (pointer: fine) {
  body:not(.no-custom-cursor) a,
  body:not(.no-custom-cursor) button { cursor: none; }
  body:not(.no-custom-cursor) { cursor: none; }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(5, 6, 15, .72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--border);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .04em;
}
.nav__logo em {
  font-style: normal;
  color: var(--text-dim);
  font-weight: 400;
}
.nav__logo-mark { width: 30px; height: 30px; }

.nav__menu {
  display: flex;
  gap: 2rem;
}
.nav__link {
  position: relative;
  font-size: .95rem;
  color: var(--text-dim);
  transition: color .25s;
  padding-block: .35rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.nav__link:hover,
.nav__link.is-active { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(8px);
  font-size: .8rem;
  font-weight: 600;
}
.lang-switch__active {
  padding: .3em .75em;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
}
.lang-switch__link {
  padding: .3em .75em;
  border-radius: 999px;
  color: var(--text-dim);
  transition: color .2s;
}
.lang-switch__link:hover { color: var(--text); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav__burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
.aurora--1 {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, .55), transparent 70%);
}
.aurora--2 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(34, 211, 238, .4), transparent 70%);
  animation-delay: -7s;
}
.aurora--3 {
  width: 420px;
  height: 420px;
  top: 20%;
  right: -140px;
  background: radial-gradient(circle, rgba(232, 121, 249, .38), transparent 70%);
  opacity: .4;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__brand {
  width: min(540px, 92vw);
  margin-bottom: 1.25rem;
  animation: logo-float 6s ease-in-out infinite alternate;
}
.hero__brand img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .55)) drop-shadow(0 0 32px rgba(34, 211, 238, .16));
}

@keyframes logo-float {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, .3);
  background: rgba(34, 211, 238, .07);
  padding: .55em 1.2em;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-bottom: 2rem;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, .6);
  animation: dot-pulse 1.8s infinite;
}

@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 640px;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-bottom: 2.6rem;
}
.hero__subtitle strong { color: var(--text); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  border-top: 1px solid var(--border);
  padding-top: 2.2rem;
}

.stat { text-align: center; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--grad);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.stat__label {
  color: var(--text-dim);
  font-size: .85rem;
  margin-top: .3rem;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid var(--border);
  border-radius: 999px;
  z-index: 1;
}
.hero__scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  translate: -50% 0;
  width: 4px;
  height: 9px;
  border-radius: 99px;
  background: var(--cyan);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(0); }
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 1.1rem 0;
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .22em;
  color: var(--text-dim);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about__text p { color: var(--text-dim); margin-bottom: 1.2rem; }
.about__text strong, .about__text em { color: var(--text); }

.checklist { margin-top: 1.6rem; display: grid; gap: .7rem; }
.checklist li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  color: var(--text-dim);
}
.checklist li::before {
  content: "▸";
  color: var(--cyan);
  font-weight: 700;
}

.about__facts { display: grid; gap: 1rem; }

.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  backdrop-filter: blur(10px);
  transition: border-color .3s, transform .3s, background .3s;
}
.fact-card:hover {
  border-color: rgba(34, 211, 238, .4);
  background: var(--surface-strong);
}
.fact-card h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.fact-card p { color: var(--text-dim); font-size: .92rem; }
.fact-card--accent {
  background: linear-gradient(135deg, rgba(124, 58, 237, .18), rgba(34, 211, 238, .1));
  border-color: rgba(124, 58, 237, .35);
}

.game { overflow: hidden; }

.game__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.rift-core {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.rift-core__orb {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .9), transparent 26%),
    conic-gradient(from 0deg, var(--violet), var(--cyan), var(--magenta), var(--violet));
  box-shadow:
    0 0 80px rgba(124, 58, 237, .55),
    0 0 160px rgba(34, 211, 238, .3),
    inset 0 0 50px rgba(5, 6, 15, .55);
  animation: orb-spin 9s linear infinite;
}

@keyframes orb-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 50%;
  animation: orbit-spin 22s linear infinite;
}
.orbit--2 {
  inset: 13%;
  animation-duration: 14s;
  animation-direction: reverse;
  border-color: rgba(34, 211, 238, .25);
}

@keyframes orbit-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

.shard {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 0 8px var(--cyan));
  animation: shard-float 5s ease-in-out infinite alternate;
}
.shard--1 { top: 6%; left: 48%; }
.shard--2 { bottom: 12%; left: 14%; background: var(--magenta); filter: drop-shadow(0 0 8px var(--magenta)); animation-delay: -2s; }
.shard--3 { top: 40%; right: 4%; background: var(--violet); filter: drop-shadow(0 0 8px var(--violet)); animation-delay: -3.4s; }

@keyframes shard-float {
  from { translate: 0 -10px; rotate: 0deg; }
  to { translate: 0 14px; rotate: 180deg; }
}

.game__visual-caption {
  text-align: center;
  margin-top: 1.4rem;
  font-size: .85rem;
  color: var(--text-dim);
  letter-spacing: .08em;
}

.game__tagline {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin: .8rem 0 1.6rem;
}

.game__desc {
  color: var(--text-dim);
  margin-bottom: 1.8rem;
}
.game__desc strong { color: var(--text); }

.advantages {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}
.advantages__title {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--cyan);
}
.advantages ul { display: grid; gap: .65rem; }
.advantages li {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  color: var(--text-dim);
  font-size: .97rem;
}
.advantages li::before {
  content: "✦";
  color: var(--magenta);
  flex-shrink: 0;
}
.advantages strong { color: var(--text); }

.game__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(170px, auto);
  gap: 1rem;
}

.bento__item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  transform-style: preserve-3d;
}
.bento__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, .16), transparent 65%);
  opacity: 0;
  transition: opacity .35s;
}
.bento__item:hover::before { opacity: 1; }
.bento__item:hover {
  border-color: rgba(124, 58, 237, .45);
  box-shadow: 0 20px 50px -20px rgba(124, 58, 237, .35);
}
.bento__item--wide { grid-column: span 2; }

.bento__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .25), rgba(34, 211, 238, .15));
  border: 1px solid var(--border);
  margin-bottom: 1.1rem;
}
.bento__item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.bento__item p { color: var(--text-dim); font-size: .94rem; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 45%, var(--border) 45%);
  border-radius: 2px;
}

.timeline__item { position: relative; padding-top: 2.2rem; }
.timeline__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-dim);
  font-size: 0;
  z-index: 1;
}
.timeline__item.is-done::before,
.timeline__item.is-current::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 211, 238, .8);
}
.timeline__item.is-current::before {
  animation: current-pulse 2s infinite;
}

@keyframes current-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); }
  50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
}

.timeline__item time {
  font-size: .82rem;
  letter-spacing: .14em;
  color: var(--cyan);
  text-transform: uppercase;
  font-weight: 600;
}
.timeline__item h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin: .5rem 0 .4rem;
}
.timeline__item p { color: var(--text-dim); font-size: .9rem; }
.timeline__item.is-current time { color: var(--magenta); }

.community__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.community-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 2rem 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.community-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}
.community-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.community-card p { color: var(--text-dim); font-size: .92rem; flex-grow: 1; }
.community-card__cta { font-weight: 600; font-size: .92rem; color: var(--cyan); }

.community-card--discord:hover { border-color: #5865F2; box-shadow: 0 24px 60px -24px rgba(88, 101, 242, .5); }
.community-card--discord:hover .community-card__cta { color: #8b96ff; }
.community-card--tg:hover { border-color: #29b6f6; box-shadow: 0 24px 60px -24px rgba(41, 182, 246, .5); }
.community-card--yt:hover { border-color: #ff4d4d; box-shadow: 0 24px 60px -24px rgba(255, 77, 77, .5); }

.newsletter {
  background: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(34, 211, 238, .09));
  border: 1px solid rgba(124, 58, 237, .3);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  backdrop-filter: blur(12px);
}
.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 700;
  margin-bottom: .5rem;
}
.newsletter__sub { color: var(--text-dim); margin-bottom: 1.8rem; }

.newsletter__row {
  display: flex;
  gap: .8rem;
  max-width: 520px;
  margin-inline: auto;
}
.newsletter__row input {
  flex: 1;
  min-width: 0;
  background: rgba(5, 6, 15, .6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .95em 1.4em;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.newsletter__row input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .15);
}
.newsletter__row input::placeholder { color: var(--text-dim); }

.newsletter__msg {
  margin-top: 1rem;
  font-size: .92rem;
  min-height: 1.4em;
  color: var(--cyan);
}
.newsletter__msg.is-error { color: #ff7b7b; }

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 4rem 0 2rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer__brand p { color: var(--text-dim); font-size: .92rem; margin-top: 1rem; }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.footer__col a {
  display: block;
  color: var(--text-dim);
  font-size: .95rem;
  padding-block: .3rem;
  transition: color .2s, transform .2s;
}
.footer__col a:hover { color: var(--cyan); transform: translateX(4px); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  border-top: 1px solid var(--border);
  padding-top: 1.8rem;
  color: var(--text-dim);
  font-size: .85rem;
}

.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(5, 6, 15, .8);
  backdrop-filter: blur(10px);
  color: var(--cyan);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(34, 211, 238, .35); }

.tilt-card { will-change: transform; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .timeline::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 6, 15, .97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 2rem;
    transform: translateY(-130%);
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
    z-index: -1;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu li { border-bottom: 1px solid var(--border); }
  .nav__menu li:last-child { border-bottom: 0; }
  .nav__link { display: block; padding: 1rem 0; font-size: 1.1rem; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }

  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .game__grid, .about__grid { grid-template-columns: 1fr; }
  .community__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: auto; }
  .timeline { grid-template-columns: 1fr; }
  .newsletter__row { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: clamp(.8rem, 3vw, 2rem);
}
.game-modal[hidden] { display: none; }

.game-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 10, .82);
  backdrop-filter: blur(10px);
}

.game-modal__window {
  position: relative;
  width: min(1100px, 100%);
  height: min(780px, 100%);
  display: flex;
  flex-direction: column;
  background: #070918;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 40px 120px -30px rgba(124, 58, 237, .55),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  opacity: 0;
  transform: translateY(26px) scale(.97);
  transition: opacity .35s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}
.game-modal.is-open .game-modal__window {
  opacity: 1;
  transform: none;
}

.game-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-strong);
  backdrop-filter: blur(12px);
}

.game-modal__title {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.game-modal__controls { display: flex; gap: .4rem; }
.game-modal__controls button,
.game-modal__controls a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.game-modal__controls button:hover,
.game-modal__controls a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, .35);
}

.game-modal__frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
}
.game-modal__frame-wrap:fullscreen { background: #000; }
.game-modal__frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.game-modal__fallback {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  translate: -50% 0;
  margin: 0;
  padding: .6em 1.2em;
  border-radius: 999px;
  background: rgba(5, 6, 15, .92);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .88rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.game-modal__fallback.is-visible { opacity: 1; visibility: visible; }
.game-modal__fallback a { color: var(--cyan); font-weight: 600; }
.game-modal__fallback a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .game-modal { padding: .5rem; }
  .game-modal__window { height: calc(100dvh - 1rem); border-radius: 16px; }
  .game-modal__fallback { max-width: 92%; text-align: center; }
}

.error-page__code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6rem, 22vw, 12rem);
  line-height: 1;
  letter-spacing: .02em;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 46px rgba(124, 58, 237, .35));
}
.error-page__lang { color: var(--text-dim); font-size: .92rem; }
.error-page__lang a { color: var(--cyan); font-weight: 600; }
.error-page__lang a:hover { text-decoration: underline; }

.games {
  position: relative;
}
.games__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  isolation: isolate;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, var(--card-accent, var(--cyan)) 130%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .45;
  transition: opacity .35s;
  pointer-events: none;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -28px rgba(0,0,0,.85); }
.game-card:hover::after { opacity: 1; }
.game-card--rift { --card-accent: #22d3ee; }
.game-card--cosmo { --card-accent: #e879f9; }

.game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #060816;
  border: 1px solid var(--border);
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.game-card:hover .game-card__media img { transform: scale(1.04); }
.game-card__media--rift::after,
.game-card__media--cosmo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(5, 6, 15, .55), transparent 55%);
}
.game-card__media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 58, 237, .35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(34, 211, 238, .25), transparent 55%),
    #060816;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.game-card__tag {
  position: absolute;
  top: .9rem;
  left: .9rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: .35em .8em;
  border-radius: 999px;
  background: rgba(5, 6, 15, .75);
  border: 1px solid var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.game-card__tag .dot-pulse { width: 6px; height: 6px; }

.game-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.game-card__tagline {
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--card-accent, var(--cyan));
  margin-top: -.4rem;
}
.game-card__desc {
  color: var(--text-dim);
  font-size: .95rem;
  flex-grow: 1;
}
.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.game-card__meta span {
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: .35em .8em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}
.game-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .4rem;
}

.cosmorig-page .hero { min-height: 78svh; }
.cosmorig-page .hero__brand { width: min(420px, 78vw); }

.cosmo-hero__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(232, 121, 249, .45);
}
.cosmo-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cosmo-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 15, .7));
  pointer-events: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #060816;
  cursor: pointer;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery__item:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 121, 249, .45);
  box-shadow: 0 18px 50px -20px rgba(232, 121, 249, .3);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__caption {
  position: absolute;
  left: .9rem;
  bottom: .9rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(5, 6, 15, .7);
  border: 1px solid var(--border);
  padding: .35em .8em;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 195;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(2, 3, 10, .9);
  backdrop-filter: blur(14px);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -20px rgba(124, 58, 237, .5);
  background: #060816;
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(5, 6, 15, .8);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--magenta); color: var(--magenta); }
.lightbox__caption {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  translate: -50% 0;
  color: var(--text-dim);
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.status-table th,
.status-table td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.status-table th {
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
}
.status-table td:last-child { color: var(--text-dim); }
.status-table tr:hover td { background: rgba(255, 255, 255, .02); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25em .7em;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}
.badge--ok { color: #6ee7b7; border-color: rgba(110, 231, 183, .35); background: rgba(110, 231, 183, .08); }
.badge--partial { color: #fcd34d; border-color: rgba(252, 211, 77, .35); background: rgba(252, 211, 77, .08); }
.badge--planned { color: #93c5fd; border-color: rgba(147, 197, 253, .35); background: rgba(147, 197, 253, .08); }
.badge--idea { color: #c4b5fd; border-color: rgba(196, 181, 253, .35); background: rgba(196, 181, 253, .08); }
.badge--removed { color: #fca5a5; border-color: rgba(252, 165, 165, .35); background: rgba(252, 165, 165, .08); }

.cosmo-cta {
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 121, 249, .22), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, .16), transparent 55%),
    linear-gradient(135deg, rgba(124, 58, 237, .18), rgba(34, 211, 238, .08));
  border: 1px solid rgba(232, 121, 249, .3);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
  backdrop-filter: blur(12px);
}
.cosmo-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: .6rem;
}
.cosmo-cta p { color: var(--text-dim); max-width: 560px; margin: 0 auto 1.6rem; }
.cosmo-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

@media (max-width: 860px) {
  .games__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .status-table { font-size: .82rem; }
  .status-table th, .status-table td { padding: .65rem .7rem; }
}
