@import url("https://fonts.googleapis.com/css2?family=Commissioner:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --ground: #05060a;
  --surface: #0d1017;
  --surface-hover: #141923;
  --ink: #f7f8fb;
  --muted: #a8afbd;
  --accent: #7eeaff;
  --margin: clamp(1rem, 3vw, 3rem);
  --gutter: clamp(0.75rem, 1.5vw, 1.5rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  overflow-x: clip;
  background: var(--ground);
  scrollbar-color: var(--accent) var(--ground);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--ground);
  font-family: "Commissioner", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.neon-atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}

.neon-ready .neon-atmosphere { opacity: 1; }
.no-neon-webgl body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 72% 30%, rgba(74, 213, 255, 0.11), transparent 38%);
}

main,
.game-footer { position: relative; z-index: 1; }

body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: var(--ground); }
body::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid var(--ground); }
::selection { color: #061014; background: var(--accent); }

a { color: inherit; text-underline-offset: 0.24em; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [data-carousel-track]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

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

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

.shell {
  width: min(100%, 1520px);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: #061014;
  background: var(--accent);
  transform: translateY(-160%);
  transition: transform 220ms var(--ease-out);
}

.skip-link:focus { transform: none; }

.game-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  padding-top: max(0.85rem, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(126, 234, 255, 0.08);
  background: rgba(5, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

.game-nav {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wcf-brand,
.back-link {
  font-weight: 700;
  text-decoration: none;
}

.wcf-brand { letter-spacing: -0.04em; }
.wcf-brand span { color: var(--accent); }

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color var(--t-hover) ease;
}

.back-link svg {
  width: 1.1rem;
  transition: transform 240ms var(--ease-out);
}

.game-hero {
  min-height: 72svh;
  display: grid;
  place-items: center;
  padding: clamp(8rem, 15vh, 10rem) 0 clamp(4rem, 9vh, 6rem);
}

.game-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-logo-heading {
  width: min(70vw, 680px);
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 720ms var(--ease-out), transform 820ms var(--ease-out), filter 360ms ease;
}

.neon-ready .game-logo-heading {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 0 28px rgba(126, 234, 255, 0.17));
}

.neon-ready .evil-page .game-logo-heading { filter: drop-shadow(0 0 30px rgba(255, 42, 139, 0.18)); }

.evil-page .game-logo-heading { width: min(72vw, 720px); }
.game-logo-heading img { width: 100%; height: auto; object-fit: contain; }

.store-actions {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.store-link {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: rgba(10, 15, 24, 0.48);
  border: 1px solid rgba(126, 234, 255, 0.22);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  cursor: not-allowed;
}

.evil-page .store-link { border-color: rgba(255, 74, 157, 0.22); }

.store-link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(180px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.22), transparent 72%);
  opacity: 0.18;
  transition: opacity var(--t-hover) ease;
}

.store-link svg { width: 40px; height: 40px; }
.store-link span { display: block; min-width: 0; text-align: left; }
.store-link small { display: block; color: var(--muted); font-size: 0.72rem; line-height: 1.2; }
.store-link strong { display: block; margin-top: 0.12rem; font-size: 1.06rem; line-height: 1.15; }
.store-link:active { transform: scale(0.98); }

.screenshots {
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(6rem, 11vw, 10rem);
}

.screenshots::before {
  content: "";
  display: block;
  width: min(76%, 920px);
  height: 1px;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  background: linear-gradient(90deg, transparent, rgba(126, 234, 255, 0.58), rgba(148, 116, 255, 0.42), transparent);
  opacity: 0.7;
}

.evil-page .screenshots::before {
  background: linear-gradient(90deg, transparent, rgba(255, 64, 151, 0.62), rgba(92, 230, 255, 0.42), transparent);
}

.game-carousel {
  width: 100%;
  min-width: 0;
}

.game-gallery {
  --portrait-max-width: min(32vw, 430px);
  --portrait-fit-width: 46svh;
  position: relative;
  width: 100%;
  min-width: 0;
  height: min(92svh, 820px);
  margin: 0;
  overflow: clip;
  perspective: 1400px;
  touch-action: pan-y;
}

.game-gallery figure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--portrait-max-width);
  aspect-ratio: 9 / 16;
  margin: 0;
  overflow: clip;
  background: rgba(13, 16, 23, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.56);
  transform-style: preserve-3d;
  pointer-events: none;
  transition: transform 560ms var(--ease-in-out), opacity 360ms ease;
  will-change: transform, opacity;
}

.game-gallery:not(.game-gallery--landscape) figure {
  top: calc(50% + clamp(1.25rem, 3vh, 2rem));
  width: min(var(--portrait-max-width), var(--portrait-fit-width));
  height: auto;
  max-width: none;
}

.game-gallery figure:first-child:not([data-position]),
.game-gallery figure[data-position="0"] {
  z-index: 5;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotateY(0);
  pointer-events: auto;
  border-color: rgba(126, 234, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(126, 234, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.52), 0 0 46px rgba(80, 206, 255, 0.12);
}

.evil-page .game-gallery figure[data-position="0"] {
  border-color: rgba(255, 74, 157, 0.44);
  box-shadow: 0 0 0 1px rgba(255, 74, 157, 0.08), 0 24px 70px rgba(0, 0, 0, 0.52), 0 0 48px rgba(255, 40, 137, 0.12);
}

.game-gallery figure[data-position="-1"] {
  z-index: 4;
  opacity: 0.74;
  transform: translate(-50%, -50%) translateX(-82%) scale(0.8) rotateY(11deg);
  pointer-events: auto;
}

.game-gallery figure[data-position="1"] {
  z-index: 4;
  opacity: 0.74;
  transform: translate(-50%, -50%) translateX(82%) scale(0.8) rotateY(-11deg);
  pointer-events: auto;
}

.game-gallery figure[data-position="-2"] {
  z-index: 3;
  opacity: 0.38;
  transform: translate(-50%, -50%) translateX(-145%) scale(0.62) rotateY(16deg);
  pointer-events: auto;
}

.game-gallery figure[data-position="2"] {
  z-index: 3;
  opacity: 0.38;
  transform: translate(-50%, -50%) translateX(145%) scale(0.62) rotateY(-16deg);
  pointer-events: auto;
}

.game-gallery img { width: 100%; height: 100%; object-fit: cover; }

.game-gallery--landscape { height: min(64svh, 680px); }
.game-gallery--landscape figure { width: min(58vw, 860px); height: auto; max-width: none; aspect-ratio: 16 / 9; }
.game-gallery--landscape figure[data-position="-1"] { transform: translate(-50%, -50%) translateX(-72%) scale(0.76) rotateY(9deg); }
.game-gallery--landscape figure[data-position="1"] { transform: translate(-50%, -50%) translateX(72%) scale(0.76) rotateY(-9deg); }
.game-gallery--landscape figure[data-position="-2"] { transform: translate(-50%, -50%) translateX(-124%) scale(0.58) rotateY(14deg); }
.game-gallery--landscape figure[data-position="2"] { transform: translate(-50%, -50%) translateX(124%) scale(0.58) rotateY(-14deg); }

.carousel-controls {
  width: min(100%, 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: var(--margin);
}

.carousel-status {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.carousel-buttons { display: flex; gap: 0.65rem; }

.carousel-button {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  border: 1px solid rgba(126, 234, 255, 0.3);
  background: rgba(11, 18, 28, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: opacity var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.evil-page .carousel-button { border-color: rgba(255, 74, 157, 0.3); }

.carousel-button svg { width: 24px; height: 24px; }
.carousel-button:active { transform: scale(0.94); }
.carousel-button:disabled { opacity: 0.28; cursor: default; }

.game-footer {
  padding: clamp(3rem, 7vw, 5rem) 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(126, 234, 255, 0.1);
  background: rgba(7, 9, 14, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.footer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.footer-brand span { color: var(--accent); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.footer-links a { color: var(--muted); }
.footer-contact { margin: 0; color: var(--muted); font-size: 0.9rem; text-align: right; }

.privacy-index {
  min-height: 100svh;
  padding: clamp(7.5rem, 12vh, 9rem) 0 clamp(5rem, 9vw, 7rem);
}

.privacy-intro {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(126, 234, 255, 0.14);
  text-align: center;
}

.privacy-intro h1 {
  margin: 0;
  font-family: "Syne", sans-serif;
  font-size: clamp(3.8rem, 6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.privacy-intro p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.privacy-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 390px));
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.privacy-product {
  min-height: 310px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid rgba(126, 234, 255, 0.14);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(8, 13, 22, 0.44);
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease, transform 260ms var(--ease-out);
}

.privacy-product-logo {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.34));
  transition: transform 420ms var(--ease-out), filter 260ms ease;
}

.privacy-product--evil .privacy-product-logo { width: 94%; margin-inline: auto; }

.privacy-product-action {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  justify-content: space-between;
  transition: color var(--t-hover) ease;
}

.privacy-product-action svg {
  width: 2rem;
  height: 2rem;
  transition: transform 260ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .back-link:hover,
  .footer-links a:hover { color: var(--ink); }
  .back-link:hover svg { transform: translateX(-4px); }
  .store-link:hover::before { opacity: 0.48; }
  .carousel-button:not(:disabled):hover { opacity: 0.82; transform: translateY(-2px); }
  .game-gallery figure[data-position="-1"]:hover,
  .game-gallery figure[data-position="1"]:hover { opacity: 0.92; }
  .privacy-product:hover .privacy-product-logo {
    transform: translateY(-0.3rem) scale(1.015);
    filter: drop-shadow(0 22px 38px rgba(61, 214, 255, 0.14));
  }
  .privacy-product:hover {
    border-color: rgba(126, 234, 255, 0.34);
    background: rgba(10, 19, 31, 0.62);
    transform: translateY(-0.2rem);
  }
  .privacy-product:hover .privacy-product-action { color: var(--ink); }
  .privacy-product:hover .privacy-product-action svg { transform: translateX(0.35rem); }
}

@media (max-width: 900px) {
  .game-hero { min-height: auto; padding-top: 8rem; }
  .game-logo-heading { width: min(86vw, 600px); }
  .evil-page .game-logo-heading { width: min(90vw, 640px); }
  .game-gallery { --portrait-max-width: min(48vw, 390px); --portrait-fit-width: 44svh; height: min(88svh, 700px); }
  .game-gallery--landscape { height: min(56svh, 560px); }
  .game-gallery--landscape figure { width: min(78vw, 760px); }
  .footer-row { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { justify-content: flex-start; }
  .footer-contact { text-align: left; }
  .privacy-intro p { max-width: 46rem; }
}

@media (max-width: 640px) {
  .game-nav { min-height: 48px; }
  .back-link span { display: none; }
  .game-hero { padding: 7.5rem 0 4rem; }
  .game-logo-heading { width: 92%; margin-bottom: 2rem; }
  .evil-page .game-logo-heading { width: 96%; }
  .store-actions { grid-template-columns: 1fr; gap: 0.65rem; }
  .store-link { min-height: 66px; grid-template-columns: 34px 1fr; border-radius: 18px; }
  .store-link svg { width: 32px; height: 32px; }
  .screenshots { padding-top: 1rem; padding-bottom: 5rem; }
  .game-gallery { --portrait-max-width: min(64vw, 340px); --portrait-fit-width: 40svh; height: min(82svh, 620px); }
  .game-gallery--landscape { height: min(48svh, 440px); }
  .game-gallery--landscape figure { width: 82vw; }
  .game-gallery figure[data-position="-1"] { transform: translate(-50%, -50%) translateX(-72%) scale(0.76) rotateY(9deg); }
  .game-gallery figure[data-position="1"] { transform: translate(-50%, -50%) translateX(72%) scale(0.76) rotateY(-9deg); }
  .game-gallery figure[data-position="-2"] { opacity: 0; pointer-events: none; }
  .game-gallery figure[data-position="2"] { opacity: 0; pointer-events: none; }
  .game-gallery--landscape figure[data-position="-1"] { transform: translate(-50%, -50%) translateX(-58%) scale(0.72) rotateY(8deg); }
  .game-gallery--landscape figure[data-position="1"] { transform: translate(-50%, -50%) translateX(58%) scale(0.72) rotateY(-8deg); }
  .carousel-button { width: 50px; height: 50px; }
  .footer-row { gap: 1.5rem; }
  .footer-links { gap: 0.7rem 1.1rem; }
  .privacy-index { padding-top: 7.5rem; }
  .privacy-intro { gap: 1.5rem; padding-bottom: 3rem; }
  .privacy-intro h1 { font-size: clamp(3.8rem, 20vw, 5.4rem); }
  .privacy-products { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .privacy-product {
    min-height: 0;
    grid-template-rows: 1fr auto;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
  }
  .privacy-product-logo,
  .privacy-product--evil .privacy-product-logo { width: min(100%, 430px); max-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  .neon-atmosphere { transition: opacity 180ms ease; }
  .game-logo-heading { opacity: 1; transform: none; transition: opacity 180ms ease; }
  .game-gallery figure { transition: opacity 160ms ease; }
  .back-link svg,
  .store-link::before,
  .carousel-button { transition-duration: 0.01ms; }
  .privacy-product-logo,
  .privacy-product-action svg { transition: none; }
}
