:root {
  --bg: #0b0d10;
  --bg-2: #141a22;
  --ink: #f5f7fa;
  --muted: #a6b0bc;
  --accent: #ff4655;
  --accent-2: #3bd6c6;
  --accent-3: #f7c948;
  --success: #2bd47c;
  --card: #141a22;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --hero-bg: url("../images/hero-bg.jpg");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 0%, rgba(255, 70, 85, 0.15), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(59, 214, 198, 0.12), transparent 40%),
    linear-gradient(180deg, #0b0d10 0%, #0f1318 40%, #0b0d10 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px
    ),
    linear-gradient(60deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px);
  background-size: 160px 160px;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

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

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 10, 12, 0.92);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: clamp(10px, 1.2vw, 18px);
}

.logo {
  font-family: "Teko", "Segoe UI", sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(6px, 1.2vw, 20px);
  font-size: clamp(0.66rem, 0.82vw, 0.95rem);
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: clamp(0.01em, 0.06vw, 0.06em);
  white-space: nowrap;
  line-height: 1.1;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

html[lang^="ru"] .site-nav a,
html[lang^="el"] .site-nav a {
  letter-spacing: 0.02em;
}

.lang-switcher {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(9, 11, 14, 0.7);
  color: var(--ink);
  font-size: 0.85rem;
}

.lang-button img {
  border-radius: 3px;
  width: 20px;
  height: 15px;
  object-fit: cover;
}

.caret {
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  margin-left: 4px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(8, 10, 12, 0.98);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px;
  display: none;
  min-width: 180px;
  box-shadow: var(--shadow);
  z-index: 20;
}

.lang-menu.is-open {
  display: grid;
  gap: 6px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.lang-option img {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
}

.hero-media {
  min-height: 78vh;
  display: flex;
  align-items: stretch;
  padding: 120px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -6%;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.05);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 8, 10, 0.88), rgba(7, 8, 10, 0.42));
  pointer-events: none;
}

.parallax-layer {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  gap: 40px;
  align-items: center;
  min-height: 70vh;
  align-content: space-between;
}

.hero-center {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-logo {
  width: clamp(280px, 36vw, 460px);
  pointer-events: none;
}

.hero-art {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 1;
  width: 100%;
  padding-right: 0;
  padding-bottom: 0;
  pointer-events: none;
}

.hero-character {
  width: clamp(200px, 24vw, 320px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.hero-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding-bottom: 12px;
  position: relative;
  z-index: 3;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  color: var(--accent-3);
  margin-bottom: 12px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #0b0d10;
  box-shadow: 0 18px 40px rgba(255, 70, 85, 0.3);
}

.button.primary:hover {
  transform: translateY(-2px);
}

.button.ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.button.small {
  padding: 10px 16px;
  font-size: 0.75rem;
}

.hero-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
  text-align: center;
  justify-items: center;
}

.hero-footer .cta-row {
  margin-bottom: 0;
}


.hero-info .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section {
  padding: 90px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: "Teko", "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-lead {
  max-width: 420px;
  color: var(--muted);
}

#game .section-lead {
  max-width: 720px;
}

.section-note {
  max-width: 720px;
  color: var(--muted);
  margin-top: -12px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 12px 0 10px;
  font-size: 1.4rem;
}

.card p {
  color: var(--muted);
}

.card-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.highlight-card {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.12), rgba(20, 26, 34, 0.95));
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.badge-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.feature-list {
  margin-top: 20px;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.game-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.game-card p {
  margin-top: 10px;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.requirements-card h3 {
  font-size: 1.4rem;
}

.requirements-list {
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.requirements-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr;
  gap: 12px;
}

.requirements-row dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.requirements-row dd {
  margin: 0;
}

.leaderboard-panel {
  padding: 24px;
}

.leaderboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.leaderboard-search {
  flex: 1 1 280px;
}

.leaderboard-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(9, 11, 14, 0.7);
  color: var(--ink);
  font-size: 0.95rem;
}

.leaderboard-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.leaderboard-count {
  font-size: 0.85rem;
  color: var(--muted);
}

.leaderboard-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(9, 11, 14, 0.6);
}

.lb-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(20, 26, 34, 0.9);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lb-nav-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.lb-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.leaderboard-page {
  min-width: 86px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink);
}

.leaderboard-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.leaderboard-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.leaderboard-table td {
  padding: 12px;
  border-top: 1px solid var(--stroke);
}

.leaderboard-table tbody tr {
  transition: background 0.2s ease;
}

.leaderboard-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-table tbody tr.is-podium {
  background: linear-gradient(90deg, rgba(255, 70, 85, 0.08), rgba(247, 201, 72, 0.04));
}

.leaderboard-rank {
  width: 92px;
  font-family: "Teko", "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
}

.leaderboard-time {
  width: 140px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.leaderboard-region {
  width: 120px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-3);
}

.leaderboard-empty {
  text-align: center;
  color: var(--muted);
  padding: 18px 12px;
}

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

.feature-list li::before {
  content: "▣";
  margin-right: 10px;
  color: var(--accent);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.pipeline-step {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  background: rgba(20, 26, 34, 0.7);
}

.pipeline-step span {
  font-family: "Teko", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  color: var(--accent);
}

.pipeline-step h4 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 70, 85, 0.18);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tag-complete {
  background: rgba(43, 212, 124, 0.2);
  color: var(--success);
  border: 1px solid rgba(43, 212, 124, 0.4);
}

.tag-progress {
  background: rgba(247, 201, 72, 0.2);
  color: var(--accent-3);
  border: 1px solid rgba(247, 201, 72, 0.45);
  box-shadow: 0 0 0 0 rgba(247, 201, 72, 0.35);
  animation: tagPulse 1.8s ease-out infinite;
}

@keyframes tagPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 201, 72, 0.35);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(247, 201, 72, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(247, 201, 72, 0);
  }
}

.spotlight {
  background: rgba(20, 26, 34, 0.6);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
}

.stats strong {
  font-family: "Teko", "Segoe UI", sans-serif;
  font-size: 2rem;
}

.stats span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.media-tile {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border-radius: 18px;
  background-color: rgba(12, 16, 22, 0.7);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  appearance: none;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.media-tile:hover,
.media-tile:focus-visible {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.45);
  filter: saturate(1.05);
}

.media-tile:focus-visible {
  outline: 2px solid var(--accent-3);
  outline-offset: 3px;
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.media-tile:hover img,
.media-tile:focus-visible img {
  transform: scale(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.72);
  backdrop-filter: blur(6px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1200px, 96vw);
  max-height: 92vh;
  padding: 12px;
  border-radius: 22px;
  background: rgba(12, 16, 22, 0.9);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
}

.lightbox-image {
  width: 100%;
  max-height: 84vh;
  border-radius: 16px;
  object-fit: contain;
  background: #0b0d10;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 600;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(8, 10, 12, 0.85);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
}

body.lightbox-open {
  overflow: hidden;
}

.contact {
  padding-bottom: 110px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 16px;
}

.contact-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.label-text {
  display: inline-block;
}

.contact-card input,
.contact-card textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(9, 11, 14, 0.7);
  color: var(--ink);
  font-size: 0.95rem;
}

.contact-card textarea {
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.contact-note {
  color: var(--muted);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.alert.success {
  border-color: rgba(59, 214, 198, 0.4);
  background: rgba(59, 214, 198, 0.1);
  color: #c6f6ee;
}

.alert.error {
  border-color: rgba(255, 70, 85, 0.4);
  background: rgba(255, 70, 85, 0.12);
  color: #ffd0d4;
}

.site-footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--stroke);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}

.footer-grid a,
.footer-grid span,
.footer-grid p {
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

.footer-location span {
  display: block;
  margin-top: 0;
}

.footer-location span + span {
  margin-top: 4px;
}

.footer-title {
  font-weight: 600;
  color: var(--ink);
}

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.delay-1 {
  transition-delay: 0s;
}

.delay-2 {
  transition-delay: 0.12s;
}

.delay-3 {
  transition-delay: 0.24s;
}

@media (max-width: 1080px) {
  .hero-inner,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 60vh;
  }

  .hero-art {
    padding-right: 2%;
    padding-bottom: 2%;
  }

  .hero-character {
    width: clamp(200px, 38vw, 320px);
  }
}

@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: 76px;
    right: 4%;
    flex-direction: column;
    padding: 18px;
    background: rgba(8, 10, 12, 0.95);
    border-radius: 16px;
    border: 1px solid var(--stroke);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
  }

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

  .menu-button {
    display: inline-flex;
  }

  .stats {
    flex-direction: column;
  }

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

  .leaderboard-toolbar {
    align-items: stretch;
  }

  .leaderboard-meta {
    width: 100%;
    justify-content: space-between;
  }

  .hero-logo {
    width: min(240px, 72%);
  }
}

@media (max-width: 720px) {
  .nav-actions {
    gap: 8px;
  }

  .lang-button span[data-lang-current] {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-media {
    padding-top: 110px;
    flex-direction: column;
    justify-content: center;
  }

  .hero-logo {
    width: clamp(160px, 55vw, 220px);
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .hero-character {
    width: clamp(160px, 50vw, 240px);
  }

  .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0;
    order: 1;
  }

  .hero-inner {
    min-height: auto;
    grid-template-rows: auto auto;
    gap: 16px;
    order: 2;
  }

  .section {
    padding: 70px 0;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .requirements-row {
    grid-template-columns: 1fr;
  }

  .leaderboard-panel {
    padding: 16px;
  }

  .leaderboard-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .leaderboard-pagination {
    justify-content: center;
  }

  .leaderboard-page {
    min-width: 70px;
  }
}
