:root {
  --bg: #0b0e13;
  --bg-deep: #0d0f12;
  --ink: #e4e4e4;
  --ink-muted: rgba(228, 228, 228, 0.7);
  --ink-soft: rgba(228, 228, 228, 0.5);
  --accent-from: #abea40;
  --accent-to: #00a7c4;
  --glow: 0 0 20px 0 rgba(171, 234, 64, 0.5);
  --max-width: 1200px;
  --font-display: 'Days One', system-ui, sans-serif;
  --font-button: 'Chakra Petch', 'Days One', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Typography ---------- */
.body-text,
.body-text p {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}
.body-text p + p { margin-top: 1em; }

.display-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
 
}

.hero-title { font-size: clamp(32px, 9vw, 106px); letter-spacing: -0.5px; word-break: break-word; }
.section-title { font-size: clamp(40px, 6vw, 70px); }

/* ---------- Button ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 50px;
  border-radius: 60px;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  box-shadow: var(--glow);
  color: var(--bg-deep);
  font-family: var(--font-button);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 0 28px 0 rgba(171, 234, 64, 0.65); }

/* ---------- Accent arrow ---------- */
.accent-arrow { width: 110px; height: 110px; object-fit: contain; }
.accent-arrow--right { transform: rotate(-90deg); }
.accent-arrow--down  { transform: rotate(90deg) scaleY(-1); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 20px 0 auto 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-display);
  font-size: 14px;
}
.primary-nav a { transition: color 0.2s ease; }
.primary-nav a:hover { color: var(--accent-from); }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr minmax(240px, 300px);
  gap: 40px;
  align-items: start;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  max-width: 360px;
}
.hero-copy .body-text { max-width: 324px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-controllers {
  width: 100%;
  max-width: 600px;
  filter: drop-shadow(0 30px 60px rgba(0, 167, 196, 0.25));
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  max-width: 300px;
  margin-top: 140px;
}
.hero-cube { width: 117px; height: auto; }

/* ---------- About ---------- */
.about { padding: 60px 0; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
  align-items: center;
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
.about-visual img {
  width: 330px;
  height: 612px;
  object-fit: cover;
  border-radius: 24px;
}

/* ---------- Popular ---------- */
.popular { padding: 80px 0; }
.popular-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  align-items: end;
  gap: 40px;
  max-width: 1368px;
  margin-inline: auto;
  padding-inline: 24px;
}
.popular-hero {
  width: 350px;
  height: auto;
  transform: scaleX(-1);
  align-self: end;
  margin-bottom: -20px;
}
.popular-copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 20px;
}
.game-card {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 34px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }

/* ---------- Gallery ---------- */
.gallery { padding: 80px 0; }
.gallery .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}
.gallery-card {
  height: 400px;
  border-radius: 34px;
  overflow: hidden;
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Legal page (privacy / terms / cookies) ---------- */
.legal-page { padding: 110px 0 80px; }
.legal-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  max-width: 1098px;
}
.legal-body { width: 100%; }
.legal-body p { margin: 0 0 1em; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--ink); font-weight: 400; }
.legal-body a { color: var(--accent-from); text-decoration: underline; }

/* ---------- Game detail page ---------- */
.game-page { padding: 110px 0 0; }

.game-intro { padding: 0 0 60px; }
.game-intro-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}
.game-thumb {
  width: 220px;
  height: 220px;
  border-radius: 34px;
  overflow: hidden;
  flex-shrink: 0;
}
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-intro-copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}

.game-about { padding: 60px 0; }
.game-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 682px) minmax(0, 488px);
  gap: 30px;
  align-items: center;
}
.game-about-copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
.game-about-visual {
  width: 100%;
  max-width: 488px;
  height: 320px;
  border-radius: 34px;
  overflow: hidden;
}
.game-about-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact ---------- */
.contact { padding: 80px 0 120px; }
.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: center;
  max-width: 1098px;
}
.contact .body-text { text-align: center; max-width: 720px; }
.contact-details {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.6;
}
.contact-details p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 30px; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  font-family: var(--font-display);
  font-size: 14px;
}
.footer-nav a { transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent-from); }
.socials { display: flex; gap: 15px; align-items: center; }
.socials a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.socials a:hover { transform: translateY(-2px); }
.socials img { width: 38px; height: 38px; object-fit: contain; }
.copyright {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Cookies ---------- */
.cookies {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  transition: opacity 0.35s ease;
}
.cookies-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #000;
  border-radius: 28px;
  padding: 32px;
  font-family: var(--font-display);
  color: var(--ink);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}
.cookies-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.cookies-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
}
.cookies-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cookies-text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}
.cookies-text em { font-style: italic; }
.cookies-text a { color: var(--accent-from); text-decoration: underline; }
.cookies-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookies-btn {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 18px 24px;
  border-radius: 60px;
  font-family: var(--font-button);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cookies-btn--primary {
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  color: var(--bg-deep);
  box-shadow: 0 0 24px rgba(171, 234, 64, 0.55);
}
.cookies-btn--ghost {
  background: transparent;
  color: var(--ink);
}
.cookies-btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 60px;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-to));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.cookies-btn:hover { transform: translateY(-1px); }
.cookies.is-hidden { opacity: 0; pointer-events: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-side { grid-column: 1 / -1; margin-top: 0; max-width: none; }
  .popular-layout { grid-template-columns: 1fr; }
  .popular-hero { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual img { width: 100%; height: auto; max-height: 500px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .game-about-grid { grid-template-columns: 1fr; }
  .game-about-visual { height: auto; aspect-ratio: 488 / 320; max-width: 100%; }
}

@media (max-width: 720px) {
  .legal-page { padding-top: 20px; }
  .game-page { padding-top: 20px; }
  .game-intro-grid { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .game-thumb { width: 180px; height: 180px; }
  .header-inner { flex-direction: column; gap: 16px; }
  .site-header { position: static; padding: 20px 0; }
  .hero { padding-top: 20px; }
  .hero-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card { width: 100%; height: auto; aspect-ratio: 1 / 1; }
  .gallery-card { height: 300px; }
  .btn-pill { padding: 16px 36px; }
  .accent-arrow { width: 80px; height: 80px; }
  .cookies { flex-direction: column; align-items: stretch; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-nav { gap: 16px; }
  .contact-details { font-size: 16px; }
}
