/* =========================================================
   STYLE.CSS - Base & Responsive Mobile-First Shell
   Tumbal Proyek: Web Satire Game
   ========================================================= */

:root {
  --bg-desktop: #0b0f19;
  --bg-app: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --app-max-width: 440px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-desktop);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Office Backdrop for PC */
.desktop-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0b0f19 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.pc-instructions {
  display: none;
  margin-top: 14px;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.pc-instructions kbd {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Main App Shell (Smartphone Frame on PC, 100% on Mobile) */
#app-container {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width);
  height: 100%;
  height: 100dvh;
  max-height: 880px;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Vignette Overlay for Screen Effects (Flash Red, Green Boost, Critical) */
#vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Adaptasi Layar Besar (PC / Laptop) */
@media (min-width: 640px) {
  #app-container {
    height: 94dvh;
    border-radius: 24px;
    border: 3px solid #334155;
  }

  .pc-instructions {
    display: block;
  }
}

/* Adaptasi Mobile (HP Layar Sentuh) */
@media (max-width: 639px) {
  body, html {
    background-color: var(--bg-app);
  }

  #app-container {
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  .card-shortcut-badge {
    display: none; /* Sembunyikan badge keyboard [1][2][3] di layar sentuh */
  }
}
