:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.60);
  --muted3: rgba(255,255,255,.80);
  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.20);
  --ring: rgba(255,255,255,.08);
  --container: 80rem;
  
  /* Enhanced colors */
  --purple-500: rgb(168, 85, 247);
  --purple-600: rgb(147, 51, 234);
  --fuchsia-500: rgb(217, 70, 239);
  --fuchsia-600: rgb(192, 38, 211);
  --cyan-400: rgb(34, 211, 238);
  --blue-500: rgb(59, 130, 246);
}

* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { 
  scroll-behavior: smooth;
}

html, body { 
  height: 100%;
  overflow-x: hidden;
}

body.site {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { 
  background: rgba(217, 70, 239, 0.3);
  color: #fff;
}

a { 
  color: inherit; 
  text-decoration: none;
  transition: all 0.3s ease;
}

img { 
  display: block; 
  max-width: 100%;
  height: auto;
}

button { 
  font: inherit; 
  color: inherit; 
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

.is-hidden { 
  display: none !important;
}

/* ===== PARTICLES BACKGROUND ===== */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

@media (max-width: 767px) {
  .particles-container {
    opacity: 0.15;
  }
}

#particlesCanvas {
  width: 100%;
  height: 100%;
}

/* ===== ENHANCED GLOW EFFECTS ===== */
.top-glow {
  pointer-events: none;
  position: fixed;
  left: 0; 
  right: 0; 
  top: 0;
  z-index: 1;
  height: 20rem;
  background: radial-gradient(ellipse at top, rgba(217,70,239,.25) 0%, transparent 70%);
  filter: blur(60px);
}

.ambient-glow {
  pointer-events: none;
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

@media (max-width: 767px) {
  .ambient-glow {
    display: none;
  }
}

.ambient-glow-1 {
  top: 20%;
  right: -10%;
  background: radial-gradient(circle, var(--fuchsia-500), transparent);
  animation-delay: -5s;
}

.ambient-glow-2 {
  bottom: 10%;
  left: -10%;
  background: radial-gradient(circle, var(--purple-500), transparent);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.9); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  position: relative;
  z-index: 10;
}

.brand-logo-wrapper {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: .875rem;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
  margin-left: 5px;
}

.brand:hover .brand-logo {
  transform: scale(1.05) rotate(5deg);
}

.brand-logo-glow {
  position: absolute;
  inset: -5px;
  background: linear-gradient(135deg, var(--fuchsia-500), var(--purple-500));
  border-radius: 1rem;
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.3s ease;
  z-index: 1;
}

.brand:hover .brand-logo-glow {
  opacity: 0.6;
}

.brand-name {
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  letter-spacing: .03em;
  font-size: 1.125rem;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: none;
  gap: 3rem;
  font-size: .9rem;
  align-items: center;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    margin-right: 2%;
  }
}

@media (min-width: 1024px) {
  .nav {
    gap: 3.5rem;
    margin-right: 2%;
  }
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  opacity: .80;
  transition: opacity .3s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link.is-active {
  opacity: 1;
}

.nav-link.is-active .nav-link-underline {
  width: 100%;
}

.nav-link-underline {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fuchsia-500), var(--purple-500));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover .nav-link-underline {
  width: 100%;
}

.nav-link-cta {
  padding: .5rem 1.25rem;
  background: linear-gradient(135deg, var(--fuchsia-500), var(--purple-500));
  border-radius: .75rem;
  opacity: 1;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
  transition: all 0.3s ease;
}

.nav-link-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.4);
}

.nav-link-cta .nav-link-underline {
  display: none;
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-radius: .75rem;
  padding: .65rem .75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .menu-btn {
    display: none;
  }
}

.menu-btn:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--border2);
}

.menu-btn-line {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-btn[aria-expanded="true"] .menu-btn-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn-line:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .menu-btn-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mnav {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(20px);
  animation: slideDown 0.3s ease;
}

.mnav.is-hidden { 
  display: none; 
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mnav-inner {
  display: grid;
  gap: .5rem;
  padding: 1rem 0;
  font-size: .9rem;
}

.mnav-link { 
  padding: .75rem 1rem;
  border-radius: .5rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

.mnav-link:hover {
  background: rgba(255,255,255,.05);
  padding-left: 1.5rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(to bottom, rgba(217,70,239,.08), transparent);
  padding: 5rem 0 3rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 7rem 0 4rem;
  }
}

.page-hero-inner {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  padding: .35rem .85rem;
  background: rgba(217,70,239,.15);
  border: 1px solid rgba(217,70,239,.3);
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fuchsia-500);
  margin-bottom: 1rem;
}

.page-title {
  margin: 0 0 1rem;
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FILTERS ===== */
.filters {
  padding: 2rem 0;
  position: relative;
  z-index: 2;
}

.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .filter-controls {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 100%;
}

@media (min-width: 768px) {
  .search-wrapper {
    max-width: 400px;
  }
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted2);
  pointer-events: none;
}

.search-field {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-field::placeholder {
  color: var(--muted2);
}

.search-field:focus {
  background: rgba(255,255,255,.08);
  border-color: var(--fuchsia-500);
  box-shadow: 0 0 0 3px rgba(217,70,239,.1);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  font-size: .875rem;
}

@media (min-width: 768px) {
  .filter-row {
    justify-content: flex-start;
  }
}

.chip {
  border: 1px solid var(--border2);
  border-radius: .75rem;
  padding: .65rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  background: rgba(255,255,255,.03);
  -webkit-tap-highlight-color: transparent;
}

.chip:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-2px);
}

.chip-active {
  background: linear-gradient(135deg, var(--fuchsia-500), var(--purple-500));
  border-color: transparent;
  color: #fff;
}

.chip-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217,70,239,.3);
}

/* ===== GAMES GRID ===== */
.games,
.news-section {
  padding: 3rem 0 6rem;
  position: relative;
  z-index: 2;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-games,
.grid-news {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-games,
  .grid-news {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-games,
  .grid-news {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--muted2);
  margin-bottom: 1.5rem;
}

.empty-title {
  margin: 0 0 .75rem;
  font-family: Orbitron, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.empty-text {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* ===== CARD STYLES (Ana sayfa ile uyumlu) ===== */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.02));
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217,70,239,.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--border2);
  box-shadow: 0 20px 40px rgba(0,0,0,.5), 0 0 0 1px var(--border2);
}

@media (max-width: 767px) {
  .card:hover {
    transform: none;
  }

  .card:active {
    transform: scale(0.98);
  }
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: .4rem .85rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  backdrop-filter: blur(10px);
}

.card-badge-featured {
  background: linear-gradient(135deg, var(--fuchsia-500), var(--purple-500));
  color: #fff;
  box-shadow: 0 4px 15px rgba(217,70,239,.4);
}

.card-badge-soon {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}

.media {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.media-16x10 {
  aspect-ratio: 16 / 10;
}

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .media-img {
  transform: scale(1.08);
}

.card-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-media-overlay {
  opacity: 1;
}

.card-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.card:hover .card-play-btn {
  transform: scale(1);
}

.card-lock-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.media-ring {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--border);
  pointer-events: none;
}

.card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  margin-bottom: .75rem;
}

.card-platform,
.card-genre {
  padding: .3rem .7rem;
  background: rgba(255,255,255,.08);
  border-radius: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.card-title {
  margin: 0 0 .5rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

.card-text {
  margin: 0 0 1rem;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
}

.card-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card-stat {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
}

.card-stat svg {
  color: var(--fuchsia-500);
}

.card-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Neon card animation */
.neon-card {
  position: relative;
  animation: neonPulse 6s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(244, 114, 182, 0.3),
      0 0 40px rgba(129, 140, 248, 0.2),
      0 20px 40px rgba(0,0,0,.4);
  }
  25% {
    box-shadow: 
      0 0 25px rgba(56, 189, 248, 0.4),
      0 0 50px rgba(59, 130, 246, 0.3),
      0 20px 40px rgba(0,0,0,.4);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(52, 211, 153, 0.4),
      0 0 60px rgba(129, 230, 217, 0.3),
      0 20px 40px rgba(0,0,0,.4);
  }
  75% {
    box-shadow: 
      0 0 25px rgba(251, 191, 36, 0.4),
      0 0 50px rgba(248, 113, 113, 0.3),
      0 20px 40px rgba(0,0,0,.4);
  }
}

.neon-card:hover {
  transform: translateY(-12px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 1rem;
  padding: .875rem 1.5rem;
  font-weight: 800;
  font-size: .9rem;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 767px) {
  .btn {
    padding: 1rem 1.75rem;
    font-size: .95rem;
    min-height: 48px;
  }
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 4px 15px rgba(255,255,255,.2);
}

.btn-primary:hover {
  background: rgba(255,255,255,.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,.3);
}

.btn-gradient {
  color: #fff;
  background: linear-gradient(135deg, var(--fuchsia-500), var(--purple-500));
  box-shadow: 0 8px 20px rgba(217,70,239,.3);
  border: none;
  border-radius: .75rem;
  padding: .5rem .75rem;
  font-size: .875rem;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(217,70,239,.4);
}

.btn-outline-fuchsia {
  border: 1px solid rgba(232,121,249,.5);
  background: rgba(0,0,0,.3);
  color: rgba(251,207,232,.95);
  backdrop-filter: blur(10px);
  border-radius: .75rem;
  padding: .5rem .75rem;
  font-size: .875rem;
}

.btn-outline-fuchsia:hover {
  border-color: rgba(232,121,249,.8);
  background: rgba(232,121,249,.15);
  transform: translateY(-2px);
}

/* ===== FOOTER (Ana sayfa ile aynı) ===== */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,.98);
  padding: 4rem 0 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 1.2fr 2.5fr;
    gap: 5rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.footer-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  object-fit: cover;
}

.footer-tagline {
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: .5rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: .75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--border2);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column-title {
  margin: 0;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-link {
  font-size: .9rem;
  color: var(--muted);
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  margin: 0;
  font-size: .85rem;
  color: var(--muted2);
  font-weight: 600;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-bottom-links {
    justify-content: flex-end;
  }
}

.footer-bottom-link {
  font-size: .85rem;
  color: var(--muted2);
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-bottom-link:hover {
  color: #fff;
}

.footer-divider {
  color: var(--muted2);
  user-select: none;
}

/* ===== MODAL ===== */
.modal {
  width: 95vw;
  max-width: 48rem;
  padding: 0;
  border: none;
  border-radius: 1.25rem;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0,0,0,.80);
  backdrop-filter: blur(8px);
}

.modal-shell {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

.modal-title {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
}

.modal-close {
  border: 1px solid var(--border2);
  border-radius: .625rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255,255,255,.03);
}

.modal-close:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.3);
}

.modal-videoWrap {
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.03);
}

.modal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== SCROLL ANIMATIONS ===== */
[data-scroll] {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll="fade-up"] {
  transform: translateY(40px);
}

[data-scroll].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 767px) {
  * {
    -webkit-tap-highlight-color: rgba(217, 70, 239, 0.1);
  }

  button, a {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

.news-card{
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(255,255,255,.04), rgba(255,255,255,.02));
  backdrop-filter: blur(10px);
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.news-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217,70,239,.05), transparent);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 0;
}

.news-card:hover::before{ opacity: 1; }

.news-card:hover{
  transform: translateY(-8px);
  border-color: var(--border2);
  box-shadow: 0 20px 40px rgba(0,0,0,.5), 0 0 0 1px var(--border2);
}

@media (max-width: 767px){
  .news-card:hover{ transform: none; }
  .news-card:active{ transform: scale(.98); }
}

/* Media */
.news-media{
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.news-media-16x10{ aspect-ratio: 16 / 10; }

.news-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover .news-img{ transform: scale(1.08); }

.news-media-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.news-card:hover .news-media-overlay{ opacity: 1; }

/* Inner ring like games */
.news-media::after{
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--border);
  pointer-events: none;
}

/* Body */
.news-body{
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}

/* Meta row */
.news-meta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .75rem;
}

.news-date{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted2);
  font-weight: 700;
}

.news-category{
  padding: .3rem .7rem;
  background: rgba(255,255,255,.08);
  border-radius: .5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.10);
}

/* Title + excerpt */
.news-title{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.25;
}

.news-excerpt{
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* Read more link -> button-like (keeps <a href> intact) */
.news-link{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 900;
  font-size: .9rem;

  padding: .65rem .9rem;
  border-radius: .75rem;

  border: 1px solid rgba(232,121,249,.5);
  background: rgba(0,0,0,.25);
  color: rgba(251,207,232,.95);
  backdrop-filter: blur(10px);

  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  width: fit-content;
}

.news-link:hover{
  border-color: rgba(232,121,249,.8);
  background: rgba(232,121,249,.12);
  transform: translateY(-2px);
}

.news-link svg{
  transition: transform .25s ease;
}

.news-link:hover svg{
  transform: translateX(2px);
}

/* Optional: category accent per tag (does not require HTML change) */
.news-card[data-tags*="announcement"] .news-category{
  background: rgba(217,70,239,.16);
  border-color: rgba(217,70,239,.28);
  color: rgba(251,207,232,.95);
}

.news-card[data-tags*="dev"] .news-category{
  background: rgba(168,85,247,.16);
  border-color: rgba(168,85,247,.28);
  color: rgba(221,214,254,.95);
}

.news-card[data-tags*="tech"] .news-category{
  background: rgba(34,211,238,.14);
  border-color: rgba(34,211,238,.22);
  color: rgba(165,243,252,.95);
}