/* Mania Jackpot — Official Website */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Nunito:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --bg-deep: #0d171b;
  --bg-mid: #122229;
  --bg-card: #132329;
  --accent-cyan: #00e5ff;
  --accent-green: #7cff6b;
  --accent-pink: #ff4fd8;
  --accent-gold: #ffd24a;
  --accent-blue: #3b8bff;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.78);
  --nav-h: 72px;
  --radius: 18px;
  --shadow-glow: 0 0 40px rgba(0, 229, 255, 0.25);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.home-page main {
  background: #0d171b;
}

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

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

button {
  font: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  background: #0d171b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5a7a, #ffd24a 45%, #7cff6b);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #1a0538;
  box-shadow: 0 0 20px rgba(255, 210, 74, 0.35);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ffd24a, #7cff6b, #00e5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55rem 1rem;
  color: #b99cff;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s, text-shadow 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(132, 84, 255, 0.28);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
}

.btn-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(90deg, #5b4dff, #00c2ff);
  box-shadow: 0 6px 24px rgba(0, 194, 255, 0.35);
  transition: filter 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-signup:hover {
  filter: brightness(1.18);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 194, 255, 0.5);
}

.account-link {
  width: 220px;
  height: 48px;
  padding: 5px 11px 5px 6px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.account-link:hover {
  border-color: rgba(0, 229, 255, 0.72);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.account-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #12c6d7;
  color: #0a1730;
  font-size: 15px;
  box-shadow: 0 0 0 3px rgba(18, 198, 215, 0.13);
}

.account-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.account-copy small {
  color: #87dce5;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.account-copy strong {
  overflow: hidden;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-arrow {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.account-link:hover .account-arrow {
  color: #ffffff;
  transform: translateX(2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  padding: calc(var(--nav-h) + 1.5rem) 0 3rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d171b;
}

.hero-banner {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  filter: saturate(0.72) contrast(1.05);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 23, 27, 0.52);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.35rem;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 26rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s ease 0.3s both;
}

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

.btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 64px;
  padding: 0 2rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(90deg, #3d7bff, #00d4ff);
  box-shadow: 0 10px 36px rgba(0, 180, 255, 0.45);
  transition: filter 0.25s, transform 0.25s;
  animation: fadeUp 0.8s ease 0.4s both, pulseGlow 2.4s ease-in-out 1s infinite;
}

.btn-play:hover {
  filter: brightness(1.15);
  transform: scale(1.04);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 36px rgba(0, 180, 255, 0.4); }
  50% { box-shadow: 0 12px 48px rgba(0, 229, 255, 0.7); }
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s ease 0.25s both;
}

.hero-visual img {
  width: min(100%, 620px);
  max-height: min(68vh, 620px);
  object-fit: contain;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.45));
}

.logo-badge {
  margin-top: -1.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(40, 10, 80, 0.9), rgba(20, 5, 50, 0.95));
  border: 2px solid rgba(255, 210, 74, 0.65);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 210, 74, 0.25);
}

.logo-badge span:first-child {
  background: linear-gradient(90deg, #ff5a5a, #ffd24a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-badge span:last-child {
  background: linear-gradient(90deg, #7cff6b, #00e5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ——— Sections common ——— */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title--left {
  text-align: left;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

/* Game introduction */
.intro {
  overflow: hidden;
  background: #0d171b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-intro__layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 5rem;
}

.game-intro__media,
.game-intro__content {
  min-width: 0;
}

.game-intro__frame {
  width: min(100%, 470px);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #132329;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.game-intro__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.game-intro__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 470px);
  margin: 2.1rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.game-intro__facts div {
  min-width: 0;
  padding: 1rem 0.7rem;
  text-align: center;
}

.game-intro__facts div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.game-intro__facts strong,
.game-intro__facts span {
  display: block;
  letter-spacing: 0;
}

.game-intro__facts strong {
  color: #7cff6b;
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.game-intro__facts span {
  margin-top: 0.25rem;
  color: #aebdc2;
  font-size: 0.78rem;
  line-height: 1.35;
}

.game-intro__eyebrow {
  margin-bottom: 0.85rem;
  color: #ffb33b;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-intro__title {
  margin-bottom: 1.5rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: 0;
}

.game-intro__lead {
  max-width: 40rem;
  color: #e6edef;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.7;
}

.game-intro__copy {
  max-width: 40rem;
  margin-top: 0.9rem;
  color: #9fb0b6;
  font-size: 1rem;
  line-height: 1.75;
}

.game-intro__mechanics {
  margin-top: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.game-intro__mechanic {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.game-intro__mechanic > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.48);
  border-radius: 6px;
  color: #00e5ff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.game-intro__mechanic h3 {
  margin-bottom: 0.25rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.game-intro__mechanic p {
  color: #95a7ad;
  font-size: 0.92rem;
  line-height: 1.55;
}

.game-intro__cta {
  display: inline-flex;
  min-width: 240px;
  min-height: 58px;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: #f05f3f;
  color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.game-intro__cta:hover,
.game-intro__cta:focus-visible {
  background: #ff7354;
  transform: translateY(-2px);
  outline: none;
}

.game-intro__cta i {
  width: 34px;
  font-size: 1.65rem;
  text-align: center;
}

.game-intro__cta small,
.game-intro__cta strong {
  display: block;
  letter-spacing: 0;
}

.game-intro__cta small {
  font-size: 0.66rem;
  font-weight: 700;
  opacity: 0.82;
}

.game-intro__cta strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
}

/* Games showcase */
.games-showcase {
  background: #0d171b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.games-showcase__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.games-showcase__heading .section-title {
  margin-bottom: 0;
  background: none;
  color: #fff;
  font-size: 2.35rem;
  letter-spacing: 0;
}

.games-carousel {
  position: relative;
  outline: none;
}

.games-carousel:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.55);
}

.games-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4.5rem) / 4);
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
}

.games-track::-webkit-scrollbar {
  display: none;
}

.games-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.game-slide {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #132329;
  scroll-snap-align: start;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.game-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.game-slide:hover img {
  transform: scale(1.025);
  filter: brightness(1.08);
}

.games-carousel__controls {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.games-carousel__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  background: #14252b;
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.games-carousel__button i {
  font-size: 0.9rem;
}

.games-carousel__button:hover:not(:disabled),
.games-carousel__button:focus-visible {
  border-color: var(--accent-cyan);
  background: rgba(0, 140, 190, 0.34);
  outline: none;
}

.games-carousel__button:disabled {
  cursor: default;
  opacity: 0.34;
}

/* Game detail */
.game-detail {
  background: #0d171b;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.detail-item {
  display: grid;
  grid-template-rows: 112px 1fr;
  gap: 1rem;
  align-items: start;
  background: #132329;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 1.35rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.detail-item:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
  transform: translateY(-3px);
}

.detail-item__media {
  display: grid;
  width: 112px;
  height: 112px;
  margin-inline: auto;
  place-items: center;
}

.detail-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: var(--accent-cyan);
  text-align: center;
}

.detail-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: center;
}

/* Footer */
.site-footer {
  position: relative;
  color: #f4f7f7;
  border-top: 1px solid rgba(0, 229, 255, 0.34);
  background: #111517;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: min(36%, 460px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(170px, 0.65fr) minmax(240px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.footer-brand {
  max-width: 470px;
}

.footer-brand__identity {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.footer-brand__mark {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 74, 0.42);
  border-radius: 8px;
  background: #1b2022;
}

.footer-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand__identity strong,
.footer-brand__identity small {
  display: block;
}

.footer-brand__identity strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
  color: #fff;
}

.footer-brand__identity small {
  margin-top: 0.2rem;
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-brand__description {
  max-width: 440px;
  color: #aebabc;
  font-size: 0.94rem;
  line-height: 1.75;
}

.footer-block h2 {
  position: relative;
  margin: 0.3rem 0 1.35rem;
  padding-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  line-height: 1.4;
  color: #fff;
}

.footer-block h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-cyan);
}

.footer-policy-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.footer-policy-list a {
  display: inline-flex;
  align-items: center;
  color: #b8c2c4;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-policy-list a::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: var(--accent-gold);
}

.footer-policy-list a:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.footer-contact {
  font-style: normal;
}

.footer-contact > a,
.footer-contact > p {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  color: #b8c2c4;
  font-size: 0.92rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.footer-contact > a {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.9rem;
  transition: color 0.2s ease;
}

.footer-contact > a:hover {
  color: var(--accent-cyan);
}

.footer-contact i {
  padding-top: 0.3rem;
  color: var(--accent-gold);
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #0b0e0f;
}

.footer-bottom__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #7f8b8d;
  font-size: 0.82rem;
}

.footer-bottom__inner p:last-child {
  color: #aebabc;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(72%, 300px);
  }

  .game-intro__layout {
    gap: 3rem;
  }

  .game-intro__title {
    font-size: 2.2rem;
  }

  .games-track {
    grid-auto-columns: calc((100% - 2.5rem) / 3);
    gap: 1.25rem;
  }

  .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title--left {
    text-align: center;
  }

  .games-showcase .section-title--left {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr);
    gap: 2.5rem 4rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 640px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .brand-name {
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem;
    background: rgba(10, 2, 40, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links.is-open li{
    padding: 10px;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.9rem;
  }

  .header-actions .btn-signup {
    min-width: 100px;
    height: 38px;
    font-size: 0.7rem;
  }

  .header-actions .account-link {
    width: 146px;
    height: 42px;
    padding-right: 8px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 7px;
  }

  .header-actions .account-avatar {
    width: 32px;
    height: 32px;
  }

  .header-actions .account-copy small {
    display: none;
  }

  .header-actions .account-arrow {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 3rem;
    min-height: auto;
  }

  .btn-play {
    min-width: 180px;
    height: 52px;
    font-size: 1rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .game-intro__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.25rem;
  }

  .game-intro__media {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .game-intro__frame {
    width: min(100%, 410px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  }

  .game-intro__content {
    width: min(100%, 640px);
    margin-inline: auto;
  }

  .game-intro__title {
    font-size: 2rem;
  }

  .game-intro__lead {
    font-size: 1.05rem;
  }

  .games-showcase__heading {
    margin-bottom: 1.25rem;
  }

  .games-track {
    grid-auto-columns: min(76%, 290px);
    gap: 0.9rem;
  }

  .games-carousel__button {
    width: 40px;
    height: 40px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-item {
    min-height: 280px;
  }

  .game-intro__cta {
    width: 100%;
    justify-content: center;
  }

}

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.3rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand__identity {
    align-items: flex-start;
  }

  .footer-bottom__inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .site-header .brand-name {
    display: none;
  }

  .game-intro__facts div {
    padding-inline: 0.35rem;
  }

  .game-intro__facts span {
    font-size: 0.7rem;
  }

  .game-intro__mechanic {
    gap: 0.85rem;
  }

  .games-showcase__heading .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .logo-badge {
    font-size: 0.9rem;
  }
}
