:root {
  --color-bg-deep: #02050b;
  --color-bg-surface: #07111c;
  --color-bg-card: #0a121c;
  --color-border: #1d354f;
  --color-blue: #36a8ff;
  --color-blue-rgb: 54, 168, 255;
  --color-red: #ee2b2f;
  --color-red-rgb: 238, 43, 47;
  --color-text: #edf5ff;
  --color-text-muted: #8ea5ba;
  --font-body: Arial, Helvetica, sans-serif;
  --font-display: "Arial Narrow", "Orbitron", Arial, sans-serif;
  --container-width: 1140px;
  --radius: 8px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--color-red-rgb), 0.16), transparent 34rem),
    linear-gradient(180deg, #010309 0%, var(--color-bg-deep) 45%, #010208 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.035) 3px, transparent 4px);
  mix-blend-mode: screen;
}
a { color: var(--color-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-red); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(2, 5, 11, 0.68);
  border-bottom: 1px solid rgba(var(--color-blue-rgb), 0.14);
  backdrop-filter: blur(8px);
  transition: background var(--transition), padding var(--transition);
}
.site-header.sticky {
  padding: 10px 0;
  background: rgba(2, 5, 11, 0.94);
  box-shadow: 0 0 30px rgba(var(--color-red-rgb), 0.12);
}
.hero-page .site-header { background: transparent; border-color: transparent; backdrop-filter: none; }
.hero-page .site-header.sticky { background: rgba(2, 5, 11, 0.94); border-color: rgba(var(--color-blue-rgb), 0.18); backdrop-filter: blur(10px); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header-logo,
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--color-text);
  text-shadow: 0 0 14px rgba(var(--color-red-rgb), 0.55);
}
.brand-sub {
  margin-top: 2px;
  color: var(--color-red);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
}
.header-socials,
.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.social-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(var(--color-blue-rgb), 0.42);
  border-radius: 50%;
  color: var(--color-blue);
  background: rgba(var(--color-blue-rgb), 0.06);
  box-shadow: inset 0 0 14px rgba(var(--color-blue-rgb), 0.08);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 46px;
  overflow: hidden;
  cursor: crosshair;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/img/ultron-hero.jpeg") center / cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--color-red-rgb), 0.08), transparent 18rem),
    linear-gradient(180deg, rgba(2, 5, 11, 0.5) 0%, rgba(2, 5, 11, 0.78) 56%, rgba(2, 5, 11, 0.96) 100%);
}
.hero-logo {
  margin-bottom: 22px;
  padding: 12px 22px;
  border: 1px solid rgba(var(--color-red-rgb), 0.46);
  background: rgba(4, 7, 12, 0.58);
  box-shadow: 0 0 24px rgba(var(--color-red-rgb), 0.26);
}
.logo-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--color-blue);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}
.logo-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #fff;
  text-shadow: 0 0 16px rgba(var(--color-red-rgb), 0.85);
}
.glitch {
  position: relative;
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--color-text);
  text-shadow: 0 0 18px rgba(var(--color-blue-rgb), 0.36);
  animation: glitch-anim 4s infinite;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.glitch::before { color: var(--color-red); z-index: -1; animation: glitch-before 4s infinite; }
.glitch::after { color: var(--color-blue); z-index: -1; animation: glitch-after 4s infinite; }
@keyframes glitch-anim {
  0%, 92%, 100% { clip-path: inset(0); transform: none; }
  93% { clip-path: inset(20% 0 60% 0); transform: translateX(-3px); }
  94% { clip-path: inset(60% 0 10% 0); transform: translateX(3px); }
  95% { clip-path: inset(40% 0 20% 0); transform: translateX(-2px); }
}
@keyframes glitch-before {
  0%, 92%, 100% { opacity: 0; transform: none; }
  93%, 95% { opacity: 0.85; transform: translateX(-5px); }
}
@keyframes glitch-after {
  0%, 92%, 100% { opacity: 0; transform: none; }
  93.5%, 95.5% { opacity: 0.85; transform: translateX(5px); }
}

.hud-box {
  position: relative;
}
.hud-box::before,
.hud-box::after {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  z-index: 2;
  transition: all var(--transition);
}
.hud-box::before {
  top: -2px;
  left: -2px;
  border-top: 2px solid var(--color-blue);
  border-left: 2px solid var(--color-blue);
}
.hud-box::after {
  right: -2px;
  bottom: -2px;
  border-right: 2px solid var(--color-red);
  border-bottom: 2px solid var(--color-red);
}
.hud-box:hover::before,
.hud-box:hover::after {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(var(--color-red-rgb), 0.75));
}

.platform-section { width: 100%; padding: 30px 20px 20px; }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.platform-card {
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 24px;
  color: var(--color-text);
  background: linear-gradient(145deg, rgba(9, 20, 32, 0.94), rgba(9, 12, 18, 0.94));
  border: 1px solid rgba(var(--color-blue-rgb), 0.28);
  border-radius: var(--radius);
  box-shadow: inset 0 0 24px rgba(var(--color-blue-rgb), 0.05);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.platform-card:hover {
  color: var(--color-text);
  transform: translateY(-4px);
  border-color: rgba(var(--color-red-rgb), 0.72);
  box-shadow: 0 0 24px rgba(var(--color-red-rgb), 0.24), 0 0 70px rgba(var(--color-blue-rgb), 0.12);
}
.platform-card--disabled {
  opacity: 0.58;
  cursor: not-allowed;
}
.platform-card__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border: 1px solid rgba(var(--color-red-rgb), 0.48);
  border-radius: 50%;
  color: var(--color-red);
  font-family: var(--font-display);
  font-weight: 900;
  box-shadow: inset 0 0 24px rgba(var(--color-red-rgb), 0.12);
}
.platform-card__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
}
.platform-card__note {
  margin-top: 6px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.features-section { padding: 24px 20px 62px; }
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(var(--color-blue-rgb), 0.26);
  border-radius: 4px;
  color: var(--color-blue);
  background: rgba(var(--color-blue-rgb), 0.05);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.feature-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 10px rgba(var(--color-red-rgb), 0.86);
}

.breadcrumb { padding: 112px 0 24px; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.breadcrumb-list a { color: var(--color-text-muted); }
.breadcrumb-list a:hover { color: var(--color-blue); }
.breadcrumb-sep { color: var(--color-red); opacity: 0.8; }

.grid-bg { position: relative; }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(var(--color-blue-rgb), 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--color-red-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 28%, transparent 72%);
}

.game-grid-section { padding: 0 0 80px; }
.section-title {
  margin-bottom: 40px;
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
.section-title span { color: var(--color-red); text-shadow: 0 0 16px rgba(var(--color-red-rgb), 0.45); }
.game-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.game-grid > * { width: calc(50% - 12px); }
@media (min-width: 769px) {
  .game-grid > * { width: calc(33.333% - 16px); }
  .game-grid--2-3 > * { width: calc(50% - 12px); }
}
.game-card {
  display: block;
  overflow: hidden;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid rgba(var(--color-blue-rgb), 0.25);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.game-card:hover {
  color: var(--color-text);
  transform: translateY(-4px);
  border-color: rgba(var(--color-red-rgb), 0.76);
  box-shadow: 0 0 24px rgba(var(--color-red-rgb), 0.25), 0 0 70px rgba(var(--color-blue-rgb), 0.1);
}
.game-card__banner {
  position: relative;
  aspect-ratio: 570 / 330;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 19, 32, 0.2), rgba(238, 43, 47, 0.18)),
    url("/assets/img/ultron-hero.jpeg") center / cover no-repeat;
}
.game-card__info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}
.game-card__name { flex: 1; font-size: 1rem; }
.game-card__version {
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
}
.game-card__platform-badge {
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--color-red);
  background: rgba(var(--color-red-rgb), 0.12);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.game-card__updated {
  padding: 8px 20px 14px;
  color: var(--color-text-muted);
  font-size: 11px;
  opacity: 0.75;
}

.game-detail { padding: 0 0 80px; }
.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  color: var(--color-blue);
  background: rgba(var(--color-blue-rgb), 0.08);
  border: 1px solid rgba(var(--color-blue-rgb), 0.35);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.safety-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 9px rgba(var(--color-red-rgb), 0.8);
}
.game-detail__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 32px;
  background: var(--color-bg-card);
  border: 1px solid rgba(var(--color-blue-rgb), 0.26);
  border-radius: var(--radius);
}
.game-detail__icon {
  width: 100px;
  height: 100px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 20px;
  background: var(--color-bg-surface);
  border: 1px solid rgba(var(--color-red-rgb), 0.28);
}
.game-detail__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-detail__meta h1 { margin-bottom: 4px; font-size: clamp(1.3rem, 3vw, 2rem); }
.game-detail__meta p { color: var(--color-text-muted); font-size: 14px; }
.game-detail__meta .update-date { font-size: 12px; opacity: 0.72; }

.dns-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 24px;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid rgba(var(--color-blue-rgb), 0.25);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.dns-card:hover {
  color: var(--color-text);
  border-color: var(--color-red);
  transform: translateY(-2px);
}
.dns-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  color: var(--color-blue);
  background: rgba(var(--color-blue-rgb), 0.08);
  border: 1px solid rgba(var(--color-blue-rgb), 0.28);
  font-family: var(--font-display);
  font-weight: 900;
}
.dns-card__text h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
}
.dns-card__text p { margin-top: 2px; color: var(--color-text-muted); font-size: 13px; }

.download-section,
.features-list,
.screenshots-section { margin-bottom: 40px; }
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid rgba(var(--color-blue-rgb), 0.25);
  border-radius: var(--radius);
}
.download-card__info h2 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: normal;
}
.download-card__info span,
.download-card__hint {
  color: var(--color-text-muted);
  font-size: 13px;
}
.download-card__hint {
  display: block;
  max-width: 100%;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.download-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #03101c;
  background: linear-gradient(135deg, var(--color-blue), #81d1ff);
  box-shadow: 0 0 22px rgba(var(--color-blue-rgb), 0.32);
}
.btn-red {
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), #9e1116);
  box-shadow: 0 0 22px rgba(var(--color-red-rgb), 0.34);
}
.features-list h2,
.screenshots-section h2 {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 1.2rem;
}
.screenshot-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screenshot-gallery img {
  width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(var(--color-blue-rgb), 0.26);
  border-radius: var(--radius);
  cursor: pointer;
}
.screenshot-gallery::-webkit-scrollbar { height: 6px; }
.screenshot-gallery::-webkit-scrollbar-track { background: var(--color-bg-surface); border-radius: 3px; }
.screenshot-gallery::-webkit-scrollbar-thumb { background: rgba(var(--color-red-rgb), 0.72); border-radius: 3px; }

.site-footer {
  margin-top: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(var(--color-blue-rgb), 0.18);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-tagline { margin-top: 6px; color: var(--color-text-muted); font-size: 13px; }
.footer-copy { color: var(--color-text-muted); font-size: 12px; opacity: 0.65; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox.active { display: flex; }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  padding: 12px;
  border: 0;
  color: var(--color-text);
  background: none;
  cursor: pointer;
  font-size: 2rem;
  opacity: 0.7;
}
.lightbox__close { top: 16px; right: 20px; font-size: 2.5rem; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .game-grid > * { width: calc(50% - 12px); }
}
@media (max-width: 768px) {
  .header-inner { align-items: flex-start; }
  .header-socials { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .social-link span:last-child { display: none; }
  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 340px;
    margin-left: 0;
    margin-right: 0;
    gap: 8px;
  }
  .platform-card { min-height: 124px; padding: 18px 6px; }
  .platform-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    font-size: 0.78rem;
  }
  .platform-card__name {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-align: center;
  }
  .platform-card__note {
    font-size: 0.5rem;
    letter-spacing: 0.06em;
    text-align: center;
  }
  .game-grid { gap: 16px; }
  .game-grid > * { width: calc(50% - 8px); }
  .game-detail__header { flex-direction: column; text-align: center; }
  .download-card { flex-direction: column; text-align: center; }
  .download-card__actions { justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .glitch {
    max-width: 10ch;
    margin-inline: auto;
    font-size: 1.9rem;
    letter-spacing: 0.06em;
    white-space: normal;
  }
  .game-grid > * { width: 100%; }
  .hero { padding: 110px 16px 42px; }
  .platform-card { min-height: 116px; padding: 18px 6px; }
  .platform-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    font-size: 0.74rem;
  }
  .platform-card__name { font-size: 0.72rem; }
  .platform-card__note { display: none; }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .feature-badge {
    justify-content: center;
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.62rem;
  }
  .download-card__actions { width: 100%; }
  .btn { width: 100%; }
}
