/* ===== Narat Website — Custom Styles ===== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* CSS Variables */
:root {
  --brand: #5b27f1;
  --brand-hover: #6c3df4;
  --bg-light: #f5f5f7;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-muted: #999999;
  --footer-bg: #000000;
  --nav-height: 4.6rem;
  --input-bg: #e0e0e9;
  --input-text: #9797a2;
  --input-placeholder: #8b8b9d;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* added to fix the horzintal scrolling */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: var(--nav-height);
  box-shadow: 0 4px 12px rgba(91, 39, 241, 0.15);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 2.25rem;
  object-fit: contain;
  transition: all 0.3s;
}

.nav-logo:hover img {
  transform: scale(1.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  padding: 0.65rem 1.25rem;
  border-radius: 0.65rem;
  font-weight: 700;
  color: white;
  transition: all 0.3s;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
  background: white;
  color: var(--brand);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  padding: 0.65rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--brand);
  width: 100%;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  border-radius: 0.65rem;
  font-weight: 700;
  color: white;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 1rem;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu a.active {
  background: white;
  color: var(--brand);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .nav {
    height: auto;
  }
  .nav-container {
    min-height: var(--nav-height);
    flex-wrap: wrap;
    padding: 0 1rem;
  }
  .mobile-menu {
    width: 100%;
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 10;
}

.hero-content {
  position: relative;
  z-index: 20;
  padding: 2rem;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 
    -2px -2px 0 rgba(0, 0, 0, 0.8),
    2px -2px 0 rgba(0, 0, 0, 0.8),
    -2px 2px 0 rgba(0, 0, 0, 0.8),
    2px 2px 0 rgba(0, 0, 0, 0.8),
    0 -2px 0 rgba(0, 0, 0, 0.8),
    0 2px 0 rgba(0, 0, 0, 0.8),
    -2px 0 0 rgba(0, 0, 0, 0.8),
    2px 0 0 rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 0, 0, 0.6),
    0 0 10px rgba(0, 0, 0, 0.8);
}

.hero p {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
  letter-spacing: 0.5px;
  text-shadow: 
    -1px -1px 0 rgba(0, 0, 0, 0.7),
    1px -1px 0 rgba(0, 0, 0, 0.7),
    -1px 1px 0 rgba(0, 0, 0, 0.7),
    1px 1px 0 rgba(0, 0, 0, 0.7),
    0 -1px 0 rgba(0, 0, 0, 0.7),
    0 1px 0 rgba(0, 0, 0, 0.7),
    -1px 0 0 rgba(0, 0, 0, 0.7),
    1px 0 0 rgba(0, 0, 0, 0.7),
    0 0 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: rgba(0, 0, 0, 0.65);
  border-left: 4px solid #ff2f2f;
  color: #ffffff;
  font-style: italic;
  font-weight: 500;
  border-radius: 0.3rem;
  max-width: 90%;
  line-height: 1.4;
  text-shadow: none;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--brand);
  color: white;
  padding: 0.95rem 2.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(91, 39, 241, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-hero:hover {
  background: var(--brand-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(91, 39, 241, 0.6);
}

.btn-hero:active {
  transform: scale(0.96);
}

.btn-hero svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
}

.btn-hero:hover svg {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .hero p {
    font-size: 1.5rem;
  }
  .hero h1 {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 85vh;
    min-height: 500px;
  }
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }
  .hero-content {
    padding: 1.5rem;
  }
  .btn-hero {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 80vh;
    min-height: 450px;
  }
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.2));
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2.25rem;
  border-radius: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 12px rgba(91, 39, 241, 0.3);
}

.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 6px 16px rgba(91, 39, 241, 0.5);
}

.btn-white {
  background: white;
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #f1f5f9;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2.5px solid var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: white;
}

.btn-sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
}

/* ===== Sections ===== */
.section {
  padding: 4.5rem 1rem;
}

.section-white {
  background: var(--bg-white);
}

.section-light {
  background: var(--bg-light);
}

.section-purple {
  background: var(--brand);
  color: white;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header-left {
  text-align: left;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .section-header-left {
    text-align: center;
  }
}

.section-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 13.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 3.25rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}

.section-title .highlight {
  color: var(--brand);
}

.section-desc {
  color: var(--text-medium);
  max-width: 48rem;
  margin: 1.25rem auto 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 1rem;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
}

/* ===== Two Column Layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.about-character-wrap {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .about-character-wrap {
    justify-content: flex-end;
  }
}

.about-text h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2.75rem;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.about-text p {
  color: #475569;
  margin-bottom: 1.75rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-text p strong {
  color: var(--text-dark);
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--bg-light);
  color: var(--text-medium);
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-3px);
}

/* ===== Game Cards (Home Page) ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.game-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: white;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(91, 39, 241, 0.2);
}

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

.game-card img.game-card-img {
  transition: filter 0.4s, transform 0.4s;
}

.game-card:hover img.game-card-img {
  filter: brightness(0.7) blur(3px);
  transform: scale(1.02);
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.store-badges {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
  max-width: 220px;
}

.store-badges a {
  display: block;
  width: 100%;
  max-width: 220px;
  transition: transform 0.3s;
}

.store-badges a:hover {
  transform: scale(1.08);
}

.store-badge {
  width: 100%;
  height: auto;
}

/* ===== Game Cards (Games Page) ===== */
.games-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .games-page-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.game-detail-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: var(--bg-light);
  transition: all 0.3s;
}

.game-detail-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.game-detail-image {
  flex-shrink: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  background: white;
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.game-detail-image img {
  width: 240px;
  height: auto;
  object-fit: contain;
}

.game-detail-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.game-badge {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  width: fit-content;
  letter-spacing: 0.5px;
}

.game-detail-info h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1.75rem;
  text-transform: uppercase;
  margin: 0.25rem 0;
}

.game-detail-info p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 22rem;
}

.game-detail-info .store-badges {
  margin-top: auto;
  flex-direction: row;
  align-items: flex-start;
  max-width: 100%;
  gap: 0.75rem;
}

.game-detail-info .store-badge {
  height: auto;
  width: auto;
  max-width: 180px;
}

@media (max-width: 640px) {
  .game-detail-card {
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
  }
  .game-detail-image {
    width: 100%;
  }
  .game-detail-image img {
    width: 100%;
    max-width: 240px;
  }
  .game-detail-info {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .game-badge {
    width: fit-content;
    margin: 0 auto;
  }
  .game-detail-info .store-badges {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0.75rem auto 0;
    width: 100%;
  }
  .game-detail-info .store-badge {
    max-width: 180px;
  }
}

.section-desc-left {
  color: var(--text-medium);
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 0;
}

@media (max-width: 640px) {
  .section-desc-left {
    margin: 0 auto;
  }
}

/* ===== CTA Section ===== */
.cta-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  border-radius: 1.5rem;
  padding: 4rem 3rem;
  text-align: center;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(91, 39, 241, 0.25);
}

.cta-card h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.cta-card p {
  color: #e2e8f0;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.cta-card .btn {
  border-radius: 0.75rem;
  padding: 1.1rem 2.75rem;
}

@media (max-width: 768px) {
  .cta-card {
    padding: 3rem 1.5rem;
  }
  .cta-card h2 {
    font-size: 1.9rem;
  }
  .cta-card p {
    font-size: 1rem;
  }
}

/* ===== Stats Section ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--bg-light);
  transition: all 0.3s;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(91, 39, 241, 0.1);
}

.stat-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s;
}

.stat-item:hover .stat-icon {
  transform: scale(1.1);
}

.stat-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}

.stat-value {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--brand);
}

.stat-label {
  color: var(--text-medium);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== Contact Section ===== */
.contact-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .contact-header {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-header-image {
    order: -1;
    max-width: 350px;
    margin: 0 auto;
  }
}

.contact-header-image {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .contact-header-image {
    justify-content: flex-end;
  }
}

.contact-header-image img {
  max-width: 100%;
  height: auto;
}

.contact-emails {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-email-item h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.contact-email-item p {
  font-size: 1.05rem;
  color: var(--text-dark);
}

.contact-email-item a {
  color: inherit;
  transition: color 0.2s;
  font-weight: 600;
}

.contact-email-item a:hover {
  color: var(--brand);
}

/* Contact Form */
.contact-form-wrap {
  max-width: 48rem;
}

.contact-form-wrap h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form-wrap > p {
  color: var(--text-medium);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  color: var(--text-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  background: white;
  color: var(--text-dark);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--input-placeholder);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 39, 241, 0.1);
  background: white;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 1.1rem;
  border-radius: 0.75rem;
  background: var(--brand);
  color: white;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(91, 39, 241, 0.3);
}

.form-submit:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(91, 39, 241, 0.5);
}

.form-submit:active {
  transform: translateY(0);
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(20, 83, 45, 0.08);
  border: 2px solid #22c55e;
  border-radius: 1.25rem;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-success.show {
  display: block;
}

.form-success .checkmark {
  width: 4.5rem;
  height: 4.5rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

.form-success .checkmark svg {
  color: white;
  width: 2.25rem;
  height: 2.25rem;
}

.form-success h3 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: #16a34a;
}

.form-success p {
  color: var(--text-medium);
  font-size: 1.05rem;
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(180deg, #000000 0%, #111827 100%);
  border-top: 1px solid #1e293b;
  padding: 4rem 1rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand img {
  height: 2.25rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s;
}

.footer-brand img:hover {
  transform: scale(1.05);
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-legal h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.footer-legal-links {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-legal-links a {
  color: #94a3b8;
  transition: color 0.3s;
  font-weight: 500;
}

.footer-legal-links a:hover {
  color: #c084fc;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li:last-child {
  margin-bottom: 0;
}

.footer-col ul a {
  color: #94a3b8;
  transition: all 0.3s;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-col ul a:hover {
  color: #c084fc;
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  color: #94a3b8;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
}

/* ===== Legal Pages ===== */
.legal-page {
  max-width: 52rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 2.5rem;
  transition: all 0.3s;
}

.back-link:hover {
  color: var(--brand-hover);
  transform: translateX(-4px);
}

.legal-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.legal-meta {
  background: var(--bg-light);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 3rem;
}

.legal-meta p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin: 0;
}

.legal-content h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  margin-top: 2.5rem;
}

.legal-content h3 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  margin-top: 1.75rem;
}

.legal-content p {
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.legal-content a {
  color: var(--brand);
  text-decoration: underline;
  transition: color 0.2s;
  font-weight: 600;
}

.legal-content a:hover {
  color: var(--brand-hover);
}

.legal-content ul {
  list-style: disc;
  padding-left: 2rem;
  margin-bottom: 1.25rem;
}

.legal-content ul li {
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 0.75rem;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-info-box {
  background: var(--bg-light);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  margin-top: 1.5rem;
  border-left: 4px solid var(--brand);
}

.legal-info-box h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.legal-info-box p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.legal-notice {
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
  border: 2px solid #fde68a;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
}

.legal-notice h3 {
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.legal-notice p {
  font-size: 0.95rem;
  color: #a16207;
  margin-bottom: 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .legal-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

/* ===== Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for game cards */
.games-grid .game-card:nth-child(2) { transition-delay: 0.15s; }
.games-grid .game-card:nth-child(3) { transition-delay: 0.3s; }

/* Scroll-linked scale animation for headings (Framer Motion replica) */
@supports (animation-timeline: view()) {
  .scale-on-scroll {
    animation: scaleHeading linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  @keyframes scaleHeading {
    0%   { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }
}

/* Fallback for browsers without scroll-timeline */
@supports not (animation-timeline: view()) {
  .scale-on-scroll {
    opacity: 0;
    transform: scale(1.5);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  }
  .scale-on-scroll.visible {
    opacity: 1;
    transform: scale(1);
  }
}

/* Coming Soon button */
.coming-soon-badge {
  display: block;
  width: 100%;
  max-width: 220px;
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  color: white;
  padding: 0.9rem 1.75rem;
  border-radius: 0.65rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border: none;
  cursor: default;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Styling for the Coming Soon text */
.coming-soon-text {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

/* ===== Admin Page ===== */
.admin-container {
  max-width: 64rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.admin-section {
  background: white;
  border-radius: 1.25rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.admin-section h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--brand);
  text-transform: uppercase;
}

.admin-field {
  margin-bottom: 1.5rem;
}

.admin-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-medium);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s;
}

.admin-field input:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 39, 241, 0.1);
}

.admin-field textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 2rem;
  position: sticky;
  bottom: 0;
  background: var(--bg-light);
  border-radius: 0 0 1.25rem 1.25rem;
  margin: 0 -2.5rem -2.5rem -2.5rem;
}