/* Interactive Games - Custom Stylesheet & Design System (Super Responsive Fluid Typography) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-main: #011b14;
  --bg-card: rgba(1, 38, 28, 0.75);
  --border-card: rgba(0, 165, 81, 0.2);
  --border-hover: rgba(0, 165, 81, 0.6);
  --accent-emerald: #00a551;
  --accent-mint: #a7f3d0;
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
}

/* Fluid Base Scaling */
html {
  font-size: clamp(14px, 0.8vw + 12px, 16px);
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: #f8fafc;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Fluid Typography Utilities */
.text-fluid-h1 {
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 2rem);
  line-height: 1.25;
}

.text-fluid-h2 {
  font-size: clamp(1.1rem, 2vw + 0.4rem, 1.65rem);
  line-height: 1.3;
}

.text-fluid-body {
  font-size: clamp(0.75rem, 1vw + 0.4rem, 0.875rem);
  line-height: 1.5;
}

.text-fluid-small {
  font-size: clamp(0.6875rem, 0.8vw + 0.35rem, 0.75rem);
}

/* Glassmorphism Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
}

.glass-panel:hover {
  border-color: var(--border-hover);
}

/* Card Hover Animation */
.game-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 165, 81, 0.25);
}

.game-card .thumb-overlay {
  transition: opacity 0.3s ease;
}

.game-card:hover .thumb-overlay {
  opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #011b14;
}

::-webkit-scrollbar-thumb {
  background: #013a2b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00a551;
}

/* Super Responsive Device Viewport Simulation in Modal Runner */
.viewport-wrapper {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
  max-height: 100%;
}

.viewport-desktop {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.viewport-tablet {
  width: min(768px, 95vw);
  height: min(900px, 90vh);
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.viewport-mobile {
  width: min(375px, 92vw);
  height: min(750px, 86vh);
  border-radius: 24px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Glowing Neon Text */
.neon-glow-text {
  text-shadow: 0 0 20px rgba(0, 165, 81, 0.5);
}

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

/* Mobile Touch Optimization */
@media (max-width: 640px) {
  .modal-control-header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
