/* =========================
   🌈 GLOBAL STYLES – Modernized
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 50% 0%, #0a0a0a 0%, #000000 100%);
  color: #fff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom, 70px);
}

/* =========================
   🌟 HEADER
========================= */
.header {
  text-align: center;
  padding: 24px 10px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo {
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 0 6px rgba(255, 70, 70, 0.5));
}

.title {
  font-size: 1.9rem;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(255, 100, 100, 0.6);
  letter-spacing: -0.3px;
}

.mobile-badge {
  background: linear-gradient(90deg, #ff3b3b, #ff7b00);
  color: #fff;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(255, 80, 0, 0.4);
}

/* =========================
   ⚡ HERO SECTION
========================= */
.hero-energy {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 22px auto 35px;
  max-width: 900px;
  padding: 70px 20px 60px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 50% 50%, #141010, #070000 90%);
  box-shadow: 0 0 40px rgba(255, 80, 80, 0.25);
  isolation: isolate;
  animation: fadeIn 0.8s ease forwards;
}

.energy-glow {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 0deg,
    rgba(255, 50, 50, 0.25),
    rgba(255, 220, 80, 0.3),
    rgba(80, 150, 255, 0.3),
    rgba(255, 50, 50, 0.25)
  );
  filter: blur(100px);
  animation: energySpin 8s linear infinite;
  z-index: -1;
  opacity: 0.9;
}

@keyframes energySpin {
  to { transform: rotate(360deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.hero-energy h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #ffd500, #ff4d4d, #609bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-energy p {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #e6e6e6;
  line-height: 1.6;
}

/* =========================
   🎮 BUTTONS
========================= */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.play-btn,
.support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 32px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 1.05rem;
  box-shadow: 0 4px 18px rgba(255, 60, 60, 0.35);
}

.play-btn {
  background: linear-gradient(90deg, #ff6b00, #ff3b3b);
  color: #fff;
}
.play-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(90deg, #ff3b3b, #ff6b00);
}

.support-btn {
  background: #fff;
  color: #ff3b3b;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}
.support-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background: #ffecec;
}

/* =========================
   🔎 SEARCHBAR
========================= */
.searchbar {
  text-align: center;
  margin: 14px auto 20px;
}

#searchInput {
  background: rgba(25, 25, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 12px 20px;
  width: 90%;
  max-width: 420px;
  color: #fff;
  outline: none;
  transition: 0.25s ease;
  backdrop-filter: blur(8px);
  font-size: 0.95rem;
}
#searchInput:focus {
  border-color: #ff4d4d;
  box-shadow: 0 0 16px rgba(255, 70, 70, 0.4);
}

/* =========================
   📦 ROM GRID (3-across scroll layout)
========================= */
#rom-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  padding: 20px 15px 90px;
  justify-items: center;
  animation: fadeIn 0.8s ease forwards;
}

.game-card {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  text-align: center;
  padding: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 60, 60, 0.15);
  backdrop-filter: blur(8px);
  max-width: 150px;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(255, 80, 80, 0.35);
}

.game-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  background-color: #111;
  margin-bottom: 8px;
}

.game-card h3 {
  font-size: 0.85rem;
  margin-top: 4px;
  color: #fff;
}

.play-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff3b3b, #ff6b00);
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 6px;
  transition: 0.25s ease;
}
.play-btn:hover { background: linear-gradient(90deg, #ff6b00, #ff3b3b); }

@media (max-width: 600px) {
  #rom-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .game-card img { height: 110px; }
  .game-card h3 { font-size: 12px; }
}

/* =========================
   🧭 STICKY NAV
========================= */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.nav-item {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.25s ease;
}
.nav-item:hover { opacity: 0.85; transform: scale(1.05); }

/* =========================
   🌠 ANIMATIONS
========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
