:root {
  --bg: #07070a;
  --ink: #f3efe6;
  --ink-dim: rgba(243, 239, 230, 0.72);
  --accent: #e84c6d;
  --accent-warm: #ffb454;
  --glass: rgba(10, 10, 14, 0.42);
  --glass-border: rgba(243, 239, 230, 0.14);
  --tile: rgba(12, 12, 16, 0.55);
  /* Brand wordmark is vector art — UI type stays thin/geometric like “ENTERTAINMENT” */
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-fat: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --z-bg: 0;
  --z-veil: 1;
  --z-content: 10;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body.badjano-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-warm);
}

.bg-shader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-bg);
  display: block;
  pointer-events: none;
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: var(--z-veil);
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% 10%, rgba(255, 90, 20, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 20% 80%, rgba(180, 30, 10, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.2) 0%, rgba(7, 7, 10, 0.5) 55%, rgba(7, 7, 10, 0.88) 100%);
}

.site-main {
  position: relative;
  z-index: var(--z-content);
}

/* ---- Hero: one composition ---- */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.hero-glass {
  width: min(48rem, 100%);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-wordmark {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 0 28px rgba(255, 180, 84, 0.22));
  animation: mark-in 1s var(--ease) both;
}

.hero-line {
  margin: 1.25rem auto 0;
  max-width: 36ch;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 500;
  color: var(--ink-dim);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #ff5d82;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  border-color: rgba(243, 239, 230, 0.4);
  color: var(--ink);
}

/* ---- Games ---- */
.games {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 72rem;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
  animation: rise 0.8s var(--ease) 0.1s both;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-fat);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-head p {
  margin: 0.5rem 0 0;
  color: var(--ink-dim);
}

.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1.15rem;
}

.game-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--tile);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: inherit;
  transition: transform 0.28s var(--ease), border-color 0.28s ease, box-shadow 0.28s ease;
}

.game-tile:hover,
.game-tile:focus-within {
  transform: translateY(-4px);
  border-color: rgba(232, 76, 109, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.game-media {
  aspect-ratio: 315 / 250;
  overflow: hidden;
  background: #111;
  display: block;
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.game-tile:hover .game-media img,
.game-tile:focus-within .game-media img {
  transform: scale(1.04);
}

.game-meta {
  padding: 0.95rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.game-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.game-meta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.game-meta h3 a {
  color: inherit;
  text-decoration: none;
}

.game-meta h3 a:hover {
  color: var(--accent-warm);
}

.game-price {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-warm);
}

.game-meta p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-dim);
  flex: 1;
}

.game-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.store-pill:hover {
  color: #fff;
}

.store-steam:hover {
  background: #1b2838;
  border-color: #66c0f4;
}

.store-itch:hover {
  background: #fa5c5c;
  border-color: #fa5c5c;
}

.game-genre {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.45);
}

.site-footer {
  position: relative;
  z-index: var(--z-content);
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(7, 7, 10, 0.55);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  display: inline-block;
  line-height: 0;
}

.footer-brand img {
  display: block;
  width: min(14rem, 55vw);
  height: auto;
  opacity: 0.92;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
}

.footer-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-glass,
  .section-head,
  .hero-mark,
  .game-tile,
  .game-media img,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .bg-shader {
    display: none;
  }

  body.badjano-body {
    background:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232, 76, 109, 0.35), transparent 50%),
      radial-gradient(ellipse 50% 40% at 90% 60%, rgba(255, 180, 84, 0.2), transparent 45%),
      var(--bg);
  }
}

@media (max-width: 520px) {
  .hero-wordmark {
    width: min(100%, 20rem);
  }
}
