/* Vexifys — styles generated from Figma (desktop 1368 / mobile 360) */
:root {
  --ink: #111111;
  --ink-50: rgba(17, 17, 17, 0.5);
  --yellow: #fbda19;
  --white: #ffffff;
  --font: "Anton", "Impact", "Arial Narrow", sans-serif;
  --container: 1200px;
  --gutter: 15px;
  --section-gap: 60px;
  --h-xl: clamp(40px, 5.85vw, 80px);
  --radius-img: 24px;
  --radius-card: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  overflow-x: clip;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
button { font: inherit; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
main { display: flex; flex-direction: column; gap: var(--section-gap); }

.upper { text-transform: uppercase; }
.yellow { color: var(--yellow); }
.h-xl { font-size: var(--h-xl); line-height: 1.2; text-transform: uppercase; }

/* Rich text: paragraphs separated by a blank line (21px ≈ one Anton 14px line) */
.rich p + p { margin-top: 1.5em; }
.rich .rich__lead { font-size: 30px; }

/* Crops reproduced from Figma image fills */
.crop { position: relative; overflow: hidden; }
.crop > img { position: absolute; max-width: none; }
.cover { position: relative; overflow: hidden; }
.cover > img { width: 100%; height: 100%; object-fit: cover; }
.rounded { border-radius: var(--radius-img); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 28px 60px;
  border: 3px solid var(--white);
  border-radius: 60px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 18px;
  text-transform: uppercase;
  white-space: nowrap;
  filter: drop-shadow(0 5px 10px var(--yellow));
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 16px var(--yellow)); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--sm { padding: 20px 40px; filter: none; }
.btn--sm:hover { filter: none; }
.btn--ghost { background: transparent; color: var(--white); }

/* ---------- Header ---------- */
.site-header { padding-top: 20px; padding-bottom: 20px; }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; min-height: 36px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; text-transform: uppercase; }
.logo img { width: 30px; height: 30px; }
.nav-wrap { display: flex; align-items: center; gap: 50px; font-size: 14px; white-space: nowrap; }
.nav { display: flex; gap: 20px; }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--yellow); transform: scaleX(0); transition: transform .2s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: flex; gap: 5px; align-items: center; }
.lang a { color: var(--ink-50); }
.lang a[aria-current="true"] { color: var(--ink); }
.lang .sep { font-family: "Inter", system-ui, sans-serif; }

/* ---------- Torn dark sections ---------- */
.dark {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-block: 60px;
}
.torn { position: absolute; left: 0; width: 100%; height: 60px; overflow: hidden; pointer-events: none; }
.torn img { position: absolute; max-width: none; height: 1278.41%; width: 119.59%; left: -9.8%; top: -315.19%; }
.torn--top { top: 0; }
.torn--bottom { bottom: 0; transform: scaleY(-1); }

/* ---------- Bolt cards (players / pillars) ---------- */
.bolt-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.bolt-card { position: relative; padding: 20px 0 0 20px; display: flex; }
.bolt-card__icon { position: absolute; top: 0; left: 0; width: 72px; height: 72px; z-index: 1; }
.bolt-card__icon img { left: -125.27%; top: -71.98%; width: 343.96%; height: 343.96%; }
.bolt-card__body {
  width: 292px;
  min-height: 228px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  border: 2px solid var(--white);
  border-radius: var(--radius-card);
}
.bolt-card__title { color: var(--yellow); font-size: 30px; text-transform: uppercase; }
.bolt-card__text { margin-top: 1.5em; font-size: 14px; }
.bolt-card__inner { width: 248px; }

/* ---------- Grid-lines decoration ---------- */
.lines { width: 298px; height: 297px; flex: none; }
.lines img { width: 100%; height: 100%; object-fit: cover; }

/* ========== HOME ========== */
.hero { position: relative; min-height: 691px; }
.hero__text { position: relative; width: 69.2%; padding-top: 17px; container-type: inline-size; }
.hero__tagline { font-size: 20px; text-transform: uppercase; }
.hero__title {
  color: var(--yellow);
  font-size: min(340px, 40.9cqw);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__body { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero__lead { width: 537px; max-width: 100%; font-size: 20px; text-transform: uppercase; }
.hero__img {
  position: absolute; top: 0; right: 0;
  width: 49.33%; aspect-ratio: 592 / 691;
}
.hero__img img { height: 108.78%; width: 115.38%; left: -9.4%; top: -1.02%; }

.story { position: relative; display: flex; gap: 30px; align-items: flex-end; }
.story__img { flex: 0 0 35.25%; aspect-ratio: 423 / 377; }
.story__content { position: relative; flex: 1; min-width: 0; }
.story__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 30px; max-width: 634px; }
.story__text .rich { max-width: 521px; }
.story__lines { position: absolute; left: min(533px, 70%); bottom: 42px; }
.story--about .story__lines { bottom: 63px; }

.players { min-height: 879px; }
.players .container { position: relative; }
.players__content { position: relative; z-index: 1; width: 55%; max-width: 660px; display: flex; flex-direction: column; gap: 30px; }
.players__img {
  position: absolute; right: 0; top: 50%; transform: translateY(calc(-50% - 10.5px));
  width: 45.33%; aspect-ratio: 544 / 818;
}
.players__img img { height: 110.51%; width: 103.98%; left: -1.99%; top: 0; }

.categories { position: relative; padding-top: 60px; margin-top: calc(-1 * var(--section-gap)); }
.categories__bg { position: absolute; left: 0; top: 0; width: 615px; height: 572px; opacity: .2; pointer-events: none; }
.categories__bg img { width: 100%; height: 100%; object-fit: cover; }
.categories .container { position: relative; display: flex; flex-direction: column; gap: 30px; align-items: center; }
.categories h2 { text-align: center; width: 100%; }
.cat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }
.cat-card {
  background: var(--ink); color: var(--white); border-radius: var(--radius-card);
  padding: 20px; min-height: 326px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.cat-card__icon { width: 100px; height: 100px; }
.cat-card__icon img { height: 152.03%; width: 202.7%; left: -52.03%; top: -25.68%; }
.cat-card__title { color: var(--yellow); font-size: 30px; text-transform: uppercase; }
.cat-card__text { margin-top: 1.5em; }

/* CTA */
.cta { min-height: 814px; }
.cta .container { max-width: 1107px; display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.cta__contacts { color: var(--yellow); font-size: 20px; }
.cta__contacts a { display: block; }
.cta__contacts a:hover { text-decoration: underline; }
.cta__intro + .cta__contacts { margin-top: 21px; }
.cta__img { width: 290px; height: 308px; }
.cta__img img { height: 138.61%; width: 146.76%; left: -24.71%; top: -16.39%; }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--section-gap) 20px; }
.site-footer .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer__col { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.footer__links { display: flex; gap: 20px; white-space: nowrap; }
.footer__links a:hover { text-decoration: underline; }
.socials { display: flex; gap: 15px; }
.socials a { display: block; width: 40px; height: 40px; transition: transform .2s ease; }
.socials a:hover { transform: scale(1.08); }
.socials img { width: 40px; height: 40px; }
.copyright { color: var(--ink-50); white-space: nowrap; }
.footer__img { width: 575px; max-width: 48%; height: 177px; border-radius: var(--radius-img); flex: none; }
.footer__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 82%; }

/* ========== ABOUT ========== */
.about-hero { display: flex; gap: 30px; align-items: center; }
.about-hero__text { flex: 1; min-width: 0; max-width: 747px; display: flex; flex-direction: column; gap: 30px; }
.about-hero__img { flex: 0 0 35.25%; aspect-ratio: 423 / 612; }
.pillars .container { display: flex; flex-direction: column; gap: 30px; }
.pillars .bolt-cards { flex-wrap: nowrap; }
.pillars .bolt-card__body { min-height: 249px; }
.pillars { padding-bottom: 80px; }

/* ========== GAMES ========== */
.vault { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.vault__main { width: 79.7%; max-width: 956px; display: flex; flex-direction: column; gap: 30px; }
.vault__head { display: flex; flex-direction: column; gap: 30px; }
.game-grid { display: grid; grid-template-columns: repeat(3, 270px); gap: 20px; }
.game-tile { display: block; aspect-ratio: 270 / 160; border-radius: var(--radius-img); overflow: hidden; }
.game-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.game-tile:hover img { transform: scale(1.05); }
.game-tile:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.vault .lines { margin-right: -84px; }

/* ========== GAME PAGE ========== */
.game-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 10px; }
.game-hero__img { flex: 0 0 34%; aspect-ratio: 408 / 242; }
.game-hero__text { width: 63.5%; display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.gameplay { display: flex; gap: 30px; align-items: flex-start; }
.gameplay__text { width: 66.1%; display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.gameplay__img { flex: 1; aspect-ratio: 377 / 331; }
.stages { width: 100%; background: var(--ink); color: var(--white); border-radius: 22px; padding: 20px; }
.stages__title { font-size: 24px; text-transform: uppercase; margin-bottom: 1.5em; }
.stages p { font-size: 14px; }
.stages p + p { margin-top: 1.5em; }

/* ========== LEGAL ========== */
.legal { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.legal__text { width: 79.7%; max-width: 956px; display: flex; flex-direction: column; gap: 30px; }
.legal .lines { margin-right: -84px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(1000px, 100% - 30px);
  background: var(--ink); color: var(--white); border-radius: var(--radius-card);
  padding: 20px; display: flex; gap: 15px; align-items: flex-start;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.cookie[hidden] { display: none; }
.cookie__icon { width: 80px; height: 80px; flex: none; }
.cookie__icon--sm { display: none; width: 40px; height: 40px; }
.cookie__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 15px; }
.cookie__title { color: var(--yellow); font-size: 30px; text-transform: uppercase; margin-bottom: 21px; }
.cookie__text a { text-decoration: underline; }
.cookie__actions { display: flex; gap: 15px; }

/* ========== Tablet ========== */
@media (max-width: 1280px) {
  .vault .lines, .legal .lines { margin-right: 0; }
}
@media (max-width: 1100px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars .bolt-cards { flex-wrap: wrap; }
}

/* ========== Mobile (Figma 360 frames) ========== */
@media (max-width: 900px) {
  :root { --section-gap: 50px; --h-xl: 40px; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .footer__links { flex-wrap: wrap; gap: 10px 20px; }
  .site-header { padding-top: 15px; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 15px; }
  .nav-wrap { width: 100%; justify-content: space-between; gap: 20px; }

  .hero { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
  .hero__text { width: 100%; padding-top: 0; }
  .hero__lead { width: 100%; }
  .hero__img { position: relative; width: 100%; max-width: 420px; }

  .story { flex-direction: column; align-items: stretch; }
  .story__img { flex: none; width: 100%; aspect-ratio: auto; height: 295px; }
  .story__text { max-width: none; }
  .story__text .rich { max-width: none; }
  .story__lines { position: static; }

  .players { min-height: 0; padding-bottom: 60px; }
  .players__content { width: 100%; max-width: none; }
  .bolt-cards { flex-direction: column; flex-wrap: nowrap; }
  .players__img { position: relative; top: auto; right: auto; transform: none; width: 100%; aspect-ratio: auto; height: 540px; margin-top: 30px; }
  .players__img img { height: 101.92%; }

  .categories__bg { width: 100%; height: 334px; top: 59px; }
  .cat-cards { grid-template-columns: 1fr; }
  .cat-card { min-height: 0; }

  .cta { min-height: 0; }

  .site-footer { padding-bottom: 15px; }
  .site-footer .container { flex-direction: column; align-items: stretch; }
  .footer__img { width: 100%; max-width: none; height: 110px; }

  .about-hero { flex-direction: column; align-items: stretch; }
  .about-hero__img { flex: none; width: 100%; }
  .pillars .bolt-cards { flex-wrap: nowrap; }

  .vault { flex-direction: column; align-items: stretch; }
  .vault__main { width: 100%; }
  .game-grid { grid-template-columns: 1fr; }
  .vault .lines { align-self: flex-end; }

  .game-hero, .gameplay { flex-direction: column; align-items: stretch; padding-top: 0; }
  .game-hero__img, .gameplay__img { flex: none; width: 100%; }
  .game-hero__text, .gameplay__text { width: 100%; }

  .legal { flex-direction: column-reverse; }
  .legal__text { width: 100%; }
  .legal .lines { align-self: flex-end; }

  .cookie { flex-direction: column; width: min(330px, 100% - 30px); bottom: 15px; max-height: calc(100vh - 30px); overflow: auto; }
  .cookie__icon { display: none; }
  .cookie__icon--sm { display: block; }
  .cookie__title { font-size: 22px; }
  .cookie__actions { flex-direction: column; width: 100%; }
  .cookie__actions .btn { width: 100%; }
}

@media (max-width: 360px) {
  .btn { padding-inline: 40px; }
  .footer__links { flex-wrap: wrap; gap: 10px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
