*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Share Tech Mono', 'Orbitron', monospace;
  background: #08020F;
  color: #E0E0E0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
body::before {
  content: '';
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 300%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 14px,
      rgba(0,245,255,0.015) 14px,
      rgba(0,245,255,0.015) 15px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 22px,
      rgba(255,0,255,0.01) 22px,
      rgba(255,0,255,0.01) 23px
    ),
    linear-gradient(180deg, transparent 0%, rgba(0,245,255,0.03) 40%, transparent 60%, rgba(255,0,255,0.02) 80%, transparent 100%);
  background-size: 100% 100%, 100% 100%, 100% 30%;
  animation: binaryRain 4s linear infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
@keyframes binaryRain {
  0% { transform: translateY(0); }
  100% { transform: translateY(33.33%); }
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(123,47,190,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0,245,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255,0,255,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.site-header{background:rgba(8,2,15,0.95);padding:12px 0;border-bottom:1px solid rgba(0,245,255,0.3);box-shadow:0 0 12px rgba(0,245,255,0.1),0 0 6px rgba(255,0,255,0.1);}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:#00F5FF;font-family:'Orbitron','Share Tech Mono',sans-serif;font-size:1.5rem;letter-spacing:2px;text-shadow:0 0 8px rgba(0,245,255,0.4);}
.logo-icon{display:flex;align-items:center;}
.logo span{color:#FF00FF;text-shadow:0 0 8px rgba(255,0,255,0.4);}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.hero-section {
  max-width: 100%;
  max-height: 165px;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
  gap: 4px;
  height: 150px;
  overflow: hidden;
  padding: 5px;
}
.hero-grid::-webkit-scrollbar {
  display: none;
}
.hero-card {
  width: auto;
  height: auto;
  border-radius: 4px;
  background: rgba(13,13,26,0.9);
  border: 1px solid rgba(0,245,255,0.3);
  box-shadow: 0 0 6px rgba(0,245,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #FF00FF, #00F5FF, #FF00FF, #00F5FF);
  background-size: 300% 100%;
  animation: marqueeGradient 3s linear infinite;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}
@keyframes marqueeGradient {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: radial-gradient(circle at center, rgba(0,245,255,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.hero-card:hover {
  transform: scale(1.08);
  border-color: rgba(0,245,255,0.6);
  box-shadow: 0 0 16px rgba(0,245,255,0.4), 0 0 8px rgba(255,0,255,0.2);
}
.hero-card:hover::after {
  opacity: 1;
}
.hero-card:hover span {
  color: #00F5FF;
  text-shadow: 0 0 8px rgba(0,245,255,0.8), 0 0 16px rgba(255,0,255,0.4);
}
.hero-card img {
  border-radius: 2px;
  width: 80%;
  height: 65%;
  object-fit: cover;
  border: none;
}
.hero-card span {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  display: block;
  text-align: center;
  font-size: 0.5rem;
  font-weight: 600;
  padding: 2px 2px;
  color: #E0E0E0;
  text-shadow: 0 0 6px rgba(0,245,255,0.6), 0 0 12px rgba(255,0,255,0.3);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 2;
  transition: all 0.3s ease;
}
.hero-card:active {
  animation: currentOverload 0.3s ease;
}
@keyframes currentOverload {
  0% { background: rgba(255,255,255,0.9); transform: translateX(0); }
  10% { transform: translateX(-3px); }
  20% { background: rgba(255,255,255,0.7); transform: translateX(3px); }
  30% { transform: translateX(-2px); }
  40% { background: rgba(13,13,26,0.9); transform: translateX(2px); }
  50% { transform: translateX(-1px); }
  60% { transform: translateX(1px); }
  100% { background: rgba(13,13,26,0.9); transform: translateX(0); }
}
.hero-card:active span {
  color: #00F5FF;
  text-shadow: 0 0 8px rgba(0,245,255,0.8);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 16px;
  padding: 5px 0;
}
@media (max-width: 1024px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 576px)  { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 12px; } }

.game-card {
  background: rgba(13,13,26,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(0,245,255,0.2);
  box-shadow: 0 0 8px rgba(0,245,255,0.1), 0 0 4px rgba(255,0,255,0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  animation: voltageFlicker 8s ease-in-out infinite;
}
@keyframes voltageFlicker {
  0%, 100% { opacity: 1; }
  4% { opacity: 0.92; }
  6% { opacity: 1; }
  12% { opacity: 0.95; }
  14% { opacity: 1; }
  45% { opacity: 1; }
  47% { opacity: 0.88; }
  49% { opacity: 1; }
  78% { opacity: 1; }
  80% { opacity: 0.93; }
  82% { opacity: 1; }
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(0,245,255,0.03) 50%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(255,0,255,0.02) 50%, transparent 100%);
  background-size: 200% 100%, 100% 200%;
  animation: circuitScan 6s linear infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes circuitScan {
  0% { background-position: -100% 0, 0 -100%; }
  100% { background-position: 200% 0, 0 200%; }
}
.game-card::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0,245,255,0.6);
  box-shadow:
    8px 12px 0 rgba(255,0,255,0.5),
    -6px 18px 0 rgba(0,245,255,0.4),
    14px -8px 0 rgba(255,0,255,0.3),
    -10px 4px 0 rgba(0,245,255,0.5),
    20px 20px 0 rgba(255,0,255,0.4);
  animation: brownianMotion 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
  top: 20%;
  left: 20%;
}
@keyframes brownianMotion {
  0% { top: 20%; left: 20%; }
  15% { top: 50%; left: 70%; }
  30% { top: 15%; left: 45%; }
  45% { top: 60%; left: 25%; }
  60% { top: 35%; left: 80%; }
  75% { top: 70%; left: 40%; }
  90% { top: 25%; left: 55%; }
  100% { top: 20%; left: 20%; }
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,245,255,0.5);
  box-shadow: 0 0 16px rgba(0,245,255,0.3), 0 0 8px rgba(255,0,255,0.15), 0 4px 12px rgba(123,47,190,0.2);
  animation: none;
  opacity: 1;
}
.game-card:active {
  transform: scale(0.98);
}
.game-card-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: rgba(0,245,255,0.02);
  position: relative;
}
.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 3px 3px 0 0;
  position: relative;
  z-index: 2;
}
.game-card:hover .game-card-thumb img {
  transform: scale(1.05);
}
.game-card-title {
  padding: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #E0E0E0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  text-shadow: 0 0 4px rgba(0,245,255,0.3);
  position: relative;
  z-index: 2;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
}

.ad-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

.detail-wrap {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  flex: 1;
}
.detail-main {
  flex: 7;
  min-width: 0;
}
.detail-sidebar {
  flex: 3;
  min-width: 280px;
  max-width: 360px;
}
@media (max-width: 900px) {
  .detail-wrap { flex-direction: column; }
  .detail-sidebar { max-width: 100%; min-width: 0; }
}

.game-frame-wrap {
  background: rgba(13,13,26,0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 4px;
  border: 1px solid rgba(0,245,255,0.3);
  box-shadow: 0 0 12px rgba(0,245,255,0.15), 0 0 6px rgba(255,0,255,0.1);
}
.game-frame-wrap:fullscreen,
.game-frame-wrap:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  aspect-ratio: unset;
  border-radius: 0;
}
.game-frame-wrap.mobile-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  z-index: 9999;
  aspect-ratio: unset;
  border-radius: 0;
}
.game-frame-wrap.mobile-fullscreen .fullscreen-btn {
  display: block;
  z-index: 10;
}
.game-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: relative;
  z-index: 1;
}
.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,2,15,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}
.game-overlay.hidden { opacity: 0; pointer-events: none; }
.game-overlay-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: brightness(50%) saturate(60%) hue-rotate(260deg);
}
.play-btn {
  position: relative;
  z-index: 1;
  background: rgba(13,13,26,0.8);
  color: #00F5FF;
  border: 1px solid rgba(0,245,255,0.5);
  padding: 18px 36px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0,245,255,0.2), 0 0 6px rgba(255,0,255,0.1);
  text-shadow: 0 0 10px rgba(0,245,255,0.5);
  font-family: 'Orbitron', monospace;
}
.play-btn:hover {
  transform: translateY(-2px);
  background: rgba(0,245,255,0.1);
  box-shadow: 0 0 20px rgba(0,245,255,0.4), 0 0 10px rgba(255,0,255,0.2);
  border-color: rgba(0,245,255,0.8);
}
.play-btn:active {
  transform: scale(0.98);
}

.fullscreen-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(8,2,15,0.8);
  color: #00F5FF;
  border: 1px solid rgba(0,245,255,0.4);
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0,245,255,0.15);
  font-family: 'Orbitron', monospace;
}
.fullscreen-btn:hover {
  transform: translateY(-1px);
  background: rgba(0,245,255,0.1);
  border-color: rgba(0,245,255,0.6);
}
.game-frame-wrap.playing .fullscreen-btn { display: block; }
.game-frame-wrap.playing .game-overlay { display: none; }
.game-frame-wrap.playing .game-overlay-thumb { display: none; }

@media (max-width: 768px) {
  .game-frame-wrap .fullscreen-btn {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .game-frame-wrap.playing .fullscreen-btn {
    display: block;
  }
}

.game-frame-wrap:fullscreen .fullscreen-btn,
.game-frame-wrap:-webkit-full-screen .fullscreen-btn {
  display: none !important;
}

.detail-title {
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #00F5FF;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0,245,255,0.5), 0 0 20px rgba(255,0,255,0.2);
  font-family: 'Orbitron', monospace;
}
.detail-desc {
  font-size: 1rem;
  color: #E0E0E0;
  line-height: 1.8;
  margin-bottom: 20px;
  font-family: 'Share Tech Mono', monospace;
}
.tips-box {
  background: rgba(13,13,26,0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-left: 2px solid #00F5FF;
  padding: 20px;
  margin-top: 16px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 8px rgba(0,245,255,0.1), 0 0 4px rgba(255,0,255,0.05);
  border: 1px solid rgba(0,245,255,0.2);
  border-left: 2px solid #00F5FF;
}
.tips-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #00F5FF;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0,245,255,0.5);
  font-family: 'Orbitron', monospace;
}
.tips-box ul {
  list-style: none;
  padding: 0;
}
.tips-box li {
  font-size: 0.9rem;
  color: #E0E0E0;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
  font-family: 'Share Tech Mono', monospace;
}
.tips-box li::before {
  content: '\25C8';
  position: absolute;
  left: 0;
  color: #00F5FF;
  font-size: 0.8rem;
  text-shadow: 0 0 4px rgba(0,245,255,0.5);
}

.related-section {
  padding: 32px 0;
}
.related-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #00F5FF;
  position: relative;
  display: inline-block;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0,245,255,0.5), 0 0 20px rgba(255,0,255,0.2);
  font-family: 'Orbitron', monospace;
}
.related-section h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #00F5FF, #FF00FF, #00F5FF);
  background-size: 200% 100%;
  animation: neonLine 3s linear infinite;
  box-shadow: 0 0 8px rgba(0,245,255,0.5);
}
@keyframes neonLine {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

.site-footer {
  background: #05010A;
  padding: 40px 0;
  margin-top: auto;
  border-top: 1px solid rgba(0,245,255,0.15);
  box-shadow: 0 -2px 12px rgba(0,245,255,0.05), 0 -1px 6px rgba(255,0,255,0.03);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.8rem;
  color: #E0E0E0;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 8px 16px;
  position: relative;
  letter-spacing: 1px;
  text-shadow: 0 0 4px rgba(0,245,255,0.2);
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: #00F5FF;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(0,245,255,0.5);
}
.footer-links a:hover::after {
  width: 80%;
}
.footer-links a:hover {
  color: #00F5FF;
  text-shadow: 0 0 10px rgba(0,245,255,0.5);
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(224,224,224,0.4);
  margin-top: 8px;
  letter-spacing: 1px;
}

.info-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
  flex: 1;
  background: rgba(13,13,26,0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  margin-top: 32px;
  margin-bottom: 32px;
  border-radius: 4px;
  border: 1px solid rgba(0,245,255,0.2);
  box-shadow: 0 0 12px rgba(0,245,255,0.1), 0 0 6px rgba(255,0,255,0.05);
}
.info-page h1 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: #00F5FF;
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(0,245,255,0.5), 0 0 30px rgba(255,0,255,0.2);
  font-family: 'Orbitron', monospace;
}
.info-page h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 32px 0 16px;
  color: #00F5FF;
  position: relative;
  padding-left: 16px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0,245,255,0.4);
  font-family: 'Orbitron', monospace;
}
.info-page h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: linear-gradient(180deg, #00F5FF, #FF00FF);
  box-shadow: 0 0 8px rgba(0,245,255,0.5);
}
.info-page p {
  font-size: 1rem;
  color: #E0E0E0;
  line-height: 1.9;
  margin-bottom: 16px;
  font-family: 'Share Tech Mono', monospace;
}
.info-page a {
  color: #00F5FF;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  text-shadow: 0 0 4px rgba(0,245,255,0.3);
}
.info-page a:hover {
  border-bottom-color: #00F5FF;
  text-shadow: 0 0 10px rgba(0,245,255,0.5);
}
.info-page ul {
  list-style: none;
  padding: 0;
}
.info-page li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: #E0E0E0;
  font-size: 1rem;
  line-height: 1.8;
  font-family: 'Share Tech Mono', monospace;
}
.info-page li::before {
  content: '\25C8';
  position: absolute;
  left: 4px;
  color: #00F5FF;
  font-size: 0.8rem;
  text-shadow: 0 0 4px rgba(0,245,255,0.5);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track {
  background: #08020F;
  border: none;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00F5FF, #7B2FBE, #FF00FF);
  border-radius: 5px;
  border: none;
  box-shadow: 0 0 5px rgba(0,245,255,0.3);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FF00FF, #7B2FBE, #00F5FF);
}

@media (max-width: 768px) {
  .info-page { margin: 20px 16px; padding: 32px 20px; }
  .info-page h1 { font-size: 1.8rem; }
  .play-btn { padding: 14px 28px; font-size: 1rem; }
  .detail-title { font-size: 1.5rem; }
}

