/* Verge Arcade — Vibrant Mela Bento Design System */
:root {
  color-scheme: light;
  --cream: #faf6ee;
  --cream-soft: #f3ece0;
  --card: #ffffff;
  --ink: #141122;
  --muted: #5b556e;
  --line: #e6dfd1;
  --indigo: #1e1848;
  --indigo-deep: #130e31;
  --violet: #6d5dfc;
  --pink: #ff4d8d;
  --pink-dark: #c92662;
  --gold: #ffd166;
  --gold-deep: #c98f16;
  --emerald: #1fa56f;
  --emerald-dark: #0f231e;
  --purple: #28104f;
  --teal: #14b8c4;

  /* Per-page active accents (overridden via body[data-game]) */
  --page-deep: #1e1848;
  --page-brand: #6d5dfc;
  --page-accent: #ffd166;
  --page-accent-ink: #141122;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-card: 0 8px 26px rgba(20, 17, 34, 0.07);
  --shadow-hover: 0 20px 44px rgba(30, 24, 72, 0.14);
}

body[data-game="rickshaw"] {
  --page-deep: #28104f;
  --page-brand: #6139a4;
  --page-accent: #f4c24b;
  --page-accent-ink: #28104f;
}

body[data-game="arrow"] {
  --page-deep: #0f231e;
  --page-brand: #1fa56f;
  --page-accent: #f2b544;
  --page-accent-ink: #0f231e;
}

body[data-game="block"] {
  --page-deep: #1e1848;
  --page-brand: #7c6cff;
  --page-accent: #ffd166;
  --page-accent-ink: #1e1848;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.page-shell, .bento-hero, .spotlight-stage, .mini-bento, .game-card, .safar-panel {
  min-width: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 "Trebuchet MS", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

/* =========================================================
   Animated Gaming Background Layers
   ========================================================= */
.arcade-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(920px 520px at 90% -4%, rgba(109, 93, 252, 0.13), transparent 65%),
    radial-gradient(760px 480px at -6% 18%, rgba(255, 77, 141, 0.09), transparent 65%),
    radial-gradient(680px 500px at 78% 92%, rgba(31, 165, 111, 0.09), transparent 65%),
    var(--cream);
}

/* Soft drifting ambient arcade grid */
.arcade-backdrop::before {
  content: "";
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(to right, rgba(30, 24, 72, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 24, 72, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 26s linear infinite;
}

/* Warm drifting aura glow */
.arcade-backdrop::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -120px;
  top: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.22), transparent 70%);
  filter: blur(18px);
  animation: auraFloat 14s ease-in-out infinite alternate;
}

#arcade-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

body.fx-paused .arcade-backdrop::before,
body.fx-paused .arcade-backdrop::after,
body.fx-paused .ticker-track {
  animation-play-state: paused !important;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(48px, 48px, 0); }
}

@keyframes auraFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-90px, 60px, 0) scale(1.14); }
}

/* =========================================================
   Top Festive Studio Ticker & Truck-Art Trim
   ========================================================= */
.ticker {
  position: relative;
  z-index: 20;
  background: var(--indigo);
  color: var(--gold);
  overflow: hidden;
  border-bottom: 3px solid transparent;
  background-clip: padding-box;
}

.truck-trim {
  height: 4px;
  width: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    #ffd166 0 18px,
    #ff4d8d 18px 36px,
    #14b8c4 36px 54px,
    #4ade80 54px 72px
  );
  background-size: 144px 100%;
  animation: trimSlide 8s linear infinite;
}
body.fx-paused .truck-trim { animation-play-state: paused; }

@keyframes trimSlide {
  from { background-position: 0 0; }
  to { background-position: 144px 0; }
}

.ticker-inner {
  display: flex;
  width: max-content;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-dot { color: var(--pink); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   Sticky Header & Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 246, 238, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--pink) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(109, 93, 252, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.brand-link:hover .brand-emblem { transform: rotate(-6deg) scale(1.06); }

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-text strong em { font-style: normal; color: var(--violet); }
.brand-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.16s, color 0.16s;
}
.nav-pill:hover, .nav-pill.is-active {
  background: #ebe3d3;
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.16s, transform 0.15s;
}
.fx-toggle:hover { border-color: var(--violet); transform: translateY(-1px); }
.fx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}
body.fx-paused .fx-dot { background: #9ca3af; box-shadow: none; }

.menu-btn {
  display: none;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--line);
  background: rgba(250, 246, 238, 0.98);
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer.is-open { display: flex; }

/* =========================================================
   Buttons (Chunky 3D Arcade Bevel)
   ========================================================= */
.btn-arcade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 4px 0 var(--gold-deep), inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.14s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.14s;
}
.btn-arcade:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--gold-deep), inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.btn-arcade:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--gold-deep); }

.btn-pink {
  color: #fff;
  background: var(--pink);
  box-shadow: 0 4px 0 var(--pink-dark), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.btn-pink:hover { box-shadow: 0 6px 0 var(--pink-dark), inset 0 2px 0 rgba(255, 255, 255, 0.4); }
.btn-pink:active { box-shadow: 0 2px 0 var(--pink-dark); }

.btn-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 4px 0 #000, inset 0 2px 0 rgba(255, 255, 255, 0.15);
}
.btn-dark:hover { background: var(--violet); box-shadow: 0 6px 0 #3f31ba; }

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }

/* =========================================================
   Main Layout & Sections
   ========================================================= */
.page-shell {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* =========================================================
   Homepage Bento Hero
   ========================================================= */
.bento-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.spotlight-stage {
  position: relative;
  min-height: 410px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--purple);
  box-shadow: 0 24px 48px rgba(30, 24, 72, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.spotlight-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.spotlight-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s ease, opacity 0.35s ease;
}
.spotlight-stage:hover .spotlight-bg img { transform: scale(1.03); }

.spotlight-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 11, 36, 0.92) 0%, rgba(16, 11, 36, 0.62) 48%, rgba(16, 11, 36, 0.18) 100%),
    linear-gradient(0deg, rgba(16, 11, 36, 0.94) 0%, transparent 60%);
}

.spotlight-top {
  position: relative;
  z-index: 2;
  padding: 20px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spotlight-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spot-tab {
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 10, 30, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}
.spot-tab:hover { background: rgba(255, 255, 255, 0.2); }
.spot-tab.is-active {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.spotlight-body {
  position: relative;
  z-index: 2;
  padding: 28px 26px 24px;
  max-width: 560px;
}

.spotlight-body h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.spotlight-body p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.5;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.stat-chip {
  padding: 4px 11px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
}

.spotlight-progress {
  position: relative;
  z-index: 2;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
}
.spotlight-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--pink));
}

/* Right Bento Stack */
.bento-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-bento {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 22px;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(20, 17, 34, 0.15);
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s;
}
.mini-bento:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(20, 17, 34, 0.22);
}

.mini-bento-arrow { background: linear-gradient(145deg, #0f231e 0%, #16503f 70%, #1fa56f 100%); }
.mini-bento-block { background: linear-gradient(145deg, #161136 0%, #2f226d 68%, #6d3a68 100%); }

.mini-bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mini-bento-top img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.mini-bento:hover .mini-bento-top img { transform: translateY(-5px) rotate(-4deg) scale(1.06); }

.mini-bento h3 {
  margin: 14px 0 4px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.mini-bento p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}
.mini-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--gold);
}

/* =========================================================
   Filter Pills & 3-Game Catalog Grid
   ========================================================= */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s;
}
.filter-pill:hover { border-color: var(--violet); color: var(--ink); }
.filter-pill.is-active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: var(--gold);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.game-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), border-color 0.2s, box-shadow 0.25s;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--violet);
  box-shadow: var(--shadow-hover);
}
.game-card.is-hidden { display: none; }

.game-banner {
  position: relative;
  aspect-ratio: 1024 / 500;
  overflow: hidden;
  background: var(--indigo);
}
.game-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.game-card:hover .game-banner img { transform: scale(1.05); }

.banner-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.tag-dark {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 17, 34, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.tag-gold {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.game-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.game-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.game-card-head img {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  box-shadow: 0 6px 14px rgba(20, 17, 34, 0.16);
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.game-card:hover .game-card-head img { transform: translateY(-6px) rotate(-4deg); }

.game-card-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.game-meta {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--violet);
}

.game-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.game-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.game-card-actions .btn-arcade { flex: 1; padding: 9px 14px; font-size: 0.84rem; }
.link-ghost {
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-decoration: none;
  background: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
}
.link-ghost:hover { color: var(--ink); border-color: var(--violet); }

/* =========================================================
   Interactive Safar-e-Pakistan Explorer Panel
   ========================================================= */
.safar-panel {
  background: linear-gradient(135deg, #130e31 0%, #241958 55%, #123c31 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 48px;
  box-shadow: 0 22px 46px rgba(20, 17, 34, 0.18);
  position: relative;
  overflow: hidden;
}

.safar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.safar-top h2 { margin: 4px 0 0; font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; }
.safar-top p { margin: 4px 0 0; color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; }

.route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.route-stop {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s;
}
.route-stop:hover { background: rgba(255, 255, 255, 0.18); }
.route-stop.is-active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.route-detail-box {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.route-detail-box h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--gold); }
.route-detail-box p { margin: 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.86); }

/* =========================================================
   Studio Craft Bento Grid
   ========================================================= */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.craft-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s;
}
.craft-card:hover { transform: translateY(-3px); border-color: var(--violet); }
.craft-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 12px;
}
.craft-card h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 900; }
.craft-card p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }

/* =========================================================
   Game Detail Subpage Components
   ========================================================= */
.game-hero-card {
  background: var(--page-deep);
  color: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(20, 17, 34, 0.22);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr);
  align-items: center;
}

.game-hero-copy {
  padding: 34px 34px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.game-title-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}
.game-title-lockup img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2px solid var(--page-accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.game-title-lockup h1 {
  margin: 4px 0 0;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.game-hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.55;
}

.game-hero-art {
  position: relative;
  aspect-ratio: 1024 / 500;
  width: 100%;
  background: var(--page-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.features-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.features-3 article {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.features-3 h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 900; color: var(--page-deep); }
.features-3 p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Screenshot Gallery & Lightbox */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.screen-shot {
  margin: 0;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1), border-color 0.2s;
}
.screen-shot:hover { transform: translateY(-5px); border-color: var(--page-brand); }
.screen-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.screen-shot figcaption {
  padding: 9px 4px 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  line-height: 1.35;
}

.support-band {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.support-band h2 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 900; }
.support-band p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* =========================================================
   Lightbox Modal
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(12, 9, 26, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }

.lightbox-box {
  background: #171232;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  max-width: 440px;
  width: 100%;
  padding: 16px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.lightbox-bar strong { font-size: 0.9rem; }
.lightbox-close {
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.lightbox-media {
  border-radius: 14px;
  overflow: hidden;
  background: #090714;
  text-align: center;
}
.lightbox-media img {
  max-height: 70vh;
  width: auto;
  max-width: 100%;
  display: inline-block;
}
.lightbox-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 10px;
}
.lightbox-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.lightbox-btn:hover { background: var(--gold); color: var(--ink); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 2px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   Subtle Entrance Motion (always crisp opacity: 1)
   ========================================================= */
.rise-in {
  animation: riseIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
@keyframes riseIn {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 960px) {
  .bento-hero { grid-template-columns: minmax(0, 1fr); }
  .bento-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-hero-card { grid-template-columns: minmax(0, 1fr); }
  .game-hero-art { order: -1; }
  .features-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-arcade { display: none; }
  .menu-btn { display: inline-flex; padding: 6px 10px; font-size: 0.78rem; }
  .nav-wrap { padding: 10px 14px; gap: 8px; }
  .brand-emblem { width: 34px; height: 34px; border-radius: 10px; }
  .brand-text strong { font-size: 0.94rem; }
  .brand-text span { font-size: 0.62rem; letter-spacing: 0.04em; }
  .nav-actions { gap: 6px; }
  .fx-toggle { padding: 6px 9px; font-size: 0.74rem; }
  .page-shell { padding: 18px 14px 48px; }
  .bento-stack, .games-grid, .craft-grid { grid-template-columns: minmax(0, 1fr); }
  .spotlight-stage { min-height: 350px; }
  .spotlight-top { padding: 16px 16px 0; }
  .spotlight-body { padding: 18px 16px; }
  .game-hero-copy { padding: 20px 18px; }
  .safar-panel { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .arcade-backdrop::before,
  .arcade-backdrop::after,
  .ticker-track,
  .truck-trim,
  .rise-in {
    animation: none !important;
  }
  .game-card:hover,
  .mini-bento:hover,
  .screen-shot:hover,
  .btn-arcade:hover {
    transform: none !important;
  }
}
