/* Styles extracted from play-learn.html */

:root {
  --primary: #062b5f;
  --accent: #1d4ed8;
  --accent-2: #3b82f6;
  --cream: #f4f6f8;
  --white: #ffffff;
  --dark: #172033;
  --muted: #5b6773;
  --glass: rgba(255,255,255,0.86);
      --slate: #5b6773;
      --navy-2: #0b3a78;
      --blue-soft: rgba(29,78,216,0.14);
      --sky-soft: rgba(59,130,246,0.12);
  --stats-green: #1d4ed8;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: #d1d6db;
}

/* COMMON CONTAINERS */
.navbar-container,
.play-container,
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* PLAY WRAPPER */
.play-container {
  background: linear-gradient(135deg, #ffffff, var(--cream));
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.play-container:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(11, 31, 58, 0.16);
}

/* TOP BAR */
.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.9rem;
  text-align: center;
}

/* NAVBAR */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar {
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.97),
    rgba(244,246,248,0.93),
    rgba(255,255,255,0.97)
  );
  border-bottom: 1px solid rgba(91,103,115,0.22);
  box-shadow: 0 12px 30px rgba(15,23,42,0.12);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
  background: #ffffff;
  border-radius: 18px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
}

/* BRAND */
.brand-logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #ffffff, #f8fafc);
  border: 1px solid rgba(91,103,115,0.28);
  box-shadow: 0 10px 25px rgba(15,23,42,0.25);
  transform: translateX(-16px);
  opacity: 0;
  animation: brandIn 0.7s ease-out forwards 0.15s;
  text-decoration: none;
  color: inherit;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-main {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}
.brand-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

@keyframes brandIn {
  0% {
    opacity: 0;
    transform: translateX(-16px) translateY(4px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
  }
}

/* SEARCH BOX */
.search-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  background: rgba(248,250,252,0.96);
  border-radius: 999px;
  border: 1px solid rgba(91,103,115,0.28);
}
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  padding: 6px 4px;
  font-size: 0.85rem;
  width: 140px;
}
.search-box button {
  padding: 6px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(248,150,30,0.45);
  height: 40px;
  width: 60px;
}

/* NAV LINKS */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0.15rem;
  margin: 0;
  border-radius: 999px;
  background: rgba(248,250,252,0.96);
  border: 1px solid rgba(91,103,115,0.26);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.9);
  position: relative;
}
.nav-menu li {
  position: relative;
}
.nav-link {
  display: block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--slate));
}
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.nav-indicator {
  position: absolute;
  bottom: 2px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent-2));
  transition: transform 0.25s ease, width 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

/* MOBILE TOGGLE */
.menu-toggle {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* HERO (Play & Learn) */
.hero {
  width: 100%;
  height: 50vh;
  position: relative;
  overflow: hidden;
  background: var(--primary);
}
.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 1.5s ease, filter 1.5s ease;
}
.hero-slide.active {
  opacity: 1;
  filter: blur(0);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 6%;
  color: #fff;
  z-index: 2;
  text-align: center;
  background: linear-gradient(to top, rgba(11,31,58,0.72), rgba(11,31,58,0.28));
}
.hero-text h1 {
  font-size: 34px;
  font-weight: 900;
  text-shadow: 0 8px 30px rgba(0,0,0,0.8);
  margin-bottom: 10px;
}
.hero-text p {
  font-size: 18px;
  color: #dbeafe;
  font-weight: 600;
  text-shadow: 0 6px 22px rgba(0,0,0,0.7);
}

/* SECTION + CARDS */
.section {
  padding: 4rem 0;
}
.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* GLASSMORPHIC GRID CARDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(91,103,115,0.18);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  will-change: transform, box-shadow;
  max-width: 800px;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 26px 60px rgba(15, 23, 42, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.90);
  border-color: rgba(29,78,216,0.55);
  background: #ffffff;
}
.card:focus-visible {
  outline: 3px solid rgba(29,78,216,0.28);
  outline-offset: 3px;
}
.card h3 {
  color: var(--primary);
  margin-bottom: 0.7rem;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* PLAY TEXT */
.play-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1rem;
  color: #4b5563;
}
.play-note {
  max-width: 760px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: #ff0000;
}

/* PLAY CARD IMAGE */
.play-card-image-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #e5e7eb;
}
.play-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.card:hover .play-card-image {
  transform: scale(1.06);
}
.play-card-link-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0.9rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(6,43,95,0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover .play-card-link-text {
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(6,43,95,0.28);
}

/* CLICK-OPEN PLAY ACTIVITY CARDS */
.play-activity-card {
  padding: 1rem;
  text-align: left;
}
.play-activity-toggle {
  width: 100%;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: inherit;
  cursor: pointer;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font: inherit;
  text-align: left;
}
.play-activity-toggle:hover,
.play-activity-card.open .play-activity-toggle {
  box-shadow: inset 0 0 0 1px rgba(29,78,216,0.2);
}
.play-activity-toggle:focus-visible {
  outline: 3px solid rgba(29,78,216,0.28);
  outline-offset: 3px;
}
.play-activity-title {
  display: block;
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
}
.play-activity-summary {
  display: block;
  margin-top: 0.3rem;
  color: #5b6773;
  font-size: 0.88rem;
  line-height: 1.4;
}
.play-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease;
}
.play-activity-card.open .play-activity-icon {
  transform: rotate(45deg);
}
.play-activity-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem 0.35rem 0.35rem;
  text-align: center;
}
.play-activity-panel[hidden] {
  display: none;
}

/* LIGHTWEIGHT PLAY GAMES */
.mini-games-section {
  padding-top: 0;
}
.games-container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.games-intro {
  max-width: 760px;
  margin: 0 auto 2.3rem;
  text-align: center;
  color: #4b5563;
  font-size: 1rem;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.game-card {
  background: #ffffff;
  border: 1px solid rgba(91,103,115,0.18);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 16px 36px rgba(15,23,42,0.14);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.game-card h3 {
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1.2;
}
.game-kicker {
  width: fit-content;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(29,78,216,0.12);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.game-prompt {
  min-height: 52px;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: #f8fafc;
  color: #172033;
  border: 1px solid rgba(91,103,115,0.14);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.game-stage {
  min-height: 112px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(239,246,255,0.92)),
    #ffffff;
  border: 1px dashed rgba(29,78,216,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.color-word {
  min-width: 150px;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 2px solid currentColor;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
}
.dots-board {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 0.65rem;
  align-content: center;
  justify-content: center;
}
.dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: inset 0 -4px 0 rgba(15,23,42,0.12);
}
.shape-display,
.shape-icon {
  display: block;
}
.shape-display.shape-circle,
.shape-icon.shape-circle {
  border-radius: 999px;
  background: #14b8a6;
}
.shape-display.shape-square,
.shape-icon.shape-square {
  border-radius: 8px;
  background: #8b5cf6;
}
.shape-display.shape-triangle,
.shape-icon.shape-triangle {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-bottom: 58px solid #f43f5e;
}
.shape-display {
  width: 76px;
  height: 76px;
}
.shape-icon {
  width: 34px;
  height: 34px;
}
.shape-button .shape-icon.shape-triangle {
  border-left-width: 17px;
  border-right-width: 17px;
  border-bottom-width: 31px;
}
.letter-tile,
.number-sequence {
  min-width: 150px;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #ffffff;
  border: 2px solid rgba(29,78,216,0.22);
  color: var(--primary);
  font-size: 2rem;
  font-weight: 900;
}
.number-sequence {
  font-size: 1.55rem;
  letter-spacing: 0;
}
.pattern-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.pattern-token {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  box-shadow: inset 0 -4px 0 rgba(15,23,42,0.14);
}
.pattern-token.question {
  background: #ffffff;
  border: 2px dashed rgba(29,78,216,0.32);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.memory-game .game-stage {
  min-height: 250px;
}
.memory-board {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, clamp(54px, 17vw, 66px));
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
}
.memory-card {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
  color: var(--primary);
  cursor: pointer;
  box-shadow:
    inset 0 -5px 0 rgba(15,23,42,0.10),
    0 10px 18px rgba(15,23,42,0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.memory-card::before {
  content: "?";
  color: rgba(6,43,95,0.42);
  font-size: 1.35rem;
  font-weight: 900;
}
.memory-card-face {
  position: absolute;
  inset: 8px;
  border-radius: 11px;
  background: var(--memory-color, var(--accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.memory-card:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    inset 0 -5px 0 rgba(15,23,42,0.10),
    0 14px 24px rgba(15,23,42,0.18);
}
.memory-card:focus-visible {
  outline: 3px solid rgba(29,78,216,0.28);
  outline-offset: 3px;
}
.memory-card.is-flipped::before {
  opacity: 0;
}
.memory-card.is-flipped .memory-card-face {
  opacity: 1;
  transform: scale(1);
}
.memory-card.is-disabled {
  opacity: 0.78;
  cursor: default;
}
.memory-card.is-found {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.72);
}
.memory-card.is-missed {
  animation: memoryShake 0.28s ease;
  background: #fff1f2;
}
.game-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.game-btn,
.game-swatch,
.game-next {
  border: none;
  cursor: pointer;
  min-height: 48px;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.game-btn {
  background: #eef2ff;
  color: var(--primary);
}
.game-swatch {
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.12);
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.28);
}
.shape-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid rgba(91,103,115,0.14);
}
.game-btn:hover,
.game-swatch:hover,
.game-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15,23,42,0.18);
  filter: brightness(1.03);
}
.game-btn:focus-visible,
.game-swatch:focus-visible,
.game-next:focus-visible {
  outline: 3px solid rgba(29,78,216,0.28);
  outline-offset: 3px;
}
.game-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.game-score {
  color: #4b5563;
  font-weight: 700;
  font-size: 0.92rem;
}
.game-next {
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  min-width: 86px;
}
.game-next:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
  filter: none;
}
.game-feedback {
  min-height: 26px;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 700;
}
.game-feedback.good {
  color: #047857;
}
.game-admission-popup {
  position: fixed;
  inset: 0;
  background: rgba(6, 43, 95, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.game-admission-popup.show {
  opacity: 1;
  visibility: visible;
}
.game-admission-card {
  width: min(92vw, 460px);
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 26px 60px rgba(15,23,42,0.35);
  border: 1px solid rgba(255,255,255,0.76);
  transform: translateY(12px) scale(0.96);
  transition: transform 0.25s ease;
}
.game-admission-popup.show .game-admission-card {
  transform: translateY(0) scale(1);
}
.game-admission-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(29,78,216,0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}
.game-admission-card h3 {
  color: var(--primary);
  font-size: 1.55rem;
  margin: 0.8rem 0 0.55rem;
}
.game-admission-card p {
  color: #4b5563;
  font-size: 0.96rem;
}
.game-admission-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.game-admission-actions a,
.game-admission-actions button {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.game-admission-actions a {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
}
.game-admission-actions button {
  background: #eef2ff;
  color: var(--primary);
}

@keyframes memoryShake {
  0%,
  100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-5px);
  }
  70% {
    transform: translateX(5px);
  }
}

/* FOOTER */
.site-footer {
  background: var(--primary);
  color: #e5e7eb;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(148,163,184,0.3);
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f9fafb;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.9rem;
  color: #9ca3af;
  max-width: 260px;
}
.footer-copy-small {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: #6b7280;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li + li {
  margin-top: 0.4rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover {
  color: #93c5fd;
  transform: translateX(2px);
}
.footer-contact {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.6rem;
}
.footer-contact a {
  color: #93c5fd;
  text-decoration: none;
}
.footer-contact a:hover {
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border: 1px solid rgba(147,197,253,0.28);
  color: #e5e7eb;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  background: #93c5fd;
  color: var(--primary);
  transform: translateY(-1px);
}
.footer-bottom {
  border-top: 1px solid rgba(147,197,253,0.16);
  padding: 0.8rem 0;
  text-align: center;
  background: var(--primary);
}
.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* FLOATING SOCIAL ICONS */
.social-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.social-floating a {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15,23,42,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 20px;
}
.social-floating a:hover {
  transform: translateY(-2px) scale(1.10);
  box-shadow: 0 10px 24px rgba(15,23,42,0.4);
}
.whatsapp-btn { background:#25d366; }
.facebook-btn { background:#1877f2; }
.instagram-btn {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* OFFER POPUP */
.offer-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}
.offer-popup.show {
  opacity: 1;
  visibility: visible;
}
.offer-popup-content {
  position: relative;
  width: 95%;
  max-width: 500px;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.5),
    0 0 0 6px rgba(255,255,255,0.15);
  transform: scale(0.8);
  transition: 0.4s ease;
}
.offer-popup.show .offer-popup-content {
  transform: scale(1);
}
.offer-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #fff;
  overflow: hidden;
}
.offer-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  opacity: 0;
  transition: opacity 1s ease;
}
.offer-slide.active {
  opacity: 1;
}
.offer-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: #000;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}
.offer-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: #ff4d4d;
  color: white;
}

/* MOBILE */
@media (max-width: 992px) {
  .navbar-inner {
    flex-wrap: wrap;
  }
  .search-box input {
    width: 120px;
  }
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    flex-wrap: nowrap;
  }
  .search-box {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    flex-direction: column;
    gap: 0;
    background: var(--glass);
    margin-top: 0.6rem;
    padding: 0.4rem;
    max-height: 0;
    overflow: hidden;
    transform-origin: top;
    transition: max-height 0.25s ease;
  }
  .nav-menu.open {
    max-height: 350px;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.55rem 0.9rem;
  }
  .nav-indicator {
    display: none;
  }

  .offer-popup-content {
    width: 95%;
  }
  .offer-slider {
    height: 320px;
  }
  .games-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .game-card {
    min-height: 390px;
  }
  .game-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* POLISHED OFFER POPUP OVERRIDES */
.offer-popup-content{
  position: relative;
  width: min(96vw, 1040px);
  max-width: none;
  max-height: 88vh;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.5),
    0 0 0 6px rgba(255,255,255,0.15);
  transform: scale(0.8);
  transition: 0.4s ease;
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(300px, 460px) minmax(190px, 0.9fr);
  align-items: stretch;
}
.offer-popup.show .offer-popup-content{
  transform: scale(1);
}
.offer-side-panel {
  background: linear-gradient(180deg, #061f45, var(--primary));
  color: #ffffff;
  padding: 2.4rem 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  border-inline: 1px solid rgba(255,255,255,0.10);
  min-height: 0;
}
.offer-side-panel h3 {
  font-size: 1.22rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 0.2rem;
  color: #d4af37;
  text-align: center;
}
.offer-marquee {
  position: relative;
  overflow: hidden;
  height: min(54vh, 420px);
  min-height: 270px;
  border-top: 1px solid rgba(212,175,55,0.24);
  border-bottom: 1px solid rgba(212,175,55,0.24);
  padding-block: 0.65rem;
}
.offer-marquee-track {
  display: grid;
  gap: 0.8rem;
  animation: offerTextMove 24s linear infinite;
}
.offer-side-panel:hover .offer-marquee-track {
  animation-play-state: paused;
}
.offer-side-panel ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
}
.offer-side-panel li {
  background: rgba(255,255,255,0.055);
  border-left: 3px solid #d4af37;
  padding: 0.58rem 0.7rem;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: left;
}
.offer-side-panel li:nth-child(even) {
  border-left-color: #b11226;
}
.offer-side-panel li strong {
  display: block;
  color: #d4af37;
  font-size: 1.18rem;
  font-weight: 700;
}
.offer-side-panel li:nth-child(even) strong {
  color: #ffccd3;
}
.offer-side-panel li span {
  display: block;
  color: rgba(255,255,255,0.86);
  font-size: 0.82rem;
  margin-top: 0.18rem;
}
@keyframes offerTextMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.offer-slider{
  position: relative;
  width: 100%;
  height: min(78vh, 650px);
  min-height: 420px;
  aspect-ratio: auto;
  background: #fff;
  overflow: hidden;
}
.offer-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  opacity: 0;
  transition: opacity 1s ease;
}
.offer-slide.active{
  opacity: 1;
}
.offer-close{
  z-index: 20;
}
@media (max-width: 768px) {
  .offer-popup-content {
    width: min(94vw, 430px);
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .offer-slider {
    order: 1;
    height: min(42vh, 340px);
    min-height: 230px;
  }
  .offer-side-panel {
    order: 2;
    padding: 0.8rem;
  }
  .offer-popup-content > .offer-side-panel:nth-of-type(2) {
    display: none;
  }
  .offer-side-panel h3 {
    font-size: 0.95rem;
  }
  .offer-marquee {
    height: 185px;
    min-height: 185px;
  }
  .offer-marquee-track {
    animation-duration: 18s;
  }
  .offer-side-panel li {
    font-size: 0.78rem;
    padding: 0.5rem;
  }
  .offer-side-panel li strong {
    font-size: 0.95rem;
  }
  .offer-side-panel li span {
    display: none;
  }
}
@media (max-width: 420px) {
  .offer-slider {
    height: min(38vh, 300px);
    min-height: 210px;
  }
  .offer-side-panel h3 {
    font-size: 0.9rem;
  }
  .offer-marquee {
    height: 165px;
    min-height: 165px;
  }
}
