/* ===== NOVA GAMES — Synthwave Arcade theme ===== */
:root {
  --bg: #07031a;
  --bg2: #0d0627;
  --panel: #120a30;
  --line: rgba(255, 255, 255, 0.1);
  --mag: #ff2bd6;
  --cyan: #00e5ff;
  --yel: #ffd60a;
  --text: #f4f0ff;
  --dim: #9d93c9;
  --glow-mag: rgba(255, 43, 214, 0.45);
  --glow-cyan: rgba(0, 229, 255, 0.4);
  --radius: 6px;
  --head: 'Orbitron', sans-serif;
  --body: 'Rajdhani', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 43, 214, 0.18), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(0, 229, 255, 0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* CRT scanlines */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.12) 0, rgba(0,0,0,0.12) 1px, transparent 1px, transparent 3px);
  opacity: 0.35;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 14px; }

/* ----- Header ----- */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7, 3, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 43, 214, 0.35), 0 8px 30px rgba(0,0,0,0.4);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.nav-left { display: flex; align-items: center; gap: 14px; }
.menu-btn { font-size: 1.4rem; cursor: pointer; color: var(--cyan); }

.logo {
  font-family: var(--head);
  font-weight: 900; font-size: 1.1rem; letter-spacing: 2px;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo i { color: var(--mag); text-shadow: 0 0 12px var(--mag); }
.logo span { color: var(--cyan); text-shadow: 0 0 12px var(--glow-cyan); }

.nav-links-desktop { display: none; list-style: none; gap: 28px; }
.nav-links-desktop a {
  font-family: var(--head); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dim); transition: 0.25s;
}
.nav-links-desktop a:hover { color: var(--yel); text-shadow: 0 0 10px rgba(255,214,10,0.6); }

/* ----- Sidebar ----- */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 1001;
  visibility: hidden; opacity: 0; transition: opacity 0.35s, visibility 0.35s;
}
.sidebar {
  position: fixed; top: 0; left: 0; width: 260px; height: 100vh; z-index: 1002;
  transform: translateX(-105%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(180deg, #14083a, #07031a);
  border-right: 1px solid rgba(255, 43, 214, 0.4);
  box-shadow: 10px 0 40px rgba(255, 43, 214, 0.15);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 26px;
}
.sidebar.active { transform: translateX(0); }
.sidebar-overlay.active { visibility: visible; opacity: 1; }
.close-sidebar { align-self: flex-end; font-size: 1.8rem; color: var(--dim); cursor: pointer; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  font-family: var(--head); font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
  border-left: 3px solid transparent; color: var(--text); transition: 0.25s;
}
.sidebar-links a:hover { border-left-color: var(--mag); background: rgba(255, 43, 214, 0.08); color: var(--yel); }

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 54px 14px 40px;
  border-bottom: 1px solid var(--line);
}
.hero::before { /* sun */
  content: ""; position: absolute; left: 50%; top: 18px; width: 300px; height: 300px;
  transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #ffd60a 0%, #ff7a18 40%, #ff2bd6 85%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 18px);
          mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 18px);
  opacity: 0.28; filter: blur(0.5px);
}
.hero::after { /* grid floor */
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -80px; height: 220px;
  background:
    linear-gradient(var(--mag) 1px, transparent 1px) 0 0 / 100% 36px,
    linear-gradient(90deg, var(--mag) 1px, transparent 1px) 0 0 / 56px 100%;
  opacity: 0.25;
  transform: perspective(300px) rotateX(62deg);
  -webkit-mask: linear-gradient(0deg, transparent, #000 70%);
          mask: linear-gradient(0deg, transparent, #000 70%);
}
.hero > * { position: relative; z-index: 2; }
.hero .kicker {
  display: inline-block; font-family: var(--head); font-size: 0.62rem; letter-spacing: 4px;
  color: var(--cyan); border: 1px solid rgba(0,229,255,0.4); padding: 5px 12px; margin-bottom: 16px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--head); font-weight: 900; font-size: 2rem; line-height: 1.1; text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 43, 214, 0.5);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan), var(--mag));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--dim); max-width: 560px; margin: 12px auto 22px; font-size: 1.05rem; }

.search-wrapper { position: relative; max-width: 520px; margin: 0 auto 16px; }
.search-wrapper input {
  width: 100%; padding: 13px 16px 13px 44px; font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(7, 3, 26, 0.85); border: 1px solid rgba(0,229,255,0.4); border-radius: var(--radius);
  outline: none; transition: 0.25s;
}
.search-wrapper input:focus { border-color: var(--mag); box-shadow: 0 0 22px var(--glow-mag); }
.search-wrapper i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--cyan); }

.chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--head); font-size: 0.65rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--dim);
  cursor: pointer; transition: 0.2s; border-radius: 2px;
}
.chip:hover { color: var(--text); border-color: var(--cyan); }
.chip.active { color: #07031a; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 16px var(--glow-cyan); }

/* ----- Sections & grid ----- */
.section { padding: 34px 0 6px; }
.section-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.section-head h2 {
  font-family: var(--head); font-size: 1.05rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 800;
}
.section-head .bar { flex: 1; height: 2px; background: linear-gradient(90deg, var(--mag), transparent); }
.section-head .count { font-family: var(--head); font-size: 0.65rem; color: var(--cyan); letter-spacing: 2px; }
.section-head i { color: var(--mag); filter: drop-shadow(0 0 8px var(--mag)); }

.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.game-card {
  position: relative; display: flex; flex-direction: column; margin-top: 14px;
  background: linear-gradient(180deg, #170c3d, #0d0627);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.game-card::before { /* neon top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--mag), var(--cyan)); opacity: 0.7; border-radius: 6px 6px 0 0; z-index: 3;
}
.game-card:hover { transform: translateY(-5px); border-color: rgba(255,43,214,0.6); box-shadow: 0 12px 34px var(--glow-mag); }
.game-card:active { transform: scale(0.98); }

.banner { position: relative; height: 96px; overflow: hidden; border-radius: 6px 6px 0 0; background: #0a0420; }
.art {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, var(--c1, #ff2bd6), var(--c2, #3a0ca3));
  text-align: center; font-family: var(--head); font-weight: 900; text-transform: uppercase;
  letter-spacing: 2px; line-height: 1.15; font-size: 0.95rem; text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.banner img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.game-card:hover .banner img.cover { transform: scale(1.07); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,6,39,0.75), transparent 55%); pointer-events: none; }

.icon {
  position: absolute; top: 68px; left: 10px; width: 44px; height: 44px; z-index: 4;
  border-radius: 10px; overflow: hidden; border: 2px solid #0d0627; background: #1b0f45;
  box-shadow: 0 0 14px rgba(0,229,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 900; font-size: 0.8rem;
}
.icon .ini {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c1, #ff2bd6), var(--c2, #3a0ca3));
}
.icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.game-info { padding: 26px 10px 12px; display: flex; flex-direction: column; flex-grow: 1; gap: 4px; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 2px; }
.tag {
  font-family: var(--head); font-size: 0.5rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
  padding: 3px 7px; border-radius: 2px;
}
.tag.cyan { color: var(--cyan); border: 1px solid rgba(0,229,255,0.45); background: rgba(0,229,255,0.08); }
.tag.mag  { color: var(--mag);  border: 1px solid rgba(255,43,214,0.45); background: rgba(255,43,214,0.08); }
.tag.yel  { color: var(--yel);  border: 1px solid rgba(255,214,10,0.45); background: rgba(255,214,10,0.08); }
.game-title { font-family: var(--head); font-size: 0.8rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-desc {
  color: var(--dim); font-size: 0.85rem; line-height: 1.3; flex-grow: 1; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 11px 14px; border: none; cursor: pointer; font-family: var(--head); font-weight: 700;
  font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 3px; transition: 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn-primary { color: #07031a; background: linear-gradient(90deg, var(--yel), #ff9f1c); box-shadow: 0 0 18px rgba(255,214,10,0.35); }
.btn-primary:hover { box-shadow: 0 0 28px rgba(255,214,10,0.65); }
.btn-neon { color: #fff; background: linear-gradient(90deg, var(--mag), #8a2be2); box-shadow: 0 0 18px var(--glow-mag); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,0.07); border: 1px solid var(--line); }
.btn.disabled { opacity: 0.45; pointer-events: none; filter: grayscale(0.5); }

/* ----- Newsletter / Contact ----- */
.newsletter {
  margin: 44px 14px; padding: 34px 18px; text-align: center; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,43,214,0.16), rgba(0,229,255,0.1));
  border: 1px solid rgba(255,43,214,0.4);
}
.newsletter h2 { font-family: var(--head); font-size: 1.15rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.newsletter p { color: var(--dim); margin-bottom: 16px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; max-width: 500px; margin: 0 auto; }
input[type=email], input[type=text], textarea {
  width: 100%; padding: 12px; font: inherit; color: var(--text);
  background: rgba(7,3,26,0.8); border: 1px solid var(--line); border-radius: 4px; outline: none;
}
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 14px var(--glow-cyan); }
textarea { height: 100px; resize: vertical; }

.contact { padding: 10px 0 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.contact-item i { color: var(--cyan); font-size: 1.2rem; }
.contact-item h4 { font-family: var(--head); font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; }
.contact-item p { color: var(--dim); font-size: 0.9rem; }
.contact-form { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }

/* ----- Footer ----- */
footer { margin-top: 30px; padding: 30px 14px 16px; border-top: 1px solid rgba(255,43,214,0.35); background: #05020f; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; text-align: center; margin-bottom: 18px; }
.footer-col h4 { font-family: var(--head); font-size: 0.75rem; letter-spacing: 2px; color: var(--cyan); margin-bottom: 10px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col li a, .footer-col p { color: var(--dim); font-size: 0.95rem; }
.footer-col li a:hover { color: var(--yel); }
.social-links { display: flex; justify-content: center; gap: 10px; }
.social-links a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 3px; color: var(--text); transition: 0.25s; }
.social-links a:hover { background: var(--mag); border-color: var(--mag); box-shadow: 0 0 16px var(--glow-mag); }
.footer-bottom { text-align: center; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.85rem; }

/* ----- Small modals ----- */
.modal {
  display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(6px);
}
.modal-content {
  width: 100%; max-width: 400px; position: relative; text-align: center; padding: 26px 20px;
  background: linear-gradient(160deg, #1a0c45, #0b0524); border: 1px solid rgba(0,229,255,0.5);
  box-shadow: 0 0 40px var(--glow-cyan); border-radius: 8px; animation: fadeIn 0.3s;
}
.modal-content .big { font-size: 2.6rem; color: var(--cyan); margin-bottom: 10px; text-shadow: 0 0 20px var(--cyan); }
.modal-content h3 { font-family: var(--head); font-size: 1.05rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.modal-content p { color: var(--dim); margin-bottom: 16px; }
.close-btn { position: absolute; top: 8px; right: 14px; font-size: 1.6rem; color: var(--dim); cursor: pointer; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ===== GAME DETAILS PAGE ===== */
.gd { padding-bottom: 20px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 12px; font-family: var(--head); font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); }
.back:hover { color: var(--yel); }

.gd-banner { position: relative; height: 210px; border-radius: 8px 8px 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; background: #0a0420; }
.gd-banner .art { font-size: 1.6rem; letter-spacing: 4px; }
.gd-banner img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gd-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0d0627 0%, transparent 55%); pointer-events: none; }

.gd-head { position: relative; padding: 0 16px 18px; background: linear-gradient(180deg, #0d0627, #120a30); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; }
.gd-icon {
  position: relative; width: 92px; height: 92px; margin-top: -46px; margin-bottom: 12px; z-index: 5;
  border-radius: 20px; overflow: hidden; border: 3px solid #0d0627; background: #1b0f45;
  box-shadow: 0 0 26px var(--glow-cyan);
}
.gd-icon .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 900; font-size: 1.5rem; background: linear-gradient(135deg, var(--c1, #ff2bd6), var(--c2, #3a0ca3)); }
.gd-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.gd-head h1 { font-family: var(--head); font-weight: 900; font-size: 1.5rem; line-height: 1.15; text-transform: uppercase; text-shadow: 0 0 20px rgba(255,43,214,0.4); }
.gd-by { color: var(--dim); margin: 4px 0 10px; }
.gd-head .tags { margin-bottom: 14px; }
.gd-head .tag { font-size: 0.6rem; padding: 4px 9px; }

.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0 16px; }
.spec { padding: 10px; text-align: center; background: rgba(0,0,0,0.35); border: 1px solid var(--line); border-radius: 4px; }
.spec small { display: block; font-family: var(--head); font-size: 0.52rem; letter-spacing: 2px; color: var(--dim); text-transform: uppercase; }
.spec b { display: block; margin-top: 2px; font-family: var(--head); font-size: 0.8rem; color: var(--cyan); }

.gd-desc { color: #d9d3f5; font-size: 1.05rem; line-height: 1.6; margin-bottom: 18px; }

.download-panel { display: grid; gap: 10px; padding: 16px; border: 1px solid rgba(255,214,10,0.45); background: linear-gradient(135deg, rgba(255,214,10,0.08), rgba(255,43,214,0.08)); border-radius: 6px; }
.download-panel .dl-title { font-family: var(--head); font-size: 0.68rem; letter-spacing: 2px; color: var(--yel); text-transform: uppercase; text-align: center; }
.download-panel .btn { padding: 15px; font-size: 0.8rem; }
.platform-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.btn.ios { background: linear-gradient(135deg, #2b2f3d, #12141c); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn.android { background: linear-gradient(135deg, #0f6b3c, #0a3d24); color: #fff; border: 1px solid #3ddc84; }
.btn.android i { color: #3ddc84; }
.btn.browser { background: linear-gradient(135deg, #0a5cc4, #0a2f6b); color: #fff; border: 1px solid #00a4ef; }
.note { text-align: center; color: var(--dim); font-size: 0.85rem; }

/* ===== Breakpoints ===== */
@media (min-width: 768px) {
  .menu-btn, .sidebar, .sidebar-overlay { display: none; }
  .nav-links-desktop { display: flex; }
  .hero { padding: 84px 14px 64px; }
  .hero h1 { font-size: 3.4rem; }
  .hero::before { width: 420px; height: 420px; }
  .games-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .banner { height: 126px; }
  .icon { top: 96px; left: 14px; width: 52px; height: 52px; }
  .game-info { padding: 32px 14px 14px; }
  .game-title { font-size: 0.9rem; }
  .game-desc { font-size: 0.95rem; }
  .tag { font-size: 0.58rem; }
  .newsletter { max-width: 1200px; margin: 60px auto; padding: 46px; }
  .newsletter-form { flex-direction: row; }
  .newsletter-form .btn { width: auto; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); text-align: left; max-width: 1200px; margin: 0 auto 24px; }
  .social-links { justify-content: flex-start; }
  .gd-banner { height: 340px; }
  .gd-banner .art { font-size: 2.6rem; }
  .gd-head { padding: 0 30px 28px; display: grid; grid-template-columns: 150px 1fr; column-gap: 26px; }
  .gd-icon { width: 132px; height: 132px; margin-top: -66px; grid-row: span 2; }
  .gd-head h1 { font-size: 2.2rem; }
  .gd-body { grid-column: 1 / -1; }
  .specs { grid-template-columns: repeat(4, 1fr); }
  .platform-row { grid-template-columns: repeat(3, 1fr); }
  .download-panel .btn { padding: 17px; }
}
