html { opacity: 0; }


::-webkit-scrollbar {
  width: 4px; 
  height: 2px; 
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 20px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

@media (max-width: 640px) {
  * {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  ::-webkit-scrollbar {
    display: none;
  }
}

/* ── Page Loader ─────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}
#page-loader .loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: loader-spin 0.7s linear infinite;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
/* ─────────────────────────────────────────────────────────── */

html {
  scrollbar-gutter: stable;
}
.simulator-ratio {
  aspect-ratio: 1454 / 770;
}
body { font-family: 'Inter', sans-serif; }
/* Used in simulator pages */
.info-box { background: #f8fafc; border-left: 4px solid #2563eb; border-radius: 0 8px 8px 0; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; }
.info-box p { line-height: 1.7; color: #475569; }
.info-box strong { color: #1e293b; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tag { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 500; }

/* Used in games page */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.game-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.4rem; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.game-card:hover { transform: translateY(-3px); border-color: #2563eb; box-shadow: 0 4px 20px rgba(37,99,235,0.08); }
.game-card h2 { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: 0.4rem; }
.game-card p { font-size: 0.85rem; color: #64748b; line-height: 1.5; }
.game-card .badge { display: inline-block; background: #2563eb; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 20px; margin-top: 0.8rem; }
.game-card a { display: inline-block; margin-top: 0.8rem; color: #2563eb; text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.game-card a:hover { text-decoration: underline; }

/* Used in 404 page */
.error-center { text-align: center; margin-top: 5rem; }
.error-center .error-code { font-size: 6rem; font-weight: 900; color: #2563eb; line-height: 1; }
.error-center p { color: #64748b; margin: 1rem 0 2rem; font-size: 1rem; }

.btn { display: inline-block; background: #2563eb; color: #fff; padding: 0.6rem 1.4rem; border-radius: 8px; text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: background 0.2s; }
.btn:hover { background: #1d4ed8; }

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.animate-pulse-slow { animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }


.ad-leaderboard-container {
  width: 100%;
  max-width: 728px;
  height: auto;
  min-height: 90px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 16px;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.ad-leaderboard-container:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-color: #3b82f6;
}

@media (max-width: 768px) {
  .ad-leaderboard-container {
    padding: 10px;
  }
}

.ad-skyscraper-container {
  width: 300px;
  height: 600px;
  min-width: 300px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.ad-skyscraper-container:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

#btn-fullscreen {
  display: none;
}