:root {
  --bg: #0e0e11;
  --fg: #ffffff;
  --muted: #b5b5c0;
  --accent: #6cf2c2;
  --secondary: #8ad6ff;
  /* secondary color for links */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  min-height: 100vh;
}

/* Link styling: use accent color site-wide; underline on hover */
a,
a:link,
a:visited {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:active {
  text-decoration: underline;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 80px 40px;
  text-align: center;
}

.container--left {
  text-align: left;
  max-width: 720px;
  padding: 0px 40px;
}

/* Improve legal content spacing */
.container--left p {
  margin: 0 0 14px 0;
  color: var(--muted);
  line-height: 1.7;
}

.container--left address {
  margin: 0 0 18px 0;
  color: var(--muted);
  line-height: 1.7;
}

.container--left .page-title {
  margin-bottom: 18px;
}

/* Legal / page specific helpers */
.site-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.site-brand .logo img {
  width: 84px;
  height: auto;
  display: block;
}

.site-title {
  font-size: 1.05rem;
  margin: 0;
  color: var(--fg);
  font-weight: 700;
}

.site-tagline {
  font-size: 0.9rem;
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 400;
}

.site-intro {
  color: var(--muted);
  margin-bottom: 20px;
}

.page-title {
  font-size: 2rem;
  color: var(--accent);
  margin: 8px 0 18px;
}



address {
  font-style: normal;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* Responsive spacing for left-aligned containers */
@media (max-width: 768px) {
  .container--left {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .container--left {
    padding: 24px 18px;
  }
}

header {
  margin-bottom: 64px;
}

h1 {
  font-size: 3rem;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
}

section {
  margin: 64px 0;
}

p {
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.6;
  color: var(--muted);
}

.logo img {
  width: 200px;
  margin-bottom: 24px;
}

.game-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.game-hero {
  margin: 32px auto 24px;
}

.game-hero img {
  width: 100%;
  max-width: 680px;
  /* aligns nicely with text width */
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #000 !important;
  /* keep CTA text black */
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Ensure CTA stays black in all link states and its SVG icon stays filled black */
.cta,
.cta:link,
.cta:visited,
.cta:active,
.cta:hover {
  color: #000 !important;
  text-decoration: none !important;
  /* prevent underline */
}

.cta svg {
  fill: #000 !important;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 242, 194, 0.35);
  text-decoration: none !important;
  /* ensure no underline on hover */
}


.cta-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin-top: 24px;
}

.cta-sticker {
  width: 270px;
  max-width: 50%;
  height: auto;
  object-fit: contain;
}

.links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  border: 1px solid #2a2a33;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.links a:hover {
  transform: translateY(-2px);
  background: rgba(108, 242, 194, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

footer {
  font-size: 0.8rem;
  color: var(--muted);
}

footer p {
  margin-top: 16px;
}

.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  background: rgba(14, 14, 17, 0.85);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.lang-switch button {
  background: none;
  border: 1px solid #2a2a33;
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.lang-switch button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.cta-top {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  text-wrap: nowrap;
}

.cta-bottom {
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.social-caption {
  margin-top: 32px;
  margin-bottom: -16px;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.supported-by {
  margin-top: 16px;
}

.supported-by p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.supported-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.supported-logos a img {
  height: 40px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.supported-logos a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-divider {
  width: 120px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(to right,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
}

.mt-24 {
  margin-top: 24px;
}

/* Page transitions */
:root {
  --page-transition-duration: 260ms;
}

/* Prevent flash: keep incoming pages hidden until JS runs */
html.page-preload main,
html.page-preload .container {
  transform: translateX(12px);
  opacity: 0;
}

/* Reduce motion aware slide effect for page changes */
main,
.container {
  transition: transform var(--page-transition-duration) ease, opacity var(--page-transition-duration) ease;
}

/* transient classes used by JS */
.page-enter-active {
  transform: translateX(0);
  opacity: 1;
}

.page-exit-active {
  transform: translateX(-12px);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {

  html.page-preload main,
  main,
  .container,
  .page-enter-active,
  .page-exit-active {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 32px 24px;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  h2 {
    font-size: 1.1rem;
  }

  header {
    margin-bottom: 32px;
  }

  section {
    margin: 32px 0;
  }

  .logo img {
    width: 120px;
    margin-bottom: 16px;
  }

  .game-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .game-hero {
    margin: 24px auto 16px;
  }

  .game-hero img {
    max-width: 100%;
    border-radius: 12px;
  }

  .cta {
    padding: 12px 16px;
    gap: 8px;
    margin-top: 16px;
  }

  .cta svg {
    width: 40px !important;
    height: 40px !important;
  }

  .cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
  }

  .cta-top {
    font-size: 0.65rem;
  }

  .cta-bottom {
    font-size: 1.1rem;
  }

  .links {
    gap: 12px;
    margin-top: 24px;
  }

  .links a {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .links svg {
    width: 16px;
    height: 16px;
  }

  .social-caption {
    margin-top: 24px;
    margin-bottom: -12px;
    font-size: 0.8rem;
  }

  .supported-logos {
    gap: 24px;
    margin-bottom: 12px;
  }

  .supported-logos a img {
    height: 30px;
  }

  .lang-switch {
    top: 12px;
    right: 12px;
  }

  .lang-switch button {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  p {
    font-size: 0.95rem;
  }

  footer {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 24px 18px;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
  }

  h2 {
    font-size: 1rem;
  }

  header {
    margin-bottom: 24px;
  }

  section {
    margin: 24px 0;
  }

  .logo img {
    width: 90px;
    margin-bottom: 12px;
  }

  .game-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .game-hero {
    margin: 16px auto 12px;
  }

  .game-hero img {
    border-radius: 8px;
  }

  .cta {
    padding: 10px 14px;
    gap: 6px;
    margin-top: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .cta svg {
    width: 32px !important;
    height: 32px !important;
  }

  .cta-text {
    text-align: left;
  }

  .cta-top {
    font-size: 0.6rem;
  }

  .cta-bottom {
    font-size: 1rem;
  }

  .links {
    gap: 10px;
    margin-top: 16px;
  }

  .links a {
    padding: 8px 12px;
    font-size: 0.8rem;
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
  }

  .links svg {
    width: 14px;
    height: 14px;
  }

  .social-caption {
    margin-top: 16px;
    margin-bottom: -8px;
    font-size: 0.75rem;
  }

  .supported-by p {
    font-size: 0.7rem;
  }

  .supported-logos {
    gap: 16px;
    margin-bottom: 8px;
  }

  .supported-logos a img {
    height: 24px;
  }

  .footer-divider {
    width: 80px;
  }

  .mt-24 {
    margin-top: 16px;
  }

  p {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  footer p {
    margin-top: 12px;
  }

  .lang-switch {
    top: 16px;
    right: 16px;
    gap: 8px;
  }

  .lang-switch button {
    padding: 3px 6px;
    font-size: 0.7rem;
  }
}