/* JoynivaGamesStudio.games — Jackpot Crush promo */

:root {
  --bg-deep: #0f0e12;
  --bg-card: #1a1822;
  --bg-elevated: #232030;
  --text: #f4f0e8;
  --text-muted: #a39e94;
  --accent: #e8b84a;
  --accent-dim: #c49a3a;
  --line: rgba(232, 184, 74, 0.22);
  --glow: rgba(232, 184, 74, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --safe: max(1.25rem, env(safe-area-inset-left));
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  overflow-x: clip;
  overflow-wrap: anywhere;
  background: var(--bg-deep);
  background-image:
    radial-gradient(
      ellipse 120% 80% at 50% -20%,
      rgba(232, 184, 74, 0.08),
      transparent
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 50%,
      rgba(100, 80, 140, 0.06),
      transparent
    );
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #f5cb6a;
}

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

/* contain everywhere for brand art */
.img-fill {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(15, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem var(--safe);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.header-inner nav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.82rem, 2.8vw, 1.05rem);
  letter-spacing: 0.02em;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 12rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--accent);
  text-decoration: none;
}

main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  padding: 2rem var(--safe) 3.5rem;
}

main > h1 {
  overflow-wrap: anywhere;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0 3rem;
  min-width: 0;
}

.hero > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 1.5rem;
}

.hero-art {
  aspect-ratio: 1;
  max-height: 320px;
  margin: 0 auto;
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px var(--glow),
    0 24px 48px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.grid-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  margin: 2rem 0;
  min-width: 0;
  max-width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.card-visual {
  height: 100px;
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-visual img {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.cta-strip {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.cta-strip p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.cta-row .decor-tile {
  width: 56px;
  height: 56px;
}

.btn-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-game:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-game img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  margin: 2rem 0;
  min-width: 0;
  max-width: 100%;
}

.gallery-item {
  /* aspect-ratio: 9 / 16; */
  min-width: 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Home: three screenshots per row */
.gallery--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .gallery--home {
    grid-template-columns: 1fr;
  }
}

/* Home: feature row — screenshot + copy */
.feature-block {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .feature-block {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .feature-block--reverse .feature-block__shot {
    order: 2;
  }

  .feature-block--reverse .feature-block__copy {
    order: 1;
  }
}

.feature-block__shot {
  /* aspect-ratio: 9 / 16; */
  width: 100%;
  max-width: 300px;
  max-height: 420px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-block__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.feature-block__copy h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.feature-block__copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.prose {
  max-width: 720px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.25rem;
}

.legal-block {
  margin-bottom: 2rem;
}

.decor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  align-items: center;
}

.decor-tile {
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decor-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(10, 9, 12, 0.95);
  padding: 2rem var(--safe);
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
  min-width: 0;
  width: 100%;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
  }

  .footer-brand {
    justify-content: flex-start;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  justify-content: center;
  text-align: center;
}

.footer-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

@media (min-width: 640px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-note {
  width: 100%;
  max-width: 100%;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  overflow-wrap: anywhere;
}

.page-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 2rem;
  overflow-wrap: anywhere;
}

.layout-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .layout-split {
    grid-template-columns: 1fr 200px;
    align-items: start;
  }
}

.sidebar-deco {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-deco .decor-tile {
  width: 100%;
  max-width: 160px;
  height: 100px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .sidebar-deco .decor-tile {
    margin: 0;
    max-width: none;
  }
}

/* Age gate + cookie banner (consent-age.js) */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 7, 10, 0.92);
  backdrop-filter: blur(10px);
}

.age-gate__dialog {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow-wrap: anywhere;
}

.age-gate__title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
}

.age-gate__text {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.age-gate__note {
  margin: 0 0 1.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.9;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.age-gate__btn {
  font: inherit;
  cursor: pointer;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.age-gate__btn--exit {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--line);
}

.age-gate__btn--exit:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.age-gate__btn--ok {
  background: linear-gradient(180deg, #f0c45c, var(--accent-dim));
  color: #1a1410;
  border-color: rgba(232, 184, 74, 0.5);
}

.age-gate__btn--ok:hover {
  filter: brightness(1.06);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  max-width: 100%;
  padding: var(--safe);
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  pointer-events: none;
  box-sizing: border-box;
}

.cookie-banner__inner {
  pointer-events: auto;
  max-width: 1120px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font: inherit;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-banner__btn:hover {
  color: var(--text);
  border-color: var(--accent-dim);
}

.cookie-banner__btn--primary {
  background: linear-gradient(180deg, #f0c45c, var(--accent-dim));
  color: #1a1410;
  border-color: rgba(232, 184, 74, 0.45);
}

.cookie-banner__btn--primary:hover {
  filter: brightness(1.05);
  color: #1a1410;
}
