/* cyrillic-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYlK-4E4Q.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYsK-4E4Q.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYnK-4E4Q.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYmK-4E4Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYoK-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYlK-4E4Q.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYsK-4E4Q.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYnK-4E4Q.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYmK-4E4Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYoK-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYlK-4E4Q.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYsK-4E4Q.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYnK-4E4Q.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYmK-4E4Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYoK-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYlK-4E4Q.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYsK-4E4Q.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYnK-4E4Q.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYmK-4E4Q.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/exo2/v26/7cHmv4okm5zmbtYoK-4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/orbitron/v35/yMJRMIlzdpvBhQQL_Qq7dy0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/orbitron/v35/yMJRMIlzdpvBhQQL_Qq7dy0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/orbitron/v35/yMJRMIlzdpvBhQQL_Qq7dy0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700&display=swap');

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

body {
  font-family: 'Exo 2', sans-serif;
  background: #0f172a;
  color: #f8fafc;
  overflow-x: hidden;
}

.font-orbitron {
  font-family: 'Orbitron', monospace;
}

.text-glow {
  text-shadow: 0 0 10px rgba(156, 110, 255, 0.5), 0 0 20px rgba(156, 110, 255, 0.3);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(156, 110, 255, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: #9c6eff;
  text-shadow: 0 0 10px rgba(156, 110, 255, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #f8fafc;
  margin: 3px 0;
  transition: 0.3s;
}

/* Pages */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 80px;
}

.page.active {
  display: block;
}

/* Home Page */
.home-container {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #5a0fff 0%, #1e293b 50%, #0f172a 100%);
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
}

.animated-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
}

.line {
  stroke: #a855f7;
  stroke-width: 0.5;
  animation: line-draw 6s ease-in-out infinite;
}

.line-2 {
  animation-delay: 2s;
}

@keyframes line-draw {
  0%, 100% { stroke-dasharray: 0, 1000; }
  50% { stroke-dasharray: 1000, 0; }
}

.home-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 4rem;
}

.home-left {
  flex: 1;
  max-width: 600px;
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInLeft 1s ease-out 0.3s forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.title-eclipse {
  color: #a855f7;
  animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
  0% { text-shadow: 0 0 20px rgba(168, 85, 247, 0.5); }
  100% { text-shadow: 0 0 40px rgba(168, 85, 247, 0.8), 0 0 60px rgba(168, 85, 247, 0.4); }
}

.home-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 500px;
  opacity: 0.9;
}

.start-button {
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.recommended-section {
  margin-top: 4rem;
}

.recommended-title {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arrow-icon {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #f8fafc;
  animation: arrow-bounce 2s ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

.home-right {
  flex: 1;
  max-width: 500px;
  opacity: 0;
  transform: translateX(100px);
  animation: slideInRight 1s ease-out 0.5s forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.trending-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.trending-border {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, #9333ea, #facc15, #9333ea);
  animation: border-rotate 4s linear infinite;
}

@keyframes border-rotate {
  0% { background: linear-gradient(135deg, #9333ea, #facc15, #9333ea); }
  25% { background: linear-gradient(225deg, #facc15, #9333ea, #facc15); }
  50% { background: linear-gradient(315deg, #9333ea, #facc15, #9333ea); }
  75% { background: linear-gradient(45deg, #facc15, #9333ea, #facc15); }
  100% { background: linear-gradient(135deg, #9333ea, #facc15, #9333ea); }
}

.trending-content {
  position: relative;
  z-index: 10;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2rem;
}

.trending-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.trending-icon {
  width: 24px;
  height: 24px;
  fill: #facc15;
}

.trending-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 2px;
}

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

.game-card {
  position: relative;
  padding: 1px;
  border-radius: 16px;
  background: linear-gradient(135deg, #a855f7, #ec4899, #a855f7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 3s ease-in-out infinite;
  opacity: 0;
  transform: scale(0.8);
  animation: gameCardAppear 0.6s ease-out forwards, float 3s ease-in-out infinite;
}

@keyframes gameCardAppear {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.game-card:nth-child(1) { animation-delay: 0.8s, 0s; }
.game-card:nth-child(2) { animation-delay: 0.9s, -0.5s; }
.game-card:nth-child(3) { animation-delay: 1.0s, -1s; }
.game-card:nth-child(4) { animation-delay: 1.1s, -1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.game-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card-inner {
  border-radius: 15px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
}

.game-card-title {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Games Page */
.games-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.games-header {
  text-align: center;
  margin-bottom: 3rem;
}

.games-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.games-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

.games-controls {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  max-width: 400px;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid rgba(156, 110, 255, 0.3);
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a855f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-container {
  min-width: 200px;
}

.category-filter {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(156, 110, 255, 0.3);
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-filter:focus {
  border-color: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.game-item {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-item:hover {
  transform: translateY(-5px);
  border-color: #a855f7;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.game-item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.game-item-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.game-item-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.game-item-category {
  color: #a855f7;
  font-size: 0.9rem;
  font-weight: 600;
}

.game-item-description {
  margin-bottom: 1rem;
  opacity: 0.8;
  line-height: 1.5;
}

.game-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-tag {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Game Player Page */
.game-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.game-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.game-control-btn {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #a855f7;
  color: #a855f7;
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-control-btn:hover {
  background: #a855f7;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(168, 85, 247, 0.3);
}

.game-controls-overlay .game-control-btn {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 0.5rem;
  border-radius: 8px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.game-controls-overlay .game-control-btn:hover {
  opacity: 1;
  background: rgba(168, 85, 247, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(168, 85, 247, 0.4);
}

.back-button {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #a855f7;
  color: #a855f7;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.back-button:hover {
  background: #a855f7;
  color: white;
}

.game-title {
  font-size: 2rem;
  font-weight: 700;
}

.game-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.game-player {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}

.game-controls-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.game-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.game-info {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.game-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.game-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.game-info p {
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-games {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
}

.related-games h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.related-games-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-game-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.related-game-item:hover {
  background: rgba(168, 85, 247, 0.2);
  transform: translateX(5px);
}

.related-game-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.related-game-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.related-game-category {
  font-size: 0.8rem;
  color: #a855f7;
}

/* Links Page */
.links-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.links-header {
  text-align: center;
  margin-bottom: 3rem;
}

.links-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.links-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

.links-content {
  display: flex;
  justify-content: center;
}

.links-player {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(156, 110, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  position: relative;
}

.links-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.links-controls-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.links-control-btn {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #a855f7;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.links-control-btn:hover {
  opacity: 1;
  background: rgba(168, 85, 247, 0.9);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(168, 85, 247, 0.4);
}

/* About Page */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.about-title {
  font-size: 3rem;
  margin-bottom: 3rem;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.8;
  opacity: 0.9;
}

.about-text p {
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .home-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .home-title {
    font-size: 3rem;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .games-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .game-content {
    grid-template-columns: 1fr;
  }
  
  .games-list {
    grid-template-columns: 1fr;
  }
  
  .links-container {
    padding: 1rem;
  }
  
  .links-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem;
  }
  
  .home-content {
    padding: 0 1rem;
  }
  
  .games-container {
    padding: 1rem;
  }
  
  .game-container {
    padding: 1rem;
  }
  
  .about-container {
    padding: 2rem 1rem;
  }
}

/* Settings Page Styles */
.settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.settings-header {
  text-align: center;
  margin-bottom: 3rem;
}

.settings-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.settings-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.dev-notice {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 10px;
  text-align: center;
}

.dev-notice p {
  color: #ffc107;
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

.settings-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.settings-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.settings-section h3 {
  color: #a855f7;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.setting-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.setting-item label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  min-width: 200px;
}

.setting-item input[type="text"],
.setting-item input[type="url"] {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 1rem;
  min-width: 200px;
  transition: all 0.3s ease;
}

.setting-item input[type="text"]:focus,
.setting-item input[type="url"]:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.setting-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #a855f7;
}

.panic-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 1rem;
  min-width: 250px;
  transition: all 0.3s ease;
}

.panic-select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.panic-select option {
  background: #1e293b;
  color: white;
}

.settings-btn {
  background: linear-gradient(45deg, #a855f7, #ec4899);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.settings-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.settings-btn.primary {
  background: linear-gradient(45deg, #10b981, #059669);
}

.settings-btn.secondary {
  background: linear-gradient(45deg, #ef4444, #dc2626);
}

.panic-status {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .settings-container {
    padding: 1rem;
  }
  
  .settings-title {
    font-size: 2rem;
  }
  
  .setting-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .setting-item label {
    min-width: unset;
  }
  
  .setting-item input[type="text"],
  .setting-item input[type="url"],
  .panic-select {
    width: 100%;
    min-width: unset;
  }
}