:root {
  --bg-color: #0b0f1f;
  --sidebar-bg: rgba(15, 23, 42, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #cbd5f5;
  --accent-cyan: #22d3ee;
  --accent-purple: #a78bfa;
  --accent-pink: #f472b6;
  --icon-default: #e2e8f0;
  --gradient-main: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
  --sidebar-width-collapsed: 90px;
  --sidebar-width-expanded: 240px;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent-cyan);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-pink);
  text-shadow: 0 0 8px var(--accent-pink);
}

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width-expanded);
  background: var(--sidebar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(34, 211, 238, 0.2);
  box-shadow: 2px 0 15px rgba(34, 211, 238, 0.1);
  display: flex;
  flex-direction: column;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  min-height: 80px;
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.3s;
}

.sidebar.collapsed .sidebar-logo {
  opacity: 0;
  pointer-events: none;
  width: 0;
  overflow: hidden;
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-menu {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  margin: 0 10px;
  border-radius: 12px;
  color: var(--icon-default);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-item svg {
  width: 28px;
  height: 28px;
  min-width: 28px;
  stroke: var(--icon-default);
  transition: all 0.3s ease;
}

.nav-label {
  margin-left: 20px;
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-label {
  opacity: 0;
  pointer-events: none;
}

.nav-item:hover {
  background: rgba(34, 211, 238, 0.1);
  color: var(--text-primary);
}

.nav-item:hover svg {
  stroke: var(--accent-cyan);
  filter: drop-shadow(0 0 5px var(--accent-cyan));
}

.nav-item.active {
  background: rgba(34, 211, 238, 0.15);
  color: var(--text-primary);
  box-shadow: inset 4px 0 0 var(--accent-cyan), 0 0 10px rgba(34, 211, 238, 0.2);
}

.nav-item.active svg {
  stroke: var(--accent-cyan);
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

/* Mobile Toggle & Overlay */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--sidebar-bg);
  backdrop-filter: blur(12px);
  z-index: 998;
  border-bottom: 1px solid var(--glass-border);
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width-expanded);
  display: flex;
  flex-direction: column;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: calc(100% - var(--sidebar-width-expanded));
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-width-collapsed);
  width: calc(100% - var(--sidebar-width-collapsed));
}

/* Notice Banner */
.notice-banner {
  background: var(--gradient-main);
  padding: 15px 20px;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(244, 114, 182, 0.3);
  position: relative;
  z-index: 10;
}

.notice-banner p {
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 15, 31, 0.4), var(--bg-color));
  z-index: -1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-main);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.5);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(167, 139, 250, 0.8);
  color: #fff;
}

/* Sections */
.section {
  padding: 80px 40px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.15);
  border-color: rgba(34, 211, 238, 0.4);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

/* Game Frame */
.game-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.game-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 20px;
  border: 2px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.2);
  overflow: hidden;
}

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

/* Forms */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

/* Legal text pages */
.content-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.content-container h2 {
  margin-top: 30px;
  color: var(--accent-cyan);
}

/* Footer */
.footer {
  background: rgba(11, 15, 31, 0.9);
  border-top: 1px solid var(--glass-border);
  padding: 60px 40px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-pink);
}

.footer-disclaimer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-badges {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.badge {
  background: rgba(255,255,255,0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width-expanded) !important;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    margin-top: 70px;
  }
  
  .mobile-header {
    display: flex;
  }

  .sidebar-header .toggle-btn {
    display: none;
  }
  
  .nav-label {
    opacity: 1 !important;
  }
  
  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 60px 20px; }
}