:root{
  --bg: #040914;
  --panel: #0a1526;
  --panel-2: #0e1d33;
  --line: rgba(200,225,255,0.10);
  --text: #f3f8ff;
  --muted: #8ba3c4;
  --mint: #8fd4ff;
  --violet: #6ec3ff;
  --accent: #8fd4ff;
  --accent-hover: #bde4ff;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; height:100%; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

#stars{ position:fixed; inset:0; z-index:0; pointer-events:none; }

.glow-orbit{
  position:fixed; top:-320px; left:50%; transform:translateX(-50%);
  width:900px; height:900px;
  background: radial-gradient(circle, rgba(143,212,255,0.14) 0%, rgba(79,168,240,0.08) 35%, transparent 70%);
  filter: blur(10px); pointer-events:none; z-index:0;
  animation: driftGlow 18s ease-in-out infinite;
  will-change: transform;
}
@keyframes driftGlow{
  0%,100%{ transform:translateX(-50%) translateY(0); }
  50%{ transform:translateX(-48%) translateY(30px); }
}
@media (max-width: 768px){
  .glow-orbit{
    animation: none;
    width: 380px;
    height: 380px;
    top: -140px;
    filter: blur(8px);
  }
}

.wrap{
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.main-content{
  flex: 1 0 auto;
}

nav{
  position: sticky;
  top: 18px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  margin: 16px 0 16px;
  background: rgba(10, 18, 33, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
nav:hover{
  border-color: rgba(110, 195, 255, 0.25);
  box-shadow: 0 12px 36px -5px rgba(0, 0, 0, 0.65), 0 0 20px rgba(53, 230, 176, 0.08);
}
.brand{ display:flex; align-items:center; gap:10px; font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:17px; letter-spacing:-0.01em; flex-shrink:0; text-decoration:none; color:inherit; }
.brand-mark{
  width:30px; height:30px; border-radius:9px; overflow:hidden;
  background: linear-gradient(135deg, var(--mint), var(--violet));
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:15px; color:#04101f;
}
.brand-mark img{ width:100%; height:100%; object-fit:cover; display:block; }

.nav-right{ display:contents; }

.nav-links{ flex:1 1 auto; display:flex; align-items:center; justify-content:center; gap:34px; list-style:none; }
.nav-links a{ color: var(--muted); text-decoration:none; font-size:14px; font-weight:500; position:relative; padding-bottom:4px; transition: color .2s ease; }
.nav-links a:hover{ color: var(--text); }
.nav-links a.active{ color: var(--text); }
.nav-links a.active::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-14px;
  height:2px;
  background: linear-gradient(90deg, var(--mint), var(--violet));
  border-radius:2px;
}

.discord-btn{
  display:flex; align-items:center; gap:8px; background: var(--panel-2); border:1px solid var(--line);
  padding:8px 16px; border-radius:10px; color: var(--text); font-size:13.5px; font-weight:600; text-decoration:none;
  transition: border-color .2s ease, transform .2s ease;
  flex-shrink:0;
}
.discord-btn svg{ flex-shrink:0; color:#5865F2; }
.discord-btn:hover{ border-color: rgba(110,195,255,0.5); transform:translateY(-1px); }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width:36px; height:36px; background:transparent; border:1px solid var(--line); border-radius:9px;
  cursor:pointer; flex-shrink:0;
}
.nav-toggle span{ display:block; width:16px; height:2px; border-radius:2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px){
  nav{
    padding: 10px 16px;
    margin: 12px 0 12px;
    border-radius: 14px;
  }
  .nav-toggle{ display:flex; }
  .nav-right{
    display:flex;
    position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:100;
    flex-direction:column; align-items:stretch; gap:0;
    background: rgba(10, 18, 33, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    max-height:0; overflow:hidden; opacity:0;
    transition: max-height .25s ease, opacity .2s ease;
  }
  .nav-right.open{ max-height:420px; opacity:1; }
  .nav-links{ flex:none; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; padding:10px 24px 4px; }
  .nav-links a{ display:block; padding:12px 0; border-bottom:1px solid var(--line); }
  .nav-links a.active::after{ display:none; }
  .nav-links a.active{ color: var(--mint); }
  .discord-btn{ margin:14px 24px 18px; justify-content:center; }
}

.hero{ text-align:center; padding:72px 0 20px; }
.hero-home{ padding:80px 0 24px; text-align:center; }
.hero-home h1{
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.hero-home .sub{
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.category-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(110, 195, 255, 0.12);
  border: 1px solid rgba(110, 195, 255, 0.28);
  color: var(--mint);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  vertical-align: middle;
}

.stats-card-3col{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 440px;
  margin: 36px auto 0;
  background: rgba(10, 21, 38, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.stats-card-3col .stat-item{
  padding: 16px 10px;
  text-align: center;
  position: relative;
}
.stats-card-3col .stat-item:not(:last-child)::after{
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  bottom: 20%;
  width: 1px;
  background: var(--line);
}
.stats-card-3col .stat-num{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.stats-card-3col .stat-label{
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 4px;
}

.search-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 48px 0 28px;
}
.search-box{
  flex: 1;
  max-width: 720px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon{
  position: absolute;
  left: 16px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.search-input{
  width: 100%;
  background: rgba(10, 21, 38, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 18px 13px 44px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all .2s ease;
}
.search-input:focus{
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(143, 212, 255, 0.15);
  background: rgba(14, 29, 51, 0.95);
}
.search-counter{
  font-size: 13px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

.scripts-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}
@media (max-width: 680px){
  .scripts-grid{
    grid-template-columns: 1fr;
  }
}

.script-card{
  background: #0b111e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 1px 360px;
}
.script-card:hover{
  transform: translateY(-5px);
  border-color: rgba(143, 212, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.script-thumb-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #070c16;
  border-radius: 12px;
  overflow: hidden;
}
.script-thumb-wrap img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform .35s ease;
}
.script-card:hover .script-thumb-wrap img{
  transform: scale(1.04);
}
.game-badge-overlay{
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(10, 15, 25, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  max-width: calc(100% - 20px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 2;
}
.game-badge-overlay img, .game-badge-overlay .game-emoji{
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.script-body{
  padding: 14px 4px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.script-tags{
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tag-pill{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.tag-free{ background: rgba(16, 60, 48, 0.7); color: #35e6b0; border: 1px solid rgba(53, 230, 176, 0.35); }
.tag-key{ background: rgba(60, 45, 15, 0.7); color: #ffb13d; border: 1px solid rgba(255, 177, 61, 0.35); }
.tag-mobile{ background: rgba(25, 35, 75, 0.7); color: #8ba5ff; border: 1px solid rgba(110, 140, 255, 0.35); }
.tag-paid{ background: rgba(60, 50, 15, 0.7); color: #ffd446; border: 1px solid rgba(255, 212, 70, 0.35); }
.script-title{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #fff;
}
.script-desc{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.script-meta{
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.script-meta span{
  display: flex;
  align-items: center;
  gap: 5px;
}

.back-btn-row{
  padding: 24px 0 16px;
}
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  font-weight: 500;
  transition: color .2s ease;
}
.back-link:hover{
  color: #fff;
}
.script-detail-layout{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-bottom: 80px;
}
@media (max-width: 980px){
  .script-detail-layout{
    grid-template-columns: 1fr;
  }
}
.detail-hero-banner{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel-2);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.detail-hero-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-banner-tags{
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.detail-banner-tags .tag-pill,
.script-thumb-wrap .tag-pill{
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.detail-banner-title{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 24px 20px;
  background: linear-gradient(0deg, rgba(4, 9, 20, 0.96) 0%, rgba(4, 9, 20, 0.6) 60%, transparent 100%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.script-section-header{
  margin-bottom: 14px;
}
.script-section-header h2{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  display: inline-block;
  margin-right: 12px;
}
.script-section-header span{
  color: var(--muted);
  font-size: 13.5px;
}
.detail-features-chips-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.detail-feature-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(143, 212, 255, 0.08);
  border: 1px solid rgba(143, 212, 255, 0.22);
  color: #d6eeff;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.15s ease;
}
.detail-feature-chip:hover{
  background: rgba(143, 212, 255, 0.16);
  border-color: rgba(143, 212, 255, 0.4);
  transform: translateY(-1px);
}
.detail-feature-chip .chip-dot{
  color: var(--mint);
  font-weight: bold;
}
.code-block-box{
  background: #090f1d;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}
.code-block-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
}
.code-dots{
  display: flex;
  align-items: center;
  gap: 6px;
}
.code-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot.red{ background: #ff5f56; }
.code-dot.yellow{ background: #ffbd2e; }
.code-dot.green{ background: #27c93f; }
.code-lang-label{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.copy-code-btn{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.copy-code-btn:hover{
  background: rgba(255, 255, 255, 0.16);
}
.code-content{
  padding: 18px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #8fd4ff;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.6;
}
.steps-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.step-item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.step-num{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(110, 140, 255, 0.2);
  color: #aab6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.detail-features{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.sidebar-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-stats-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  margin-bottom: 14px;
  gap: 6px;
}
.sidebar-stat-btn{
  padding: 6px 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}
.sidebar-stat-btn:hover{
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.sidebar-stat-btn:active{
  transform: scale(0.95);
}
.sidebar-stat-btn.active-like{
  background: rgba(255, 106, 106, 0.15);
  border-color: rgba(255, 106, 106, 0.35);
}
.sidebar-stat-btn.active-dislike{
  background: rgba(139, 165, 255, 0.15);
  border-color: rgba(139, 165, 255, 0.35);
}
.sidebar-stat-val{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.sidebar-stat-lbl{
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.rating-bar-wrap{
  height: 4px;
  background: rgba(255, 106, 106, 0.35);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 18px;
}
.rating-bar-fill{
  height: 100%;
  background: #35e6b0;
  border-radius: 2px;
}
.btn-stack{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-primary-action{
  background: #6272ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter .18s ease;
}
.btn-primary-action:hover{ filter: brightness(1.12); }
.btn-secondary-action{
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease;
}
.btn-secondary-action:hover{ background: rgba(255, 255, 255, 0.1); }
.sidebar-heading{
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.game-info-row{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.game-info-icon{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel-2);
}
.game-info-title{
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  margin-bottom: 3px;
}
.game-info-id{
  font-size: 12px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.author-row{
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04101f;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.author-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.author-name{
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.author-role{
  font-size: 12px;
  color: var(--muted);
}
.executors-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.executor-item{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.executor-icon{
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.details-table{
  width: 100%;
  border-collapse: collapse;
}
.details-table tr:not(:last-child){
  border-bottom: 1px solid var(--line);
}
.details-table td{
  padding: 10px 0;
  font-size: 13px;
}
.details-table td.label{
  color: var(--muted);
}
.details-table td.val{
  text-align: right;
  font-weight: 600;
  color: #fff;
}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px; background: rgba(143,212,255,0.12); border:1px solid rgba(143,212,255,0.25);
  color: var(--mint); font-family:'JetBrains Mono', monospace; font-size:12px; padding:7px 16px; border-radius:999px; letter-spacing:0.02em; margin-bottom:34px;
}
.pulse-dot{ width:6px; height:6px; border-radius:50%; background: var(--mint); animation: pulse 2s infinite; }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(143,212,255,0.55); }
  70%{ box-shadow: 0 0 0 9px rgba(143,212,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(143,212,255,0); }
}

h1{
  font-family:'Space Grotesk', sans-serif; font-size: clamp(40px, 6vw, 68px); line-height:1.04; letter-spacing:-0.025em; font-weight:700;
  background: linear-gradient(180deg, #ffffff 0%, #b9b9c9 100%); -webkit-background-clip:text; background-clip:text; color:transparent;
}
h1 .accent{ background: linear-gradient(120deg, var(--mint), var(--violet)); -webkit-background-clip:text; background-clip:text; color:transparent; }

.sub{ max-width:560px; margin:24px auto 0; color: var(--muted); font-size:16.5px; line-height:1.65; }

.status-banner{
  display:inline-flex; align-items:center; gap:10px; margin-top:40px; background: rgba(143,212,255,0.12); border:1px solid rgba(143,212,255,0.25);
  padding:13px 26px; border-radius:12px; font-size:14px; font-weight:600; color: var(--mint);
}

.cards{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:24px; margin:64px 0 100px; }
@media (max-width: 640px){ .cards{ grid-template-columns:1fr; } }

.card{
  --accent-dim: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-border: color-mix(in srgb, var(--accent) 36%, var(--line));
  --accent-glow: color-mix(in srgb, var(--accent) 26%, transparent);
  position: relative;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--panel)) 0%, var(--panel) 38%);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 28px -6px var(--accent-glow), 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color .25s ease,
              box-shadow .25s ease;
}
.card:not(.locked):hover{
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 42px -4px color-mix(in srgb, var(--accent) 42%, transparent), 0 22px 50px rgba(0, 0, 0, 0.6);
}
.card::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.95;
}

.ribbon{
  position: absolute;
  top: 22px;
  right: -42px;
  width: 160px;
  text-align: center;
  transform: rotate(45deg);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
  color: #040914;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 75%, #000));
  z-index: 3;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 60%, transparent), 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-head{ display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.icon{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 12%, rgba(255, 255, 255, 0.02));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  box-shadow: 0 0 16px -2px color-mix(in srgb, var(--accent) 32%, transparent);
}
.icon svg{ width:24px; height:24px; }
.icon img{ width:100%; height:100%; object-fit:cover; display:block; }

.card-title{ font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:19px; }
.badge{
  display: inline-block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.progress-row{ display:flex; align-items:center; gap:10px; margin-bottom:18px; flex-wrap:wrap; }
.dots{ display:flex; gap:4px; flex-wrap:wrap; }
.seg{ width:20px; height:5px; border-radius:3px; background: var(--accent); box-shadow: 0 0 8px -1px color-mix(in srgb, var(--accent) 50%, transparent); }
.progress-row .meta{ font-size:12.5px; color: var(--muted); font-family:'JetBrains Mono', monospace; }

.desc{ color: var(--muted); font-size:14.5px; line-height:1.6; margin-bottom:22px; }
.desc a{ color: var(--accent); text-decoration:none; border-bottom:1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }

.feature-list{ list-style:none; margin-bottom:26px; display:flex; flex-direction:column; gap:11px; flex:1; }
.feature-list li{ display:flex; align-items:center; gap:10px; font-size:14px; color: var(--text); }
.check{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 0 8px -1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  background: var(--accent);
  color: #040914;
  text-decoration: none;
  box-shadow: 0 8px 24px -4px color-mix(in srgb, var(--accent) 55%, transparent), 0 2px 6px rgba(0,0,0,0.3);
}
.cta-arrow{
  display: inline-block;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  font-size: 14px;
}
.cta:not(.locked):hover{
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 32px -2px color-mix(in srgb, var(--accent) 70%, transparent), 0 4px 10px rgba(0,0,0,0.4);
}
.cta:not(.locked):hover .cta-arrow{
  transform: translateX(4px);
}
.cta.locked{
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
}
.cta.locked:hover{
  transform: none;
  box-shadow: none;
  filter: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary-cta, a.btn-secondary-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-secondary-cta:hover, a.btn-secondary-cta:hover{
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #ffffff !important;
}

footer{
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin-top: auto;
  width: 100%;
}
.footer-brand{ display:flex; align-items:center; gap:8px; }
.footer-brand .brand-mark{ width:22px; height:22px; font-size:11px; }
footer a{ color: var(--muted); text-decoration:none; transition: color .2s ease; }
footer a:hover{ color: var(--text); }

@media (prefers-reduced-motion: reduce){ *{ animation:none !important; transition:none !important; } }
@media (max-width: 640px){ .hero{ padding-top:64px; } }

.premium-hero{ padding-bottom:8px; }

#official-shop-section{ margin:56px 0 0; }

.shop-card{
  --accent-dim: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-border: color-mix(in srgb, var(--accent) 38%, var(--line));
  --accent-glow: color-mix(in srgb, var(--accent) 28%, transparent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--panel)) 0%, var(--panel) 50%);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 26px 30px;
  overflow: hidden;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 0 32px -6px var(--accent-glow), 0 16px 40px rgba(0, 0, 0, 0.45);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color .25s ease,
              box-shadow .25s ease;
}
.shop-card:hover{
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 42px -4px color-mix(in srgb, var(--accent) 40%, transparent), 0 20px 48px rgba(0, 0, 0, 0.55);
}
.shop-card .ribbon{
  position: absolute;
  top: 22px;
  right: -42px;
  width: 160px;
  text-align: center;
  transform: rotate(45deg);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
  color: #040914;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 75%, #000));
  z-index: 3;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 60%, transparent), 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.shop-card-left{ display:flex; align-items:center; gap:18px; min-width:260px; flex:1; }
.shop-icon{ width:56px; height:56px; border-radius:14px; }
.shop-icon svg{ width:26px; height:26px; }
.shop-title{ font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:19px; margin-bottom:6px; }
.shop-desc{ color: var(--muted); font-size:14px; line-height:1.55; max-width:460px; }

.shop-cta{ white-space:nowrap; padding:13px 24px; flex-shrink:0; }

#resellers-section{ margin:64px 0 100px; text-align:center; }
.resellers-heading{ font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:24px; margin-bottom:10px; }
.resellers-sub{ color: var(--muted); font-size:14.5px; margin-bottom:36px; }

.resellers-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 260px));
  justify-content:center; gap:20px;
}

.reseller-card{
  background: var(--panel); border:1px solid var(--line); border-radius:18px;
  padding:26px 20px; display:flex; flex-direction:column; align-items:center; gap:10px;
  transition: transform .2s ease, border-color .2s ease;
}
.reseller-card:hover{ transform:translateY(-3px); border-color: rgba(200,225,255,0.22); }

.reseller-avatar{
  width:56px; height:56px; border-radius:14px; overflow:hidden; flex-shrink:0;
  background:#ffffff; display:flex; align-items:center; justify-content:center;
  color:#0e1d33; font-weight:700;
}
.reseller-avatar svg{ width:26px; height:26px; }
.reseller-avatar img{ width:100%; height:100%; object-fit:cover; }

.reseller-name{ font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:16px; }

.reseller-badge{ background: rgba(110,140,255,0.15); color:#9db2ff; }

.reseller-visit{ color: var(--muted); font-size:13.5px; text-decoration:none; font-weight:600; margin-top:2px; }
.reseller-visit:hover{ color: var(--text); }

@media (max-width: 560px){
  .shop-card{ flex-direction:column; align-items:flex-start; }
  .shop-cta{ width:100%; justify-content:center; }
}

.gate-panel{
  max-width:620px; margin:56px auto 64px;
  background: linear-gradient(180deg, rgba(110,140,255,0.08), transparent 60%), var(--panel);
  border:1px solid rgba(140,160,255,0.25); border-radius:22px; padding:36px 38px; text-align:center;
}
.gate-badge{
  display:inline-block; background: rgba(140,160,255,0.15); color:#aab6ff;
  font-family:'JetBrains Mono', monospace; font-size:11px; font-weight:700; letter-spacing:0.06em;
  padding:5px 14px; border-radius:999px; margin-bottom:18px;
}
.gate-title{ font-family:'Space Grotesk', sans-serif; font-weight:700; font-size:24px; margin-bottom:10px; }
.gate-subtitle{ color: var(--muted); font-size:14px; line-height:1.6; max-width:460px; margin:0 auto 28px; }

.gate-steps{ display:flex; flex-direction:column; gap:14px; text-align:left; }

.gate-step{
  --step-accent: #5865F2;
  display:flex; align-items:center; gap:16px;
  background: rgba(255,255,255,0.02); border:1px solid var(--line); border-radius:14px;
  padding:16px 18px; transition: border-color .25s ease, background .25s ease;
}
.gate-step.done{ border-color: rgba(53,230,176,0.4); background: rgba(53,230,176,0.06); }

.step-marker{
  width:26px; height:26px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700;
  background: rgba(255,255,255,0.06); color: var(--text); border:1px solid var(--line);
}
.gate-step.done .step-marker{ background: var(--mint); color:#04101f; border-color: var(--mint); }

.step-info{ flex:1 1 auto; min-width:0; }
.step-title{ font-weight:700; font-size:14.5px; margin-bottom:3px; }
.step-desc{ color: var(--muted); font-size:13px; line-height:1.5; }
.step-status{ display:flex; align-items:center; gap:7px; margin-top:8px; color:#aab6ff; font-size:12px; font-weight:600; }
.step-status[hidden]{ display:none; }

.gate-complete{ max-width:620px; margin:56px auto 64px; text-align:center; }

.spinner{
  width:12px; height:12px; border-radius:50%; flex-shrink:0;
  border:2px solid rgba(170,182,255,0.25); border-top-color:#aab6ff;
  animation: spin .7s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.step-btn{
  display:flex; align-items:center; justify-content:center; gap:7px; flex-shrink:0;
  background: var(--step-accent); color:#fff; border:none; border-radius:10px;
  padding:10px 16px; font-family:'Inter', sans-serif; font-weight:700; font-size:13px;
  cursor:pointer; transition: filter .18s ease, transform .18s ease;
}
.step-btn svg{ width:15px; height:15px; flex-shrink:0; }
.step-btn:hover{ filter:brightness(1.12); transform:translateY(-1px); }
.gate-step.done .step-btn{ background: rgba(53,230,176,0.15); color: var(--mint); cursor:default; }
.gate-step.done .step-btn:hover{ filter:none; transform:none; }

.card.locked{ filter: grayscale(35%) brightness(0.8); transition: filter .3s ease; }
.card.locked:hover{ filter: grayscale(15%) brightness(0.92); transform:none; }

.lock-badge{
  position:absolute; top:14px; left:14px; z-index:2;
  display:flex; align-items:center; gap:5px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(3px);
  border:1px solid rgba(255,255,255,0.15); border-radius:999px;
  padding:4px 11px; font-size:10.5px; font-weight:700; letter-spacing:0.03em;
  color:#e6e6ee; font-family:'JetBrains Mono', monospace;
}

.cta.locked{
  background: rgba(255,255,255,0.05); color: var(--muted);
  cursor:pointer; border:1px dashed var(--line);
}
.cta.locked:hover{ transform:none; filter:none; border-color: rgba(255,255,255,0.25); }

@keyframes shake{
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
.cta.locked.shake{ animation: shake .45s ease; }

@media (max-width: 560px){
  .gate-panel{ padding:26px 18px; margin:44px auto 52px; }
  .gate-step{ flex-wrap:wrap; align-items:flex-start; gap:12px; }
  .step-info{ flex:1 1 calc(100% - 42px); min-width:0; }
  .step-btn{
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 6px;
    padding: 11px 18px;
    font-size: 13.5px;
    border-radius: 10px;
  }
}

/* Page Loader */
.page-loader{
  position: fixed;
  inset: 0;
  background: var(--bg, #040914);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s ease;
  will-change: opacity, visibility;
}
.page-loader.hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.loader-spinner{
  width: 42px;
  height: 42px;
  border: 3px solid rgba(143, 212, 255, 0.15);
  border-top-color: var(--mint, #8fd4ff);
  border-radius: 50%;
  animation: spinLoader 0.75s linear infinite;
}
@keyframes spinLoader{
  to { transform: rotate(360deg); }
}
.loader-text{
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted, #8ba3c4);
  letter-spacing: 0.05em;
}

.executor-icon img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* =========================================================================
   HOME PAGE SPECIFIC STYLES
   ========================================================================= */

.home-section-title{
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.home-section-sub{
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 620px;
}

/* Optional Executors Marquee Section */
.executors-marquee-section {
  margin: 34px auto 26px;
  text-align: center;
  max-width: 1000px;
  position: relative;
}
.marquee-title-wrap {
  margin-bottom: 14px;
}
.marquee-title-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}
.marquee-slider-wrap {
  overflow: hidden;
  position: relative;
  display: flex;
  gap: 14px;
  user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  padding: 6px 0;
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 14px;
  min-width: 100%;
  animation: marqueeLoop 24s linear infinite !important;
  will-change: transform;
}
.marquee-slider-wrap:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marqueeLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - 14px));
  }
}
.executor-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.executor-pill:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}
.executor-pill img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
}
.executor-pill .exec-icon-fallback {
  color: var(--mint);
  font-size: 12px;
}

/* Home Universal Loadstring Card */
.universal-loadstring-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin: 44px 0 54px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.universal-loadstring-card::before{
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(143, 212, 255, 0.15), transparent 70%);
  pointer-events: none;
}

/* Interactive Script Execution Simulator */
.terminal-simulator-box{
  background: #060a14;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 18px;
}
.terminal-simulator-header{
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.terminal-simulator-body{
  padding: 18px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  min-height: 140px;
  color: var(--muted);
}
.terminal-sim-line{
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  animation: lineFadeIn 0.3s forwards ease;
}
@keyframes lineFadeIn{
  to { opacity: 1; transform: translateY(0); }
}
.terminal-sim-line.ok{ color: #35e6b0; }
.terminal-sim-line.info{ color: #8fd4ff; }
.terminal-sim-line.warn{ color: #ffd446; }

/* Supported Games Showcase (Horizontal Sliding Carousel) */
.home-games-slider-section {
  margin-top: 36px;
  margin-bottom: 56px;
  position: relative;
}
.games-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}
.games-slider-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.slider-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.slider-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.slider-arrow-btn:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(53, 230, 176, 0.1);
  transform: translateY(-1px);
}
.games-browse-link {
  color: var(--mint);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.games-browse-link:hover {
  text-decoration: underline;
  color: #fff;
}

.games-slider-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 180px;
  box-sizing: border-box;
  padding: 12px 0 20px;
  user-select: none;
  cursor: grab;
  touch-action: pan-y;
  mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
}
.games-slider-viewport:active {
  cursor: grabbing;
}
.games-slider-rail {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
.games-slider-track {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

/* Supported Game Card - Generous spacing, clean dark theme */
.supported-game-card {
  width: 310px;
  min-width: 310px;
  height: 148px;
  box-sizing: border-box;
  flex-shrink: 0;
  background: #0b111e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

/* Clean hover elevation without neon glow */
.supported-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 212, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.supported-game-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.supported-game-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.supported-game-title-wrap {
  min-width: 0;
  flex: 1;
}
.supported-game-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.supported-game-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #35e6b0;
  margin-top: 3px;
}

/* Bottom area: displays features on row 1, views and likes on row 2 */
.game-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.game-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex-wrap: nowrap;
  overflow: hidden;
}
.supported-game-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.5px 7px;
  font-size: 10.5px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  flex-shrink: 0;
}
.game-card-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #8fd4ff;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.game-card-stats .stat-sep {
  color: rgba(255, 255, 255, 0.25);
}

/* On Desktop Hover: stats fade in */
.supported-game-card:hover .game-card-stats {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsiveness & Polish */
@media (max-width: 768px) {
  .home-games-slider-section {
    margin-top: 24px;
    margin-bottom: 40px;
  }
  .games-slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }
  .games-slider-header-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .games-slider-viewport {
    height: 172px;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    padding: 6px 0 14px;
  }
  .supported-game-card {
    width: 280px;
    min-width: 280px;
    height: 142px;
    padding: 14px 15px;
    border-radius: 14px;
  }
  .supported-game-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .supported-game-title {
    font-size: 13.5px;
  }
  .supported-game-status {
    font-size: 10.5px;
  }
  .supported-game-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
  /* On mobile: always display features and stats together */
  .game-card-stats {
    opacity: 1 !important;
    transform: none !important;
    font-size: 10px;
    gap: 4px;
  }
  .games-browse-link {
    font-size: 13px;
  }
}

/* Home Premium VIP Recommendation Card */
.home-premium-banner{
  background: linear-gradient(135deg, rgba(255, 212, 70, 0.08) 0%, rgba(10, 21, 38, 0.95) 60%);
  border: 1px solid rgba(255, 212, 70, 0.35);
  border-radius: 20px;
  padding: 32px 36px;
  margin: 54px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(255, 212, 70, 0.06);
  position: relative;
  overflow: hidden;
}
.home-premium-banner > div:first-child{
  flex: 1;
  max-width: 650px;
}
.home-premium-banner > div:last-child{
  margin-left: auto;
  flex-shrink: 0;
}
@media (max-width: 768px){
  .home-premium-banner{
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
    gap: 24px;
  }
  .home-premium-banner > div:first-child{
    max-width: 100%;
  }
  .home-premium-banner > div:last-child{
    margin-left: 0;
    width: 100%;
  }
  .home-premium-banner .btn-vip{
    width: 100%;
    justify-content: center;
  }
  .home-premium-features{
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 16px !important;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 480px){
  .home-premium-features{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
.home-premium-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 212, 70, 0.15);
  border: 1px solid rgba(255, 212, 70, 0.4);
  color: #ffd446;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.home-premium-title{
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.home-premium-features{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 20px;
  margin-top: 18px;
  font-size: 13.5px;
  color: #e3edf8;
}
.home-premium-features .prem-feat-item{
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.home-premium-features .gold-check{
  color: #ffd446;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 14px;
}
.btn-vip{
  background: linear-gradient(135deg, #ffd446 0%, #f5a623 100%);
  color: #0b111e;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(255, 212, 70, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-vip:hover{
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 12px 30px rgba(255, 212, 70, 0.45);
}

/* Home Features 3-Grid */
.home-features-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 44px 0 54px;
}
@media (max-width: 768px){
  .home-features-grid{
    grid-template-columns: 1fr;
  }
}
.home-feature-box{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.home-feature-icon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(143, 212, 255, 0.12);
  color: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.home-feature-title{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.home-feature-desc{
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================================
   LIGHTWEIGHT ACCELERATED ANIMATIONS
   ========================================================================= */

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

main {
  animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.script-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease !important;
}

.script-card:hover .script-thumb-wrap img {
  transform: scale(1.04);
}

.home-feature-box {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.home-feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 212, 255, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.btn-primary, .btn-secondary, .btn-vip, .step-btn, .copy-btn {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s ease,
              filter 0.18s ease,
              background 0.18s ease !important;
}

.btn-primary:active, .btn-secondary:active, .btn-vip:active, .step-btn:active, .copy-btn:active {
  transform: scale(0.97) !important;
}

.home-premium-badge, .badge-gold {
  animation: floatGlow 3.5s ease-in-out infinite;
}

/* Subtle Cursor Spotlight Glow on Cards (Matching Site Cyan/Sky Theme) */
.script-card, .home-feature-box, .supported-game-card, .sidebar-card, .card:not(.locked) {
  position: relative;
}
.script-card::before, .home-feature-box::before, .supported-game-card::before, .sidebar-card::before, .card:not(.locked)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(56, 189, 248, 0.09), transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.script-card:hover::before, .home-feature-box:hover::before, .supported-game-card:hover::before, .sidebar-card:hover::before, .card:not(.locked):hover::before {
  opacity: 1;
}

/* Locked Cards: No hover glow, fully muted */
.card.locked::before, .card.locked:hover::before {
  display: none !important;
  opacity: 0 !important;
}
.card.locked:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: var(--line) !important;
}

/* Number Counter Smooth Font Variant */
.stat-num, .sidebar-stat-val {
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

/* ==========================================================================
   MOTION PRIMITIVES: TEXT SHIMMER & SHIMMER WAVE
   ========================================================================== */
.text-shimmer,
.shimmer-text {
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.7) 35%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.7) 65%,
    rgba(255, 255, 255, 0.7) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmerWave 4.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes textShimmerWave {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

/* ==========================================================================
   MOTION PRIMITIVES: BORDER BEAM (Color-Matched to Card Themes)
   ========================================================================== */
@property --border-beam-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderBeamRotate {
  from {
    --border-beam-angle: 0deg;
  }
  to {
    --border-beam-angle: 360deg;
  }
}

/* Border Beam on VIP Recommendation Card (Soft Warm Gold Theme #ffd446) */
.home-premium-banner {
  position: relative;
  overflow: hidden;
}
.home-premium-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-beam-angle, 0deg) at 50% 50%,
    transparent 0%,
    transparent 75%,
    rgba(255, 212, 70, 0.25) 86%,
    rgba(255, 230, 110, 0.85) 93%,
    rgba(255, 212, 70, 0.25) 98%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: borderBeamRotate 7s linear infinite;
}