/* MilanaGames — brand: midnight indigo #070b22, sky blue #48c0fa → #1a96f8, cyan #7ae6fa, gold #ffc61a → #f8a808 */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/press-start-2p-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/press-start-2p-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/press-start-2p-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/press-start-2p-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  --bg: #070b22;
  --bg-deep: #050819;
  --bg-elevated: #0b1230;
  --bg-card: #0d1638;
  --bg-card-hover: #111d48;
  --glass: rgba(13, 22, 56, 0.62);
  --border: rgba(122, 200, 250, 0.13);
  --border-strong: rgba(122, 200, 250, 0.32);
  --text: #eef6ff;
  --text-muted: #a2b5d9;
  --blue: #48c0fa;
  --blue-strong: #1a96f8;
  --cyan: #7ae6fa;
  --gold: #ffc61a;
  --gold-strong: #f8a808;
  --gold-shade: #a86400;
  --gradient-gold: linear-gradient(180deg, #ffe066 0%, #ffc61a 48%, #f8a808 100%);
  --gradient-blue: linear-gradient(135deg, #7ae6fa 0%, #48c0fa 45%, #1a96f8 100%);
  --shadow-card: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --pixel-weight: 400;
  --pixel-scale: 1;
  --heading-scale: 1;
  --container: 1200px;
  --header-h: 76px;
}

/* Scripts the pixel font does not cover use bold system faces, scaled up to a matching size. */
:root.no-pixel {
  --font-pixel: var(--font);
  --pixel-weight: 800;
  --pixel-scale: 1.6;
  --heading-scale: 1.1;
}
/* Outfit lacks Azerbaijani "ə" and Vietnamese tone marks, so these use the system face throughout. */
:root:lang(az), :root:lang(vi) {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
:root:lang(ar), :root:lang(fa), :root:lang(ur) {
  --font: "Outfit", "SF Arabic", "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
  --font-pixel: var(--font);
  --pixel-weight: 800;
  --pixel-scale: 1.8;
  --heading-scale: 1.25;
}
:root:lang(ja) {
  --font: "Outfit", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --font-pixel: var(--font);
  --pixel-weight: 800;
  --pixel-scale: 1.65;
  --heading-scale: 1.1;
}
:root:lang(ko) {
  --font: "Outfit", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-pixel: var(--font);
  --pixel-weight: 800;
  --pixel-scale: 1.65;
  --heading-scale: 1.1;
}
:root:lang(zh) {
  --font: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-pixel: var(--font);
  --pixel-weight: 800;
  --pixel-scale: 1.65;
  --heading-scale: 1.1;
}
:root:lang(zh-Hant) {
  --font: "Outfit", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}
/* Stacked vowel and tone marks in these scripts clip at the default heading line height. */
:is(:lang(th), :lang(lo), :lang(my), :lang(km), :lang(si), :lang(bn), :lang(gu), :lang(hi), :lang(kn), :lang(ml), :lang(mr), :lang(ne), :lang(pa), :lang(ta), :lang(te), :lang(vi)) :is(h1, h2, h3) { line-height: 1.5; }
:lang(ko) { word-break: keep-all; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

img, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255, 198, 26, 0.85); color: var(--bg); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  transition: top 0.15s;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

/* Background */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.backdrop__aurora {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  will-change: transform;
  animation: aurora 26s ease-in-out infinite alternate;
}
.backdrop__aurora--blue {
  top: -32vmax;
  inset-inline-start: -22vmax;
  background: radial-gradient(circle, rgba(26, 150, 248, 0.26) 0%, rgba(26, 150, 248, 0.08) 38%, transparent 68%);
}
.backdrop__aurora--gold {
  bottom: -38vmax;
  inset-inline-end: -26vmax;
  background: radial-gradient(circle, rgba(248, 168, 8, 0.16) 0%, rgba(248, 168, 8, 0.05) 38%, transparent 68%);
  animation-duration: 32s;
  animation-direction: alternate-reverse;
}
.backdrop__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 24px 38px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 120px 90px, rgba(122, 230, 250, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 210px 160px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 70px 210px, rgba(255, 198, 26, 0.8), transparent),
    radial-gradient(1px 1px at 260px 260px, rgba(255, 255, 255, 0.6), transparent);
  background-size: 300px 300px;
  opacity: 0.4;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
.backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(72, 192, 250, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 192, 250, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000, transparent);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000, transparent);
}

@keyframes aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); }
}
@keyframes twinkle {
  from { opacity: 0.25; }
  to { opacity: 0.5; }
}

main, .header, .footer { position: relative; z-index: 1; }

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  font-size: calc(0.55rem * var(--pixel-scale));
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 0.75em;
  height: 0.75em;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: calc(clamp(1.2rem, 3vw, 2rem) * var(--heading-scale)); }
h2 { font-size: calc(clamp(1rem, 2.4vw, 1.5rem) * var(--heading-scale)); }
h3 { font-size: 1.05rem; }

.hero h1, .section__head h2, .page-hero h1, .legal-page h1, .section__title, .cta__box h2, .stores__box h2,
.community-teaser h2, .page-missing h1, .game-hero h1, .about__text h2 {
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  line-height: 1.55;
  color: var(--text);
  text-shadow: 0.12em 0.12em 0 rgba(26, 150, 248, 0.45);
}

.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0.12em 0.12em 0 rgba(168, 100, 0, 0.6));
}

.section { padding: 4.75rem 0; }
.section__head { margin-bottom: 2.75rem; max-width: 680px; }
.section__sub { color: var(--text-muted); margin-top: 0.9rem; font-size: 1.05rem; }
.section__title { margin-bottom: 2rem; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 230, 250, 0.28);
  background: rgba(72, 192, 250, 0.1);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(7, 11, 34, 0.72);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s, box-shadow 0.25s;
}
.header.is-scrolled { background: rgba(5, 8, 25, 0.92); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8); }

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

.logo picture, .footer__brand picture { display: block; }
.logo img { height: 44px; width: auto; transition: transform 0.25s var(--ease-out); }
.logo:hover img { transform: scale(1.04); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav__links > li > a:not(.nav__cta) {
  position: relative;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav__links > li > a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-blue);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}
.nav__links > li > a:not(.nav__cta):hover { color: var(--text); }
.nav__links > li > a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 198, 26, 0.55);
  background: rgba(255, 198, 26, 0.08);
  color: var(--gold);
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  font-size: calc(0.5rem * var(--pixel-scale));
  line-height: 1.6;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav__cta:hover { background: var(--gold); color: var(--bg); box-shadow: 0 0 24px rgba(255, 198, 26, 0.45); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Language menu */
.lang-switch { position: relative; }
.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--text); border-color: var(--border-strong); background: rgba(72, 192, 250, 0.08); }
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  inset-inline-end: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.15rem;
  width: min(540px, calc(100vw - 2rem));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 48, 0.97);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.75);
}
.lang-switch__menu a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lang-switch__menu a:hover { color: var(--text); background: rgba(72, 192, 250, 0.12); }
.lang-switch__menu a[aria-current] { color: var(--gold); background: rgba(255, 198, 26, 0.1); }

/* Buttons */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary {
  background: var(--gradient-gold);
  color: #2b1700;
  border-color: rgba(255, 236, 160, 0.7);
  box-shadow: 0 5px 0 var(--gold-shade), 0 16px 32px -10px rgba(255, 170, 0, 0.6);
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  font-size: calc(0.6rem * var(--pixel-scale));
  line-height: 1.7;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  translate: -110% 0;
  transition: translate 0.6s var(--ease-out);
}
.btn--primary:hover { color: #2b1700; transform: translateY(-2px); box-shadow: 0 7px 0 var(--gold-shade), 0 22px 40px -10px rgba(255, 170, 0, 0.7); }
.btn--primary:hover::after { translate: 110% 0; }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold-shade), 0 8px 16px -8px rgba(255, 170, 0, 0.6); }
.btn--ghost {
  border-color: rgba(122, 230, 250, 0.35);
  background: rgba(72, 192, 250, 0.07);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--cyan); background: rgba(72, 192, 250, 0.14); color: var(--cyan); transform: translateY(-2px); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(calc(100vh - var(--header-h)), 900px);
  min-height: min(calc(100svh - var(--header-h)), 900px);
  padding: 4rem 0 5rem;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 11, 34, 0.95) 36%, rgba(7, 11, 34, 0.5) 64%, rgba(7, 11, 34, 0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%),
    linear-gradient(180deg, rgba(7, 11, 34, 0.7) 0%, transparent 14%);
}
[dir="rtl"] .hero::after {
  background:
    linear-gradient(270deg, var(--bg) 0%, rgba(7, 11, 34, 0.95) 36%, rgba(7, 11, 34, 0.5) 64%, rgba(7, 11, 34, 0.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%),
    linear-gradient(180deg, rgba(7, 11, 34, 0.7) 0%, transparent 14%);
}
.hero__wall {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.hero__tilt {
  position: absolute;
  top: -45%;
  bottom: -45%;
  inset-inline-end: -8%;
  width: 62%;
  display: flex;
  gap: 1.25rem;
  transform: perspective(1600px) rotateY(-16deg) rotateZ(-12deg);
  transform-origin: center;
}
[dir="rtl"] .hero__tilt { transform: perspective(1600px) rotateY(16deg) rotateZ(12deg); }
.hero__col { flex: 1 1 0; min-width: 0; }
.hero__col--2 { margin-top: -12%; }
.hero__track {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  animation: wall-up calc(var(--wall-count, 11) * 6.4s) linear infinite;
  will-change: transform;
}
.hero__col--2 .hero__track { animation-name: wall-down; animation-duration: calc(var(--wall-count, 11) * 7.7s); }
.hero__col--3 .hero__track { animation-duration: calc(var(--wall-count, 11) * 5.5s); }
.hero.is-paused .hero__track { animation-play-state: paused; }
.wall-card {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 1024 / 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
}
.wall-card img { width: 100%; height: 100%; object-fit: cover; }

@keyframes wall-up {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}
@keyframes wall-down {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.hero__inner { position: relative; }
.hero__content { max-width: 640px; }
.hero__logo { width: 100%; max-width: 380px; margin-bottom: 1.75rem; filter: drop-shadow(0 12px 32px rgba(26, 150, 248, 0.35)); }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 230, 250, 0.3);
  background: rgba(72, 192, 250, 0.1);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero__pulse {
  position: relative;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.hero__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(3); opacity: 0; }
}
.hero h1 { font-size: calc(clamp(1.35rem, 3.3vw, 2.45rem) * var(--heading-scale)); line-height: 1.5; }
.hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 1.25rem 0 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.75rem; }
.hero__stats { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero__stats > div {
  min-width: 120px;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero__stats dt {
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  font-size: calc(0.95rem * var(--pixel-scale));
  line-height: 1.5;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats dd { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.35rem; }

/* Ticker */
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1rem 0;
  border-block: 1px solid var(--border);
  background: rgba(5, 8, 25, 0.7);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 2.75rem;
  padding-inline-end: 2.75rem;
  animation: ticker 55s linear infinite;
}
[dir="rtl"] .ticker__track { animation-name: ticker-rtl; }
.ticker.is-paused .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
}
.ticker__item img { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); }
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes ticker-rtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(50%, 0, 0); }
}

/* Spotlight */
.spotlight__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.spot-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  box-shadow: 0 32px 64px -32px color-mix(in srgb, var(--accent) 65%, transparent);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.spot-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--accent) 85%, transparent);
}
.spot-card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.spot-card__art { position: relative; overflow: hidden; aspect-ratio: 1024 / 500; }
.spot-card--lead .spot-card__art { aspect-ratio: auto; min-height: 380px; }
.spot-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.spot-card:hover .spot-card__art img { transform: scale(1.06); }
.spot-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-card) 0%, transparent 45%);
}
.spot-card--lead .spot-card__art::after { background: linear-gradient(270deg, var(--bg-card) 0%, transparent 35%); }
[dir="rtl"] .spot-card--lead .spot-card__art::after { background: linear-gradient(90deg, var(--bg-card) 0%, transparent 35%); }
.spot-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 0 1.75rem 1.75rem;
}
.spot-card--lead .spot-card__body {
  justify-content: center;
  padding: 2.75rem;
  background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
}
.spot-card__meta { display: flex; align-items: center; gap: 0.9rem; margin: 0.5rem 0 1rem; }
.spot-card--lead .spot-card__meta { margin-top: 0; }
.spot-card__icon {
  flex: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 17px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-card);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6);
}
.spot-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.spot-card h3 {
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  font-size: calc(0.85rem * var(--pixel-scale));
  line-height: 1.6;
}
.spot-card--lead h3 { font-size: calc(clamp(0.95rem, 1.8vw, 1.2rem) * var(--pixel-scale)); }
.spot-card__link { color: var(--text); }
.spot-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.spot-card__link:focus-visible { outline: none; }
.spot-card:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.spot-card:hover .spot-card__link { color: var(--gold); }
.spot-card__tagline { margin-top: 0.6rem; font-size: 1.05rem; font-weight: 600; color: color-mix(in srgb, var(--accent) 45%, #fff); }
.spot-card__summary { margin-top: 0.75rem; color: var(--text-muted); }
.spot-card .store-buttons { position: relative; z-index: 2; }

/* Library */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(13, 22, 56, 0.6);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.is-active {
  color: #2b1700;
  background: var(--gradient-gold);
  border-color: rgba(255, 236, 160, 0.7);
  box-shadow: 0 8px 24px -8px rgba(255, 170, 0, 0.6);
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.35rem;
}
.games__empty { color: var(--text-muted); max-width: 560px; }

.game-tile {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.game-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 24%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.game-tile:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 28px 56px -24px color-mix(in srgb, var(--accent) 75%, transparent);
}
.game-tile:hover::before { opacity: 1; }
.game-tile:focus-within { border-color: var(--gold); }
.game-tile.is-hidden { display: none; }
.game-tile__art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1024 / 500;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 55%, transparent), var(--bg-elevated) 75%);
}
.game-tile__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.game-tile:hover .game-tile__art img:not(.art-fallback) { transform: scale(1.07); }
.game-tile__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-card) 0%, transparent 55%);
}
.art-fallback { opacity: 0.7; filter: blur(22px) saturate(1.5); transform: scale(1.5); }
.game-tile__body { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; padding: 0.4rem 1.25rem 1.25rem; }
.game-tile__icon {
  width: 64px;
  height: 64px;
  margin: -34px 0 0.8rem;
  overflow: hidden;
  border-radius: 17px;
  border: 3px solid var(--bg-card);
  background: var(--bg-card);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.65);
}
.game-tile__icon img { width: 100%; height: 100%; object-fit: cover; }
.game-tile__genre {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.game-tile h3 { margin: 0.2rem 0 0.45rem; font-size: 1.2rem; line-height: 1.3; }
.game-tile__link { color: var(--text); }
.game-tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.game-tile__link:focus-visible { outline: none; }
.game-tile:hover .game-tile__link { color: var(--gold); }
.game-tile p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.store-chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: auto; }
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(5, 8, 25, 0.6);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.store-chip svg { width: 14px; height: 14px; }
.store-chip:hover { color: var(--bg); border-color: var(--gold); background: var(--gold); }

.game-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--bg);
  background: var(--accent, var(--gold));
}

/* Store badges */
.store-buttons { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.store-buttons--compact { margin-top: 1.25rem; }
.store-buttons--center { justify-content: center; margin-top: 2rem; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #0b0f24, #04060f);
  color: var(--text);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.15;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.store-btn svg { flex: none; }
.store-btn small { display: block; font-size: 0.66rem; font-weight: 500; color: var(--text-muted); }
.store-btn:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  color: var(--text);
  box-shadow: 0 16px 32px -12px rgba(255, 198, 26, 0.45);
}

/* Community teaser */
.community-teaser__box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 3.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 230, 250, 0.25);
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 230, 250, 0.18), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255, 198, 26, 0.08), transparent 50%),
    linear-gradient(160deg, #0f1b47, #0a1131);
  box-shadow: var(--shadow-card);
}
.community-teaser__text p:not(.eyebrow) { color: var(--text-muted); margin: 1rem 0 1.75rem; max-width: 540px; font-size: 1.05rem; }
.community-teaser__apps { display: grid; gap: 0.85rem; }
.community-teaser__apps a {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(5, 8, 25, 0.55);
  color: var(--text);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.community-teaser__apps a:hover {
  transform: translateY(-4px);
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent, var(--cyan)) 70%, transparent);
  box-shadow: 0 24px 48px -20px color-mix(in srgb, var(--accent, var(--cyan)) 70%, transparent);
}
.community-teaser__icon {
  flex: none;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
}
.community-teaser__icon img { width: 100%; height: 100%; object-fit: cover; }
.community-teaser__apps strong, .community-teaser__values strong { display: block; font-size: 1.1rem; }
.community-teaser__apps small, .community-teaser__values small { display: block; color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }
.community-teaser__values { display: grid; gap: 0.85rem; }
.community-teaser__values li {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--cyan);
  background: rgba(5, 8, 25, 0.55);
}

/* Store pages */
.stores__box {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(26, 150, 248, 0.28), transparent 60%),
    linear-gradient(180deg, #0e1940, #0a1131);
  box-shadow: var(--shadow-card);
}
.stores__box .eyebrow { justify-content: center; }
.stores__box .section__sub { max-width: 580px; margin-inline: auto; }
.stores__icons { display: flex; justify-content: center; margin-bottom: 2rem; padding-inline-start: 16px; }
.stores__icons img {
  width: 68px;
  height: 68px;
  margin-inline-start: -16px;
  border-radius: 18px;
  border: 3px solid #0e1940;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s var(--ease-out);
}
.stores__icons img:nth-child(odd) { transform: rotate(-7deg); }
.stores__icons img:nth-child(even) { transform: translateY(-8px) rotate(6deg); }
.stores__box:hover .stores__icons img { transform: translateY(-4px) rotate(0); }

/* Inner pages */
.breadcrumbs { padding-top: 1.75rem; font-size: 0.85rem; position: relative; z-index: 2; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 0.4rem; opacity: 0.5; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current] { color: var(--text); }

.page-hero { padding: 3rem 0 1.5rem; }
.page-hero > *, .legal-page > *, .page-missing > * { max-width: 820px; }
.page-hero h1 { font-size: calc(clamp(1.25rem, 3vw, 2.1rem) * var(--heading-scale)); }
.page-hero__lead { margin-top: 1.25rem; font-size: 1.15rem; color: var(--text-muted); }

.game-hero { position: relative; isolation: isolate; padding: 2.25rem 0 3.5rem; }
.game-hero__backdrop {
  position: absolute;
  inset: -12rem 0 0;
  z-index: -1;
  overflow: hidden;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.game-hero__backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.4); transform: scale(1.25); }
.game-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
.game-hero--art .game-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.game-hero__title { display: flex; align-items: center; gap: 1.35rem; }
.game-hero__icon {
  flex: none;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-card);
  box-shadow: 0 20px 44px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.game-hero__icon img { width: 100%; height: 100%; object-fit: cover; }
.game-hero__icon .game-icon-fallback { font-size: 2.5rem; }
.game-hero h1 { font-size: calc(clamp(1.15rem, 2.8vw, 1.9rem) * var(--heading-scale)); text-shadow: 0.12em 0.12em 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.game-hero .eyebrow { margin-bottom: 0.5rem; }
.game-hero__tagline { margin-top: 1.5rem; font-size: 1.2rem; font-weight: 500; max-width: 640px; }
.game-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  max-width: 640px;
  margin-top: 2rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.game-hero__meta li {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--glass);
}
.game-hero__meta span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}
.game-hero__art {
  overflow: hidden;
  aspect-ratio: 1024 / 500;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 48px 90px -36px color-mix(in srgb, var(--accent) 90%, transparent), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform 0.6s var(--ease-out);
}
[dir="rtl"] .game-hero__art { transform: perspective(1400px) rotateY(9deg) rotateX(3deg); }
.game-hero__art:hover, [dir="rtl"] .game-hero__art:hover { transform: none; }
.game-hero__art img { width: 100%; height: 100%; object-fit: cover; }

.game-detail { padding-bottom: 2rem; }
.game-detail__text {
  max-width: 860px;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  box-shadow: var(--shadow-card);
}
.game-detail__text h2 {
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  font-size: calc(0.62rem * var(--pixel-scale));
  line-height: 1.8;
  color: var(--gold);
  margin: 2rem 0 0.85rem;
}
.game-detail__text h2:first-child { margin-top: 0; }
.game-detail__text p, .game-detail__text li { color: var(--text-muted); margin-bottom: 0.9rem; font-size: 1.02rem; }
.game-detail__text ul { margin-bottom: 1rem; }
.game-detail__text li { position: relative; padding-inline-start: 1.3rem; margin-bottom: 0.5rem; }
.game-detail__text li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

.game-download { padding-bottom: 1rem; }
.game-download__box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  max-width: 860px;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 198, 26, 0.32);
  background:
    radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--accent, var(--gold)) 22%, transparent), transparent 55%),
    linear-gradient(120deg, rgba(255, 198, 26, 0.08), transparent 60%),
    var(--bg-card);
  box-shadow: var(--shadow-card);
}
.game-download__icon { width: 72px; height: 72px; overflow: hidden; border-radius: 18px; border: 2px solid rgba(255, 255, 255, 0.12); }
.game-download__icon img { width: 100%; height: 100%; object-fit: cover; }
.game-download h2 { font-size: 1.2rem; color: var(--text); }
.game-download p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.3rem; }
.game-download .store-buttons { margin-top: 0; justify-content: flex-end; }

.community-apps__grid { display: grid; gap: 1.5rem; }
.app-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--accent, var(--cyan)) 40%, transparent);
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent, var(--cyan)) 22%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  box-shadow: 0 32px 64px -32px color-mix(in srgb, var(--accent, var(--cyan)) 60%, transparent);
}
.app-card__icon {
  width: 128px;
  height: 128px;
  overflow: hidden;
  border-radius: 30px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
}
.app-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card h3 {
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  font-size: calc(0.8rem * var(--pixel-scale));
  line-height: 1.7;
}
.app-card h3 a { color: var(--text); }
.app-card h3 a:hover { color: var(--gold); }
.app-card__tagline { margin-top: 0.5rem; color: var(--gold); font-weight: 600; font-size: 1.05rem; }
.app-card p:not(.app-card__tagline) { margin-top: 0.85rem; color: var(--text-muted); max-width: 680px; }
.app-card__more { display: inline-block; margin-top: 1.25rem; font-weight: 700; }
.app-card__more::after { content: " →"; }
[dir="rtl"] .app-card__more::after { content: " ←"; }

/* About */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.about__text p:not(.eyebrow) { color: var(--text-muted); margin-top: 1.1rem; font-size: 1.05rem; }
.about__cards { display: flex; flex-direction: column; gap: 1rem; }
.about__cards--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.about-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.about__cards--row .about-card { flex-direction: column; }
.about-card__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient-blue);
  color: var(--bg);
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 0.7rem;
  box-shadow: 0 10px 24px -8px rgba(26, 150, 248, 0.7);
}
.about-card h3 {
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  font-size: calc(0.55rem * var(--pixel-scale));
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.about-card p { font-size: 0.93rem; color: var(--text-muted); }

/* CTA */
.cta__box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 198, 26, 0.35);
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 198, 26, 0.2), transparent 50%),
    radial-gradient(circle at 0% 0%, rgba(26, 150, 248, 0.16), transparent 50%),
    linear-gradient(160deg, #111a42, #0a1131);
  box-shadow: var(--shadow-card);
}
.cta__box > div > p:not(.eyebrow) { color: var(--text-muted); margin-top: 0.85rem; max-width: 540px; font-size: 1.05rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.cta__box--form { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; gap: 2.5rem; }

/* Contact form */
.contact-form { position: relative; display: grid; gap: 1rem; width: 100%; }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-form__field { display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.contact-form label { color: var(--text); font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(5, 8, 25, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form textarea { min-height: 150px; line-height: 1.55; resize: vertical; }
.contact-form select { cursor: pointer; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(122, 230, 250, 0.25);
}
.contact-form [aria-invalid="true"] { border-color: #ff8f8f; }
.contact-form .contact-form__error { margin: 0; color: #ffb3b3; font-size: 0.86rem; }
.contact-form .contact-form__note { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.contact-form__note a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.contact-form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.85rem 1.25rem; }
.contact-form .contact-form__status { margin: 0; color: var(--text-muted); font-size: 0.92rem; font-weight: 600; }
.contact-form .contact-form__status.is-error { color: #ffb3b3; }
.contact-form button[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.contact-form__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-done {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(53, 196, 139, 0.45);
  background: rgba(53, 196, 139, 0.08);
}
.contact-done:focus { outline: none; }
.contact-done p { margin: 0; color: var(--text-muted); }
.contact-done .contact-done__title { color: var(--text); font-weight: 700; font-size: 1.15rem; }
.legal-page .contact-form, .legal-page .contact-done { margin: 1.25rem 0 2rem; }
.contact-page { min-height: 50vh; }

/* Legal pages */
.legal-page { padding: 2.5rem 0 5rem; }
.legal-page h1 { margin-bottom: 0.5rem; font-size: calc(clamp(0.95rem, 2.5vw, 1.3rem) * var(--heading-scale)); }
.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-page .legal-notice {
  margin: -0.75rem 0 2rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border-inline-start: 3px solid var(--gold);
  background: rgba(255, 198, 26, 0.07);
  font-size: 0.9rem;
}
.legal-page h2 {
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  font-size: calc(0.58rem * var(--pixel-scale));
  line-height: 1.8;
  color: var(--gold);
  margin: 2.25rem 0 0.85rem;
}
.legal-page h3 { margin: 1.25rem 0 0.5rem; font-size: 1.02rem; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 0.85rem; }
.legal-page ul, .legal-page ol { list-style: disc; padding-inline-start: 1.25rem; margin-bottom: 1rem; }
.legal-page ol { list-style: decimal; }
.legal-page strong { color: var(--text); }
.legal-page a { overflow-wrap: anywhere; }
.legal-page .app-legal {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.92rem;
}
.legal-page .app-legal div { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; }
.legal-page .app-legal dt { min-width: 9rem; color: var(--text-muted); }
.legal-page .app-legal dd { color: var(--text); overflow-wrap: anywhere; }
.legal-page .app-legal + .legal-notice { margin-top: 0; }
.legal-page .support-titles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.25rem 1.5rem;
}

.legal-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.legal-nav a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(13, 22, 56, 0.6);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.legal-nav a:hover { border-color: var(--border-strong); color: var(--text); }
.legal-nav a.is-current { border-color: var(--blue); background: rgba(72, 192, 250, 0.14); color: var(--cyan); }

.page-missing { padding: 6rem 0 7rem; }
.page-missing h1 { margin-bottom: 1.25rem; }
.page-missing p:not(.eyebrow) { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }

/* Footer */
.footer {
  margin-top: 2rem;
  padding: 3.5rem 0 2.25rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(5, 8, 25, 0.4), rgba(5, 8, 25, 0.9));
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--gold), transparent);
  opacity: 0.6;
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.footer__brand img { height: 45px; width: auto; margin-bottom: 0.85rem; }
.footer__brand p { font-size: 0.88rem; color: var(--text-muted); max-width: 320px; }
.footer__title {
  font-family: var(--font-pixel);
  font-weight: var(--pixel-weight);
  font-size: calc(0.45rem * var(--pixel-scale));
  line-height: 1.6;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col a { font-size: 0.9rem; color: var(--text-muted); }
.footer__col a:hover { color: var(--text); }
.footer__languages { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer__languages ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
.footer__languages a { font-size: 0.84rem; color: var(--text-muted); }
.footer__languages a:hover { color: var(--blue); }
.footer__languages a[aria-current] { color: var(--gold); }
.footer__copy { grid-column: 1 / -1; font-size: 0.84rem; color: var(--text-muted); }

/* Scroll reveal: main.js only hides elements that start below the fold, so content never depends on scripts. */
.reveal {
  opacity: 0;
  translate: 0 32px;
  transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* Responsive */
@media (max-width: 1100px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 0.5rem 0 1.25rem;
    background: rgba(5, 8, 25, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links > li > a:not(.nav__cta) { display: block; padding: 0.9rem 1.5rem; }
  .nav__links > li > a:not(.nav__cta)::after { display: none; }
  .nav__links > li > .nav__cta { display: inline-block; margin: 0.6rem 1.5rem 0; padding: 0.75rem 1.1rem; }
  .lang-switch { padding: 0.5rem 1.5rem; }
  .lang-switch__menu {
    position: static;
    width: auto;
    max-height: 45vh;
    max-height: 45dvh;
    margin-top: 0.6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-shadow: none;
  }
}

@media (max-width: 960px) {
  .cta__box--form { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .hero { min-height: auto; padding: 3.5rem 0 4.5rem; }
  .hero::after,
  [dir="rtl"] .hero::after {
    background:
      linear-gradient(180deg, rgba(7, 11, 34, 0.55) 0%, rgba(7, 11, 34, 0.86) 40%, var(--bg) 100%);
  }
  .hero__tilt { inset-inline: -35% -35%; width: auto; top: -30%; bottom: -30%; opacity: 0.75; }
  .spotlight__grid, .about__grid, .community-teaser__box { grid-template-columns: minmax(0, 1fr); }
  .spot-card--lead { grid-template-columns: minmax(0, 1fr); }
  .spot-card--lead .spot-card__art { aspect-ratio: 1024 / 500; min-height: 0; }
  .spot-card--lead .spot-card__art::after,
  [dir="rtl"] .spot-card--lead .spot-card__art::after { background: linear-gradient(0deg, var(--bg-card) 0%, transparent 45%); }
  .spot-card--lead .spot-card__body { padding: 0 1.75rem 1.75rem; background: none; }
  .spot-card--lead .spot-card__meta { margin-top: 0.5rem; }
  .about__cards--row { grid-template-columns: minmax(0, 1fr); }
  .about__cards--row .about-card { flex-direction: row; }
  .footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .game-hero--art .game-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .game-hero__art { order: -1; }
  .game-hero__art, [dir="rtl"] .game-hero__art { transform: none; }
  .game-download__box { grid-template-columns: auto minmax(0, 1fr); }
  .game-download .store-buttons { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: minmax(0, 1fr); }
  .contact-form__actions .btn { width: 100%; }
  :root { --header-h: 68px; }
  .container { width: min(100% - 2rem, var(--container)); }
  .section { padding: 4rem 0; }
  .logo img { height: 38px; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero__logo { max-width: 78vw; }
  .hero__lead { font-size: 1.05rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats > div { flex: 1 1 0; min-width: 0; padding: 0.75rem 0.85rem; }
  .hero__tilt { gap: 0.75rem; }
  .hero__track { gap: 0.75rem; padding-bottom: 0.75rem; }
  .wall-card { border-radius: 12px; }
  .ticker { padding: 0.8rem 0; }
  .ticker__item { font-size: 0.9rem; }
  .ticker__item img { width: 34px; height: 34px; border-radius: 9px; }
  .games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
  .game-tile__body { padding: 0.3rem 0.85rem 0.95rem; }
  .game-tile__icon { width: 52px; height: 52px; margin-top: -28px; border-radius: 14px; }
  .game-tile h3 { font-size: 1rem; }
  .game-tile p { font-size: 0.84rem; }
  .store-chip { padding: 0.3rem 0.55rem; font-size: 0.7rem; }
  .spot-card__body, .spot-card--lead .spot-card__body { padding: 0 1.25rem 1.4rem; }
  .spot-card__icon { width: 56px; height: 56px; border-radius: 15px; }
  .community-teaser__box, .cta__box, .app-card { padding: 1.75rem 1.4rem; }
  .community-teaser__icon { width: 72px; height: 72px; border-radius: 18px; }
  .stores__box { padding: 2.5rem 1.25rem; }
  .stores__icons img { width: 52px; height: 52px; border-radius: 14px; margin-inline-start: -14px; }
  .stores__icons img:nth-child(n + 7) { display: none; }
  .cta__box { flex-direction: column; align-items: flex-start; }
  .game-hero__title { gap: 1rem; }
  .game-hero__icon { width: 88px; height: 88px; border-radius: 22px; }
  .game-detail__text { padding: 1.5rem; }
  .game-download__box { padding: 1.4rem; }
  .app-card { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .app-card__icon { width: 96px; height: 96px; border-radius: 24px; }
  .about__cards--row .about-card, .about-card { flex-direction: column; gap: 0.9rem; }
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-switch__menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .backdrop__aurora, .backdrop__stars, .hero__track, .ticker__track, .hero__pulse::after { animation: none; }
  .reveal { opacity: 1; translate: none; }
  .btn:hover, .btn:active, .game-tile:hover, .spot-card:hover, .store-btn:hover, .about-card:hover,
  .community-teaser__apps a:hover, .stores__box:hover .stores__icons img,
  .game-tile:hover .game-tile__art img:not(.art-fallback), .spot-card:hover .spot-card__art img { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Play-now store badge */
.store-btn--play {
  border-color: rgba(255, 198, 26, 0.55);
  background: linear-gradient(180deg, #2a1a00, #120a00);
  color: var(--gold);
  box-shadow: 0 12px 28px -12px rgba(255, 170, 0, 0.55);
}
.store-btn--play:hover {
  color: #fff4c8;
  border-color: var(--gold);
}
.store-chip--play {
  border-color: rgba(255, 198, 26, 0.45);
  color: var(--gold);
}
.game-download__box--play {
  border-color: rgba(255, 198, 26, 0.35);
}

/* Fullscreen browser play shell */
.page-play {
  background: #050714;
  min-height: 100dvh;
}
.page-play .skip-link { z-index: 40; }
.page-play #main {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.play-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: #050714;
}
.play-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 16, 40, 0.98), rgba(5, 7, 20, 0.96));
  z-index: 5;
}
.play-bar__back {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.play-bar__back:hover { color: var(--gold); }
.play-bar__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}
.play-bar__title img,
.play-bar__title .game-icon-fallback {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
}
.play-bar__title h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-bar__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.play-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-inline-start: auto;
}
.play-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
}
.play-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100dvh - 4.5rem);
  border: 0;
  background: #000;
}
.play-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  pointer-events: none;
  color: var(--text-muted);
  background: rgba(5, 7, 20, 0.55);
  transition: opacity 0.35s ease;
}
.play-loading.is-done { opacity: 0; }
.play-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #080b1c;
}
.play-stores p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.play-stores .store-buttons { margin-top: 0; }
.page-play.is-fullscreen .play-bar,
.page-play.is-fullscreen .play-stores { display: none; }
.page-play.is-fullscreen .play-frame { min-height: 100dvh; }

@media (max-width: 720px) {
  .play-bar__actions .btn--ghost { display: none; }
  .play-stores { flex-direction: column; align-items: stretch; }
}
