/* ==========================================================================
   CODECOAT — Sleek Minimalist Dark Theme
   Inspired by ORYN / modern high-tier Roblox script hubs
   ========================================================================== */

:root {
  --bg-pitch: #060608;
  --bg-surface: #0c0d12;
  --bg-surface-elevated: #12131a;
  --bg-card: rgba(14, 15, 21, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(255, 255, 255, 0.25);
  
  --text-main: #f4f4f6;
  --text-muted: #8e92a2;
  --text-dim: #5c6072;
  
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-blue: #3b82f6;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* ==========================================================================
     Kawarp Fluid FX Default Configuration
     Edit these values to customize the starting look of your website!
     ========================================================================== */
  --kawarp-default-preset: sunset;      /* Options: aurora | ocean | nebula | sunset | cyber | void */
  --kawarp-default-opacity: 0.70;       /* Fluid Opacity: 0.0 to 1.0 (e.g. 0.50 = 50%) */
  --kawarp-default-warp: 1;          /* Warp distortion strength: 0.0 to 1.0 */
  --kawarp-default-blur: 8;             /* Blur passes: 0 to 20 */
  --kawarp-default-speed: 5;          /* Animation speed: 0.1 to 3.0 */
  --kawarp-default-saturation: 1.4;     /* Color saturation: 0.5 to 2.5 */
}

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-pitch);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Canvas & Fluid Stack */
#kawarp-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: var(--kawarp-default-opacity, 0.50);
  transition: opacity 0.15s ease-out;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: radial-gradient(circle at 50% 30%, rgba(6, 6, 8, 0.15) 0%, rgba(6, 6, 8, 0.55) 65%, rgba(6, 6, 8, 0.88) 100%);
  pointer-events: none;
}

/* Starfield Canvas Background */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

/* Site Layout Wrapper */
.site-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   Header / Top Navigation & Floating Liquid Glass Bubble
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-bubble-pill {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating bubble state: automatically merges elements into liquid glass pill on scroll down */
.top-nav.floating-active .nav-bubble-pill {
  width: auto;
  max-width: calc(100vw - 32px);
  margin-top: 14px;
  padding: 8px 20px;
  gap: 24px;
  background: rgba(14, 15, 22, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--text-main);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.8;
}

.brand-glyph {
  font-size: 1rem;
  color: #fff;
}

.nav-links-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.nav-icon-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-discord-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  width: 100%;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(85vh - 100px);
  padding: 100px 16px 40px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.brand-title {
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.brand-tagline {
  max-width: 580px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 34px;
}

/* Terminal Loadstring Container */
.loadstring-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
  margin-bottom: 28px;
}

.loadstring-box {
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(14, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.6);
}

.loadstring-box:hover,
.loadstring-box:focus-within {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 36px -2px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.04);
}

.terminal-prefix {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-right: 12px;
  user-select: none;
}

.code-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #d1d5db;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  user-select: all;
  letter-spacing: -0.02em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: 10px;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: #34d399;
}

.loadstring-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--text-dim);
}

.hint-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.check-icon {
  color: var(--accent-emerald);
  font-size: 0.75rem;
}

.dot-separator {
  color: rgba(255, 255, 255, 0.12);
}

/* Action Buttons (Frosted Liquid Glass Blur from Screenshot 2) */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  /* Frosted liquid glass blur */
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: all var(--transition-fast);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-primary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   Section: Why Pick Us (Bento Cards)
   ========================================================================== */
.why-us-container {
  padding: 80px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.section-heading {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.bento-card {
  position: relative;
  background: rgba(14, 15, 21, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: rgba(18, 20, 28, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.7);
}

.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}

.bento-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Section: Supported Games (Huge Panels with Background Blur)
   ========================================================================== */
.games-section {
  padding: 70px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.huge-panels-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.huge-game-panel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(12, 13, 18, 0.85);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.huge-game-panel:hover {
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 255, 255, 0.04);
}

.huge-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  filter: blur(0px) brightness(0.85);
  transform: scale(1.0);
  transition: filter 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: filter, transform;
}

/* Hover: blur the background image smoothly */
.huge-game-panel:hover .huge-panel-bg {
  filter: blur(10px) brightness(0.60);
  transform: scale(1.04);
}

.coming-soon-bg {
  background: radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.1) 40%, rgba(12, 13, 18, 0.95) 100%);
}

.huge-panel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg, 
    rgba(8, 9, 13, 0.95) 0%, 
    rgba(8, 9, 13, 0.84) 42%, 
    rgba(8, 9, 13, 0.52) 75%, 
    rgba(8, 9, 13, 0.30) 100%
  );
  transition: background 0.4s ease;
}

.huge-game-panel:hover .huge-panel-overlay {
  background: linear-gradient(
    90deg, 
    rgba(8, 9, 13, 0.97) 0%, 
    rgba(8, 9, 13, 0.88) 45%, 
    rgba(8, 9, 13, 0.60) 80%, 
    rgba(8, 9, 13, 0.38) 100%
  );
}

.huge-panel-content {
  position: relative;
  z-index: 2;
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 290px;
}

.huge-panel-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.huge-panel-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.game-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
}

.status-indicator.yellow {
  background-color: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.game-tag-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.huge-game-title {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.huge-game-desc {
  max-width: 620px;
  font-size: 0.95rem;
  color: #b5b9cc;
  line-height: 1.6;
}

.huge-panel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.huge-features-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.huge-game-panel:hover .spec-tag {
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e4ed;
}

.panel-copy-btn, .panel-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.panel-copy-btn:hover, .panel-discord-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.panel-copy-btn.copied {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-emerald);
  color: #34d399;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 36px 0 28px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-muted);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: rgba(16, 185, 129, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-emerald);
  color: #34d399;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.8), 0 0 16px var(--accent-emerald-glow);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Modal (Terms / Privacy)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
  padding: 20px;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 1.15rem;
  color: #fff;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .site-wrapper {
    padding: 0 16px;
  }
  
  .hero-container {
    padding: 40px 10px 30px;
    min-height: auto;
  }

  .brand-title {
    font-size: 2.8rem;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .action-buttons .btn {
    width: 100%;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .footer-right {
    justify-content: center;
  }
}

/* ==========================================================================
   Kawarp Floating Controls & Interactive Settings Panel
   ========================================================================== */
.kawarp-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 15, 22, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.8);
  transition: all var(--transition-fast);
}

.kawarp-toggle-btn:hover {
  background: rgba(24, 25, 36, 0.95);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 255, 255, 0.08);
}

.kawarp-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 320px;
  z-index: 150;
  background: rgba(10, 11, 16, 0.9);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 48px -8px rgba(0, 0, 0, 0.95);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kawarp-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.kawarp-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.kawarp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kawarp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.kawarp-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.kawarp-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.kawarp-close-btn:hover {
  color: #fff;
}

.kawarp-section {
  margin-bottom: 18px;
}

.kawarp-label {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* Preset Buttons Grid */
.kawarp-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #fff;
}

.preset-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

.preset-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.aurora-swatch { background: linear-gradient(135deg, #0284c7, #8b5cf6); }
.ocean-swatch  { background: linear-gradient(135deg, #0369a1, #06b6d4); }
.nebula-swatch { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.sunset-swatch { background: linear-gradient(135deg, #1e1135, #c2410c, #f59e0b); }
.cyber-swatch  { background: linear-gradient(135deg, #059669, #10b981); }
.void-swatch   { background: linear-gradient(135deg, #27272a, #09090b); }

/* Range Sliders */
.slider-group {
  margin-bottom: 12px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.val-num {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 0.74rem;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  height: 5px;
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Custom Image URL input */
.custom-url-box {
  display: flex;
  gap: 6px;
}

.custom-url-box input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  outline: none;
}

.custom-url-box input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-url-go {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-url-go:hover {
  background: rgba(255, 255, 255, 0.2);
}

.custom-image-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.action-sub-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 6px 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-sub-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
  color: #fff;
}

.kawarp-panel-footer {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .nav-bubble-pill {
    padding: 16px 12px;
  }

  .top-nav.floating-active .nav-bubble-pill {
    padding: 6px 14px;
    gap: 12px;
  }

  .nav-links-cluster {
    gap: 8px;
  }

  .nav-link-btn {
    padding: 4px 6px;
    font-size: 0.8rem;
  }

  .huge-panel-content {
    padding: 24px 20px;
    min-height: auto;
  }

  .huge-panel-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .panel-copy-btn, .panel-discord-btn {
    width: 100%;
    justify-content: center;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .action-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .kawarp-panel {
    right: 12px;
    bottom: 74px;
    width: calc(100vw - 24px);
  }

  .brand-link {
    font-size: 0.86rem;
  }

  .nav-discord-link span {
    display: none;
  }

  .nav-discord-link {
    padding: 6px;
  }
}


