@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&family=Sora:wght@600;700;800&display=swap");

/* ─── ENHANCED GAMING ANIMATED BACKGROUND ─── */
body {
  background: #050b13;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: #e9f2ff;
  line-height: 1.6;
  padding-bottom: 80px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(57, 169, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 169, 255, 0.035) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.02) rotate(0.5deg); }
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 15% 30%, rgba(66, 242, 184, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(57, 169, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(66, 242, 184, 0.04) 0%, transparent 70%);
  animation: orbPulse 8s ease-in-out infinite alternate;
}

@keyframes orbPulse {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0.8; transform: scale(1); }
}

#bg-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
#bg-particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(66, 242, 184, 0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  box-shadow: 0 0 6px rgba(66, 242, 184, 0.2);
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.glow-line {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66, 242, 184, 0.08), transparent);
  animation: glowLineMove 12s linear infinite;
}
@keyframes glowLineMove {
  0% { transform: translateX(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}

#vhs-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  animation: noiseShift 0.5s steps(2) infinite;
}
@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-5px, -3px); }
  66% { transform: translate(3px, 5px); }
  100% { transform: translate(0, 0); }
}

/* ─── REMOVE CAPTCHA BORDER & RING ─── */
#hv-locker-slot [data-captcha-enable="true"],
#hv-locker-slot > div:has([data-captcha-enable="true"]),
#hv-locker-slot * {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
#hv-locker-slot {
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
}
#hv-locker-slot::before {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(57, 169, 255, 0.2), transparent 70%);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

/* ─── GENERAL LAYOUT ─── */
.container { width: min(1140px, 92%); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(10,10,15,.75);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: #e9f2ff;
  text-decoration: none;
}
.brand-icon {
  display: inline-block;
  font-size: 0.9rem;
  color: #42f2b8;
  animation: iconSpin 4s ease-in-out infinite;
}
@keyframes iconSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}
.brand-bold {
  background: linear-gradient(135deg, #42f2b8 0%, #39a9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}
.brand-light {
  color: #e9f2ff;
  font-weight: 600;
  opacity: 0.9;
}

.section-shell {
  position: relative;
  border: 1px solid rgba(137, 169, 220, 0.14);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(18, 33, 54, 0.62), rgba(8, 17, 29, 0.45));
  padding: 1.15rem;
  overflow: hidden;
}
.section-head {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.section-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  letter-spacing: -0.01em;
}
.section-head p {
  margin: 0.35rem 0 0;
  color: #9ab2d2;
}

.hero {
  margin-top: 1.2rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}
.hero-content h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
}
.grad {
  background: linear-gradient(135deg, #42f2b8 0%, #ffcc66 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 0 0 1.5rem;
  max-width: 58ch;
  color: #bdd0ea;
  font-size: 1.08rem;
}
.actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.btn-scroll-tutorial {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  background: rgba(66, 242, 184, 0.08);
  border: 1px solid rgba(66, 242, 184, 0.3);
  border-radius: 999px;
  color: #e9f2ff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.browse-link {
  color: #9ab2d2;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(154, 178, 210, 0.3);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─── CATEGORY BAR ─── */
.category-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.category-chip {
  border: 1px solid rgba(137, 169, 220, 0.22);
  background: rgba(12, 24, 39, 0.78);
  color: #dbe8fb;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.category-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(66, 242, 184, 0.34);
}
.category-chip.is-active {
  background: linear-gradient(135deg, rgba(66, 242, 184, 0.2), rgba(57, 169, 255, 0.18));
  border-color: rgba(66, 242, 184, 0.42);
  color: #effdff;
}

/* ─── GAME GRID ─── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

/* ─── GAME CARD – CONTINUOUS ANIMATION ─── */
.game-item {
  background: rgba(16, 30, 49, 0.88);
  border: 1px solid rgba(149, 180, 232, 0.25);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  min-height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: cardFloat 4s ease-in-out infinite;
}

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

.game-item::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 50%, rgba(57, 169, 255, 0.3), rgba(66, 242, 184, 0.1));
  opacity: 0;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

.game-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent 60%);
  pointer-events: none;
  animation: shimmer 6s linear infinite;
  z-index: 0;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(5deg); }
  100% { transform: translateX(100%) rotate(5deg); }
}

/* ─── HEADER ROW – icon + title side by side ─── */
.game-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.game-cover-wrap {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(7, 14, 24, 0.88);
  border: 1px solid rgba(137, 169, 220, 0.18);
  transition: transform 0.3s ease;
  animation: iconPulse 5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.04) rotate(-2deg); }
}

.game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── TITLE – BIGGER, BLACK BORDER, NO ANIMATION ─── */
.game-item h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.4rem; /* Bigger */
  line-height: 1.2;
  flex: 1;
  min-width: 0;
  /* Black border (outline) + soft shadow for readability */
  text-shadow: 
    0 0 10px rgba(0,0,0,0.9),
    0 0 20px rgba(0,0,0,0.7),
    2px 2px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000;
}

.game-title-link {
  color: #eaf3ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.game-title-link:hover {
  color: #9ee8ff;
}

/* ─── DESCRIPTION – BIGGER ─── */
.game-meta {
  margin: 0;
  color: #bad0ee;
  font-size: 0.95rem; /* Bigger */
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

/* ─── BUTTON – FULLY FILLED ─── */
.game-actions {
  margin-top: 0.3rem;
  width: 100%;
}

.game-install-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.5rem; /* More padding = fully filled */
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.95rem; /* Bigger font */
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #39a9ff, #42f2b8);
  color: #072229;
  border: none;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.game-install-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(57, 169, 255, 0.4);
}

/* ─── EXECUTORS ─── */
.executors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}
.executor-card {
  background: rgba(16, 30, 49, 0.88);
  border: 1px solid rgba(149, 180, 232, 0.25);
  border-radius: 20px;
  padding: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s ease;
}
.executor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(161, 191, 236, 0.45);
}
.executor-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.executor-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(8,18,32,0.6);
  border: 1px solid rgba(137, 169, 220, 0.15);
}
.executor-info h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 1.05rem;
}
.executor-info p {
  margin: 0;
  font-size: 0.8rem;
  color: #9ab2d2;
}
.executor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}
.btn-executor {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  font-size: 0.76rem;
  background: linear-gradient(135deg, #39a9ff, #42f2b8);
  color: #072229;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(57,169,255,0.2);
}
.btn-executor:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ─── VIDEO SECTION ─── */
.script-method-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.4rem;
  align-items: center;
}
.script-method-copy h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.3rem;
  margin: 0.4rem 0 0.4rem;
  color: #e9f2ff;
}
.script-method-copy p {
  color: #9ab2d2;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}
.script-method-video-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(66, 242, 184, 0.15);
  background: #030a12;
  box-shadow: 0 0 30px rgba(57, 169, 255, 0.05);
}
.script-method-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

/* ─── FOOTER ─── */
.footer {
  padding: 1.2rem 0 2.2rem;
  color: #91a9cb;
  text-align: center;
  border-top: 1px solid rgba(147, 179, 228, 0.2);
}
.footer p { margin: 0.2rem 0; }
.footer a {
  color: #cde0fb;
  text-decoration: none;
  font-weight: 700;
}
.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ─── ENTRANCE SCREEN ─── */
#entrance-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,8,22,0.85);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
#entrance-screen.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.entrance-box {
  position: relative;
  z-index: 1;
  text-align: center;
  width: min(440px, 90vw);
  background: rgba(5,12,28,0.72);
  border: 1px solid rgba(60,110,180,0.35);
  border-radius: 24px;
  padding: 2.8rem 2.2rem 2.4rem;
  box-shadow: 0 0 60px rgba(30,60,120,0.35), inset 0 1px 0 rgba(120,180,255,0.08);
  backdrop-filter: blur(18px);
}
.entrance-logo {
  font-family: "Sora", sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: #e4eeff;
  margin: 0 0 0.3rem;
}
.entrance-logo b {
  background: linear-gradient(135deg, #7ec8ff 0%, #4af0c8 60%, #a0d0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.entrance-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(130,180,240,0.75);
  margin-bottom: 1.5rem;
}
.entrance-tagline {
  font-size: 1rem;
  color: #b8d0ef;
  margin: 0 0 1.9rem;
  line-height: 1.65;
}
.entrance-tagline span { color: #7ec8ff; font-weight: 700; }
.entrance-label {
  display: block;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(130,185,240,0.8);
  margin-bottom: 0.48rem;
}
.entrance-input {
  width: 100%;
  background: rgba(8,20,45,0.75);
  border: 1px solid rgba(80,140,220,0.35);
  border-radius: 16px;
  color: #e4eeff;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.78rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0.55rem;
  box-sizing: border-box;
}
.entrance-input:focus {
  border-color: rgba(100,175,255,0.7);
  box-shadow: 0 0 0 3px rgba(80,150,230,0.18);
}
.entrance-err {
  font-size: 0.8rem;
  color: #ff8a80;
  text-align: left;
  margin: 0 0 0.75rem;
  display: none;
}
.entrance-btn {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, #1e4a8a 0%, #1a3d72 40%, #143058 100%);
  border: 1px solid rgba(100,170,255,0.4);
  border-radius: 16px;
  color: #d8eaff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 20px rgba(20,60,150,0.4);
}
.entrance-btn:hover {
  background: linear-gradient(135deg, #2558a8 0%, #1e4a90 40%, #173a6e 100%);
  transform: translateY(-1px);
  color: #fff;
}
.entrance-footer-note {
  margin-top: 1.3rem;
  font-size: 0.7rem;
  color: rgba(100,145,200,0.5);
}

#main-hub { display: none; }
#main-hub.visible { display: block; }

#greeting-bar {
  text-align: center;
  padding: 0.4rem 1rem;
  background: linear-gradient(90deg, rgba(66,242,184,0.06), rgba(57,169,255,0.06));
  border-bottom: 1px solid rgba(66,242,184,0.08);
  font-size: 0.75rem;
  color: #9ab2d2;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
#greeting-bar span { color: #42f2b8; font-weight: 700; }

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr 1fr; }
  .executors-grid { grid-template-columns: 1fr 1fr; }
  .script-method-card { grid-template-columns: 1fr; }
}
@media (max-width: 750px) {
  .container { width: 94%; }
  .hero-content h1 { font-size: 1.8rem !important; }
  .game-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .game-item { padding: 0.8rem; }
  .game-cover-wrap { width: 50px; height: 50px; }
  .game-item h3 { font-size: 1.1rem; }
  .game-meta { font-size: 0.85rem; }
  .game-install-link { font-size: 0.8rem; padding: 0.7rem 1rem; }
  .executors-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .executor-card { padding: 0.7rem; }
  .category-chip { font-size: 0.65rem; padding: 0.3rem 0.6rem; }
  .section-shell { padding: 0.8rem; }
  .brand { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .game-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .hero-content h1 { font-size: 1.5rem !important; }
  .game-cover-wrap { width: 44px; height: 44px; }
  .game-item h3 { font-size: 1rem; }
  .game-meta { font-size: 0.8rem; }
}