/* ============================================
   Cyberpunk Arcade - 赛博朋克·动感街区
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

.cyber-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0D0015; color: #FFFFFF;
  line-height: 1.6; min-height: 100vh; overflow-x: hidden;
  position: relative;
}

/* ===== Background Grid ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridFlow 20s linear infinite;
}
@keyframes gridFlow {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* ===== Mouse Follower ===== */
.mouse-follower {
  position: fixed; width: 200px; height: 200px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(0,240,255,0.06), rgba(255,0,229,0.03), transparent 70%);
  transform: translate(-100px, -100px);
  mix-blend-mode: screen;
  will-change: transform;
}

/* ===== Glitch Text ===== */
.glitch-text {
  position: relative; display: inline-block;
  font-family: 'Chakra Petch', sans-serif;
  -webkit-text-stroke: 0.5px #FF00E5;
}
.glitch-text::before, .glitch-text::after {
  content: attr(data-text); position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; pointer-events: none;
}
.glitch-text::before {
  color: #00F0FF; z-index: -1;
  animation: glitch1 3s infinite linear alternate-reverse;
  clip-path: inset(0 0 80% 0);
}
.glitch-text::after {
  color: #FF00E5; z-index: -1;
  animation: glitch2 2s infinite linear alternate-reverse;
  clip-path: inset(80% 0 0 0);
}
@keyframes glitch1 {
  0%,90%,100% { transform: translate(0); }
  92% { transform: translate(-2px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, 2px); }
  98% { transform: translate(1px, -2px); }
}
@keyframes glitch2 {
  0%,90%,100% { transform: translate(0); }
  91% { transform: translate(2px, -1px); }
  93% { transform: translate(-2px, 1px); }
  95% { transform: translate(1px, 2px); }
  97% { transform: translate(-1px, -2px); }
}

.glitch-subtle {
  position: relative; display: inline-block;
}
.glitch-subtle::before, .glitch-subtle::after {
  content: attr(data-text); position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; pointer-events: none;
}
.glitch-subtle::before {
  color: #00F0FF; z-index: -1; opacity: 0.3;
  animation: glitch1 5s infinite linear alternate-reverse;
  clip-path: inset(0 0 85% 0);
}
.glitch-subtle::after {
  color: #FF00E5; z-index: -1; opacity: 0.3;
  animation: glitch2 4s infinite linear alternate-reverse;
  clip-path: inset(85% 0 0 0);
}

/* ===== Sidebar ===== */
.cyber-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 260px; z-index: 100;
  background: rgba(13, 0, 21, 0.92);
  border-right: 1px solid rgba(0,240,255,0.15);
  overflow-y: auto; overflow-x: hidden;
  clip-path: polygon(0% 0%, 100% 0%, 96% 100%, 0% 100%);
}
.cyber-sidebar::-webkit-scrollbar { width: 3px; }
.cyber-sidebar::-webkit-scrollbar-thumb { background: rgba(0,240,255,0.3); border-radius: 2px; }

.sidebar-scanline {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,240,255,0.015) 2px,
    rgba(0,240,255,0.015) 4px
  );
}
.sidebar-content { position: relative; z-index: 2; padding: 24px 20px; }

.sidebar-logo {
  display: block; text-decoration: none; margin-bottom: 32px; text-align: center;
}
.sidebar-logo .glitch-text {
  font-size: 28px; font-weight: 700; letter-spacing: 3px;
  color: #00F0FF;
  -webkit-text-stroke: 1px #FF00E5;
  text-shadow: 0 0 10px rgba(0,240,255,0.5), 0 0 20px rgba(0,240,255,0.3);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.sidebar-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; text-decoration: none;
  color: rgba(255,255,255,0.5); font-size: 14px; font-weight: 500;
  font-family: 'Chakra Petch', sans-serif; letter-spacing: 0.5px;
  border-left: 3px solid transparent;
  transition: all 0.3s;
}
.sidebar-nav-link:hover {
  color: #00F0FF; background: rgba(0,240,255,0.05);
  border-left-color: rgba(0,240,255,0.3);
}
.sidebar-nav-link.active {
  color: #00F0FF; background: rgba(0,240,255,0.08);
  border-left-color: #00F0FF;
}
.sidebar-nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2); flex-shrink: 0;
  transition: all 0.3s;
}
.sidebar-nav-link:hover .sidebar-nav-dot,
.sidebar-nav-link.active .sidebar-nav-dot {
  background: #00F0FF; box-shadow: 0 0 6px #00F0FF;
}

.sidebar-cat-section { margin-bottom: 24px; }
.sidebar-cat-header {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: rgba(0,240,255,0.5); margin-bottom: 12px;
  padding-left: 14px; text-transform: uppercase;
}
.sidebar-cat-list { display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; text-decoration: none;
  color: rgba(255,255,255,0.4); font-size: 12px;
  transition: all 0.2s; border-left: 2px solid transparent;
}
.sidebar-cat-item:hover {
  color: #FFD319; background: rgba(255,211,25,0.05);
  border-left-color: #FFD319;
}
.sidebar-cat-emoji { font-size: 14px; flex-shrink: 0; }
.sidebar-cat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-search { position: relative; margin-top: 16px; }
.sidebar-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.sidebar-search-input {
  width: 100%; padding: 8px 12px 8px 34px; height: 36px;
  background: rgba(0,240,255,0.05);
  border: 1px solid rgba(0,240,255,0.15); border-radius: 4px;
  color: #FFFFFF; font-family: 'Inter', sans-serif;
  font-size: 12px; outline: none; transition: all 0.3s;
  clip-path: polygon(0% 0%, 100% 0%, 97% 100%, 0% 100%);
}
.sidebar-search-input::placeholder { color: rgba(0,240,255,0.3); }
.sidebar-search-input:focus {
  border-color: rgba(0,240,255,0.5);
  background: rgba(0,240,255,0.08);
  box-shadow: 0 0 8px rgba(0,240,255,0.15);
}

.sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(13,0,21,0.7);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sidebar-overlay.active { display: block; }

/* ===== Mobile Sidebar Button ===== */
.mobile-sidebar-btn {
  display: none; position: fixed; bottom: 24px; right: 24px; z-index: 102;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(13,0,21,0.9);
  border: 2px solid rgba(0,240,255,0.4);
  box-shadow: 0 0 15px rgba(0,240,255,0.2);
  cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  padding: 12px;
}
.mobile-sidebar-btn span {
  display: block; width: 18px; height: 2px;
  background: #00F0FF; border-radius: 1px;
  transition: all 0.3s;
}
.mobile-sidebar-btn.active span:nth-child(1){transform:rotate(45deg) translate(4px,4px);}
.mobile-sidebar-btn.active span:nth-child(2){opacity:0;}
.mobile-sidebar-btn.active span:nth-child(3){transform:rotate(-45deg) translate(4px,-4px);}

/* ===== Hot Trends Banner ===== */
.hot-trends-banner {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px; position: relative; overflow: hidden;
}
.neon-sign {
  flex-shrink: 0;
}
.neon-flicker {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: 2px;
  color: #FFD319;
  text-shadow: 0 0 8px rgba(255,211,25,0.6), 0 0 16px rgba(255,211,25,0.3);
  animation: neonFlicker 4s infinite;
}
@keyframes neonFlicker {
  0%,19%,21%,23%,25%,54%,56%,100% { opacity: 1; }
  20%,24%,55% { opacity: 0.6; }
}
.trends-ticker {
  flex: 1; overflow: hidden; position: relative;
  height: 28px; display: flex; align-items: center;
}
.trends-text {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px; font-weight: 500; color: #00F0FF;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(0,240,255,0.4);
  transition: opacity 0.3s, transform 0.3s;
}

/* ===== Category Hexagons ===== */
.category-hexagon { padding: 0 24px 8px; }
.hex-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none; padding: 8px 0;
}
.hex-scroll::-webkit-scrollbar { display: none; }
.hex-cat {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  padding: 14px 20px; min-width: 100px;
  background: rgba(13,0,21,0.8);
  border: 1px solid rgba(0,240,255,0.12);
  clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
  text-decoration: none; color: rgba(255,255,255,0.5);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  transition: all 0.3s; position: relative;
}
.hex-cat:hover {
  color: #00F0FF; border-color: rgba(0,240,255,0.4);
  background: rgba(0,240,255,0.06);
}
.hex-cat::after {
  content: ''; position: absolute; inset: 0;
  clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
  background: radial-gradient(circle, rgba(0,240,255,0.15), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
}
.hex-cat:hover::after { opacity: 1; }
.hex-cat-emoji { font-size: 20px; position: relative; z-index: 1; }
.hex-cat-label { position: relative; z-index: 1; font-family: 'Chakra Petch', sans-serif; letter-spacing: 0.3px; }

/* ===== Main Content ===== */
.main-content {
  position: relative; z-index: 1;
  margin-left: 260px; padding: 0 0 40px;
  min-height: 100vh;
}

/* ===== Game Sections ===== */
.games-section { padding: 28px 24px 0; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-title {
  font-family: 'Chakra Petch', sans-serif; font-size: 22px; font-weight: 700;
  color: #FFFFFF; position: relative; display: inline-block; padding-bottom: 10px;
  -webkit-text-stroke: 0.3px #FF00E5;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 2px;
  background: linear-gradient(90deg, #00F0FF, #FF00E5); border-radius: 1px;
  box-shadow: 0 0 6px rgba(0,240,255,0.4);
}
.section-more {
  color: #FFD319; text-decoration: none; font-size: 13px; font-weight: 600;
  font-family: 'Chakra Petch', sans-serif; letter-spacing: 0.5px;
  transition: all 0.3s;
}
.section-more:hover { color: #00FF88; text-shadow: 0 0 6px rgba(0,255,136,0.4); }

/* ===== Games Grid ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.game-card {
  background: rgba(13,0,21,0.8);
  border: 1px solid rgba(0,240,255,0.1);
  border-radius: 4px; overflow: hidden; position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.game-card.tilt-right { transform: rotate(0deg); }
.game-card.tilt-left { transform: rotate(0deg); }

@media (min-width: 1025px) {
  .game-card.tilt-right { transform: rotate(1deg); }
  .game-card.tilt-left { transform: rotate(-0.7deg); }
  .game-card.tilt-right:hover { transform: rotate(0deg) translateY(-4px); }
  .game-card.tilt-left:hover { transform: rotate(0deg) translateY(-4px); }
}

.game-card:hover {
  box-shadow: 0 0 10px rgba(0,240,255,0.2), 0 6px 16px rgba(0,0,0,0.4);
  border-color: rgba(0,240,255,0.3);
}
.game-card-link { display: block; text-decoration: none; color: inherit; }

/* Card Image */
.card-image { position: relative; overflow: hidden; background: #0D0015; }
.game-card .card-image { aspect-ratio: 4/3; }
.game-card.card-medium .card-image { aspect-ratio: 4/3; }
.game-card.card-tall .card-image { aspect-ratio: 4/3; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.game-card:hover .card-image img { transform: scale(1.04); }

/* Grid Overlay */
.card-grid-overlay {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image:
    linear-gradient(rgba(0,240,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.04) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0; transition: opacity 0.3s;
}
.game-card:hover .card-grid-overlay { opacity: 1; }

/* Scan Line */
.card-scanline {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0,240,255,0.06) 50%,
    transparent 100%
  );
  background-size: 100% 20px;
  opacity: 0; transition: opacity 0.3s;
}
.game-card:hover .card-scanline {
  opacity: 1;
  animation: scanlineMove 2s linear infinite;
}
@keyframes scanlineMove {
  0% { background-position: 0 -20px; }
  100% { background-position: 0 100%; }
}

/* Badge */
.card-badge {
  position: absolute; top: 6px; right: 6px;
  background: #FFD319; color: #0D0015;
  padding: 2px 6px; border-radius: 2px;
  font-size: 8px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; z-index: 4;
  font-family: 'Chakra Petch', sans-serif;
  clip-path: polygon(0% 0%, 100% 0%, 95% 100%, 0% 100%);
}

/* Play Glitch */
.card-play-glitch {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px; text-align: center;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  color: #00F0FF; z-index: 5;
  background: rgba(13,0,21,0.85);
  text-shadow: 0 0 6px rgba(0,240,255,0.5);
  transform: translateY(100%);
  transition: transform 0.3s;
}
.game-card:hover .card-play-glitch {
  transform: translateY(0);
  animation: glitchTextIn 0.4s ease;
}
@keyframes glitchTextIn {
  0% { transform: translateY(100%) translateX(-5px); opacity: 0; }
  25% { transform: translateY(30%) translateX(3px); opacity: 0.5; }
  50% { transform: translateY(-5px) translateX(-2px); opacity: 0.8; }
  75% { transform: translateY(3px) translateX(1px); opacity: 0.9; }
  100% { transform: translateY(0) translateX(0); opacity: 1; }
}

/* LED Border */
.card-led-border {
  height: 2px; position: relative; overflow: hidden;
  background: rgba(0,240,255,0.1);
}
.card-led-border::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, #00F0FF, transparent);
  animation: ledScroll 3s linear infinite;
}
.game-card:hover .card-led-border::before {
  animation-duration: 1s;
  background: linear-gradient(90deg, transparent, #FF00E5, #00F0FF, transparent);
}
@keyframes ledScroll {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Card Info */
.card-info { padding: 8px 10px 10px; }
.card-title {
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color 0.3s; font-family: 'Chakra Petch', sans-serif;
  letter-spacing: 0.2px;
}
.game-card:hover .card-title { color: #00F0FF; }

/* ===== Lazy Load ===== */
.lazy-hidden { display: none; }
.lazy-fadein { animation: lazyFadeIn 0.5s ease forwards; }
@keyframes lazyFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.lazy-sentinel { height: 1px; }

/* ===== Shuffle Animation (Pixel Disintegrate) ===== */
.game-card.shuffle-disintegrate {
  animation: disintegrate 0.4s ease forwards;
}
@keyframes disintegrate {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  50% { opacity: 0.5; transform: scale(0.95); filter: blur(2px); }
  100% { opacity: 0; transform: scale(0.8) translateY(20px); filter: blur(4px); }
}
.game-card.shuffle-reassemble {
  animation: reassemble 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes reassemble {
  0% { opacity: 0; transform: scale(0.8) translateY(20px); filter: blur(4px); }
  60% { opacity: 0.8; filter: blur(1px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* ===== Ad Container (Neon Sign) ===== */
.ad-container-neon {
  text-align: center; padding: 20px 24px;
  display: flex; flex-direction: column; align-items: center;
  max-width: 1200px; margin: 8px auto 0;
  background: rgba(13,0,21,0.6);
  border: 1px solid rgba(255,211,25,0.15);
  border-radius: 4px; position: relative; overflow: hidden;
  clip-path: polygon(0% 0%, 100% 0%, 98% 100%, 0% 100%);
}
.ad-container-neon::before {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(45deg, transparent 40%, rgba(255,211,25,0.1) 50%, transparent 60%);
  background-size: 300% 300%;
  animation: adNeonGlow 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes adNeonGlow {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.ad-label-neon {
  color: #FFD319; font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 8px;
  font-family: 'Chakra Petch', sans-serif; font-weight: 700;
  animation: sponsoredFlicker 3s infinite;
  text-shadow: 0 0 6px rgba(255,211,25,0.4);
}
@keyframes sponsoredFlicker {
  0%,89%,91%,93%,95%,100% { opacity: 1; }
  90%,94% { opacity: 0.4; }
}

/* ===== Search Results ===== */
.search-results-dropdown {
  position: fixed; top: 20px; left: 280px;
  width: 400px; max-height: 400px;
  background: rgba(13,0,21,0.95);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 4px; overflow-y: auto; z-index: 200;
  display: none;
  box-shadow: 0 0 20px rgba(0,240,255,0.1), 0 10px 40px rgba(0,0,0,0.5);
  padding: 8px;
  clip-path: polygon(0% 0%, 100% 0%, 98% 100%, 0% 100%);
}
.search-results-dropdown.show { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 4px;
  text-decoration: none; color: rgba(255,255,255,0.7);
  font-size: 13px; transition: all 0.2s;
}
.search-result-item:hover { background: rgba(0,240,255,0.08); color: #00F0FF; }
.search-result-item img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(0,240,255,0.1); }

.search-404 {
  padding: 24px; text-align: center;
}
.glitch-404 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 48px; font-weight: 700; color: #FF00E5;
  position: relative; display: inline-block;
  text-shadow: 0 0 10px rgba(255,0,229,0.5);
}
.glitch-404::before, .glitch-404::after {
  content: attr(data-text); position: absolute; top: 0; left: 0;
}
.glitch-404::before {
  color: #00F0FF; animation: glitch1 0.5s infinite linear alternate-reverse;
  clip-path: inset(0 0 60% 0);
}
.glitch-404::after {
  color: #FFD319; animation: glitch2 0.3s infinite linear alternate-reverse;
  clip-path: inset(60% 0 0 0);
}
.search-404 p {
  font-family: 'Chakra Petch', sans-serif;
  color: rgba(255,255,255,0.4); font-size: 13px;
  margin-top: 8px; letter-spacing: 1px;
}

/* ===== Preview Modal ===== */
.preview-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,0,21,0.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.preview-modal.show { opacity: 1; visibility: visible; }
.preview-modal-content {
  width: 90%; max-width: 900px; max-height: 85vh;
  background: rgba(13,0,21,0.95);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 4px; overflow: hidden; display: flex; flex-direction: column;
  clip-path: polygon(0% 0%, 100% 0%, 99% 100%, 0% 100%);
  box-shadow: 0 0 30px rgba(0,240,255,0.1);
}
.preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid rgba(0,240,255,0.1);
}
.preview-header h3 { font-family: 'Chakra Petch', sans-serif; font-size: 16px; font-weight: 600; color: #00F0FF; }
.preview-close {
  width: 32px; height: 32px; border-radius: 4px;
  background: rgba(0,240,255,0.05); border: 1px solid rgba(0,240,255,0.15);
  color: rgba(255,255,255,0.6); font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.preview-close:hover { background: rgba(0,240,255,0.15); color: #00F0FF; border-color: rgba(0,240,255,0.3); }
.preview-modal-content iframe { width: 100%; height: 70vh; border: none; }

/* ===== Detail Page ===== */
.detail-page { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; margin-left: 260px; padding: 28px 24px 48px; }
.detail-back { margin-bottom: 24px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; color: #00F0FF;
  text-decoration: none; font-size: 14px; font-weight: 600;
  font-family: 'Chakra Petch', sans-serif;
  padding: 10px 20px; border-radius: 4px;
  background: rgba(0,240,255,0.05); border: 1px solid rgba(0,240,255,0.15);
  transition: all 0.3s;
  clip-path: polygon(0% 0%, 100% 0%, 98% 100%, 0% 100%);
}
.back-btn:hover { background: rgba(0,240,255,0.1); border-color: rgba(0,240,255,0.3); text-shadow: 0 0 6px rgba(0,240,255,0.4); }

.detail-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  background: rgba(13,0,21,0.8);
  border: 1px solid rgba(0,240,255,0.1);
  border-radius: 4px; padding: 28px; margin-bottom: 28px;
  clip-path: polygon(0% 0%, 100% 0%, 99.5% 100%, 0% 100%);
  box-shadow: 0 0 15px rgba(0,240,255,0.05);
  align-items: center;
}
.detail-thumb { width: 340px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(0,240,255,0.1); }
.detail-thumb img { width: 100%; height: auto; display: block; }
.detail-info { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; text-align: center; max-width: 600px; margin: 0 auto; }
.detail-title {
  font-family: 'Chakra Petch', sans-serif; font-size: 28px; font-weight: 700;
  color: #FFFFFF; line-height: 1.2;
  -webkit-text-stroke: 0.5px #FF00E5;
}
.detail-desc { color: rgba(255,255,255,0.5); font-size: 15px; line-height: 1.7; }
.play-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 42px;
  background: linear-gradient(135deg, #FFD319, #FF00E5);
  color: #0D0015; border: none; border-radius: 4px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 16px; font-weight: 700; cursor: pointer;
  width: fit-content; transition: transform 0.3s, box-shadow 0.3s;
  letter-spacing: 2px;
  clip-path: polygon(0% 0%, 100% 0%, 97% 100%, 0% 100%);
  text-shadow: none;
}
.play-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(255,211,25,0.4), 0 8px 20px rgba(255,0,229,0.3);
}

.game-iframe-container {
  width: 100%; height: 650px; border-radius: 4px; overflow: hidden;
  margin-bottom: 28px; background: #000;
  border: 1px solid rgba(0,240,255,0.15);
  box-shadow: 0 0 15px rgba(0,240,255,0.05);
}
.game-iframe-container iframe { width: 100%; height: 100%; border: none; }

/* Mobile fullscreen game container */
.game-iframe-container.mobile-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
  margin: 0;
  border: none;
}

.related-section { margin-top: 48px; }
.related-games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .related-games-grid { grid-template-columns: repeat(4, 1fr); } }
.related-card .card-image { aspect-ratio: 3/2 !important; }
.related-card .card-info { padding: 8px 10px 10px; }
.related-card .card-title { font-size: 12px; }
.related-card .card-play-glitch { display: none; }

/* ===== Static Pages ===== */
.static-page { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; margin-left: 260px; padding: 28px 24px 48px; }
.static-back { margin-bottom: 24px; }
.static-title {
  font-family: 'Chakra Petch', sans-serif; font-size: 28px; font-weight: 700;
  color: #FFFFFF; margin-bottom: 24px;
  -webkit-text-stroke: 0.5px #FF00E5;
}
.static-content {
  background: rgba(13,0,21,0.8);
  border: 1px solid rgba(0,240,255,0.1);
  border-radius: 4px; padding: 36px;
  color: rgba(255,255,255,0.5); line-height: 1.85; font-size: 15px;
  clip-path: polygon(0% 0%, 100% 0%, 99.5% 100%, 0% 100%);
}
.static-content p { margin-bottom: 16px; }
.static-content strong { color: #FFFFFF; }
.static-content a { color: #00F0FF; text-decoration: none; transition: color 0.2s; }
.static-content a:hover { color: #FFD319; }
.static-content ul, .static-content ol { margin: 12px 0 12px 24px; }
.static-content li { margin-bottom: 8px; }

/* ===== Footer ===== */
.cyber-footer {
  background: rgba(13,0,21,0.6);
  border-top: 1px solid rgba(0,240,255,0.08);
  padding: 48px 20px 24px; margin-top: 72px; position: relative;
  margin-left: 260px;
}
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-heading {
  font-family: 'Chakra Petch', sans-serif; font-size: 14px; font-weight: 700;
  color: #00F0FF; margin-bottom: 14px; letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0,240,255,0.3);
}
.footer-desc { color: rgba(255,255,255,0.3); font-size: 13px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,0.3); text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-links a:hover { color: #00F0FF; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(0,240,255,0.12); border-radius: 4px;
  color: rgba(255,255,255,0.3); text-decoration: none; font-size: 16px;
  transition: all 0.3s;
  clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
}
.social-link:hover { color: #00F0FF; border-color: rgba(0,240,255,0.4); box-shadow: 0 0 8px rgba(0,240,255,0.2); }
.footer-bottom { max-width: 1200px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid rgba(0,240,255,0.05); text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.2); font-size: 12px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cyber-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
    clip-path: none;
  }
  .cyber-sidebar.open { transform: translateX(0); }
  .mobile-sidebar-btn { display: flex; }
  .main-content { margin-left: 0; }
  .detail-page { margin-left: 0; }
  .static-page { margin-left: 0; }
  .cyber-footer { margin-left: 0; }
  .games-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .game-card.tilt-right { transform: rotate(0.5deg); }
  .game-card.tilt-left { transform: rotate(-0.3deg); }
  .game-card.tilt-right:hover { transform: rotate(0deg) translateY(-3px); }
  .game-card.tilt-left:hover { transform: rotate(0deg) translateY(-3px); }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-thumb { width: 100%; max-width: 420px; margin: 0 auto; }
  .search-results-dropdown { left: 20px; width: calc(100% - 40px); }
}

@media (max-width: 640px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card.tilt-right, .game-card.tilt-left { transform: none; }
  .game-card.tilt-right:hover, .game-card.tilt-left:hover { transform: translateY(-3px); }
  .mouse-follower { display: none; }
  .games-section { padding: 20px 16px 0; }
  .section-title { font-size: 18px; }
  .category-hexagon { display: none; }
  .ad-container-neon { padding: 16px; margin: 8px 16px 0; }
  .ad-container-neon > div { width: 100%; }
  .detail-page { padding: 16px; }
  .detail-hero { padding: 16px; }
  .detail-title { font-size: 22px; }
  .game-iframe-container { height: 450px; }
  .static-page { padding: 16px; }
  .static-content { padding: 20px; }
  .cyber-footer .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hot-trends-banner { padding: 16px; }
  .neon-flicker { font-size: 13px; }
  .trends-text { font-size: 12px; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0D0015; }
::-webkit-scrollbar-thumb { background: rgba(0,240,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,240,255,0.35); }
::selection { background: rgba(0,240,255,0.25); color: #FFFFFF; }
a { color: inherit; }
