/* 🎯 PACKQUEST FONTS - INTER & PRESS START 2P */
/* Fallback zu System Fonts bis lokale Fonts geladen sind */

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Press Start 2P', 'Courier New', Monaco, 'Lucida Console', 'Consolas', monospace;
}

body, html, p, span, div, a, button, input, textarea, select {
  font-family: var(--font-primary) !important;
}

/* 🎯 PROFESSIONELLE FONT-STRATEGIE */

/* Press Start 2P - NUR für BRANDING & HIGHLIGHTS */
.brand-name, .brand-icon,
h1.pixel, .pixel,
.btn, .header-cta,
.game-title, .level-title,
nav a.pixel,
.achievement, .stats-bar,
.retro-badge {
  font-family: var(--font-display) !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Inter - FÜR ALLES ANDERE (Lesbarkeit) */
body, html, p, span, div, 
h2, h3, h4, h5, h6,
.card, .card h3, .card p,
.menu a, nav a:not(.pixel),
input, textarea, select, label,
.muted, .description, .content,
button:not(.btn), .text {
  font-family: var(--font-primary) !important;
  letter-spacing: normal;
  text-transform: none;
}

/* Spezielle Retro-Highlights */
.hero h1, .page-title {
  font-family: var(--font-display) !important;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.6);
  text-transform: uppercase;
}

/* Font-Optimierung */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Projekte – Premium Slider */
.project-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 36px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(31,111,235,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}

.project-slider .slides {
  position: relative;
  display: grid;
}

.project-slider .slide {
  display: none;
  margin: 0;
}
.project-slider .slide.active { display: block; }

.project-slider img {
  width: 100%;
  height: auto;
  display: block;
}

.project-slider .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.85) 100%);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.project-slider .caption strong { color: #ffd91a; }

.project-slider .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(10,14,22,0.55);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.project-slider .slider-btn:hover { background: rgba(10,14,22,0.7); }
.project-slider .slider-btn.prev { left: 12px; }
.project-slider .slider-btn.next { right: 12px; }

.project-slider .dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex; gap: 8px; justify-content: center;
}
.project-slider .dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.3);
}
.project-slider .dots button.active { background: #ffd91a; border-color: #ffd91a; }

.ready-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.ready-grid img {
  width: 100%; height: auto; border-radius: 12px;
  border: 2px solid rgba(31,111,235,0.3);
}
/* Performance Optimizations */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-display: swap;
}

/* Farbvariablen und Grundstil */
:root {
  --color-bg: #0b0e14;
  --color-text: #e6edf3;
  --color-primary: #1f6feb; /* Blau */
  --color-accent: #ffd91a;  /* Gelb */
  --color-hot: #ff2e8b;     /* Pink/Magenta für CTAs */
  --color-muted: #9aa7b2;
}

html, body { 
  height: 100%; 
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-display: swap;
}

/* Pixel-/Arcade-Touch für Headlines */
.pixel {
  font-family: "Press Start 2P", monospace;
  letter-spacing: 1px;
  font-display: swap;
}

/* Performance: will-change für animierte Elemente */
.btn, .card {
  will-change: transform;
}

a { 
  color: var(--color-text); 
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

img { 
  max-width: 100%; 
  height: auto; 
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header / Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11,14,20,0.98) 0%, rgba(11,14,20,0.9) 100%);
  border-bottom: 2px solid rgba(31,111,235,0.35);
  backdrop-filter: blur(6px);
}

/* Premium Navbar */
.nav-premium {
  display: grid;
  grid-template-columns: auto 1fr auto auto; /* Brand | Center | CTA | Burger */
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  width: 36px;
  height: 36px;
  background: url('charakter_pq-01.svg') no-repeat center / contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
}
.brand-name {
  font-family: 'Press Start 2P', monospace;
  font-weight: 800;
  font-size: clamp(14px, 1.6vw, 18px);
  color: #111;
  padding: 6px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffd91a, #ffea86);
  border: 1px solid rgba(255,217,26,0.7);
  box-shadow: 0 2px 0 #000, inset 0 1px 0 rgba(255,255,255,0.5);
}

.menu {
  justify-self: center;
  display: flex;
  gap: 10px;
  align-items: center;
  background: radial-gradient(120% 120% at 0% 0%, rgba(31,111,235,0.18), rgba(11,14,20,0.7)),
              linear-gradient(180deg, rgba(255,217,26,0.06), rgba(31,111,235,0.06));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
}
.menu a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15,19,27,0.35);
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}
.menu a:hover { color: #111; background: linear-gradient(135deg, #ffd91a, #ffea86); box-shadow: 0 10px 22px rgba(255,217,26,0.25), inset 0 1px 0 rgba(255,255,255,0.4); }
.menu a.active { color: #111; background: linear-gradient(135deg, #ffd91a, #ffea86); box-shadow: 0 0 0 2px rgba(255,217,26,0.35) inset, 0 10px 22px rgba(255,217,26,0.25); }

.hamburger { display: none; }
.hamburger button { 
  width: 42px; 
  height: 42px; 
  border-radius: 10px; 
  border: 2px solid rgba(255,217,26,0.6); 
  background: rgba(31,111,235,0.15); 
  box-shadow: 0 4px 0 #000; 
  color: #fff; 
  cursor: pointer;
  transition: transform 150ms ease;
}
.hamburger button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #000;
}

.header-cta { justify-self: end; }

/* Mobile Navigation Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-cta { display: none; }
  .hamburger { display: inline-flex; }
  .menu { 
    position: fixed; 
    right: 0; 
    top: 0; 
    height: 100vh; 
    width: 85vw; 
    max-width: 380px; 
    flex-direction: column; 
    transform: translateX(100%); 
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 1002;
    background: linear-gradient(180deg, rgba(11,14,20,0.98), rgba(11,14,20,0.95));
    backdrop-filter: blur(12px);
    border-left: 3px solid rgba(255,217,26,0.6);
    box-shadow: -8px 0 24px rgba(0,0,0,0.4);
    padding: 60px 20px 24px;
    gap: 8px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .menu.open,
  .menu.mobile-open { 
    transform: translateX(0); 
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .menu a {
    padding: 18px 20px;
    font-size: 13px;
    border-radius: 12px;
    display: block;
    width: 100%;
    text-align: left;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    z-index: 1010;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(255,217,26,0.3);
    touch-action: manipulation;
  }
  
  .menu a:hover,
  .menu a:active,
  .menu a:focus {
    background: rgba(255,217,26,0.4) !important;
    color: #111 !important;
    transform: scale(0.98);
  }

  /* Close button in mobile menu */
  .menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,217,26,0.6);
    background: rgba(255,217,26,0.2);
    color: #ffd91a;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
    z-index: 1002;
  }
  
  .menu-close:hover,
  .menu-close:active {
    background: rgba(255,217,26,0.4);
    transform: scale(1.05);
  }
}

@media (max-width: 480px) {
  .brand-name { font-size: 12px; padding: 4px 8px; }
  .brand-icon { width: 28px; height: 28px; }
  .hamburger button { width: 38px; height: 38px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid #000;
  box-shadow: 0 0 0 3px var(--color-hot), 0 6px 0 0 #000;
  background: var(--color-hot);
  color: #fff;
  transition: transform 120ms ease, box-shadow 120ms ease;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { 
  transform: translateY(-1px); 
}

.btn:active { 
  transform: translateY(2px); 
  box-shadow: 0 0 0 3px var(--color-hot), 0 3px 0 0 #000; 
}

/* Hero */
.hero {
  padding: 56px 0 24px;
  border-bottom: 2px solid rgba(31,111,235,0.35);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
}

.sub {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.5;
}

.cta-row { 
  margin-top: 18px; 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap; 
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.card {
  background: #0f131b;
  border: 2px solid rgba(31,111,235,0.45);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  word-wrap: break-word;
  hyphens: auto;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.card h3 { 
  margin: 0 0 8px; 
  font-size: 14px; 
  color: var(--color-accent); 
}

.card p { 
  margin: 0; 
  color: var(--color-muted); 
  font-size: 14px; 
}

/* Services, Trust, Location Sections */
.services, .trust, .location {
  padding: 40px 0;
}

.services {
  border-bottom: 2px solid rgba(31,111,235,0.35);
}

.trust {
  border-bottom: 2px solid rgba(31,111,235,0.35);
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.badge {
  text-align: center;
  padding: 20px 12px;
  background: #0f131b;
  border: 2px dashed rgba(255,217,26,0.45);
  border-radius: 12px;
}

.location {
  background: #0f131b;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.location-grid ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.location-grid li {
  padding: 4px 0;
  color: var(--color-muted);
}

.location-grid li:before {
  content: "✓ ";
  color: var(--color-accent);
  font-weight: bold;
}

/* Testimonials */
.testimonials {
  text-align: center;
  margin-top: 24px;
}

.testimonial {
  background: #0f131b;
  border: 2px solid rgba(31,111,235,0.45);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  border-top: 2px solid rgba(31,111,235,0.35);
  padding: 22px 0 40px;
}

.footer-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
  gap: 18px; 
}

.muted { 
  color: var(--color-muted); 
}

.muted a {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.muted a:hover {
  color: var(--color-accent);
}

/* Responsive Design */
@media (max-width: 920px) {
  .hero-grid { 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
  
  .card-grid { 
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
  }
  
  .location-grid {
    grid-template-columns: 1fr;
  }
  
  .hero { padding: 40px 0 20px; }
  .hero h1 { font-size: clamp(24px, 3.5vw, 40px); }
  .sub { font-size: 15px; }
}

@media (max-width: 480px) {
  .hero { padding: 24px 0 16px; }
  .cta-row { 
    flex-direction: column;
    gap: 12px;
  }
  .btn {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    justify-content: center;
  }
  
  /* Extra Small Mobile Card Adjustments */
  .card-grid { 
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
  }
  
  .card {
    padding: 10px;
    min-height: 110px;
  }
  
  .card h3 {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .card p {
    font-size: 11px;
    line-height: 1.3;
  }
}

/* Tablet & kleiner: Off-Canvas, CTA ausblenden, kompakter Brand */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 2px solid rgba(255,217,26,0.6); background: rgba(31,111,235,0.15); box-shadow: 0 4px 0 #000; cursor: pointer; }
  .nav-toggle span { font-size: 20px; line-height: 1; }
  .header .container > .btn { display: none; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text { padding: 5px 8px; }
  .pixel-nav { gap: 10px; }
  .pixel-nav .nav-links {
    position: fixed;
    right: 0; top: 0; height: 100vh; width: 80vw; max-width: 360px;
    background: linear-gradient(180deg, rgba(11,14,20,0.98), rgba(11,14,20,0.92));
    border-left: 2px solid rgba(31,111,235,0.35);
    padding: 20px; gap: 12px; display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 220ms ease;
    z-index: 1000;
  }
  .nav-toggle-input:checked ~ .pixel-nav .nav-links { transform: translateX(0); }
  .pixel-nav .btn { display: none; }
  header .container { grid-template-columns: auto 1fr auto auto; }
}

/* Handy: Wortmarke ausblenden, nur Icon behalten */
@media (max-width: 640px) {
  .logo-text { display: none; }
  .logo-mark { width: 32px; height: 32px; }
  
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .trust-badges { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 16px; }
  .services, .trust, .location { padding: 24px 0; }
  
  /* Mobile Card Text Fixes */
  .card {
    padding: 12px;
    min-height: 120px;
  }
  
  .card h3 {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  
  .card p {
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .btn, .card {
    transition: none;
  }
}

/* 📱 MOBILE TOUCH CONTROLS */
/* Redesigned Mobile Controls (glasmorph, ergonomisch) */
.mobile-controls {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10, 14, 22, 0.4);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.controls-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.d-pad {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  width: 140px;
  height: 140px;
}

.d-pad-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  align-items: center;
}

.d-pad-row:nth-child(1) .control-btn { grid-column: 2; }
.d-pad-row:nth-child(2) .control-btn:nth-child(1) { grid-column: 1; }
.d-pad-row:nth-child(2) .control-btn:nth-child(3) { grid-column: 3; }
.d-pad-row:nth-child(3) .control-btn { grid-column: 2; }

.d-pad-center {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0.3;
}

.control-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  box-shadow:
    0 6px 14px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.control-btn:active {
  transform: scale(0.94) translateY(1px);
  background: linear-gradient(145deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
}

.control-btn:hover {
  background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.25),
    inset 0 2px 4px rgba(255,255,255,0.9);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-btn {
  width: 86px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(145deg, rgba(255,217,26,0.25), rgba(31,111,235,0.15));
  box-shadow:
    0 6px 14px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
}

.action-btn span {
  font-size: 20px;
  margin-bottom: 4px;
}

.action-btn small {
  font-size: 6px;
  font-weight: bold;
  color: #1f6feb;
}

.action-btn:active {
  transform: scale(0.95) translateY(2px);
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.3),
    inset 0 4px 8px rgba(255,217,26,0.3);
  background: linear-gradient(145deg, #ffed99, #ffd91a);
}

.action-btn:hover {
  background: linear-gradient(145deg, #fff9e6, #fff066);
  box-shadow: 
    0 6px 12px rgba(0,0,0,0.25),
    inset 0 2px 4px rgba(255,255,255,0.9);
}

/* Mobile Touch Controls Responsive */
@media (max-width: 768px) {
  .mobile-controls {
    display: block;
  }
  
  .controls-layout {
    justify-content: space-between;
    gap: 22px;
  }
  
  .d-pad {
    width: 140px;
    height: 140px;
  }
  
  .control-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  
  .action-btn {
    width: 96px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .controls-layout {
    flex-direction: column;
    gap: 20px;
  }
  
  .action-buttons {
    flex-direction: row;
    gap: 16px;
  }
  
  .d-pad {
    width: 130px;
    height: 130px;
  }
  
  .control-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}

/* 📱 WHATSAPP BUTTON - Jetzt über JavaScript gelöst */

/* 🎮 GAME RESPONSIVE STYLING */
.game-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  background: #0a0e16;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #ffd91a;
  box-shadow: 
    0 8px 25px rgba(255, 217, 26, 0.3),
    0 4px 12px rgba(0,0,0,0.5);
}

#gameCanvas {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  aspect-ratio: 800 / 500;
}

/* Mobile Game Optimierung */
@media (max-width: 768px) {
  .game-container {
    max-width: calc(100vw - 20px);
    margin: 0 10px;
    border-radius: 8px;
  }
  
  #gameCanvas {
    width: 100%;
    height: auto;
  }
  
  .game-ui {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px !important;
  }
  
  .btn-small {
    padding: 6px 12px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .game-container {
    max-width: calc(100vw - 16px);
    margin: 0 8px;
    border: 1px solid #ffd91a;
  }
  
  #gameCanvas {
    width: 100%;
    height: auto;
    min-height: 250px;
  }
  
  .game-ui {
    padding: 8px;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  
  .pixel {
    font-size: 10px !important;
  }
}


/* Print Styles */
@media print {
  header, footer, .game-container, #packquest-wa-btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card, .badge, .testimonial {
    border: 1px solid #000;
    background: white;
  }
}

/* Ensure game start button is always clickable */
.game-start-btn {
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}

.game-container {
  position: relative;
}