@font-face {
  font-family: Space Grotesk;
  src: url('/assets/space-grotesk.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: IBM Plex Mono;
  src: url('/assets/ibm-plex-mono.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: Noto Sans Armenian;
  src: url('/assets/noto-sans-armenian.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --yellow: #f8fc13;
  --push: #0b0b08;
  --bg: #10100e;
  --ink: #f9f8f0;
  --muted: #b1b0a3;
  --accent: var(--yellow);
  --line: #36362d;
  --panel: #1c1d14;
  --radius: 2px;
  --sans: 'Space Grotesk', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'Noto Sans Armenian', monospace;
  --armenian: 'Noto Sans Armenian', 'Space Grotesk', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html[lang='hy'] { --sans: var(--armenian); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--yellow); color: var(--push); }
h1, h2, h3, p, figure { margin: 0; }
[id] { scroll-margin-top: 26px; }
.shell { width: min(100% - 9vw, 1280px); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 10px; background: var(--bg); z-index: 3; opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }

.top { min-height: 81px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.top-actions { display: flex; align-items: center; gap: clamp(8px, 2.5vw, 32px); }
.brand { display: inline-flex; align-items: center; width: fit-content; gap: 9px; font-size: 19px; font-weight: 700; letter-spacing: -.065em; }
.brand img { width: 27px; height: auto; }
.nav-games { display: block; padding-block: 7px; font-size: 14px; font-weight: 700; }
.nav-games span { margin-left: 7px; color: var(--accent); }
.language-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 5px; }
.language-switch a { display: grid; place-items: center; min-width: 32px; min-height: 33px; border-radius: 3px; color: var(--muted); font: 700 12px/1 var(--mono); }
.language-switch a:hover { color: var(--ink); }
.language-switch a[aria-current] { background: var(--accent); color: var(--push); }
[lang='hy'] { font-family: var(--armenian); }

.hero { min-height: clamp(480px, 50vw, 620px); padding-block: 45px 56px; display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); align-items: stretch; gap: clamp(24px, 5.2vw, 80px); }
.hero-copy, .game-intro { align-self: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; letter-spacing: .15em; font-weight: 700; text-transform: uppercase; }
.eyebrow > span[aria-hidden] { background: var(--accent); height: 5px; width: 22px; transform: skew(-25deg); }
.hero h1 { font-weight: 700; line-height: .82; font-size: clamp(72px, 10.45vw, 156px); letter-spacing: -.099em; margin-block: 21px 28px; }
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
.intro-copy { max-width: 350px; color: var(--muted); font-size: clamp(16px, 1.5vw, 21px); line-height: 1.45; }
.primary { display: inline-flex; align-items: center; gap: 25px; min-height: 52px; padding: 0 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--push); font-weight: 700; font-size: 14px; transition: translate .25s var(--ease), box-shadow .25s var(--ease); }
.primary:hover { translate: 0 -3px; box-shadow: 0 5px 0 var(--line); }
.hero .primary, .game-hero .primary { margin-top: 25px; }

.logo-stage { --px: 0px; --py: 0px; position: relative; z-index: 0; isolation: isolate; display: grid; place-items: center; min-height: 385px; overflow: hidden; border: 1px solid #4c4f1e; border-radius: var(--radius); background: #191b09; }
.stage-grid { position: absolute; z-index: -3; inset: 0; background: radial-gradient(circle at 50% 46%, #484b15, transparent 65%), radial-gradient(#82863180 1px, transparent 1px) 0 0 / 15px 15px; }
.stage-ring { position: absolute; z-index: -2; width: min(70%, 365px); aspect-ratio: 1; top: 47%; left: 50%; translate: -50% -50%; border: 1px solid #b6b93e4d; border-radius: 50%; box-shadow: 0 0 0 19px #b6b93e10, 0 0 0 42px #b6b93e0b, 0 0 0 66px #b6b93e08; }
.stage-ring::after, .stage-ring::before { content: ''; position: absolute; background: #b6b93e38; }
.stage-ring::before { top: 50%; width: 142%; left: -21%; height: 1px; }
.stage-ring::after { left: 50%; height: 142%; top: -21%; width: 1px; }
.stage-logo { width: min(53%, 355px); display: grid; justify-items: center; gap: clamp(10px, 1.7vw, 19px); translate: var(--px) calc(var(--py) - 14px); transition: translate .5s var(--ease); }
.stage-logo .mark { width: 100%; height: auto; filter: drop-shadow(0 12px 25px #121400a0); animation: mascot-arrive .9s var(--ease) both; }
.stage-logo .signature { width: 57%; height: auto; animation: title-arrive .65s .29s var(--ease) both; }
.stage-cross { position: absolute; font: 23px/1 var(--mono); color: #b8bd46; }
.cross-top { top: 16px; left: 18px; }
.cross-bottom { bottom: 16px; right: 18px; }
.stage-slash { position: absolute; z-index: 1; width: 7px; height: 130%; left: -23%; top: -15%; transform: rotate(28deg); background: #fcffe4; box-shadow: 0 0 23px #fbfdda; opacity: 0; pointer-events: none; animation: slash-in .7s .18s var(--ease) both; }
.stage-play { position: absolute; left: 16px; bottom: 16px; padding: 10px 14px 10px 10px; border: 1px solid #8c8e50; border-radius: 2px; background: #121307; color: #fffef0; font-size: 13px; font-weight: 700; line-height: 1.35; transition: border-color .25s; }
.stage-play:hover { border-color: var(--yellow); }
.play-icon { padding-inline: 2px 8px; color: var(--yellow); font-size: 11px; }

.catalog { padding-block: 28px clamp(45px, 7vw, 100px); border-top: 1px solid var(--line); }
.section-heading h2 { font: 700 clamp(30px, 5.5vw, 68px)/1 var(--sans); letter-spacing: -.07em; }
.section-heading { margin-bottom: 24px; }
.release-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.platform-badge { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; min-height: 39px; padding: 5px 8px 5px 5px; color: #fffef7; background: #101311f2; border: 1px solid #6d7563; border-radius: 7px; white-space: nowrap; font-size: 12px; line-height: 1.1; font-weight: 700; }
.platform-badge.upcoming { color: #ebece0; }
a.platform-badge:hover { border-color: #acccff; background: #233243; }
a.platform-badge > span:last-child { font-size: 13px; color: #aaceff; }
.platform-label { display: grid; }
.platform-label small { color: #c0c3b6; margin-top: 3px; font: 9px/1 var(--mono); }
.platform-icon { display: grid; place-items: center; width: 24px; aspect-ratio: 1; color: #fff; background: linear-gradient(#60b7ff, #226fe0); border-radius: 5px; }
.platform-icon svg { display: block; width: 18px; }
.android .platform-icon { background: #103822; color: #8cedad; }
.upcoming.ios .platform-icon { background: #253545; color: #bfd9ff; }
.footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); min-height: 86px; gap: 16px; }
.footer > a:last-child { color: var(--muted); font-size: 13px; }
.geo-attribution { color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }

.back-row { padding-top: 24px; }
.back-row a { color: var(--muted); font-size: 14px; }
.back-row span { margin-right: 8px; color: var(--accent); }
.next-game { display: flex; align-items: center; justify-content: space-between; padding: 25px 0; gap: 12px; border-bottom: 1px solid var(--line); }
.next-game > span { color: var(--muted); font-size: 14px; }
.next-game strong { font-size: clamp(19px, 3vw, 30px); }
.next-game strong span[aria-hidden] { margin-left: 10px; color: var(--accent); }
.error-page { padding-block: 95px; }
.error-page h1 { margin-bottom: 22px; }

.intro-dialog { width: min(760px, calc(100% - 30px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); }
.intro-dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
.dialog-header { min-height: 57px; padding: 9px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-header h2 { font-size: 16px; }
.dialog-header button { background: transparent; border: 1px solid var(--line); border-radius: var(--radius); font-size: 24px; line-height: 1.1; width: 36px; height: 36px; }
.intro-dialog video { display: block; width: 100%; max-height: calc(100dvh - 94px); background: #000; }

@keyframes mascot-arrive { from { opacity: 0; transform: translateY(12px) scale(.91) rotate(-5deg); } to { opacity: 1; transform: none; } }
@keyframes title-arrive { from { opacity: .3; clip-path: inset(0 98% 0 0); transform: translateX(-7px); } to { opacity: 1; clip-path: inset(0); transform: none; } }
@keyframes slash-in { 0% { left: 19%; opacity: 0; } 28% { opacity: .3; } 100% { left: 88%; opacity: 0; } }
@keyframes header-arrive { from { opacity: .6; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.hero-copy, .game-intro { animation: header-arrive .65s var(--ease) both; }
.game-preview figure.enter-view { animation: header-arrive .6s var(--ease) both; }

@media (max-width: 780px) {
  .shell { width: calc(100% - 36px); }
  .top { min-height: 69px; gap: 9px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand img { width: 23px; }
  .nav-games { font-size: 12px; }
  .nav-games span { margin-left: 2px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 29px 34px; gap: 24px; }
  .hero h1 { font-size: clamp(58px, 13.2vw, 101px); margin: 13px 0 17px; line-height: .9; letter-spacing: -.078em; }
  .hero h1 em { display: inline; }
  .hero .primary, .game-hero .primary { margin-top: 18px; }
  .logo-stage { min-height: 0; aspect-ratio: 1.32; }
  .stage-logo { width: min(50%, 269px); gap: 8px; }
  .stage-ring { width: min(63%, 305px); }
  .stage-play { left: 10px; bottom: 10px; padding: 8px 10px; }
}

@media (max-width: 440px) {
  .shell { width: calc(100% - 28px); }
  .top { gap: 8px; }
  .language-switch a { min-width: 27px; }
  .footer { flex-wrap: wrap; gap: 6px 12px; padding-block: 14px; }
  .geo-attribution { order: 1; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .stage-slash { display: none; }
}
