:root {
  --bg: #08111f;
  --bg-soft: rgba(9, 19, 35, 0.72);
  --surface: rgba(13, 24, 43, 0.78);
  --surface-strong: #132441;
  --surface-dark: #091426;
  --surface-dark-soft: rgba(9, 20, 38, 0.92);
  --text: #edf4ff;
  --text-soft: #9fb1cb;
  --line: rgba(170, 196, 255, 0.12);
  --gold: #ffb84d;
  --gold-deep: #ff9e2c;
  --cyan: #5de1d3;
  --mint: #a5f0b2;
  --coral: #ff8b75;
  --shadow: 0 18px 60px rgba(1, 8, 20, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 184, 77, 0.16), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(93, 225, 211, 0.14), transparent 22%),
    radial-gradient(circle at 50% 120%, rgba(53, 102, 193, 0.22), transparent 36%),
    linear-gradient(180deg, #07101c 0%, #0b1527 42%, #08101d 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(167, 192, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 35px rgba(2, 10, 24, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.brand-copy span {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-soft);
}

.nav a {
  position: relative;
  transition: color 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--gold-deep), var(--cyan));
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.section {
  padding: 104px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero h1,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 7vw, 6.2rem);
}

.lead,
.section-heading p,
.feature-panel p,
.game-card p,
.studio-card p,
.contact-panel p {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-copy .lead {
  max-width: 58ch;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #1b315f, #24488b);
  box-shadow: 0 16px 30px rgba(36, 72, 139, 0.25);
}

.trailer-trigger {
  min-width: 168px;
}

.button-secondary {
  border-color: rgba(167, 192, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats article,
.signal-bar,
.feature-panel,
.game-card,
.studio-card,
.contact-panel,
.timeline-item {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 18px;
  border-radius: 22px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.hero-stats span {
  font-size: 0.94rem;
  color: var(--text-soft);
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  filter: blur(10px);
  border-radius: 999px;
}

.orb-gold {
  top: 40px;
  right: 20px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.92), rgba(255, 184, 77, 0));
}

.orb-cyan {
  bottom: 80px;
  left: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(93, 225, 211, 0.92), rgba(93, 225, 211, 0));
}

.device-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 22px;
  border: 1px solid rgba(180, 210, 255, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(18, 31, 54, 0.92), rgba(11, 20, 37, 0.82)),
    linear-gradient(145deg, rgba(255, 184, 77, 0.08), rgba(93, 225, 211, 0.1));
  box-shadow: 0 34px 70px rgba(2, 10, 24, 0.42);
}

.device-card__top,
.device-card__meta,
.signal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.pill,
.score,
.panel-tag,
.game-card__kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill {
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold-deep), var(--coral));
}

.score {
  color: var(--text-soft);
}

.device-screen {
  margin: 18px 0;
  min-height: 430px;
  padding: 24px;
  border-radius: 28px;
  color: #f3f8ff;
  background:
    radial-gradient(circle at 50% 20%, rgba(93, 225, 211, 0.16), transparent 26%),
    linear-gradient(180deg, #0b1630 0%, #14264e 100%);
}

.battle-lane {
  position: relative;
  height: 216px;
  margin-bottom: 28px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 17, 31, 0.1), rgba(8, 17, 31, 0.34)),
    linear-gradient(90deg, rgba(8, 17, 31, 0.08), rgba(8, 17, 31, 0.18)),
    url("ww.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(0, 0, 0, 0.16);
}

.battle-lane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(0deg, rgba(8, 17, 31, 0.28), transparent 34%);
  pointer-events: none;
}

.screen-copy {
  display: grid;
  gap: 8px;
}

.screen-copy p,
.screen-copy span {
  margin: 0;
  color: rgba(243, 248, 255, 0.75);
}

.screen-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
}

.device-card__meta {
  align-items: flex-start;
}

.meta-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.floating-card {
  position: absolute;
  z-index: 2;
  width: 210px;
  padding: 16px 18px;
  border: 1px solid rgba(180, 210, 255, 0.14);
  border-radius: 22px;
  background: rgba(13, 24, 43, 0.82);
  box-shadow:
    0 18px 42px rgba(2, 10, 24, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
}

.floating-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.floating-card strong {
  display: block;
  line-height: 1.45;
}

.floating-card--left {
  left: -12px;
  top: 110px;
  animation: floatLeft 6.5s ease-in-out infinite;
}

.floating-card--right {
  right: -10px;
  bottom: 110px;
  animation: floatRight 7.2s ease-in-out infinite;
}

.signal-bar {
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 16px 20px;
  border-radius: 24px;
}

.signal-bar span {
  color: var(--text-soft);
  font-weight: 700;
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.section-heading h2,
.contact-panel h2 {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
}

.featured-grid,
.studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.feature-panel,
.game-card,
.studio-card,
.contact-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.feature-panel {
  padding: 32px;
}

.feature-panel h3,
.game-card h3,
.studio-card h3 {
  margin: 14px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  line-height: 1.1;
}

.panel-tag,
.game-card__kicker {
  padding: 9px 12px;
  color: #ffd089;
  background: rgba(255, 184, 77, 0.12);
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-deep), var(--cyan));
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.store-copy {
  margin: 22px 0 0;
  max-width: 54ch;
  color: var(--text-soft);
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  padding: 14px 18px;
  border: 1px solid rgba(167, 192, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(7, 13, 24, 0.9);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 184, 77, 0.34);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.store-button__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: #ffffff;
}

.store-button__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.store-button__text {
  display: grid;
  gap: 3px;
}

.store-button__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 246, 255, 0.68);
}

.store-button__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  color: #ffffff;
}

.store-button--google .store-button__icon {
  width: 40px;
  height: 40px;
}

.feature-panel--highlight {
  color: #f2f6ff;
  background:
    radial-gradient(circle at 20% 20%, rgba(93, 225, 211, 0.26), transparent 20%),
    linear-gradient(135deg, #102042, #1a3266);
}

.feature-panel--highlight p {
  color: rgba(242, 246, 255, 0.8);
}

.feature-panel--highlight .panel-tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.screenshot-rotator {
  position: relative;
  margin-top: 26px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(93, 225, 211, 0.14), transparent 36%),
    rgba(7, 14, 28, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 45px rgba(0, 0, 0, 0.2);
}

.screenshot-single {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.screenshot-notes span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(242, 246, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.game-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
}

.game-card__icon {
  display: block;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.game-card--featured {
  color: #f3f8ff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 184, 77, 0.18), transparent 22%),
    linear-gradient(160deg, #102145 0%, #1e3c72 100%);
}

.game-card--featured p,
.game-card--featured .game-card__kicker {
  color: rgba(243, 248, 255, 0.82);
}

.game-card__glow {
  position: absolute;
  inset: auto -40px -40px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 225, 211, 0.28), transparent 62%);
}

.game-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.game-card__tags span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #c1d2ec;
  background: rgba(255, 255, 255, 0.06);
}

.game-card__stores {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.game-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(167, 192, 255, 0.12);
  border-radius: 999px;
  color: #f3f8ff;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.game-store-link:hover,
.game-store-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 184, 77, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.game-store-link__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #ffffff;
}

.game-store-link__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}


.studio-grid {
  margin-top: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studio-card {
  padding: 28px;
}

.studio-card span,
.timeline-item strong {
  font-family: "Space Grotesk", sans-serif;
  color: var(--gold-deep);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.timeline-item {
  padding: 24px;
  border-radius: 24px;
}

.timeline-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 34px;
  margin-bottom: 90px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(17, 30, 53, 0.96), rgba(10, 20, 37, 0.86));
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-details div {
  padding: 18px 20px;
  border: 1px solid rgba(167, 192, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-details span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.page-legal .nav a[aria-current="page"] {
  color: var(--text);
}

.page-legal .nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.legal-main {
  padding-bottom: 48px;
}

.legal-hero {
  padding-top: 72px;
}

.legal-hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.legal-content {
  padding: 36px 0 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 32px;
}

.legal-card--main {
  padding: 34px;
}

.legal-prose,
.legal-block,
.legal-contact-list {
  display: grid;
  gap: 16px;
}

.legal-prose p,
.legal-block p,
.legal-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.legal-card h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.legal-divider {
  height: 1px;
  margin: 26px 0;
  background: var(--line);
}

.legal-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.legal-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.legal-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(167, 192, 255, 0.14);
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.legal-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(167, 192, 255, 0.14);
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.legal-contact-list div {
  padding: 18px 20px;
  border: 1px solid rgba(167, 192, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-contact-list span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.legal-contact-list strong {
  line-height: 1.6;
}

.legal-inline-link {
  color: var(--cyan);
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--text-soft);
  line-height: 1.8;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 40px;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer a {
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 18, 0.82);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  border: 1px solid rgba(167, 192, 255, 0.14);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(12, 21, 38, 0.98), rgba(9, 17, 31, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

.modal-content {
  padding: 28px;
}

.modal-content h2 {
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(167, 192, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 22px;
  background: #050a12;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 24px;
  border: 1px dashed rgba(167, 192, 255, 0.18);
  border-radius: 22px;
  text-align: center;
  line-height: 1.7;
  color: var(--text-soft);
  background:
    radial-gradient(circle at top, rgba(93, 225, 211, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%,
  100% {
    transform: translateY(-50%) scale(0.92);
    opacity: 0.58;
  }

  50% {
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
  }
}

@keyframes floatLeft {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }

  50% {
    transform: translate3d(0, -12px, 0) rotate(1deg);
  }
}

@keyframes floatRight {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(1deg);
  }

  50% {
    transform: translate3d(0, 12px, 0) rotate(-1deg);
  }
}


@media (max-width: 1080px) {
  .hero,
  .contact-panel,
  .featured-grid,
  .studio-grid,
  .games-grid,
  .timeline,
  .legal-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    gap: 36px;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .games-grid article:first-child {
    grid-column: span 2;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    align-items: start;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--content));
  }

  .topbar {
    top: 10px;
    padding: 14px 16px;
    border-radius: 26px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(167, 192, 255, 0.14);
    border-radius: 24px;
    background: rgba(8, 17, 31, 0.96);
    box-shadow: 0 22px 38px rgba(2, 10, 24, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .topbar.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topbar.nav-open .nav-toggle span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .topbar.nav-open .nav-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero,
  .featured-grid,
  .studio-grid,
  .timeline,
  .contact-panel,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .games-grid {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 26px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .games-grid::-webkit-scrollbar {
    height: 8px;
  }

  .games-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(167, 192, 255, 0.18);
  }

  .games-grid::-webkit-scrollbar-track {
    background: transparent;
  }

  .games-grid .game-card {
    flex: 0 0 88vw;
    min-height: auto;
    scroll-snap-align: start;
    padding: 22px;
  }

  .games-grid .game-card__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
  }

  .games-grid .game-card h3 {
    margin: 10px 0;
    font-size: 1.45rem;
  }

  .games-grid .game-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .games-grid .game-card__tags {
    gap: 8px;
    margin-top: 16px;
  }

  .games-grid .game-card__tags span {
    padding: 7px 10px;
    font-size: 0.78rem;
  }

  .games-grid .game-card__stores {
    padding-top: 14px;
  }

  .games-grid article:first-child {
    grid-column: auto;
  }

  .section {
    padding-top: 82px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
    padding-bottom: 30px;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .device-card {
    width: 100%;
  }

  .device-screen {
    min-height: 360px;
  }

  .signal-bar {
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 28px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .modal {
    padding: 16px;
  }

  .modal-content {
    padding: 22px;
  }

  .video-placeholder {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
