/* Mania Jackpot — Official Website */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

:root {
  --bg-deep: #ffffff;
  --bg-mid: #f5f5f5;
  --bg-card: #ffffff;
  --bg-soft: #f5f5f5;
  --accent-cyan: #00e5ff;
  --accent-green: #7cff6b;
  --accent-pink: #ff4fd8;
  --accent-gold: #ffd24a;
  --accent-blue: #3b8bff;
  --text: #111827;
  --text-muted: #5b6470;
  --line: #e6e8ec;
  --nav-h: 72px;
  --radius: 8px;
  --shadow-glow: 0 16px 36px rgba(17, 24, 39, 0.08);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', 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.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.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;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #111827;
}

.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.02em;
  padding: 0.55rem 1rem;
  color: #4b5563;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #111827;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

.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 var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.account-link:hover {
  border-color: rgba(0, 194, 255, 0.45);
  background: #ffffff;
  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: #6b7280;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.account-arrow {
  color: #9ca3af;
  font-size: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #111827;
  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: min(720px, calc(100vh - var(--nav-h)));
  min-height: min(720px, calc(100dvh - var(--nav-h)));
  padding: calc(var(--nav-h) + 2.25rem) 0 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 42%, rgba(255, 255, 255, 0.56) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.42) 46%, rgba(255, 255, 255, 0.88) 100%),
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  opacity: 1;
}

.hero-deco {
  display: none;
}

.hero-deco--1 {
  width: 90px;
  height: 90px;
  top: 22%;
  right: 38%;
  background: radial-gradient(circle, rgba(180, 80, 255, 0.7), transparent 70%);
  animation-delay: 0s;
}

.hero-deco--2 {
  width: 70px;
  height: 70px;
  top: 48%;
  right: 12%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.55), transparent 70%);
  animation-delay: 1.2s;
}

.hero-deco--3 {
  width: 56px;
  height: 56px;
  bottom: 18%;
  right: 42%;
  background: radial-gradient(circle, rgba(255, 210, 74, 0.5), transparent 70%);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 1.02fr);
  align-items: center;
  gap: 2.5rem;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2563eb;
  margin-bottom: 0.35rem;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
  color: #111827;
  text-shadow: none;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: #374151;
  margin-bottom: 1.5rem;
  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 22px 34px rgba(17, 24, 39, 0.12));
}

.logo-badge {
  margin-top: -1.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.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: 5rem 0;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  margin-bottom: 1.25rem;
  color: #111827;
}

.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;
}

/* Intro + Download */
.intro {
  background: #ffffff;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: stretch;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.intro-copy {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  text-align: left;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.75;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.intro-copy .section-title {
  margin-bottom: 1rem;
}

.intro-copy p + p {
  margin-top: 1rem;
}

.intro-copy strong {
  color: #111827;
  font-weight: 800;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.65rem;
  color: #2563eb;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.intro-card h3 {
  margin-bottom: 1.1rem;
  color: #111827;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.intro-goals {
  display: grid;
  gap: 0.95rem;
  list-style: none;
}

.intro-goals li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.intro-goals i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #2563eb;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.intro-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.intro-highlight-grid article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
}

.intro-highlight-grid strong {
  color: #111827;
  font-family: var(--font-display);
  font-size: 1rem;
}

.intro-highlight-grid span {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: min(100%, 280px);
  padding: 1.1rem 1.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #3d7bff, #00d8ff);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 32px rgba(0, 180, 255, 0.45);
  transition: filter 0.25s, transform 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.store-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.store-btn svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.04em;
}

.store-btn strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* Games showcase */
.games-showcase {
  background: var(--bg-soft);
}

.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;
}

.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% - 3.5rem) / 3);
  gap: 1.75rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
  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: 3 / 2; */
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  scroll-snap-align: start;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.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 var(--line);
  border-radius: 8px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
  transition: background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.games-carousel__button span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.games-carousel__button:hover:not(:disabled),
.games-carousel__button:focus-visible {
  border-color: rgba(0, 194, 255, 0.45);
  background: var(--bg-soft);
  outline: none;
}

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

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

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

.detail-item {
  display: grid;
  grid-template-rows: 72px 1fr;
  gap: 0.95rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  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, 194, 255, 0.35);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transform: translateY(-3px);
}

.detail-item__media {
  display: grid;
  width: 72px;
  height: 72px;
  margin-inline: auto;
  place-items: center;
  border-radius: 8px;
  color: #2563eb;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.detail-item__media i {
  font-size: 1.7rem;
}

.detail-item h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: #111827;
  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: #111827;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}



.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 var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.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: #111827;
}

.footer-brand__identity small {
  margin-top: 0.2rem;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer-brand__description {
  max-width: 440px;
  color: var(--text-muted);
  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: #111827;
}

.footer-block h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #3d7bff;
}

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

.footer-policy-list a {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  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: #3d7bff;
}

.footer-policy-list a:hover {
  color: #111827;
  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: var(--text-muted);
  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: #111827;
}

.footer-contact i {
  padding-top: 0.3rem;
  color: #3d7bff;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.footer-bottom__inner p:last-child {
  color: #111827;
  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;
  }

  .intro-layout,
  .intro-highlight-grid {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    text-align: center;
  }

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

  .hero-visual {
    order: -1;
  }

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

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

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

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

@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(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(17, 24, 39, 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.75rem);
    padding-bottom: 3rem;
    min-height: auto;
  }

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

  .section {
    padding: 3.5rem 0;
  }

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

  .games-track {
    grid-auto-columns: 86%;
    gap: 0.9rem;
  }

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

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

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

  .store-btn {
    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;
  }
}

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

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