:root {
  --bg: #060912;
  --bg2: #0b1020;
  --card: rgba(16, 22, 40, .72);
  --line: rgba(160, 190, 255, .12);
  --text: #e8edf7;
  --muted: #8d97ad;
  --gold: #ffd27a;
  --blue: #7fb4ff;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #0b1020; }

/* ---------- sky ---------- */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.aurora {
  position: fixed; inset: -20% -10% auto; height: 80vh; z-index: -1; pointer-events: none; opacity: .55;
  background: radial-gradient(40% 50% at 30% 40%, rgba(80, 140, 255, .22), transparent 70%),
              radial-gradient(35% 45% at 70% 30%, rgba(120, 90, 255, .16), transparent 70%),
              radial-gradient(30% 40% at 55% 60%, rgba(60, 220, 200, .10), transparent 70%);
  filter: blur(20px); animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(4%, 6%, 0) scale(1.1); } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(16px, 4vw, 48px); transition: background .5s, padding .5s var(--ease), border-color .5s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(6, 9, 18, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 30px; color: var(--gold); transition: transform 1s var(--ease); }
.brand:hover .brand__mark { transform: rotate(360deg); }
.brand__name { font: 800 18px/1 var(--display); letter-spacing: .16em; display: flex; flex-direction: column; gap: 4px; }
.brand__name small { font: 500 9px/1 var(--mono); letter-spacing: .32em; color: var(--muted); }
.nav__links { display: flex; gap: 34px; font-size: 14px; color: var(--muted); }
.nav__links a { transition: color .3s; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--gold); color: #10131f; font: 600 15px/1 var(--body); transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s; box-shadow: 0 10px 40px -12px rgba(255, 210, 122, .6); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(255, 210, 122, .8); }
.btn--ghost { background: rgba(255, 255, 255, .05); color: var(--text); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
.btn--ghost:hover { border-color: rgba(127, 180, 255, .55); box-shadow: 0 0 30px -8px rgba(127, 180, 255, .45); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }

/* ---------- type ---------- */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--blue); margin: 0 0 18px; }
.h2 { font: 800 clamp(40px, 6vw, 80px)/1 var(--display); letter-spacing: -.02em; margin: 0; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px clamp(16px, 6vw, 96px) 80px; overflow: hidden; }
.hero__content { position: relative; z-index: 2; max-width: 980px; }
.hero__title { font: 800 clamp(44px, 6.6vw, 104px)/1 var(--display); letter-spacing: -.035em; margin: 0 0 26px; }
.hero__title span { background: linear-gradient(100deg, var(--gold), #ffe9b8 40%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(17px, 1.6vw, 20px); color: #b6c0d6; max-width: 600px; margin: 0 0 36px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.in { opacity: 0; transform: translateY(36px); filter: blur(8px); }
.ready .in { opacity: 1; transform: none; filter: none; transition: opacity 1.3s var(--ease) var(--d), transform 1.3s var(--ease) var(--d), filter 1.3s var(--ease) var(--d); }

.compass { position: absolute; right: clamp(-200px, -6vw, -40px); top: 50%; width: min(70vh, 640px); aspect-ratio: 1; transform: translate3d(var(--cx, 0), calc(-50% + var(--cy, 0px)), 0); opacity: .9; pointer-events: none; }
.compass__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(127, 180, 255, .18); animation: spin 120s linear infinite; }
.compass__ring::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(127, 180, 255, .14); }
.compass__ring--2 { inset: 18%; border-color: rgba(255, 210, 122, .16); animation-duration: 80s; animation-direction: reverse; }
.compass__star { position: absolute; inset: 22%; width: 56%; height: 56%; filter: drop-shadow(0 0 30px rgba(255, 210, 122, .45)); animation: float 7s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-14px) rotate(2deg); } }
@media (max-width: 900px) { .compass { opacity: .35; right: -30%; } }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 2s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) clamp(16px, 6vw, 96px); }
.head { margin-bottom: clamp(40px, 6vw, 70px); }
[data-reveal] { opacity: 0; transform: translateY(50px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--rd, 0s); }
[data-reveal].shown { opacity: 1; transform: none; }

/* ---------- games ---------- */
.game { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(26px, 4vw, 60px); align-items: center; padding: clamp(18px, 2.4vw, 28px); border-radius: 26px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); margin-bottom: 28px; transition: border-color .5s, transform .8s var(--ease); }
.game:hover { border-color: rgba(127, 180, 255, .3); }
.game__art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.game__art img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.15); transition: transform 1.4s var(--ease); }
.game:hover .game__art img { transform: scale(1.05); }
.game__badge { position: absolute; top: 14px; left: 14px; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: var(--gold); color: #10131f; }
.game__badge--soon { background: rgba(127, 180, 255, .16); color: var(--blue); border: 1px solid rgba(127, 180, 255, .35); }
.game__meta { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.game__title { font: 800 clamp(34px, 4.4vw, 58px)/1 var(--display); letter-spacing: -.02em; margin: 0 0 16px; }
.game__title--ll { font-family: 'Outfit', sans-serif; letter-spacing: .12em; }
.game__title--ll span { color: #f2c879; margin-left: .2em; }
.game__desc { color: #b6c0d6; margin: 0 0 26px; max-width: 460px; }
.game__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.game--soon { grid-template-columns: 1fr 1.35fr; }
.game__art--soon { background: radial-gradient(circle at 50% 50%, #12203d, #070b16 70%); }
.soon__map { position: absolute; inset: -20%; opacity: .5;
  background-image: linear-gradient(rgba(127, 180, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 180, 255, .12) 1px, transparent 1px);
  background-size: 40px 40px; transform: perspective(500px) rotateX(55deg); animation: pan 20s linear infinite; }
@keyframes pan { to { background-position: 0 400px, 0 0; } }
.soon__pin { position: absolute; left: 50%; top: 46%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); box-shadow: 0 0 30px rgba(255, 210, 122, .7); animation: bob 2.4s ease-in-out infinite; }
.soon__pin::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #0b1020; }
@keyframes bob { 50% { transform: rotate(-45deg) translate(4px, -4px); } }
@media (max-width: 860px) {
  .game, .game--soon { grid-template-columns: 1fr; }
  .game--soon .game__art { order: -1; }
}

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); }
.about__text p { color: #b6c0d6; font-size: 18px; margin: 0 0 20px; max-width: 560px; }
.about__text .lead { font: 500 clamp(22px, 2.4vw, 30px)/1.3 var(--display); color: var(--text); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(50px, 7vw, 90px); }
.value { padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .6s var(--ease), border-color .4s; }
.value:hover { transform: translateY(-6px); border-color: rgba(255, 210, 122, .3); }
.value span { font: 500 12px/1 var(--mono); color: var(--gold); letter-spacing: .2em; }
.value h3 { font: 700 24px/1.1 var(--display); margin: 18px 0 10px; }
.value p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .about__grid, .values { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact__card { max-width: 860px; margin: 0 auto; text-align: center; padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 60px); border-radius: 30px; background: linear-gradient(160deg, rgba(30, 44, 80, .7), rgba(10, 14, 28, .85)); border: 1px solid var(--line); }
.contact__text { color: #b6c0d6; font-size: 18px; max-width: 520px; margin: 20px auto 28px; }
.contact__mail { display: inline-block; font: 700 clamp(18px, 2.6vw, 30px)/1.2 var(--display); color: var(--gold); border-bottom: 2px solid rgba(255, 210, 122, .35); padding-bottom: 4px; transition: border-color .3s; word-break: break-all; }
.contact__mail:hover { border-color: var(--gold); }
.contact__small { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.contact__small a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 36px clamp(16px, 6vw, 96px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer p { margin: 0; }
.footer__brand { font: 800 16px/1 var(--display); letter-spacing: .16em; color: var(--text); }
.footer__brand span { color: var(--muted); font-weight: 500; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal], .in { opacity: 1; transform: none; filter: none; }
}
.btn { white-space: nowrap; }
@media (max-width: 420px) { .nav .btn--sm { padding: 9px 13px; font-size: 12px; } .brand__name { font-size: 15px; } }

/* ---------- contact emails ---------- */
.contact__card { max-width: 900px; }
.mails { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; text-align: left; }
.mail { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 18px; background: rgba(6, 9, 18, .55); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, background .4s; }
.mail:hover { transform: translateY(-4px); border-color: rgba(255, 210, 122, .45); background: rgba(20, 28, 50, .7); }
.mail__icon { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.mail__label { font: 700 22px/1.1 var(--display); }
.mail__desc { font-size: 14px; color: var(--muted); }
.mail__addr { margin-top: 10px; font: 500 13px/1.3 var(--mono); color: var(--gold); word-break: break-all; }
@media (max-width: 860px) { .mails { grid-template-columns: 1fr; } }
.game__art img.game__img--menu { filter: brightness(1.45) contrast(1.05); }
